@classytic/arc 2.36.0 → 2.37.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/dist/{BaseController-CTJKm6Cb.mjs → BaseController-Chkf0Aiw.mjs} +16 -15
  2. package/dist/{EventTransport-D23Uvhg4.mjs → EventTransport-CFdtK25P.mjs} +1 -1
  3. package/dist/{HookSystem-DgwxNZTx.mjs → HookSystem-Csy31WS-.mjs} +2 -2
  4. package/dist/{ResourceRegistry-DNuYVbmv.mjs → ResourceRegistry-OQA13slI.mjs} +2 -2
  5. package/dist/{actionPermissions-D97DniUQ.mjs → actionPermissions-DGGqqSIV.mjs} +6 -6
  6. package/dist/audit/index.d.mts +1 -1
  7. package/dist/audit/index.mjs +2 -2
  8. package/dist/auth/audit.mjs +1 -1
  9. package/dist/auth/index.d.mts +1 -1
  10. package/dist/auth/index.mjs +79 -28
  11. package/dist/auth/redis-session.mjs +1 -1
  12. package/dist/{authorizationDecision-EsiY3nUu.mjs → authorizationDecision-BzZi2bsf.mjs} +2 -2
  13. package/dist/{buildHandler-Dohd2JuY.mjs → buildHandler-CIz0NsGS.mjs} +4 -4
  14. package/dist/cache/index.mjs +4 -4
  15. package/dist/{caching-CP3GLJ7U.mjs → caching-DldVgnC9.mjs} +2 -2
  16. package/dist/cleanup/index.d.mts +2 -2
  17. package/dist/cleanup/index.mjs +4 -4
  18. package/dist/cli/commands/describe.d.mts +1 -1
  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-DUoKAGYD.mjs → constants-DDKf25s4.mjs} +1 -1
  27. package/dist/context/index.mjs +3 -3
  28. package/dist/core/index.d.mts +2 -2
  29. package/dist/core/index.mjs +7 -7
  30. package/dist/{core-DTXsiNTJ.mjs → core-uHQonaHf.mjs} +3 -3
  31. package/dist/{createActionRouter-CZz6JO93.mjs → createActionRouter-C22Xn11N.mjs} +7 -7
  32. package/dist/{createAggregationRouter-DKrGv_EC.mjs → createAggregationRouter-DgyksLHH.mjs} +7 -7
  33. package/dist/{defineAggregation-CpQfcM8R.mjs → defineAggregation-B1m-45Fe.mjs} +1 -1
  34. package/dist/{defineResource-DWzjyxb2.mjs → defineResource-DS3Uj2-8.mjs} +18 -18
  35. package/dist/discovery/index.mjs +1 -1
  36. package/dist/docs/index.d.mts +1 -1
  37. package/dist/docs/index.mjs +3 -3
  38. package/dist/{elevation-D_cmo80j.mjs → elevation-9X0lGzTQ.mjs} +4 -4
  39. package/dist/encryption/index.mjs +3 -3
  40. package/dist/{errorHandler-2RT0hLSI.mjs → errorHandler-BmEGKyO9.mjs} +4 -4
  41. package/dist/{errors-DDKni6Tz.mjs → errors-CbxCF9M0.mjs} +1 -1
  42. package/dist/{eventPlugin-c3YwGzz9.mjs → eventPlugin-B1ahehZH.mjs} +5 -5
  43. package/dist/events/index.d.mts +1 -1
  44. package/dist/events/index.mjs +5 -5
  45. package/dist/events/transports/redis-stream-entry.mjs +1 -1
  46. package/dist/events/transports/redis.mjs +1 -1
  47. package/dist/factory/index.d.mts +4 -4
  48. package/dist/factory/index.mjs +5 -5
  49. package/dist/{fastify-augmentation-Bk_9PoiV.d.mts → fastify-augmentation-CRsNNhuo.d.mts} +3 -3
  50. package/dist/{fields-DdP225wt.mjs → fields-f_MdWDl_.mjs} +1 -1
  51. package/dist/{generate-B1bKdcV9.mjs → generate-DxWn-XnM.mjs} +2 -2
  52. package/dist/{headers-DKslnhey.mjs → headers-DivLPMHe.mjs} +2 -2
  53. package/dist/{health-k6NODS8f.mjs → health-W_BjgWf0.mjs} +1 -1
  54. package/dist/hooks/index.d.mts +1 -1
  55. package/dist/hooks/index.mjs +2 -2
  56. package/dist/idempotency/index.mjs +4 -4
  57. package/dist/idempotency/redis.mjs +1 -1
  58. package/dist/{index-C01wWGJt.d.mts → index-BqRfP1kT.d.mts} +10 -1
  59. package/dist/{index-RdpLP71b.d.mts → index-CEmPspAB.d.mts} +2 -4
  60. package/dist/{index-C50BUxKs.d.mts → index-DCxxRwLC.d.mts} +1 -1
  61. package/dist/index.d.mts +3 -3
  62. package/dist/index.mjs +11 -11
  63. package/dist/{init-LuGxIbQ_.mjs → init-BJ6fdYnp.mjs} +1 -1
  64. package/dist/integrations/event-gateway.mjs +2 -2
  65. package/dist/integrations/index.d.mts +1 -1
  66. package/dist/integrations/index.mjs +1 -1
  67. package/dist/integrations/jobs/index.mjs +2 -2
  68. package/dist/integrations/mcp/index.d.mts +2 -2
  69. package/dist/integrations/mcp/index.mjs +2 -2
  70. package/dist/integrations/mcp/testing.d.mts +1 -1
  71. package/dist/integrations/mcp/testing.mjs +2 -2
  72. package/dist/integrations/streamline.mjs +3 -3
  73. package/dist/integrations/webhooks.d.mts +1 -1
  74. package/dist/integrations/webhooks.mjs +3 -3
  75. package/dist/integrations/websocket-pushref-redis.mjs +1 -1
  76. package/dist/integrations/websocket-redis.mjs +1 -1
  77. package/dist/integrations/websocket.mjs +1 -1
  78. package/dist/{interface-B7awDx3b.mjs → interface-DeLndJ8G.mjs} +1 -1
  79. package/dist/{jsonBody-CiHih3ZU.mjs → jsonBody-kApktjTc.mjs} +2 -2
  80. package/dist/{keys-BcNl12HN.mjs → keys-B1MgfDWi.mjs} +1 -1
  81. package/dist/{loadResources-DGlfRQc9.mjs → loadResources-ma-Aaxp1.mjs} +2 -2
  82. package/dist/{loadResourcesFromEntry-VYPGSas8.mjs → loadResourcesFromEntry-xszlyXTs.mjs} +2 -2
  83. package/dist/logger/index.mjs +1 -1
  84. package/dist/{mcpPlugin-NxSlc-Ks.mjs → mcpPlugin-97HuFA46.mjs} +15 -15
  85. package/dist/{memory-BU-C-MV3.mjs → memory-DvASzOn3.mjs} +2 -2
  86. package/dist/{metrics-7_1GbJpl.mjs → metrics-Dx-nkDE5.mjs} +2 -2
  87. package/dist/middleware/index.d.mts +1 -1
  88. package/dist/middleware/index.mjs +3 -3
  89. package/dist/migrations/index.mjs +2 -2
  90. package/dist/{module-CQNHzE7g.mjs → module-CNKk_twm.mjs} +1 -1
  91. package/dist/{multipartBody-Bi5yqW0M.mjs → multipartBody-TDaYOHGZ.mjs} +1 -1
  92. package/dist/{openapi-RpNbPBL-.mjs → openapi-473gZ-8x.mjs} +6 -6
  93. package/dist/outbox-admin/index.d.mts +1 -1
  94. package/dist/outbox-admin/index.mjs +4 -4
  95. package/dist/{outbox-module-b1TyDGGi.d.mts → outbox-module-BbdaMyqy.d.mts} +1 -1
  96. package/dist/{outbox-module-ClcFrq98.mjs → outbox-module-DOAmyXOb.mjs} +4 -4
  97. package/dist/permissions/index.mjs +5 -5
  98. package/dist/{permissions-DgPrZsJh.mjs → permissions-DnAc6zoZ.mjs} +6 -6
  99. package/dist/{pipe-Cjy1UiXX.mjs → pipe-BoV-z4db.mjs} +2 -2
  100. package/dist/pipeline/index.d.mts +1 -1
  101. package/dist/pipeline/index.mjs +2 -2
  102. package/dist/plugins/index.d.mts +3 -3
  103. package/dist/plugins/index.mjs +16 -16
  104. package/dist/plugins/response-cache.mjs +2 -2
  105. package/dist/plugins/tracing-entry.mjs +2 -2
  106. package/dist/{pluralize-B7m0dPm8.mjs → pluralize-BiU5ocWw.mjs} +1 -1
  107. package/dist/{preloadResources-BuutdWgr.d.mts → preloadResources-DHkyk3QN.d.mts} +3 -3
  108. package/dist/{preloadResources-CjnW4iIX.mjs → preloadResources-DJ7Lli0a.mjs} +21 -21
  109. package/dist/presets/filesUpload.d.mts +1 -1
  110. package/dist/presets/filesUpload.mjs +5 -5
  111. package/dist/presets/index.d.mts +1 -1
  112. package/dist/presets/index.mjs +2 -2
  113. package/dist/presets/multiTenant.d.mts +1 -1
  114. package/dist/presets/multiTenant.mjs +3 -3
  115. package/dist/presets/search.d.mts +1 -1
  116. package/dist/presets/search.mjs +2 -2
  117. package/dist/{presets-CsGg8B58.mjs → presets-BMxH-Bb7.mjs} +4 -4
  118. package/dist/{projection-koISNyQo.mjs → projection-CRCM5S9T.mjs} +2 -2
  119. package/dist/{queryCachePlugin-DHueQT9O.mjs → queryCachePlugin-Cl3zLG7g.mjs} +5 -5
  120. package/dist/{rateLimitKey-Bma8VXDO.mjs → rateLimitKey-D4_rjP1K.mjs} +1 -1
  121. package/dist/{realtime-BBoC91Bz.mjs → realtime-BWuHi-UI.mjs} +9 -9
  122. package/dist/{registerRoute-BTgORTlR.mjs → registerRoute-mvm6zY2H.mjs} +5 -5
  123. package/dist/registry/index.d.mts +2 -2
  124. package/dist/registry/index.mjs +3 -3
  125. package/dist/{registry-BzvRCYS6.mjs → registry-3maEt__c.mjs} +2 -2
  126. package/dist/{renewingLease-CgIGh0Ab.mjs → renewingLease-C1-GAUpr.mjs} +1 -1
  127. package/dist/{replyHelpers-BN16KPHr.mjs → replyHelpers-DVcUoled.mjs} +2 -2
  128. package/dist/{requestContext-B93dmpf0.mjs → requestContext-KzIdSmN2.mjs} +1 -1
  129. package/dist/{rolldown-runtime-JJWfp8rp.mjs → rolldown-runtime-NVzJrC-o.mjs} +1 -1
  130. package/dist/{runtimeCapabilities-jK99Ciw_.mjs → runtimeCapabilities-OrGatf7r.mjs} +1 -1
  131. package/dist/{schedules-CKKEL21P.mjs → schedules-DeRI03eo.mjs} +31 -5
  132. package/dist/{schemaConverter-gg0_aUPF.mjs → schemaConverter-cXTayNOW.mjs} +1 -1
  133. package/dist/{schemaIR-CngYvpCF.mjs → schemaIR-Cc9ZPVs2.mjs} +2 -2
  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-B1RsHdjF.mjs → scope-C2r7_WGs.mjs} +4 -4
  138. package/dist/{simpleEqualityMatcher-_9NAMHUD.mjs → simpleEqualityMatcher-Cr1F8jKZ.mjs} +1 -1
  139. package/dist/{sse-Bxt03Hk5.mjs → sse-BmZCVRGH.mjs} +5 -5
  140. package/dist/{sseStream-BMHTLlhR.mjs → sseStream-nNPqvOeK.mjs} +2 -2
  141. package/dist/{store-helpers-Brt8OxWZ.mjs → store-helpers-C1r3-6M0.mjs} +1 -1
  142. package/dist/{streaming-CiTJW8kZ.mjs → streaming-BxZDlH01.mjs} +1 -1
  143. package/dist/{subscribe-helpers-B4fNHRNc.mjs → subscribe-helpers-Dca7Fcz2.mjs} +2 -2
  144. package/dist/sync/changelog.mjs +1 -1
  145. package/dist/testing/cleanupStoreContract.mjs +1 -1
  146. package/dist/testing/index.d.mts +4 -4
  147. package/dist/testing/index.mjs +10 -10
  148. package/dist/testing/outboxStoreContract.mjs +1 -1
  149. package/dist/testing/storageContract.mjs +1 -1
  150. package/dist/{transactionContext-D2HwJM2z.mjs → transactionContext-6F7Gkbxg.mjs} +1 -1
  151. package/dist/{typeGuards-IE1laMDf.mjs → typeGuards-BrXgbFi-.mjs} +1 -1
  152. package/dist/types/index.d.mts +1 -1
  153. package/dist/types/index.mjs +1 -1
  154. package/dist/types/storage.mjs +1 -1
  155. package/dist/{types-DDD5RKTu.d.mts → types-BMa2EPtv.d.mts} +9 -0
  156. package/dist/{types-B8lwJv9Q.mjs → types-khJmBErP.mjs} +4 -4
  157. package/dist/{types-BXnTOsXP.d.mts → types-rzNprqbE.d.mts} +1 -1
  158. package/dist/usage/index.mjs +0 -0
  159. package/dist/{userHelpers-xQAi5bPF.mjs → userHelpers-Bi97zMEl.mjs} +1 -1
  160. package/dist/utils/index.d.mts +2 -2
  161. package/dist/utils/index.mjs +11 -11
  162. package/dist/{utils-DgNFsJ2c.mjs → utils-WlLDIKuw.mjs} +1230 -1230
  163. package/dist/{validate-DI3L5V9w.mjs → validate-pMke_boy.mjs} +2 -2
  164. package/dist/{versioning-COpAyfpZ.mjs → versioning-CFK3c04-.mjs} +3 -3
  165. package/package.json +11 -6
  166. package/skills/arc/references/auth.md +5 -2
  167. package/skills/arc/references/production.md +733 -733
  168. package/skills/arc-code-review/references/migration-recipes.md +16 -7
