@classytic/arc 2.1.2 → 2.1.3

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 (261) hide show
  1. package/dist/{EventTransport-BD2U0BTc.d.mts → EventTransport-BkUDYZEb.d.mts} +1 -2
  2. package/dist/HookSystem-BsGV-j2l.mjs +1 -2
  3. package/dist/{ResourceRegistry-DsN4KJjV.mjs → ResourceRegistry-7Ic20ZMw.mjs} +1 -2
  4. package/dist/adapters/index.d.mts +4 -4
  5. package/dist/audit/index.d.mts +5 -6
  6. package/dist/audit/index.mjs +2 -3
  7. package/dist/audit/mongodb.d.mts +4 -4
  8. package/dist/audit/mongodb.mjs +1 -1
  9. package/dist/{audited-C3T5DTUx.mjs → audited-CGdLiSlE.mjs} +1 -2
  10. package/dist/auth/index.d.mts +6 -7
  11. package/dist/auth/index.mjs +10 -16
  12. package/dist/auth/redis-session.d.mts +2 -3
  13. package/dist/auth/redis-session.mjs +1 -2
  14. package/dist/{betterAuthOpenApi-BrHKeSAx.mjs → betterAuthOpenApi-DjWDddNc.mjs} +2 -3
  15. package/dist/cache/index.d.mts +3 -4
  16. package/dist/cache/index.mjs +4 -5
  17. package/dist/{caching-Bl28lYsR.mjs → caching-GSDJcA6-.mjs} +1 -2
  18. package/dist/{circuitBreaker-DeY4FCjs.mjs → circuitBreaker-DYhWBW_D.mjs} +1 -2
  19. package/dist/cli/commands/describe.d.mts +1 -2
  20. package/dist/cli/commands/describe.mjs +1 -2
  21. package/dist/cli/commands/docs.d.mts +1 -2
  22. package/dist/cli/commands/docs.mjs +3 -4
  23. package/dist/cli/commands/generate.d.mts +1 -2
  24. package/dist/cli/commands/generate.mjs +2 -3
  25. package/dist/cli/commands/init.d.mts +1 -2
  26. package/dist/cli/commands/init.mjs +6 -7
  27. package/dist/cli/commands/introspect.d.mts +1 -2
  28. package/dist/cli/commands/introspect.mjs +2 -3
  29. package/dist/cli/index.d.mts +1 -2
  30. package/dist/cli/index.mjs +1 -2
  31. package/dist/constants-DdXFXQtN.mjs +1 -2
  32. package/dist/core/index.d.mts +4 -4
  33. package/dist/core/index.mjs +1 -1
  34. package/dist/{createApp-CUgNqegw.mjs → createApp-D2D5XXaV.mjs} +9 -10
  35. package/dist/{defineResource-k0_BDn8v.mjs → defineResource-PXzSJ15_.mjs} +11 -11
  36. package/dist/discovery/index.d.mts +1 -2
  37. package/dist/discovery/index.mjs +1 -2
  38. package/dist/docs/index.d.mts +5 -6
  39. package/dist/docs/index.mjs +5 -4
  40. package/dist/{elevation-B_2dRLVP.d.mts → elevation-DGo5shaX.d.mts} +1 -2
  41. package/dist/{elevation-BRy3yFWT.mjs → elevation-DSTbVvYj.mjs} +4 -4
  42. package/dist/{errorHandler-C1okiriz.mjs → errorHandler-C3GY3_ow.mjs} +2 -3
  43. package/dist/{errorHandler-BbcgBmIH.d.mts → errorHandler-CW3OOeYq.d.mts} +2 -3
  44. package/dist/{errors-ChKiFz62.d.mts → errors-DAWRdiYP.d.mts} +1 -2
  45. package/dist/{errors-B9bZok84.mjs → errors-DBANPbGr.mjs} +1 -2
  46. package/dist/{eventPlugin-DGR_B2on.mjs → eventPlugin-BEOvaDqo.mjs} +2 -3
  47. package/dist/{eventPlugin-CTrLH3mt.d.mts → eventPlugin-H6wDDjGO.d.mts} +2 -3
  48. package/dist/events/index.d.mts +4 -5
  49. package/dist/events/index.mjs +2 -3
  50. package/dist/events/transports/redis-stream-entry.d.mts +1 -1
  51. package/dist/events/transports/redis-stream-entry.mjs +1 -2
  52. package/dist/events/transports/redis.d.mts +2 -3
  53. package/dist/events/transports/redis.mjs +1 -2
  54. package/dist/{externalPaths-DlINfKbP.d.mts → externalPaths-SyPF2tgK.d.mts} +1 -2
  55. package/dist/factory/index.d.mts +8 -9
  56. package/dist/factory/index.mjs +1 -1
  57. package/dist/{fastifyAdapter-BkrGrlFi.d.mts → fastifyAdapter-C8DlE0YH.d.mts} +4 -5
  58. package/dist/{fields-DyaDVX4J.d.mts → fields-Bi_AVKSo.d.mts} +2 -3
  59. package/dist/{fields-iagOozy0.mjs → fields-CTd_CrKr.mjs} +2 -3
  60. package/dist/hooks/index.d.mts +3 -3
  61. package/dist/idempotency/index.d.mts +4 -5
  62. package/dist/idempotency/index.mjs +1 -2
  63. package/dist/idempotency/mongodb.d.mts +1 -1
  64. package/dist/idempotency/mongodb.mjs +1 -2
  65. package/dist/idempotency/redis.d.mts +1 -1
  66. package/dist/idempotency/redis.mjs +1 -2
  67. package/dist/index.d.mts +9 -10
  68. package/dist/index.mjs +7 -8
  69. package/dist/integrations/event-gateway.d.mts +2 -3
  70. package/dist/integrations/event-gateway.mjs +2 -3
  71. package/dist/integrations/jobs.d.mts +1 -2
  72. package/dist/integrations/jobs.mjs +1 -2
  73. package/dist/integrations/streamline.d.mts +1 -2
  74. package/dist/integrations/streamline.mjs +1 -2
  75. package/dist/integrations/websocket.d.mts +1 -2
  76. package/dist/integrations/websocket.mjs +1 -2
  77. package/dist/{interface-B01JvPVc.d.mts → interface-CSNjltAc.d.mts} +1 -2
  78. package/dist/{interface-CZe8IkMf.d.mts → interface-DTbsvIWe.d.mts} +1 -2
  79. package/dist/{interface-Ch8HU9uM.d.mts → interface-e9XfSsUV.d.mts} +3 -4
  80. package/dist/{introspectionPlugin-rFdO8ZUa.mjs → introspectionPlugin-B3JkrjwU.mjs} +1 -2
  81. package/dist/{keys-BqNejWup.mjs → keys-DhqDRxv3.mjs} +1 -2
  82. package/dist/{logger-Df2O2WsW.mjs → logger-ByrvQWZO.mjs} +1 -2
  83. package/dist/{memory-cQgelFOj.mjs → memory-B2v7KrCB.mjs} +1 -2
  84. package/dist/migrations/index.d.mts +1 -2
  85. package/dist/migrations/index.mjs +1 -2
  86. package/dist/{mongodb-CGzRbfAK.d.mts → mongodb-ClykrfGo.d.mts} +2 -3
  87. package/dist/{mongodb-BfJVlUJH.mjs → mongodb-DNKEExbf.mjs} +1 -2
  88. package/dist/{mongodb-JN-9JA7K.d.mts → mongodb-Dg8O_gvd.d.mts} +2 -3
  89. package/dist/{openapi-G3Cw7XuM.mjs → openapi-9nB_kiuR.mjs} +5 -4
  90. package/dist/org/index.d.mts +4 -5
  91. package/dist/org/index.mjs +1 -2
  92. package/dist/org/types.d.mts +1 -2
  93. package/dist/permissions/index.d.mts +5 -6
  94. package/dist/permissions/index.mjs +7 -7
  95. package/dist/plugins/index.d.mts +7 -8
  96. package/dist/plugins/index.mjs +7 -8
  97. package/dist/plugins/response-cache.d.mts +1 -2
  98. package/dist/plugins/response-cache.mjs +2 -3
  99. package/dist/plugins/tracing-entry.d.mts +1 -1
  100. package/dist/plugins/tracing-entry.mjs +1 -2
  101. package/dist/{pluralize-CEweyOEm.mjs → pluralize-CM-jZg7p.mjs} +1 -2
  102. package/dist/policies/index.d.mts +4 -5
  103. package/dist/policies/index.mjs +1 -2
  104. package/dist/presets/index.d.mts +4 -5
  105. package/dist/presets/index.mjs +2 -3
  106. package/dist/presets/multiTenant.d.mts +4 -5
  107. package/dist/presets/multiTenant.mjs +1 -2
  108. package/dist/{presets-DzSMwlKj.d.mts → presets-BTeYbw7h.d.mts} +2 -3
  109. package/dist/{presets-BITljm96.mjs → presets-CeFtfDR8.mjs} +1 -2
  110. package/dist/{prisma-Dg9GoVdj.d.mts → prisma-C3iornoK.d.mts} +2 -3
  111. package/dist/prisma-DJbMt3yf.mjs +1 -2
  112. package/dist/{queryCachePlugin-DMBnp2Q0.mjs → queryCachePlugin-B6R0d4av.mjs} +4 -5
  113. package/dist/{queryCachePlugin-7THaI5mt.d.mts → queryCachePlugin-Q6SYuHZ6.d.mts} +2 -3
  114. package/dist/{redis-D-JAeLtm.d.mts → redis-UwjEp8Ea.d.mts} +2 -3
  115. package/dist/{redis-stream-Bdh_vUU8.d.mts → redis-stream-CBg0upHI.d.mts} +2 -3
  116. package/dist/registry/index.d.mts +4 -5
  117. package/dist/registry/index.mjs +2 -2
  118. package/dist/{requestContext-QQD6ROJc.mjs → requestContext-xi6OKBL-.mjs} +1 -2
  119. package/dist/{schemaConverter-BwrmWroW.mjs → schemaConverter-Dtg0Kt9T.mjs} +1 -2
  120. package/dist/schemas/index.d.mts +1 -2
  121. package/dist/schemas/index.mjs +1 -2
  122. package/dist/scope/index.d.mts +2 -3
  123. package/dist/scope/index.mjs +2 -3
  124. package/dist/{sessionManager-jPKLbHE0.d.mts → sessionManager-D_iEHjQl.d.mts} +1 -2
  125. package/dist/{sse-B3c3_yZp.mjs → sse-DkqQ1uxb.mjs} +2 -3
  126. package/dist/testing/index.d.mts +8 -9
  127. package/dist/testing/index.mjs +3 -4
  128. package/dist/{tracing-Cc7vVQPp.d.mts → tracing-8CEbhF0w.d.mts} +1 -2
  129. package/dist/{typeGuards-DhMNLuvU.mjs → typeGuards-DwxA1t_L.mjs} +1 -2
  130. package/dist/types/index.d.mts +6 -7
  131. package/dist/types/index.mjs +1 -2
  132. package/dist/{types-CIgB7UUl.d.mts → types-B0dhNrnd.d.mts} +9 -10
  133. package/dist/types-Beqn1Un7.mjs +1 -2
  134. package/dist/types-DelU6kln.mjs +25 -0
  135. package/dist/{types-aYB4V7uN.d.mts → types-RLkFVgaw.d.mts} +18 -4
  136. package/dist/utils/index.d.mts +5 -6
  137. package/dist/utils/index.mjs +4 -4
  138. package/package.json +1 -1
  139. package/dist/EventTransport-BD2U0BTc.d.mts.map +0 -1
  140. package/dist/HookSystem-BsGV-j2l.mjs.map +0 -1
  141. package/dist/ResourceRegistry-DsN4KJjV.mjs.map +0 -1
  142. package/dist/audit/index.d.mts.map +0 -1
  143. package/dist/audit/index.mjs.map +0 -1
  144. package/dist/audited-C3T5DTUx.mjs.map +0 -1
  145. package/dist/auth/index.d.mts.map +0 -1
  146. package/dist/auth/index.mjs.map +0 -1
  147. package/dist/auth/redis-session.d.mts.map +0 -1
  148. package/dist/auth/redis-session.mjs.map +0 -1
  149. package/dist/betterAuthOpenApi-BrHKeSAx.mjs.map +0 -1
  150. package/dist/cache/index.d.mts.map +0 -1
  151. package/dist/cache/index.mjs.map +0 -1
  152. package/dist/caching-Bl28lYsR.mjs.map +0 -1
  153. package/dist/circuitBreaker-DeY4FCjs.mjs.map +0 -1
  154. package/dist/cli/commands/describe.d.mts.map +0 -1
  155. package/dist/cli/commands/describe.mjs.map +0 -1
  156. package/dist/cli/commands/docs.d.mts.map +0 -1
  157. package/dist/cli/commands/docs.mjs.map +0 -1
  158. package/dist/cli/commands/generate.d.mts.map +0 -1
  159. package/dist/cli/commands/generate.mjs.map +0 -1
  160. package/dist/cli/commands/init.d.mts.map +0 -1
  161. package/dist/cli/commands/init.mjs.map +0 -1
  162. package/dist/cli/commands/introspect.d.mts.map +0 -1
  163. package/dist/cli/commands/introspect.mjs.map +0 -1
  164. package/dist/cli/index.d.mts.map +0 -1
  165. package/dist/cli/index.mjs.map +0 -1
  166. package/dist/constants-DdXFXQtN.mjs.map +0 -1
  167. package/dist/createApp-CUgNqegw.mjs.map +0 -1
  168. package/dist/defineResource-k0_BDn8v.mjs.map +0 -1
  169. package/dist/discovery/index.d.mts.map +0 -1
  170. package/dist/discovery/index.mjs.map +0 -1
  171. package/dist/docs/index.d.mts.map +0 -1
  172. package/dist/docs/index.mjs.map +0 -1
  173. package/dist/elevation-BRy3yFWT.mjs.map +0 -1
  174. package/dist/elevation-B_2dRLVP.d.mts.map +0 -1
  175. package/dist/errorHandler-BbcgBmIH.d.mts.map +0 -1
  176. package/dist/errorHandler-C1okiriz.mjs.map +0 -1
  177. package/dist/errors-B9bZok84.mjs.map +0 -1
  178. package/dist/errors-ChKiFz62.d.mts.map +0 -1
  179. package/dist/eventPlugin-CTrLH3mt.d.mts.map +0 -1
  180. package/dist/eventPlugin-DGR_B2on.mjs.map +0 -1
  181. package/dist/events/index.d.mts.map +0 -1
  182. package/dist/events/index.mjs.map +0 -1
  183. package/dist/events/transports/redis-stream-entry.mjs.map +0 -1
  184. package/dist/events/transports/redis.d.mts.map +0 -1
  185. package/dist/events/transports/redis.mjs.map +0 -1
  186. package/dist/externalPaths-DlINfKbP.d.mts.map +0 -1
  187. package/dist/factory/index.d.mts.map +0 -1
  188. package/dist/fastifyAdapter-BkrGrlFi.d.mts.map +0 -1
  189. package/dist/fields-DyaDVX4J.d.mts.map +0 -1
  190. package/dist/fields-iagOozy0.mjs.map +0 -1
  191. package/dist/idempotency/index.d.mts.map +0 -1
  192. package/dist/idempotency/index.mjs.map +0 -1
  193. package/dist/idempotency/mongodb.mjs.map +0 -1
  194. package/dist/idempotency/redis.mjs.map +0 -1
  195. package/dist/index.d.mts.map +0 -1
  196. package/dist/index.mjs.map +0 -1
  197. package/dist/integrations/event-gateway.d.mts.map +0 -1
  198. package/dist/integrations/event-gateway.mjs.map +0 -1
  199. package/dist/integrations/jobs.d.mts.map +0 -1
  200. package/dist/integrations/jobs.mjs.map +0 -1
  201. package/dist/integrations/streamline.d.mts.map +0 -1
  202. package/dist/integrations/streamline.mjs.map +0 -1
  203. package/dist/integrations/websocket.d.mts.map +0 -1
  204. package/dist/integrations/websocket.mjs.map +0 -1
  205. package/dist/interface-B01JvPVc.d.mts.map +0 -1
  206. package/dist/interface-CZe8IkMf.d.mts.map +0 -1
  207. package/dist/interface-Ch8HU9uM.d.mts.map +0 -1
  208. package/dist/introspectionPlugin-rFdO8ZUa.mjs.map +0 -1
  209. package/dist/keys-BqNejWup.mjs.map +0 -1
  210. package/dist/logger-Df2O2WsW.mjs.map +0 -1
  211. package/dist/memory-cQgelFOj.mjs.map +0 -1
  212. package/dist/migrations/index.d.mts.map +0 -1
  213. package/dist/migrations/index.mjs.map +0 -1
  214. package/dist/mongodb-BfJVlUJH.mjs.map +0 -1
  215. package/dist/mongodb-CGzRbfAK.d.mts.map +0 -1
  216. package/dist/mongodb-JN-9JA7K.d.mts.map +0 -1
  217. package/dist/openapi-G3Cw7XuM.mjs.map +0 -1
  218. package/dist/org/index.d.mts.map +0 -1
  219. package/dist/org/index.mjs.map +0 -1
  220. package/dist/org/types.d.mts.map +0 -1
  221. package/dist/permissions/index.d.mts.map +0 -1
  222. package/dist/permissions/index.mjs.map +0 -1
  223. package/dist/plugins/index.d.mts.map +0 -1
  224. package/dist/plugins/index.mjs.map +0 -1
  225. package/dist/plugins/response-cache.d.mts.map +0 -1
  226. package/dist/plugins/response-cache.mjs.map +0 -1
  227. package/dist/plugins/tracing-entry.mjs.map +0 -1
  228. package/dist/pluralize-CEweyOEm.mjs.map +0 -1
  229. package/dist/policies/index.d.mts.map +0 -1
  230. package/dist/policies/index.mjs.map +0 -1
  231. package/dist/presets/index.d.mts.map +0 -1
  232. package/dist/presets/index.mjs.map +0 -1
  233. package/dist/presets/multiTenant.d.mts.map +0 -1
  234. package/dist/presets/multiTenant.mjs.map +0 -1
  235. package/dist/presets-BITljm96.mjs.map +0 -1
  236. package/dist/presets-DzSMwlKj.d.mts.map +0 -1
  237. package/dist/prisma-DJbMt3yf.mjs.map +0 -1
  238. package/dist/prisma-Dg9GoVdj.d.mts.map +0 -1
  239. package/dist/queryCachePlugin-7THaI5mt.d.mts.map +0 -1
  240. package/dist/queryCachePlugin-DMBnp2Q0.mjs.map +0 -1
  241. package/dist/redis-D-JAeLtm.d.mts.map +0 -1
  242. package/dist/redis-stream-Bdh_vUU8.d.mts.map +0 -1
  243. package/dist/registry/index.d.mts.map +0 -1
  244. package/dist/requestContext-QQD6ROJc.mjs.map +0 -1
  245. package/dist/schemaConverter-BwrmWroW.mjs.map +0 -1
  246. package/dist/schemas/index.d.mts.map +0 -1
  247. package/dist/schemas/index.mjs.map +0 -1
  248. package/dist/scope/index.d.mts.map +0 -1
  249. package/dist/scope/index.mjs.map +0 -1
  250. package/dist/sessionManager-jPKLbHE0.d.mts.map +0 -1
  251. package/dist/sse-B3c3_yZp.mjs.map +0 -1
  252. package/dist/testing/index.d.mts.map +0 -1
  253. package/dist/testing/index.mjs.map +0 -1
  254. package/dist/tracing-Cc7vVQPp.d.mts.map +0 -1
  255. package/dist/typeGuards-DhMNLuvU.mjs.map +0 -1
  256. package/dist/types/index.d.mts.map +0 -1
  257. package/dist/types/index.mjs.map +0 -1
  258. package/dist/types-Beqn1Un7.mjs.map +0 -1
  259. package/dist/types-CIgB7UUl.d.mts.map +0 -1
  260. package/dist/types-aYB4V7uN.d.mts.map +0 -1
  261. package/dist/utils/index.d.mts.map +0 -1
