@classytic/arc 2.50.0 → 2.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dist/{EventTransport-B18mcj_M.mjs → EventTransport-DeNze_-C.mjs} +2 -2
  2. package/dist/{HookSystem-FUBaLTRm.mjs → HookSystem-DTffXM1X.mjs} +2 -2
  3. package/dist/{ResourceRegistry-C5NM07fZ.mjs → ResourceRegistry-tlqXSZoK.mjs} +2 -2
  4. package/dist/{acquire-MHCnbDtH.mjs → acquire-7JKEkKnN.mjs} +1 -1
  5. package/dist/audit/index.mjs +4 -4
  6. package/dist/auth/audit.mjs +1 -1
  7. package/dist/auth/index.d.mts +30 -0
  8. package/dist/auth/index.mjs +172 -32
  9. package/dist/auth/redis-session.mjs +1 -1
  10. package/dist/auth/social/index.d.mts +42 -0
  11. package/dist/auth/social/index.mjs +311 -0
  12. package/dist/{authorizationDecision-BD8K4jdQ.mjs → authorizationDecision-DKmH4tZ-.mjs} +9 -7
  13. package/dist/{boundedMap-CuCwos_X.mjs → boundedMap-zxGBpXX0.mjs} +1 -1
  14. package/dist/{buildHandler-BttjNkTM.mjs → buildHandler-ZDV6LRZ_.mjs} +5 -5
  15. package/dist/cache/index.mjs +4 -4
  16. package/dist/{caching-CxUQLHfR.mjs → caching-DceUN9Xk.mjs} +2 -2
  17. package/dist/{claimed-CQ4ZpD8K.mjs → claimed-DsP5Hi_f.mjs} +1 -1
  18. package/dist/cleanup/index.mjs +4 -4
  19. package/dist/cli/commands/describe.mjs +3 -3
  20. package/dist/cli/commands/docs.mjs +3 -3
  21. package/dist/cli/commands/doctor.mjs +1 -1
  22. package/dist/cli/commands/generate.mjs +2 -2
  23. package/dist/cli/commands/init.mjs +2 -2
  24. package/dist/cli/commands/introspect.mjs +2 -2
  25. package/dist/cli/index.mjs +3 -3
  26. package/dist/{constants-BZFsZwJh.mjs → constants-Ca2IQFy2.mjs} +1 -1
  27. package/dist/context/index.mjs +5 -5
  28. package/dist/core/index.d.mts +1 -1
  29. package/dist/core/index.mjs +7 -7
  30. package/dist/{core-DWA1-5IE.mjs → core-M18RhMqi.mjs} +3 -3
  31. package/dist/{createActionRouter-fP3l2xVF.mjs → createActionRouter-zXlrwWVs.mjs} +5 -5
  32. package/dist/{createAggregationRouter-BJZeOmBa.mjs → createAggregationRouter-CN0Da9nC.mjs} +7 -7
  33. package/dist/{createApp-Db9JRumw.mjs → createApp-BC67ACu4.mjs} +29 -29
  34. package/dist/{defineAggregation-BskqRz8M.mjs → defineAggregation-DqAGb5oI.mjs} +1 -1
  35. package/dist/{defineResource-B2vTvKzW.mjs → defineResource-DC5UqkQv.mjs} +8 -8
  36. package/dist/discovery/index.mjs +1 -1
  37. package/dist/docs/index.mjs +3 -3
  38. package/dist/{elevation-XoY0C73T.mjs → elevation-DiXVg98q.mjs} +5 -5
  39. package/dist/encryption/index.d.mts +26 -1
  40. package/dist/encryption/index.mjs +56 -6
  41. package/dist/{errorHandler-BYI-JQMm.mjs → errorHandler-BUTm9P_f.mjs} +3 -3
  42. package/dist/{errors-3xaK0i9n.mjs → errors-DxpHZBlW.mjs} +1 -1
  43. package/dist/{eventPlugin-CVQ9ddnL.mjs → eventPlugin-ZsIQPRso.mjs} +8 -8
  44. package/dist/{eventTypes-UPYg7gW1.mjs → eventTypes-D-pFtqT1.mjs} +2 -2
  45. package/dist/events/index.mjs +8 -8
  46. package/dist/events/transports/redis-stream-entry.mjs +4 -4
  47. package/dist/events/transports/redis.mjs +2 -2
  48. package/dist/factory/index.d.mts +4 -4
  49. package/dist/factory/index.mjs +7 -7
  50. package/dist/{fastify-augmentation-baQc3MaO.d.mts → fastify-augmentation-CPReFhZ1.d.mts} +1 -1
  51. package/dist/{fieldTypes-CxRvCaaZ.mjs → fieldTypes-f-3TZgR3.mjs} +2 -2
  52. package/dist/{fields-DLFcJiDe.mjs → fields-kCbIDTjA.mjs} +1 -1
  53. package/dist/{filter-merge-Bvjk_8dV.mjs → filter-merge-UJCgjbZR.mjs} +1 -1
  54. package/dist/{generate-0OpCUjUv.mjs → generate-CLpmzbJ_.mjs} +2 -2
  55. package/dist/{headers-BROW65-r.mjs → headers-Bh47h0XH.mjs} +2 -2
  56. package/dist/{health-Cy6aOg1i.mjs → health-CEpgVAl7.mjs} +1 -1
  57. package/dist/{health-Cfh-kYI_.mjs → health-W4S2yFBL.mjs} +1 -1
  58. package/dist/hooks/index.mjs +2 -2
  59. package/dist/http-cache/index.mjs +4 -4
  60. package/dist/http-cache/purgers/cloudflare.mjs +2 -2
  61. package/dist/http-cache/purgers/fastly.mjs +2 -2
  62. package/dist/http-cache/testing/index.mjs +1 -1
  63. package/dist/idempotency/index.mjs +7 -7
  64. package/dist/idempotency/redis.mjs +2 -2
  65. package/dist/{index-DexdFs1a.d.mts → index-CSbDhif4.d.mts} +19 -1
  66. package/dist/{index-DKM2p5w5.d.mts → index-DCH08eqQ.d.mts} +1 -1
  67. package/dist/{index-Dhrks-hM.d.mts → index-yXXCsKl7.d.mts} +1 -1
  68. package/dist/index.d.mts +2 -2
  69. package/dist/index.mjs +11 -11
  70. package/dist/{init-D7PQcvvL.mjs → init-B43DXBpc.mjs} +22 -22
  71. package/dist/integrations/event-gateway.mjs +2 -2
  72. package/dist/integrations/index.mjs +1 -1
  73. package/dist/integrations/jobs/index.mjs +3 -3
  74. package/dist/integrations/mcp/index.mjs +2 -2
  75. package/dist/integrations/mcp/testing.mjs +2 -2
  76. package/dist/integrations/streamline.mjs +3 -3
  77. package/dist/integrations/webhooks.mjs +4 -4
  78. package/dist/integrations/websocket-pushref-redis.mjs +1 -1
  79. package/dist/integrations/websocket-redis.mjs +1 -1
  80. package/dist/integrations/websocket.mjs +2 -2
  81. package/dist/{jsonBody-C0oREwUc.mjs → jsonBody-CkKs6dA_.mjs} +2 -2
  82. package/dist/{keys-CGlPoVSn.mjs → keys-DHrHnT0f.mjs} +1 -1
  83. package/dist/{loadResources-Oi47dogA.mjs → loadResources-CFdzAWQZ.mjs} +3 -3
  84. package/dist/{loadResourcesFromEntry-BW-LexBz.mjs → loadResourcesFromEntry-DkoSiJsI.mjs} +2 -2
  85. package/dist/logger/index.mjs +2 -2
  86. package/dist/{logger-BagW7_YA.mjs → logger-DJwz_-Pl.mjs} +1 -1
  87. package/dist/{mcpPlugin-C6-wFsOX.mjs → mcpPlugin-CA_MDFlS.mjs} +21 -21
  88. package/dist/{memory-Bl7kv6TS.mjs → memory-B9CFHbA_.mjs} +3 -3
  89. package/dist/{metrics-CqnMJKrJ.mjs → metrics-DSKv-T9K.mjs} +3 -3
  90. package/dist/middleware/index.mjs +3 -3
  91. package/dist/migrations/index.mjs +2 -2
  92. package/dist/{module-lbEbHUfI.mjs → module-C0JCsnO7.mjs} +17 -2
  93. package/dist/{multipartBody-CqNezaB3.mjs → multipartBody-Bxz-q6hI.mjs} +1 -1
  94. package/dist/{observeSend-BjilzlYl.mjs → observeSend-DfNkdGww.mjs} +1 -1
  95. package/dist/{openapi-DXNbadgd.mjs → openapi-Dmp7Ipsi.mjs} +6 -6
  96. package/dist/outbox-admin/index.mjs +5 -5
  97. package/dist/{outbox-module-k5rIszQ4.mjs → outbox-module-vT6PaThj.mjs} +7 -7
  98. package/dist/permissions/index.mjs +7 -7
  99. package/dist/{permissions-BJylQopQ.mjs → permissions-Cga6KBOX.mjs} +9 -9
  100. package/dist/{pipe-D1cq8hET.mjs → pipe-CqPweKdL.mjs} +2 -2
  101. package/dist/pipeline/index.mjs +2 -2
  102. package/dist/{plan-iEgaS5_H.mjs → plan-CbDTFbTj.mjs} +1 -1
  103. package/dist/{plugin-DsLr6L4O.mjs → plugin-8Z1khbAI.mjs} +24 -24
  104. package/dist/plugins/index.d.mts +1 -1
  105. package/dist/plugins/index.mjs +18 -18
  106. package/dist/plugins/response-cache.mjs +4 -4
  107. package/dist/plugins/tracing-entry.mjs +2 -2
  108. package/dist/{pluralize-CX4ZvwCa.mjs → pluralize-D4vcPLVs.mjs} +1 -1
  109. package/dist/presets/filesUpload.mjs +5 -5
  110. package/dist/presets/index.mjs +2 -2
  111. package/dist/presets/multiTenant.mjs +5 -5
  112. package/dist/presets/search.mjs +2 -2
  113. package/dist/{presets-D_suT4OY.mjs → presets-D28IABZe.mjs} +4 -4
  114. package/dist/{projection-CmjGjFih.mjs → projection-aHCtDQQ9.mjs} +2 -2
  115. package/dist/{purger.types-CZwkTZ7B.mjs → purger.types-CNFmEtFu.mjs} +1 -1
  116. package/dist/{queryCachePlugin-BDOPEAmH.mjs → queryCachePlugin-CwpEjCwz.mjs} +6 -6
  117. package/dist/{rateLimitKey-igF1x64n.mjs → rateLimitKey-D9dl3FQn.mjs} +1 -1
  118. package/dist/{realtime-Cq_ugiWw.mjs → realtime-Dvu8ES2z.mjs} +11 -11
  119. package/dist/registry/index.d.mts +1 -1
  120. package/dist/registry/index.mjs +3 -3
  121. package/dist/{registry-DmF9Akvn.mjs → registry-DmxbzW7-.mjs} +2 -2
  122. package/dist/{relay-DA89IhFt.mjs → relay-CEaCmUfG.mjs} +5 -5
  123. package/dist/{renewingLease-DBtGUt8T.mjs → renewingLease-g2FjB3im.mjs} +1 -1
  124. package/dist/{replyHelpers-CUbeUc5q.mjs → replyHelpers-CSByAX_Z.mjs} +2 -2
  125. package/dist/{requestContext-DO9Qv0gw.mjs → requestContext-yc7MSgmq.mjs} +1 -1
  126. package/dist/{requirement-C3GaQmkR.mjs → requirement-Dm8njSoC.mjs} +1 -1
  127. package/dist/{resourceRateLimit-KKn-sFhb.mjs → resourceRateLimit-PQaY3HW1.mjs} +2 -2
  128. package/dist/{rolldown-runtime-Ck1Tj4Ax.mjs → rolldown-runtime-BBBkGgwA.mjs} +1 -1
  129. package/dist/{routeValidator-BF7n34xV.mjs → routeValidator-fuG51bQA.mjs} +1 -1
  130. package/dist/{runtimeCapabilities-D0A4kkrC.mjs → runtimeCapabilities-B8IT7xiQ.mjs} +1 -1
  131. package/dist/{schedules-CLrQRSTt.mjs → schedules-0-aS4jDV.mjs} +5 -5
  132. package/dist/{schemaConverter-JEmU21fu.mjs → schemaConverter-Cs3SwP4R.mjs} +2 -2
  133. package/dist/{schemaIR-wOffQlbq.mjs → schemaIR-By8XiNeE.mjs} +14 -14
  134. package/dist/schemas/index.mjs +1 -1
  135. package/dist/scim/index.mjs +2 -2
  136. package/dist/scope/index.mjs +5 -5
  137. package/dist/{scope-CcTMRd7s.mjs → scope-BWNAlBj0.mjs} +4 -4
  138. package/dist/{shutdown-BIR-QBYM.mjs → shutdown-Cf-27xsS.mjs} +1 -1
  139. package/dist/{simpleEqualityMatcher-DqqJqovq.mjs → simpleEqualityMatcher-e-dgJcUO.mjs} +1 -1
  140. package/dist/{sse-OEuPpgss.mjs → sse-C3bj5qWi.mjs} +7 -7
  141. package/dist/{sseStream-DknHE2K5.mjs → sseStream-BYZbpFDa.mjs} +2 -2
  142. package/dist/{store-helpers-D4vtEXt2.mjs → store-helpers-B9HierHY.mjs} +1 -1
  143. package/dist/{streaming-CcIpcx02.mjs → streaming-EN8NJWxr.mjs} +1 -1
  144. package/dist/{subscriberIdentity-PO6kimAl.mjs → subscriberIdentity-DSqCh38x.mjs} +1 -1
  145. package/dist/{tenancy-CH2Kuksc.mjs → tenancy-CAqjGQcQ.mjs} +2 -2
  146. package/dist/{tenantPreparation-BTGpblQW.mjs → tenantPreparation-CVBWarqs.mjs} +4 -4
  147. package/dist/testing/cleanupStoreContract.mjs +1 -1
  148. package/dist/testing/index.d.mts +2 -2
  149. package/dist/testing/index.mjs +11 -11
  150. package/dist/testing/outboxStoreContract.mjs +2 -2
  151. package/dist/testing/requiredPorts.mjs +2 -2
  152. package/dist/testing/storageContract.mjs +1 -1
  153. package/dist/{timing-Dii5X7AP.mjs → timing-CKI_Oyub.mjs} +1 -1
  154. package/dist/{transactionContext-DMPhYEOt.mjs → transactionContext-D0UZFoSy.mjs} +1 -1
  155. package/dist/{typeGuards-C1o_XEyp.mjs → typeGuards-CLYkmBLT.mjs} +1 -1
  156. package/dist/types/index.mjs +1 -1
  157. package/dist/types/storage.mjs +1 -1
  158. package/dist/{types-BuV_cFqT.mjs → types-Cunc4shv.mjs} +4 -4
  159. package/dist/usage/index.mjs +4 -4
  160. package/dist/{userHelpers-D4m_pLSC.mjs → userHelpers-cT5j1kgp.mjs} +1 -1
  161. package/dist/utils/index.mjs +12 -12
  162. package/dist/{utils-CxLMXGn5.mjs → utils-DlNkm1dI.mjs} +6 -6
  163. package/dist/{validate-CZ975J8N.mjs → validate-63QThRoS.mjs} +3 -3
  164. package/dist/{versioning-B2_8SBZo.mjs → versioning-f2YGmh4i.mjs} +3 -3
  165. package/dist/{workScope-B3W3r35s.mjs → workScope-DwspXz70.mjs} +2 -2
  166. package/package.json +17 -12
  167. package/skills/arc/references/auth-better-auth.md +27 -1
