permdock 0.8.0 → 0.9.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 (258) hide show
  1. package/dist/a2a/index.d.ts +4 -4
  2. package/dist/a2a/index.js +3 -3
  3. package/dist/{action-result-CL-QCITA.d.ts → action-result-BcudBQOF.d.ts} +1 -1
  4. package/dist/{adoption-scan-BLs67P1l.js → adoption-scan-Ch07MdxN.js} +1 -1
  5. package/dist/agent/index.d.ts +2 -2
  6. package/dist/agent/index.js +1 -1
  7. package/dist/ai-sdk/index.d.ts +3 -3
  8. package/dist/ai-sdk/index.js +3 -3
  9. package/dist/{approval-prompt-PYagyQUj.d.ts → approval-prompt-3BqWczTt.d.ts} +1 -1
  10. package/dist/approvals/index.d.ts +3 -3
  11. package/dist/{arazzo-3RhGfkAK.js → arazzo-BpS7LnV0.js} +1 -1
  12. package/dist/{arazzo-B5-ulWif.js → arazzo-CmQaGPkM.js} +2 -2
  13. package/dist/astro/index.d.ts +4 -4
  14. package/dist/astro/index.js +1 -1
  15. package/dist/{audience-BAkBDMqn.js → audience-DTjR8xet.js} +1 -1
  16. package/dist/authzen/index.d.ts +5 -5
  17. package/dist/authzen/index.js +1 -1
  18. package/dist/{automation-DqEoWHBc.d.ts → automation-C6Jg75xq.d.ts} +1 -1
  19. package/dist/better-auth/index.d.ts +1 -1
  20. package/dist/better-supabase/index.d.ts +6 -6
  21. package/dist/better-supabase/index.js +3 -3
  22. package/dist/{bind-D_sZSVA3.js → bind-BNQA9JK9.js} +7 -3
  23. package/dist/{bind-Cp2hBHzP.d.ts → bind-YYjvfpB9.d.ts} +12 -7
  24. package/dist/{build-instance-CNWaYJyr.js → build-instance-BWXqwQYU.js} +1 -1
  25. package/dist/{capability-ChuiONQU.d.ts → capability-Di9tiUvi.d.ts} +1 -1
  26. package/dist/{casbin-cbSbhT_k.js → casbin-B7_yS-oo.js} +1 -1
  27. package/dist/{casbin-H0rKxBx2.js → casbin-bHyIxTNQ.js} +1 -1
  28. package/dist/catalog/index.d.ts +4 -4
  29. package/dist/catalog/index.js +2 -2
  30. package/dist/{catalog-BFpz2EmT.js → catalog-CGlSwU6j.js} +2 -2
  31. package/dist/catalog-D3oS2GH3.js +1 -0
  32. package/dist/{catalog-DCspHDc8.js → catalog-amPDr0JQ.js} +1 -1
  33. package/dist/{catalog-operations-Dadrl7Z-.js → catalog-operations-DeHTrJSV.js} +1 -1
  34. package/dist/chat/index.d.ts +1 -1
  35. package/dist/chat/index.js +1 -1
  36. package/dist/chat-sdk/index.d.ts +3 -3
  37. package/dist/claude-agent/index.d.ts +3 -3
  38. package/dist/claude-agent/index.js +2 -2
  39. package/dist/clerk/index.d.ts +2 -2
  40. package/dist/cli/bin.js +1 -1
  41. package/dist/cli/index.d.ts +4 -4
  42. package/dist/cli/index.js +2 -2
  43. package/dist/cloud/index.d.ts +8 -8
  44. package/dist/{cloud-BFlGMaak.js → cloud-3kWfjnYy.js} +2 -2
  45. package/dist/{codemod-DWSN2erG.js → codemod-Bv5i-Mzo.js} +1 -1
  46. package/dist/{codemod-DLQ9Zpo4.js → codemod-D9Aiii1r.js} +2 -2
  47. package/dist/{collect-Bzv3le0A.js → collect-B80GYEot.js} +2 -2
  48. package/dist/collect-D-eroIfV.js +1 -0
  49. package/dist/{collect-B7ZFAJU3.js → collect-WCl8cJQV.js} +1 -1
  50. package/dist/compile/index.d.ts +1 -1
  51. package/dist/{compile-BFzysW3o.d.ts → compile-BEklRUYo.d.ts} +2 -2
  52. package/dist/{completion-saoYiRFO.js → completion-_bc0OUQ-.js} +1 -1
  53. package/dist/{config-DBeXXmBF.js → config-D5XrLWpk.js} +1 -1
  54. package/dist/{config-report-BipSWA6V.js → config-report-BmWIskD7.js} +2 -2
  55. package/dist/convex/index.d.ts +4 -4
  56. package/dist/convex/index.js +2 -2
  57. package/dist/{core-hWIARPDz.d.ts → core-CFepFiDP.d.ts} +2 -2
  58. package/dist/{core-H-mbhpZc.js → core-DzVINFbU.js} +3 -3
  59. package/dist/{create-Cq4Uox0f.js → create-6EwRQlig.js} +3 -3
  60. package/dist/{create-_noSrY1T.js → create-BLPKnJKa.js} +23 -7
  61. package/dist/{create-BSNrVuxh.d.ts → create-BPUopdfL.d.ts} +7 -7
  62. package/dist/{create-CM1FciYG.d.ts → create-BamXmeob.d.ts} +6 -6
  63. package/dist/{create-BVq1lNQE.d.ts → create-DBvUsgzK.d.ts} +4 -4
  64. package/dist/delivery/index.d.ts +4 -4
  65. package/dist/delivery/index.js +1 -1
  66. package/dist/{denied-text-CHNlVInN.d.ts → denied-text-DHldhVUv.d.ts} +1 -1
  67. package/dist/{describe-ByS9LgHK.d.ts → describe-BbFPBSms.d.ts} +1 -1
  68. package/dist/{diff-CN8IYhC_.js → diff-BwR1JdP2.js} +1 -1
  69. package/dist/{diff-iZWV65nC.js → diff-CQegtBAo.js} +2 -2
  70. package/dist/{doctor-CHD1M9R5.js → doctor-ClRVAtXQ.js} +13 -13
  71. package/dist/{doctor-D3wo-yuz.js → doctor-LPMYjSqO.js} +2 -2
  72. package/dist/drizzle/index.d.ts +3 -3
  73. package/dist/elysia/index.d.ts +4 -4
  74. package/dist/elysia/index.js +1 -1
  75. package/dist/{errors-zi_4T-rx.d.ts → errors-BIM4MFsJ.d.ts} +1 -1
  76. package/dist/{evaluate-Dd8Ta0Ie.js → evaluate-BAmf_AQd.js} +13 -4
  77. package/dist/{evaluations-z8dQFDaN.d.ts → evaluations-DOWuBpWv.d.ts} +3 -3
  78. package/dist/eve/index.d.ts +4 -4
  79. package/dist/eve/index.js +2 -2
  80. package/dist/express/index.d.ts +4 -4
  81. package/dist/express/index.js +1 -1
  82. package/dist/fastify/index.d.ts +4 -4
  83. package/dist/fastify/index.js +1 -1
  84. package/dist/{fetch-adapter-C1DCvpqV.d.ts → fetch-adapter-BIbBAtPZ.d.ts} +2 -2
  85. package/dist/{fetch-adapter-JL43jD3E.js → fetch-adapter-dPTgJVHd.js} +1 -1
  86. package/dist/{gen-B5kvbAoZ.js → gen-BFfzZSLH.js} +1 -1
  87. package/dist/{gen-DWCYcMQM.js → gen-BtfFWGbz.js} +2 -2
  88. package/dist/h3/index.d.ts +4 -4
  89. package/dist/h3/index.js +2 -2
  90. package/dist/hono/index.d.ts +4 -4
  91. package/dist/hono/index.js +1 -1
  92. package/dist/{hosted-Cmtxogd0.d.ts → hosted-DVxlLZMe.d.ts} +1 -1
  93. package/dist/{import-_YqhhwvX.js → import-ACkOrv6g.js} +1 -1
  94. package/dist/{index-BhxEUY9J.d.ts → index-BinlXeU-.d.ts} +2 -2
  95. package/dist/{index-B8s204GL.d.ts → index-CV-7DWeD.d.ts} +4 -4
  96. package/dist/{index-_9UiQIkt.d.ts → index-DJwEgYzA.d.ts} +4 -4
  97. package/dist/{index-BT5-1VsX.d.ts → index-Dj2qF9VC.d.ts} +1 -1
  98. package/dist/{index-BW_0MZOS.d.ts → index-vYjMrXyK.d.ts} +62 -9
  99. package/dist/{index-Bv5iXPqU.d.ts → index-ymept53A.d.ts} +4 -4
  100. package/dist/index.d.ts +15 -15
  101. package/dist/index.js +6 -6
  102. package/dist/{init-cE3A8aXq.js → init-BjuFDYT1.js} +1 -1
  103. package/dist/{init-Dz_PsHdv.js → init-txYTuW9u.js} +3 -3
  104. package/dist/{instance-options-B0KXqTrJ.d.ts → instance-options-CoHn-0e8.d.ts} +1 -1
  105. package/dist/{instance-snapshot--JWiTrvO.js → instance-snapshot-DuWf1cT3.js} +13 -8
  106. package/dist/jwt/index.d.ts +4 -4
  107. package/dist/jwt/index.js +1 -1
  108. package/dist/{kernel-C-fYydV2.js → kernel-qv4cr9w8.js} +4 -4
  109. package/dist/kysely/index.d.ts +3 -3
  110. package/dist/{login-D-8tMqzo.js → login-CfImTJGb.js} +3 -3
  111. package/dist/{login-DplQ0s84.js → login-CgfCTO3F.js} +1 -1
  112. package/dist/{manifest-Cgiq5oqc.js → manifest-B2QPh19C.js} +35 -35
  113. package/dist/{map-claims-BNWCJtmP.js → map-claims-C-nv08_n.js} +2 -1
  114. package/dist/mcp/index.d.ts +8 -8
  115. package/dist/mcp/index.js +4 -4
  116. package/dist/nest/index.d.ts +4 -4
  117. package/dist/nest/index.js +1 -1
  118. package/dist/next/index.d.ts +16 -9
  119. package/dist/next/index.js +14 -7
  120. package/dist/next/plugin.d.ts +1 -1
  121. package/dist/next/plugin.js +1 -1
  122. package/dist/node/index.d.ts +4 -4
  123. package/dist/node/index.js +1 -1
  124. package/dist/openai/index.d.ts +4 -4
  125. package/dist/openai/index.js +3 -3
  126. package/dist/openapi/index.d.ts +2 -2
  127. package/dist/{openapi-VeHHU2l9.js → openapi-BGeuunWC.js} +1 -1
  128. package/dist/{openapi-CBZUhA3l.js → openapi-BIpw3Mb7.js} +2 -2
  129. package/dist/orpc/index.d.ts +5 -5
  130. package/dist/orpc/index.js +2 -2
  131. package/dist/otel/index.d.ts +3 -3
  132. package/dist/{output-tkju6U7R.js → output-DV5dwOTs.js} +1 -1
  133. package/dist/{ownership-B4L59T9u.js → ownership-DA5YdYTm.js} +9 -4
  134. package/dist/{parse-local-manifest-BQhTlLQS.d.ts → parse-local-manifest-CCmbhnxP.d.ts} +1 -1
  135. package/dist/pdp/index.d.ts +3 -3
  136. package/dist/pdp/index.js +1 -1
  137. package/dist/{permdock-L-_I_3zP.js → permdock-BvjivVb9.js} +143 -107
  138. package/dist/{permdock-B6Sf4T_S.d.ts → permdock-CprAPN3w.d.ts} +9 -2
  139. package/dist/{permissions-mDcTWoBs.js → permissions-CYcHj_w7.js} +1 -1
  140. package/dist/{policy-Ba4bDhaj.d.ts → policy-BycVKnXv.d.ts} +1 -1
  141. package/dist/{policy-from-catalog-CJgOm6aq.js → policy-from-catalog-CU3An8uP.js} +1 -1
  142. package/dist/{policy-types-CCiDRZBH.d.ts → policy-types-DGIO_gxq.d.ts} +54 -18
  143. package/dist/{postgrest-D4nuPXIQ.js → postgrest-5Dr3W64L.js} +34 -55
  144. package/dist/{postgrest-DicQyqm-.d.ts → postgrest-D5nUGm-c.d.ts} +4 -3
  145. package/dist/powersync-B701tvhE.js +1 -0
  146. package/dist/{powersync-DXqGuq9A.js → powersync-Bg8u-JcR.js} +2 -2
  147. package/dist/{powersync-DHNQX06W.js → powersync-CJrT1DSc.js} +5 -5
  148. package/dist/prisma/index.d.ts +2 -2
  149. package/dist/{protected-action-BE7N_Luo.d.ts → protected-action-D8x73IGm.d.ts} +6 -6
  150. package/dist/{provider-DXfq5c2d.d.ts → provider-DfLeek9O.d.ts} +1 -1
  151. package/dist/{pull-CwpGaQSi.js → pull-2nJr0qg_.js} +1 -1
  152. package/dist/pull-C3EEGzSw.js +1 -0
  153. package/dist/{push-DgssgzkK.js → push-Bn-lMEmI.js} +2 -2
  154. package/dist/{pushed-policy-ITwYKvvH.js → pushed-policy-CDuOL2de.js} +1 -1
  155. package/dist/{pushed-policy-D1Eoi6NM.d.ts → pushed-policy-CryQheKq.d.ts} +1 -1
  156. package/dist/react/index.d.ts +7 -7
  157. package/dist/react/provider-client.d.ts +1 -1
  158. package/dist/react-native/index.d.ts +9 -9
  159. package/dist/{replay-DNftIb_R.d.ts → replay-Bs9Df2fQ.d.ts} +1 -1
  160. package/dist/{request-context-C25ilqiJ.js → request-context-Duzdf0cd.js} +1 -1
  161. package/dist/resend/index.d.ts +4 -4
  162. package/dist/{resolve-names-CF7xXLSG.js → resolve-names-ConCSj1y.js} +1 -1
  163. package/dist/{rls-Ca8Jz9b5.js → rls-Ba9wN0SP.js} +1 -1
  164. package/dist/{rls-CNEH2_BG.js → rls-Cx0dtsB7.js} +20 -13
  165. package/dist/{rpc-fNqAIqQk.js → rpc-vHIwyXCp.js} +1 -1
  166. package/dist/run-Ck22anC2.js +1 -0
  167. package/dist/{run-Bz26OTfO.js → run-PbRlXTfh.js} +2 -2
  168. package/dist/{run-ticket-DbWI9f99.d.ts → run-ticket-B2o2Kxz8.d.ts} +2 -2
  169. package/dist/{saas-iWnUdwCt.js → saas-DK4V-3Is.js} +2 -2
  170. package/dist/{scan-DCj1KQfn.js → scan-CRTj6fke.js} +1 -1
  171. package/dist/{schema-Dst9I9Gs.js → schema-BTsE1WRT.js} +1 -1
  172. package/dist/scim/index.d.ts +1 -1
  173. package/dist/server/index.d.ts +10 -10
  174. package/dist/server/index.js +1 -1
  175. package/dist/{server-types-CIlpSA2G.d.ts → server-types-CyRN0-Cd.d.ts} +15 -8
  176. package/dist/{sink-Dvi7YZG_.d.ts → sink-B5zoUW_O.d.ts} +2 -2
  177. package/dist/{skills-OuoMR49L.js → skills-C9uKfSF5.js} +1 -1
  178. package/dist/{skills-Bjj7BNEQ.js → skills-CQQcuGBi.js} +1 -1
  179. package/dist/{snapshot-cache-BAXZ0KOp.d.ts → snapshot-cache-BjAWkchD.d.ts} +1 -1
  180. package/dist/solid/index.d.ts +6 -6
  181. package/dist/solid-start/index.d.ts +4 -4
  182. package/dist/solid-start/index.js +2 -2
  183. package/dist/{sources-B1Os_YUu.d.ts → sources-CWG32C0G.d.ts} +2 -2
  184. package/dist/{src-DZ0l9UAg.js → src-C_pi2Rnh.js} +106 -5
  185. package/dist/ssf/index.d.ts +3 -3
  186. package/dist/{standard-webhooks-C-qX4mJW.d.ts → standard-webhooks-DOYEuOLx.d.ts} +2 -2
  187. package/dist/{stores-C0Kta5Ft.d.ts → stores-DZJvxFIZ.d.ts} +6 -6
  188. package/dist/{stream-ltuLdtTG.d.ts → stream-9y9qw51m.d.ts} +1 -1
  189. package/dist/supabase/index.d.ts +5 -5
  190. package/dist/supabase/index.js +2 -2
  191. package/dist/supabase/middleware.d.ts +5 -5
  192. package/dist/supabase/middleware.js +4 -4
  193. package/dist/{supabase-BL1qJzzY.js → supabase-DnMMg5Fn.js} +1 -1
  194. package/dist/{supabase-D39cuGPt.js → supabase-SBs3MYUE.js} +2 -2
  195. package/dist/supabase-hook-C0FyEACZ.js +1 -0
  196. package/dist/{supabase-hook-B-yXnzUl.js → supabase-hook-CrgU06WH.js} +5 -5
  197. package/dist/{supautils-BU-pAEpf.js → supautils-ByezN3b8.js} +244 -197
  198. package/dist/svelte/index.d.ts +6 -6
  199. package/dist/svelte/runtime.d.ts +3 -3
  200. package/dist/svelte/source.d.ts +6 -6
  201. package/dist/sveltekit/index.d.ts +4 -4
  202. package/dist/sveltekit/index.js +1 -1
  203. package/dist/{tables-DeMNEy6V.js → tables-BqrxBCir.js} +1 -1
  204. package/dist/tanstack-start/index.d.ts +4 -4
  205. package/dist/tanstack-start/index.js +1 -1
  206. package/dist/terminal/index.d.ts +5 -5
  207. package/dist/terminal/index.js +2 -2
  208. package/dist/testing/core.d.ts +1 -1
  209. package/dist/testing/core.js +1 -1
  210. package/dist/testing/index.d.ts +21 -20
  211. package/dist/testing/index.js +61 -8
  212. package/dist/testing/saas/index.d.ts +3 -3
  213. package/dist/testing/saas/index.js +2 -2
  214. package/dist/testing/saas/permissions.js +1 -1
  215. package/dist/trpc/index.d.ts +5 -5
  216. package/dist/trpc/index.js +2 -2
  217. package/dist/{type-helpers-BIPIDa6a.d.ts → type-helpers-c7Xo_2Cu.d.ts} +1 -1
  218. package/dist/{types-B2mlGuhW.d.ts → types-B2efzoSX.d.ts} +1 -1
  219. package/dist/{types-DHKPcqzr.d.ts → types-B6ExllNo.d.ts} +2 -2
  220. package/dist/{types-AMJ5qoU_.d.ts → types-BB-zWDcR.d.ts} +4 -4
  221. package/dist/{types-ah9NlU6j.d.ts → types-BMVDHvI0.d.ts} +1 -1
  222. package/dist/{types-djVzLlIV.d.ts → types-CEinc15V.d.ts} +4 -4
  223. package/dist/{types-yUuPR5Hy.d.ts → types-CN0LsqbK.d.ts} +3 -3
  224. package/dist/{types-HzqOtvsJ.d.ts → types-CWBsAwqn.d.ts} +4 -4
  225. package/dist/{types-DC1Loeh3.d.ts → types-CzOeVvcC.d.ts} +5 -3
  226. package/dist/{types-B_tiYvk8.d.ts → types-DLvhVm1r.d.ts} +1 -1
  227. package/dist/{types-B4uqKDnp.d.ts → types-DlelvQk4.d.ts} +2 -2
  228. package/dist/{types-DjuMBNF9.d.ts → types-DsHGPtkR.d.ts} +2 -2
  229. package/dist/{types-BJk0BKRX.d.ts → types-rCRV4Ge-.d.ts} +4 -4
  230. package/dist/{types-B_d_g7T3.d.ts → types-tQB2CEnY.d.ts} +4 -4
  231. package/dist/unplugin/index.d.ts +1 -1
  232. package/dist/unplugin/index.js +1 -1
  233. package/dist/usage-0hjZPIRX.js +1 -0
  234. package/dist/{usage-CxEzS4ey.js → usage-B9EtHWLa.js} +3 -3
  235. package/dist/{usage-ab0PdusX.js → usage-CBzgwfIs.js} +1 -1
  236. package/dist/{validation-error-YGg2mXyH.d.ts → validation-error-uvp-kyfO.d.ts} +1 -1
  237. package/dist/{verify-DZeqoWu5.js → verify-DlUcTDBz.js} +6 -6
  238. package/dist/vue/index.d.ts +6 -6
  239. package/dist/{waiter-Bu9zAlE0.d.ts → waiter-CqUKX6CY.d.ts} +2 -2
  240. package/dist/{watch-Cx_WciLE.js → watch-BFDKqmUa.js} +1 -1
  241. package/dist/watch-ClLuO2TL.js +1 -0
  242. package/dist/webmcp/index.d.ts +1 -1
  243. package/dist/{who-can-rI7dCR9Q.js → who-can-BoDJm0Nc.js} +1 -1
  244. package/dist/workflow/index.d.ts +3 -3
  245. package/dist/workflow/index.js +1 -1
  246. package/dist/workflow-sdk/index.d.ts +4 -4
  247. package/dist/{wrap-DlJE3gS_.d.ts → wrap-DxXB54Wu.d.ts} +2 -2
  248. package/package.json +2 -2
  249. package/skills/permdock-data/references/queries-and-rls.md +1 -1
  250. package/skills/permdock-wire/references/adapters.md +2 -1
  251. package/dist/catalog-mRQQQhNK.js +0 -1
  252. package/dist/collect-B5BL3klN.js +0 -1
  253. package/dist/powersync-Djf-zCpB.js +0 -1
  254. package/dist/pull-B65ndFNZ.js +0 -1
  255. package/dist/run-D-JE8QWb.js +0 -1
  256. package/dist/supabase-hook-H-MtE9Wd.js +0 -1
  257. package/dist/usage-CYeXek0p.js +0 -1
  258. package/dist/watch-DB42U1ib.js +0 -1
