@classytic/arc 2.50.0 → 2.51.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 (156) hide show
  1. package/dist/{EventTransport-B18mcj_M.mjs → EventTransport-K7Q9WPjm.mjs} +2 -2
  2. package/dist/{HookSystem-FUBaLTRm.mjs → HookSystem-DBAu9uNT.mjs} +2 -2
  3. package/dist/{ResourceRegistry-C5NM07fZ.mjs → ResourceRegistry-BelzCRMy.mjs} +2 -2
  4. package/dist/{acquire-MHCnbDtH.mjs → acquire-B0zhfGSm.mjs} +1 -1
  5. package/dist/audit/index.mjs +4 -4
  6. package/dist/auth/audit.mjs +1 -1
  7. package/dist/auth/index.d.mts +30 -0
  8. package/dist/auth/index.mjs +172 -32
  9. package/dist/auth/redis-session.mjs +1 -1
  10. package/dist/auth/social/index.d.mts +42 -0
  11. package/dist/auth/social/index.mjs +311 -0
  12. package/dist/{authorizationDecision-BD8K4jdQ.mjs → authorizationDecision-Dxj_cy6N.mjs} +4 -4
  13. package/dist/{boundedMap-CuCwos_X.mjs → boundedMap-DOBai-H3.mjs} +1 -1
  14. package/dist/{buildHandler-BttjNkTM.mjs → buildHandler-Dyl8P9j0.mjs} +5 -5
  15. package/dist/cache/index.mjs +4 -4
  16. package/dist/{caching-CxUQLHfR.mjs → caching-CUmaNL8Y.mjs} +2 -2
  17. package/dist/{claimed-CQ4ZpD8K.mjs → claimed-DJPk4VZr.mjs} +1 -1
  18. package/dist/cleanup/index.mjs +4 -4
  19. package/dist/cli/commands/describe.mjs +3 -3
  20. package/dist/cli/commands/docs.mjs +3 -3
  21. package/dist/cli/commands/doctor.mjs +1 -1
  22. package/dist/cli/commands/generate.mjs +2 -2
  23. package/dist/cli/commands/init.mjs +2 -2
  24. package/dist/cli/commands/introspect.mjs +2 -2
  25. package/dist/cli/index.mjs +3 -3
  26. package/dist/{constants-BZFsZwJh.mjs → constants-DH41jnNT.mjs} +1 -1
  27. package/dist/context/index.mjs +5 -5
  28. package/dist/core/index.mjs +7 -7
  29. package/dist/{core-DWA1-5IE.mjs → core-DPmRWlpx.mjs} +3 -3
  30. package/dist/{createActionRouter-fP3l2xVF.mjs → createActionRouter-B1xhER6i.mjs} +5 -5
  31. package/dist/{createAggregationRouter-BJZeOmBa.mjs → createAggregationRouter-CNntJL-z.mjs} +7 -7
  32. package/dist/{createApp-Db9JRumw.mjs → createApp-DpG26bCu.mjs} +29 -29
  33. package/dist/{defineAggregation-BskqRz8M.mjs → defineAggregation-rI3EbZUg.mjs} +1 -1
  34. package/dist/{defineResource-B2vTvKzW.mjs → defineResource-5DcG_wlI.mjs} +8 -8
  35. package/dist/discovery/index.mjs +1 -1
  36. package/dist/docs/index.mjs +3 -3
  37. package/dist/{elevation-XoY0C73T.mjs → elevation-XFu7J3aj.mjs} +5 -5
  38. package/dist/encryption/index.mjs +3 -3
  39. package/dist/{errorHandler-BYI-JQMm.mjs → errorHandler-xDVUWOMu.mjs} +3 -3
  40. package/dist/{errors-3xaK0i9n.mjs → errors-KBZ3tQk5.mjs} +1 -1
  41. package/dist/{eventPlugin-CVQ9ddnL.mjs → eventPlugin-C4lNj2Dw.mjs} +8 -8
  42. package/dist/{eventTypes-UPYg7gW1.mjs → eventTypes-DZRoUAdk.mjs} +2 -2
  43. package/dist/events/index.mjs +8 -8
  44. package/dist/events/transports/redis-stream-entry.mjs +4 -4
  45. package/dist/events/transports/redis.mjs +2 -2
  46. package/dist/factory/index.mjs +6 -6
  47. package/dist/{fieldTypes-CxRvCaaZ.mjs → fieldTypes-DrXUW1jc.mjs} +2 -2
  48. package/dist/{fields-DLFcJiDe.mjs → fields-C5J8WTd2.mjs} +1 -1
  49. package/dist/{filter-merge-Bvjk_8dV.mjs → filter-merge-DTjYoDrj.mjs} +1 -1
  50. package/dist/{generate-0OpCUjUv.mjs → generate-SA8oMlLB.mjs} +2 -2
  51. package/dist/{headers-BROW65-r.mjs → headers-D5wrBLOk.mjs} +2 -2
  52. package/dist/{health-Cy6aOg1i.mjs → health-BLal039H.mjs} +1 -1
  53. package/dist/{health-Cfh-kYI_.mjs → health-vEo3fni4.mjs} +1 -1
  54. package/dist/hooks/index.mjs +2 -2
  55. package/dist/http-cache/index.mjs +4 -4
  56. package/dist/http-cache/purgers/cloudflare.mjs +2 -2
  57. package/dist/http-cache/purgers/fastly.mjs +2 -2
  58. package/dist/http-cache/testing/index.mjs +1 -1
  59. package/dist/idempotency/index.mjs +7 -7
  60. package/dist/idempotency/redis.mjs +2 -2
  61. package/dist/index.mjs +11 -11
  62. package/dist/{init-D7PQcvvL.mjs → init-DeKHaNZn.mjs} +22 -22
  63. package/dist/integrations/event-gateway.mjs +2 -2
  64. package/dist/integrations/index.mjs +1 -1
  65. package/dist/integrations/jobs/index.mjs +3 -3
  66. package/dist/integrations/mcp/index.mjs +2 -2
  67. package/dist/integrations/mcp/testing.mjs +2 -2
  68. package/dist/integrations/streamline.mjs +3 -3
  69. package/dist/integrations/webhooks.mjs +4 -4
  70. package/dist/integrations/websocket-pushref-redis.mjs +1 -1
  71. package/dist/integrations/websocket-redis.mjs +1 -1
  72. package/dist/integrations/websocket.mjs +2 -2
  73. package/dist/{jsonBody-C0oREwUc.mjs → jsonBody-rDPGT5A9.mjs} +2 -2
  74. package/dist/{keys-CGlPoVSn.mjs → keys-t7i-lJ2r.mjs} +1 -1
  75. package/dist/{loadResources-Oi47dogA.mjs → loadResources-CcupAVJH.mjs} +3 -3
  76. package/dist/{loadResourcesFromEntry-BW-LexBz.mjs → loadResourcesFromEntry-BpjYlaoj.mjs} +2 -2
  77. package/dist/logger/index.mjs +2 -2
  78. package/dist/{logger-BagW7_YA.mjs → logger-IL7Btm-N.mjs} +1 -1
  79. package/dist/{mcpPlugin-C6-wFsOX.mjs → mcpPlugin-BsdH7Vot.mjs} +21 -21
  80. package/dist/{memory-Bl7kv6TS.mjs → memory-Dkp6ZD3F.mjs} +3 -3
  81. package/dist/{metrics-CqnMJKrJ.mjs → metrics-CDPqgdKr.mjs} +3 -3
  82. package/dist/middleware/index.mjs +3 -3
  83. package/dist/migrations/index.mjs +2 -2
  84. package/dist/{module-lbEbHUfI.mjs → module-KFxT1Iuk.mjs} +1 -1
  85. package/dist/{multipartBody-CqNezaB3.mjs → multipartBody-BHktuarE.mjs} +1 -1
  86. package/dist/{observeSend-BjilzlYl.mjs → observeSend-CY-sLanc.mjs} +1 -1
  87. package/dist/{openapi-DXNbadgd.mjs → openapi-DbeXiy2v.mjs} +6 -6
  88. package/dist/outbox-admin/index.mjs +5 -5
  89. package/dist/{outbox-module-k5rIszQ4.mjs → outbox-module-BWqkTE8-.mjs} +7 -7
  90. package/dist/permissions/index.mjs +7 -7
  91. package/dist/{permissions-BJylQopQ.mjs → permissions-e5YMrFbm.mjs} +9 -9
  92. package/dist/{pipe-D1cq8hET.mjs → pipe-CMnKfdF4.mjs} +2 -2
  93. package/dist/pipeline/index.mjs +2 -2
  94. package/dist/{plan-iEgaS5_H.mjs → plan-BvLJGm3U.mjs} +1 -1
  95. package/dist/{plugin-DsLr6L4O.mjs → plugin-DYmu8uT4.mjs} +24 -24
  96. package/dist/plugins/index.mjs +18 -18
  97. package/dist/plugins/response-cache.mjs +4 -4
  98. package/dist/plugins/tracing-entry.mjs +2 -2
  99. package/dist/{pluralize-CX4ZvwCa.mjs → pluralize-ClwfBdIx.mjs} +1 -1
  100. package/dist/presets/filesUpload.mjs +5 -5
  101. package/dist/presets/index.mjs +2 -2
  102. package/dist/presets/multiTenant.mjs +5 -5
  103. package/dist/presets/search.mjs +2 -2
  104. package/dist/{presets-D_suT4OY.mjs → presets-DX_lPabi.mjs} +4 -4
  105. package/dist/{projection-CmjGjFih.mjs → projection-DnZiFPPE.mjs} +2 -2
  106. package/dist/{purger.types-CZwkTZ7B.mjs → purger.types-BEzTVDOU.mjs} +1 -1
  107. package/dist/{queryCachePlugin-BDOPEAmH.mjs → queryCachePlugin-C57-Nj-g.mjs} +6 -6
  108. package/dist/{rateLimitKey-igF1x64n.mjs → rateLimitKey-B1RxyGt3.mjs} +1 -1
  109. package/dist/{realtime-Cq_ugiWw.mjs → realtime-C-VIoXMg.mjs} +11 -11
  110. package/dist/registry/index.mjs +3 -3
  111. package/dist/{registry-DmF9Akvn.mjs → registry-DbQvODPH.mjs} +2 -2
  112. package/dist/{relay-DA89IhFt.mjs → relay-B61seKq1.mjs} +5 -5
  113. package/dist/{renewingLease-DBtGUt8T.mjs → renewingLease-Dp7wmzNN.mjs} +1 -1
  114. package/dist/{replyHelpers-CUbeUc5q.mjs → replyHelpers-CHii_jIO.mjs} +2 -2
  115. package/dist/{requestContext-DO9Qv0gw.mjs → requestContext-C_mbAm8o.mjs} +1 -1
  116. package/dist/{requirement-C3GaQmkR.mjs → requirement-C8OsWLYp.mjs} +1 -1
  117. package/dist/{resourceRateLimit-KKn-sFhb.mjs → resourceRateLimit-DhbQZjE2.mjs} +2 -2
  118. package/dist/{rolldown-runtime-Ck1Tj4Ax.mjs → rolldown-runtime-HTi8KV7V.mjs} +1 -1
  119. package/dist/{routeValidator-BF7n34xV.mjs → routeValidator-DnQ2BGnH.mjs} +1 -1
  120. package/dist/{runtimeCapabilities-D0A4kkrC.mjs → runtimeCapabilities-G9QXHov1.mjs} +1 -1
  121. package/dist/{schedules-CLrQRSTt.mjs → schedules-DAthT5O3.mjs} +5 -5
  122. package/dist/{schemaConverter-JEmU21fu.mjs → schemaConverter-BOt_ed78.mjs} +2 -2
  123. package/dist/{schemaIR-wOffQlbq.mjs → schemaIR-MZVVj6Cw.mjs} +14 -14
  124. package/dist/schemas/index.mjs +1 -1
  125. package/dist/scim/index.mjs +2 -2
  126. package/dist/scope/index.mjs +5 -5
  127. package/dist/{scope-CcTMRd7s.mjs → scope-btg-225w.mjs} +4 -4
  128. package/dist/{shutdown-BIR-QBYM.mjs → shutdown-Dfy8La90.mjs} +1 -1
  129. package/dist/{simpleEqualityMatcher-DqqJqovq.mjs → simpleEqualityMatcher-D5dOqbbj.mjs} +1 -1
  130. package/dist/{sse-OEuPpgss.mjs → sse-DivxX1m6.mjs} +7 -7
  131. package/dist/{sseStream-DknHE2K5.mjs → sseStream-hQxQjvre.mjs} +2 -2
  132. package/dist/{store-helpers-D4vtEXt2.mjs → store-helpers-DfqfssAw.mjs} +1 -1
  133. package/dist/{streaming-CcIpcx02.mjs → streaming-CQiOktsh.mjs} +1 -1
  134. package/dist/{subscriberIdentity-PO6kimAl.mjs → subscriberIdentity-Bf8VLqA7.mjs} +1 -1
  135. package/dist/{tenancy-CH2Kuksc.mjs → tenancy-Btmaf1MB.mjs} +2 -2
  136. package/dist/{tenantPreparation-BTGpblQW.mjs → tenantPreparation-4e3qyb6q.mjs} +4 -4
  137. package/dist/testing/cleanupStoreContract.mjs +1 -1
  138. package/dist/testing/index.mjs +11 -11
  139. package/dist/testing/outboxStoreContract.mjs +2 -2
  140. package/dist/testing/requiredPorts.mjs +2 -2
  141. package/dist/testing/storageContract.mjs +1 -1
  142. package/dist/{timing-Dii5X7AP.mjs → timing-DXx0IWyi.mjs} +1 -1
  143. package/dist/{transactionContext-DMPhYEOt.mjs → transactionContext-DperjON1.mjs} +1 -1
  144. package/dist/{typeGuards-C1o_XEyp.mjs → typeGuards-eoQLIOh6.mjs} +1 -1
  145. package/dist/types/index.mjs +1 -1
  146. package/dist/types/storage.mjs +1 -1
  147. package/dist/{types-BuV_cFqT.mjs → types-CcpISJe8.mjs} +4 -4
  148. package/dist/usage/index.mjs +4 -4
  149. package/dist/{userHelpers-D4m_pLSC.mjs → userHelpers-Cp5zqlEN.mjs} +1 -1
  150. package/dist/utils/index.mjs +12 -12
  151. package/dist/{utils-CxLMXGn5.mjs → utils-dKN-_315.mjs} +6 -6
  152. package/dist/{validate-CZ975J8N.mjs → validate-BZHaAdgy.mjs} +3 -3
  153. package/dist/{versioning-B2_8SBZo.mjs → versioning-CPLP0VbB.mjs} +3 -3
  154. package/dist/{workScope-B3W3r35s.mjs → workScope-BI72KXsI.mjs} +2 -2
  155. package/package.json +17 -12
  156. package/skills/arc/references/auth-better-auth.md +27 -1
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { B as requireAuth, F as allowPublic, U as requireRoles } from "./permissions-BJylQopQ.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { B as requireAuth, F as allowPublic, U as requireRoles } from "./permissions-e5YMrFbm.mjs";
3
3
  import { multiTenantPreset } from "./presets/multiTenant.mjs";