@@ -1,12 +1,12 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
3
- 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-BuV_cFqT.mjs";
4
- import { i as normalizeToDecision } from "./authorizationDecision-BD8K4jdQ.mjs";
5
- import { t as conjoinPolicyFilters } from "./filter-merge-Bvjk_8dV.mjs";
6
- import { n as getUserRoles } from "./userHelpers-D4m_pLSC.mjs";
7
- import { t as MemoryCacheStore } from "./memory-Bl7kv6TS.mjs";
8
- import { t as arcLog } from "./logger-BagW7_YA.mjs";
9
- import { n as declareRuntimeCapability } from "./runtimeCapabilities-D0A4kkrC.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
3
+ 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-Cunc4shv.mjs";
4
+ import { i as normalizeToDecision } from "./authorizationDecision-DKmH4tZ-.mjs";
5
+ import { t as conjoinPolicyFilters } from "./filter-merge-UJCgjbZR.mjs";
6
+ import { n as getUserRoles } from "./userHelpers-cT5j1kgp.mjs";
7
+ import { t as MemoryCacheStore } from "./memory-B9CFHbA_.mjs";
8
+ import { t as arcLog } from "./logger-DJwz_-Pl.mjs";
9
+ import { n as declareRuntimeCapability } from "./runtimeCapabilities-B8IT7xiQ.mjs";
10
10
  import { randomUUID } from "node:crypto";
