@classytic/arc 2.41.0 → 2.41.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 (132) hide show
  1. package/dist/{BaseController-DYJRZ0EJ.mjs → BaseController-CYEwjyjN.mjs} +13 -12
  2. package/dist/{EventTransport-n7qO5Cz3.mjs → EventTransport-DSqD_Xsg.mjs} +2 -2
  3. package/dist/{HookSystem-CxvZBo77.mjs → HookSystem-CMF94SEA.mjs} +2 -2
  4. package/dist/{ResourceRegistry-Cu7uTJp9.mjs → ResourceRegistry-MGpXoxHZ.mjs} +2 -2
  5. package/dist/{actionPermissions-DPwPWPOV.mjs → actionPermissions-BoPGQ5-4.mjs} +6 -6
  6. package/dist/audit/index.mjs +3 -3
  7. package/dist/auth/audit.mjs +1 -1
  8. package/dist/auth/index.mjs +7 -7
  9. package/dist/auth/redis-session.mjs +1 -1
  10. package/dist/{authorizationDecision-2YY_Kaj1.mjs → authorizationDecision-DawKGoXb.mjs} +2 -2
  11. package/dist/{buildHandler-CUhjGHGZ.mjs → buildHandler-CvxKOc0m.mjs} +4 -4
  12. package/dist/cache/index.mjs +4 -4
  13. package/dist/{caching-DsWDjIxx.mjs → caching-DbCBxlgw.mjs} +2 -2
  14. package/dist/cleanup/index.mjs +4 -4
  15. package/dist/cli/commands/describe.mjs +3 -3
  16. package/dist/cli/commands/docs.mjs +3 -3
  17. package/dist/cli/commands/doctor.mjs +1 -1
  18. package/dist/cli/commands/generate.mjs +2 -2
  19. package/dist/cli/commands/init.mjs +2 -2
  20. package/dist/cli/commands/introspect.mjs +2 -2
  21. package/dist/cli/index.mjs +3 -3
  22. package/dist/{constants-BxLgNFF7.mjs → constants-D5Ubn1fe.mjs} +1 -1
  23. package/dist/context/index.mjs +4 -4
  24. package/dist/core/index.mjs +7 -7
  25. package/dist/{core-iNGqYerO.mjs → core-5lazhva9.mjs} +3 -3
  26. package/dist/{createActionRouter-BBlbPs3k.mjs → createActionRouter-DNqoaK81.mjs} +7 -7
  27. package/dist/{createAggregationRouter-Dv5SuK2x.mjs → createAggregationRouter-BcbQJf10.mjs} +7 -7
  28. package/dist/{defineAggregation-UyeurGkp.mjs → defineAggregation-D_eJjm5A.mjs} +1 -1
  29. package/dist/{defineResource-DzGT-2LP.mjs → defineResource-DxkMTjRn.mjs} +18 -18
  30. package/dist/discovery/index.mjs +1 -1
  31. package/dist/docs/index.mjs +3 -3
  32. package/dist/{elevation-BF-vhGxY.mjs → elevation-CkvG0LG2.mjs} +4 -4
  33. package/dist/encryption/index.mjs +3 -3
  34. package/dist/{errorHandler-CIMkCOWm.mjs → errorHandler-D1GHKGlV.mjs} +3 -3
  35. package/dist/{errors-C_YhELhe.mjs → errors-BH7YU_9O.mjs} +1 -1
  36. package/dist/{eventPlugin-CmXaPWLv.mjs → eventPlugin-zZY-unhr.mjs} +5 -5
  37. package/dist/events/index.mjs +5 -5
  38. package/dist/events/transports/redis-stream-entry.mjs +2 -2
  39. package/dist/events/transports/redis.mjs +2 -2
  40. package/dist/factory/index.mjs +5 -5
  41. package/dist/{fields-BTyPLHK0.mjs → fields-BHrkoF5y.mjs} +1 -1
  42. package/dist/{generate-D_YmiCNf.mjs → generate-BLRf2m3y.mjs} +2 -2
  43. package/dist/{headers-CNECDE6q.mjs → headers-BIXWKrzQ.mjs} +2 -2
  44. package/dist/{health-CxQzbJmr.mjs → health-ZRHeDHXH.mjs} +1 -1
  45. package/dist/hooks/index.mjs +2 -2
  46. package/dist/idempotency/index.mjs +4 -4
  47. package/dist/idempotency/redis.mjs +1 -1
  48. package/dist/index.mjs +11 -11
  49. package/dist/{init-Y2MlSN9n.mjs → init-CpLkjU18.mjs} +1 -1
  50. package/dist/integrations/event-gateway.mjs +2 -2
  51. package/dist/integrations/index.mjs +1 -1
  52. package/dist/integrations/jobs/index.mjs +2 -2
  53. package/dist/integrations/mcp/index.mjs +2 -2
  54. package/dist/integrations/mcp/testing.mjs +2 -2
  55. package/dist/integrations/streamline.mjs +3 -3
  56. package/dist/integrations/webhooks.mjs +3 -3
  57. package/dist/integrations/websocket-pushref-redis.mjs +1 -1
  58. package/dist/integrations/websocket-redis.mjs +1 -1
  59. package/dist/integrations/websocket.mjs +2 -2
  60. package/dist/{interface-BIpgzbZl.mjs → interface-YzIbF7Ii.mjs} +1 -1
  61. package/dist/{jsonBody-Cq9KYl2Z.mjs → jsonBody-ELR9lfeU.mjs} +2 -2
  62. package/dist/{keys-Cmv4cBRa.mjs → keys-cpZCtcIE.mjs} +1 -1
  63. package/dist/{loadResources-CblF7xt2.mjs → loadResources-BPfWiI5s.mjs} +2 -2
  64. package/dist/{loadResourcesFromEntry-99fIMC3p.mjs → loadResourcesFromEntry-ixtfL3J2.mjs} +2 -2
  65. package/dist/logger/index.mjs +1 -1
  66. package/dist/{mcpPlugin-xF3Gw-HW.mjs → mcpPlugin-BX5PujI0.mjs} +15 -15
  67. package/dist/{memory-CpDZ9NPw.mjs → memory-Iotz0cCx.mjs} +2 -2
  68. package/dist/{metrics-BaKnq8ag.mjs → metrics-NMsmpRmY.mjs} +2 -2
  69. package/dist/middleware/index.mjs +3 -3
  70. package/dist/migrations/index.mjs +2 -2
  71. package/dist/{module-BkQEesNQ.mjs → module-DpLJG2_N.mjs} +1 -1
  72. package/dist/{multipartBody-C92aJ8am.mjs → multipartBody-DtRWM6_U.mjs} +1 -1
  73. package/dist/{openapi-C3LFRzPq.mjs → openapi-CmFf3yq_.mjs} +6 -6
  74. package/dist/outbox-admin/index.mjs +4 -4
  75. package/dist/{outbox-module-dsCyLxXH.mjs → outbox-module-D2z5WkDY.mjs} +5 -5
  76. package/dist/permissions/index.mjs +5 -5
  77. package/dist/{permissions-DiHXy8Ck.mjs → permissions-D8TBH44E.mjs} +7 -7
  78. package/dist/{pipe-CBVmUJ-j.mjs → pipe-FMWNheSO.mjs} +2 -2
  79. package/dist/pipeline/index.mjs +2 -2
  80. package/dist/plugins/index.mjs +16 -16
  81. package/dist/plugins/response-cache.mjs +3 -3
  82. package/dist/plugins/tracing-entry.mjs +2 -2
  83. package/dist/{pluralize-2_U6QZQg.mjs → pluralize-CXWZIzTv.mjs} +1 -1
  84. package/dist/{preloadResources-Bbp4QJ8V.mjs → preloadResources-f3boenVZ.mjs} +21 -21
  85. package/dist/presets/filesUpload.mjs +5 -5
  86. package/dist/presets/index.mjs +2 -2
  87. package/dist/presets/multiTenant.mjs +3 -3
  88. package/dist/presets/search.mjs +2 -2
  89. package/dist/{presets-BdlugYTc.mjs → presets-ZJSPgmT2.mjs} +4 -4
  90. package/dist/{projection-Uvgp-EEj.mjs → projection-BzIgzoKZ.mjs} +2 -2
  91. package/dist/{queryCachePlugin-B5F09bYr.mjs → queryCachePlugin-DZHPOm9p.mjs} +6 -6
  92. package/dist/{rateLimitKey-CK-EU2L8.mjs → rateLimitKey-BvOvcBDi.mjs} +1 -1
  93. package/dist/{realtime-FnnD0n3Z.mjs → realtime-8tIQWZz4.mjs} +9 -9
  94. package/dist/{registerRoute-DRsSHPSM.mjs → registerRoute-Bsnk6NiZ.mjs} +6 -6
  95. package/dist/registry/index.mjs +3 -3
  96. package/dist/{registry-D3y8VEJ1.mjs → registry-DNkgGQcK.mjs} +2 -2
  97. package/dist/{renewingLease-B3VYh5aU.mjs → renewingLease-yF8BdW4b.mjs} +1 -1
  98. package/dist/{replyHelpers-DPHsdw-5.mjs → replyHelpers-CNdvMfM4.mjs} +2 -2
  99. package/dist/{requestContext-cSVKnYPk.mjs → requestContext-cDkAUr-P.mjs} +1 -1
  100. package/dist/{rolldown-runtime-DjDuyglE.mjs → rolldown-runtime-eysyzFAF.mjs} +1 -1
  101. package/dist/{runtimeCapabilities-DSA_dH1_.mjs → runtimeCapabilities-CkhS6jn6.mjs} +1 -1
  102. package/dist/{schedules-BktJb3Y3.mjs → schedules-j6uXXAeJ.mjs} +4 -4
  103. package/dist/{schemaConverter-BLCSmNbr.mjs → schemaConverter-BVA7cFRG.mjs} +1 -1
  104. package/dist/{schemaIR-K16Bb5BX.mjs → schemaIR-CTvPDoPB.mjs} +2 -2
  105. package/dist/schemas/index.mjs +1 -1
  106. package/dist/scim/index.mjs +2 -2
  107. package/dist/scope/index.mjs +5 -5
  108. package/dist/{scope-jSxuBTFM.mjs → scope-BUi1xV1I.mjs} +4 -4
  109. package/dist/{simpleEqualityMatcher-BiOnyflP.mjs → simpleEqualityMatcher-C9bzq2gO.mjs} +1 -1
  110. package/dist/{sse-CH7Slxc1.mjs → sse-BeqVKQKu.mjs} +5 -5
  111. package/dist/{sseStream-CN-Lh1Tu.mjs → sseStream-Ppzo-WUH.mjs} +2 -2
  112. package/dist/{store-helpers-9DX9-1j_.mjs → store-helpers-dW71XVWL.mjs} +1 -1
  113. package/dist/{streaming-dvppnxsr.mjs → streaming-IcRFjWQU.mjs} +1 -1
  114. package/dist/{subscribe-helpers-AVYPgqTl.mjs → subscribe-helpers-DatDkcuG.mjs} +2 -2
  115. package/dist/sync/changelog.mjs +1 -1
  116. package/dist/testing/cleanupStoreContract.mjs +1 -1
  117. package/dist/testing/index.mjs +10 -10
  118. package/dist/testing/outboxStoreContract.mjs +1 -1
  119. package/dist/testing/storageContract.mjs +1 -1
  120. package/dist/{transactionContext-DCWMI6hV.mjs → transactionContext-CPbdlnVw.mjs} +1 -1
  121. package/dist/{typeGuards-D7tHFdH6.mjs → typeGuards-BLjPgVBm.mjs} +1 -1
  122. package/dist/types/index.mjs +1 -1
  123. package/dist/types/storage.mjs +1 -1
  124. package/dist/{types-CDy3-zw1.mjs → types-CgenB1gv.mjs} +4 -4
  125. package/dist/usage/index.mjs +4 -4
  126. package/dist/{userHelpers-DDMOZ_Pm.mjs → userHelpers-ChRvkuSZ.mjs} +1 -1
  127. package/dist/utils/index.mjs +11 -11
  128. package/dist/{utils-B-zj_b__.mjs → utils-CxcctrAh.mjs} +3 -3
  129. package/dist/{validate-R0G_JrnK.mjs → validate-DrYWnOzI.mjs} +2 -2
  130. package/dist/{versioning-DuVWcu-F.mjs → versioning-DKkT4hNJ.mjs} +3 -3
  131. package/dist/{workScope-BhsWde4k.mjs → workScope-CxKqoIFn.mjs} +2 -2
  132. package/package.json +574 -574