4
- import { b as isElevated, n as PUBLIC_SCOPE } from "./types-BuV_cFqT.mjs";
5
- import { l as UnauthorizedError } from "./errors-3xaK0i9n.mjs";
4
+ import { b as isElevated, n as PUBLIC_SCOPE } from "./types-CcpISJe8.mjs";
5
+ import { l as UnauthorizedError } from "./errors-KBZ3tQk5.mjs";
6
6
  // src/presets/audited.ts
7
7
  /**
8
8
  * Audited preset - adds createdBy/updatedBy tracking
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { c as getOrgId, f as getScopeContextMap, g as getUserId, m as getTeamId, x as isMember } from "./types-BuV_cFqT.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { c as getOrgId, f as getScopeContextMap, g as getUserId, m as getTeamId, x as isMember } from "./types-CcpISJe8.mjs";
3
3
  // src/scope/projection.ts
4
4
  /**
5
5
  * Compute the request-scope projection. Returns `undefined` when no
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  // src/http-cache/purgers/purger.types.ts
3
3
  /** A purge the CDN refused or never answered: a closed code plus the provider's own codes, never a credential. */
4
4
  var CachePurgeError = class extends Error {
@@ -1,9 +1,9 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
3
- import { n as declareRuntimeCapability } from "./runtimeCapabilities-D0A4kkrC.mjs";
4
- import { t as hasEvents } from "./typeGuards-C1o_XEyp.mjs";
5
- import { t as MemoryCacheStore } from "./memory-Bl7kv6TS.mjs";
6
- import { i as versionKey, r as tagVersionKey } from "./keys-CGlPoVSn.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-HTi8KV7V.mjs";
3
+ import { n as declareRuntimeCapability } from "./runtimeCapabilities-G9QXHov1.mjs";
4
+ import { t as hasEvents } from "./typeGuards-eoQLIOh6.mjs";
5
+ import { t as MemoryCacheStore } from "./memory-Dkp6ZD3F.mjs";
6
+ import { i as versionKey, r as tagVersionKey } from "./keys-t7i-lJ2r.mjs";
7
7
  import fp from "fastify-plugin";
8
8
  // src/cache/QueryCache.ts
9
9
  const MISS = Object.freeze({
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  // 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.50.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
3
- import { n as arcRouteValidatorCompiler } from "./routeValidator-BF7n34xV.mjs";
4
- import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-CH2Kuksc.mjs";
5
- import { t as arcLog } from "./logger-BagW7_YA.mjs";
6
- import { n as evaluateAndApplyPermission } from "./authorizationDecision-BD8K4jdQ.mjs";
7
- import { t as applyFieldReadPermissions } from "./fields-DLFcJiDe.mjs";
8
- import { n as getUserRoles } from "./userHelpers-D4m_pLSC.mjs";
9
- import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-DqqJqovq.mjs";
10
- import { a as registerSseStats, r as openSseStream } from "./sseStream-DknHE2K5.mjs";
11
- import { a as promoteStreamTokenToHeader } from "./streaming-CcIpcx02.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-HTi8KV7V.mjs";
3
+ import { n as arcRouteValidatorCompiler } from "./routeValidator-DnQ2BGnH.mjs";
4
+ import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-Btmaf1MB.mjs";
5
+ import { t as arcLog } from "./logger-IL7Btm-N.mjs";
6
+ import { n as evaluateAndApplyPermission } from "./authorizationDecision-Dxj_cy6N.mjs";
7
+ import { t as applyFieldReadPermissions } from "./fields-C5J8WTd2.mjs";
8
+ import { n as getUserRoles } from "./userHelpers-Cp5zqlEN.mjs";
9
+ import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-D5dOqbbj.mjs";
10
+ import { a as registerSseStats, r as openSseStream } from "./sseStream-hQxQjvre.mjs";
11
+ import { a as promoteStreamTokenToHeader } from "./streaming-CQiOktsh.mjs";
12
12
  import { STREAM_FRAMES } from "@classytic/repo-core/sync";
13
13
  import fp from "fastify-plugin";
14
14
  // src/plugins/realtime.ts
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.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-DmF9Akvn.mjs";
3
- import { t as ResourceRegistry } from "../ResourceRegistry-C5NM07fZ.mjs";
1
+ /*! @classytic/arc v2.51.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-DbQvODPH.mjs";
3
+ import { t as ResourceRegistry } from "../ResourceRegistry-BelzCRMy.mjs";
4
4
  export { ResourceRegistry, assertNoTenantData, buildResourceManifest, buildResourceManifestFromRegistry, cascadeDeleteForOrganization, getCascadingResources, getCascadingResourcesWithMetadata, introspectionPlugin_default as introspectionPlugin };
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as CRUD_OPERATIONS } from "./constants-BZFsZwJh.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { t as CRUD_OPERATIONS } from "./constants-DH41jnNT.mjs";
3
3
  import fp from "fastify-plugin";
4
4
  // src/registry/assertNoTenantData.ts
5
5
  /**
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as arcLog } from "./logger-BagW7_YA.mjs";
3
- import { n as evictToSize, r as touch } from "./boundedMap-CuCwos_X.mjs";
4
- import { n as createSafeGetOne, t as createIsDuplicateKeyError } from "./store-helpers-D4vtEXt2.mjs";
5
- import { t as claimedAttempts } from "./claimed-CQ4ZpD8K.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { t as arcLog } from "./logger-IL7Btm-N.mjs";
3
+ import { n as evictToSize, r as touch } from "./boundedMap-DOBai-H3.mjs";
4
+ import { n as createSafeGetOne, t as createIsDuplicateKeyError } from "./store-helpers-DfqfssAw.mjs";
5
+ import { t as claimedAttempts } from "./claimed-DJPk4VZr.mjs";
6
6
  import { and, anyOf, eq, lte, ne, or } from "@classytic/repo-core/filter";
7
7
  import { InvalidOutboxEventError, OutboxConflictError, OutboxOwnershipError, outboxPayloadFingerprint } from "@classytic/primitives/outbox";
8
8
  import { update } from "@classytic/repo-core/update";
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  // 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.50.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-HTi8KV7V.mjs";
3
3
  import { toCanonicalList } from "@classytic/repo-core/pagination";
4
4
  import fp from "fastify-plugin";
5
5
  // src/plugins/replyHelpers.ts
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  // src/context/requestContext.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  // 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.50.0 | MIT | https://classytic.com */
2
- import { t as createTenantKeyGenerator } from "./rateLimitKey-igF1x64n.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { t as createTenantKeyGenerator } from "./rateLimitKey-B1RxyGt3.mjs";
3
3
  // src/permissions/resourceRateLimit.ts
4
4
  function decision(allowed, max, remaining, ttlSeconds) {
5
5
  const reset = Math.max(1, ttlSeconds);
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  import "node:module";
3
3
  // \0rolldown/runtime.js
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  import { AjvCompiler } from "@fastify/ajv-compiler";
3
3
  // src/core/routeValidator.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  // 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.50.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
3
- import { t as runWorkScope } from "./workScope-B3W3r35s.mjs";
4
- import { t as startRenewingLease } from "./renewingLease-DBtGUt8T.mjs";
5
- import { a as runShutdown, i as runAdmittedWork, r as registerShutdownParticipant } from "./shutdown-BIR-QBYM.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-HTi8KV7V.mjs";
3
+ import { t as runWorkScope } from "./workScope-BI72KXsI.mjs";
4
+ import { t as startRenewingLease } from "./renewingLease-Dp7wmzNN.mjs";
5
+ import { a as runShutdown, i as runAdmittedWork, r as registerShutdownParticipant } from "./shutdown-Dfy8La90.mjs";
6
6
  import fp from "fastify-plugin";
7
7
  import { civilDateOf, civilDateToInstant, isValidTimeZone, localTimeParts } from "@classytic/primitives/timezone";
8
8
  // src/plugins/dailyGate.ts
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as arcLog } from "./logger-BagW7_YA.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { t as arcLog } from "./logger-IL7Btm-N.mjs";
3
3
  // src/utils/schemaConverter.ts
4
4
  /**
5
5
  * Schema Converter — Detect-First, Convert-Only-When-Needed
@@ -1,17 +1,17 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { f as createError } from "./errors-3xaK0i9n.mjs";
3
- import { n as getUserRoles } from "./userHelpers-D4m_pLSC.mjs";
4
- import { b as isElevated, n as PUBLIC_SCOPE, u as getRequestScope, x as isMember } from "./types-BuV_cFqT.mjs";
5
- import { a as resolveEffectiveRoles, r as deriveHiddenFieldPermissions, t as applyFieldReadPermissions } from "./fields-DLFcJiDe.mjs";
6
- import { o as toJsonSchema } from "./schemaConverter-JEmU21fu.mjs";
7
- import { t as buildRequestScopeProjection } from "./projection-CmjGjFih.mjs";
8
- import { n as requestContext } from "./requestContext-DO9Qv0gw.mjs";
9
- import { n as isTenantPreparation } from "./tenantPreparation-BTGpblQW.mjs";
10
- import { n as evaluateAndApplyPermission } from "./authorizationDecision-BD8K4jdQ.mjs";
11
- import { t as executePipeline } from "./pipe-D1cq8hET.mjs";
12
- import { n as idempotencyConfigProblem, t as declaresIdempotencyFence } from "./requirement-C3GaQmkR.mjs";
13
- import { i as resolveResourceRateLimiter, r as recordUnenforcedRateLimit } from "./resourceRateLimit-KKn-sFhb.mjs";
14
- import { n as arcRouteValidatorCompiler } from "./routeValidator-BF7n34xV.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { f as createError } from "./errors-KBZ3tQk5.mjs";
3
+ import { n as getUserRoles } from "./userHelpers-Cp5zqlEN.mjs";
4
+ import { b as isElevated, n as PUBLIC_SCOPE, u as getRequestScope, x as isMember } from "./types-CcpISJe8.mjs";
5
+ import { a as resolveEffectiveRoles, r as deriveHiddenFieldPermissions, t as applyFieldReadPermissions } from "./fields-C5J8WTd2.mjs";
6
+ import { o as toJsonSchema } from "./schemaConverter-BOt_ed78.mjs";
7
+ import { t as buildRequestScopeProjection } from "./projection-DnZiFPPE.mjs";
8
+ import { n as requestContext } from "./requestContext-C_mbAm8o.mjs";
9
+ import { n as isTenantPreparation } from "./tenantPreparation-4e3qyb6q.mjs";
10
+ import { n as evaluateAndApplyPermission } from "./authorizationDecision-Dxj_cy6N.mjs";
11
+ import { t as executePipeline } from "./pipe-CMnKfdF4.mjs";
12
+ import { n as idempotencyConfigProblem, t as declaresIdempotencyFence } from "./requirement-C8OsWLYp.mjs";
13
+ import { i as resolveResourceRateLimiter, r as recordUnenforcedRateLimit } from "./resourceRateLimit-DhbQZjE2.mjs";
14
+ import { n as arcRouteValidatorCompiler } from "./routeValidator-DnQ2BGnH.mjs";
15
15
  import { isPaginatedResult, toCanonicalList } from "@classytic/repo-core/pagination";
16
16
  // src/core/fastifyAdapter.ts
17
17
  /** Type guard for Mongoose-like documents with toObject() */
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | 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
  // src/schemas/index.ts
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as parseJsonBody } from "../jsonBody-C0oREwUc.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { t as parseJsonBody } from "../jsonBody-rDPGT5A9.mjs";
3
3
  import fp from "fastify-plugin";
4
4
  // src/scim/errors.ts
5
5
  var ScimError = class extends Error {
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.50.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-BuV_cFqT.mjs";
3
- import { t as createTenantKeyGenerator } from "../rateLimitKey-igF1x64n.mjs";
4
- import { t as elevation_default } from "../elevation-XoY0C73T.mjs";
5
- import { t as resolveOrgFromHeader } from "../scope-CcTMRd7s.mjs";
1
+ /*! @classytic/arc v2.51.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-CcpISJe8.mjs";
3
+ import { t as createTenantKeyGenerator } from "../rateLimitKey-B1RxyGt3.mjs";
4
+ import { t as elevation_default } from "../elevation-XFu7J3aj.mjs";
5
+ import { t as resolveOrgFromHeader } from "../scope-btg-225w.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.50.0 | MIT | https://classytic.com */
2
- import { a as OrgAccessDeniedError, l as UnauthorizedError } from "./errors-3xaK0i9n.mjs";
3
- import { n as requireSingleHeaderValue } from "./headers-BROW65-r.mjs";
4
- import { n as getUserRoles } from "./userHelpers-D4m_pLSC.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { a as OrgAccessDeniedError, l as UnauthorizedError } from "./errors-KBZ3tQk5.mjs";
3
+ import { n as requireSingleHeaderValue } from "./headers-D5wrBLOk.mjs";
4
+ import { n as getUserRoles } from "./userHelpers-Cp5zqlEN.mjs";
5
5
  // 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.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  // 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.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  // src/utils/simpleEqualityMatcher.ts
3
3
  /**
4
4
  * `simpleEqualityMatcher` — a minimal, dialect-agnostic flat-key equality
@@ -1,10 +1,10 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
3
- import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-CH2Kuksc.mjs";
4
- import { t as arcLog } from "./logger-BagW7_YA.mjs";
5
- import { g as getUserId, n as PUBLIC_SCOPE } from "./types-BuV_cFqT.mjs";
6
- import { a as registerSseStats, r as openSseStream } from "./sseStream-DknHE2K5.mjs";
7
- import { a as promoteStreamTokenToHeader } from "./streaming-CcIpcx02.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-HTi8KV7V.mjs";
3
+ import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-Btmaf1MB.mjs";
4
+ import { t as arcLog } from "./logger-IL7Btm-N.mjs";
5
+ import { g as getUserId, n as PUBLIC_SCOPE } from "./types-CcpISJe8.mjs";
6
+ import { a as registerSseStats, r as openSseStream } from "./sseStream-hQxQjvre.mjs";
7
+ import { a as promoteStreamTokenToHeader } from "./streaming-CQiOktsh.mjs";
8
8
  import fp from "fastify-plugin";
9
9
  // src/plugins/sse.ts
10
10
  var sse_exports = /* @__PURE__ */ __exportAll({ default: () => sse_default });
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { n as forwardedStreamHeaders } from "./streaming-CcIpcx02.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { n as forwardedStreamHeaders } from "./streaming-CQiOktsh.mjs";
3
3
  // src/utils/sseStats.ts
4
4
  /** Per-instance stats providers behind one `sseStats` decorator. */
5
5
  const statsProviders = /* @__PURE__ */ new WeakMap();
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  // src/utils/store-helpers.ts
3
3
  /**
4
4
  * Classify an error thrown by `getOne` / `getById` / `update` as a
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  import { Readable } from "node:stream";
3
3
  // src/utils/streaming.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  // src/events/subscriberIdentity.ts
3
3
  const SUBSCRIBER_ID = Symbol.for("@classytic/arc/subscriber-id");
4
4
  /** Assign a deployment-stable identity for durable per-handler progress; never use an index. */
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { b as isElevated, c as getOrgId } from "./types-BuV_cFqT.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { b as isElevated, c as getOrgId } from "./types-CcpISJe8.mjs";
3
3
  // src/core/tenancy.ts
4
4
  function eventAudienceOf(scope) {
5
5
  const tenancy = resolveTenancy({ _scope: scope }, "organizationId");
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as conjoinPolicyFilters } from "./filter-merge-Bvjk_8dV.mjs";
3
- import { b as isElevated, c as getOrgId, d as getScopeContext, m as getTeamId, v as hasOrgAccess } from "./types-BuV_cFqT.mjs";
4
- import { d as createDomainError } from "./errors-3xaK0i9n.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { t as conjoinPolicyFilters } from "./filter-merge-DTjYoDrj.mjs";
3
+ import { b as isElevated, c as getOrgId, d as getScopeContext, m as getTeamId, v as hasOrgAccess } from "./types-CcpISJe8.mjs";
4
+ import { d as createDomainError } from "./errors-KBZ3tQk5.mjs";
5
5
  // src/permissions/tenantPreparation.ts
6
6
  /** Tenant preparation shared by HTTP middleware and direct transport invocation. */
7
7
  const PREPARATION = Symbol.for("arc.tenantPreparation");
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  import { afterAll, beforeAll, describe, expect, it } from "vitest";
3
3
  // src/testing/cleanupStoreContract.ts
4
4
  /**
@@ -1,13 +1,13 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { d as resolveModule, l as isLazyBridge, o as resolveModuleClosure } from "../plan-iEgaS5_H.mjs";
3
- import { h as asModulePorts, r as createApp } from "../createApp-Db9JRumw.mjs";
4
- import { n as getModuleExports } from "../module-lbEbHUfI.mjs";
5
- import { g as getUserId } from "../types-BuV_cFqT.mjs";
6
- import { t as defineAggregation } from "../defineAggregation-BskqRz8M.mjs";
7
- import { f as BaseController } from "../plugin-DsLr6L4O.mjs";
8
- import { t as defineResource } from "../defineResource-B2vTvKzW.mjs";
9
- import { t as CRUD_OPERATIONS } from "../constants-BZFsZwJh.mjs";
10
- import { E as requireOrgRole } from "../permissions-BJylQopQ.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { d as resolveModule, l as isLazyBridge, o as resolveModuleClosure } from "../plan-BvLJGm3U.mjs";
3
+ import { h as asModulePorts, r as createApp } from "../createApp-DpG26bCu.mjs";
4
+ import { n as getModuleExports } from "../module-KFxT1Iuk.mjs";
5
+ import { g as getUserId } from "../types-CcpISJe8.mjs";
6
+ import { t as defineAggregation } from "../defineAggregation-rI3EbZUg.mjs";
7
+ import { f as BaseController } from "../plugin-DYmu8uT4.mjs";
8
+ import { t as defineResource } from "../defineResource-5DcG_wlI.mjs";
9
+ import { t as CRUD_OPERATIONS } from "../constants-DH41jnNT.mjs";
10
+ import { E as requireOrgRole } from "../permissions-e5YMrFbm.mjs";
11
11
  import { runStorageContract } from "./storageContract.mjs";
12
12
  import Fastify from "fastify";
13
13
  import { mkdir, mkdtemp, readFile, readdir, rm, stat } from "node:fs/promises";
@@ -1873,7 +1873,7 @@ function pickDefaultAuth(authMode, callerAuth) {
1873
1873
  };
1874
1874
  }
1875
1875
  async function createTestApp(options = {}) {
1876
- const { createApp } = await import("../createApp-Db9JRumw.mjs").then((n) => n.i);
1876
+ const { createApp } = await import("../createApp-DpG26bCu.mjs").then((n) => n.i);
1877
1877
  const { resources = [], db = "in-memory", connectMongoose = false, authMode = "jwt", defaultOrgId, plugins, auth: callerAuth, ...appOptions } = options;
1878
1878
  let dbHandle;
1879
1879
  let dbUri;
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as claimedAttempts } from "../claimed-CQ4ZpD8K.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { t as claimedAttempts } from "../claimed-DJPk4VZr.mjs";
3
3
  import { OutboxConflictError, OutboxOwnershipError } from "@classytic/primitives/outbox";
4
4
  import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";
5
5
  // src/testing/outboxStoreContract.ts
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { c as declareModules, d as resolveModule, i as planModules, r as compositionProblems } from "../plan-iEgaS5_H.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { c as declareModules, d as resolveModule, i as planModules, r as compositionProblems } from "../plan-BvLJGm3U.mjs";
3
3
  // src/testing/requiredPorts.ts
4
4
  /**
5
5
  * Assert a module declares EXACTLY `ports` as required, and that composing it without any one of
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  import { afterAll, beforeAll, describe, expect, it } from "vitest";
3
3
  // src/testing/storageContract.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  import { createHash } from "node:crypto";
3
3
  // src/utils/operationIdentity.ts
4
4
  /** Security context included in idempotency identities across transports. */
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  // src/context/transactionContext.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  // src/utils/typeGuards.ts
3
3
  /** Check if fastify has the events plugin registered */
4
4
  function hasEvents(instance) {
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  export {};
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  export {};
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { l as UnauthorizedError, o as OrgRequiredError } from "./errors-3xaK0i9n.mjs";
3
- import { n as requireSingleHeaderValue } from "./headers-BROW65-r.mjs";
4
- import { t as getUserId$1 } from "./userHelpers-D4m_pLSC.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { l as UnauthorizedError, o as OrgRequiredError } from "./errors-KBZ3tQk5.mjs";
3
+ import { n as requireSingleHeaderValue } from "./headers-D5wrBLOk.mjs";
4
+ import { t as getUserId$1 } from "./userHelpers-Cp5zqlEN.mjs";
5
5
  // src/scope/types.ts
6
6
  /**
7
7
  * Request Scope — The One Standard
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as ArcError } from "../errors-3xaK0i9n.mjs";
3
- import { c as getOrgId, g as getUserId, i as getClientId } from "../types-BuV_cFqT.mjs";
4
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-D0A4kkrC.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { t as ArcError } from "../errors-KBZ3tQk5.mjs";
3
+ import { c as getOrgId, g as getUserId, i as getClientId } from "../types-CcpISJe8.mjs";
4
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-G9QXHov1.mjs";
5
5
  import { usagePeriod } from "@classytic/repo-core/usage";
6
6
  import fp from "fastify-plugin";
7
7
  // src/usage/requireQuota.ts
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
2
  // src/utils/userHelpers.ts
3
3
  /**
4
4
  * Extract a user ID from a user object. Accepts `id` or `_id` — returns
@@ -1,13 +1,13 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { a as OrgAccessDeniedError, c as ServiceUnavailableError, d as createDomainError, f as createError, i as NotFoundError, l as UnauthorizedError, n as ConflictError, o as OrgRequiredError, p as isArcError, r as ForbiddenError, s as RateLimitError, t as ArcError, u as ValidationError } from "../errors-3xaK0i9n.mjs";
3
- import { t as simpleEqualityMatcher } from "../simpleEqualityMatcher-DqqJqovq.mjs";
4
- import { n as requireSingleHeaderValue, t as getHeader } from "../headers-BROW65-r.mjs";
5
- import { n as getUserRoles, r as normalizeRoles, t as getUserId } from "../userHelpers-D4m_pLSC.mjs";
6
- import { A as MONGO_DIALECT, C as listResponse, D as responses, E as queryParams, O as ArcQueryParser, S as keysetListResponse, T as paginationSchema, _ as bareListResponse, a as defineGuard, b as getDefaultCrudSchemas, c as withCompensation, d as CircuitBreakerError, f as CircuitBreakerRegistry, g as aggregateListResponse, h as createCircuitBreakerRegistry, i as handleRaw, j as NEUTRAL_DIALECT, k as createQueryParser, l as RedisCircuitBreakerState, m as createCircuitBreaker, n as createReplayHub, o as defineErrorMapper, p as CircuitState, r as lastEventIdOf, s as defineCompensation, t as createStateMachine, u as CircuitBreaker, v as deleteResponse, w as offsetListResponse, x as getListQueryParams, y as errorContractSchema } from "../utils-CxLMXGn5.mjs";
7
- import { a as isZodSchema, i as isJsonSchema, n as convertRouteSchema, o as toJsonSchema, t as convertOpenApiSchemas } from "../schemaConverter-JEmU21fu.mjs";
8
- import { a as promoteStreamTokenToHeader, i as pipeUIMessageStreamToReply, n as forwardedStreamHeaders, r as isReadableStream, t as UI_MESSAGE_STREAM_HEADERS } from "../streaming-CcIpcx02.mjs";
9
- import { a as registerSseStats, i as createSseConnectionGauge, n as SSE_DEFAULT_MAX_BUFFERED_BYTES, r as openSseStream, t as SSE_DEFAULT_DRAIN_TIMEOUT_MS } from "../sseStream-DknHE2K5.mjs";
10
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-D0A4kkrC.mjs";
11
- import { i as runAdmittedWork, r as registerShutdownParticipant } from "../shutdown-BIR-QBYM.mjs";
12
- import { t as hasEvents } from "../typeGuards-C1o_XEyp.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { a as OrgAccessDeniedError, c as ServiceUnavailableError, d as createDomainError, f as createError, i as NotFoundError, l as UnauthorizedError, n as ConflictError, o as OrgRequiredError, p as isArcError, r as ForbiddenError, s as RateLimitError, t as ArcError, u as ValidationError } from "../errors-KBZ3tQk5.mjs";
3
+ import { t as simpleEqualityMatcher } from "../simpleEqualityMatcher-D5dOqbbj.mjs";
4
+ import { n as requireSingleHeaderValue, t as getHeader } from "../headers-D5wrBLOk.mjs";
5
+ import { n as getUserRoles, r as normalizeRoles, t as getUserId } from "../userHelpers-Cp5zqlEN.mjs";
6
+ import { A as MONGO_DIALECT, C as listResponse, D as responses, E as queryParams, O as ArcQueryParser, S as keysetListResponse, T as paginationSchema, _ as bareListResponse, a as defineGuard, b as getDefaultCrudSchemas, c as withCompensation, d as CircuitBreakerError, f as CircuitBreakerRegistry, g as aggregateListResponse, h as createCircuitBreakerRegistry, i as handleRaw, j as NEUTRAL_DIALECT, k as createQueryParser, l as RedisCircuitBreakerState, m as createCircuitBreaker, n as createReplayHub, o as defineErrorMapper, p as CircuitState, r as lastEventIdOf, s as defineCompensation, t as createStateMachine, u as CircuitBreaker, v as deleteResponse, w as offsetListResponse, x as getListQueryParams, y as errorContractSchema } from "../utils-dKN-_315.mjs";
7
+ import { a as isZodSchema, i as isJsonSchema, n as convertRouteSchema, o as toJsonSchema, t as convertOpenApiSchemas } from "../schemaConverter-BOt_ed78.mjs";
8
+ import { a as promoteStreamTokenToHeader, i as pipeUIMessageStreamToReply, n as forwardedStreamHeaders, r as isReadableStream, t as UI_MESSAGE_STREAM_HEADERS } from "../streaming-CQiOktsh.mjs";
9
+ import { a as registerSseStats, i as createSseConnectionGauge, n as SSE_DEFAULT_MAX_BUFFERED_BYTES, r as openSseStream, t as SSE_DEFAULT_DRAIN_TIMEOUT_MS } from "../sseStream-hQxQjvre.mjs";
10
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-G9QXHov1.mjs";
11
+ import { i as runAdmittedWork, r as registerShutdownParticipant } from "../shutdown-Dfy8La90.mjs";
12
+ import { t as hasEvents } from "../typeGuards-eoQLIOh6.mjs";
13
13
  export { ArcError, ArcQueryParser, CircuitBreaker, CircuitBreakerError, CircuitBreakerRegistry, CircuitState, ConflictError, ForbiddenError, MONGO_DIALECT, NEUTRAL_DIALECT, NotFoundError, OrgAccessDeniedError, OrgRequiredError, RateLimitError, RedisCircuitBreakerState, SSE_DEFAULT_DRAIN_TIMEOUT_MS, SSE_DEFAULT_MAX_BUFFERED_BYTES, ServiceUnavailableError, UI_MESSAGE_STREAM_HEADERS, UnauthorizedError, ValidationError, aggregateListResponse, bareListResponse, convertOpenApiSchemas, convertRouteSchema, createCircuitBreaker, createCircuitBreakerRegistry, createDomainError, createError, createQueryParser, createReplayHub, createSseConnectionGauge, createStateMachine, declareRuntimeCapability, defineCompensation, defineErrorMapper, defineGuard, deleteResponse, errorContractSchema, forwardedStreamHeaders, getDefaultCrudSchemas, getHeader, getListQueryParams, getUserId, getUserRoles, handleRaw, hasEvents, isArcError, isJsonSchema, isReadableStream, isZodSchema, keysetListResponse, lastEventIdOf, listResponse, normalizeRoles, offsetListResponse, openSseStream, paginationSchema, pipeUIMessageStreamToReply, promoteStreamTokenToHeader, queryParams, registerShutdownParticipant, registerSseStats, requireSingleHeaderValue, responses, runAdmittedWork, simpleEqualityMatcher, toJsonSchema, withCompensation };
@@ -1,9 +1,9 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as ArcError, u as ValidationError } from "./errors-3xaK0i9n.mjs";
3
- import { t as runObservingSend } from "./observeSend-BjilzlYl.mjs";
4
- import { h as RESERVED_QUERY_PARAMS } from "./constants-BZFsZwJh.mjs";
5
- import { t as arcLog } from "./logger-BagW7_YA.mjs";
6
- import { a as registerSseStats } from "./sseStream-DknHE2K5.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { t as ArcError, u as ValidationError } from "./errors-KBZ3tQk5.mjs";
3
+ import { t as runObservingSend } from "./observeSend-CY-sLanc.mjs";
4
+ import { h as RESERVED_QUERY_PARAMS } from "./constants-DH41jnNT.mjs";
5
+ import { t as arcLog } from "./logger-IL7Btm-N.mjs";
6
+ import { a as registerSseStats } from "./sseStream-hQxQjvre.mjs";
7
7
  import { errorContractSchema as errorContractSchema$1 } from "@classytic/repo-core/errors";
8
8
  import { readEnv } from "@classytic/primitives/environment";
9
9
  import { OPERATOR_DESCRIPTIONS, URL_OPERATORS, escapeRegex, isQueryGrammarError, readFilterClauses, readPageRequest, readSearch, readSelect, readSort } from "@classytic/repo-core/query-parser";
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
3
- import { x as pathTouchesBlocked } from "./plugin-DsLr6L4O.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-HTi8KV7V.mjs";
3
+ import { x as pathTouchesBlocked } from "./plugin-DYmu8uT4.mjs";
4
4
  // src/core/aggregation/normalize.ts
5
5
  /**
6
6
  * Framework cap on URL-driven aggregation limits when the host opts
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
3
- import { d as createDomainError } from "./errors-3xaK0i9n.mjs";
1
+ /*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-HTi8KV7V.mjs";
3
+ import { d as createDomainError } from "./errors-KBZ3tQk5.mjs";
4
4
  import fp from "fastify-plugin";
5
5
  // src/plugins/versioning.ts
6
6
  var versioning_exports = /* @__PURE__ */ __exportAll({ default: () => versioning_default });