11
11
  // src/permissions/context.ts
12
12
  /**
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { r as ForbiddenError } from "./errors-3xaK0i9n.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { r as ForbiddenError } from "./errors-DxpHZBlW.mjs";
3
3
  // src/pipeline/pipe.ts
4
4
  /**
5
5
  * Compose pipeline steps into an ordered array.
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { n as pipe, t as executePipeline } from "../pipe-D1cq8hET.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { n as pipe, t as executePipeline } from "../pipe-CqPweKdL.mjs";
3
3
  // src/pipeline/guard.ts
4
4
  /**
5
5
  * Create a named guard.
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
2
  import { createEventRouter, matchEventPattern } from "@classytic/primitives/events";
3
3
  // src/factory/module/graph.ts
4
4
  /**
@@ -1,23 +1,23 @@
1
- /*! @classytic/arc v2.50.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-BZFsZwJh.mjs";
3
- import { t as arcLog } from "./logger-BagW7_YA.mjs";
4
- import { t as conjoinPolicyFilters } from "./filter-merge-Bvjk_8dV.mjs";
5
- import { d as createDomainError, f as createError, i as NotFoundError, p as isArcError, r as ForbiddenError, u as ValidationError } from "./errors-3xaK0i9n.mjs";
6
- import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-DqqJqovq.mjs";
7
- import { n as requireSingleHeaderValue } from "./headers-BROW65-r.mjs";
8
- import { n as getUserRoles, t as getUserId } from "./userHelpers-D4m_pLSC.mjs";
9
- import { b as isElevated, c as getOrgId, n as PUBLIC_SCOPE, x as isMember } from "./types-BuV_cFqT.mjs";
10
- import { r as resolveTenancy } from "./tenancy-CH2Kuksc.mjs";
11
- import { t as buildQueryKey } from "./keys-CGlPoVSn.mjs";
12
- import { t as transactionContext } from "./transactionContext-DMPhYEOt.mjs";
13
- import { a as resolveEffectiveRoles, n as applyFieldWritePermissions } from "./fields-DLFcJiDe.mjs";
14
- import { O as ArcQueryParser, b as getDefaultCrudSchemas } from "./utils-CxLMXGn5.mjs";
15
- import { n as convertRouteSchema, r as ensureSchemaConverter, t as convertOpenApiSchemas } from "./schemaConverter-JEmU21fu.mjs";
16
- import { i as pipeUIMessageStreamToReply, r as isReadableStream } from "./streaming-CcIpcx02.mjs";
17
- import { C as createFastifyHandler, S as createCrudHandlers, _ as resolveRoutePreHandlers, a as resolveActionPermission, c as buildRouteConfig, f as buildPipelineHandler, g as buildRouteHooks, h as buildCrudPermissionMw, l as resolveRouterPluginMw, n as normalizeSchemaIR, o as tryRegisterRoute, p as resolvePipelineSteps, s as buildRateLimitConfig, u as selectPluginMw, v as routeHookOptions, w as createRequestContext, x as buildArcDecorator, y as buildAuthMiddleware } from "./schemaIR-wOffQlbq.mjs";
18
- import { a as withoutTenantInjection } from "./tenantPreparation-BTGpblQW.mjs";
19
- import { t as hasEvents } from "./typeGuards-C1o_XEyp.mjs";
20
- import { n as idempotencyConfigProblem } from "./requirement-C3GaQmkR.mjs";
1
+ /*! @classytic/arc v2.52.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-Ca2IQFy2.mjs";
3
+ import { t as arcLog } from "./logger-DJwz_-Pl.mjs";
4
+ import { t as conjoinPolicyFilters } from "./filter-merge-UJCgjbZR.mjs";
5
+ import { d as createDomainError, f as createError, i as NotFoundError, p as isArcError, r as ForbiddenError, u as ValidationError } from "./errors-DxpHZBlW.mjs";
6
+ import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-e-dgJcUO.mjs";
7
+ import { n as requireSingleHeaderValue } from "./headers-Bh47h0XH.mjs";
8
+ import { n as getUserRoles, t as getUserId } from "./userHelpers-cT5j1kgp.mjs";
9
+ import { b as isElevated, c as getOrgId, n as PUBLIC_SCOPE, x as isMember } from "./types-Cunc4shv.mjs";
10
+ import { r as resolveTenancy } from "./tenancy-CAqjGQcQ.mjs";
11
+ import { t as buildQueryKey } from "./keys-DHrHnT0f.mjs";
12
+ import { t as transactionContext } from "./transactionContext-D0UZFoSy.mjs";
13
+ import { a as resolveEffectiveRoles, n as applyFieldWritePermissions } from "./fields-kCbIDTjA.mjs";
14
+ import { O as ArcQueryParser, b as getDefaultCrudSchemas } from "./utils-DlNkm1dI.mjs";
15
+ import { n as convertRouteSchema, r as ensureSchemaConverter, t as convertOpenApiSchemas } from "./schemaConverter-Cs3SwP4R.mjs";
16
+ import { i as pipeUIMessageStreamToReply, r as isReadableStream } from "./streaming-EN8NJWxr.mjs";
17
+ import { C as createFastifyHandler, S as createCrudHandlers, _ as resolveRoutePreHandlers, a as resolveActionPermission, c as buildRouteConfig, f as buildPipelineHandler, g as buildRouteHooks, h as buildCrudPermissionMw, l as resolveRouterPluginMw, n as normalizeSchemaIR, o as tryRegisterRoute, p as resolvePipelineSteps, s as buildRateLimitConfig, u as selectPluginMw, v as routeHookOptions, w as createRequestContext, x as buildArcDecorator, y as buildAuthMiddleware } from "./schemaIR-By8XiNeE.mjs";
18
+ import { a as withoutTenantInjection } from "./tenantPreparation-CVBWarqs.mjs";
19
+ import { t as hasEvents } from "./typeGuards-CLYkmBLT.mjs";
20
+ import { n as idempotencyConfigProblem } from "./requirement-Dm8njSoC.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";
@@ -3216,7 +3216,7 @@ function buildResourcePlugin(resource) {
3216
3216
  extensions: resource.extensions
3217
3217
  });
3218
3218
  if (resource.actions && Object.keys(resource.actions).length > 0) {
3219
- const { createActionRouter } = await import("./createActionRouter-fP3l2xVF.mjs").then((n) => n.n);
3219
+ const { createActionRouter } = await import("./createActionRouter-zXlrwWVs.mjs").then((n) => n.n);
3220
3220
  const actionConfig = normalizeActionsToRouterConfig(resource.actions, resource.actionPermissions, resource.tag, resource.permissions, resource.name, typedInstance.log);
3221
3221
  const actionTarget = resolveActionTargetFence(resource, actionConfig);
3222
3222
  createActionRouter(typedInstance, {
@@ -3237,9 +3237,9 @@ function buildResourcePlugin(resource) {
3237
3237
  }
3238
3238
  if (resource.aggregations && Object.keys(resource.aggregations).length > 0) {
3239
3239
  const [{ createAggregationRouter }, { adapterSupportsAggregate, ArcAggregationConfigError }, { fieldTypesFromOpenApiSchemas }] = await Promise.all([
3240
- import("./createAggregationRouter-BJZeOmBa.mjs"),
3241
- import("./validate-CZ975J8N.mjs").then((n) => n.r),
3242
- import("./fieldTypes-CxRvCaaZ.mjs").then((n) => n.r)
3240
+ import("./createAggregationRouter-CN0Da9nC.mjs"),
3241
+ import("./validate-63QThRoS.mjs").then((n) => n.r),
3242
+ import("./fieldTypes-f-3TZgR3.mjs").then((n) => n.r)
3243
3243
  ]);
3244
3244
  const repoForAgg = resource.controller?.repository ?? resource.repository;
3245
3245
  if (!adapterSupportsAggregate(repoForAgg)) {
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { t as AnyRecord } from "../base-HXNgPQww.mjs";
3
- import { i as _default, n as ArcCorePluginOptions, r as PluginMeta, t as ArcCore } from "../fastify-augmentation-baQc3MaO.mjs";
3
+ import { i as _default, n as ArcCorePluginOptions, r as PluginMeta, t as ArcCore } from "../fastify-augmentation-CPReFhZ1.mjs";
4
4
  import { i as registerSseStats, n as SseConnectionGauge, r as createSseConnectionGauge, t as SSEStats } from "../sseStats-DQqNN385.mjs";
5
5
  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-B07RgD27.mjs";
6
6
  import { J as MiddlewareConfig, Ot as RouteDefinition, U as PresetHook, X as RouteSchemaOptions } from "../index-DLCcLUQT.mjs";
@@ -1,21 +1,21 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { m as MUTATION_OPERATIONS } from "../constants-BZFsZwJh.mjs";
3
- import { n as requestContext } from "../requestContext-DO9Qv0gw.mjs";
4
- import { t as HookSystem } from "../HookSystem-FUBaLTRm.mjs";
5
- import { t as ResourceRegistry } from "../ResourceRegistry-C5NM07fZ.mjs";
6
- import { c as getOrgId } from "../types-BuV_cFqT.mjs";
7
- import { t as hasEvents } from "../typeGuards-C1o_XEyp.mjs";
8
- import { a as registerSseStats, i as createSseConnectionGauge } from "../sseStream-DknHE2K5.mjs";
9
- import { t as caching_default } from "../caching-CxUQLHfR.mjs";
10
- import { i as createMemoryDailyLedger, r as createDailyGate, t as schedules_default } from "../schedules-CLrQRSTt.mjs";
11
- import { n as errorHandlerPlugin, t as defaultIsDuplicateKeyError } from "../errorHandler-BYI-JQMm.mjs";
12
- import { c as createRequestIdGenerator, l as requestId_default, n as health_default, u as sanitizeRequestId } from "../health-Cfh-kYI_.mjs";
13
- import { t as metrics_default } from "../metrics-CqnMJKrJ.mjs";
14
- import { t as arcLog } from "../logger-BagW7_YA.mjs";
15
- import { t as realtime_default } from "../realtime-Cq_ugiWw.mjs";
16
- import { t as replyHelpersPlugin } from "../replyHelpers-CUbeUc5q.mjs";
17
- import { t as sse_default } from "../sse-OEuPpgss.mjs";
18
- import { t as versioning_default } from "../versioning-B2_8SBZo.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { m as MUTATION_OPERATIONS } from "../constants-Ca2IQFy2.mjs";
3
+ import { n as requestContext } from "../requestContext-yc7MSgmq.mjs";
4
+ import { t as HookSystem } from "../HookSystem-DTffXM1X.mjs";
5
+ import { t as ResourceRegistry } from "../ResourceRegistry-tlqXSZoK.mjs";
6
+ import { c as getOrgId } from "../types-Cunc4shv.mjs";
7
+ import { t as hasEvents } from "../typeGuards-CLYkmBLT.mjs";
8
+ import { a as registerSseStats, i as createSseConnectionGauge } from "../sseStream-BYZbpFDa.mjs";
9
+ import { t as caching_default } from "../caching-DceUN9Xk.mjs";
10
+ import { i as createMemoryDailyLedger, r as createDailyGate, t as schedules_default } from "../schedules-0-aS4jDV.mjs";
11
+ import { n as errorHandlerPlugin, t as defaultIsDuplicateKeyError } from "../errorHandler-BUTm9P_f.mjs";
12
+ import { c as createRequestIdGenerator, l as requestId_default, n as health_default, u as sanitizeRequestId } from "../health-W4S2yFBL.mjs";
13
+ import { t as metrics_default } from "../metrics-DSKv-T9K.mjs";
14
+ import { t as arcLog } from "../logger-DJwz_-Pl.mjs";
15
+ import { t as realtime_default } from "../realtime-Dvu8ES2z.mjs";
16
+ import { t as replyHelpersPlugin } from "../replyHelpers-CSByAX_Z.mjs";
17
+ import { t as sse_default } from "../sse-C3bj5qWi.mjs";
18
+ import { t as versioning_default } from "../versioning-f2YGmh4i.mjs";
19
19
  import fp from "fastify-plugin";
20
20
  import { performance as performance$1 } from "node:perf_hooks";
21
21
  // src/core/arcCorePlugin.ts
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { n as evictToSize, r as touch, t as assertCapacity } from "../boundedMap-CuCwos_X.mjs";
3
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-D0A4kkrC.mjs";
4
- import { t as hasEvents } from "../typeGuards-C1o_XEyp.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { n as evictToSize, r as touch, t as assertCapacity } from "../boundedMap-zxGBpXX0.mjs";
3
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-B8IT7xiQ.mjs";
4
+ import { t as hasEvents } from "../typeGuards-CLYkmBLT.mjs";
5
5
  import fp from "fastify-plugin";
6
6
  // src/plugins/response-cache.ts
7
7
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
2
  import { createRequire } from "node:module";
3
3
  import fp from "fastify-plugin";
4
4
  // 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.50.0";
62
+ const resolvedVersion = serviceVersion ?? "2.52.0";
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.50.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
2
  // src/utils/pluralize.ts
3
3
  /**
4
4
  * Lightweight English pluralization for the Arc CLI.
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { t as multipartBody } from "../multipartBody-CqNezaB3.mjs";
3
- import { B as requireAuth, F as allowPublic } from "../permissions-BJylQopQ.mjs";
4
- import { c as getOrgId, g as getUserId } from "../types-BuV_cFqT.mjs";
5
- import { i as NotFoundError, u as ValidationError } from "../errors-3xaK0i9n.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { t as multipartBody } from "../multipartBody-Bxz-q6hI.mjs";
3
+ import { B as requireAuth, F as allowPublic } from "../permissions-Cga6KBOX.mjs";
4
+ import { c as getOrgId, g as getUserId } from "../types-Cunc4shv.mjs";
5
+ import { i as NotFoundError, u as ValidationError } from "../errors-DxpHZBlW.mjs";
6
6
  // 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.50.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-D_suT4OY.mjs";
1
+ /*! @classytic/arc v2.52.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-D28IABZe.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.50.0 | MIT | https://classytic.com */
2
- import "../constants-BZFsZwJh.mjs";
3
- import { i as tagTenantPreparation, t as applyTenantPreparation } from "../tenantPreparation-BTGpblQW.mjs";
4
- import { u as getRequestScope } from "../types-BuV_cFqT.mjs";
5
- import { t as ArcError } from "../errors-3xaK0i9n.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import "../constants-Ca2IQFy2.mjs";
3
+ import { i as tagTenantPreparation, t as applyTenantPreparation } from "../tenantPreparation-CVBWarqs.mjs";
4
+ import { u as getRequestScope } from "../types-Cunc4shv.mjs";
5
+ import { t as ArcError } from "../errors-DxpHZBlW.mjs";
6
6
  // src/presets/multiTenant.ts