@@ -8,25 +8,25 @@ import { o as sqlFiles } from "./files-BSjrtIHw.js";
8
8
  import { c as requirePolicy } from "./load-DjSU5KXO.js";
9
9
  import { i as qualifySqlTable, r as escapeSqlIdent } from "./sql-0WjxIp9g.js";
10
10
  import "./sources-CMAM-2A3.js";
11
- import { t as policyFromCatalog } from "./policy-from-catalog-CJgOm6aq.js";
11
+ import { t as policyFromCatalog } from "./policy-from-catalog-CU3An8uP.js";
12
12
  import { t as beforeFirst } from "./text-BMFRfBqc.js";
13
13
  import { i as INDEXES_MARKER, n as GRANTS_MARKER, o as SEEDS_MARKER, t as BACKFILL_MARKER } from "./markers-BeHZ4x9Q.js";
14
- import { a as nonEmptyOr } from "./output-tkju6U7R.js";
14
+ import { a as nonEmptyOr } from "./output-DV5dwOTs.js";
15
15
  import { i as requirePeer, n as packageManagerOf, t as addLine } from "./peer-Q0fuZ6hx.js";
16
16
  import { t as POLICY_NOT_PUBLISHED } from "./problem-types-DSsRfONQ.js";
17
- import { t as fetchProjectPolicy } from "./pull-CwpGaQSi.js";
17
+ import { t as fetchProjectPolicy } from "./pull-2nJr0qg_.js";
18
18
  import { n as MIGRATION_DIRS } from "./constants-DcJABbLW.js";
