@classytic/arc 2.45.2 → 2.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/README.md +1 -1
  2. package/dist/{EventTransport-CiicKz2Z.d.mts → EventTransport-CYEoCJGe.d.mts} +0 -2
  3. package/dist/{EventTransport-DHb1tpu-.mjs → EventTransport-DNgD9NP4.mjs} +3 -4
  4. package/dist/{HookSystem-C1u0EUnt.mjs → HookSystem-DRbPzEcP.mjs} +3 -4
  5. package/dist/{QueryCache--5uAuYPW.d.mts → QueryCache-DdvrGG8Q.d.mts} +1 -3
  6. package/dist/{ResourceRegistry-D2jXWVN_.mjs → ResourceRegistry-Douk51fa.mjs} +15 -4
  7. package/dist/{acquire-DTkA8Lme.mjs → acquire-RbtvDg9s.mjs} +2 -3
  8. package/dist/{actionPermissions-DRVk6m7x.mjs → actionPermissions-De0AJ7hm.mjs} +37 -42
  9. package/dist/audit/index.d.mts +2 -10
  10. package/dist/audit/index.mjs +8 -12
  11. package/dist/auth/audit.d.mts +0 -2
  12. package/dist/auth/audit.mjs +2 -3
  13. package/dist/auth/index.d.mts +9 -17
  14. package/dist/auth/index.mjs +26 -29
  15. package/dist/auth/redis-session.d.mts +2 -4
  16. package/dist/auth/redis-session.mjs +2 -3
  17. package/dist/{authorizationDecision-D48fUJv1.mjs → authorizationDecision-DeZMrHcm.mjs} +5 -6
  18. package/dist/{base-CZyixEQR.d.mts → base-HXNgPQww.d.mts} +1 -7
  19. package/dist/{boundedMap-DkKiPifd.mjs → boundedMap-2WBh3gM9.mjs} +2 -3
  20. package/dist/{buildHandler-BiZ4VATS.mjs → buildHandler-DxVOOBpw.mjs} +5 -6
  21. package/dist/cache/index.d.mts +4 -10
  22. package/dist/cache/index.mjs +5 -6
  23. package/dist/{caching-Cj0as-P1.mjs → caching-BYRwYrUo.mjs} +3 -4
  24. package/dist/{claimed-ChI13rUR.mjs → claimed-DYlELdnm.mjs} +2 -3
  25. package/dist/cleanup/index.d.mts +4 -18
  26. package/dist/cleanup/index.mjs +12 -20
  27. package/dist/cli/commands/describe.d.mts +1 -3
  28. package/dist/cli/commands/describe.mjs +4 -5
  29. package/dist/cli/commands/docs.d.mts +1 -3
  30. package/dist/cli/commands/docs.mjs +4 -5
  31. package/dist/cli/commands/doctor.d.mts +1 -3
  32. package/dist/cli/commands/doctor.mjs +2 -3
  33. package/dist/cli/commands/generate.d.mts +1 -1
  34. package/dist/cli/commands/generate.mjs +2 -2
  35. package/dist/cli/commands/init.d.mts +1 -1
  36. package/dist/cli/commands/init.mjs +2 -2
  37. package/dist/cli/commands/introspect.d.mts +1 -3
  38. package/dist/cli/commands/introspect.mjs +3 -4
  39. package/dist/cli/index.d.mts +2 -2
  40. package/dist/cli/index.mjs +3 -3
  41. package/dist/{constants-D_aiew34.mjs → constants-CHZMUwBW.mjs} +2 -3
  42. package/dist/context/index.d.mts +0 -8
  43. package/dist/context/index.mjs +6 -7
  44. package/dist/core/index.d.mts +3 -3
  45. package/dist/core/index.mjs +8 -8
  46. package/dist/{core-QIZ2560Y.mjs → core-D9rS2BxO.mjs} +9 -12
  47. package/dist/{createActionRouter-CvH84dyx.mjs → createActionRouter-0qkCRzTL.mjs} +7 -8
  48. package/dist/{createAggregationRouter-DGyK2Hp6.mjs → createAggregationRouter-CUf5Esd9.mjs} +9 -10
  49. package/dist/{createApp-CKjZpmq9.mjs → createApp-DZIXfDKD.mjs} +49 -62
  50. package/dist/{createMcpServer-DSztofa9.d.mts → createMcpServer-DeVpqQF-.d.mts} +1 -3
  51. package/dist/{defineAggregation-BLza7Ca4.mjs → defineAggregation-bmKQ4NmC.mjs} +2 -3
  52. package/dist/{defineResource-CEo0gDCb.mjs → defineResource-CGmdmGwh.mjs} +78 -29
  53. package/dist/discovery/index.d.mts +1 -3
  54. package/dist/discovery/index.mjs +2 -3
  55. package/dist/docs/index.d.mts +8 -8
  56. package/dist/docs/index.mjs +4 -5
  57. package/dist/{elevation-BJTsSnke.mjs → elevation-CzhqAyVN.mjs} +9 -10
  58. package/dist/{elevation-BW2J3tNj.d.mts → elevation-DPD0hcU-.d.mts} +0 -2
  59. package/dist/encryption/index.d.mts +1 -7
  60. package/dist/encryption/index.mjs +8 -13
  61. package/dist/{errorHandler--4rSMMvq.d.mts → errorHandler-B9r88jZV.d.mts} +8 -3
  62. package/dist/{errorHandler-2p4SL5zm.mjs → errorHandler-dFyGOEoB.mjs} +16 -6
  63. package/dist/{errors-grZkIA8N.mjs → errors-BY8vzlP4.mjs} +2 -3
  64. package/dist/{errors-JYc9vwqE.d.mts → errors-DTo0me1o.d.mts} +0 -2
  65. package/dist/{eventPlugin-BtmA4-3P.d.mts → eventPlugin-BY38F6yK.d.mts} +1 -7
  66. package/dist/{eventPlugin-ItcYBGUs.mjs → eventPlugin-eMhAPtQA.mjs} +10 -12
  67. package/dist/{eventTypes-Ck6fD3ne.mjs → eventTypes-Do2KYeJx.mjs} +5 -8
  68. package/dist/events/index.d.mts +4 -16
  69. package/dist/events/index.mjs +8 -9
  70. package/dist/events/transports/redis-stream-entry.d.mts +1 -1
  71. package/dist/events/transports/redis-stream-entry.mjs +5 -6
  72. package/dist/events/transports/redis.d.mts +2 -4
  73. package/dist/events/transports/redis.mjs +3 -4
  74. package/dist/{externalPaths-CmGOxOtD.d.mts → externalPaths-BOqdq5wr.d.mts} +0 -2
  75. package/dist/factory/index.d.mts +4 -14
  76. package/dist/factory/index.mjs +12 -18
  77. package/dist/{fastify-augmentation-DRlCIWE9.d.mts → fastify-augmentation-Dtn0IIRn.d.mts} +4 -10
  78. package/dist/{fields-BBSpf8pS.d.mts → fields-JTkrtO-r.d.mts} +0 -2
  79. package/dist/{fields-BRX0Krcj.mjs → fields-LnbCcvsw.mjs} +2 -3
  80. package/dist/{filter-merge-CDc7YMwX.mjs → filter-merge-BAWi019Q.mjs} +2 -3
  81. package/dist/{generate-DCGuEbqI.d.mts → generate-C-g_KOkV.d.mts} +0 -4
  82. package/dist/{generate-hvg7V2g1.mjs → generate-oXoDnpJf.mjs} +7 -12
  83. package/dist/{headers-Cqkg4LzI.mjs → headers-DBd3Qheo.mjs} +3 -4
  84. package/dist/{health-PVt0VjOx.mjs → health-BlJu9GXS.mjs} +2 -3
  85. package/dist/{health-DyeP3mTW.mjs → health-Dp-3EC9o.mjs} +4 -7
  86. package/dist/hooks/index.d.mts +1 -1
  87. package/dist/hooks/index.mjs +2 -2
  88. package/dist/idempotency/index.d.mts +3 -9
  89. package/dist/idempotency/index.mjs +10 -13
  90. package/dist/idempotency/redis.d.mts +1 -1
  91. package/dist/idempotency/redis.mjs +3 -4
  92. package/dist/{index-Bxriq3so.d.mts → index-B5i9-vuP.d.mts} +4 -26
  93. package/dist/{index-Chgz3d0i.d.mts → index-BAXDo5eE.d.mts} +1 -7
  94. package/dist/{index-Beg3aNnK.d.mts → index-BTxzJ_MN.d.mts} +67 -25
  95. package/dist/{index-CUJvoyw3.d.mts → index-Bqfo8hLz.d.mts} +2 -24
  96. package/dist/{index-uhkUA5-U.d.mts → index-CUdaoCYt.d.mts} +13 -23
  97. package/dist/{index-WH7xgvxS.d.mts → index-DyJFTJLA.d.mts} +31 -92
  98. package/dist/index.d.mts +7 -9
  99. package/dist/index.mjs +12 -13
  100. package/dist/{init-jC3rMPzb.mjs → init-BOaNkLYb.mjs} +18 -35
  101. package/dist/{init-Cscs4lab.d.mts → init-CV2_Fw3H.d.mts} +0 -4
  102. package/dist/integrations/event-gateway.d.mts +3 -5
  103. package/dist/integrations/event-gateway.mjs +3 -4
  104. package/dist/integrations/index.d.mts +3 -3
  105. package/dist/integrations/index.mjs +1 -1
  106. package/dist/integrations/jobs/index.d.mts +1 -1
  107. package/dist/integrations/jobs/index.mjs +7 -11
  108. package/dist/integrations/mcp/index.d.mts +7 -39
  109. package/dist/integrations/mcp/index.mjs +8 -14
  110. package/dist/integrations/mcp/testing.d.mts +3 -5
  111. package/dist/integrations/mcp/testing.mjs +3 -4
  112. package/dist/integrations/streamline.d.mts +1 -3
  113. package/dist/integrations/streamline.mjs +4 -5
  114. package/dist/integrations/webhooks.d.mts +2 -4
  115. package/dist/integrations/webhooks.mjs +4 -5
  116. package/dist/integrations/websocket-pushref-redis.d.mts +2 -4
  117. package/dist/integrations/websocket-pushref-redis.mjs +2 -3
  118. package/dist/integrations/websocket-redis.d.mts +2 -4
  119. package/dist/integrations/websocket-redis.mjs +2 -3
  120. package/dist/integrations/websocket.d.mts +2 -2
  121. package/dist/integrations/websocket.mjs +13 -24
  122. package/dist/{interface-JJzwH4Ro.d.mts → interface-BmExzQRD.d.mts} +0 -2
  123. package/dist/{interface-BOk3YnTz.d.mts → interface-WR1U0K7t.d.mts} +0 -2
  124. package/dist/{jsonBody-ptwyzZQ-.mjs → jsonBody-DpRpKR_K.mjs} +3 -4
  125. package/dist/{keys-C1vFuSbv.mjs → keys-FBz6Ull-.mjs} +2 -3
  126. package/dist/{loadResources-CHPDyIPn.mjs → loadResources-Bx1sKPnF.mjs} +4 -5
  127. package/dist/{loadResourcesFromEntry-BkHHTu_B.mjs → loadResourcesFromEntry-b_jcqbxh.mjs} +3 -4
  128. package/dist/logger/index.d.mts +1 -3
  129. package/dist/logger/index.mjs +2 -2
  130. package/dist/{logger-C5bvCiAK.mjs → logger-CbFcIEBZ.mjs} +3 -5
  131. package/dist/{mcpPlugin-C9qohJCF.mjs → mcpPlugin-yix548XX.mjs} +41 -60
  132. package/dist/{memory-CxiTwT0j.mjs → memory-Bgw5dn8N.mjs} +4 -5
  133. package/dist/{metrics-Ckp2zRy-.mjs → metrics-CZDQWVjS.mjs} +4 -5
  134. package/dist/middleware/index.d.mts +1 -5
  135. package/dist/middleware/index.mjs +4 -5
  136. package/dist/migrations/index.d.mts +0 -2
  137. package/dist/migrations/index.mjs +3 -4
  138. package/dist/{module-CfnKuIuH.mjs → module-Dsc_nKL5.mjs} +2 -3
  139. package/dist/{multiTenant-CAtYlW6H.d.mts → multiTenant-XCxAUlru.d.mts} +1 -5
  140. package/dist/{multipartBody-BFasGtP9.mjs → multipartBody-B85ek8Kj.mjs} +2 -3
  141. package/dist/observeSend-BK-JN1jK.mjs +20 -0
  142. package/dist/{openapi-DAPxjYHX.mjs → openapi-Co7hl073.mjs} +18 -28
  143. package/dist/outbox-admin/index.d.mts +2 -4
  144. package/dist/outbox-admin/index.mjs +6 -7
  145. package/dist/{outbox-module-gZCHoE4H.d.mts → outbox-module-XvUThpqn.d.mts} +2 -8
  146. package/dist/{outbox-module-B4FAkx3A.mjs → outbox-module-mg9kDYkd.mjs} +13 -17
  147. package/dist/permissions/index.d.mts +4 -4
  148. package/dist/permissions/index.mjs +7 -7
  149. package/dist/{permissions-B14c3OMp.mjs → permissions-A1oKtpiC.mjs} +19 -29
  150. package/dist/{pipe-CQv7PsAK.mjs → pipe-Czpw9U2n.mjs} +3 -4
  151. package/dist/pipeline/index.d.mts +1 -9
  152. package/dist/pipeline/index.mjs +5 -8
  153. package/dist/{plan-CpnTykjb.mjs → plan-KVseuBCL.mjs} +5 -9
  154. package/dist/{plugin-DXTjVg_Q.mjs → plugin-DTWt_8C3.mjs} +130 -62
  155. package/dist/plugins/index.d.mts +8 -16
  156. package/dist/plugins/index.mjs +22 -26
  157. package/dist/plugins/response-cache.d.mts +2 -4
  158. package/dist/plugins/response-cache.mjs +10 -10
  159. package/dist/plugins/tracing-entry.d.mts +1 -1
  160. package/dist/plugins/tracing-entry.mjs +3 -4
  161. package/dist/{pluralize-C3VJKRGp.mjs → pluralize-msB9X3yw.mjs} +2 -3
  162. package/dist/presets/filesUpload.d.mts +4 -6
  163. package/dist/presets/filesUpload.mjs +6 -7
  164. package/dist/presets/index.d.mts +3 -19
  165. package/dist/presets/index.mjs +2 -2
  166. package/dist/presets/multiTenant.d.mts +1 -1
  167. package/dist/presets/multiTenant.mjs +7 -7
  168. package/dist/presets/search.d.mts +3 -5
  169. package/dist/presets/search.mjs +3 -4
  170. package/dist/{presets-CquqYJPy.mjs → presets-qKCehiJM.mjs} +11 -18
  171. package/dist/{projection-CgfSLOSM.mjs → projection-ClBqtsIw.mjs} +3 -4
  172. package/dist/{pushref-registry-UxCkoA4C.d.mts → pushref-registry-d86QUaSq.d.mts} +0 -6
  173. package/dist/{queryCachePlugin-D0HUISHJ.mjs → queryCachePlugin-3gJj5Rbz.mjs} +8 -10
  174. package/dist/{queryCachePlugin-C2lZjTxk.d.mts → queryCachePlugin-DYQUyeJ9.d.mts} +2 -4
  175. package/dist/{rateLimitKey-AvkBOMkl.mjs → rateLimitKey-Kro---xl.mjs} +2 -3
  176. package/dist/{realtime-CbWtVbqK.mjs → realtime-Ber8uJN2.mjs} +17 -19
  177. package/dist/{redis-BDgv9Glw.d.mts → redis-RpDMemdm.d.mts} +2 -4
  178. package/dist/{redis-stream-BMk-bpQS.d.mts → redis-stream-CS1N9dwM.d.mts} +1 -3
  179. package/dist/{redisShapes-CQksY67q.d.mts → redisShapes-CqBXTn_s.d.mts} +0 -2
  180. package/dist/registry/index.d.mts +2 -12
  181. package/dist/registry/index.mjs +3 -3
  182. package/dist/{registry-BVwpAuFI.mjs → registry-BA-_vFYk.mjs} +7 -12
  183. package/dist/{renewingLease-CykpeNcQ.mjs → renewingLease-CMY8YOcc.mjs} +2 -3
  184. package/dist/{replyHelpers-DA51IZio.mjs → replyHelpers-DK9P_XSz.mjs} +3 -4
  185. package/dist/{requestContext-DIWHKDtQ.mjs → requestContext-GYO_0gEw.mjs} +2 -3
  186. package/dist/{requirement-CbiLdQ1n.d.mts → requirement-CTRQjjQx.d.mts} +0 -2
  187. package/dist/{requirement-Cp_fsMDL.mjs → requirement-DeNjZIH3.mjs} +2 -3
  188. package/dist/{resourceRateLimit-Wf6d6FL9.d.mts → resourceRateLimit-DCWglD7V.d.mts} +1 -3
  189. package/dist/{resourceRateLimit-BFuluodF.mjs → resourceRateLimit-tHLbrtWc.mjs} +3 -4
  190. package/dist/{rolldown-runtime-D_lMdYOd.mjs → rolldown-runtime-Kv1fZdLg.mjs} +2 -3
  191. package/dist/{routeValidator-DuLonYwr.mjs → routeValidator-C_H5NanI.mjs} +2 -3
  192. package/dist/{runtimeCapabilities-CydRfm0i.mjs → runtimeCapabilities-DWqbxkyw.mjs} +2 -3
  193. package/dist/{schedules-B693KXxa.mjs → schedules-eO_RzhCU.mjs} +132 -9
  194. package/dist/{schemaConverter-DNvZWTV6.mjs → schemaConverter-DBJrPZN4.mjs} +3 -4
  195. package/dist/{schemaIR-REV2y7Wd.mjs → schemaIR-CEScKT2v.mjs} +3 -4
  196. package/dist/schemas/index.d.mts +0 -2
  197. package/dist/schemas/index.mjs +2 -3
  198. package/dist/scim/index.d.mts +0 -12
  199. package/dist/scim/index.mjs +10 -18
  200. package/dist/scope/index.d.mts +2 -6
  201. package/dist/scope/index.mjs +5 -5
  202. package/dist/{scope-Bevxy_ST.mjs → scope-B-Sm9m_E.mjs} +5 -6
  203. package/dist/{sessionManager-qimlKV0P.d.mts → sessionManager-CdvDF04x.d.mts} +2 -4
  204. package/dist/{shutdown-CfrqPR7A.mjs → shutdown-DzLFbe27.mjs} +2 -3
  205. package/dist/{simpleEqualityMatcher-BJwfuRKP.mjs → simpleEqualityMatcher-DOJhwQ8g.mjs} +2 -3
  206. package/dist/{sse-CuNNWr2z.mjs → sse-2972pVwV.mjs} +8 -9
  207. package/dist/{sseStream-C_2ujAVY.mjs → sseStream-AWLEeNV-.mjs} +3 -4
  208. package/dist/{storage-Cx9Sz3Ou.d.mts → storage-odC5MNKN.d.mts} +0 -2
  209. package/dist/{store-helpers-C8uBGCbb.mjs → store-helpers-VzjgVTkM.mjs} +2 -3
  210. package/dist/{streaming-Bdq_M4d5.mjs → streaming-DvraWW6x.mjs} +2 -3
  211. package/dist/{subscriberIdentity-B-KpZkdl.mjs → subscriberIdentity-Bya56jsg.mjs} +2 -3
  212. package/dist/{tenancy-C5PCvm1h.mjs → tenancy-DSa_0hhw.mjs} +3 -4
  213. package/dist/{tenantPreparation-dYvWrgNa.mjs → tenantPreparation-BrpkQre3.mjs} +5 -6
  214. package/dist/testing/cleanupStoreContract.d.mts +2 -4
  215. package/dist/testing/cleanupStoreContract.mjs +2 -3
  216. package/dist/testing/index.d.mts +6 -32
  217. package/dist/testing/index.mjs +24 -37
  218. package/dist/testing/outboxStoreContract.d.mts +1 -3
  219. package/dist/testing/outboxStoreContract.mjs +3 -4
  220. package/dist/testing/requiredPorts.d.mts +2 -4
  221. package/dist/testing/requiredPorts.mjs +3 -4
  222. package/dist/testing/storageContract.d.mts +2 -4
  223. package/dist/testing/storageContract.mjs +2 -3
  224. package/dist/{timing-DCqsezX8.mjs → timing-6rQTuCwg.mjs} +3 -5
  225. package/dist/{tracing-Dro5eH6j.d.mts → tracing-JSFiBl5r.d.mts} +0 -2
  226. package/dist/{transactionContext-DrcNyjpv.mjs → transactionContext-DaxYUEgH.mjs} +2 -3
  227. package/dist/{typeGuards-CEl10KPy.mjs → typeGuards-UKnX8wPX.mjs} +2 -3
  228. package/dist/types/index.d.mts +4 -4
  229. package/dist/types/index.mjs +1 -1
  230. package/dist/types/storage.d.mts +1 -1
  231. package/dist/types/storage.mjs +1 -1
  232. package/dist/{types-ByHn9rEO.d.mts → types-0Dqlbgn8.d.mts} +0 -2
  233. package/dist/{types-D3Ixsh00.d.mts → types-BYEb_dLW.d.mts} +2 -4
  234. package/dist/{types-BJ-2XqVF.d.mts → types-BeEJm-DV.d.mts} +114 -14
  235. package/dist/{types-DVLddu2q.d.mts → types-C0YJAiL0.d.mts} +0 -2
  236. package/dist/{types-D9NWjpYc.mjs → types-CuGjhn83.mjs} +5 -6
  237. package/dist/{types-Ddl9OjmE.d.mts → types-DnkIALZ8.d.mts} +0 -4
  238. package/dist/usage/index.d.mts +2 -10
  239. package/dist/usage/index.mjs +8 -12
  240. package/dist/{userHelpers-BHig1kHq.mjs → userHelpers-oX5_mOVs.mjs} +2 -3
  241. package/dist/utils/index.d.mts +5 -39
  242. package/dist/utils/index.mjs +12 -12
  243. package/dist/{utils-BG5P7_Vb.mjs → utils-CjjGOT4E.mjs} +20 -30
  244. package/dist/{validate-D_mdOCir.mjs → validate-4RlTKOJb.mjs} +5 -7
  245. package/dist/{versioning-DBGHjPh7.mjs → versioning-Dk2-19La.mjs} +4 -5
  246. package/dist/{versioning-Bqm_57Qt.d.mts → versioning-S18y2-0C.d.mts} +1 -15
  247. package/dist/{websocket-Cs4awVyD.d.mts → websocket-BGuc-WVZ.d.mts} +1 -15
  248. package/dist/{workScope-DPPfM4m6.mjs → workScope-DoBsoVo4.mjs} +3 -4
  249. package/llms.txt +37 -30
  250. package/package.json +9 -8
  251. package/skills/arc/SKILL.md +65 -844
  252. package/skills/arc/references/agent-auth.md +82 -193
  253. package/skills/arc/references/api-reference.md +41 -245
  254. package/skills/arc/references/auth-api-keys.md +99 -0
  255. package/skills/arc/references/auth-better-auth-overlay.md +87 -0
  256. package/skills/arc/references/auth-better-auth.md +78 -0
  257. package/skills/arc/references/auth-permissions.md +100 -0
  258. package/skills/arc/references/auth-strategies.md +122 -0
  259. package/skills/arc/references/boot.md +80 -0
  260. package/skills/arc/references/enterprise-auth.md +65 -81
  261. package/skills/arc/references/events-outbox.md +90 -0
  262. package/skills/arc/references/events.md +75 -440
  263. package/skills/arc/references/integrations-jobs.md +74 -0
  264. package/skills/arc/references/integrations-realtime.md +84 -0
  265. package/skills/arc/references/integrations-webhooks.md +71 -0
  266. package/skills/arc/references/integrations-workflows.md +47 -0
  267. package/skills/arc/references/mcp-auth.md +83 -0
  268. package/skills/arc/references/mcp-custom-tools.md +125 -0
  269. package/skills/arc/references/mcp-setup.md +115 -0
  270. package/skills/arc/references/mcp-testing.md +63 -0
  271. package/skills/arc/references/multi-tenancy.md +56 -230
  272. package/skills/arc/references/permissions-scope.md +81 -0
  273. package/skills/arc/references/production-api.md +119 -0
  274. package/skills/arc/references/production-audit.md +101 -0
  275. package/skills/arc/references/production-boot.md +91 -0
  276. package/skills/arc/references/production-caching.md +63 -0
  277. package/skills/arc/references/production-distributed.md +75 -0
  278. package/skills/arc/references/production-idempotency.md +83 -0
  279. package/skills/arc/references/production-observability.md +83 -0
  280. package/skills/arc/references/production-realtime.md +70 -0
  281. package/skills/arc/references/production-reliability.md +100 -0
  282. package/skills/arc/references/production-shutdown.md +43 -0
  283. package/skills/arc/references/querying.md +76 -0
  284. package/skills/arc/references/resources.md +97 -0
  285. package/skills/arc/references/schedules.md +79 -0
  286. package/skills/arc/references/scim.md +61 -208
  287. package/skills/arc/references/tenancy-scope-install.md +82 -0
  288. package/skills/arc/references/testing.md +101 -144
  289. package/skills/arc/references/usage-cleanup-capabilities.md +45 -0
  290. package/skills/arc/references/validation.md +91 -0
  291. package/skills/arc/references/writes-hooks-errors.md +80 -0
  292. package/skills/arc-code-review/SKILL.md +67 -114
  293. package/skills/arc-code-review/references/arc-cheatsheet.md +68 -167
  294. package/skills/arc-code-review/references/mongokit-repositories.md +104 -0
  295. package/skills/arc-code-review/references/recipe-events-cache-jobs.md +112 -0
  296. package/skills/arc-code-review/references/recipe-resource.md +100 -0
  297. package/skills/arc-code-review/references/recipe-schemas-fields.md +93 -0
  298. package/skills/arc-code-review/references/recipe-scope-permissions.md +82 -0
  299. package/skills/arc-code-review/references/scaffolding.md +61 -198
  300. package/skills/arc-code-review/references/severity.md +49 -102
  301. package/skills/arc-code-review/references/smells-auth-scope.md +80 -0
  302. package/skills/arc-code-review/references/smells-data-events.md +66 -0
  303. package/skills/arc-code-review/references/smells-imports-style.md +59 -0
  304. package/skills/arc-code-review/references/smells-platform.md +89 -0
  305. package/skills/arc-code-review/references/smells-routes-schemas.md +66 -0
  306. package/skills/arc-module-publishing/SKILL.md +82 -208
  307. package/skills/arc-module-publishing/references/action-presets-and-plugins.md +87 -0
  308. package/skills/arc-module-publishing/references/build-and-types.md +73 -0
  309. package/skills/arc-module-publishing/references/module-lifecycle.md +101 -0
  310. package/skills/arc-module-publishing/references/package-manifest.md +34 -122
  311. package/skills/arc-module-publishing/references/publishing-workflow.md +44 -140
  312. package/skills/arc-module-publishing/references/resource-assembly.md +102 -0
  313. package/skills/arc-module-publishing/references/testing-packages.md +82 -0
  314. package/skills/arc/references/auth.md +0 -729
  315. package/skills/arc/references/integrations.md +0 -452
  316. package/skills/arc/references/mcp.md +0 -691
  317. package/skills/arc/references/production.md +0 -835
  318. package/skills/arc-code-review/references/anti-patterns.md +0 -1008
  319. package/skills/arc-code-review/references/migration-recipes.md +0 -649
  320. package/skills/arc-code-review/references/mongokit-migration.md +0 -360
  321. package/skills/arc-module-publishing/references/authoring-modules.md +0 -327