@@ -75,5 +75,4 @@ function isSuppressed() {
75
75
  }
76
76
 
77
77
  //#endregion
78
- export { configureArcLogger as n, logger_exports as r, arcLog as t };
79
- //# sourceMappingURL=logger-Df2O2WsW.mjs.map
78
+ export { configureArcLogger as n, logger_exports as r, arcLog as t };
@@ -140,5 +140,4 @@ function clamp(value, min, max) {
140
140
  }
141
141
 
142
142
  //#endregion
143
- export { memory_exports as n, MemoryCacheStore as t };
144
- //# sourceMappingURL=memory-cQgelFOj.mjs.map
143
+ export { memory_exports as n, MemoryCacheStore as t };
@@ -153,5 +153,4 @@ declare const migrationHelpers: {
153
153
  createIndex: (collection: string, fields: Record<string, 1 | -1>, options?: Record<string, unknown>) => Migration;
154
154
  };
155
155
  //#endregion
156
- export { Migration, MigrationRecord, MigrationRegistry, MigrationRunner, SchemaVersion, defineMigration, migrationHelpers, migrationRegistry, withSchemaVersion };
157
- //# sourceMappingURL=index.d.mts.map
156
+ export { Migration, MigrationRecord, MigrationRegistry, MigrationRunner, SchemaVersion, defineMigration, migrationHelpers, migrationRegistry, withSchemaVersion };
@@ -257,5 +257,4 @@ const migrationHelpers = {
257
257
  };