@@ -1,20 +1,20 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { p as MUTATION_OPERATIONS, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS } from "./constants-DUoKAGYD.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { p as MUTATION_OPERATIONS, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS } from "./constants-DDKf25s4.mjs";
3
3
  import { arcLog } from "./logger/index.mjs";
4
- import { r as ForbiddenError } from "./errors-DDKni6Tz.mjs";
5
- import { n as getUserRoles } from "./userHelpers-xQAi5bPF.mjs";
6
- import { b as isElevated, n as PUBLIC_SCOPE, x as isMember } from "./types-B8lwJv9Q.mjs";
7
- import { d as isWriteVerbCapable, p as DEFAULT_FIELD_WRITE_DENIAL_POLICY, t as BaseController, u as detectOverriddenWriteSlots } from "./BaseController-CTJKm6Cb.mjs";
8
- import { a as selectPluginMw, c as buildRouteHooks, d as buildAuthMiddleware, i as resolveRouterPluginMw, l as resolveRoutePreHandlers, n as buildRateLimitConfig, p as buildArcDecorator, r as buildRouteConfig, s as buildCrudPermissionMw, t as tryRegisterRoute, u as routeHookOptions } from "./registerRoute-BTgORTlR.mjs";
9
- import { i as resolveEffectiveRoles, n as applyFieldWritePermissions } from "./fields-DdP225wt.mjs";
10
- import { c as getDefaultCrudSchemas } from "./utils-DgNFsJ2c.mjs";
11
- import { n as convertRouteSchema, r as ensureSchemaConverter, t as convertOpenApiSchemas } from "./schemaConverter-gg0_aUPF.mjs";
12
- import { i as pipeUIMessageStreamToReply, r as isReadableStream } from "./streaming-CiTJW8kZ.mjs";
13
- import { t as hasEvents } from "./typeGuards-IE1laMDf.mjs";
14
- import { a as createCrudHandlers, i as resolvePipelineSteps, o as createFastifyHandler, r as buildPipelineHandler, s as createRequestContext, t as resolveActionPermission } from "./actionPermissions-D97DniUQ.mjs";
15
- import { B as requireAuth } from "./permissions-DgPrZsJh.mjs";
16
- import { r as getAvailablePresets, t as applyPresets } from "./presets-CsGg8B58.mjs";
17
- import { t as pluralize } from "./pluralize-B7m0dPm8.mjs";
4
+ import { r as ForbiddenError } from "./errors-CbxCF9M0.mjs";
5
+ import { n as getUserRoles } from "./userHelpers-Bi97zMEl.mjs";
6
+ import { b as isElevated, n as PUBLIC_SCOPE, x as isMember } from "./types-khJmBErP.mjs";
7
+ import { d as isWriteVerbCapable, p as DEFAULT_FIELD_WRITE_DENIAL_POLICY, t as BaseController, u as detectOverriddenWriteSlots } from "./BaseController-Chkf0Aiw.mjs";
8
+ import { v as getDefaultCrudSchemas } from "./utils-WlLDIKuw.mjs";
9
+ import { i as resolveEffectiveRoles, n as applyFieldWritePermissions } from "./fields-f_MdWDl_.mjs";
10
+ import { n as convertRouteSchema, r as ensureSchemaConverter, t as convertOpenApiSchemas } from "./schemaConverter-cXTayNOW.mjs";
11
+ import { i as pipeUIMessageStreamToReply, r as isReadableStream } from "./streaming-BxZDlH01.mjs";
12
+ import { a as createCrudHandlers, i as resolvePipelineSteps, o as createFastifyHandler, r as buildPipelineHandler, s as createRequestContext, t as resolveActionPermission } from "./actionPermissions-DGGqqSIV.mjs";
13
+ import { a as selectPluginMw, c as buildRouteHooks, d as buildAuthMiddleware, i as resolveRouterPluginMw, l as resolveRoutePreHandlers, n as buildRateLimitConfig, p as buildArcDecorator, r as buildRouteConfig, s as buildCrudPermissionMw, t as tryRegisterRoute, u as routeHookOptions } from "./registerRoute-mvm6zY2H.mjs";
14
+ import { t as hasEvents } from "./typeGuards-BrXgbFi-.mjs";
15
+ import { B as requireAuth } from "./permissions-DnAc6zoZ.mjs";
16
+ import { r as getAvailablePresets, t as applyPresets } from "./presets-BMxH-Bb7.mjs";
17
+ import { t as pluralize } from "./pluralize-BiU5ocWw.mjs";
18
18
  import { isReadOnlyRepo } from "@classytic/repo-core/repository";