@@ -1,12 +1,12 @@
1
1
 
2
- import { P as ArcHeaders, i as RequestScope } from "./types-Ddl9OjmE.mjs";
3
- import { d as UserBase, l as PermissionCheck, t as AnyRecord } from "./base-CZyixEQR.mjs";
4
- import { a as QueryCacheConfig } from "./QueryCache--5uAuYPW.mjs";
5
- import "./elevation-BW2J3tNj.mjs";
6
- import "./requirement-CbiLdQ1n.mjs";
7
- import { n as FieldPermissionMap } from "./fields-BBSpf8pS.mjs";
8
- import { n as EncryptionDirective } from "./types-ByHn9rEO.mjs";
9
- import { n as DomainEvent } from "./EventTransport-CiicKz2Z.mjs";
2
+ import { P as ArcHeaders, i as RequestScope } from "./types-DnkIALZ8.mjs";
3
+ import { d as UserBase, l as PermissionCheck, t as AnyRecord } from "./base-HXNgPQww.mjs";
4
+ import { a as QueryCacheConfig } from "./QueryCache-DdvrGG8Q.mjs";
5
+ import "./elevation-DPD0hcU-.mjs";
6
+ import "./requirement-CTRQjjQx.mjs";
7
+ import { n as FieldPermissionMap } from "./fields-JTkrtO-r.mjs";
8
+ import { n as EncryptionDirective } from "./types-0Dqlbgn8.mjs";
9
+ import { n as DomainEvent } from "./EventTransport-CYEoCJGe.mjs";
10
10
  import { Filter } from "@classytic/repo-core/filter";