258
258
 
259
259
  //#endregion
260
- export { MigrationRegistry, MigrationRunner, defineMigration, migrationHelpers, migrationRegistry, withSchemaVersion };
261
- //# sourceMappingURL=index.mjs.map
260
+ export { MigrationRegistry, MigrationRunner, defineMigration, migrationHelpers, migrationRegistry, withSchemaVersion };
@@ -1,4 +1,4 @@
1
- import { i as UserBase } from "./types-aYB4V7uN.mjs";
1
+ import { i as UserBase } from "./types-RLkFVgaw.mjs";
2
2
 
3
3
  //#region src/audit/stores/interface.d.ts
4
4
  type AuditAction = 'create' | 'update' | 'delete' | 'restore' | 'custom';
@@ -115,5 +115,4 @@ declare class MongoAuditStore implements AuditStore {
115
115
  query(options?: AuditQueryOptions): Promise<AuditEntry[]>;
116
116
  }
117
117
  //#endregion
118
- export { AuditContext as a, AuditStore as c, AuditAction as i, AuditStoreOptions as l, MongoAuditStoreOptions as n, AuditEntry as o, MongoConnection as r, AuditQueryOptions as s, MongoAuditStore as t, createAuditEntry as u };
119
- //# sourceMappingURL=mongodb-CGzRbfAK.d.mts.map
118
+ export { AuditContext as a, AuditStore as c, AuditAction as i, AuditStoreOptions as l, MongoAuditStoreOptions as n, AuditEntry as o, MongoConnection as r, AuditQueryOptions as s, MongoAuditStore as t, createAuditEntry as u };
@@ -90,5 +90,4 @@ var MongoAuditStore = class {
90
90
  };
91
91
 
92
92
  //#endregion
93
- export { MongoAuditStore as t };
94
- //# sourceMappingURL=mongodb-BfJVlUJH.mjs.map
93
+ export { MongoAuditStore as t };
@@ -1,4 +1,4 @@
1
- import { n as IdempotencyResult, r as IdempotencyStore } from "./interface-B01JvPVc.mjs";
1
+ import { n as IdempotencyResult, r as IdempotencyStore } from "./interface-CSNjltAc.mjs";
2
2
 
3
3
  //#region src/idempotency/stores/mongodb.d.ts