19
19
  //#region src/core/middlewares/fieldWrite.ts
20
20
  /**
@@ -1425,7 +1425,7 @@ function buildResourcePlugin(resource) {
1425
1425
  extensions: resource.extensions
1426
1426
  });
1427
1427
  if (resource.actions && Object.keys(resource.actions).length > 0) {
1428
- const { createActionRouter } = await import("./createActionRouter-CZz6JO93.mjs").then((n) => n.n);
1428
+ const { createActionRouter } = await import("./createActionRouter-C22Xn11N.mjs").then((n) => n.n);
1429
1429
  createActionRouter(typedInstance, {
1430
1430
  ...normalizeActionsToRouterConfig(resource.actions, resource.actionPermissions, resource.tag, resource.permissions, resource.name, typedInstance.log),
1431
1431
  resourceName: resource.name,
@@ -1440,7 +1440,7 @@ function buildResourcePlugin(resource) {
1440
1440
  });
1441
1441
  }
1442
1442
  if (resource.aggregations && Object.keys(resource.aggregations).length > 0) {
1443
- const [{ createAggregationRouter }, { adapterSupportsAggregate, ArcAggregationConfigError }] = await Promise.all([import("./createAggregationRouter-DKrGv_EC.mjs"), import("./validate-DI3L5V9w.mjs").then((n) => n.r)]);
1443
+ const [{ createAggregationRouter }, { adapterSupportsAggregate, ArcAggregationConfigError }] = await Promise.all([import("./createAggregationRouter-DgyksLHH.mjs"), import("./validate-pMke_boy.mjs").then((n) => n.r)]);
1444
1444
  const repoForAgg = resource.controller?.repository ?? resource.repository;
1445
1445
  if (!adapterSupportsAggregate(repoForAgg)) {
1446
1446
  const undispatchable = Object.entries(resource.aggregations).filter(([, cfg]) => !cfg.materialized).map(([name]) => name);
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
2
  import { readdir } from "node:fs/promises";
3
3
  import { extname, join, resolve } from "node:path";
4
4
  import { pathToFileURL } from "node:url";
@@ -1,5 +1,5 @@
1
1
 
2
- import { p as RegistryEntry } from "../index-C01wWGJt.mjs";
2
+ import { p as RegistryEntry } from "../index-BqRfP1kT.mjs";
3
3
  import { t as ExternalOpenApiPaths } from "../externalPaths-CmGOxOtD.mjs";
4
4
  import { FastifyPluginAsync } from "fastify";
5
5
  //#region src/docs/openapi/types.d.ts
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { n as getUserRoles } from "../userHelpers-xQAi5bPF.mjs";
3
- import { n as openApiPlugin, r as openapi_default, t as buildOpenApiSpec } from "../openapi-RpNbPBL-.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { n as getUserRoles } from "../userHelpers-Bi97zMEl.mjs";
3
+ import { n as openApiPlugin, r as openapi_default, t as buildOpenApiSpec } from "../openapi-473gZ-8x.mjs";
4
4
  import fp from "fastify-plugin";
5
5
  //#region src/docs/scalar.ts
6
6
  const scalarPlugin = async (fastify, opts = {}) => {
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-JJWfp8rp.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-NVzJrC-o.mjs";
3
3
  import { arcLog } from "./logger/index.mjs";
4
- import { n as requireSingleHeaderValue } from "./headers-DKslnhey.mjs";
5
- import { n as getUserRoles } from "./userHelpers-xQAi5bPF.mjs";
4
+ import { n as requireSingleHeaderValue } from "./headers-DivLPMHe.mjs";
5
+ import { n as getUserRoles } from "./userHelpers-Bi97zMEl.mjs";
6
6
  import fp from "fastify-plugin";
7
7
  //#region src/scope/elevation.ts
8
8
  var elevation_exports = /* @__PURE__ */ __exportAll({
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { t as ArcError } from "../errors-DDKni6Tz.mjs";
3
- import { t as parseJsonBody } from "../jsonBody-CiHih3ZU.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { t as ArcError } from "../errors-CbxCF9M0.mjs";
3
+ import { t as parseJsonBody } from "../jsonBody-kApktjTc.mjs";
4
4
  import { createCipheriv, createDecipheriv, randomBytes } from "node:crypto";
5
5
  import fp from "fastify-plugin";
6
6
  //#region src/encryption/fieldCipher.ts
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-JJWfp8rp.mjs";
3
- import { m as statusToArcCode, p as isArcError } from "./errors-DDKni6Tz.mjs";
4
- import { isHttpError, toErrorContract } from "@classytic/repo-core/errors";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-NVzJrC-o.mjs";
3
+ import { m as statusToArcCode, p as isArcError } from "./errors-CbxCF9M0.mjs";
5
4
  import { isProductionEnv } from "@classytic/primitives/environment";
5
+ import { isHttpError, toErrorContract } from "@classytic/repo-core/errors";
6
6
  import fp from "fastify-plugin";
7
7
  //#region src/plugins/errorHandler.ts
8
8
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
2
  //#region src/utils/errors.ts
3
3
  /**
4
4
  * Base Arc Error. Implements the canonical `HttpError` contract — `status`
@@ -1,9 +1,9 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-JJWfp8rp.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-NVzJrC-o.mjs";
3
3
  import { arcLog } from "./logger/index.mjs";
4
- import { d as createDomainError } from "./errors-DDKni6Tz.mjs";
5
- import { n as requestContext } from "./requestContext-B93dmpf0.mjs";
6
- import { n as MemoryEventTransport, r as createEvent, t as ARC_EVENT_TRANSPORT } from "./EventTransport-D23Uvhg4.mjs";
4
+ import { d as createDomainError } from "./errors-CbxCF9M0.mjs";
5
+ import { n as requestContext } from "./requestContext-KzIdSmN2.mjs";
6
+ import { n as MemoryEventTransport, r as createEvent, t as ARC_EVENT_TRANSPORT } from "./EventTransport-CFdtK25P.mjs";
7
7
  import { isProductionEnv } from "@classytic/primitives/environment";
8
8
  import fp from "fastify-plugin";
9
9
  //#region src/events/retry.ts
@@ -1,7 +1,7 @@
1
1
 
2
2
  import { i as EventLogger, n as DomainEvent, o as MemoryEventTransport, r as EventHandler, s as MemoryEventTransportOptions } from "../EventTransport-BEVP50ka.mjs";
3
3
  import { a as withRetry, c as EventDefinitionOutput, d as EventSchema, f as ValidationResult, i as createDeadLetterPublisher, l as EventRegistry, m as defineEvent, n as eventPlugin, o as CustomValidator, p as createEventRegistry, r as RetryOptions, s as EventDefinitionInput, t as EventPluginOptions, u as EventRegistryOptions } from "../eventPlugin-B47sfCJ8.mjs";
4
- import { a as EventOutbox, c as OutboxRelayErrorKind, i as MemoryOutboxStore, l as RelayResult, n as OutboxModuleOptions, o as EventOutboxOptions, r as createOutboxModule, s as OutboxRelayErrorHandler, t as OutboxModuleExports } from "../outbox-module-b1TyDGGi.mjs";
4
+ import { a as EventOutbox, c as OutboxRelayErrorKind, i as MemoryOutboxStore, l as RelayResult, n as OutboxModuleOptions, o as EventOutboxOptions, r as createOutboxModule, s as OutboxRelayErrorHandler, t as OutboxModuleExports } from "../outbox-module-BbdaMyqy.mjs";
5
5
  import { RedisEventTransportOptions, RedisLike } from "./transports/redis.mjs";
6
6
  import { r as RedisStreamTransportOptions, t as RedisStreamLike } from "../redis-stream-mwLWlfHG.mjs";
7
7
  import { OutboxStore } from "@classytic/primitives/outbox";
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { n as MemoryEventTransport } from "../EventTransport-D23Uvhg4.mjs";
3
- import { a as createEventRegistry, i as wrapWithSchema, n as subscribeWithSchema, o as defineEvent, r as wrapWithBoundary, t as subscribeWithBoundary } from "../subscribe-helpers-B4fNHRNc.mjs";
4
- import { i as withRetry, r as createDeadLetterPublisher, t as eventPlugin } from "../eventPlugin-c3YwGzz9.mjs";
5
- import { i as exponentialBackoff, n as EventOutbox, r as repositoryAsOutboxStore, t as createOutboxModule } from "../outbox-module-ClcFrq98.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { n as MemoryEventTransport } from "../EventTransport-CFdtK25P.mjs";
3
+ import { a as createEventRegistry, i as wrapWithSchema, n as subscribeWithSchema, o as defineEvent, r as wrapWithBoundary, t as subscribeWithBoundary } from "../subscribe-helpers-Dca7Fcz2.mjs";
4
+ import { i as withRetry, r as createDeadLetterPublisher, t as eventPlugin } from "../eventPlugin-B1ahehZH.mjs";
5
+ import { i as exponentialBackoff, n as EventOutbox, r as repositoryAsOutboxStore, t as createOutboxModule } from "../outbox-module-DOAmyXOb.mjs";
6
6
  import { MemoryOutboxStore } from "@classytic/primitives/memory-outbox";
7
7
  //#region src/events/eventTypes.ts
8
8
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
2
  import sjson from "secure-json-parse";
3
3
  //#region src/events/transports/redis-stream.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
2
  import sjson from "secure-json-parse";
3
3
  //#region src/events/transports/redis.ts
4
4
  /**
@@ -1,8 +1,8 @@
1
1
 
2
- import { _ as HealthCheck, a as ModuleContribution, c as LoadResourcesOptions, d as loadResources, i as EventHandlerDefinition, l as ResourceLike, n as ArcModuleInput, o as ModuleDisposer, r as ArcModuleRegistry, s as ModuleSetupContext, t as ArcModule, u as ResourceModule } from "../types-DDD5RKTu.mjs";
3
- import { _ as collectModuleScheduledJobs, a as lazyModuleExports, c as getModuleState, d as resolveModule, f as orderModules, g as collectModuleHealthChecks, h as extendModule, i as hasModuleExports, l as hasModule, m as ModuleExtension, n as getModuleExports, o as lazyRequiredModuleExports, p as subscribeModuleEventHandlers, r as getOptionalModuleExports, s as ModuleState, t as defineModule, u as resolveContribution, v as collectModuleWorkflows } from "../index-C50BUxKs.mjs";
4
- import { c as ResolvedResourceDescriptor, l as describeResolvedModule, o as ResolvedModuleDescriptor, s as ResolvedModuleLifecycle } from "../fastify-augmentation-Bk_9PoiV.mjs";
5
- import { a as RawBodyOptions, c as BetterAuthOption, d as JwtAuthOption, i as MultipartOptions, l as CustomAuthenticatorOption, n as preloadResourcesAsync, o as UnderPressureOptions, r as CreateAppOptions, s as AuthOption, t as preloadResources, u as CustomPluginAuthOption } from "../preloadResources-BuutdWgr.mjs";
2
+ import { _ as HealthCheck, a as ModuleContribution, c as LoadResourcesOptions, d as loadResources, i as EventHandlerDefinition, l as ResourceLike, n as ArcModuleInput, o as ModuleDisposer, r as ArcModuleRegistry, s as ModuleSetupContext, t as ArcModule, u as ResourceModule } from "../types-BMa2EPtv.mjs";
3
+ import { _ as collectModuleScheduledJobs, a as lazyModuleExports, c as getModuleState, d as resolveModule, f as orderModules, g as collectModuleHealthChecks, h as extendModule, i as hasModuleExports, l as hasModule, m as ModuleExtension, n as getModuleExports, o as lazyRequiredModuleExports, p as subscribeModuleEventHandlers, r as getOptionalModuleExports, s as ModuleState, t as defineModule, u as resolveContribution, v as collectModuleWorkflows } from "../index-DCxxRwLC.mjs";
4
+ import { c as ResolvedResourceDescriptor, l as describeResolvedModule, o as ResolvedModuleDescriptor, s as ResolvedModuleLifecycle } from "../fastify-augmentation-CRsNNhuo.mjs";
5
+ import { a as RawBodyOptions, c as BetterAuthOption, d as JwtAuthOption, i as MultipartOptions, l as CustomAuthenticatorOption, n as preloadResourcesAsync, o as UnderPressureOptions, r as CreateAppOptions, s as AuthOption, t as preloadResources, u as CustomPluginAuthOption } from "../preloadResources-DHkyk3QN.mjs";
6
6
  import { FastifyInstance, FastifyServerOptions } from "fastify";
7
7
  //#region src/factory/createApp.d.ts
8
8
  /**
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { r as mergeHealthChecks, t as healthPlugin } from "../health-k6NODS8f.mjs";
3
- import { S as resolveModule, _ as describeResolvedModule, a as createApp, b as collectModuleWorkflows, c as edgePreset, d as testingPreset, f as workerPreset, g as subscribeModuleEventHandlers, h as orderModules, i as DEFAULT_LOGGER_REDACT_PATHS, l as getPreset, m as hasModule, n as preloadResourcesAsync, p as getModuleState, r as ArcFactory, s as developmentPreset, t as preloadResources, u as productionPreset, v as collectModuleHealthChecks, x as resolveContribution, y as collectModuleScheduledJobs } from "../preloadResources-CjnW4iIX.mjs";
4
- import { a as lazyModuleExports, i as hasModuleExports, n as getModuleExports, o as lazyRequiredModuleExports, r as getOptionalModuleExports, t as defineModule } from "../module-CQNHzE7g.mjs";
5
- import { t as loadResources } from "../loadResources-DGlfRQc9.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { r as mergeHealthChecks, t as healthPlugin } from "../health-W_BjgWf0.mjs";
3
+ import { S as resolveModule, _ as describeResolvedModule, a as createApp, b as collectModuleWorkflows, c as edgePreset, d as testingPreset, f as workerPreset, g as subscribeModuleEventHandlers, h as orderModules, i as DEFAULT_LOGGER_REDACT_PATHS, l as getPreset, m as hasModule, n as preloadResourcesAsync, p as getModuleState, r as ArcFactory, s as developmentPreset, t as preloadResources, u as productionPreset, v as collectModuleHealthChecks, x as resolveContribution, y as collectModuleScheduledJobs } from "../preloadResources-DJ7Lli0a.mjs";
4
+ import { a as lazyModuleExports, i as hasModuleExports, n as getModuleExports, o as lazyRequiredModuleExports, r as getOptionalModuleExports, t as defineModule } from "../module-CNKk_twm.mjs";
5
+ import { t as loadResources } from "../loadResources-ma-Aaxp1.mjs";
6
6
  //#region src/factory/module/extend.ts
7
7
  /** Concatenate two contributions, resolving factories only when arc asks. */
8
8
  function mergeContribution(own, extra) {
@@ -1,8 +1,8 @@
1
1
 
2
- import { on as HookSystem, z as ResourceRegistry } from "./index-C01wWGJt.mjs";
2
+ import { on as HookSystem, z as ResourceRegistry } from "./index-BqRfP1kT.mjs";
3
3
  import { t as ExternalOpenApiPaths } from "./externalPaths-CmGOxOtD.mjs";
4
- import { _ as HealthCheck, f as ScheduleDefinition, r as ArcModuleRegistry, t as ArcModule } from "./types-DDD5RKTu.mjs";
5
- import { s as ModuleState } from "./index-C50BUxKs.mjs";
4
+ import { _ as HealthCheck, f as ScheduleDefinition, r as ArcModuleRegistry, t as ArcModule } from "./types-BMa2EPtv.mjs";
5
+ import { s as ModuleState } from "./index-DCxxRwLC.mjs";
6
6
  import { FastifyPluginAsync } from "fastify";
7
7
  //#region src/factory/module/descriptor.d.ts
8
8
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
2
  //#region src/permissions/fields.ts
3
3
  /**
4
4
  * Field-Level Permissions
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { t as pluralize } from "./pluralize-B7m0dPm8.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { t as pluralize } from "./pluralize-BiU5ocWw.mjs";
3
3
  import { join } from "node:path";
4
4
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
5
5
  //#region src/cli/commands/generate/name-helpers.ts
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { u as ValidationError } from "./errors-DDKni6Tz.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { u as ValidationError } from "./errors-CbxCF9M0.mjs";
3
3
  //#region src/utils/headers.ts
4
4
  /**
5
5
  * Canonical header typing + accessor.
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
2
  import { randomUUID } from "node:crypto";
3
3
  import fp from "fastify-plugin";
4
4
  //#region src/plugins/requestId.ts
@@ -1,3 +1,3 @@
1
1
 
2
- import { an as HookRegistration, cn as afterCreate, dn as beforeCreate, en as DefineHookOptions, fn as beforeDelete, hn as defineHook, in as HookPhase, ln as afterDelete, mn as createHookSystem, nn as HookHandler, on as HookSystem, pn as beforeUpdate, rn as HookOperation, sn as HookSystemOptions, tn as HookContext, un as afterUpdate } from "../index-C01wWGJt.mjs";
2
+ import { an as HookRegistration, cn as afterCreate, dn as beforeCreate, en as DefineHookOptions, fn as beforeDelete, hn as defineHook, in as HookPhase, ln as afterDelete, mn as createHookSystem, nn as HookHandler, on as HookSystem, pn as beforeUpdate, rn as HookOperation, sn as HookSystemOptions, tn as HookContext, un as afterUpdate } from "../index-BqRfP1kT.mjs";
3
3
  export { type DefineHookOptions, type HookContext, type HookHandler, type HookOperation, type HookPhase, type HookRegistration, HookSystem, type HookSystemOptions, afterCreate, afterDelete, afterUpdate, beforeCreate, beforeDelete, beforeUpdate, createHookSystem, defineHook };
@@ -1,3 +1,3 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { a as beforeCreate, c as createHookSystem, i as afterUpdate, l as defineHook, n as afterCreate, o as beforeDelete, r as afterDelete, s as beforeUpdate, t as HookSystem } from "../HookSystem-DgwxNZTx.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { a as beforeCreate, c as createHookSystem, i as afterUpdate, l as defineHook, n as afterCreate, o as beforeDelete, r as afterDelete, s as beforeUpdate, t as HookSystem } from "../HookSystem-Csy31WS-.mjs";
3
3
  export { HookSystem, afterCreate, afterDelete, afterUpdate, beforeCreate, beforeDelete, beforeUpdate, createHookSystem, defineHook };
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { n as requireSingleHeaderValue } from "../headers-DKslnhey.mjs";
3
- import { n as createSafeGetOne, t as createIsDuplicateKeyError } from "../store-helpers-Brt8OxWZ.mjs";
4
- import { t as createIdempotencyResult } from "../interface-B7awDx3b.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { n as requireSingleHeaderValue } from "../headers-DivLPMHe.mjs";
3
+ import { n as createSafeGetOne, t as createIsDuplicateKeyError } from "../store-helpers-C1r3-6M0.mjs";
4
+ import { t as createIdempotencyResult } from "../interface-DeLndJ8G.mjs";
5
5
  import { and, eq, exists, gt, lt, or, startsWith } from "@classytic/repo-core/filter";
6
6
  import { createHash } from "node:crypto";
7
7
  import fp from "fastify-plugin";
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
2
  //#region src/idempotency/stores/redis.ts
3
3
  var RedisIdempotencyStore = class {
4
4
  name = "redis";
@@ -7,8 +7,8 @@ import { n as FieldPermissionMap } from "./fields-I_EeRWND.mjs";
7
7
  import { n as EncryptionDirective } from "./types-ByHn9rEO.mjs";
8
8
  import { n as DomainEvent } from "./EventTransport-BEVP50ka.mjs";
9
9
  import { Filter } from "@classytic/repo-core/filter";
10
- import { KeysetPaginationResult, OffsetPaginationResult } from "@classytic/repo-core/pagination";
11
10
  import { AggDateBucket, AggMeasure, AggTopN, QueryOptions, StandardRepo, TenantPurgeStrategy, TransactionHandle } from "@classytic/repo-core/repository";
11
+ import { KeysetPaginationResult, OffsetPaginationResult } from "@classytic/repo-core/pagination";
12
12
  import { FastifyInstance, FastifyPluginAsync, FastifyReply, FastifyRequest, RouteHandlerMethod, RouteHandlerMethod as RouteHandlerMethod$1 } from "fastify";
13
13
  import { DataAdapter, RepositoryLike } from "@classytic/repo-core/adapter";
14
14
  import { LookupSpec } from "@classytic/repo-core/lookup";
@@ -1466,6 +1466,15 @@ interface SoftDeleteExt {
1466
1466
  declare function SoftDeleteMixin<TBase extends Constructor<BaseCrudController>>(Base: TBase): TBase & Constructor<SoftDeleteExt>;
1467
1467
  //#endregion
1468
1468
  //#region src/core/BaseController.d.ts
1469
+ /**
1470
+ * The `Arc*Result` types above stay: `src/index.ts` re-exports them from THIS
1471
+ * path. `BaseCrudController` and the four mixins (+ their `*Ext` types) were
1472
+ * also re-exported here and are not, as of 2.37.1 — `core/index.ts` takes them
1473
+ * straight from `./BaseCrudController.js` and `./mixins/*.js`, so this file's
1474
+ * copies had no importer. Two public paths to one symbol is a drift seam, not
1475
+ * convenience: composition belongs to `core/index.ts`, and this module is the
1476
+ * composed `BaseController` itself.
1477
+ */
1469
1478
  /**
1470
1479
  * Fully-composed controller shape: all CRUD methods + every preset method
1471
1480
  * (SoftDelete / Tree / Slug / Bulk) typed over the caller-supplied `TDoc`.
@@ -1,14 +1,12 @@
1
1
 
2
2
  import { i as RequestScope } from "./types-Ddl9OjmE.mjs";
3
3
  import { l as PermissionCheck, t as AnyRecord } from "./base-C-NL2fTi.mjs";
4
- import { C as RequestContext, Et as ActionDefinition, F as FastifyWithDecorators, Fn as IControllerResponse, H as CrudController, In as IRequestContext, L as RequestWithExtras, Pn as IController, T as CrudRouterOptions, U as ResourceConfig, V as ResourceDefinition, et as RouteSchemaOptions, jt as RouteMcpConfig, tt as ArcFieldRule, ut as AggregationConfig } from "./index-C01wWGJt.mjs";
5
- import "./fastify-augmentation-Bk_9PoiV.mjs";
4
+ import { C as RequestContext, Et as ActionDefinition, F as FastifyWithDecorators, Fn as IControllerResponse, H as CrudController, In as IRequestContext, L as RequestWithExtras, Pn as IController, T as CrudRouterOptions, U as ResourceConfig, V as ResourceDefinition, et as RouteSchemaOptions, jt as RouteMcpConfig, tt as ArcFieldRule, ut as AggregationConfig } from "./index-BqRfP1kT.mjs";
5
+ import "./fastify-augmentation-CRsNNhuo.mjs";
6
6
  import { Filter } from "@classytic/repo-core/filter";
7
- import { AggDateBucket, AggMeasure, AggTopN } from "@classytic/repo-core/repository";
8
7
  import { FastifyReply, FastifyRequest, RouteHandlerMethod } from "fastify";
9
8
  import { z } from "zod";
10
9
  import { DataAdapter } from "@classytic/repo-core/adapter";
11
- import { LookupSpec } from "@classytic/repo-core/lookup";
12
10
  //#region src/constants.d.ts
13
11
  /**
14
12
  * Arc Framework Constants — Single Source of Truth
@@ -1,5 +1,5 @@
1
1
 
2
- import { _ as HealthCheck, a as ModuleContribution, f as ScheduleDefinition, n as ArcModuleInput, r as ArcModuleRegistry, s as ModuleSetupContext, t as ArcModule } from "./types-DDD5RKTu.mjs";
2
+ import { _ as HealthCheck, a as ModuleContribution, f as ScheduleDefinition, n as ArcModuleInput, r as ArcModuleRegistry, s as ModuleSetupContext, t as ArcModule } from "./types-BMa2EPtv.mjs";
3
3
  import { FastifyInstance } from "fastify";
4
4
  //#region src/factory/module/contributions.d.ts
5
5
  /**
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
1
 
2
2
  import { c as DataPolicy, d as UserBase, l as PermissionCheck, n as ArcRequest, o as UserOrganization, r as JWTPayload, s as AuthorizationDecision, t as AnyRecord, u as PermissionContext } from "./base-C-NL2fTi.mjs";
3
- import { A as RequestIdOptions, An as WriteVerbKey, B as defineResource, Bt as BaseController, C as RequestContext, Cn as ControllerConstructionOptions, D as HealthCheck, Dn as MutationWriteContext, E as GracefulShutdownOptions, F as FastifyWithDecorators, Fn as IControllerResponse, Ft as AuthPluginOptions, Gt as SlugExt, H as CrudController, Ht as SoftDeleteMixin, In as IRequestContext, Jt as BulkMixin, Kt as SlugMixin, L as RequestWithExtras, Ln as RawRouteHandler, Mn as ControllerLike, N as FastifyRequestExtras, Nt as RateLimitConfig, O as HealthOptions, On as ResourceWrites, P as FastifyWithAuth, Pn as IController, Q as MiddlewareConfig, Rn as RouteHandler, S as QueryParserInterface, Sn as ControllerConfigurableOptions, T as CrudRouterOptions, U as ResourceConfig, Ut as TreeExt, V as ResourceDefinition, Vt as SoftDeleteExt, Wt as TreeMixin, X as CrudRouteKey, Y as PresetResult, Yt as BaseCrudController, Z as CrudSchemas, _n as ArcDeleteResult, a as InferAdapterDoc, bn as ArcUpdateResult, c as TypedController, ct as AggMeasureShorthand, d as PaginationResult, dt as AggregationDateRangeRequirement, et as RouteSchemaOptions, f as IntrospectionData, ft as AggregationIndexHint, g as ArcInternalMetadata, gn as ArcCreateResult, gt as AggregationsMap, h as ResourceMetadata, ht as AggregationRateLimit, i as ValidationResult, k as IntrospectionPluginOptions, kn as WriteContext, l as TypedRepository, lt as AggregationCacheConfig, m as RegistryStats, mt as AggregationMaterializedResult, n as ConfigError, nt as FieldRule, o as InferDocType, ot as EventDefinition, p as RegistryEntry, pt as AggregationMaterializedContext, q as PresetFunction, qt as BulkExt, r as ValidateOptions, s as InferResourceDoc, st as AggMeasureInput, t as RouteHandlerMethod, u as TypedResourceConfig, ut as AggregationConfig, vn as ArcGetResult, w as ServiceContext, wn as ListResult, xn as BaseControllerOptions, y as OwnershipCheck, yn as ArcListResult } from "./index-C01wWGJt.mjs";
3
+ import { A as RequestIdOptions, An as WriteVerbKey, B as defineResource, Bt as BaseController, C as RequestContext, Cn as ControllerConstructionOptions, D as HealthCheck, Dn as MutationWriteContext, E as GracefulShutdownOptions, F as FastifyWithDecorators, Fn as IControllerResponse, Ft as AuthPluginOptions, Gt as SlugExt, H as CrudController, Ht as SoftDeleteMixin, In as IRequestContext, Jt as BulkMixin, Kt as SlugMixin, L as RequestWithExtras, Ln as RawRouteHandler, Mn as ControllerLike, N as FastifyRequestExtras, Nt as RateLimitConfig, O as HealthOptions, On as ResourceWrites, P as FastifyWithAuth, Pn as IController, Q as MiddlewareConfig, Rn as RouteHandler, S as QueryParserInterface, Sn as ControllerConfigurableOptions, T as CrudRouterOptions, U as ResourceConfig, Ut as TreeExt, V as ResourceDefinition, Vt as SoftDeleteExt, Wt as TreeMixin, X as CrudRouteKey, Y as PresetResult, Yt as BaseCrudController, Z as CrudSchemas, _n as ArcDeleteResult, a as InferAdapterDoc, bn as ArcUpdateResult, c as TypedController, ct as AggMeasureShorthand, d as PaginationResult, dt as AggregationDateRangeRequirement, et as RouteSchemaOptions, f as IntrospectionData, ft as AggregationIndexHint, g as ArcInternalMetadata, gn as ArcCreateResult, gt as AggregationsMap, h as ResourceMetadata, ht as AggregationRateLimit, i as ValidationResult, k as IntrospectionPluginOptions, kn as WriteContext, l as TypedRepository, lt as AggregationCacheConfig, m as RegistryStats, mt as AggregationMaterializedResult, n as ConfigError, nt as FieldRule, o as InferDocType, ot as EventDefinition, p as RegistryEntry, pt as AggregationMaterializedContext, q as PresetFunction, qt as BulkExt, r as ValidateOptions, s as InferResourceDoc, st as AggMeasureInput, t as RouteHandlerMethod, u as TypedResourceConfig, ut as AggregationConfig, vn as ArcGetResult, w as ServiceContext, wn as ListResult, xn as BaseControllerOptions, y as OwnershipCheck, yn as ArcListResult } from "./index-BqRfP1kT.mjs";
4
4
  import { a as applyFieldWritePermissions, i as applyFieldReadPermissions, n as FieldPermissionMap, o as fields, t as FieldPermission } from "./fields-I_EeRWND.mjs";
5
- import "./fastify-augmentation-Bk_9PoiV.mjs";
6
- import { A as CRUD_OPERATIONS, B as HookOperation, C as SeamedResourceConfig, E as defineAction, F as DEFAULT_SORT, G as MUTATION_OPERATIONS, H as MAX_FILTER_DEPTH, I as DEFAULT_TENANT_FIELD, J as SYSTEM_FIELDS, K as MutationOperation, L as DEFAULT_UPDATE_METHOD, M as DEFAULT_ID_FIELD, N as DEFAULT_LIMIT, P as DEFAULT_MAX_LIMIT, R as HOOK_OPERATIONS, S as ResourceSeams, U as MAX_REGEX_LENGTH, V as HookPhase, W as MAX_SEARCH_LENGTH, b as defineResourceVariants, c as nativePolicyFilter, h as getControllerScope, j as CrudOperation, k as defineAggregation, q as RESERVED_QUERY_PARAMS, s as NativePolicyFilter, w as mergeResourceConfig, x as AdapterLike, z as HOOK_PHASES } from "./index-RdpLP71b.mjs";
5
+ import "./fastify-augmentation-CRsNNhuo.mjs";
6
+ import { A as CRUD_OPERATIONS, B as HookOperation, C as SeamedResourceConfig, E as defineAction, F as DEFAULT_SORT, G as MUTATION_OPERATIONS, H as MAX_FILTER_DEPTH, I as DEFAULT_TENANT_FIELD, J as SYSTEM_FIELDS, K as MutationOperation, L as DEFAULT_UPDATE_METHOD, M as DEFAULT_ID_FIELD, N as DEFAULT_LIMIT, P as DEFAULT_MAX_LIMIT, R as HOOK_OPERATIONS, S as ResourceSeams, U as MAX_REGEX_LENGTH, V as HookPhase, W as MAX_SEARCH_LENGTH, b as defineResourceVariants, c as nativePolicyFilter, h as getControllerScope, j as CrudOperation, k as defineAggregation, q as RESERVED_QUERY_PARAMS, s as NativePolicyFilter, w as mergeResourceConfig, x as AdapterLike, z as HOOK_PHASES } from "./index-CEmPspAB.mjs";
7
7
  import { $ as requireAuth, C as requireServiceScope, G as createOrgPermissions, H as DynamicPermissionMatrixConfig, J as allowPublic, K as allOf, S as requireScopeContext, V as DynamicPermissionMatrix, W as createDynamicPermissionMatrix, Y as anyOf, Z as denyAll, _ as publicReadAdminWrite, b as requireOrgMembership, d as authenticated, et as requireOwnership, f as fullPublic, g as publicRead, h as presets_d_exports, it as when, nt as requireRoles, p as ownerWithAdminBypass, u as adminOnly, v as readOnly, w as requireTeamMembership, x as requireOrgRole, y as requireOrgInScope } from "./index-BtYoMip1.mjs";
8
8
  import { a as NotFoundError, d as ValidationError, f as createDomainError, i as ForbiddenError, t as ArcError, u as UnauthorizedError } from "./errors-BGdVwP25.mjs";
9
9
  //#region src/index.d.ts
package/dist/index.mjs CHANGED
@@ -1,14 +1,14 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { a as DEFAULT_SORT, c as HOOK_OPERATIONS, d as MAX_REGEX_LENGTH, f as MAX_SEARCH_LENGTH, h as SYSTEM_FIELDS, i as DEFAULT_MAX_LIMIT, l as HOOK_PHASES, m as RESERVED_QUERY_PARAMS, n as DEFAULT_ID_FIELD, o as DEFAULT_TENANT_FIELD, p as MUTATION_OPERATIONS, r as DEFAULT_LIMIT, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS, u as MAX_FILTER_DEPTH } from "./constants-DUoKAGYD.mjs";
3
- import { d as createDomainError, i as NotFoundError, l as UnauthorizedError, r as ForbiddenError, t as ArcError, u as ValidationError } from "./errors-DDKni6Tz.mjs";
4
- import { a as BulkMixin, h as nativePolicyFilter, i as SlugMixin, n as TreeMixin, o as BaseCrudController, r as SoftDeleteMixin, t as BaseController } from "./BaseController-CTJKm6Cb.mjs";
5
- import { n as applyFieldWritePermissions, r as fields, t as applyFieldReadPermissions } from "./fields-DdP225wt.mjs";
6
- import { a as ResourceDefinition, t as defineResource } from "./defineResource-DWzjyxb2.mjs";
7
- import { l as getControllerScope } from "./actionPermissions-D97DniUQ.mjs";
8
- import { t as defineAggregation } from "./defineAggregation-CpQfcM8R.mjs";
9
- import { a as mergeResourceConfig, i as defineResourceVariants, o as defineAction } from "./core-DTXsiNTJ.mjs";
10
- import { B as requireAuth, C as createOrgPermissions, D as requireScopeContext, E as requireOrgRole, F as allowPublic, G as when, I as anyOf, N as allOf, O as requireServiceScope, R as denyAll, S as createDynamicPermissionMatrix, T as requireOrgMembership, U as requireRoles, V as requireOwnership, a as adminOnly, c as ownerWithAdminBypass, d as publicRead, f as publicReadAdminWrite, k as requireTeamMembership, o as authenticated, p as readOnly, s as fullPublic, u as presets_exports, w as requireOrgInScope } from "./permissions-DgPrZsJh.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { a as DEFAULT_SORT, c as HOOK_OPERATIONS, d as MAX_REGEX_LENGTH, f as MAX_SEARCH_LENGTH, h as SYSTEM_FIELDS, i as DEFAULT_MAX_LIMIT, l as HOOK_PHASES, m as RESERVED_QUERY_PARAMS, n as DEFAULT_ID_FIELD, o as DEFAULT_TENANT_FIELD, p as MUTATION_OPERATIONS, r as DEFAULT_LIMIT, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS, u as MAX_FILTER_DEPTH } from "./constants-DDKf25s4.mjs";
3
+ import { d as createDomainError, i as NotFoundError, l as UnauthorizedError, r as ForbiddenError, t as ArcError, u as ValidationError } from "./errors-CbxCF9M0.mjs";
4
+ import { a as BulkMixin, h as nativePolicyFilter, i as SlugMixin, n as TreeMixin, o as BaseCrudController, r as SoftDeleteMixin, t as BaseController } from "./BaseController-Chkf0Aiw.mjs";
5
+ import { t as defineAggregation } from "./defineAggregation-B1m-45Fe.mjs";
6
+ import { n as applyFieldWritePermissions, r as fields, t as applyFieldReadPermissions } from "./fields-f_MdWDl_.mjs";
7
+ import { l as getControllerScope } from "./actionPermissions-DGGqqSIV.mjs";
8
+ import { a as ResourceDefinition, t as defineResource } from "./defineResource-DS3Uj2-8.mjs";
9
+ import { a as mergeResourceConfig, i as defineResourceVariants, o as defineAction } from "./core-uHQonaHf.mjs";
10
+ import { B as requireAuth, C as createOrgPermissions, D as requireScopeContext, E as requireOrgRole, F as allowPublic, G as when, I as anyOf, N as allOf, O as requireServiceScope, R as denyAll, S as createDynamicPermissionMatrix, T as requireOrgMembership, U as requireRoles, V as requireOwnership, a as adminOnly, c as ownerWithAdminBypass, d as publicRead, f as publicReadAdminWrite, k as requireTeamMembership, o as authenticated, p as readOnly, s as fullPublic, u as presets_exports, w as requireOrgInScope } from "./permissions-DnAc6zoZ.mjs";
11
11
  //#region src/index.ts
12
- const version = "2.36.0";
12
+ const version = "2.37.1";
13
13
  //#endregion
14
14
  export { ArcError, BaseController, BaseCrudController, BulkMixin, CRUD_OPERATIONS, DEFAULT_ID_FIELD, DEFAULT_LIMIT, DEFAULT_MAX_LIMIT, DEFAULT_SORT, DEFAULT_TENANT_FIELD, DEFAULT_UPDATE_METHOD, ForbiddenError, HOOK_OPERATIONS, HOOK_PHASES, MAX_FILTER_DEPTH, MAX_REGEX_LENGTH, MAX_SEARCH_LENGTH, MUTATION_OPERATIONS, NotFoundError, RESERVED_QUERY_PARAMS, ResourceDefinition, SYSTEM_FIELDS, SlugMixin, SoftDeleteMixin, TreeMixin, UnauthorizedError, ValidationError, adminOnly, allOf, allowPublic, anyOf, applyFieldReadPermissions, applyFieldWritePermissions, authenticated, createDomainError, createDynamicPermissionMatrix, createOrgPermissions, defineAction, defineAggregation, defineResource, defineResourceVariants, denyAll, fields, fullPublic, getControllerScope, mergeResourceConfig, nativePolicyFilter, ownerWithAdminBypass, presets_exports as permissions, publicRead, publicReadAdminWrite, readOnly, requireAuth, requireOrgInScope, requireOrgMembership, requireOrgRole, requireOwnership, requireRoles, requireScopeContext, requireServiceScope, requireTeamMembership, version, when };
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
2
  import * as fs from "node:fs/promises";
3
3
  import * as path from "node:path";
4
4
  import { dirname, join } from "node:path";
@@ -1,11 +1,11 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
2
  import fp from "fastify-plugin";
3
3
  //#region src/integrations/event-gateway.ts
4
4
  const eventGatewayPluginImpl = async (fastify, opts = {}) => {
5
5
  const { auth = true, orgScoped = false, roomPolicy, maxMessageBytes, maxSubscriptionsPerClient, authenticate } = opts;
6
6
  if (auth && !authenticate && !fastify.hasDecorator("authenticate")) throw new Error("[arc-event-gateway] auth is true but fastify.authenticate is not registered. Register an auth plugin first, provide a custom authenticate function, or set auth: false.");
7
7
  if (opts.sse !== false) {
8
- const { default: ssePlugin } = await import("../sse-Bxt03Hk5.mjs").then((n) => n.r);
8
+ const { default: ssePlugin } = await import("../sse-BmZCVRGH.mjs").then((n) => n.r);
9
9
  await fastify.register(ssePlugin, {
10
10
  path: opts.sse?.path ?? "/events/stream",
11
11
  requireAuth: auth,
@@ -2,7 +2,7 @@
2
2
  import { c as WebSocketClient, l as WebSocketMessage, u as WebSocketPluginOptions } from "../websocket-BOXVggMf.mjs";
3
3
  import { EventGatewayOptions } from "./event-gateway.mjs";
4
4
  import { a as JobMeta, c as JobsPluginOptions, i as JobDispatcher, l as QueueStats, n as JobDefinition, r as JobDispatchOptions } from "../index-eyg5WEcy.mjs";
5
- import { _ as ToolDefinition, c as McpAuthResult, d as McpResourceConfig, f as PromptDefinition, g as ToolContext, h as ToolAnnotations, n as CallToolResult, o as CrudOperation, r as CreateMcpServerConfig, t as BetterAuthHandler, u as McpPluginOptions } from "../types-BXnTOsXP.mjs";
5
+ import { _ as ToolDefinition, c as McpAuthResult, d as McpResourceConfig, f as PromptDefinition, g as ToolContext, h as ToolAnnotations, n as CallToolResult, o as CrudOperation, r as CreateMcpServerConfig, t as BetterAuthHandler, u as McpPluginOptions } from "../types-rzNprqbE.mjs";
6
6
  import { StreamlinePluginOptions, WorkflowLike, WorkflowRunLike } from "./streamline.mjs";
7
7
  import { WebhookDeliveryRecord, WebhookManager, WebhookPluginOptions, WebhookStore, WebhookSubscription } from "./webhooks.mjs";
8
8
  export type { BetterAuthHandler, CallToolResult, CreateMcpServerConfig, CrudOperation, EventGatewayOptions, JobDefinition, JobDispatchOptions, JobDispatcher, JobMeta, JobsPluginOptions, McpAuthResult, McpPluginOptions, McpResourceConfig, PromptDefinition, QueueStats, StreamlinePluginOptions, ToolAnnotations, ToolContext, ToolDefinition, WebSocketClient, WebSocketMessage, WebSocketPluginOptions, WebhookDeliveryRecord, WebhookManager, WebhookPluginOptions, WebhookStore, WebhookSubscription, WorkflowLike, WorkflowRunLike };
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
2
  export {};
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { n as evaluateAndApplyPermission } from "../../authorizationDecision-EsiY3nUu.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { n as evaluateAndApplyPermission } from "../../authorizationDecision-BzZi2bsf.mjs";
3
3
  import fp from "fastify-plugin";
4
4
  //#region src/integrations/jobs/execution.ts
5
5
  async function executeTimedHandler(options) {
@@ -1,9 +1,9 @@
1
1
 
2
2
  import { i as RequestScope } from "../../types-Ddl9OjmE.mjs";
3
3
  import { l as PermissionCheck } from "../../base-C-NL2fTi.mjs";
4
- import { Fn as IControllerResponse, In as IRequestContext, V as ResourceDefinition, zn as ServerAccessor } from "../../index-C01wWGJt.mjs";
4
+ import { Fn as IControllerResponse, In as IRequestContext, V as ResourceDefinition, zn as ServerAccessor } from "../../index-BqRfP1kT.mjs";
5
5
  import { n as FieldPermissionMap } from "../../fields-I_EeRWND.mjs";
6
- import { _ as ToolDefinition, a as CrudDescriptionOverride, c as McpAuthResult, d as McpResourceConfig, f as PromptDefinition, g as ToolContext, h as ToolAnnotations, i as CrudDescriptionMeta, l as McpExecutionWiring, m as SessionEntry, n as CallToolResult, o as CrudOperation, p as PromptResult, r as CreateMcpServerConfig, s as McpAuthResolver, t as BetterAuthHandler, u as McpPluginOptions } from "../../types-BXnTOsXP.mjs";
6
+ import { _ as ToolDefinition, a as CrudDescriptionOverride, c as McpAuthResult, d as McpResourceConfig, f as PromptDefinition, g as ToolContext, h as ToolAnnotations, i as CrudDescriptionMeta, l as McpExecutionWiring, m as SessionEntry, n as CallToolResult, o as CrudOperation, p as PromptResult, r as CreateMcpServerConfig, s as McpAuthResolver, t as BetterAuthHandler, u as McpPluginOptions } from "../../types-rzNprqbE.mjs";
7
7
  import { ErrorContract } from "@classytic/repo-core/errors";
8
8
  import { FastifyPluginAsync } from "fastify";
9
9
  import { z } from "zod";
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { a as defaultCrudDescription, c as mcpHandlerAdapter, d as toCallToolResult, f as toCallToolSuccess, h as resolveToolCollisions, i as fieldRulesToZod, l as permissionDeniedResult, m as createMcpServer, n as mcpPlugin, o as resolveCrudDescription, p as buildRequestContext, r as resourceToTools, s as invokeController, t as filterResourcesForMcp, u as toCallToolError } from "../../mcpPlugin-NxSlc-Ks.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { a as defaultCrudDescription, c as mcpHandlerAdapter, d as toCallToolResult, f as toCallToolSuccess, h as resolveToolCollisions, i as fieldRulesToZod, l as permissionDeniedResult, m as createMcpServer, n as mcpPlugin, o as resolveCrudDescription, p as buildRequestContext, r as resourceToTools, s as invokeController, t as filterResourcesForMcp, u as toCallToolError } from "../../mcpPlugin-97HuFA46.mjs";
3
3
  //#region src/integrations/mcp/defineTool.ts
4
4
  /**
5
5
  * Define a type-safe MCP tool.
@@ -1,5 +1,5 @@
1
1
 
2
- import { c as McpAuthResult, u as McpPluginOptions } from "../../types-BXnTOsXP.mjs";
2
+ import { c as McpAuthResult, u as McpPluginOptions } from "../../types-rzNprqbE.mjs";
3
3
  //#region src/integrations/mcp/testing.d.ts
4
4
  interface TestMcpClientOptions {
5
5
  /** MCP plugin options (resources, overrides, etc.) — same as mcpPlugin config */
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { m as createMcpServer, r as resourceToTools, t as filterResourcesForMcp } from "../../mcpPlugin-NxSlc-Ks.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { m as createMcpServer, r as resourceToTools, t as filterResourcesForMcp } from "../../mcpPlugin-97HuFA46.mjs";
3
3
  //#region src/integrations/mcp/testing.ts
4
4
  /**
5
5
  * @classytic/arc/mcp/testing — MCP Test Utilities
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { f as createError, i as NotFoundError, r as ForbiddenError } from "../errors-DDKni6Tz.mjs";
3
- import { a as promoteStreamTokenToHeader, n as forwardedStreamHeaders } from "../streaming-CiTJW8kZ.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { f as createError, i as NotFoundError, r as ForbiddenError } from "../errors-CbxCF9M0.mjs";
3
+ import { a as promoteStreamTokenToHeader, n as forwardedStreamHeaders } from "../streaming-BxZDlH01.mjs";
4
4
  import fp from "fastify-plugin";
5
5
  //#region src/integrations/streamline.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { a as EventTransport, n as DomainEvent } from "../EventTransport-BEVP50ka.mjs";
3
- import { n as OutboxModuleOptions, r as createOutboxModule } from "../outbox-module-b1TyDGGi.mjs";
3
+ import { n as OutboxModuleOptions, r as createOutboxModule } from "../outbox-module-BbdaMyqy.mjs";
4
4
  import { FastifyPluginAsync } from "fastify";
5
5
  import { OutboxFailurePolicy, OutboxStore } from "@classytic/primitives/outbox";
6
6
  //#region src/integrations/webhooks.d.ts
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-jK99Ciw_.mjs";
3
- import { i as exponentialBackoff, t as createOutboxModule } from "../outbox-module-ClcFrq98.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-OrGatf7r.mjs";
3
+ import { i as exponentialBackoff, t as createOutboxModule } from "../outbox-module-DOAmyXOb.mjs";
4
4
  import { createHmac, timingSafeEqual } from "node:crypto";
5
5
  import fp from "fastify-plugin";
6
6
  import { createChildEvent } from "@classytic/primitives/events";
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
2
  //#region src/integrations/websocket-pushref-redis.ts
3
3
  /**
4
4
  * Lua script for atomic claim. Runs server-side, single-roundtrip.
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
2
  //#region src/integrations/websocket-redis.ts
3
3
  /**
4
4
  * Redis Pub/Sub adapter for cross-instance WebSocket broadcast.
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
2
  import { randomUUID } from "node:crypto";
3
3
  import sjson from "secure-json-parse";
4
4
  import fp from "fastify-plugin";
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
2
  //#region src/idempotency/stores/interface.ts
3
3
  /**
4
4
  * Helper to create a result object
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.36.0 | MIT | https://classytic.com */
2
- import { t as ArcError } from "./errors-DDKni6Tz.mjs";
1
+ /*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
2
+ import { t as ArcError } from "./errors-CbxCF9M0.mjs";
3
3
  import sjson from "secure-json-parse";
4
4
  //#region src/utils/jsonBody.ts
5
5
  /**