19
19
  import { a as isSeedsDirectory, c as parseSplit, d as seedsMigration, f as writeOutputFiles, l as partPath, n as dataMigrationFile, r as driftOf, u as pgDeltaPath } from "./output-files-BIQ_9pIs.js";
20
- import { d as schemasRefusal, f as declarativeSql, l as isSupabaseSchemas, o as supabaseHookSql, s as approvalsSql, t as grantsLabel, u as resolveSchemas, v as parseRbacAuthorize, y as rbacScaffold } from "./supabase-hook-B-yXnzUl.js";
20
+ import { d as schemasRefusal, f as declarativeSql, l as isSupabaseSchemas, o as supabaseHookSql, s as approvalsSql, t as grantsLabel, u as resolveSchemas, v as parseRbacAuthorize, y as rbacScaffold } from "./supabase-hook-CrgU06WH.js";
21
21
  import { A as quoteQualified, D as qualified$1, I as scopeTypeOf, O as quoteIdent$1, _ as subjectClaimJsonSql, c as SESSION_LIVE_HELPER, g as sessionLiveHelperSql, j as quoteTable, k as quoteLiteral, r as HELPERS, t as CUSTOM_ROLES, y as subjectIdSql } from "./shared-Afctg7B0.js";
22
- import { C as accessSql, G as byKey, T as seedSql, Z as graphHelper, ct as memberIdsHelper, ft as permittedIdsHelper, ht as scopeTable, mt as scopeSources, r as tableNames, s as graphSql, w as helpersSql, x as permittedByPermissionHelper, y as permissionHelpersSql } from "./tables-DeMNEy6V.js";
23
- import { c as breakGlassKey, i as assignmentSql, l as collectGrants, n as ownershipSql, s as breakGlassHolder } from "./ownership-B4L59T9u.js";
22
+ import { C as accessSql, G as byKey, T as seedSql, Z as graphHelper, ct as memberIdsHelper, ft as permittedIdsHelper, ht as scopeTable, mt as scopeSources, r as tableNames, s as graphSql, w as helpersSql, x as permittedByPermissionHelper, y as permissionHelpersSql } from "./tables-BqrxBCir.js";
23
+ import { c as breakGlassKey, i as assignmentSql, l as collectGrants, n as ownershipSql, s as breakGlassHolder } from "./ownership-DA5YdYTm.js";
24
24
  import { a as splitUndiffed } from "./deciding-columns-NB4wcyBf.js";
25
25
  import { t as connectPgPool } from "./pg-DQTqRrou.js";
26
- import { n as permissionHoldersSql } from "./resolve-names-CF7xXLSG.js";
26
+ import { n as permissionHoldersSql } from "./resolve-names-ConCSj1y.js";
27
27
  import { a as fieldViewsSql, c as ACTOR_MAY_WRITE, f as readOnlyActorKinds, i as fieldViews, l as actorMayWriteSql, n as columnGrantSql, o as rowBranches, p as readOnlyActorPolicies, r as columnRevokeSql, u as assemblePolicies } from "./fields-D0vUI6dq.js";
28
- import { _ as indexTargets, a as verifyResult, b as readTableIndexFacts, c as callsHelper, g as INDEX_COLUMNS_SQL, h as COLUMNS_SQL, i as verifyIgnores, l as helperCallKeys, m as tableFor, n as runRlsVerify, o as HELPER_TABLES, p as compileGrants, r as rlsFinding, v as indexesSql, y as pruneIndexTargets } from "./verify-DZeqoWu5.js";
29
- import { a as generateOptions, c as buildContext, i as rowHelpersSql, l as DROPPED_LIST, n as inheritTargets, o as isRefusal, r as levelKeys, s as splitsPart, t as supautilsRejections, u as rebuildPlan } from "./supautils-BU-pAEpf.js";
28
+ import { _ as indexTargets, a as verifyResult, b as readTableIndexFacts, c as callsHelper, g as INDEX_COLUMNS_SQL, h as COLUMNS_SQL, i as verifyIgnores, l as helperCallKeys, m as tableFor, n as runRlsVerify, o as HELPER_TABLES, p as compileGrants, r as rlsFinding, v as indexesSql, y as pruneIndexTargets } from "./verify-DlUcTDBz.js";
29
+ import { a as buildContext, c as levelKeys, d as rebuildPlan, i as splitsPart, l as rowHelpersSql, n as generateOptions, o as CANDIDATES, r as isRefusal, s as inheritTargets, t as supautilsRejections, u as DROPPED_LIST } from "./supautils-ByezN3b8.js";
30
30
  import { readFileSync } from "node:fs";
31
31
  import { basename, delimiter, join } from "node:path";
32
32
  import { spawn } from "node:child_process";