4
4
  interface MongoConnection {
@@ -68,5 +68,4 @@ declare class MongoIdempotencyStore implements IdempotencyStore {
68
68
  close(): Promise<void>;
69
69
  }
70
70
  //#endregion
71
- export { MongoIdempotencyStoreOptions as n, MongoIdempotencyStore as t };
72
- //# sourceMappingURL=mongodb-JN-9JA7K.d.mts.map
71
+ export { MongoIdempotencyStoreOptions as n, MongoIdempotencyStore as t };
@@ -1,4 +1,5 @@
1
- import { n as convertRouteSchema } from "./schemaConverter-BwrmWroW.mjs";
1
+ import { t as getUserRoles } from "./types-DelU6kln.mjs";
2
+ import { n as convertRouteSchema } from "./schemaConverter-Dtg0Kt9T.mjs";
2
3
  import fp from "fastify-plugin";
3
4
 
4
5
  //#region src/docs/openapi.ts
@@ -34,7 +35,8 @@ const openApiPlugin = async (fastify, opts = {}) => {
34
35
  fastify.get(`${prefix}/openapi.json`, async (request, reply) => {
35
36
  if (authRoles.length > 0) {
36
37
  const user = request.user;
37
- if (!authRoles.some((role) => user?.roles?.includes(role)) && !user?.roles?.includes("superadmin")) {
38
+ const roles = getUserRoles(user);
39
+ if (!authRoles.some((r) => roles.includes(r)) && !roles.includes("superadmin")) {
38
40
  reply.code(403).send({ error: "Access denied" });
39
41
  return;
40
42
  }
@@ -520,5 +522,4 @@ var openapi_default = fp(openApiPlugin, {
520
522
  });
521
523
 
522
524
  //#endregion
523
- export { openApiPlugin as n, openapi_default as r, buildOpenApiSpec as t };
524
- //# sourceMappingURL=openapi-G3Cw7XuM.mjs.map
525
+ export { openApiPlugin as n, openapi_default as r, buildOpenApiSpec as t };
@@ -1,6 +1,6 @@
1
- import "../elevation-B_2dRLVP.mjs";
2
- import { S as RouteHandler } from "../interface-Ch8HU9uM.mjs";
3
- import { i as UserBase } from "../types-aYB4V7uN.mjs";
1
+ import "../elevation-DGo5shaX.mjs";
2
+ import { S as RouteHandler } from "../interface-e9XfSsUV.mjs";
3
+ import { i as UserBase } from "../types-RLkFVgaw.mjs";
4
4
  import "../types/index.mjs";
5
5
  import { InvitationAdapter, InvitationDoc, MemberDoc, OrgAdapter, OrgDoc, OrgPermissionStatement, OrgRole, OrganizationPluginOptions } from "./types.mjs";
6
6
  import { FastifyPluginAsync, RouteHandlerMethod } from "fastify";
@@ -65,5 +65,4 @@ declare module 'fastify' {
65
65
  declare const organizationPlugin: FastifyPluginAsync<OrganizationPluginOptions>;
66
66
  declare const _default: FastifyPluginAsync<OrganizationPluginOptions>;
67
67
  //#endregion
68
- export { type InvitationAdapter, type InvitationDoc, type MemberDoc, type OrgAdapter, type OrgDoc, type OrgGuardOptions, type OrgMembershipOptions, type OrgPermissionStatement, type OrgRole, type OrgRolesOptions, type OrganizationPluginOptions, getUserOrgRoles, hasOrgRole, orgGuard, orgMembershipCheck, _default as organizationPlugin, organizationPlugin as organizationPluginFn, requireOrg, requireOrgRole };
69
- //# sourceMappingURL=index.d.mts.map
68
+ export { type InvitationAdapter, type InvitationDoc, type MemberDoc, type OrgAdapter, type OrgDoc, type OrgGuardOptions, type OrgMembershipOptions, type OrgPermissionStatement, type OrgRole, type OrgRolesOptions, type OrganizationPluginOptions, getUserOrgRoles, hasOrgRole, orgGuard, orgMembershipCheck, _default as organizationPlugin, organizationPlugin as organizationPluginFn, requireOrg, requireOrgRole };
@@ -510,5 +510,4 @@ var organizationPlugin_default = fp(organizationPlugin, {
510
510
  });
511
511
 
512
512
  //#endregion
513
- export { getUserOrgRoles, hasOrgRole, orgGuard, orgMembershipCheck, organizationPlugin_default as organizationPlugin, organizationPlugin as organizationPluginFn, requireOrg, requireOrgRole };
514
- //# sourceMappingURL=index.mjs.map
513
+ export { getUserOrgRoles, hasOrgRole, orgGuard, orgMembershipCheck, organizationPlugin_default as organizationPlugin, organizationPlugin as organizationPluginFn, requireOrg, requireOrgRole };
@@ -79,5 +79,4 @@ interface OrganizationPluginOptions {
79
79
  enableInvitations?: boolean;
80
80
  }
81
81
  //#endregion
82
- export { InvitationAdapter, InvitationDoc, MemberDoc, OrgAdapter, OrgDoc, OrgPermissionStatement, OrgRole, OrganizationPluginOptions };
83
- //# sourceMappingURL=types.d.mts.map
82
+ export { InvitationAdapter, InvitationDoc, MemberDoc, OrgAdapter, OrgDoc, OrgPermissionStatement, OrgRole, OrganizationPluginOptions };
@@ -1,7 +1,7 @@
1
- import { a as applyFieldWritePermissions, i as applyFieldReadPermissions, n as FieldPermissionMap, o as fields, r as FieldPermissionType, s as resolveEffectiveRoles, t as FieldPermission } from "../fields-DyaDVX4J.mjs";
2
- import { i as UserBase, n as PermissionContext, r as PermissionResult, t as PermissionCheck } from "../types-aYB4V7uN.mjs";
3
- import { i as CacheStore, t as CacheLogger } from "../interface-CZe8IkMf.mjs";
4
- import { a as presets_d_exports, c as readOnly, i as ownerWithAdminBypass, n as authenticated, o as publicRead, r as fullPublic, s as publicReadAdminWrite, t as adminOnly } from "../presets-DzSMwlKj.mjs";
1
+ import { a as applyFieldWritePermissions, i as applyFieldReadPermissions, n as FieldPermissionMap, o as fields, r as FieldPermissionType, s as resolveEffectiveRoles, t as FieldPermission } from "../fields-Bi_AVKSo.mjs";
2
+ import { a as getUserRoles, i as UserBase, n as PermissionContext, o as normalizeRoles, r as PermissionResult, t as PermissionCheck } from "../types-RLkFVgaw.mjs";
3
+ import { i as CacheStore, t as CacheLogger } from "../interface-DTbsvIWe.mjs";
4
+ import { a as presets_d_exports, c as readOnly, i as ownerWithAdminBypass, n as authenticated, o as publicRead, r as fullPublic, s as publicReadAdminWrite, t as adminOnly } from "../presets-BTeYbw7h.mjs";
5
5
 
6
6
  //#region src/permissions/index.d.ts
7
7
  interface DynamicPermissionMatrixConfig {
@@ -275,5 +275,4 @@ declare function createDynamicPermissionMatrix(config: DynamicPermissionMatrixCo
275
275
  */
276
276
  declare function requireTeamMembership<TDoc = any>(): PermissionCheck<TDoc>;
277
277
  //#endregion
278
- export { ConnectEventsOptions, DynamicPermissionMatrix, DynamicPermissionMatrixConfig, type FieldPermission, type FieldPermissionMap, type FieldPermissionType, type PermissionCheck, type PermissionContext, PermissionEventBus, type PermissionResult, type UserBase, adminOnly, allOf, allowPublic, anyOf, applyFieldReadPermissions, applyFieldWritePermissions, authenticated, createDynamicPermissionMatrix, createOrgPermissions, denyAll, fields, fullPublic, ownerWithAdminBypass, presets_d_exports as permissions, publicRead, publicReadAdminWrite, readOnly, requireAuth, requireOrgMembership, requireOrgRole, requireOwnership, requireRoles, requireTeamMembership, resolveEffectiveRoles, when };
279
- //# sourceMappingURL=index.d.mts.map
278
+ export { ConnectEventsOptions, DynamicPermissionMatrix, DynamicPermissionMatrixConfig, type FieldPermission, type FieldPermissionMap, type FieldPermissionType, type PermissionCheck, type PermissionContext, PermissionEventBus, type PermissionResult, type UserBase, adminOnly, allOf, allowPublic, anyOf, applyFieldReadPermissions, applyFieldWritePermissions, authenticated, createDynamicPermissionMatrix, createOrgPermissions, denyAll, fields, fullPublic, getUserRoles, normalizeRoles, ownerWithAdminBypass, presets_d_exports as permissions, publicRead, publicReadAdminWrite, readOnly, requireAuth, requireOrgMembership, requireOrgRole, requireOwnership, requireRoles, requireTeamMembership, resolveEffectiveRoles, when };
@@ -1,7 +1,8 @@
1
1
  import { a as getTeamId, c as isElevated, l as isMember, n as PUBLIC_SCOPE } from "../types-Beqn1Un7.mjs";
2
- import { i as resolveEffectiveRoles, n as applyFieldWritePermissions, r as fields, t as applyFieldReadPermissions } from "../fields-iagOozy0.mjs";
3
- import { t as MemoryCacheStore } from "../memory-cQgelFOj.mjs";
4
- import { a as presets_exports, c as readOnly, i as ownerWithAdminBypass, n as authenticated, o as publicRead, r as fullPublic, s as publicReadAdminWrite, t as adminOnly } from "../presets-BITljm96.mjs";
2
+ import { i as resolveEffectiveRoles, n as applyFieldWritePermissions, r as fields, t as applyFieldReadPermissions } from "../fields-CTd_CrKr.mjs";
3
+ import { n as normalizeRoles, t as getUserRoles } from "../types-DelU6kln.mjs";
4
+ import { t as MemoryCacheStore } from "../memory-B2v7KrCB.mjs";
5
+ import { a as presets_exports, c as readOnly, i as ownerWithAdminBypass, n as authenticated, o as publicRead, r as fullPublic, s as publicReadAdminWrite, t as adminOnly } from "../presets-CeFtfDR8.mjs";
5
6
  import { randomUUID } from "node:crypto";
6
7
 
7
8
  //#region src/permissions/index.ts
@@ -67,7 +68,7 @@ function requireRoles(roles, options) {
67
68
  granted: false,
68
69
  reason: "Authentication required"
69
70
  };
70
- const userRoles = ctx.user.roles ?? [];
71
+ const userRoles = getUserRoles(ctx.user);
71
72
  if (options?.bypassRoles?.some((r) => userRoles.includes(r))) return true;
72
73
  if (roles.some((r) => userRoles.includes(r))) return true;
73
74
  return {
@@ -100,7 +101,7 @@ function requireOwnership(ownerField = "userId", options) {
100
101
  granted: false,
101
102
  reason: "Authentication required"
102
103
  };
103
- const userRoles = ctx.user.roles ?? [];
104
+ const userRoles = getUserRoles(ctx.user);
104
105
  if (options?.bypassRoles?.some((r) => userRoles.includes(r))) return true;
105
106
  const userId = ctx.user.id ?? ctx.user._id;
106
107
  if (!userId) return {
@@ -575,5 +576,4 @@ function requireTeamMembership() {
575
576
  }
576
577
 
577
578
  //#endregion
578
- export { adminOnly, allOf, allowPublic, anyOf, applyFieldReadPermissions, applyFieldWritePermissions, authenticated, createDynamicPermissionMatrix, createOrgPermissions, denyAll, fields, fullPublic, ownerWithAdminBypass, presets_exports as permissions, publicRead, publicReadAdminWrite, readOnly, requireAuth, requireOrgMembership, requireOrgRole, requireOwnership, requireRoles, requireTeamMembership, resolveEffectiveRoles, when };
579
- //# sourceMappingURL=index.mjs.map
579
+ export { adminOnly, allOf, allowPublic, anyOf, applyFieldReadPermissions, applyFieldWritePermissions, authenticated, createDynamicPermissionMatrix, createOrgPermissions, denyAll, fields, fullPublic, getUserRoles, normalizeRoles, ownerWithAdminBypass, presets_exports as permissions, publicRead, publicReadAdminWrite, readOnly, requireAuth, requireOrgMembership, requireOrgRole, requireOwnership, requireRoles, requireTeamMembership, resolveEffectiveRoles, when };
@@ -1,10 +1,10 @@
1
- import "../elevation-B_2dRLVP.mjs";
2
- import { K as HookSystem, w as ResourceRegistry } from "../interface-Ch8HU9uM.mjs";
3
- import "../types-aYB4V7uN.mjs";
1
+ import "../elevation-DGo5shaX.mjs";
2
+ import { K as HookSystem, w as ResourceRegistry } from "../interface-e9XfSsUV.mjs";
3
+ import "../types-RLkFVgaw.mjs";
4
4
  import { AdditionalRoute, AnyRecord, MiddlewareConfig, PresetHook, RouteSchemaOptions } from "../types/index.mjs";
5
- import { t as ExternalOpenApiPaths } from "../externalPaths-DlINfKbP.mjs";
6
- import { a as ssePlugin, c as _default$1, i as _default$5, l as cachingPlugin, n as errorHandlerPlugin, o as CachingOptions, r as SSEOptions, s as CachingRule, t as ErrorHandlerOptions } from "../errorHandler-BbcgBmIH.mjs";
7
- import { t as TracingOptions } from "../tracing-Cc7vVQPp.mjs";
5
+ import { t as ExternalOpenApiPaths } from "../externalPaths-SyPF2tgK.mjs";
6
+ import { a as ssePlugin, c as _default$1, i as _default$5, l as cachingPlugin, n as errorHandlerPlugin, o as CachingOptions, r as SSEOptions, s as CachingRule, t as ErrorHandlerOptions } from "../errorHandler-CW3OOeYq.mjs";
7
+ import { t as TracingOptions } from "../tracing-8CEbhF0w.mjs";
8
8
  import { FastifyInstance, FastifyPluginAsync } from "fastify";
9
9
 
10
10
  //#region src/plugins/requestId.d.ts
@@ -169,5 +169,4 @@ declare module 'fastify' {
169
169
  declare const arcCorePlugin: FastifyPluginAsync<ArcCorePluginOptions>;
170
170
  declare const _default: FastifyPluginAsync<ArcCorePluginOptions>;
171
171
  //#endregion
172
- export { type ArcCore, type ArcCorePluginOptions, type ArcPlugin, type CachingOptions, type CachingRule, type CreatePluginDefinition, type ErrorHandlerOptions, type GracefulShutdownOptions, type HealthCheck, type HealthOptions, type PluginMeta, type PluginResourceResult, type RequestIdOptions, type SSEOptions, type TracingOptions, _default as arcCorePlugin, arcCorePlugin as arcCorePluginFn, _default$1 as cachingPlugin, cachingPlugin as cachingPluginFn, createPlugin, errorHandlerPlugin, errorHandlerPlugin as errorHandlerPluginFn, _default$2 as gracefulShutdownPlugin, gracefulShutdownPlugin as gracefulShutdownPluginFn, _default$3 as healthPlugin, healthPlugin as healthPluginFn, _default$4 as requestIdPlugin, requestIdPlugin as requestIdPluginFn, _default$5 as ssePlugin, ssePlugin as ssePluginFn };
173
- //# sourceMappingURL=index.d.mts.map
172
+ export { type ArcCore, type ArcCorePluginOptions, type ArcPlugin, type CachingOptions, type CachingRule, type CreatePluginDefinition, type ErrorHandlerOptions, type GracefulShutdownOptions, type HealthCheck, type HealthOptions, type PluginMeta, type PluginResourceResult, type RequestIdOptions, type SSEOptions, type TracingOptions, _default as arcCorePlugin, arcCorePlugin as arcCorePluginFn, _default$1 as cachingPlugin, cachingPlugin as cachingPluginFn, createPlugin, errorHandlerPlugin, errorHandlerPlugin as errorHandlerPluginFn, _default$2 as gracefulShutdownPlugin, gracefulShutdownPlugin as gracefulShutdownPluginFn, _default$3 as healthPlugin, healthPlugin as healthPluginFn, _default$4 as requestIdPlugin, requestIdPlugin as requestIdPluginFn, _default$5 as ssePlugin, ssePlugin as ssePluginFn };
@@ -1,12 +1,12 @@
1
1
  import { p as MUTATION_OPERATIONS } from "../constants-DdXFXQtN.mjs";
2
2
  import { r as getOrgId } from "../types-Beqn1Un7.mjs";
3
3
  import { t as HookSystem } from "../HookSystem-BsGV-j2l.mjs";
4
- import { t as hasEvents } from "../typeGuards-DhMNLuvU.mjs";
5
- import { t as requestContext } from "../requestContext-QQD6ROJc.mjs";
6
- import { t as ResourceRegistry } from "../ResourceRegistry-DsN4KJjV.mjs";
7
- import { t as errorHandlerPlugin } from "../errorHandler-C1okiriz.mjs";
8
- import { n as caching_default, t as cachingPlugin } from "../caching-Bl28lYsR.mjs";
9
- import { n as sse_default, t as ssePlugin } from "../sse-B3c3_yZp.mjs";
4
+ import { t as hasEvents } from "../typeGuards-DwxA1t_L.mjs";
5
+ import { t as requestContext } from "../requestContext-xi6OKBL-.mjs";
6
+ import { t as ResourceRegistry } from "../ResourceRegistry-7Ic20ZMw.mjs";
7
+ import { t as errorHandlerPlugin } from "../errorHandler-C3GY3_ow.mjs";
8
+ import { n as caching_default, t as cachingPlugin } from "../caching-GSDJcA6-.mjs";
9
+ import { n as sse_default, t as ssePlugin } from "../sse-DkqQ1uxb.mjs";
10
10
  import fp from "fastify-plugin";
11
11
  import { randomUUID } from "crypto";
12
12
 
@@ -519,5 +519,4 @@ var arcCorePlugin_default = fp(arcCorePlugin, {
519
519
  });
520
520
 
521
521
  //#endregion
522
- export { arcCorePlugin_default as arcCorePlugin, arcCorePlugin as arcCorePluginFn, caching_default as cachingPlugin, cachingPlugin as cachingPluginFn, createPlugin, errorHandlerPlugin, errorHandlerPlugin as errorHandlerPluginFn, gracefulShutdown_default as gracefulShutdownPlugin, gracefulShutdownPlugin as gracefulShutdownPluginFn, health_default as healthPlugin, healthPlugin as healthPluginFn, requestId_default as requestIdPlugin, requestIdPlugin as requestIdPluginFn, sse_default as ssePlugin, ssePlugin as ssePluginFn };
523
- //# sourceMappingURL=index.mjs.map
522
+ export { arcCorePlugin_default as arcCorePlugin, arcCorePlugin as arcCorePluginFn, caching_default as cachingPlugin, cachingPlugin as cachingPluginFn, createPlugin, errorHandlerPlugin, errorHandlerPlugin as errorHandlerPluginFn, gracefulShutdown_default as gracefulShutdownPlugin, gracefulShutdownPlugin as gracefulShutdownPluginFn, health_default as healthPlugin, healthPlugin as healthPluginFn, requestId_default as requestIdPlugin, requestIdPlugin as requestIdPluginFn, sse_default as ssePlugin, ssePlugin as ssePluginFn };
@@ -84,5 +84,4 @@ declare module "fastify" {
84
84
  }
85
85
  declare const responseCachePlugin: FastifyPluginAsync<ResponseCacheOptions>;
86
86
  //#endregion
87
- export { ResponseCacheOptions, ResponseCacheRule, ResponseCacheStats, responseCachePlugin as default, responseCachePlugin };
88
- //# sourceMappingURL=response-cache.d.mts.map
87
+ export { ResponseCacheOptions, ResponseCacheRule, ResponseCacheStats, responseCachePlugin as default, responseCachePlugin };
@@ -1,4 +1,4 @@
1
- import { t as hasEvents } from "../typeGuards-DhMNLuvU.mjs";
1
+ import { t as hasEvents } from "../typeGuards-DwxA1t_L.mjs";
2
2
  import fp from "fastify-plugin";
3
3
 
4
4
  //#region src/plugins/response-cache.ts
@@ -280,5 +280,4 @@ const responseCachePlugin = fp(responseCachePluginImpl, {
280
280
  });
281
281
 
282
282
  //#endregion
283
- export { responseCachePlugin as default, responseCachePlugin };
284
- //# sourceMappingURL=response-cache.mjs.map
283
+ export { responseCachePlugin as default, responseCachePlugin };
@@ -1,2 +1,2 @@
1
- import { a as traced, i as isTracingAvailable, n as _default, r as createSpan, t as TracingOptions } from "../tracing-Cc7vVQPp.mjs";
1
+ import { a as traced, i as isTracingAvailable, n as _default, r as createSpan, t as TracingOptions } from "../tracing-8CEbhF0w.mjs";
2
2
  export { type TracingOptions, createSpan, isTracingAvailable, traced, _default as tracingPlugin };
@@ -182,5 +182,4 @@ var tracing_default = fp(tracingPlugin, {
182
182
  });
183
183
 
184
184
  //#endregion
185
- export { createSpan, isTracingAvailable, traced, tracing_default as tracingPlugin };
186
- //# sourceMappingURL=tracing-entry.mjs.map
185
+ export { createSpan, isTracingAvailable, traced, tracing_default as tracingPlugin };
@@ -83,5 +83,4 @@ function pluralize(word) {
83
83
  }
84
84
 
85
85
  //#endregion
86
- export { pluralize as t };
87
- //# sourceMappingURL=pluralize-CEweyOEm.mjs.map
86
+ export { pluralize as t };
@@ -1,4 +1,4 @@
1
- import { t as PermissionCheck } from "../types-aYB4V7uN.mjs";
1
+ import { t as PermissionCheck } from "../types-RLkFVgaw.mjs";
2
2
  import { FastifyReply, FastifyRequest } from "fastify";
3
3
 
4
4
  //#region src/policies/PolicyInterface.d.ts
@@ -106,7 +106,7 @@ interface PolicyContext {
106
106
  * can(user, operation, context) {
107
107
  * // Check RBAC
108
108
  * const allowedRoles = this.config.roles[operation] || [];
109
- * if (!user.roles.some(r => allowedRoles.includes(r))) {
109
+ * if (!getUserRoles(user).some(r => allowedRoles.includes(r))) {
110
110
  * return { allowed: false, reason: 'Insufficient permissions' };
111
111
  * }
112
112
  *
@@ -321,7 +321,7 @@ declare module 'fastify' {
321
321
  interface FastifyRequest {
322
322
  policyResult?: PolicyResult;
323
323
  }
324
- } //# sourceMappingURL=PolicyInterface.d.ts.map
324
+ }
325
325
  //#endregion
326
326
  //#region src/policies/helpers.d.ts
327
327
  /**
@@ -429,5 +429,4 @@ declare function allowAll(): PolicyEngine;
429
429
  */
430
430
  declare function denyAll(reason?: string): PolicyEngine;
431
431
  //#endregion
432
- export { type AccessControlPolicyOptions, type AccessControlStatement, type PolicyContext, type PolicyEngine, type PolicyFactory, type PolicyResult, allowAll, anyPolicy, combinePolicies, createAccessControlPolicy, createPolicyMiddleware, denyAll };
433
- //# sourceMappingURL=index.d.mts.map
432
+ export { type AccessControlPolicyOptions, type AccessControlStatement, type PolicyContext, type PolicyEngine, type PolicyFactory, type PolicyResult, allowAll, anyPolicy, combinePolicies, createAccessControlPolicy, createPolicyMiddleware, denyAll };
@@ -318,5 +318,4 @@ function denyAll(reason = "Operation not allowed") {
318
318
  }
319
319
 
320
320
  //#endregion
321
- export { allowAll, anyPolicy, combinePolicies, createAccessControlPolicy, createPolicyMiddleware, denyAll };
322
- //# sourceMappingURL=index.mjs.map
321
+ export { allowAll, anyPolicy, combinePolicies, createAccessControlPolicy, createPolicyMiddleware, denyAll };
@@ -1,6 +1,6 @@
1
- import "../elevation-B_2dRLVP.mjs";
2
- import { b as IControllerResponse, k as PaginatedResult, x as IRequestContext } from "../interface-Ch8HU9uM.mjs";
3
- import "../types-aYB4V7uN.mjs";
1
+ import "../elevation-DGo5shaX.mjs";
2
+ import { b as IControllerResponse, k as PaginatedResult, x as IRequestContext } from "../interface-e9XfSsUV.mjs";
3
+ import "../types-RLkFVgaw.mjs";
4
4
  import { AnyRecord, PresetResult, ResourceConfig } from "../types/index.mjs";
5
5
  import multiTenantPreset, { MultiTenantOptions } from "./multiTenant.mjs";
6
6
 
@@ -264,5 +264,4 @@ type PresetInput = string | PresetResult | {
264
264
  */
265
265
  declare function applyPresets<TDoc = AnyRecord>(config: ResourceConfig<TDoc>, presets?: PresetInput[]): ResourceConfig<TDoc>;
266
266
  //#endregion
267
- export { type AuditedPresetOptions, type IAuditedPreset, type IMultiTenantPreset, type IOwnedByUserPreset, type IPresetController, type ISlugLookupController, type ISoftDeleteController, type ITreeController, type MultiTenantOptions, type OwnedByUserOptions, type SlugLookupOptions, type TreeOptions, applyPresets, auditedPreset, flexibleMultiTenantPreset, getAvailablePresets, getPreset, multiTenantPreset, ownedByUserPreset, registerPreset, slugLookupPreset, softDeletePreset, treePreset };
268
- //# sourceMappingURL=index.d.mts.map
267
+ export { type AuditedPresetOptions, type IAuditedPreset, type IMultiTenantPreset, type IOwnedByUserPreset, type IPresetController, type ISlugLookupController, type ISoftDeleteController, type ITreeController, type MultiTenantOptions, type OwnedByUserOptions, type SlugLookupOptions, type TreeOptions, applyPresets, auditedPreset, flexibleMultiTenantPreset, getAvailablePresets, getPreset, multiTenantPreset, ownedByUserPreset, registerPreset, slugLookupPreset, softDeletePreset, treePreset };
@@ -1,4 +1,4 @@
1
- import { a as softDeletePreset, i as slugLookupPreset, n as treePreset, r as ownedByUserPreset, t as auditedPreset } from "../audited-C3T5DTUx.mjs";
1
+ import { a as softDeletePreset, i as slugLookupPreset, n as treePreset, r as ownedByUserPreset, t as auditedPreset } from "../audited-CGdLiSlE.mjs";
2
2
  import multiTenantPreset from "./multiTenant.mjs";
3
3
 
4
4
  //#region src/presets/index.ts
@@ -140,5 +140,4 @@ function mergePreset(config, preset) {
140
140
  }
141
141
 
142
142
  //#endregion
143
- export { applyPresets, auditedPreset, flexibleMultiTenantPreset, getAvailablePresets, getPreset, multiTenantPreset, ownedByUserPreset, registerPreset, slugLookupPreset, softDeletePreset, treePreset };
144
- //# sourceMappingURL=index.mjs.map
143
+ export { applyPresets, auditedPreset, flexibleMultiTenantPreset, getAvailablePresets, getPreset, multiTenantPreset, ownedByUserPreset, registerPreset, slugLookupPreset, softDeletePreset, treePreset };
@@ -1,6 +1,6 @@
1
- import "../elevation-B_2dRLVP.mjs";
2
- import "../interface-Ch8HU9uM.mjs";
3
- import "../types-aYB4V7uN.mjs";
1
+ import "../elevation-DGo5shaX.mjs";
2
+ import "../interface-e9XfSsUV.mjs";
3
+ import "../types-RLkFVgaw.mjs";
4
4
  import { CrudRouteKey, PresetResult } from "../types/index.mjs";
5
5
 
6
6
  //#region src/presets/multiTenant.d.ts
@@ -21,5 +21,4 @@ interface MultiTenantOptions {
21
21
  }
22
22
  declare function multiTenantPreset(options?: MultiTenantOptions): PresetResult;
23
23
  //#endregion
24
- export { MultiTenantOptions, multiTenantPreset as default, multiTenantPreset };
25
- //# sourceMappingURL=multiTenant.d.mts.map
24
+ export { MultiTenantOptions, multiTenantPreset as default, multiTenantPreset };
@@ -110,5 +110,4 @@ function multiTenantPreset(options = {}) {
110
110
  }
111
111
 
112
112
  //#endregion
113
- export { multiTenantPreset as default, multiTenantPreset };
114
- //# sourceMappingURL=multiTenant.mjs.map
113
+ export { multiTenantPreset as default, multiTenantPreset };
@@ -1,4 +1,4 @@
1
- import { t as PermissionCheck } from "./types-aYB4V7uN.mjs";
1
+ import { t as PermissionCheck } from "./types-RLkFVgaw.mjs";
2
2
 
3
3
  //#region src/permissions/presets.d.ts
4
4
  declare namespace presets_d_exports {
@@ -54,5 +54,4 @@ declare function fullPublic<TDoc = any>(overrides?: PermissionOverrides<TDoc>):
54
54
  */
55
55
  declare function readOnly<TDoc = any>(overrides?: PermissionOverrides<TDoc>): ResourcePermissions<TDoc>;
56
56
  //#endregion
57
- export { presets_d_exports as a, readOnly as c, ownerWithAdminBypass as i, authenticated as n, publicRead as o, fullPublic as r, publicReadAdminWrite as s, adminOnly as t };
58
- //# sourceMappingURL=presets-DzSMwlKj.d.mts.map
57
+ export { presets_d_exports as a, readOnly as c, ownerWithAdminBypass as i, authenticated as n, publicRead as o, fullPublic as r, publicReadAdminWrite as s, adminOnly as t };
@@ -116,5 +116,4 @@ function readOnly(overrides) {
116
116
  }
117
117
 
118
118
  //#endregion
119
- export { presets_exports as a, readOnly as c, ownerWithAdminBypass as i, authenticated as n, publicRead as o, fullPublic as r, publicReadAdminWrite as s, adminOnly as t };
120
- //# sourceMappingURL=presets-BITljm96.mjs.map
119
+ export { presets_exports as a, readOnly as c, ownerWithAdminBypass as i, authenticated as n, publicRead as o, fullPublic as r, publicReadAdminWrite as s, adminOnly as t };
@@ -1,4 +1,4 @@
1
- import { D as CrudRepository, a as RepositoryLike, n as DataAdapter, o as SchemaMetadata, s as ValidationResult } from "./interface-Ch8HU9uM.mjs";
1
+ import { D as CrudRepository, a as RepositoryLike, n as DataAdapter, o as SchemaMetadata, s as ValidationResult } from "./interface-e9XfSsUV.mjs";
2
2
  import { OpenApiSchemas, ParsedQuery, QueryParserInterface, RouteSchemaOptions } from "./types/index.mjs";
3
3
  import { Model } from "mongoose";
4
4
 
@@ -271,5 +271,4 @@ declare class PrismaAdapter<TModel = unknown> implements DataAdapter<TModel> {
271
271
  */
272
272
  declare function createPrismaAdapter<TModel>(options: PrismaAdapterOptions<TModel>): PrismaAdapter<TModel>;
273
273
  //#endregion
274
- export { PrismaQueryParserOptions as a, MongooseAdapterOptions as c, PrismaQueryParser as i, createMongooseAdapter as l, PrismaAdapterOptions as n, createPrismaAdapter as o, PrismaQueryOptions as r, MongooseAdapter as s, PrismaAdapter as t };
275
- //# sourceMappingURL=prisma-Dg9GoVdj.d.mts.map
274
+ export { PrismaQueryParserOptions as a, MongooseAdapterOptions as c, PrismaQueryParser as i, createMongooseAdapter as l, PrismaAdapterOptions as n, createPrismaAdapter as o, PrismaQueryOptions as r, MongooseAdapter as s, PrismaAdapter as t };
@@ -624,5 +624,4 @@ function createPrismaAdapter(options) {
624
624
  }
625
625
 
626
626
  //#endregion
627
- export { createMongooseAdapter as a, MongooseAdapter as i, PrismaQueryParser as n, createPrismaAdapter as r, PrismaAdapter as t };
628
- //# sourceMappingURL=prisma-DJbMt3yf.mjs.map
627
+ export { createMongooseAdapter as a, MongooseAdapter as i, PrismaQueryParser as n, createPrismaAdapter as r, PrismaAdapter as t };
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./chunk-C7Uep-_p.mjs";
2
- import { i as versionKey, r as tagVersionKey } from "./keys-BqNejWup.mjs";
3
- import { t as hasEvents } from "./typeGuards-DhMNLuvU.mjs";
4
- import { t as MemoryCacheStore } from "./memory-cQgelFOj.mjs";
2
+ import { i as versionKey, r as tagVersionKey } from "./keys-DhqDRxv3.mjs";
3
+ import { t as hasEvents } from "./typeGuards-DwxA1t_L.mjs";
4
+ import { t as MemoryCacheStore } from "./memory-B2v7KrCB.mjs";
5
5
  import fp from "fastify-plugin";
6
6
 
7
7
  //#region src/cache/QueryCache.ts
@@ -135,5 +135,4 @@ const queryCachePlugin = fp(queryCachePluginImpl, {
135
135
  });
136
136
 
137
137
  //#endregion
138
- export { queryCachePlugin_exports as n, QueryCache as r, queryCachePlugin as t };
139
- //# sourceMappingURL=queryCachePlugin-DMBnp2Q0.mjs.map
138
+ export { queryCachePlugin_exports as n, QueryCache as r, queryCachePlugin as t };
@@ -1,4 +1,4 @@
1
- import { i as CacheStore } from "./interface-CZe8IkMf.mjs";
1
+ import { i as CacheStore } from "./interface-DTbsvIWe.mjs";
2
2
  import { FastifyPluginAsync } from "fastify";
3
3
 
4
4
  //#region src/cache/QueryCache.d.ts
@@ -68,5 +68,4 @@ declare module 'fastify' {
68
68
  }
69
69
  declare const queryCachePlugin: FastifyPluginAsync<QueryCachePluginOptions>;
70
70
  //#endregion
71
- export { CacheEnvelope as a, QueryCache as c, queryCachePlugin as i, QueryCacheConfig as l, QueryCacheDefaults as n, CacheResult as o, QueryCachePluginOptions as r, CacheStatus as s, CrossResourceRule as t };
72
- //# sourceMappingURL=queryCachePlugin-7THaI5mt.d.mts.map
71
+ export { CacheEnvelope as a, QueryCache as c, queryCachePlugin as i, QueryCacheConfig as l, QueryCacheDefaults as n, CacheResult as o, QueryCachePluginOptions as r, CacheStatus as s, CrossResourceRule as t };
@@ -1,4 +1,4 @@
1
- import { n as IdempotencyResult, r as IdempotencyStore } from "./interface-B01JvPVc.mjs";
1
+ import { n as IdempotencyResult, r as IdempotencyStore } from "./interface-CSNjltAc.mjs";
2
2
 
3
3
  //#region src/idempotency/stores/redis.d.ts
4
4
  interface RedisClient {
@@ -46,5 +46,4 @@ declare class RedisIdempotencyStore implements IdempotencyStore {
46
46
  close(): Promise<void>;
47
47
  }
48
48
  //#endregion
49
- export { RedisIdempotencyStore as n, RedisIdempotencyStoreOptions as r, RedisClient as t };
50
- //# sourceMappingURL=redis-D-JAeLtm.d.mts.map
49
+ export { RedisIdempotencyStore as n, RedisIdempotencyStoreOptions as r, RedisClient as t };
@@ -1,4 +1,4 @@
1
- import { i as EventTransport, n as EventHandler, r as EventLogger, t as DomainEvent } from "./EventTransport-BD2U0BTc.mjs";
1
+ import { i as EventTransport, n as EventHandler, r as EventLogger, t as DomainEvent } from "./EventTransport-BkUDYZEb.mjs";
2
2
 
3
3
  //#region src/events/transports/redis-stream.d.ts
4
4
  interface RedisStreamLike {
@@ -100,5 +100,4 @@ declare class RedisStreamTransport implements EventTransport {
100
100
  private sleep;
101
101
  }
102
102
  //#endregion
103
- export { RedisStreamTransport as n, RedisStreamTransportOptions as r, RedisStreamLike as t };
104
- //# sourceMappingURL=redis-stream-Bdh_vUU8.d.mts.map
103
+ export { RedisStreamTransport as n, RedisStreamTransportOptions as r, RedisStreamLike as t };
@@ -1,6 +1,6 @@
1
- import "../elevation-B_2dRLVP.mjs";
2
- import { C as RegisterOptions, w as ResourceRegistry } from "../interface-Ch8HU9uM.mjs";
3
- import "../types-aYB4V7uN.mjs";
1
+ import "../elevation-DGo5shaX.mjs";
2
+ import { C as RegisterOptions, w as ResourceRegistry } from "../interface-e9XfSsUV.mjs";
3
+ import "../types-RLkFVgaw.mjs";
4
4
  import { IntrospectionPluginOptions } from "../types/index.mjs";
5
5
  import { FastifyPluginAsync } from "fastify";
6
6
 
@@ -8,5 +8,4 @@ import { FastifyPluginAsync } from "fastify";
8
8
  declare const introspectionPlugin: FastifyPluginAsync<IntrospectionPluginOptions>;
9
9
  declare const _default: FastifyPluginAsync<IntrospectionPluginOptions>;
10
10
  //#endregion
11
- export { type IntrospectionPluginOptions, type RegisterOptions, ResourceRegistry, _default as introspectionPlugin, introspectionPlugin as introspectionPluginFn };
12
- //# sourceMappingURL=index.d.mts.map
11
+ export { type IntrospectionPluginOptions, type RegisterOptions, ResourceRegistry, _default as introspectionPlugin, introspectionPlugin as introspectionPluginFn };
@@ -1,4 +1,4 @@
1
- import { t as ResourceRegistry } from "../ResourceRegistry-DsN4KJjV.mjs";
2
- import { n as introspectionPlugin_default, t as introspectionPlugin } from "../introspectionPlugin-rFdO8ZUa.mjs";
1
+ import { t as ResourceRegistry } from "../ResourceRegistry-7Ic20ZMw.mjs";
2
+ import { n as introspectionPlugin_default, t as introspectionPlugin } from "../introspectionPlugin-B3JkrjwU.mjs";
3
3
 
4
4
  export { ResourceRegistry, introspectionPlugin_default as introspectionPlugin, introspectionPlugin as introspectionPluginFn };
@@ -52,5 +52,4 @@ const requestContext = {
52
52
  };
53
53
 
54
54
  //#endregion
55
- export { requestContext as t };
56
- //# sourceMappingURL=requestContext-QQD6ROJc.mjs.map
55
+ export { requestContext as t };
@@ -95,5 +95,4 @@ function convertRouteSchema(schema) {
95
95
  }
96
96
 
97
97
  //#endregion
98
- export { toJsonSchema as a, isZodSchema as i, convertRouteSchema as n, isJsonSchema as r, convertOpenApiSchemas as t };
99
- //# sourceMappingURL=schemaConverter-BwrmWroW.mjs.map
98
+ export { toJsonSchema as a, isZodSchema as i, convertRouteSchema as n, isJsonSchema as r, convertOpenApiSchemas as t };
@@ -60,5 +60,4 @@ declare function ArcPaginationQuery(): _sinclair_typebox0.TObject<{
60
60
  populate: _sinclair_typebox0.TOptional<_sinclair_typebox0.TString>;
61
61
  }>;
62
62
  //#endregion
63
- export { ArcDeleteResponse, ArcErrorResponse, ArcItemResponse, ArcListResponse, ArcMutationResponse, ArcPaginationQuery, type FastifyPluginAsyncTypebox, type FastifyPluginCallbackTypebox, type Static, type TObject, type TSchema, Type, type TypeBoxTypeProvider, TypeBoxValidatorCompiler };
64
- //# sourceMappingURL=index.d.mts.map
63
+ export { ArcDeleteResponse, ArcErrorResponse, ArcItemResponse, ArcListResponse, ArcMutationResponse, ArcPaginationQuery, type FastifyPluginAsyncTypebox, type FastifyPluginCallbackTypebox, type Static, type TObject, type TSchema, Type, type TypeBoxTypeProvider, TypeBoxValidatorCompiler };
@@ -79,5 +79,4 @@ function ArcPaginationQuery() {
79
79
  }
80
80
 
81
81
  //#endregion
82
- export { ArcDeleteResponse, ArcErrorResponse, ArcItemResponse, ArcListResponse, ArcMutationResponse, ArcPaginationQuery, Type, TypeBoxValidatorCompiler };
83
- //# sourceMappingURL=index.mjs.map
82
+ export { ArcDeleteResponse, ArcErrorResponse, ArcItemResponse, ArcListResponse, ArcMutationResponse, ArcPaginationQuery, Type, TypeBoxValidatorCompiler };
@@ -1,4 +1,4 @@
1
- import { a as AUTHENTICATED_SCOPE, c as getOrgId, d as hasOrgAccess, f as isAuthenticated, i as elevationPlugin, l as getOrgRoles, m as isMember, n as ElevationOptions, o as PUBLIC_SCOPE, p as isElevated, r as _default, s as RequestScope, t as ElevationEvent, u as getTeamId } from "../elevation-B_2dRLVP.mjs";
1
+ import { a as AUTHENTICATED_SCOPE, c as getOrgId, d as hasOrgAccess, f as isAuthenticated, i as elevationPlugin, l as getOrgRoles, m as isMember, n as ElevationOptions, o as PUBLIC_SCOPE, p as isElevated, r as _default, s as RequestScope, t as ElevationEvent, u as getTeamId } from "../elevation-DGo5shaX.mjs";
2
2
  import { FastifyReply, FastifyRequest } from "fastify";
3
3
 
4
4
  //#region src/scope/resolveOrgFromHeader.d.ts
@@ -18,5 +18,4 @@ interface ResolveOrgFromHeaderOptions {
18
18
  */
19
19
  declare function resolveOrgFromHeader(options: ResolveOrgFromHeaderOptions): (request: FastifyRequest, reply: FastifyReply) => Promise<void>;
20
20
  //#endregion
21
- export { AUTHENTICATED_SCOPE, type ElevationEvent, type ElevationOptions, PUBLIC_SCOPE, type RequestScope, type ResolveOrgFromHeaderOptions, _default as elevationPlugin, elevationPlugin as elevationPluginFn, getOrgId, getOrgRoles, getTeamId, hasOrgAccess, isAuthenticated, isElevated, isMember, resolveOrgFromHeader };
22
- //# sourceMappingURL=index.d.mts.map
21
+ export { AUTHENTICATED_SCOPE, type ElevationEvent, type ElevationOptions, PUBLIC_SCOPE, type RequestScope, type ResolveOrgFromHeaderOptions, _default as elevationPlugin, elevationPlugin as elevationPluginFn, getOrgId, getOrgRoles, getTeamId, hasOrgAccess, isAuthenticated, isElevated, isMember, resolveOrgFromHeader };
@@ -1,5 +1,5 @@
1
1
  import { a as getTeamId, c as isElevated, i as getOrgRoles, l as isMember, n as PUBLIC_SCOPE, o as hasOrgAccess, r as getOrgId, s as isAuthenticated, t as AUTHENTICATED_SCOPE } from "../types-Beqn1Un7.mjs";
2
- import { n as elevation_default, t as elevationPlugin } from "../elevation-BRy3yFWT.mjs";
2
+ import { n as elevation_default, t as elevationPlugin } from "../elevation-DSTbVvYj.mjs";
3
3
 
4
4
  //#region src/scope/resolveOrgFromHeader.ts
5
5
  /**
@@ -62,5 +62,4 @@ function resolveOrgFromHeader(options) {
62
62
  }
63
63
 
64
64
  //#endregion
65
- export { AUTHENTICATED_SCOPE, PUBLIC_SCOPE, elevation_default as elevationPlugin, elevationPlugin as elevationPluginFn, getOrgId, getOrgRoles, getTeamId, hasOrgAccess, isAuthenticated, isElevated, isMember, resolveOrgFromHeader };
66
- //# sourceMappingURL=index.mjs.map
65
+ export { AUTHENTICATED_SCOPE, PUBLIC_SCOPE, elevation_default as elevationPlugin, elevationPlugin as elevationPluginFn, getOrgId, getOrgRoles, getTeamId, hasOrgAccess, isAuthenticated, isElevated, isMember, resolveOrgFromHeader };
@@ -183,5 +183,4 @@ declare class MemorySessionStore implements SessionStore {
183
183
  */
184
184
  declare function createSessionManager(options: SessionManagerOptions): SessionManagerResult;
185
185
  //#endregion
186
- export { SessionManagerOptions as a, createSessionManager as c, SessionData as i, MemorySessionStoreOptions as n, SessionManagerResult as o, SessionCookieOptions as r, SessionStore as s, MemorySessionStore as t };
187
- //# sourceMappingURL=sessionManager-jPKLbHE0.d.mts.map
186
+ export { SessionManagerOptions as a, createSessionManager as c, SessionData as i, MemorySessionStoreOptions as n, SessionManagerResult as o, SessionCookieOptions as r, SessionStore as s, MemorySessionStore as t };
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./chunk-C7Uep-_p.mjs";
2
2
  import { n as PUBLIC_SCOPE, r as getOrgId } from "./types-Beqn1Un7.mjs";
3
- import { t as arcLog } from "./logger-Df2O2WsW.mjs";
3
+ import { t as arcLog } from "./logger-ByrvQWZO.mjs";
4
4
  import fp from "fastify-plugin";
5
5
 
6
6
  //#region src/plugins/sse.ts
@@ -120,5 +120,4 @@ var sse_default = fp(ssePlugin, {
120
120
  });
121
121
 
122
122
  //#endregion
123
- export { sse_default as n, sse_exports as r, ssePlugin as t };
124
- //# sourceMappingURL=sse-B3c3_yZp.mjs.map
123
+ export { sse_default as n, sse_exports as r, ssePlugin as t };