@@ -1,12 +1,12 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-DjDuyglE.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-eysyzFAF.mjs";
3
3
  import { arcLog, configureArcLogger, createPinoWriter, enterArcLoggerScope, runWithArcLogger } from "./logger/index.mjs";
4
- import { n as PUBLIC_SCOPE } from "./types-CDy3-zw1.mjs";
5
- import { r as initRuntimeCapabilityRegistry, t as auditRuntimeCapabilities } from "./runtimeCapabilities-DSA_dH1_.mjs";
6
- import { n as isScopeAwareKeyGenerator, t as createTenantKeyGenerator } from "./rateLimitKey-CK-EU2L8.mjs";
7
- import { i as createRequestIdGenerator, r as mergeHealthChecks } from "./health-CxQzbJmr.mjs";
8
- import { t as parseJsonBody } from "./jsonBody-Cq9KYl2Z.mjs";
9
- import { r as wrapWithBoundary } from "./subscribe-helpers-AVYPgqTl.mjs";
4
+ import { n as PUBLIC_SCOPE } from "./types-CgenB1gv.mjs";
5
+ import { r as initRuntimeCapabilityRegistry, t as auditRuntimeCapabilities } from "./runtimeCapabilities-CkhS6jn6.mjs";
6
+ import { n as isScopeAwareKeyGenerator, t as createTenantKeyGenerator } from "./rateLimitKey-BvOvcBDi.mjs";
7
+ import { i as createRequestIdGenerator, r as mergeHealthChecks } from "./health-ZRHeDHXH.mjs";
8
+ import { t as parseJsonBody } from "./jsonBody-ELR9lfeU.mjs";
9
+ import { r as wrapWithBoundary } from "./subscribe-helpers-DatDkcuG.mjs";
10
10
  import { isProductionEnv } from "@classytic/primitives/environment";