11
11
  import { AggDateBucket, AggMeasure, AggTopN, QueryOptions, TenantPurgeStrategy, TransactionHandle } from "@classytic/repo-core/repository";
12
12
  import { KeysetPaginationResult, OffsetPaginationResult } from "@classytic/repo-core/pagination";
@@ -14,7 +14,6 @@ import { FastifyInstance, FastifyPluginAsync, FastifyReply, FastifyRequest, Rout
14
14
  import { DataAdapter, RepositoryLike } from "@classytic/repo-core/adapter";
15
15
  import { LookupSpec } from "@classytic/repo-core/lookup";
16
16
  import { FieldRule, SchemaBuilderOptions } from "@classytic/repo-core/schema";
17
- //#region src/types/handlers.d.ts
18
17
  /**
19
18
  * Minimal server accessor — exposes safe, read-only server decorators.
20
19
  * Allows controller handlers to publish events, log, and audit
@@ -335,8 +334,6 @@ interface ControllerLike {
335
334
  update?: unknown;
336
335
  delete?: unknown;
337
336
  }
338
- //#endregion
339
- //#region src/types/resource/writes.d.ts
340
337
  /**
341
338
  * What every write verb receives besides its data.
342
339
  *
@@ -431,8 +428,6 @@ interface ResourceWrites<TDoc = AnyRecord> {
431
428
  * check at its use sites — drift is a compile error, not a runtime surprise.
432
429
  */
433
430
  type WriteVerbKey = "create" | "update" | "delete";
434
- //#endregion
435
- //#region src/core/BodySanitizer.d.ts
436
431
  /**
437
432
  * Policy for handling fields the caller lacks write permission for.
438
433
  *
@@ -479,8 +474,6 @@ declare class BodySanitizer {
479
474
  */
480
475
  sanitize(body: AnyRecord, _operation: "create" | "update", req?: IRequestContext, meta?: ArcInternalMetadata): AnyRecord;
481
476
  }