7
7
  function createTenantMiddleware(specs, mode) {
8
8
  const preparation = {
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
2
- import { B as requireAuth, F as allowPublic } from "../permissions-BJylQopQ.mjs";
1
+ /*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
2
+ import { B as requireAuth, F as allowPublic } from "../permissions-Cga6KBOX.mjs";
3
3
  // src/presets/search.ts
4
4
  const BUILTINS = [
5
5
  {
@@ -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.52.0 | MIT | https://classytic.com */
2
+ import { B as requireAuth, F as allowPublic, U as requireRoles } from "./permissions-Cga6KBOX.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-Cunc4shv.mjs";
5
+ import { l as UnauthorizedError } from "./errors-DxpHZBlW.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.52.0 | MIT | https://classytic.com */
2
+ import { c as getOrgId, f as getScopeContextMap, g as getUserId, m as getTeamId, x as isMember } from "./types-Cunc4shv.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.52.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.52.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
3
+ import { n as declareRuntimeCapability } from "./runtimeCapabilities-B8IT7xiQ.mjs";
4
+ import { t as hasEvents } from "./typeGuards-CLYkmBLT.mjs";
5
+ import { t as MemoryCacheStore } from "./memory-B9CFHbA_.mjs";
6
+ import { i as versionKey, r as tagVersionKey } from "./keys-DHrHnT0f.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.52.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.52.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
3
+ import { n as arcRouteValidatorCompiler } from "./routeValidator-fuG51bQA.mjs";
4
+ import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-CAqjGQcQ.mjs";
5
+ import { t as arcLog } from "./logger-DJwz_-Pl.mjs";
6
+ import { n as evaluateAndApplyPermission } from "./authorizationDecision-DKmH4tZ-.mjs";
7
+ import { t as applyFieldReadPermissions } from "./fields-kCbIDTjA.mjs";
8
+ import { n as getUserRoles } from "./userHelpers-cT5j1kgp.mjs";
9
+ import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-e-dgJcUO.mjs";
10
+ import { a as registerSseStats, r as openSseStream } from "./sseStream-BYZbpFDa.mjs";
11
+ import { a as promoteStreamTokenToHeader } from "./streaming-EN8NJWxr.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,5 +1,5 @@
1
1
 
2
- import "../fastify-augmentation-baQc3MaO.mjs";
2
+ import "../fastify-augmentation-CPReFhZ1.mjs";
3
3
  import { F as ResourceDefinition, G as CrudRouteKey, M as ResourceRegistry, N as RouteRow, S as IntrospectionPluginOptions, V as ResolvedTenantPurge, j as RegisterOptions, o as RegistryEntry } from "../index-DLCcLUQT.mjs";
4
4
  import { TenantPurgeProgress, TenantPurgeStrategy } from "@classytic/repo-core/repository";
5
5
  import { FastifyPluginAsync } from "fastify";
@@ -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.52.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-DmxbzW7-.mjs";
3
+ import { t as ResourceRegistry } from "../ResourceRegistry-tlqXSZoK.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.52.0 | MIT | https://classytic.com */
2
+ import { t as CRUD_OPERATIONS } from "./constants-Ca2IQFy2.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.52.0 | MIT | https://classytic.com */
2
+ import { t as arcLog } from "./logger-DJwz_-Pl.mjs";
3
+ import { n as evictToSize, r as touch } from "./boundedMap-zxGBpXX0.mjs";
4
+ import { n as createSafeGetOne, t as createIsDuplicateKeyError } from "./store-helpers-B9HierHY.mjs";
5
+ import { t as claimedAttempts } from "./claimed-DsP5Hi_f.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.52.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.52.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.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.52.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.52.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.52.0 | MIT | https://classytic.com */
2
+ import { t as createTenantKeyGenerator } from "./rateLimitKey-D9dl3FQn.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.52.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.52.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.52.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.52.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
3
+ import { t as runWorkScope } from "./workScope-DwspXz70.mjs";
4
+ import { t as startRenewingLease } from "./renewingLease-g2FjB3im.mjs";
5
+ import { a as runShutdown, i as runAdmittedWork, r as registerShutdownParticipant } from "./shutdown-Cf-27xsS.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.52.0 | MIT | https://classytic.com */
2
+ import { t as arcLog } from "./logger-DJwz_-Pl.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.52.0 | MIT | https://classytic.com */
2
+ import { f as createError } from "./errors-DxpHZBlW.mjs";
3
+ import { n as getUserRoles } from "./userHelpers-cT5j1kgp.mjs";
4
+ import { b as isElevated, n as PUBLIC_SCOPE, u as getRequestScope, x as isMember } from "./types-Cunc4shv.mjs";
5
+ import { a as resolveEffectiveRoles, r as deriveHiddenFieldPermissions, t as applyFieldReadPermissions } from "./fields-kCbIDTjA.mjs";
6
+ import { o as toJsonSchema } from "./schemaConverter-Cs3SwP4R.mjs";
7
+ import { t as buildRequestScopeProjection } from "./projection-aHCtDQQ9.mjs";
8
+ import { n as requestContext } from "./requestContext-yc7MSgmq.mjs";
9
+ import { n as isTenantPreparation } from "./tenantPreparation-CVBWarqs.mjs";
10
+ import { n as evaluateAndApplyPermission } from "./authorizationDecision-DKmH4tZ-.mjs";
11
+ import { t as executePipeline } from "./pipe-CqPweKdL.mjs";
12
+ import { n as idempotencyConfigProblem, t as declaresIdempotencyFence } from "./requirement-Dm8njSoC.mjs";
13
+ import { i as resolveResourceRateLimiter, r as recordUnenforcedRateLimit } from "./resourceRateLimit-PQaY3HW1.mjs";
14
+ import { n as arcRouteValidatorCompiler } from "./routeValidator-fuG51bQA.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.52.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.52.0 | MIT | https://classytic.com */
2
+ import { t as parseJsonBody } from "../jsonBody-CkKs6dA_.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.52.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-Cunc4shv.mjs";
3
+ import { t as createTenantKeyGenerator } from "../rateLimitKey-D9dl3FQn.mjs";
4
+ import { t as elevation_default } from "../elevation-DiXVg98q.mjs";
5
+ import { t as resolveOrgFromHeader } from "../scope-BWNAlBj0.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.52.0 | MIT | https://classytic.com */
2
+ import { a as OrgAccessDeniedError, l as UnauthorizedError } from "./errors-DxpHZBlW.mjs";
3
+ import { n as requireSingleHeaderValue } from "./headers-Bh47h0XH.mjs";
4
+ import { n as getUserRoles } from "./userHelpers-cT5j1kgp.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.52.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.52.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.52.0 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
3
+ import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-CAqjGQcQ.mjs";
4
+ import { t as arcLog } from "./logger-DJwz_-Pl.mjs";
5
+ import { g as getUserId, n as PUBLIC_SCOPE } from "./types-Cunc4shv.mjs";
6
+ import { a as registerSseStats, r as openSseStream } from "./sseStream-BYZbpFDa.mjs";
7
+ import { a as promoteStreamTokenToHeader } from "./streaming-EN8NJWxr.mjs";
8
8
  import fp from "fastify-plugin";
9
9
  // src/plugins/sse.ts
10
10
  var sse_exports = /* @__PURE__ */ __exportAll({ default: () => sse_default });