11
11
  import Fastify from "fastify";
12
12
  import qs from "qs";
@@ -851,7 +851,7 @@ async function registerArcCore(fastify, config, trackPlugin) {
851
851
  await fastify.register(arcCorePlugin, { emitEvents: config.arcPlugins?.emitEvents !== false });
852
852
  trackPlugin("arc-core");
853
853
  if (config.arcPlugins?.events !== false) {
854
- const { default: eventPlugin } = await import("./eventPlugin-CmXaPWLv.mjs").then((n) => n.n);
854
+ const { default: eventPlugin } = await import("./eventPlugin-zZY-unhr.mjs").then((n) => n.n);
855
855
  const eventOpts = typeof config.arcPlugins?.events === "object" ? config.arcPlugins.events : {};
856
856
  await fastify.register(eventPlugin, {
857
857
  /**
@@ -911,15 +911,15 @@ async function registerArcPlugins(fastify, config, trackPlugin, modules, moduleH
911
911
  trackPlugin("arc-graceful-shutdown", shutdownOpts);
912
912
  }
913
913
  if (config.arcPlugins?.caching) {
914
- const { default: cachingPlugin } = await import("./caching-DsWDjIxx.mjs").then((n) => n.r);
914
+ const { default: cachingPlugin } = await import("./caching-DbCBxlgw.mjs").then((n) => n.r);
915
915
  const opts = config.arcPlugins.caching === true ? {} : config.arcPlugins.caching;
916
916
  await fastify.register(cachingPlugin, opts);
917
917
  trackPlugin("arc-caching", opts);
918
918
  }
919
919
  if (config.arcPlugins?.queryCache) {
920
- const { queryCachePlugin } = await import("./queryCachePlugin-B5F09bYr.mjs").then((n) => n.n);
920
+ const { queryCachePlugin } = await import("./queryCachePlugin-DZHPOm9p.mjs").then((n) => n.n);
921
921
  const opts = config.arcPlugins.queryCache === true ? {} : config.arcPlugins.queryCache;
922
- const store = config.stores?.queryCache ?? new (await (import("./memory-CpDZ9NPw.mjs").then((n) => n.n))).MemoryCacheStore();
922
+ const store = config.stores?.queryCache ?? new (await (import("./memory-Iotz0cCx.mjs").then((n) => n.n))).MemoryCacheStore();
923
923
  await fastify.register(queryCachePlugin, {
924
924
  store,
925
925
  ...opts
@@ -929,7 +929,7 @@ async function registerArcPlugins(fastify, config, trackPlugin, modules, moduleH
929
929
  if (config.arcPlugins?.sse) {
930
930
  if (config.arcPlugins?.events === false) fastify.log.warn("SSE plugin requires events plugin (arcPlugins.events). SSE disabled.");
931
931
  else {
932
- const { default: ssePlugin } = await import("./sse-CH7Slxc1.mjs").then((n) => n.r);
932
+ const { default: ssePlugin } = await import("./sse-BeqVKQKu.mjs").then((n) => n.r);
933
933
  const opts = config.arcPlugins.sse === true ? {} : config.arcPlugins.sse;
934
934
  await fastify.register(ssePlugin, opts);
935
935
  trackPlugin("arc-sse", opts);
@@ -938,20 +938,20 @@ async function registerArcPlugins(fastify, config, trackPlugin, modules, moduleH
938
938
  if (config.arcPlugins?.realtime) {
939
939
  if (config.arcPlugins?.events === false) fastify.log.warn("Realtime plugin requires events plugin (arcPlugins.events). Realtime disabled.");
940
940
  else {
941
- const { default: realtimePlugin } = await import("./realtime-FnnD0n3Z.mjs").then((n) => n.r);
941
+ const { default: realtimePlugin } = await import("./realtime-8tIQWZz4.mjs").then((n) => n.r);
942
942
  const opts = config.arcPlugins.realtime === true ? {} : config.arcPlugins.realtime;
943
943
  await fastify.register(realtimePlugin, opts);
944
944
  trackPlugin("arc-realtime", opts);
945
945
  }
946
946
  }
947
947
  if (config.arcPlugins?.metrics) {
948
- const { default: metricsPlugin } = await import("./metrics-BaKnq8ag.mjs").then((n) => n.r);
948
+ const { default: metricsPlugin } = await import("./metrics-NMsmpRmY.mjs").then((n) => n.r);
949
949
  const opts = config.arcPlugins.metrics === true ? {} : config.arcPlugins.metrics;
950
950
  await fastify.register(metricsPlugin, opts);
951
951
  trackPlugin("arc-metrics", opts);
952
952
  }
953
953
  if (config.arcPlugins?.versioning) {
954
- const { default: versioningPlugin } = await import("./versioning-DuVWcu-F.mjs").then((n) => n.r);
954
+ const { default: versioningPlugin } = await import("./versioning-DKkT4hNJ.mjs").then((n) => n.r);
955
955
  await fastify.register(versioningPlugin, config.arcPlugins.versioning);
956
956
  trackPlugin("arc-versioning", config.arcPlugins.versioning);
957
957
  }
@@ -1028,7 +1028,7 @@ async function registerAuth(fastify, config, trackPlugin) {
1028
1028
  */
1029
1029
  async function registerElevation(fastify, config, trackPlugin) {
1030
1030
  if (!config.elevation) return;
1031
- const { elevationPlugin } = await import("./elevation-BF-vhGxY.mjs").then((n) => n.r);
1031
+ const { elevationPlugin } = await import("./elevation-CkvG0LG2.mjs").then((n) => n.r);
1032
1032
  await fastify.register(elevationPlugin, config.elevation);
1033
1033
  trackPlugin("arc-elevation", config.elevation);
1034
1034
  fastify.log.debug("Elevation plugin enabled");
@@ -1043,7 +1043,7 @@ async function registerElevation(fastify, config, trackPlugin) {
1043
1043
  */
1044
1044
  async function registerErrorHandler(fastify, config, trackPlugin, moduleErrorMappers) {
1045
1045
  if (config.errorHandler === false) return;
1046
- const { errorHandlerPlugin } = await import("./errorHandler-CIMkCOWm.mjs").then((n) => n.r);
1046
+ const { errorHandlerPlugin } = await import("./errorHandler-D1GHKGlV.mjs").then((n) => n.r);
1047
1047
  /**
1048
1048
  * DISCLOSURE DEFAULTS MERGE — they used to be REPLACED, and that was two bugs.
1049
1049
  *
@@ -1267,7 +1267,7 @@ async function registerResources(fastify, config, preResolvedModules) {
1267
1267
  let discoveryPath;
1268
1268
  let discoveryYieldedZero = false;
1269
1269
  if (resolvedResources === void 0 && config.resourceDir) {
1270
- const { loadResources } = await import("./loadResources-CblF7xt2.mjs").then((n) => n.n);
1270
+ const { loadResources } = await import("./loadResources-BPfWiI5s.mjs").then((n) => n.n);
1271
1271
  const { resolve, dirname } = await import("node:path");
1272
1272
  const { fileURLToPath } = await import("node:url");
1273
1273
  const rawDir = config.resourceDir;
@@ -1393,7 +1393,7 @@ Resources supplied by "${m.name}": ${provided}.`);
1393
1393
  if (fastify.hasDecorator("getScheduleStats")) throw new Error("[arc] modules declare scheduledJobs but schedulesPlugin was already registered manually. Configure their runner through arcPlugins.schedules so Arc can compose one schedule table.");
1394
1394
  const frozenJobs = Object.freeze(scheduledJobs.map((job) => Object.freeze({ ...job })));
1395
1395
  const scheduleOptions = typeof config.arcPlugins?.schedules === "object" ? config.arcPlugins.schedules : {};
1396
- const { default: schedulesPlugin } = await import("./schedules-BktJb3Y3.mjs").then((n) => n.r);
1396
+ const { default: schedulesPlugin } = await import("./schedules-j6uXXAeJ.mjs").then((n) => n.r);
1397
1397
  await fastify.register(schedulesPlugin, {
1398
1398
  ...scheduleOptions,
1399
1399
  schedules: frozenJobs
@@ -2055,7 +2055,7 @@ async function buildApp(options, loggerScope, onInstance) {
2055
2055
  await registerErrorHandler(fastify, config, trackPlugin, moduleErrorMappers);
2056
2056
  await registerResources(fastify, config, resolvedModules);
2057
2057
  if (config.replyHelpers) {
2058
- const { replyHelpersPlugin } = await import("./replyHelpers-DPHsdw-5.mjs").then((n) => n.n);
2058
+ const { replyHelpersPlugin } = await import("./replyHelpers-CNdvMfM4.mjs").then((n) => n.n);
2059
2059
  await fastify.register(replyHelpersPlugin);
2060
2060
  }
2061
2061
  if (config.serializeBigInt) {
@@ -1,8 +1,8 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { i as NotFoundError, u as ValidationError } from "../errors-C_YhELhe.mjs";
3
- import { c as getOrgId, g as getUserId } from "../types-CDy3-zw1.mjs";
4
- import { B as requireAuth, F as allowPublic } from "../permissions-DiHXy8Ck.mjs";
5
- import { t as multipartBody } from "../multipartBody-C92aJ8am.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { i as NotFoundError, u as ValidationError } from "../errors-BH7YU_9O.mjs";
3
+ import { c as getOrgId, g as getUserId } from "../types-CgenB1gv.mjs";
4
+ import { B as requireAuth, F as allowPublic } from "../permissions-D8TBH44E.mjs";
5
+ import { t as multipartBody } from "../multipartBody-DtRWM6_U.mjs";
6
6
  //#region src/presets/filesUpload.ts
7
7
  const DEFAULT_FIELD_NAME = "file";
8
8
  const DEFAULT_MAX_FILE_SIZE = 10485760;
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  import { multiTenantPreset } from "./multiTenant.mjs";
3
- import { a as registerPreset, c as auditedPreset, d as ownedByUserPreset, i as getPreset, l as softDeletePreset, n as flexibleMultiTenantPreset, o as treePreset, r as getAvailablePresets, s as bulkPreset, t as applyPresets, u as slugLookupPreset } from "../presets-BdlugYTc.mjs";
3
+ import { a as registerPreset, c as auditedPreset, d as ownedByUserPreset, i as getPreset, l as softDeletePreset, n as flexibleMultiTenantPreset, o as treePreset, r as getAvailablePresets, s as bulkPreset, t as applyPresets, u as slugLookupPreset } from "../presets-ZJSPgmT2.mjs";
4
4
  import { filesUploadPreset } from "./filesUpload.mjs";
5
5
  import { searchPreset } from "./search.mjs";
6
6
  export { applyPresets, auditedPreset, bulkPreset, filesUploadPreset, flexibleMultiTenantPreset, getAvailablePresets, getPreset, multiTenantPreset, ownedByUserPreset, registerPreset, searchPreset, slugLookupPreset, softDeletePreset, treePreset };
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import "../constants-BxLgNFF7.mjs";
3
- import { b as isElevated, c as getOrgId, d as getScopeContext, m as getTeamId, u as getRequestScope, v as hasOrgAccess } from "../types-CDy3-zw1.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import "../constants-D5Ubn1fe.mjs";
3
+ import { b as isElevated, c as getOrgId, d as getScopeContext, m as getTeamId, u as getRequestScope, v as hasOrgAccess } from "../types-CgenB1gv.mjs";
4
4
  //#region src/presets/multiTenant.ts
5
5
  /**
6
6
  * Resolve a single TenantFieldSpec against the current scope.
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { B as requireAuth, F as allowPublic } from "../permissions-DiHXy8Ck.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { B as requireAuth, F as allowPublic } from "../permissions-D8TBH44E.mjs";
3
3
  //#region src/presets/search.ts
4
4
  const BUILTINS = [
5
5
  {
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { l as UnauthorizedError } from "./errors-C_YhELhe.mjs";
3
- import { b as isElevated, n as PUBLIC_SCOPE } from "./types-CDy3-zw1.mjs";
4
- import { B as requireAuth, F as allowPublic, U as requireRoles } from "./permissions-DiHXy8Ck.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { l as UnauthorizedError } from "./errors-BH7YU_9O.mjs";
3
+ import { b as isElevated, n as PUBLIC_SCOPE } from "./types-CgenB1gv.mjs";
4
+ import { B as requireAuth, F as allowPublic, U as requireRoles } from "./permissions-D8TBH44E.mjs";
5
5
  import { multiTenantPreset } from "./presets/multiTenant.mjs";
6
6
  //#region src/presets/ownedByUser.ts
7
7
  /**
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { c as getOrgId, f as getScopeContextMap, g as getUserId, m as getTeamId, x as isMember } from "./types-CDy3-zw1.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { c as getOrgId, f as getScopeContextMap, g as getUserId, m as getTeamId, x as isMember } from "./types-CgenB1gv.mjs";
3
3
  //#region src/scope/projection.ts
4
4
  /**
5
5
  * Compute the request-scope projection. Returns `undefined` when no
@@ -1,9 +1,9 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-DjDuyglE.mjs";
3
- import { i as versionKey, r as tagVersionKey } from "./keys-Cmv4cBRa.mjs";
4
- import { n as declareRuntimeCapability } from "./runtimeCapabilities-DSA_dH1_.mjs";
5
- import { t as hasEvents } from "./typeGuards-D7tHFdH6.mjs";
6
- import { t as MemoryCacheStore } from "./memory-CpDZ9NPw.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-eysyzFAF.mjs";
3
+ import { i as versionKey, r as tagVersionKey } from "./keys-cpZCtcIE.mjs";
4
+ import { n as declareRuntimeCapability } from "./runtimeCapabilities-CkhS6jn6.mjs";
5
+ import { t as hasEvents } from "./typeGuards-BLjPgVBm.mjs";
6
+ import { t as MemoryCacheStore } from "./memory-Iotz0cCx.mjs";
7
7
  import fp from "fastify-plugin";
8
8
  //#region src/cache/QueryCache.ts
9
9
  var QueryCache = class {
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  //#region src/scope/rateLimitKey.ts
3
3
  /**
4
4
  * Marks a key generator as SCOPE-AWARE, so `buildRateLimitOpts` can place the rate-limit
@@ -1,13 +1,13 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-DjDuyglE.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-eysyzFAF.mjs";
3
3
  import { arcLog } from "./logger/index.mjs";
4
- import { n as evaluateAndApplyPermission } from "./authorizationDecision-2YY_Kaj1.mjs";
5
- import { n as getUserRoles } from "./userHelpers-DDMOZ_Pm.mjs";
6
- import { c as getOrgId } from "./types-CDy3-zw1.mjs";
7
- import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-BiOnyflP.mjs";
8
- import { t as applyFieldReadPermissions } from "./fields-BTyPLHK0.mjs";
9
- import { a as promoteStreamTokenToHeader } from "./streaming-dvppnxsr.mjs";
10
- import { t as openSseStream } from "./sseStream-CN-Lh1Tu.mjs";
4
+ import { n as evaluateAndApplyPermission } from "./authorizationDecision-DawKGoXb.mjs";
5
+ import { n as getUserRoles } from "./userHelpers-ChRvkuSZ.mjs";
6
+ import { c as getOrgId } from "./types-CgenB1gv.mjs";
7
+ import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-C9bzq2gO.mjs";
8
+ import { t as applyFieldReadPermissions } from "./fields-BHrkoF5y.mjs";
9
+ import { a as promoteStreamTokenToHeader } from "./streaming-IcRFjWQU.mjs";
10
+ import { t as openSseStream } from "./sseStream-Ppzo-WUH.mjs";
11
11
  import fp from "fastify-plugin";
12
12
  //#region src/plugins/realtime.ts
13
13
  var realtime_exports = /* @__PURE__ */ __exportAll({
@@ -1,9 +1,9 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { n as evaluateAndApplyPermission } from "./authorizationDecision-2YY_Kaj1.mjs";
3
- import { f as createError } from "./errors-C_YhELhe.mjs";
4
- import { u as getRequestScope } from "./types-CDy3-zw1.mjs";
5
- import { r as deriveHiddenFieldPermissions } from "./fields-BTyPLHK0.mjs";
6
- import { n as requestContext } from "./requestContext-cSVKnYPk.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { n as evaluateAndApplyPermission } from "./authorizationDecision-DawKGoXb.mjs";
3
+ import { f as createError } from "./errors-BH7YU_9O.mjs";
4
+ import { u as getRequestScope } from "./types-CgenB1gv.mjs";
5
+ import { r as deriveHiddenFieldPermissions } from "./fields-BHrkoF5y.mjs";
6
+ import { n as requestContext } from "./requestContext-cDkAUr-P.mjs";
7
7
  //#region src/core/middlewares/arcDecorator.ts
8
8
  /**
9
9
  * Build the `arcDecorator` preHandler for a resource.
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { a as cascadeDeleteForOrganization, c as assertNoTenantData, i as introspectionPlugin_default, n as buildResourceManifestFromRegistry, o as getCascadingResources, r as introspectionPlugin, s as getCascadingResourcesWithMetadata, t as buildResourceManifest } from "../registry-D3y8VEJ1.mjs";
3
- import { t as ResourceRegistry } from "../ResourceRegistry-Cu7uTJp9.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { a as cascadeDeleteForOrganization, c as assertNoTenantData, i as introspectionPlugin_default, n as buildResourceManifestFromRegistry, o as getCascadingResources, r as introspectionPlugin, s as getCascadingResourcesWithMetadata, t as buildResourceManifest } from "../registry-DNkgGQcK.mjs";
3
+ import { t as ResourceRegistry } from "../ResourceRegistry-MGpXoxHZ.mjs";
4
4
  export { ResourceRegistry, assertNoTenantData, buildResourceManifest, buildResourceManifestFromRegistry, cascadeDeleteForOrganization, getCascadingResources, getCascadingResourcesWithMetadata, introspectionPlugin_default as introspectionPlugin, introspectionPlugin as introspectionPluginFn };
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { t as CRUD_OPERATIONS } from "./constants-BxLgNFF7.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { t as CRUD_OPERATIONS } from "./constants-D5Ubn1fe.mjs";
3
3
  import fp from "fastify-plugin";
4
4
  //#region src/registry/assertNoTenantData.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  //#region src/lock/renewingLease.ts
3
3
  /**
4
4
  * Start renewing an ALREADY-ACQUIRED lease. The caller performed the
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-DjDuyglE.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-eysyzFAF.mjs";
3
3
  import { toCanonicalList } from "@classytic/repo-core/pagination";
4
4
  import fp from "fastify-plugin";
5
5
  //#region src/plugins/replyHelpers.ts
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  //#region src/context/requestContext.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  import "node:module";
3
3
  //#region \0rolldown/runtime.js
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  //#region src/utils/runtimeCapabilities.ts
3
3
  /**
4
4
  * `Symbol.for` so declarations from two arc copies in one dependency graph
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-DjDuyglE.mjs";
3
- import { t as runWorkScope } from "./workScope-BhsWde4k.mjs";
4
- import { t as startRenewingLease } from "./renewingLease-B3VYh5aU.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-eysyzFAF.mjs";
3
+ import { t as runWorkScope } from "./workScope-CxKqoIFn.mjs";
4
+ import { t as startRenewingLease } from "./renewingLease-yF8BdW4b.mjs";
5
5
  import fp from "fastify-plugin";
6
6
  //#region src/plugins/schedules.ts
7
7
  var schedules_exports = /* @__PURE__ */ __exportAll({
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  import { arcLog } from "./logger/index.mjs";
3
3
  //#region src/utils/schemaConverter.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { o as toJsonSchema } from "./schemaConverter-BLCSmNbr.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { o as toJsonSchema } from "./schemaConverter-BVA7cFRG.mjs";
3
3
  //#region src/core/schemaIR.ts
4
4
  /**
5
5
  * Schema IR — one canonical representation, two adapters.
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  import { errorContractSchema, errorDetailSchema } from "@classytic/repo-core/errors";
3
3
  import { Type, Type as Type$1 } from "typebox";
4
4
  //#region src/schemas/index.ts
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { t as parseJsonBody } from "../jsonBody-Cq9KYl2Z.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { t as parseJsonBody } from "../jsonBody-ELR9lfeU.mjs";
3
3
  import fp from "fastify-plugin";
4
4
  //#region src/scim/errors.ts
5
5
  var ScimError = class extends Error {
@@ -1,6 +1,6 @@
1
- /*! @classytic/arc v2.41.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-CDy3-zw1.mjs";
3
- import { n as elevation_default, t as elevationPlugin } from "../elevation-BF-vhGxY.mjs";
4
- import { t as createTenantKeyGenerator } from "../rateLimitKey-CK-EU2L8.mjs";
5
- import { t as resolveOrgFromHeader } from "../scope-jSxuBTFM.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { C as isService, D as requireUserId, E as requireTeamId, O as scopeFirstCtx, S as isOrgInScope, T as requireOrgId, _ as getUserRoles, a as getDPoPJkt, b as isElevated, c as getOrgId, d as getScopeContext, f as getScopeContextMap, g as getUserId, h as getTenantFromRequest, i as getClientId, l as getOrgRoles, m as getTeamId, n as PUBLIC_SCOPE, o as getMandate, p as getServiceScopes, r as getAncestorOrgIds, s as getOrgContext, t as AUTHENTICATED_SCOPE, u as getRequestScope, v as hasOrgAccess, w as requireClientId, x as isMember, y as isAuthenticated } from "../types-CgenB1gv.mjs";
3
+ import { n as elevation_default, t as elevationPlugin } from "../elevation-CkvG0LG2.mjs";
4
+ import { t as createTenantKeyGenerator } from "../rateLimitKey-BvOvcBDi.mjs";
5
+ import { t as resolveOrgFromHeader } from "../scope-BUi1xV1I.mjs";
6
6
  export { AUTHENTICATED_SCOPE, PUBLIC_SCOPE, createTenantKeyGenerator, elevation_default as elevationPlugin, elevationPlugin as elevationPluginFn, 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.41.0 | MIT | https://classytic.com */
2
- import { a as OrgAccessDeniedError, l as UnauthorizedError } from "./errors-C_YhELhe.mjs";
3
- import { n as requireSingleHeaderValue } from "./headers-CNECDE6q.mjs";
4
- import { n as getUserRoles } from "./userHelpers-DDMOZ_Pm.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { a as OrgAccessDeniedError, l as UnauthorizedError } from "./errors-BH7YU_9O.mjs";
3
+ import { n as requireSingleHeaderValue } from "./headers-BIXWKrzQ.mjs";
4
+ import { n as getUserRoles } from "./userHelpers-ChRvkuSZ.mjs";
5
5
  //#region src/scope/resolveOrgFromHeader.ts
6
6
  /**
7
7
  * Create a preHandler hook that resolves org scope from a header.
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  //#region src/utils/simpleEqualityMatcher.ts
3
3
  /**
4
4
  * `simpleEqualityMatcher` — a minimal, dialect-agnostic flat-key equality
@@ -1,9 +1,9 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { t as __exportAll } from "./rolldown-runtime-DjDuyglE.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { t as __exportAll } from "./rolldown-runtime-eysyzFAF.mjs";
3
3
  import { arcLog } from "./logger/index.mjs";
4
- import { c as getOrgId, n as PUBLIC_SCOPE } from "./types-CDy3-zw1.mjs";
5
- import { a as promoteStreamTokenToHeader } from "./streaming-dvppnxsr.mjs";
6
- import { t as openSseStream } from "./sseStream-CN-Lh1Tu.mjs";
4
+ import { c as getOrgId, n as PUBLIC_SCOPE } from "./types-CgenB1gv.mjs";
5
+ import { a as promoteStreamTokenToHeader } from "./streaming-IcRFjWQU.mjs";
6
+ import { t as openSseStream } from "./sseStream-Ppzo-WUH.mjs";
7
7
  import fp from "fastify-plugin";
8
8
  //#region src/plugins/sse.ts
9
9
  var sse_exports = /* @__PURE__ */ __exportAll({
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { n as forwardedStreamHeaders } from "./streaming-dvppnxsr.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { n as forwardedStreamHeaders } from "./streaming-IcRFjWQU.mjs";
3
3
  //#region src/utils/sseStream.ts
4
4
  /**
5
5
  * Take over the reply socket and open an SSE stream. Call ONLY after every
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  //#region src/utils/store-helpers.ts
3
3
  /**
4
4
  * Classify an error thrown by `getOne` / `getById` / `update` as a
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  import { Readable } from "node:stream";
3
3
  //#region src/utils/streaming.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { r as createEvent } from "./EventTransport-n7qO5Cz3.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { r as createEvent } from "./EventTransport-DSqD_Xsg.mjs";
3
3
  //#region src/events/defineEvent.ts
4
4
  /**
5
5
  * Typed event declarations, a registry for introspection, and `.create()` to
@@ -1,3 +1,3 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  import { CursorExpiredError, MemoryChangeLogStore } from "@classytic/repo-core/sync";
3
3
  export { CursorExpiredError, MemoryChangeLogStore };
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  import { afterAll, beforeAll, describe, expect, it } from "vitest";
3
3
  //#region src/testing/cleanupStoreContract.ts
4
4
  /**
@@ -1,12 +1,12 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { t as CRUD_OPERATIONS } from "../constants-BxLgNFF7.mjs";
3
- import { g as getUserId } from "../types-CDy3-zw1.mjs";
4
- import { t as BaseController } from "../BaseController-DYJRZ0EJ.mjs";
5
- import { t as defineAggregation } from "../defineAggregation-UyeurGkp.mjs";
6
- import { t as defineResource } from "../defineResource-DzGT-2LP.mjs";
7
- import { E as requireOrgRole } from "../permissions-DiHXy8Ck.mjs";
8
- import { a as createApp, n as preloadResourcesAsync, t as preloadResources } from "../preloadResources-Bbp4QJ8V.mjs";
9
- import { n as getModuleExports } from "../module-BkQEesNQ.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { t as CRUD_OPERATIONS } from "../constants-D5Ubn1fe.mjs";
3
+ import { g as getUserId } from "../types-CgenB1gv.mjs";
4
+ import { t as BaseController } from "../BaseController-CYEwjyjN.mjs";
5
+ import { t as defineAggregation } from "../defineAggregation-D_eJjm5A.mjs";
6
+ import { t as defineResource } from "../defineResource-DxkMTjRn.mjs";
7
+ import { E as requireOrgRole } from "../permissions-D8TBH44E.mjs";
8
+ import { a as createApp, n as preloadResourcesAsync, t as preloadResources } from "../preloadResources-f3boenVZ.mjs";
9
+ import { n as getModuleExports } from "../module-DpLJG2_N.mjs";
10
10
  import { runStorageContract } from "./storageContract.mjs";
11
11
  import Fastify from "fastify";
12
12
  import { afterAll, describe, expect, it, vi } from "vitest";
@@ -1504,7 +1504,7 @@ function pickDefaultAuth(authMode, callerAuth) {
1504
1504
  };
1505
1505
  }
1506
1506
  async function createTestApp(options = {}) {
1507
- const { createApp } = await import("../preloadResources-Bbp4QJ8V.mjs").then((n) => n.o);
1507
+ const { createApp } = await import("../preloadResources-f3boenVZ.mjs").then((n) => n.o);
1508
1508
  const { resources = [], db = "in-memory", connectMongoose = false, authMode = "jwt", defaultOrgId, plugins, auth: callerAuth, ...appOptions } = options;
1509
1509
  let dbHandle;
1510
1510
  let dbUri;
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  import { OutboxOwnershipError } from "@classytic/primitives/outbox";
3
3
  import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";
4
4
  //#region src/testing/outboxStoreContract.ts
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  import { afterAll, beforeAll, describe, expect, it } from "vitest";
3
3
  //#region src/testing/storageContract.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  //#region src/context/transactionContext.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  //#region src/utils/typeGuards.ts
3
3
  /** Check if fastify has the events plugin registered */
4
4
  function hasEvents(instance) {
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  export {};
@@ -1,2 +1,2 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  export {};
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { l as UnauthorizedError, o as OrgRequiredError } from "./errors-C_YhELhe.mjs";
3
- import { n as requireSingleHeaderValue } from "./headers-CNECDE6q.mjs";
4
- import { t as getUserId$1 } from "./userHelpers-DDMOZ_Pm.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { l as UnauthorizedError, o as OrgRequiredError } from "./errors-BH7YU_9O.mjs";
3
+ import { n as requireSingleHeaderValue } from "./headers-BIXWKrzQ.mjs";
4
+ import { t as getUserId$1 } from "./userHelpers-ChRvkuSZ.mjs";
5
5
  //#region src/scope/types.ts
6
6
  /**
7
7
  * Request Scope — The One Standard
@@ -1,7 +1,7 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
2
- import { t as ArcError } from "../errors-C_YhELhe.mjs";
3
- import { c as getOrgId, g as getUserId, i as getClientId } from "../types-CDy3-zw1.mjs";
4
- import { n as declareRuntimeCapability } from "../runtimeCapabilities-DSA_dH1_.mjs";
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
+ import { t as ArcError } from "../errors-BH7YU_9O.mjs";
3
+ import { c as getOrgId, g as getUserId, i as getClientId } from "../types-CgenB1gv.mjs";
4
+ import { n as declareRuntimeCapability } from "../runtimeCapabilities-CkhS6jn6.mjs";
5
5
  import { usagePeriod } from "@classytic/repo-core/usage";
6
6
  import fp from "fastify-plugin";
7
7
  //#region src/usage/requireQuota.ts
@@ -1,4 +1,4 @@
1
- /*! @classytic/arc v2.41.0 | MIT | https://classytic.com */
1
+ /*! @classytic/arc v2.41.1 | MIT | https://classytic.com */
2
2
  //#region src/utils/userHelpers.ts
3
3
  /**
4
4
  * Extract a user ID from a user object. Accepts `id` or `_id` — returns