482
- //#endregion
483
- //#region src/core/controllerTypes.d.ts
484
477
  /**
485
478
  * Union of every return shape repo-core's `MinimalRepo.getAll()` is
486
479
  * contractually allowed to produce. See repo-core's `MinimalRepo.getAll`
@@ -663,8 +656,6 @@ interface ControllerConfigurableOptions {
663
656
  * `ControllerConfigurableOptions`.
664
657
  */
665
658
  interface BaseControllerOptions extends ControllerConstructionOptions, ControllerConfigurableOptions {}
666
- //#endregion
667
- //#region src/scope/projection.d.ts
668
659
  /**
669
660
  * Lightweight projection of `RequestScope` — just the fields tenant-aware
670
661
  * hooks and controllers usually read. Full discriminated-union access is
@@ -683,8 +674,6 @@ interface RequestScopeProjection {
683
674
  /** Host-defined project / branch / region / workspace dimensions. */
684
675
  context?: Readonly<Record<string, string>>;
685
676
  }
686
- //#endregion
687
- //#region src/hooks/HookSystem.d.ts
688
677
  type HookPhase = "before" | "around" | "after";
689
678
  type HookOperation = "create" | "update" | "delete" | "restore" | "read" | "list";
690
679
  interface HookContext<T = AnyRecord> {
@@ -913,8 +902,6 @@ declare function beforeDelete<T = AnyRecord>(hooks: HookSystem, resource: string
913
902
  * Create an after-delete hook registration for a given hook system
914
903
  */
915
904
  declare function afterDelete<T = AnyRecord>(hooks: HookSystem, resource: string, handler: HookHandler<T>, priority?: number): () => void;
916
- //#endregion
917
- //#region src/core/AccessControl.d.ts
918
905
  /** Denial reason codes returned by `fetchDetailed()`. */
919
906
  type FetchDenialReason = "NOT_FOUND" | "POLICY_FILTERED" | "ORG_SCOPE_DENIED";
920
907
  /** Result of a detailed fetch with access control. */
@@ -1041,8 +1028,6 @@ declare class AccessControl {
1041
1028
  /** Extract typed Arc internal metadata from request */
1042
1029
  private _meta;
1043
1030
  }
1044
- //#endregion
1045
- //#region src/core/entityHelpers.d.ts
1046
1031
  /**
1047
1032
  * Read the resource's configured `idField` for the current request.
1048
1033
  * Falls back to the framework default (`_id`) when the route hasn't
@@ -1085,8 +1070,6 @@ declare function getActionTarget<TDoc = Record<string, unknown>>(req: {
1085
1070
  readonly actionTarget?: unknown;
1086
1071
  };
1087
1072
  }): TDoc | undefined;
1088
- //#endregion
1089
- //#region src/core/QueryResolver.d.ts
1090
1073
  interface QueryResolverConfig {
1091
1074
  /** Query parser instance (default: Arc built-in parser) */
1092
1075
  queryParser?: QueryParserInterface;
@@ -1198,8 +1181,6 @@ declare class QueryResolver {
1198
1181
  */
1199
1182
  private assertNoBlockedReadKeys;
1200
1183
  }
1201
- //#endregion
1202
- //#region src/core/BaseCrudController.d.ts
1203
1184
  /**
1204
1185
  * Framework-agnostic CRUD controller implementing IController.
1205
1186
  * Composes AccessControl, BodySanitizer, and QueryResolver.
@@ -1456,8 +1437,6 @@ declare class BaseCrudController<TDoc = AnyRecord, TRepository extends Repositor
1456
1437
  soft?: boolean;
1457
1438
  }>>;
1458
1439
  }
1459
- //#endregion
1460
- //#region src/core/mixins/bulk.d.ts
1461
1440
  /** Public surface contributed by BulkMixin. */
1462
1441
  interface BulkExt {
1463
1442
  bulkCreate(req: IRequestContext): Promise<IControllerResponse<object[]>>;
@@ -1470,31 +1449,23 @@ interface BulkExt {
1470
1449
  }>>;
1471
1450
  }
1472
1451
  declare function BulkMixin<TBase extends MixinConstructor<BaseCrudController<object>>>(Base: TBase): TBase & MixinConstructor<BulkExt>;
1473
- //#endregion
1474
- //#region src/core/mixins/slug.d.ts
1475
1452
  /** Public surface contributed by SlugMixin. */
1476
1453
  interface SlugExt {
1477
1454
  getBySlug(req: IRequestContext): Promise<IControllerResponse<object>>;
1478
1455
  }
1479
1456
  declare function SlugMixin<TBase extends MixinConstructor<BaseCrudController<object>>>(Base: TBase): TBase & MixinConstructor<SlugExt>;
1480
- //#endregion
1481
- //#region src/core/mixins/tree.d.ts
1482
1457
  /** Public surface contributed by TreeMixin. */
1483
1458
  interface TreeExt {
1484
1459
  getTree(req: IRequestContext): Promise<IControllerResponse<object[]>>;
1485
1460
  getChildren(req: IRequestContext): Promise<IControllerResponse<object[]>>;
1486
1461
  }
1487
1462
  declare function TreeMixin<TBase extends MixinConstructor<BaseCrudController<object>>>(Base: TBase): TBase & MixinConstructor<TreeExt>;
1488
- //#endregion
1489
- //#region src/core/mixins/softDelete.d.ts
1490
1463
  /** Public surface contributed by SoftDeleteMixin. */
1491
1464
  interface SoftDeleteExt {
1492
1465
  getDeleted(req: IRequestContext): Promise<IControllerResponse<PaginationResult<object>>>;
1493
1466
  restore(req: IRequestContext): Promise<IControllerResponse<object>>;
1494
1467
  }
1495
1468
  declare function SoftDeleteMixin<TBase extends MixinConstructor<BaseCrudController<object>>>(Base: TBase): TBase & MixinConstructor<SoftDeleteExt>;
1496
- //#endregion
1497
- //#region src/core/BaseController.d.ts
1498
1469
  /**
1499
1470
  * Fully-composed controller shape: all CRUD methods + every preset method
1500
1471
  * (SoftDelete / Tree / Slug / Bulk) typed over the caller-supplied `TDoc`.
@@ -1543,8 +1514,6 @@ declare const BaseController_base: {
1543
1514
  declare class BaseController<TDoc extends object = AnyRecord, _TRepository extends RepositoryLike = RepositoryLike<TDoc>> extends BaseController_base {
1544
1515
  readonly _phantom?: [TDoc, _TRepository];
1545
1516
  }
1546
- //#endregion
1547
- //#region src/types/auth.d.ts
1548
1517
  /**
1549
1518
  * JWT utilities provided to authenticator. Arc provides the helpers;
1550
1519
  * apps use them as needed.
@@ -1721,8 +1690,6 @@ interface AuthPluginOptions {
1721
1690
  */
1722
1691
  strictTokenType?: boolean;
1723
1692
  }
1724
- //#endregion
1725
- //#region src/core/middlewares/rateLimit.d.ts
1726
1693
  /**
1727
1694
  * Per-route CORS override, read by `@fastify/cors` off `routeOptions.config.cors`.
1728
1695
  *
@@ -1737,8 +1704,6 @@ interface AuthPluginOptions {
1737
1704
  * option surface.
1738
1705
  */
1739
1706
  type RouteCorsConfig = Record<string, unknown> | false;
1740
- //#endregion
1741
- //#region src/types/resource/rate-limit.d.ts
1742
1707
  /**
1743
1708
  * Resource-level rate-limit shape — shared by `ResourceConfig.rateLimit`
1744
1709
  * and per-route `RouteDefinition.rateLimit` overrides.
@@ -1749,8 +1714,6 @@ interface RateLimitConfig {
1749
1714
  /** Time window for rate limiting (e.g., '1 minute', '15 seconds') */
1750
1715
  timeWindow: string;
1751
1716
  }