@@ -1416,10 +1416,17 @@ function sectionsSql(input, policy, options, built, generated, jsonSchema, warni
1416
1416
  if (typeof rls?.approvals === "object" && rls.approvals.delegations === true && ctx.authorize !== "database") warnings.push("rls.approvals.delegations with --authorize jwt: permdock_is_approver cannot read a delegator's permissions from the caller's token, so in SQL a cover never satisfies a holder() approver; approvalsHandler still does");
1417
1417
  const graphed = graphSql(ctx, graph, tableNames(rls?.tables));
1418
1418
  let rowHelpers = "";
1419
- if (rls?.rowHelpers !== void 0 || inheritTargets(policy).length > 0) try {
1420
- rowHelpers = rowHelpersSql(ctx, policy, [...options.fieldsMode === void 0 ? compiled.branches : rowBranches(compiled.branches), ...compiled.actionBranches], rls?.rowHelpers ?? [], tableNames(rls?.tables), warnings);
1421
- } catch (cause) {
1422
- return { refusal: describeError(cause) };
1419
+ if (rls?.rowHelpers !== void 0 || inheritTargets(policy).length > 0) {
1420
+ const readable = (grants) => [...options.fieldsMode === void 0 ? grants.branches : rowBranches(grants.branches), ...grants.actionBranches];
1421
+ try {
1422
+ const narrowed = compileGrants(policy, {
1423
+ ...ctx,
1424
+ candidates: CANDIDATES
1425
+ }, tableNames(rls?.tables), [], input.skipClosures, true);
1426
+ rowHelpers = rowHelpersSql(ctx, policy, readable(compiled), rls?.rowHelpers ?? [], tableNames(rls?.tables), warnings, readable(narrowed));
1427
+ } catch (cause) {
1428
+ return { refusal: describeError(cause) };
1429
+ }
1423
1430
  }
1424
1431
  const breakGlass = breakGlassSql(ctx, breakGlassEntries(policy, tableNames(rls?.tables)));
1425
1432
  return [
@@ -1,7 +1,7 @@
1
1
  import { t as compact } from "./compact-CAf557ZB.js";
2
2
  import { s as requestFromContext } from "./http-DKLXrFGk.js";
3
3
  import { n as tenantScope } from "./adapter-context-CIQpQxbE.js";
4
- import { t as adapterKernel } from "./bind-D_sZSVA3.js";
4
+ import { t as adapterKernel } from "./bind-BNQA9JK9.js";
5
5
  import { r as guardIterable } from "./stream-CDvF0sJm.js";
6
6
  //#region src/server/rpc.ts
7
7
  /** The tRPC and oRPC error code for a Problem Details status. */
@@ -0,0 +1 @@
1
+ export { t as run } from "./run-PbRlXTfh.js";
@@ -5,9 +5,9 @@ import { a as resolveCwd, i as readConfig } from "./config-BwPBfN0t.js";
5
5
  import { t as beforeFirst } from "./text-BMFRfBqc.js";
6
6
  import { a as suggestion, i as parseLeaf, n as flagSpellings, o as GLOBAL_FLAGS, r as parseFlags } from "./args-0FrVs5EH.js";
7
7
  import { r as progressReporter, t as redact } from "./credentials-CdDxp7jN.js";
8
- import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-Cgiq5oqc.js";
8
+ import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-B2QPh19C.js";
9
9
  import { t as createStyle } from "./style-Ds11Hmk4.js";
10
- import { i as githubAnnotations, n as envelope, o as sarifLog, t as dataOf } from "./output-tkju6U7R.js";
10
+ import { i as githubAnnotations, n as envelope, o as sarifLog, t as dataOf } from "./output-DV5dwOTs.js";
11
11
  import { i as renameMessage, r as flagRename, t as COMMAND_MOVES } from "./renames-CGj7YwcQ.js";
12
12
  import { stripVTControlCharacters } from "node:util";
13
13
  import { existsSync, statSync } from "node:fs";
@@ -1,5 +1,5 @@
1
- import { $n as AuthorizationDetail, Rt as Instant, Zn as Actor, Zt as AuthEvent, dt as TokenVerifier, lr as Subject, lt as TokenFailureCause, rr as Delegation, sr as Principal, ut as TokenSigner } from "./policy-types-CCiDRZBH.js";
2
- import { _ as PrincipalSource } from "./permdock-B6Sf4T_S.js";
1
+ import { Wt as Instant, ar as AuthorizationDetail, hr as Subject, ht as TokenVerifier, lr as Delegation, mt as TokenSigner, pr as Principal, pt as TokenFailureCause, rn as AuthEvent, rr as Actor } from "./policy-types-DGIO_gxq.js";
2
+ import { _ as PrincipalSource } from "./permdock-CprAPN3w.js";
3
3
  //#region src/server/run-ticket.d.ts
4
4
  /**
5
5
  * What started the run: a saved automation, a background job, or a caller's own
@@ -1,12 +1,12 @@
1
1
  import { r as isRecord } from "./compact-CAf557ZB.js";
2
2
  import { i as principal } from "./refs-C8BKxc_e.js";
3
3
  import { a as deny, n as role, r as allow } from "./role-builder-BK2-T6oD.js";
4
- import { A as memoryCustomRoleSource, S as memoryLimitStore, b as memoryRelationSource, x as limits } from "./src-DZ0l9UAg.js";
4
+ import { C as memoryLimitStore, S as limits, j as memoryCustomRoleSource, x as memoryRelationSource } from "./src-C_pi2Rnh.js";
5
5
  import { h as secondsAt } from "./time-nR1JesoH.js";
6
6
  import { l as relation, n as anyone } from "./grantee-Dke-9rd1.js";
7
7
  import { r as definePolicy } from "./policy-CLQ8__GF.js";
8
8
  import { s as quoteSqlLiteral } from "./sql-0WjxIp9g.js";
9
- import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-mDcTWoBs.js";
9
+ import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-CYcHj_w7.js";
10
10
  //#region src/testing/saas/policy.ts
11
11
  function isSubject(user) {
12
12
  return user !== null && "context" in user && "principal" in user;
@@ -16,7 +16,7 @@ const scan = defineLeaf({
16
16
  }
17
17
  },
18
18
  async run(ctx, { flags }) {
19
- const { runAdoptionScan } = await import("./adoption-scan-BLs67P1l.js");
19
+ const { runAdoptionScan } = await import("./adoption-scan-Ch07MdxN.js");
20
20
  return runAdoptionScan({
21
21
  cwd: ctx.cwd,
22
22
  srcPath: flags.src.length > 0 ? flags.src : ctx.config.collect?.srcPath ?? ["src"],
@@ -1,7 +1,7 @@
1
1
  import { r as isRecord } from "./compact-CAf557ZB.js";
2
2
  import { l as packageRoot } from "./version-DMQ0dnN5.js";
3
3
  import { t as DRAFT_PINS } from "./pins-nqarl3oE.js";
4
- import { a as nonEmptyOr } from "./output-tkju6U7R.js";
4
+ import { a as nonEmptyOr } from "./output-DV5dwOTs.js";
5
5
  import { t as require__2020 } from "./2020-CJbO8Bvz.js";
6
6
  import { readFileSync } from "node:fs";
7
7
  import { join } from "node:path";
@@ -1,3 +1,3 @@
1
1
  import { t as SqlQuery } from "../sql-B80DFdpG.js";
2
- import { A as ScimFilter, C as DirectoryUser, D as PATCH_SCHEMA, E as LIST_SCHEMA, F as ScimTokenOptions, I as USER_SCHEMA, L as isDirectoryNotFoundError, M as ScimPage, N as ScimPageResult, O as ROLES_EXTENSION, P as ScimPatchOp, R as isDirectoryUniquenessError, S as DirectoryUniquenessError, T as GROUP_SCHEMA, _ as DirectoryChange, a as normalizePatchOps, b as DirectoryNotFoundError, c as filterSupported, d as resourceTypes, f as schemas, g as APP_DATA_EXTENSION, h as sha256Hex, i as directoryMembershipSource, j as ScimHandlerOptions, k as SCIM_CONTENT_TYPE, l as matchFilter, m as authenticateScim, n as postgresDirectoryStore, o as tenantFromPath, p as serviceProviderConfig, r as memoryDirectoryStore, s as scimHandler, t as PostgresDirectoryStoreOptions, u as parseScimFilter, v as DirectoryGroup, w as ERROR_SCHEMA, x as DirectoryStore, y as DirectoryMembershipSourceOptions } from "../index-BT5-1VsX.js";
2
+ import { A as ScimFilter, C as DirectoryUser, D as PATCH_SCHEMA, E as LIST_SCHEMA, F as ScimTokenOptions, I as USER_SCHEMA, L as isDirectoryNotFoundError, M as ScimPage, N as ScimPageResult, O as ROLES_EXTENSION, P as ScimPatchOp, R as isDirectoryUniquenessError, S as DirectoryUniquenessError, T as GROUP_SCHEMA, _ as DirectoryChange, a as normalizePatchOps, b as DirectoryNotFoundError, c as filterSupported, d as resourceTypes, f as schemas, g as APP_DATA_EXTENSION, h as sha256Hex, i as directoryMembershipSource, j as ScimHandlerOptions, k as SCIM_CONTENT_TYPE, l as matchFilter, m as authenticateScim, n as postgresDirectoryStore, o as tenantFromPath, p as serviceProviderConfig, r as memoryDirectoryStore, s as scimHandler, t as PostgresDirectoryStoreOptions, u as parseScimFilter, v as DirectoryGroup, w as ERROR_SCHEMA, x as DirectoryStore, y as DirectoryMembershipSourceOptions } from "../index-Dj2qF9VC.js";
3
3
  export { APP_DATA_EXTENSION, type DirectoryChange, type DirectoryGroup, type DirectoryMembershipSourceOptions, DirectoryNotFoundError, type DirectoryStore, DirectoryUniquenessError, type DirectoryUser, ERROR_SCHEMA, GROUP_SCHEMA, LIST_SCHEMA, PATCH_SCHEMA, type PostgresDirectoryStoreOptions, ROLES_EXTENSION, SCIM_CONTENT_TYPE, type ScimFilter, type ScimHandlerOptions, type ScimPage, type ScimPageResult, type ScimPatchOp, type ScimTokenOptions, type SqlQuery, USER_SCHEMA, authenticateScim, directoryMembershipSource, filterSupported, isDirectoryNotFoundError, isDirectoryUniquenessError, matchFilter, memoryDirectoryStore, normalizePatchOps, parseScimFilter, postgresDirectoryStore, resourceTypes, schemas, scimHandler, serviceProviderConfig, sha256Hex, tenantFromPath };
@@ -1,13 +1,13 @@
1
- import { n as PermDockValidationError, t as PROBLEM_BASE } from "../validation-error-YGg2mXyH.js";
2
- import { i as PermDockRevokedError, n as PermDockApprovalRequiredError, r as PermDockDeniedError, t as ApprovalHint } from "../errors-zi_4T-rx.js";
1
+ import { n as PermDockValidationError, t as PROBLEM_BASE } from "../validation-error-uvp-kyfO.js";
2
+ import { i as PermDockRevokedError, n as PermDockApprovalRequiredError, r as PermDockDeniedError, t as ApprovalHint } from "../errors-BIM4MFsJ.js";
3
3
  import { t as RequestContext } from "../request-context-C2_1lchh.js";
4
4
  import { i as memoryRevocationFeed, n as RevocationFeed, t as RevocationEvent } from "../revocations-BaUXHM1N.js";
5
- import { C as TenantScope, D as ConnectionOptions, E as ConnectionData, S as TenantOption, T as Connection, _ as WebBotAuthVerifier, a as OperationScopes, b as invalidSignatureResponse, c as ServerPermDock, d as DiscoverViaSignatureAgentOptions, f as InvalidSignatureError, g as WebBotAuthOptions, h as WebBotAuthKeys, i as OpenApiHooks, l as ServerPermDockOptions, m as WebBotAuthKeyLookup, n as DeniedResponseEvent, o as ProtectOptions, p as WebBotAuthJwk, r as Guard, s as ScopeGuard, t as DeniedResponse, u as SnapshotQuery, v as discoverViaSignatureAgent, w as tenantScope, x as webBotAuthVerifier, y as invalidSignatureProblem } from "../server-types-CIlpSA2G.js";
6
- import { i as evaluationsHandler } from "../evaluations-z8dQFDaN.js";
7
- import { C as subjectFromApiKey, E as createPermDock, S as parseFeedKey, T as problemFromError, _ as generateApiKey, a as SupportSessionContext, b as memoryCredentialStore, c as SupportSessionSubjectOptions, d as ApiKeyFailureCause, f as ApiKeyParts, g as apiKeyVerifier, h as StoredCredential, i as wwwAuthenticate, l as signSupportSession, m as MemoryCredentialStore, n as problemResponse, o as SupportSessionFailureCause, p as ApiKeySubjectOptions, r as validationProblem, s as SupportSessionSource, t as problemFromDecision, u as subjectFromSupportSession, v as generateFeedKey, w as ProblemFromErrorOptions, x as parseApiKey, y as hashApiKey } from "../index-B8s204GL.js";
8
- import { l as ReplayStore } from "../types-DjuMBNF9.js";
9
- import { a as WebhookInput, c as WebhookMessage, d as WebhookSigningKey, f as WebhookVerifier, h as webhookVerifier, i as WebhookHeaders, l as WebhookSigner, m as webhookSigner, n as WebhookAlgorithm, o as WebhookJwk, p as WebhookVerifierOptions, r as WebhookFailureCause, s as WebhookJwks, t as VerifiedWebhookMessage, u as WebhookSignerOptions } from "../standard-webhooks-C-qX4mJW.js";
10
- import { t as memoryReplayStore } from "../replay-DNftIb_R.js";
11
- import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotTag, r as SnapshotHeadersOptions, t as CacheLifeForOptions } from "../snapshot-cache-BAXZ0KOp.js";
12
- import { a as RunContext, c as RunTicket, d as RunTicketInput, f as RunTicketOptions, g as subjectFromRunTicket, h as signRunTicket, i as RunBinding, l as RunTicketAutomations, m as parseRunTicket, n as RunActClaim, o as RunKind, p as RunTicketSubjectOptions, r as RunAutomation, s as RunPrincipal, t as RUN_TICKET_CLAIMS, u as RunTicketFailureCause } from "../run-ticket-DbWI9f99.js";
5
+ import { C as TenantScope, D as ConnectionOptions, E as ConnectionData, S as TenantOption, T as Connection, _ as WebBotAuthVerifier, a as OperationScopes, b as invalidSignatureResponse, c as ServerPermDock, d as DiscoverViaSignatureAgentOptions, f as InvalidSignatureError, g as WebBotAuthOptions, h as WebBotAuthKeys, i as OpenApiHooks, l as ServerPermDockOptions, m as WebBotAuthKeyLookup, n as DeniedResponseEvent, o as ProtectOptions, p as WebBotAuthJwk, r as Guard, s as ScopeGuard, t as DeniedResponse, u as SnapshotQuery, v as discoverViaSignatureAgent, w as tenantScope, x as webBotAuthVerifier, y as invalidSignatureProblem } from "../server-types-CyRN0-Cd.js";
6
+ import { i as evaluationsHandler } from "../evaluations-DOWuBpWv.js";
7
+ import { C as subjectFromApiKey, E as createPermDock, S as parseFeedKey, T as problemFromError, _ as generateApiKey, a as SupportSessionContext, b as memoryCredentialStore, c as SupportSessionSubjectOptions, d as ApiKeyFailureCause, f as ApiKeyParts, g as apiKeyVerifier, h as StoredCredential, i as wwwAuthenticate, l as signSupportSession, m as MemoryCredentialStore, n as problemResponse, o as SupportSessionFailureCause, p as ApiKeySubjectOptions, r as validationProblem, s as SupportSessionSource, t as problemFromDecision, u as subjectFromSupportSession, v as generateFeedKey, w as ProblemFromErrorOptions, x as parseApiKey, y as hashApiKey } from "../index-CV-7DWeD.js";
8
+ import { l as ReplayStore } from "../types-DsHGPtkR.js";
9
+ import { a as WebhookInput, c as WebhookMessage, d as WebhookSigningKey, f as WebhookVerifier, h as webhookVerifier, i as WebhookHeaders, l as WebhookSigner, m as webhookSigner, n as WebhookAlgorithm, o as WebhookJwk, p as WebhookVerifierOptions, r as WebhookFailureCause, s as WebhookJwks, t as VerifiedWebhookMessage, u as WebhookSignerOptions } from "../standard-webhooks-DOYEuOLx.js";
10
+ import { t as memoryReplayStore } from "../replay-Bs9Df2fQ.js";
11
+ import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotTag, r as SnapshotHeadersOptions, t as CacheLifeForOptions } from "../snapshot-cache-BjAWkchD.js";
12
+ import { a as RunContext, c as RunTicket, d as RunTicketInput, f as RunTicketOptions, g as subjectFromRunTicket, h as signRunTicket, i as RunBinding, l as RunTicketAutomations, m as parseRunTicket, n as RunActClaim, o as RunKind, p as RunTicketSubjectOptions, r as RunAutomation, s as RunPrincipal, t as RUN_TICKET_CLAIMS, u as RunTicketFailureCause } from "../run-ticket-B2o2Kxz8.js";
13
13
  export { type ApiKeyFailureCause, type ApiKeyParts, type ApiKeySubjectOptions, type ApprovalHint, type CacheLifeForOptions, type Connection, type ConnectionData, type ConnectionOptions, type DeniedResponse, type DeniedResponseEvent, type DiscoverViaSignatureAgentOptions, type Guard, InvalidSignatureError, type MemoryCredentialStore, type OpenApiHooks, type OperationScopes, PROBLEM_BASE, PermDockApprovalRequiredError, PermDockDeniedError, PermDockRevokedError, PermDockValidationError, type ProblemFromErrorOptions, type ProtectOptions, RUN_TICKET_CLAIMS, type ReplayStore, type RequestContext, type RevocationEvent, type RevocationFeed, type RunActClaim, type RunAutomation, type RunBinding, type RunContext, type RunKind, type RunPrincipal, type RunTicket, type RunTicketAutomations, type RunTicketFailureCause, type RunTicketInput, type RunTicketOptions, type RunTicketSubjectOptions, type ScopeGuard, type ServerPermDock, type ServerPermDockOptions, type SnapshotHeaders, type SnapshotHeadersOptions, type SnapshotQuery, type StoredCredential, type SupportSessionContext, type SupportSessionFailureCause, type SupportSessionSource, type SupportSessionSubjectOptions, type TenantOption, type TenantScope, type VerifiedWebhookMessage, type WebBotAuthJwk, type WebBotAuthKeyLookup, type WebBotAuthKeys, type WebBotAuthOptions, type WebBotAuthVerifier, type WebhookAlgorithm, type WebhookFailureCause, type WebhookHeaders, type WebhookInput, type WebhookJwk, type WebhookJwks, type WebhookMessage, type WebhookSigner, type WebhookSignerOptions, type WebhookSigningKey, type WebhookVerifier, type WebhookVerifierOptions, apiKeyVerifier, cacheLifeFor, createPermDock, discoverViaSignatureAgent, evaluationsHandler, generateApiKey, generateFeedKey, hashApiKey, invalidSignatureProblem, invalidSignatureResponse, memoryCredentialStore, memoryReplayStore, memoryRevocationFeed, parseApiKey, parseFeedKey, parseRunTicket, problemFromDecision, problemFromError, problemResponse, signRunTicket, signSupportSession, snapshotHeaders, snapshotTag, subjectFromApiKey, subjectFromRunTicket, subjectFromSupportSession, tenantScope, validationProblem, webBotAuthVerifier, webhookSigner, webhookVerifier, wwwAuthenticate };
@@ -6,7 +6,7 @@ import { t as memoryReplayStore } from "../replay-BU09ad4L.js";
6
6
  import { n as snapshotHeaders, r as snapshotTag, t as cacheLifeFor } from "../snapshot-cache-Bx_4xC_6.js";
7
7
  import { d as invalidSignatureProblem, f as invalidSignatureResponse, l as InvalidSignatureError, o as evaluationsHandler, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-IBceAeKT.js";
8
8
  import { n as tenantScope } from "../adapter-context-CIQpQxbE.js";
9
- import { t as createPermDock } from "../create-_noSrY1T.js";
9
+ import { t as createPermDock } from "../create-BLPKnJKa.js";
10
10
  import { a as generateFeedKey, c as parseApiKey, i as generateApiKey, l as parseFeedKey, n as subjectFromSupportSession, o as hashApiKey, r as apiKeyVerifier, s as memoryCredentialStore, t as signSupportSession, u as subjectFromApiKey } from "../server-3cVlTLde.js";
11
11
  import { i as subjectFromRunTicket, n as parseRunTicket, r as signRunTicket, t as RUN_TICKET_CLAIMS } from "../run-ticket-Dv7aF7Dk.js";
12
12
  import { t as problemFromError } from "../map-error-pasIGqMT.js";
@@ -1,14 +1,14 @@
1
- import { Gt as Snapshot, Ln as Decision, Rt as Instant, Zn as Actor, ar as JsonWebKeyLike, j as PolicyVocabulary, lr as Subject } from "./policy-types-CCiDRZBH.js";
1
+ import { Un as Decision, Wt as Instant, X as Intent, Zt as Snapshot, dr as JsonWebKeyLike, hr as Subject, j as PolicyVocabulary, rr as Actor } from "./policy-types-DGIO_gxq.js";
2
2
  import { u as Permission } from "./permission-types-CAY-GU7e.js";
3
- import { a as PermDock, u as SnapshotOptions } from "./permdock-B6Sf4T_S.js";
4
- import { m as ApprovalStore } from "./types-B_tiYvk8.js";
5
- import { a as ProblemDetails, t as ApprovalHint } from "./errors-zi_4T-rx.js";
6
- import { t as InstanceOptions } from "./instance-options-B0KXqTrJ.js";
3
+ import { a as PermDock, u as SnapshotOptions } from "./permdock-CprAPN3w.js";
4
+ import { m as ApprovalStore } from "./types-DLvhVm1r.js";
5
+ import { a as ProblemDetails, t as ApprovalHint } from "./errors-BIM4MFsJ.js";
6
+ import { t as InstanceOptions } from "./instance-options-CoHn-0e8.js";
7
7
  import { t as RequestContext } from "./request-context-C2_1lchh.js";
8
- import { n as PermDockWrap } from "./wrap-DlJE3gS_.js";
8
+ import { n as PermDockWrap } from "./wrap-DxXB54Wu.js";
9
9
  import { n as RevocationFeed } from "./revocations-BaUXHM1N.js";
10
- import { r as PdpFactory } from "./types-B4uqKDnp.js";
11
- import { i as evaluationsHandler } from "./evaluations-z8dQFDaN.js";
10
+ import { r as PdpFactory } from "./types-DlelvQk4.js";
11
+ import { i as evaluationsHandler } from "./evaluations-DOWuBpWv.js";
12
12
  //#region src/server/connection.d.ts
13
13
  type ConnectionData<T> = T | (() => T | null | undefined | Promise<T | null | undefined>);
14
14
  type ConnectionOptions<T = unknown> = {
@@ -151,6 +151,13 @@ type ServerPermDockOptions<TUser = unknown> = InstanceOptions & {
151
151
  * cover derived instances.
152
152
  */
153
153
  readonly wrap?: PermDockWrap;
154
+ /**
155
+ * `'read'` lets `claimsFirst(…, { versions })` judge the token from the
156
+ * shared version cache. Defaults to `'read'` for `GET`, `HEAD` and `OPTIONS`
157
+ * and `'write'` for every other method. `undefined` keeps the default; a
158
+ * throw or any other value is `'write'`.
159
+ */
160
+ readonly intent?: (request: Request) => Intent | undefined;
154
161
  /**
155
162
  * The `adapter` label on decision events, revocations and approvals. Defaults
156
163
  * to `server`.
@@ -1,7 +1,7 @@
1
- import { $t as CredentialEvent, Ct as Credential, Qt as AutomationEvent, Xt as AccessEvent, gt as SupportSession, on as MembershipEvent, q as DecisionSink, sn as SinkEvent, ut as TokenSigner } from "./policy-types-CCiDRZBH.js";
1
+ import { J as DecisionSink, St as SupportSession, an as CredentialEvent, fn as MembershipEvent, in as AutomationEvent, kt as Credential, mt as TokenSigner, nn as AccessEvent, pn as SinkEvent } from "./policy-types-DGIO_gxq.js";
2
2
  import { M as AppData } from "./permission-types-CAY-GU7e.js";
3
3
  import { u as OperationRisk } from "./operations-Ci_rT6Uo.js";
4
- import { t as Automation } from "./automation-DqEoWHBc.js";
4
+ import { t as Automation } from "./automation-C6Jg75xq.js";
5
5
  //#region src/core/sink.d.ts
6
6
  /**
7
7
  * The closed list of CloudEvents `type` values, `com.permdock.<family>` or
@@ -1,7 +1,7 @@
1
1
  import { t as defineLeaf } from "./command-L8EstFNm.js";
2
2
  import { t as checkFlag } from "./flags-DXjoTVbS.js";
3
3
  import { r as pick, t as CANCELLED } from "./prompt-BYc6drYW.js";
4
- import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-Bjj7BNEQ.js";
4
+ import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-CQQcuGBi.js";
5
5
  //#region src/cli/commands/skills.ts
6
6
  const forFlag = { for: {
7
7
  type: "string",
@@ -2,7 +2,7 @@ import { t as byCodePoint } from "./compare-DTfyUunF.js";
2
2
  import { i as readJsonFile } from "./files-BSjrtIHw.js";
3
3
  import { l as packageRoot } from "./version-DMQ0dnN5.js";
4
4
  import { t as didYouMean } from "./args-0FrVs5EH.js";
5
- import { a as nonEmptyOr } from "./output-tkju6U7R.js";
5
+ import { a as nonEmptyOr } from "./output-DV5dwOTs.js";
6
6
  import { cpSync, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, readlinkSync, realpathSync, writeFileSync } from "node:fs";
7
7
  import { basename, dirname, join, relative, resolve } from "node:path";
8
8
  import { pathToFileURL } from "node:url";
@@ -1,4 +1,4 @@
1
- import { Gt as Snapshot, Rt as Instant } from "./policy-types-CCiDRZBH.js";
1
+ import { Wt as Instant, Zt as Snapshot } from "./policy-types-DGIO_gxq.js";
2
2
  //#region src/core/snapshot-cache.d.ts
3
3
  type CacheLifeForOptions = {
4
4
  /**
@@ -1,13 +1,13 @@
1
- import { Gt as Snapshot, In as ApprovalRequiredDecision, Ln as Decision, Un as GrantedDecision, dt as TokenVerifier, j as PolicyVocabulary, or as Membership } from "../policy-types-CCiDRZBH.js";
1
+ import { Hn as ApprovalRequiredDecision, Un as Decision, Yn as GrantedDecision, Zt as Snapshot, fr as Membership, ht as TokenVerifier, j as PolicyVocabulary } from "../policy-types-DGIO_gxq.js";
2
2
  import { u as Permission } from "../permission-types-CAY-GU7e.js";
3
3
  import { r as Role } from "../vocabulary-DEJ5j4mR.js";
4
- import { d as UncheckedData, s as RowData } from "../permdock-B6Sf4T_S.js";
5
- import { c as requiredPlans } from "../errors-zi_4T-rx.js";
6
- import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-ByS9LgHK.js";
4
+ import { d as UncheckedData, s as RowData } from "../permdock-CprAPN3w.js";
5
+ import { c as requiredPlans } from "../errors-BIM4MFsJ.js";
6
+ import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-BbFPBSms.js";
7
7
  import { t as PermissionBoundaryState } from "../boundary-C9ck-3uK.js";
8
- import { n as ProtectedAction, t as ActionResult } from "../action-result-CL-QCITA.js";
8
+ import { n as ProtectedAction, t as ActionResult } from "../action-result-BcudBQOF.js";
9
9
  import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
10
- import { a as FilterResult, b as eventSourceRefresh, c as PermissionSet, d as ProtectedActionView, f as ProviderOptionsBase, h as TenantView, i as ClientStatus, l as PermissionState, m as SubjectView, n as ApprovalState, o as GateMode, p as RolesOptions, r as ClientPermDock, s as GateView, t as ApprovalHandle, v as EventSourceRefreshOptions, y as RefreshTrigger } from "../types-B_d_g7T3.js";
10
+ import { a as FilterResult, b as eventSourceRefresh, c as PermissionSet, d as ProtectedActionView, f as ProviderOptionsBase, h as TenantView, i as ClientStatus, l as PermissionState, m as SubjectView, n as ApprovalState, o as GateMode, p as RolesOptions, r as ClientPermDock, s as GateView, t as ApprovalHandle, v as EventSourceRefreshOptions, y as RefreshTrigger } from "../types-tQB2CEnY.js";
11
11
  import { Accessor, Accessor as Accessor$1, JSX } from "solid-js";
12
12
  //#region src/solid/types.d.ts
13
13
  /** Structural `JSX.Element`: text, a DOM node or a list of children. */
@@ -1,9 +1,9 @@
1
- import { Gt as Snapshot, T as Policy, j as PolicyVocabulary, sr as Principal } from "../policy-types-CCiDRZBH.js";
1
+ import { T as Policy, Zt as Snapshot, j as PolicyVocabulary, pr as Principal } from "../policy-types-DGIO_gxq.js";
2
2
  import { u as Permission } from "../permission-types-CAY-GU7e.js";
3
3
  import { a as OperationInput, t as Operation } from "../operations-Ci_rT6Uo.js";
4
- import { a as PermDock } from "../permdock-B6Sf4T_S.js";
5
- import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-CIlpSA2G.js";
6
- import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-C1DCvpqV.js";
4
+ import { a as PermDock } from "../permdock-CprAPN3w.js";
5
+ import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-CyRN0-Cd.js";
6
+ import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-BIbBAtPZ.js";
7
7
  import { APIEvent, FetchEvent } from "@solidjs/start/server";
8
8
  //#region src/solid-start/create.d.ts
9
9
  /** The h3 event under every SolidStart request; `subject` and `scope` read it. */
@@ -1,6 +1,6 @@
1
1
  import { l as InvalidSignatureError, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-IBceAeKT.js";
2
- import { i as decorate } from "../bind-D_sZSVA3.js";
3
- import { n as guardedRoute, t as fetchAdapter } from "../fetch-adapter-JL43jD3E.js";
2
+ import { i as decorate } from "../bind-BNQA9JK9.js";
3
+ import { n as guardedRoute, t as fetchAdapter } from "../fetch-adapter-dPTgJVHd.js";
4
4
  //#region src/solid-start/create.ts
5
5
  /**
6
6
  * `event.locals`. Its type, `App.RequestEventLocals`, is declared by
@@ -1,5 +1,5 @@
1
- import { et as MembershipSource } from "./policy-types-CCiDRZBH.js";
2
- import { n as RoleMap, r as RoleThrough, x as SupabaseSuspension } from "./types-ah9NlU6j.js";
1
+ import { nt as MembershipSource } from "./policy-types-DGIO_gxq.js";
2
+ import { n as RoleMap, r as RoleThrough, x as SupabaseSuspension } from "./types-BMVDHvI0.js";
3
3
  import { t as SqlQuery } from "./sql-B80DFdpG.js";
4
4
  import { c as SupabaseManifestMembership } from "./manifest-CzzWtnAb.js";
5
5
  //#region src/supabase/roles.d.ts
@@ -8,7 +8,7 @@ import { n as internalsOf } from "./internals-B3IgHrvo.js";
8
8
  import { c as listPermissions, i as getRegistry, n as findPermission, o as isPermission } from "./permission-registry-B8tYxPIt.js";
9
9
  import { n as isThenable$1 } from "./thenable-BNSM1U2R.js";
10
10
  import { c as isEdgeRelation, m as restrictedStops, o as groupEntries, s as isComputedRelation, u as isPrincipalRelation } from "./resource-relations-8-pCScBO.js";
11
- import { a as durationOf, g as secondsOf, m as rfc3339, p as nowSeconds } from "./time-nR1JesoH.js";
11
+ import { a as durationOf, f as nowMillis, g as secondsOf, m as rfc3339, p as nowSeconds } from "./time-nR1JesoH.js";
12
12
  import { a as normalizeMembership$1, d as scopeIdOf, f as scopeList, h as tenantOf, l as rootScope, o as normalizeMemberships$1, s as resolveScope$1, u as scopeChain } from "./scopes-0Up_UA2t.js";
13
13
  import { u as evaluateCondition } from "./delegation-CDB6_keF.js";
14
14
  import { _ as listPlans, a as authenticated, m as findRole, o as flattenGrantee } from "./grantee-Dke-9rd1.js";
@@ -16,12 +16,12 @@ import { m as tenantsOf, r as isMembershipExpired } from "./tenancy-5d1zVBvK.js"
16
16
  import { c as levelNames, i as grantList, n as declaredRoleNames } from "./policy-CLQ8__GF.js";
17
17
  import { o as isPortableCondition } from "./hosted-D0IzESu_.js";
18
18
  import { n as OPERATION_RISKS, r as isOperationRisk } from "./permissions-CVXmRILq.js";
19
- import { C as tenantCustomRoles, S as roleAllowKeys, f as customRoleId, l as ceilingGrants, m as customRoleScope, p as customRoleOf, x as resolveCustomRole } from "./evaluate-Dd8Ta0Ie.js";
20
- import { a as heldLevels, f as bindingOf, h as usesAssigns, m as roleMeta, n as snapshotScopes, o as collectSnapshotGrants, p as rankRoles, r as assignableCandidates, t as snapshotOf } from "./instance-snapshot--JWiTrvO.js";
19
+ import { C as tenantCustomRoles, S as roleAllowKeys, f as customRoleId, l as ceilingGrants, m as customRoleScope, p as customRoleOf, x as resolveCustomRole } from "./evaluate-BAmf_AQd.js";
20
+ import { a as heldLevels, f as bindingOf, h as usesAssigns, m as roleMeta, n as snapshotScopes, o as collectSnapshotGrants, p as rankRoles, r as assignableCandidates, t as snapshotOf } from "./instance-snapshot-DuWf1cT3.js";
21
21
  import { n as relationId } from "./relations-BxvRvDHK.js";
22
22
  import { i as snapshotGrant, r as plainPermission, t as buildSnapshot } from "./snapshot-CXlzi69u.js";
23
23
  import { n as LOCAL_CUSTOM_ROLE } from "./parse-local-manifest-DEiCF4ah.js";
24
- import { c as APP, r as resolveSubject } from "./permdock-L-_I_3zP.js";
24
+ import { c as APP, r as resolveSubject } from "./permdock-BvjivVb9.js";
25
25
  import { i as memoryApprovalStore } from "./store-RNFvaJJv.js";
26
26
  import { n as wrapPermDock } from "./wrap-B2wziJI_.js";
27
27
  //#region src/conditions/sql-function.ts
@@ -819,6 +819,107 @@ function signPolicyDocument(document, signer, options) {
819
819
  });
820
820
  }
821
821
  //#endregion
822
+ //#region src/core/version-cache.ts
823
+ const MAX_STALE_CEILING_MS = 6e4;
824
+ const DEFAULT_MAX_ENTRIES = 1e4;
825
+ /**
826
+ * An in-process `VersionCache`: a bounded LRU keyed by principal id that keeps
827
+ * resolved versions and shares reads in flight. Create it once at module
828
+ * scope.
829
+ */
830
+ function memoryVersionCache(options) {
831
+ const maxStaleMs = Math.min(Math.max(Math.floor(options.maxStaleMs), 0), MAX_STALE_CEILING_MS);
832
+ const maxEntries = Math.max(Math.floor(options.maxEntries ?? DEFAULT_MAX_ENTRIES), 1);
833
+ const entries = /* @__PURE__ */ new Map();
834
+ const inFlight = /* @__PURE__ */ new Map();
835
+ const counts = {
836
+ reads: 0,
837
+ shared: 0,
838
+ hits: 0,
839
+ evictions: 0
840
+ };
841
+ const now = () => nowMillis(options.now?.());
842
+ const store = (id, entry) => {
843
+ entries.delete(id);
844
+ entries.set(id, entry);
845
+ if (entries.size > maxEntries) {
846
+ const oldest = entries.keys().next();
847
+ if (oldest.done !== true) entries.delete(oldest.value);
848
+ }
849
+ };
850
+ const observe = (principal, at) => {
851
+ const claimed = principal.authzVersion;
852
+ if (typeof claimed !== "number") return;
853
+ const issued = typeof principal.issuedAt === "number" ? principal.issuedAt * 1e3 : void 0;
854
+ const entry = entries.get(principal.id);
855
+ if (entry === void 0) {
856
+ if (issued !== void 0 && issued <= at && at - issued <= maxStaleMs) store(principal.id, {
857
+ version: claimed,
858
+ at: issued
859
+ });
860
+ return;
861
+ }
862
+ if (claimed > entry.version) store(principal.id, {
863
+ version: claimed,
864
+ at: issued === void 0 ? entry.at : Math.max(entry.at, issued)
865
+ });
866
+ };
867
+ const start = (id, read, at) => {
868
+ counts.reads += 1;
869
+ const keep = (version) => {
870
+ if (typeof version === "number" && Number.isFinite(version)) {
871
+ const entry = entries.get(id);
872
+ store(id, {
873
+ version: Math.max(version, entry?.version ?? version),
874
+ at
875
+ });
876
+ }
877
+ return version;
878
+ };
879
+ const answer = read();
880
+ if (!isThenable$1(answer)) return keep(answer);
881
+ const pending = Promise.resolve(answer).then((version) => inFlight.get(id) === pending ? keep(version) : version);
882
+ inFlight.set(id, pending);
883
+ const settle = () => {
884
+ if (inFlight.get(id) === pending) inFlight.delete(id);
885
+ };
886
+ pending.then(settle, settle);
887
+ return pending;
888
+ };
889
+ return Object.freeze({
890
+ name: "memory",
891
+ maxStaleMs,
892
+ current(principal, read, { live }) {
893
+ const at = now();
894
+ if (live) return start(principal.id, read, at);
895
+ observe(principal, at);
896
+ const entry = entries.get(principal.id);
897
+ if (entry !== void 0 && at - entry.at <= maxStaleMs) {
898
+ counts.hits += 1;
899
+ store(principal.id, entry);
900
+ return entry.version;
901
+ }
902
+ const pending = inFlight.get(principal.id);
903
+ if (pending !== void 0) {
904
+ counts.shared += 1;
905
+ return pending;
906
+ }
907
+ return start(principal.id, read, at);
908
+ },
909
+ evict(principal) {
910
+ counts.evictions += 1;
911
+ entries.delete(principal);
912
+ inFlight.delete(principal);
913
+ },
914
+ stats() {
915
+ return {
916
+ ...counts,
917
+ size: entries.size
918
+ };
919
+ }
920
+ });
921
+ }
922
+ //#endregion
822
923
  //#region src/core/arazzo.ts
823
924
  const VERSION = /^1\.[01]\.\d+(?:-.+)?$/u;
824
925
  const STEP_TARGETS = [
@@ -2039,4 +2140,4 @@ function toCsvRow(event) {
2039
2140
  ].map(field).join(",");
2040
2141
  }
2041
2142
  //#endregion
2042
- export { memoryCustomRoleSource as A, stripeEntitlementSource as C, validateApprovalPolicy as D, memoryApprovalPolicySource as E, sqlFunction as F, memoryMembershipSource as M, memorySettingsSource as N, defineOperations as O, memorySnapshotSource as P, memoryLimitStore as S, approvalPoliciesFor as T, arazzoFindings as _, normalizeMembership as a, memoryRelationSource as b, crud as c, snapshotFor as d, customRoleSource as f, localSnapshotManifest as g, defineApp as h, decideRoleChange as i, memoryEntitlementSource as j, isOperationEffect as k, readable as l, shadowMode as m, toCsvRow as n, normalizeMemberships as o, mayAccess as p, checkRoleChange as r, resolveScope as s, CSV_COLUMNS as t, writable as u, simulateArazzo as v, approvalPolicies as w, limits as x, signPolicyDocument as y };
2143
+ export { isOperationEffect as A, memoryLimitStore as C, memoryApprovalPolicySource as D, approvalPoliciesFor as E, memorySnapshotSource as F, sqlFunction as I, memoryEntitlementSource as M, memoryMembershipSource as N, validateApprovalPolicy as O, memorySettingsSource as P, limits as S, approvalPolicies as T, arazzoFindings as _, normalizeMembership as a, signPolicyDocument as b, crud as c, snapshotFor as d, customRoleSource as f, localSnapshotManifest as g, defineApp as h, decideRoleChange as i, memoryCustomRoleSource as j, defineOperations as k, readable as l, shadowMode as m, toCsvRow as n, normalizeMemberships as o, mayAccess as p, checkRoleChange as r, resolveScope as s, CSV_COLUMNS as t, writable as u, simulateArazzo as v, stripeEntitlementSource as w, memoryRelationSource as x, memoryVersionCache as y };
@@ -1,4 +1,4 @@
1
- import { A as SsfSubject, C as SsfEventName, D as SsfReceiver, E as SsfPermDockOptions, M as SsfTransmitterConfiguration, N as SsfVerification, O as SsfStreamConfiguration, S as SsfEventListener, T as SsfPermDock, _ as SetSubject, a as PollHandle, b as SsfEventHandler, c as PushSetOptions, d as SetDelivery, f as SetDeliveryFailureCause, g as SetQueue, h as SetPollHandlerOptions, i as CaepReason, j as SsfSubjectResolver, k as SsfStreamStatus, l as ReplayStore, m as SetEvent, n as CaepEventName, o as PollOptions, p as SetError, r as CaepInitiatingEntity, s as PollResult, t as CaepCommon, u as RiscEventName, v as SignSetOptions, w as SsfOnEvent, x as SsfEventInput, y as SsfAuditEvent } from "../types-DjuMBNF9.js";
2
- import { t as memoryReplayStore } from "../replay-DNftIb_R.js";
3
- import { A as createPermDock, C as memorySsfStreamStore, D as PollSetsResult, E as PollSetsOptions, O as PolledSet, S as SsfStreamStore, T as setPollHandler, _ as SsfFanOut, a as CaepTokenClaimsChange, b as ssfTransmitter, c as RiscEvents, d as caepEvents, f as pushSet, g as FanOutSetOptions, h as streamVerificationEvent, i as CaepEvents, k as pollSets, l as SSF_POLL_DELIVERY, m as signSet, n as CaepCredentialChange, o as RiscAccountDisabled, p as riscEvents, r as CaepDeviceComplianceChange, s as RiscCredentialCompromise, t as CaepAssuranceLevelChange, u as SSF_PUSH_DELIVERY, v as SsfTransmitterOptions, w as memorySetQueue, x as SsfStream, y as fanOutSet } from "../index-BhxEUY9J.js";
1
+ import { A as SsfSubject, C as SsfEventName, D as SsfReceiver, E as SsfPermDockOptions, M as SsfTransmitterConfiguration, N as SsfVerification, O as SsfStreamConfiguration, S as SsfEventListener, T as SsfPermDock, _ as SetSubject, a as PollHandle, b as SsfEventHandler, c as PushSetOptions, d as SetDelivery, f as SetDeliveryFailureCause, g as SetQueue, h as SetPollHandlerOptions, i as CaepReason, j as SsfSubjectResolver, k as SsfStreamStatus, l as ReplayStore, m as SetEvent, n as CaepEventName, o as PollOptions, p as SetError, r as CaepInitiatingEntity, s as PollResult, t as CaepCommon, u as RiscEventName, v as SignSetOptions, w as SsfOnEvent, x as SsfEventInput, y as SsfAuditEvent } from "../types-DsHGPtkR.js";
2
+ import { t as memoryReplayStore } from "../replay-Bs9Df2fQ.js";
3
+ import { A as createPermDock, C as memorySsfStreamStore, D as PollSetsResult, E as PollSetsOptions, O as PolledSet, S as SsfStreamStore, T as setPollHandler, _ as SsfFanOut, a as CaepTokenClaimsChange, b as ssfTransmitter, c as RiscEvents, d as caepEvents, f as pushSet, g as FanOutSetOptions, h as streamVerificationEvent, i as CaepEvents, k as pollSets, l as SSF_POLL_DELIVERY, m as signSet, n as CaepCredentialChange, o as RiscAccountDisabled, p as riscEvents, r as CaepDeviceComplianceChange, s as RiscCredentialCompromise, t as CaepAssuranceLevelChange, u as SSF_PUSH_DELIVERY, v as SsfTransmitterOptions, w as memorySetQueue, x as SsfStream, y as fanOutSet } from "../index-BinlXeU-.js";
4
4
  export { type CaepAssuranceLevelChange, type CaepCommon, type CaepCredentialChange, type CaepDeviceComplianceChange, type CaepEventName, type CaepEvents, type CaepInitiatingEntity, type CaepReason, type CaepTokenClaimsChange, type FanOutSetOptions, type PollHandle, type PollOptions, type PollResult, type PollSetsOptions, type PollSetsResult, type PolledSet, type PushSetOptions, type ReplayStore, type RiscAccountDisabled, type RiscCredentialCompromise, type RiscEventName, type RiscEvents, SSF_POLL_DELIVERY, SSF_PUSH_DELIVERY, type SetDelivery, type SetDeliveryFailureCause, type SetError, type SetEvent, type SetPollHandlerOptions, type SetQueue, type SetSubject, type SignSetOptions, type SsfAuditEvent, type SsfEventHandler, type SsfEventInput, type SsfEventListener, type SsfEventName, type SsfFanOut, type SsfOnEvent, type SsfPermDock, type SsfPermDockOptions, type SsfReceiver, type SsfStream, type SsfStreamConfiguration, type SsfStreamStatus, type SsfStreamStore, type SsfSubject, type SsfSubjectResolver, type SsfTransmitterConfiguration, type SsfTransmitterOptions, type SsfVerification, caepEvents, createPermDock, fanOutSet, memoryReplayStore, memorySetQueue, memorySsfStreamStore, pollSets, pushSet, riscEvents, setPollHandler, signSet, ssfTransmitter, streamVerificationEvent };
@@ -1,5 +1,5 @@
1
- import { Rt as Instant, ar as JsonWebKeyLike } from "./policy-types-CCiDRZBH.js";
2
- import { l as ReplayStore } from "./types-DjuMBNF9.js";
1
+ import { Wt as Instant, dr as JsonWebKeyLike } from "./policy-types-DGIO_gxq.js";
2
+ import { l as ReplayStore } from "./types-DsHGPtkR.js";
3
3
  //#region src/server/standard-webhooks.d.ts
4
4
  /** The three Standard Webhooks headers a delivery carries. */
5
5
  type WebhookHeaders = {
@@ -1,11 +1,11 @@
1
- import { Ln as Decision, j as PolicyVocabulary, or as Membership } from "./policy-types-CCiDRZBH.js";
1
+ import { Un as Decision, fr as Membership, j as PolicyVocabulary } from "./policy-types-DGIO_gxq.js";
2
2
  import { u as Permission } from "./permission-types-CAY-GU7e.js";
3
3
  import { r as Role } from "./vocabulary-DEJ5j4mR.js";
4
- import { d as UncheckedData, s as RowData } from "./permdock-B6Sf4T_S.js";
5
- import { r as DescribeOptions, t as DecisionDescription } from "./describe-ByS9LgHK.js";
6
- import { n as ProtectedAction } from "./action-result-CL-QCITA.js";
7
- import { a as FilterResult, c as PermissionSet, h as TenantView, l as PermissionState, m as SubjectView, o as GateMode, p as RolesOptions, r as ClientPermDock, s as GateView, t as ApprovalHandle } from "./types-B_d_g7T3.js";
8
- import { n as ProtectedActionReadable, r as SveltePermDockOptions } from "./types-djVzLlIV.js";
4
+ import { d as UncheckedData, s as RowData } from "./permdock-CprAPN3w.js";
5
+ import { r as DescribeOptions, t as DecisionDescription } from "./describe-BbFPBSms.js";
6
+ import { n as ProtectedAction } from "./action-result-BcudBQOF.js";
7
+ import { a as FilterResult, c as PermissionSet, h as TenantView, l as PermissionState, m as SubjectView, o as GateMode, p as RolesOptions, r as ClientPermDock, s as GateView, t as ApprovalHandle } from "./types-tQB2CEnY.js";
8
+ import { n as ProtectedActionReadable, r as SveltePermDockOptions } from "./types-CEinc15V.js";
9
9
  import { Readable } from "svelte/store";
10
10
  //#region src/svelte/stores.d.ts
11
11
  declare function setPermDock(options: SveltePermDockOptions): ClientPermDock;
@@ -1,5 +1,5 @@
1
1
  import { u as Permission } from "./permission-types-CAY-GU7e.js";
2
- import { o as ProtectOptions } from "./server-types-CIlpSA2G.js";
2
+ import { o as ProtectOptions } from "./server-types-CyRN0-Cd.js";
3
3
  //#region src/server/stream.d.ts
4
4
  type StreamProtectOptions = ProtectOptions & {
5
5
  /**
@@ -1,10 +1,10 @@
1
- import { Rt as Instant, lr as Subject } from "../policy-types-CCiDRZBH.js";
2
- import { a as ApprovalDelegationSource, m as ApprovalStore, u as ApprovalRequest } from "../types-B_tiYvk8.js";
3
- import { a as SupabaseRpcClient, c as readSubjectRecord, i as SupabaseRpcCaller, n as PostgrestSourcesOptions, o as SupabaseRpcResult, r as SubjectRecord, s as postgrestSources, t as PostgrestSources } from "../postgrest-DicQyqm-.js";
4
- import { C as SupabaseClaims, D as SupabasePermDockClaims, E as SupabaseMembershipClaim, O as supabaseClaims, S as SupabaseActClaim, T as SupabaseClaimsSchema, _ as SupabaseStorage, a as SupabaseActor, b as SupabaseSuspendedScope, c as SupabaseInclude, d as SupabasePrincipal, f as SupabaseRealtime, g as SupabaseSessionLike, h as SupabaseRlsOptions, i as SupabaseActiveRow, l as SupabaseMembershipTable, m as SupabaseRlsMembershipTable, o as SupabaseActorResult, p as SupabaseRlsConfig, r as RoleThrough, s as SupabaseDelegation, t as AuthorizeSqlOptions, u as SupabasePermissionRef, v as SupabaseSubjectOptions, w as SupabaseClaimsOptions, x as SupabaseSuspension, y as SupabaseSuspendedMembership } from "../types-ah9NlU6j.js";
1
+ import { Wt as Instant, hr as Subject } from "../policy-types-DGIO_gxq.js";
2
+ import { a as ApprovalDelegationSource, m as ApprovalStore, u as ApprovalRequest } from "../types-DLvhVm1r.js";
3
+ import { a as SupabaseRpcClient, c as readSubjectRecord, i as SupabaseRpcCaller, n as PostgrestSourcesOptions, o as SupabaseRpcResult, r as SubjectRecord, s as postgrestSources, t as PostgrestSources } from "../postgrest-D5nUGm-c.js";
4
+ import { C as SupabaseClaims, D as SupabasePermDockClaims, E as SupabaseMembershipClaim, O as supabaseClaims, S as SupabaseActClaim, T as SupabaseClaimsSchema, _ as SupabaseStorage, a as SupabaseActor, b as SupabaseSuspendedScope, c as SupabaseInclude, d as SupabasePrincipal, f as SupabaseRealtime, g as SupabaseSessionLike, h as SupabaseRlsOptions, i as SupabaseActiveRow, l as SupabaseMembershipTable, m as SupabaseRlsMembershipTable, o as SupabaseActorResult, p as SupabaseRlsConfig, r as RoleThrough, s as SupabaseDelegation, t as AuthorizeSqlOptions, u as SupabasePermissionRef, v as SupabaseSubjectOptions, w as SupabaseClaimsOptions, x as SupabaseSuspension, y as SupabaseSuspendedMembership } from "../types-BMVDHvI0.js";
5
5
  import { t as SqlQuery } from "../sql-B80DFdpG.js";
6
6
  import { _ as hasTokenHook, a as SupabaseManifestActiveRow, c as SupabaseManifestMembership, d as SupabaseManifestResourceNames, f as SupabaseManifestRls, g as SupabaseManifestValue, h as SupabaseManifestThrough, i as SupabaseManifest, l as SupabaseManifestNames, m as SupabaseManifestScopeNames, n as SupabaseHookClaim, o as SupabaseManifestColumn, p as SupabaseManifestRole, r as SupabaseHookManifest, s as SupabaseManifestHelper, t as SupabaseDatabaseManifest, u as SupabaseManifestRequires, v as parseSupabaseManifest } from "../manifest-CzzWtnAb.js";
7
- import { a as MembershipStream, c as SupabasePostgres, d as supabasePostgresQuery, f as tableMembershipSource, i as MembershipSql, l as authzVersion, n as MembershipHolders, o as MembershipTableOptions, r as MembershipJunctionOptions, s as SqlMembershipSource, t as AUTHZ_VERSION_TABLE, u as junctionMembershipSource } from "../sources-B1Os_YUu.js";
7
+ import { a as MembershipStream, c as SupabasePostgres, d as supabasePostgresQuery, f as tableMembershipSource, i as MembershipSql, l as authzVersion, n as MembershipHolders, o as MembershipTableOptions, r as MembershipJunctionOptions, s as SqlMembershipSource, t as AUTHZ_VERSION_TABLE, u as junctionMembershipSource } from "../sources-CWG32C0G.js";
8
8
  import { n as supabaseTenantClaim, t as supabaseMembershipsBudget } from "../budget-hYsPz_yE.js";
9
9
  //#region src/supabase/capability.d.ts
10
10
  type ExchangeCapabilityOptions = {
@@ -1,6 +1,6 @@
1
- import { a as supabaseClaims, i as supabaseApprovalStore, n as supabaseRls, o as exchangeCapability, r as tableApprovalDelegationSource, t as authorizeSql } from "../supabase-BL1qJzzY.js";
1
+ import { a as supabaseClaims, i as supabaseApprovalStore, n as supabaseRls, o as exchangeCapability, r as tableApprovalDelegationSource, t as authorizeSql } from "../supabase-DnMMg5Fn.js";
2
2
  import { n as supabaseTenantClaim, t as supabaseMembershipsBudget } from "../budget-BELja5A9.js";
3
3
  import { c as tableMembershipSource, i as authzVersion, o as junctionMembershipSource, s as supabasePostgresQuery, t as AUTHZ_VERSION_TABLE } from "../sources-CMAM-2A3.js";
4
- import { a as delegationOf, c as subjectFromSupabaseSession, i as actorOf, n as postgrestSources, r as readSubjectRecord, s as subjectFromSupabase } from "../postgrest-D4nuPXIQ.js";
4
+ import { a as delegationOf, c as subjectFromSupabaseSession, i as actorOf, n as postgrestSources, r as readSubjectRecord, s as subjectFromSupabase } from "../postgrest-5Dr3W64L.js";
5
5
  import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-wg8WkkpD.js";
6
6
  export { AUTHZ_VERSION_TABLE, actorOf, authorizeSql, authzVersion, delegationOf, exchangeCapability, hasTokenHook, junctionMembershipSource, parseSupabaseManifest, postgrestSources, readSubjectRecord, subjectFromSupabase, subjectFromSupabaseSession, supabaseApprovalStore, supabaseClaims, supabaseMembershipsBudget, supabasePostgresQuery, supabaseRls, supabaseTenantClaim, tableApprovalDelegationSource, tableMembershipSource };
@@ -1,10 +1,10 @@
1
- import { T as Policy, j as PolicyVocabulary, lr as Subject, sr as Principal } from "../policy-types-CCiDRZBH.js";
1
+ import { T as Policy, hr as Subject, j as PolicyVocabulary, pr as Principal } from "../policy-types-DGIO_gxq.js";
2
2
  import { u as Permission } from "../permission-types-CAY-GU7e.js";
3
- import { a as PermDock } from "../permdock-B6Sf4T_S.js";
4
- import { t as InstanceOptions } from "../instance-options-B0KXqTrJ.js";
3
+ import { a as PermDock } from "../permdock-CprAPN3w.js";
4
+ import { t as InstanceOptions } from "../instance-options-CoHn-0e8.js";
5
5
  import { t as RequestContext } from "../request-context-C2_1lchh.js";
6
- import { i as OpenApiHooks } from "../server-types-CIlpSA2G.js";
7
- import { n as ServerAdapterServices } from "../bind-Cp2hBHzP.js";
6
+ import { i as OpenApiHooks } from "../server-types-CyRN0-Cd.js";
7
+ import { n as ServerAdapterServices } from "../bind-YYjvfpB9.js";
8
8
  import { Middleware } from "@supabase/middleware";
9
9
  //#region src/supabase/middleware.d.ts
10
10
  /**
@@ -1,11 +1,11 @@
1
1
  import { t as compact } from "../compact-CAf557ZB.js";
2
- import { l as withApp } from "../permdock-L-_I_3zP.js";
2
+ import { l as withApp } from "../permdock-BvjivVb9.js";
3
3
  import { t as composeWraps } from "../wrap-B2wziJI_.js";
4
4
  import { r as credentialSubject } from "../credential-CyyyvCsL.js";
5
5
  import { o as methodNotAllowed } from "../problem-BVLHFK33.js";
6
- import { r as instanceOptions } from "../build-instance-CNWaYJyr.js";
7
- import { t as createPermDock$1 } from "../create-_noSrY1T.js";
8
- import { n as attached } from "../bind-D_sZSVA3.js";
6
+ import { r as instanceOptions } from "../build-instance-BWXqwQYU.js";
7
+ import { t as createPermDock$1 } from "../create-BLPKnJKa.js";
8
+ import { n as attached } from "../bind-BNQA9JK9.js";
9
9
  import { defineMiddleware } from "@supabase/middleware";
10
10
  //#region src/supabase/middleware.ts
11
11
  const SECRET_KEY_NAME = /^[A-Za-z0-9_-]+$/u;