1752
- //#endregion
1753
- //#region src/types/resource/routes.d.ts
1754
1717
  /** HTTP methods for custom routes. */
1755
1718
  type RouteMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1756
1719
  /** MCP tool configuration for a route or action. */
@@ -2058,8 +2021,6 @@ interface RouteDefinition {
2058
2021
  isError?: boolean;
2059
2022
  }>;
2060
2023
  }
2061
- //#endregion
2062
- //#region src/types/resource/actions.d.ts
2063
2024
  /**
2064
2025
  * Action handler function for state transitions. Receives the resource
2065
2026
  * ID, action-specific data, and the request.
@@ -2087,6 +2048,12 @@ interface ActionDefinition {
2087
2048
  * Runtime feature-detects via `convertRouteSchema` / `toJsonSchema`.
2088
2049
  */
2089
2050
  readonly schema?: unknown;
2051
+ /**
2052
+ * With a Zod `schema`: parse the body with it before the handler runs, so `data` is the schema's
2053
+ * OUTPUT (trimmed, defaulted, refined). A failure is a 400 `arc.validation_error`. Default
2054
+ * `false`: `data` is what AJV accepted. Ignored for a plain JSON Schema.
2055
+ */
2056
+ readonly parse?: boolean;
2090
2057
  /** Description for OpenAPI docs and MCP tool */
2091
2058
  readonly description?: string;
2092
2059
  /**
@@ -2142,8 +2109,6 @@ interface ActionDefinition {
2142
2109
  type ActionEntry = ActionHandlerFn | ActionDefinition;
2143
2110
  /** Actions configuration map. */
2144
2111
  type ActionsMap = Record<string, ActionEntry>;
2145
- //#endregion
2146
- //#region src/types/resource/cache.d.ts
2147
2112
  /**
2148
2113
  * Per-resource QueryCache configuration — stale-while-revalidate
2149
2114
  * windows, per-operation overrides, and tag-based cross-resource
@@ -2178,8 +2143,6 @@ interface ResourceCacheConfig {
2178
2143
  /** Disable caching for this resource */
2179
2144
  disabled?: boolean;
2180
2145
  }
2181
- //#endregion
2182
- //#region src/pipeline/types.d.ts
2183
2146
  /**
2184
2147
  * Pipeline context passed to guards, transforms, and interceptors.
2185
2148
  * Extends IRequestContext with pipeline-specific metadata.
@@ -2240,8 +2203,6 @@ type PipelineConfig = PipelineStep[] | {
2240
2203
  delete?: PipelineStep[];
2241
2204
  [operation: string]: PipelineStep[] | undefined;
2242
2205
  };
2243
- //#endregion
2244
- //#region src/core/aggregation/types.d.ts
2245
2206
  /**
2246
2207
  * Sugar for measures: `'count'` / `'count:field'` / `'sum:price'` /
2247
2208
  * `'avg:rating'` / `'min:created'` / `'max:updated'` /
@@ -2548,8 +2509,6 @@ interface AggregationConfig {
2548
2509
  }
2549
2510
  /** Map of name → declaration. Keys become URL segments under `/aggregations/<name>`. */
2550
2511
  type AggregationsMap = Record<string, AggregationConfig>;
2551
- //#endregion
2552
- //#region src/types/resource/events.d.ts
2553
2512
  /**
2554
2513
  * Domain-event declaration on a resource — name, optional handler, and
2555
2514
  * payload schema for the `events:` block of a resource definition.
@@ -2566,8 +2525,6 @@ interface EventDefinition {
2566
2525
  schema?: unknown;
2567
2526
  description?: string;
2568
2527
  }
2569
- //#endregion
2570
- //#region src/types/resource/extensions.d.ts
2571
2528
  /**
2572
2529
  * `ResourceExtensions` — the typed plugin-extension namespace plugins
2573
2530
  * augment via declaration merging (`declare module "@classytic/arc/types"`).
@@ -2631,8 +2588,6 @@ interface ResourceExtensions {
2631
2588
  */
2632
2589
  encryption?: EncryptionDirective;
2633
2590
  }
2634
- //#endregion
2635
- //#region src/types/resource/hooks.d.ts
2636
2591
  /**
2637
2592
  * Hook context passed to resource-level hook handlers. Mirrors
2638
2593
  * HookSystem's HookContext but with a simpler API for inline use.
@@ -2710,8 +2665,6 @@ interface ResourceHooks {
2710
2665
  beforeDelete?: (ctx: ResourceHookContext) => Promise<void> | void;
2711
2666
  afterDelete?: (ctx: ResourceHookContext) => Promise<void> | void;
2712
2667
  }
2713
- //#endregion
2714
- //#region src/types/resource/fields.d.ts
2715
2668
  /**
2716
2669
  * Per-field rule — arc's extension of repo-core's 4-field `FieldRule` floor
2717
2670
  * (`immutable`, `immutableAfterCreate`, `systemManaged`, `optional`) with
@@ -2806,8 +2759,6 @@ interface FieldRule$1 {
2806
2759
  readonly?: boolean;
2807
2760
  hidden?: boolean;
2808
2761
  }
2809
- //#endregion
2810
- //#region src/types/resource/schemas.d.ts
2811
2762
  /**
2812
2763
  * One client-requestable join. The base collection's tenant filter never reaches a joined
2813
2764
  * collection, so its scope is REQUIRED and is always the server's — a client `where` is discarded.
@@ -2982,8 +2933,6 @@ interface MiddlewareConfig {
2982
2933
  delete?: MiddlewareHandler[];
2983
2934
  [key: string]: MiddlewareHandler[] | undefined;
2984
2935
  }
2985
- //#endregion
2986
- //#region src/types/resource/presets.d.ts
2987
2936
  interface PresetHook {
2988
2937
  operation: "create" | "update" | "delete" | "read" | "list";
2989
2938
  phase: "before" | "after";
@@ -3010,8 +2959,6 @@ interface PresetResult {
3010
2959
  hooks?: PresetHook[];
3011
2960
  }
3012
2961
  type PresetFunction = (config: ResourceConfig) => PresetResult;
3013
- //#endregion
3014
- //#region src/types/resource/tenant.d.ts
3015
2962
  /**
3016
2963
  * Tenant-cleanup declaration on a resource — compliance-grade strategy
3017
2964
  * for what happens to this resource's rows when the owning organization
@@ -3068,8 +3015,6 @@ interface ResolvedTenantPurge {
3068
3015
  */
3069
3016
  readonly source: "declared" | "disabled";
3070
3017
  }
3071
- //#endregion
3072
- //#region src/types/resource/config.d.ts
3073
3018
  /**
3074
3019
  * Built-in write routes whose retry must not execute twice: each listed op answers a
3075
3020
  * keyless call with 400 `arc.idempotency_key_required` and dedupes a keyed one. Needs
@@ -3425,6 +3370,12 @@ interface ResourceConfig<TDoc = AnyRecord> {
3425
3370
  * `ARC_STRICT_PERMISSIONS=true` env — the recommended production posture.
3426
3371
  */
3427
3372
  strictPermissions?: boolean;
3373
+ /**
3374
+ * A `{ body: X }` wrapper where arc expects the schema itself (an action's `schema`, a route's
3375
+ * `body` slot) is read as an empty schema, so the endpoint accepts anything. Default: warn at
3376
+ * registration. `true` (or `ARC_STRICT_SCHEMAS=true`) fails `defineResource()` instead.
3377
+ */
3378
+ strictSchemas?: boolean;
3428
3379
  /**
3429
3380
  * Default `limit` value when the request omits `?limit=`. Default 20.
3430
3381
  * Surfaced at the resource level (rather than only via a custom
@@ -3610,8 +3561,6 @@ interface ResourceConfig<TDoc = AnyRecord> {
3610
3561
  */
3611
3562
  extensions?: ResourceExtensions;
3612
3563
  }
3613
- //#endregion
3614
- //#region src/core/defineResource/diagnostics.d.ts
3615
3564
  /**
3616
3565
  * Boot-time diagnostics produced by the `defineResource()` validation pipeline.
3617
3566
  *
@@ -3646,8 +3595,6 @@ interface ResourceDiagnostic {
3646
3595
  code: string;
3647
3596
  message: string;
3648
3597
  }
3649
- //#endregion
3650
- //#region src/core/defineResource/ResourceDefinition.d.ts
3651
3598
  /**
3652
3599
  * Constructor input shape — `ResourceConfig` plus the metadata
3653
3600
  * Phases 3-6 stamp on it. Defined locally because the class
@@ -3829,8 +3776,6 @@ declare class ResourceDefinition<TDoc = AnyRecord> {
3829
3776
  /** Resource metadata — shape consumed by registry / introspection. */
3830
3777
  getMetadata(): ResourceMetadata;
3831
3778
  }
3832
- //#endregion
3833
- //#region src/core/defineResource.d.ts
3834
3779
  /**
3835
3780
  * `TDoc` is **unconstrained** at this layer. The previous `TDoc
3836
3781
  * extends object` bound leaked out of `BaseController`'s
@@ -3868,8 +3813,6 @@ declare function defineResource<TDoc, TActions extends ActionsMap>(config: Resou
3868
3813
  * back-compat breakage for hosts that never touched actions.
3869
3814
  */
3870
3815
  declare function defineResource<TDoc = AnyRecord>(config: ResourceConfig<TDoc>): ResourceDefinition<TDoc>;
3871
- //#endregion
3872
- //#region src/registry/ResourceRegistry.d.ts
3873
3816
  interface RegisterOptions {
3874
3817
  module?: string;
3875
3818
  /** Pre-generated OpenAPI schemas */
@@ -4009,8 +3952,6 @@ declare class ResourceRegistry {
4009
3952
  */
4010
3953
  private _groupBy;
4011
3954
  }
4012
- //#endregion
4013
- //#region src/types/fastify.d.ts
4014
3955
  interface FastifyRequestExtras {
4015
3956
  user?: Record<string, unknown>;
4016
3957
  }
@@ -4055,7 +3996,7 @@ interface RequestWithExtras extends FastifyRequest {
4055
3996
  _ownershipCheck?: Record<string, unknown>;
4056
3997
  }
4057
3998
  type FastifyWithAuth = FastifyInstance & {
4058
- authenticate: (request: FastifyRequest, reply: FastifyReply) => Promise<void>;
3999
+ authenticate: (request: FastifyRequest, reply: FastifyReply) => Promise<void | FastifyReply>;
4059
4000
  };
4060
4001
  /**
4061
4002
  * Arc core decorator — added by `arcCorePlugin`. Provides instance-scoped
@@ -4089,7 +4030,7 @@ interface EventsDecorator {
4089
4030
  type FastifyWithDecorators = FastifyInstance & {
4090
4031
  arc?: ArcDecorator;
4091
4032
  events?: EventsDecorator;
4092
- authenticate?: (request: FastifyRequest, reply: FastifyReply) => Promise<void>;
4033
+ authenticate?: (request: FastifyRequest, reply: FastifyReply) => Promise<void | FastifyReply>;
4093
4034
  optionalAuthenticate?: (request: FastifyRequest, reply: FastifyReply) => Promise<void>;
4094
4035
  /** Organization-scoped filtering — from `multiTenant` preset */
4095
4036
  organizationScoped?: (options?: {
@@ -4111,8 +4052,6 @@ declare module "fastify" {
4111
4052
  arcExtensions?: ResourceExtensions;
4112
4053
  }
4113
4054
  }
4114
- //#endregion
4115
- //#region src/types/plugins.d.ts
4116
4055
  interface GracefulShutdownOptions {
4117
4056
  timeout?: number;
4118
4057
  onShutdown?: () => Promise<void> | void;
@@ -4198,8 +4137,6 @@ interface CrudRouterOptions {
4198
4137
  */
4199
4138
  extensions?: ResourceExtensions;
4200
4139
  }
4201
- //#endregion
4202
- //#region src/types/query.d.ts
4203
4140
  /**
4204
4141
  * Request-shaped context object passed to controller methods. Apps and
4205
4142
  * adapters extend it freely via the index signature.
@@ -4403,8 +4340,6 @@ interface ServiceContext {
4403
4340
  /** Return plain objects */
4404
4341
  lean?: boolean;
4405
4342
  }
4406
- //#endregion
4407
- //#region src/types/registry.d.ts
4408
4343
  interface ResourceMetadata {
4409
4344
  name: string;
4410
4345
  displayName?: string;
@@ -4501,6 +4436,15 @@ interface RegistryEntry extends ResourceMetadata {
4501
4436
  rateLimit?: RateLimitConfig | false;
4502
4437
  /** Built-in write ops that require an idempotency key (`defineResource({ idempotency })`). */
4503
4438
  idempotency?: ResourceIdempotencyConfig;
4439
+ /**
4440
+ * What the resource's query parser declares for the list route: allowed filter fields, operators
4441
+ * and sort fields. Published as `x-arc-query` on the list operation. Absent when it declares none.
4442
+ */
4443
+ queryContract?: {
4444
+ filterFields?: readonly string[];
4445
+ operators?: readonly string[];
4446
+ sortFields?: readonly string[];
4447
+ };
4504
4448
  /** Per-resource audit opt-in flag (read by `auditPlugin` perResource mode) */
4505
4449
  audit?: boolean | {
4506
4450
  operations?: ("create" | "update" | "delete")[];
@@ -4609,8 +4553,6 @@ interface IntrospectionData {
4609
4553
  stats: RegistryStats;
4610
4554
  generatedAt?: string;
4611
4555
  }
4612
- //#endregion
4613
- //#region src/types/repository.d.ts
4614
4556
  /**
4615
4557
  * Discriminated union of pagination result shapes. Narrow on `method`.
4616
4558
  *
@@ -4630,8 +4572,6 @@ interface IntrospectionData {
4630
4572
  * ```
4631
4573
  */
4632
4574
  type PaginationResult<TDoc, TExtra extends Record<string, unknown> = Record<string, never>> = OffsetPaginationResult<TDoc, TExtra> | KeysetPaginationResult<TDoc, TExtra>;
4633
- //#endregion
4634
- //#region src/types/utility.d.ts
4635
4575
  /**
4636
4576
  * Infer document type from a `DataAdapter` or `ResourceConfig`. Smart
4637
4577
  * inference that works with multiple sources.
@@ -4655,5 +4595,4 @@ type InferDocType<T> = T extends DataAdapter<infer D> ? D : T extends ResourceCo
4655
4595
  */
4656
4596
  type InferAdapterDoc<A> = A extends DataAdapter<infer D> ? D : unknown;
4657
4597
  type InferResourceDoc<T> = T extends ResourceConfig<infer D> ? D : never;
4658
- //#endregion
4659
4598
  export { ResourceHookContext as $, AccessControl as $t, RequestWithExtras as A, MixinConstructor as An, AuthHelpers as At, OnTenantDeleteConfig as B, IController as Bn, TreeMixin as Bt, RequestIdOptions as C, ArcGetResult as Cn, ActionEntry as Ct, FastifyWithAuth as D, ControllerConfigurableOptions as Dn, RouteMcpConfig as Dt, FastifyRequestExtras as E, BaseControllerOptions as En, RouteDefinition as Et, ResourceDefinition as F, WriteContext as Fn, TokenPair as Ft, CrudRouteKey as G, ServerAccessor as Gn, BaseCrudController as Gt, PresetFunction as H, IRequestContext as Hn, SlugMixin as Ht, CrudController as I, WriteVerbKey as In, BaseController as It, MiddlewareConfig as J, ActionTargetCheck as Jt, CrudSchemas as K, QueryResolver as Kt, ResourceConfig as L, ControllerHandler as Ln, SoftDeleteExt as Lt, ResourceRegistry as M, BodySanitizerConfig as Mn, Authenticator as Mt, RouteRow as N, MutationWriteContext as Nn, AuthenticatorContext as Nt, FastifyWithDecorators as O, ControllerConstructionOptions as On, RouteMethod as Ot, defineResource as P, ResourceWrites as Pn, JwtContext as Pt, FieldRule$1 as Q, getEntityQuery as Qt, ResourceIdempotencyConfig as R, ControllerLike as Rn, SoftDeleteMixin as Rt, IntrospectionPluginOptions as S, ArcDeleteResult as Sn, ActionDefinition as St, EventsDecorator as T, ArcUpdateResult as Tn, ActionsMap as Tt, PresetHook as U, RawRouteHandler as Un, BulkExt as Ut, ResolvedTenantPurge as V, IControllerResponse as Vn, SlugExt as Vt, PresetResult as W, RouteHandler as Wn, BulkMixin as Wt, RouteSchemaOptions as X, getEntityId as Xt, OpenApiSchemas as Y, getActionTarget as Yt, ArcFieldRule as Z, getEntityIdField as Zt, ServiceContext as _, beforeDelete as _n, PipelineConfig as _t, IntrospectionData as a, DefineHookOptions as an, AggregationCacheConfig as at, HealthCheck as b, defineHook as bn, Transform as bt, ResourceMetadata as c, HookOperation as cn, AggregationIndexHint as ct, LookupOption as d, HookSystem as dn, AggregationRateLimit as dt, AccessControlConfig as en, ResourceHooks as et, OwnershipCheck as f, HookSystemOptions as fn, AggregationsMap as ft, RequestContext as g, beforeCreate as gn, OperationFilter as gt, QueryParserInterface as h, afterUpdate as hn, NextFunction as ht, PaginationResult as i, AroundHookHandler as in, AggMeasureShorthand as it, RegisterOptions as j, BodySanitizer as jn, AuthPluginOptions as jt, MiddlewareHandler as k, ListResult as kn, RateLimitConfig as kt, ArcInternalMetadata as l, HookPhase as ln, AggregationMaterializedContext as lt, PopulateOption as m, afterDelete as mn, Interceptor as mt, InferDocType as n, FetchDenialReason as nn, EventDefinition as nt, RegistryEntry as o, HookContext as on, AggregationConfig as ot, ParsedQuery as p, afterCreate as pn, Guard as pt, LookupPolicy as q, QueryResolverConfig as qt, InferResourceDoc as r, FetchResult as rn, AggMeasureInput as rt, RegistryStats as s, HookHandler as sn, AggregationDateRangeRequirement as st, InferAdapterDoc as t, AccessControlRepository as tn, ResourceExtensions as tt, ControllerQueryOptions as u, HookRegistration as un, AggregationMaterializedResult as ut, CrudRouterOptions as v, beforeUpdate as vn, PipelineContext as vt, ArcDecorator as w, ArcListResult as wn, ActionHandlerFn as wt, HealthOptions as x, ArcCreateResult as xn, ResourceCacheConfig as xt, GracefulShutdownOptions as y, createHookSystem as yn, PipelineStep as yt, ResourcePermissions as z, FastifyHandler as zn, TreeExt as zt };
package/dist/index.d.mts CHANGED
@@ -1,12 +1,10 @@
1
1
 
2
- import { c as DataPolicy, d as UserBase, l as PermissionCheck, n as ArcRequest, o as UserOrganization, r as JWTPayload, s as AuthorizationDecision, t as AnyRecord, u as PermissionContext } from "./base-CZyixEQR.mjs";
3
- import { A as RequestWithExtras, Bn as IController, Bt as TreeMixin, C as RequestIdOptions, Cn as ArcGetResult, D as FastifyWithAuth, Dn as ControllerConfigurableOptions, E as FastifyRequestExtras, En as BaseControllerOptions, F as ResourceDefinition, Fn as WriteContext, G as CrudRouteKey, Gt as BaseCrudController, H as PresetFunction, Hn as IRequestContext, Ht as SlugMixin, I as CrudController, In as WriteVerbKey, It as BaseController, J as MiddlewareConfig, K as CrudSchemas, L as ResourceConfig, Lt as SoftDeleteExt, Nn as MutationWriteContext, O as FastifyWithDecorators, On as ControllerConstructionOptions, P as defineResource, Pn as ResourceWrites, Q as FieldRule, Rn as ControllerLike, Rt as SoftDeleteMixin, S as IntrospectionPluginOptions, Sn as ArcDeleteResult, Tn as ArcUpdateResult, Un as RawRouteHandler, Ut as BulkExt, Vn as IControllerResponse, Vt as SlugExt, W as PresetResult, Wn as RouteHandler, Wt as BulkMixin, X as RouteSchemaOptions, _ as ServiceContext, a as IntrospectionData, at as AggregationCacheConfig, b as HealthCheck, c as ResourceMetadata, ct as AggregationIndexHint, dt as AggregationRateLimit, f as OwnershipCheck, ft as AggregationsMap, g as RequestContext, h as QueryParserInterface, i as PaginationResult, it as AggMeasureShorthand, jt as AuthPluginOptions, kn as ListResult, kt as RateLimitConfig, l as ArcInternalMetadata, lt as AggregationMaterializedContext, n as InferDocType, nt as EventDefinition, o as RegistryEntry, ot as AggregationConfig, r as InferResourceDoc, rt as AggMeasureInput, s as RegistryStats, st as AggregationDateRangeRequirement, t as InferAdapterDoc, ut as AggregationMaterializedResult, v as CrudRouterOptions, wn as ArcListResult, x as HealthOptions, xn as ArcCreateResult, y as GracefulShutdownOptions, zt as TreeExt } from "./index-WH7xgvxS.mjs";
4
- import { a as applyFieldReadPermissions, n as FieldPermissionMap, o as applyFieldWritePermissions, s as fields, t as FieldPermission } from "./fields-BBSpf8pS.mjs";
5
- import "./fastify-augmentation-DRlCIWE9.mjs";
6
- import { A as CrudOperation, B as HookOperation, C as mergeResourceConfig, F as DEFAULT_TENANT_FIELD, G as MUTATION_OPERATIONS, H as MAX_FILTER_DEPTH, I as DEFAULT_UPDATE_METHOD, J as SYSTEM_FIELDS, K as MutationOperation, M as DEFAULT_LIMIT, N as DEFAULT_MAX_LIMIT, O as defineAggregation, P as DEFAULT_SORT, R as HOOK_OPERATIONS, S as SeamedResourceConfig, T as defineAction, U as MAX_REGEX_LENGTH, V as HookPhase, W as MAX_SEARCH_LENGTH, b as AdapterLike, c as nativePolicyFilter, j as DEFAULT_ID_FIELD, k as CRUD_OPERATIONS, m as getControllerScope, q as RESERVED_QUERY_PARAMS, s as NativePolicyFilter, x as ResourceSeams, y as defineResourceVariants, z as HOOK_PHASES } from "./index-Beg3aNnK.mjs";
7
- import { C as requireScopeContext, G as createDynamicPermissionMatrix, H as DynamicPermissionMatrix, J as PublicPolicy, K as createOrgPermissions, Q as anyOf, S as requireOrgRole, T as requireTeamMembership, U as DynamicPermissionMatrixConfig, Y as allOf, Z as allowPublic, _ as publicRead, at as requireRoles, b as requireOrgInScope, d as adminOnly, et as denyAll, f as authenticated, g as presets_d_exports, m as ownerWithAdminBypass, nt as requireAuth, p as fullPublic, q as AllowPublicOptions, rt as requireOwnership, st as when, v as publicReadAdminWrite, w as requireServiceScope, x as requireOrgMembership, y as readOnly } from "./index-Bxriq3so.mjs";
8
- import { a as NotFoundError, d as ValidationError, f as createDomainError, i as ForbiddenError, t as ArcError, u as UnauthorizedError } from "./errors-JYc9vwqE.mjs";
9
- //#region src/index.d.ts
2
+ import { c as DataPolicy, d as UserBase, l as PermissionCheck, n as ArcRequest, o as UserOrganization, r as JWTPayload, s as AuthorizationDecision, t as AnyRecord, u as PermissionContext } from "./base-HXNgPQww.mjs";
3
+ import { A as RequestWithExtras, Bn as IController, Bt as TreeMixin, C as RequestIdOptions, Cn as ArcGetResult, D as FastifyWithAuth, Dn as ControllerConfigurableOptions, E as FastifyRequestExtras, En as BaseControllerOptions, F as ResourceDefinition, Fn as WriteContext, G as CrudRouteKey, Gt as BaseCrudController, H as PresetFunction, Hn as IRequestContext, Ht as SlugMixin, I as CrudController, In as WriteVerbKey, It as BaseController, J as MiddlewareConfig, K as CrudSchemas, L as ResourceConfig, Lt as SoftDeleteExt, Nn as MutationWriteContext, O as FastifyWithDecorators, On as ControllerConstructionOptions, P as defineResource, Pn as ResourceWrites, Q as FieldRule, Rn as ControllerLike, Rt as SoftDeleteMixin, S as IntrospectionPluginOptions, Sn as ArcDeleteResult, Tn as ArcUpdateResult, Un as RawRouteHandler, Ut as BulkExt, Vn as IControllerResponse, Vt as SlugExt, W as PresetResult, Wn as RouteHandler, Wt as BulkMixin, X as RouteSchemaOptions, _ as ServiceContext, a as IntrospectionData, at as AggregationCacheConfig, b as HealthCheck, c as ResourceMetadata, ct as AggregationIndexHint, dt as AggregationRateLimit, f as OwnershipCheck, ft as AggregationsMap, g as RequestContext, h as QueryParserInterface, i as PaginationResult, it as AggMeasureShorthand, jt as AuthPluginOptions, kn as ListResult, kt as RateLimitConfig, l as ArcInternalMetadata, lt as AggregationMaterializedContext, n as InferDocType, nt as EventDefinition, o as RegistryEntry, ot as AggregationConfig, r as InferResourceDoc, rt as AggMeasureInput, s as RegistryStats, st as AggregationDateRangeRequirement, t as InferAdapterDoc, ut as AggregationMaterializedResult, v as CrudRouterOptions, wn as ArcListResult, x as HealthOptions, xn as ArcCreateResult, y as GracefulShutdownOptions, zt as TreeExt } from "./index-DyJFTJLA.mjs";
4
+ import { a as applyFieldReadPermissions, n as FieldPermissionMap, o as applyFieldWritePermissions, s as fields, t as FieldPermission } from "./fields-JTkrtO-r.mjs";
5
+ import "./fastify-augmentation-Dtn0IIRn.mjs";
6
+ import { $ as RESERVED_QUERY_PARAMS, B as DEFAULT_SORT, D as ResourceSeams, E as AdapterLike, F as CRUD_OPERATIONS, G as HOOK_PHASES, H as DEFAULT_UPDATE_METHOD, I as CrudOperation, J as MAX_FILTER_DEPTH, K as HookOperation, L as DEFAULT_ID_FIELD, O as SeamedResourceConfig, P as defineAggregation, Q as MutationOperation, R as DEFAULT_LIMIT, T as defineResourceVariants, V as DEFAULT_TENANT_FIELD, W as HOOK_OPERATIONS, X as MAX_SEARCH_LENGTH, Y as MAX_REGEX_LENGTH, Z as MUTATION_OPERATIONS, b as getControllerScope, et as SYSTEM_FIELDS, j as defineAction, k as mergeResourceConfig, m as nativePolicyFilter, p as NativePolicyFilter, q as HookPhase, z as DEFAULT_MAX_LIMIT } from "./index-BTxzJ_MN.mjs";
7
+ import { C as requireScopeContext, G as createDynamicPermissionMatrix, H as DynamicPermissionMatrix, J as PublicPolicy, K as createOrgPermissions, Q as anyOf, S as requireOrgRole, T as requireTeamMembership, U as DynamicPermissionMatrixConfig, Y as allOf, Z as allowPublic, _ as publicRead, at as requireRoles, b as requireOrgInScope, d as adminOnly, et as denyAll, f as authenticated, g as presets_d_exports, m as ownerWithAdminBypass, nt as requireAuth, p as fullPublic, q as AllowPublicOptions, rt as requireOwnership, st as when, v as publicReadAdminWrite, w as requireServiceScope, x as requireOrgMembership, y as readOnly } from "./index-B5i9-vuP.mjs";
8
+ import { a as NotFoundError, d as ValidationError, f as createDomainError, i as ForbiddenError, t as ArcError, u as UnauthorizedError } from "./errors-DTo0me1o.mjs";
10
9
  export declare const version: string;
11
- //#endregion
12
10
  export { type AdapterLike, type AggMeasureInput, type AggMeasureShorthand, type AggregationCacheConfig, type AggregationConfig, type AggregationDateRangeRequirement, type AggregationIndexHint, type AggregationMaterializedContext, type AggregationMaterializedResult, type AggregationRateLimit, type AggregationsMap, type AllowPublicOptions, type AnyRecord, type ArcCreateResult, type ArcDeleteResult, ArcError, type ArcGetResult, type ArcInternalMetadata, type ArcListResult, type ArcRequest, type ArcUpdateResult, type AuthPluginOptions, type AuthorizationDecision, BaseController, type BaseControllerOptions, BaseCrudController, type BulkExt, BulkMixin, CRUD_OPERATIONS, type ControllerConfigurableOptions, type ControllerConstructionOptions, type ControllerLike, type CrudController, type CrudOperation, type CrudRouteKey, type CrudRouterOptions, type CrudSchemas, DEFAULT_ID_FIELD, DEFAULT_LIMIT, DEFAULT_MAX_LIMIT, DEFAULT_SORT, DEFAULT_TENANT_FIELD, DEFAULT_UPDATE_METHOD, type DataPolicy, type DynamicPermissionMatrix, type DynamicPermissionMatrixConfig, type EventDefinition, type FastifyRequestExtras, type FastifyWithAuth, type FastifyWithDecorators, type FieldPermission, type FieldPermissionMap, type FieldRule, ForbiddenError, type GracefulShutdownOptions, HOOK_OPERATIONS, HOOK_PHASES, type HealthCheck, type HealthOptions, type HookOperation, type HookPhase, type IController, type IControllerResponse, type IRequestContext, type InferAdapterDoc, type InferDocType, type InferResourceDoc, type IntrospectionData, type IntrospectionPluginOptions, type JWTPayload, type ListResult, MAX_FILTER_DEPTH, MAX_REGEX_LENGTH, MAX_SEARCH_LENGTH, MUTATION_OPERATIONS, type MiddlewareConfig, type MutationOperation, type MutationWriteContext, type NativePolicyFilter, NotFoundError, type OwnershipCheck, type PaginationResult, type PermissionCheck, type PermissionContext, type PresetFunction, type PresetResult, type PublicPolicy, type QueryParserInterface, RESERVED_QUERY_PARAMS, type RateLimitConfig, type RawRouteHandler, type RegistryEntry, type RegistryStats, type RequestContext, type RequestIdOptions, type RequestWithExtras, type ResourceConfig, ResourceDefinition, type ResourceMetadata, type ResourceSeams, type ResourceWrites, type RouteHandler, type RouteSchemaOptions, SYSTEM_FIELDS, type SeamedResourceConfig, type ServiceContext, type SlugExt, SlugMixin, type SoftDeleteExt, SoftDeleteMixin, type TreeExt, TreeMixin, UnauthorizedError, type UserBase, type UserOrganization, ValidationError, type WriteContext, type WriteVerbKey, adminOnly, allOf, allowPublic, anyOf, applyFieldReadPermissions, applyFieldWritePermissions, authenticated, createDomainError, createDynamicPermissionMatrix, createOrgPermissions, defineAction, defineAggregation, defineResource, defineResourceVariants, denyAll, fields, fullPublic, getControllerScope, mergeResourceConfig, nativePolicyFilter, ownerWithAdminBypass, presets_d_exports as permissions, publicRead, publicReadAdminWrite, readOnly, requireAuth, requireOrgInScope, requireOrgMembership, requireOrgRole, requireOwnership, requireRoles, requireScopeContext, requireServiceScope, requireTeamMembership, when };
package/dist/index.mjs CHANGED
@@ -1,14 +1,13 @@
1
- /*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
2
- import { a as DEFAULT_SORT, d as MAX_FILTER_DEPTH, f as MAX_REGEX_LENGTH, g as SYSTEM_FIELDS, h as RESERVED_QUERY_PARAMS, i as DEFAULT_MAX_LIMIT, l as HOOK_OPERATIONS, m as MUTATION_OPERATIONS, n as DEFAULT_ID_FIELD, o as DEFAULT_TENANT_FIELD, p as MAX_SEARCH_LENGTH, r as DEFAULT_LIMIT, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS, u as HOOK_PHASES } from "./constants-D_aiew34.mjs";
3
- import { d as createDomainError, i as NotFoundError, l as UnauthorizedError, r as ForbiddenError, t as ArcError, u as ValidationError } from "./errors-grZkIA8N.mjs";
4
- import { S as nativePolicyFilter, c as BaseController, d as SlugMixin, f as BulkMixin, l as TreeMixin, p as BaseCrudController, u as SoftDeleteMixin } from "./plugin-DXTjVg_Q.mjs";
5
- import { t as defineAggregation } from "./defineAggregation-BLza7Ca4.mjs";
6
- import { i as fields, n as applyFieldWritePermissions, t as applyFieldReadPermissions } from "./fields-BRX0Krcj.mjs";
7
- import { S as getControllerScope } from "./actionPermissions-DRVk6m7x.mjs";
8
- import { a as defineResourceVariants, o as mergeResourceConfig, s as defineAction } from "./core-QIZ2560Y.mjs";
9
- import { a as ResourceDefinition, t as defineResource } from "./defineResource-CEo0gDCb.mjs";
10
- import { B as requireAuth, C as createOrgPermissions, D as requireScopeContext, E as requireOrgRole, F as allowPublic, G as when, I as anyOf, N as allOf, O as requireServiceScope, R as denyAll, S as createDynamicPermissionMatrix, T as requireOrgMembership, U as requireRoles, V as requireOwnership, a as adminOnly, c as ownerWithAdminBypass, d as publicRead, f as publicReadAdminWrite, k as requireTeamMembership, o as authenticated, p as readOnly, s as fullPublic, u as presets_exports, w as requireOrgInScope } from "./permissions-B14c3OMp.mjs";
11
- //#region src/index.ts
12
- const version = "2.45.2";
13
- //#endregion
1
+ /*! @classytic/arc v2.46.0 | MIT | https://classytic.com */
2
+ import { a as DEFAULT_SORT, d as MAX_FILTER_DEPTH, f as MAX_REGEX_LENGTH, g as SYSTEM_FIELDS, h as RESERVED_QUERY_PARAMS, i as DEFAULT_MAX_LIMIT, l as HOOK_OPERATIONS, m as MUTATION_OPERATIONS, n as DEFAULT_ID_FIELD, o as DEFAULT_TENANT_FIELD, p as MAX_SEARCH_LENGTH, r as DEFAULT_LIMIT, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS, u as HOOK_PHASES } from "./constants-CHZMUwBW.mjs";
3
+ import { d as createDomainError, i as NotFoundError, l as UnauthorizedError, r as ForbiddenError, t as ArcError, u as ValidationError } from "./errors-BY8vzlP4.mjs";
4
+ import { E as nativePolicyFilter, _ as BaseCrudController, f as BaseController, g as BulkMixin, h as SlugMixin, m as SoftDeleteMixin, p as TreeMixin } from "./plugin-DTWt_8C3.mjs";
5
+ import { t as defineAggregation } from "./defineAggregation-bmKQ4NmC.mjs";
6
+ import { i as fields, n as applyFieldWritePermissions, t as applyFieldReadPermissions } from "./fields-LnbCcvsw.mjs";
7
+ import { S as getControllerScope } from "./actionPermissions-De0AJ7hm.mjs";
8
+ import { a as defineResourceVariants, o as mergeResourceConfig, s as defineAction } from "./core-D9rS2BxO.mjs";
9
+ import { a as ResourceDefinition, t as defineResource } from "./defineResource-CGmdmGwh.mjs";
10
+ import { B as requireAuth, C as createOrgPermissions, D as requireScopeContext, E as requireOrgRole, F as allowPublic, G as when, I as anyOf, N as allOf, O as requireServiceScope, R as denyAll, S as createDynamicPermissionMatrix, T as requireOrgMembership, U as requireRoles, V as requireOwnership, a as adminOnly, c as ownerWithAdminBypass, d as publicRead, f as publicReadAdminWrite, k as requireTeamMembership, o as authenticated, p as readOnly, s as fullPublic, u as presets_exports, w as requireOrgInScope } from "./permissions-A1oKtpiC.mjs";
11
+ // src/index.ts
12
+ const version = "2.46.0";
14
13
  export { ArcError, BaseController, BaseCrudController, BulkMixin, CRUD_OPERATIONS, DEFAULT_ID_FIELD, DEFAULT_LIMIT, DEFAULT_MAX_LIMIT, DEFAULT_SORT, DEFAULT_TENANT_FIELD, DEFAULT_UPDATE_METHOD, ForbiddenError, HOOK_OPERATIONS, HOOK_PHASES, MAX_FILTER_DEPTH, MAX_REGEX_LENGTH, MAX_SEARCH_LENGTH, MUTATION_OPERATIONS, NotFoundError, RESERVED_QUERY_PARAMS, ResourceDefinition, SYSTEM_FIELDS, SlugMixin, SoftDeleteMixin, TreeMixin, UnauthorizedError, ValidationError, adminOnly, allOf, allowPublic, anyOf, applyFieldReadPermissions, applyFieldWritePermissions, authenticated, createDomainError, createDynamicPermissionMatrix, createOrgPermissions, defineAction, defineAggregation, defineResource, defineResourceVariants, denyAll, fields, fullPublic, getControllerScope, mergeResourceConfig, nativePolicyFilter, ownerWithAdminBypass, presets_exports as permissions, publicRead, publicReadAdminWrite, readOnly, requireAuth, requireOrgInScope, requireOrgMembership, requireOrgRole, requireOwnership, requireRoles, requireScopeContext, requireServiceScope, requireTeamMembership, version, when };