permdock 0.21.0 → 0.22.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 (359) hide show
  1. package/README.md +2 -1
  2. package/dist/a2a/index.d.ts +5 -5
  3. package/dist/a2a/index.js +5 -4
  4. package/dist/{adoption-scan-UkQisAqe.js → adoption-scan-_bHLMnVQ.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 +4 -4
  8. package/dist/ai-sdk/index.js +3 -3
  9. package/dist/app/index.d.ts +85 -0
  10. package/dist/app/index.js +91 -0
  11. package/dist/app-DIvM65Mv.js +24 -0
  12. package/dist/{approval-policies-CKlByf5o.d.ts → approval-policies-UnDSxT__.d.ts} +2 -2
  13. package/dist/{approval-prompt-CQFiO1KE.d.ts → approval-prompt-2hTqo6IM.d.ts} +2 -2
  14. package/dist/approvals/index.d.ts +3 -3
  15. package/dist/approvals/index.js +3 -3
  16. package/dist/{approvals-CuXILe52.js → approvals-B_sn4Wrn.js} +6 -6
  17. package/dist/{arazzo-CUthH61H.js → arazzo-BXD-VJU_.js} +1 -1
  18. package/dist/{arazzo-BC3uLIZy.js → arazzo-Ct0PGblq.js} +3 -3
  19. package/dist/astro/index.d.ts +6 -6
  20. package/dist/astro/index.js +2 -2
  21. package/dist/{audience-BUonniPx.js → audience-5Xx1hdIv.js} +1 -1
  22. package/dist/{auth-j3Eu-j4h.js → auth-BxXHxWRy.js} +1 -1
  23. package/dist/authzen/index.d.ts +5 -5
  24. package/dist/authzen/index.js +4 -4
  25. package/dist/{automation-CpOk7Tlu.d.ts → automation-B20_8UoT.d.ts} +3 -3
  26. package/dist/{automation-x3KEUusw.js → automation-BueW05db.js} +2 -2
  27. package/dist/better-auth/index.d.ts +2 -2
  28. package/dist/better-auth/index.js +1 -1
  29. package/dist/better-supabase/index.d.ts +113 -56
  30. package/dist/better-supabase/index.js +200 -62
  31. package/dist/better-supabase-DF8f8oly.js +194 -0
  32. package/dist/{bind-CJf7S-Jd.js → bind-B4Z0U2Gr.js} +5 -5
  33. package/dist/{bind-XvnD_SUz.d.ts → bind-CnOMjazH.d.ts} +7 -7
  34. package/dist/{build-instance-CkRKgjSj.js → build-instance-B0vsViF5.js} +3 -25
  35. package/dist/{capability-zN6T9fxe.js → capability-CenWwTMR.js} +1 -1
  36. package/dist/{capability-v2xZB7us.d.ts → capability-YkRMUAsF.d.ts} +2 -2
  37. package/dist/{casbin-BOZN1P2Y.js → casbin-D5evU3lX.js} +1 -1
  38. package/dist/{casbin-v9Xo_XPa.js → casbin-imBS3UIf.js} +1 -1
  39. package/dist/catalog/index.d.ts +5 -5
  40. package/dist/catalog/index.js +5 -5
  41. package/dist/catalog-C462QC3A.js +1 -0
  42. package/dist/{catalog-DjDc87R2.js → catalog-CoyKnU5c.js} +1 -1
  43. package/dist/{catalog-s0waIrfY.js → catalog-Y4CjN8NA.js} +4 -4
  44. package/dist/{catalog-operations-BD22drQf.js → catalog-operations-Do1eD-Rt.js} +1 -1
  45. package/dist/{challenge-DbkpCx_v.js → challenge-B__LcNve.js} +3 -3
  46. package/dist/chat/index.d.ts +1 -1
  47. package/dist/chat/index.js +3 -2
  48. package/dist/chat-sdk/index.d.ts +3 -3
  49. package/dist/claude-agent/index.d.ts +3 -3
  50. package/dist/claude-agent/index.js +2 -2
  51. package/dist/clerk/index.d.ts +3 -3
  52. package/dist/cli/bin.js +1 -1
  53. package/dist/cli/index.d.ts +8 -7
  54. package/dist/cli/index.js +3 -3
  55. package/dist/cloud/index.d.ts +8 -8
  56. package/dist/cloud/index.js +3 -3
  57. package/dist/{cloud-CB0btByh.js → cloud-DWCeStPH.js} +2 -2
  58. package/dist/{codemod-C3a3Iz_w.js → codemod-B7QKJ_ak.js} +2 -2
  59. package/dist/{codemod-B-duJDFD.js → codemod-BaPmaCYQ.js} +13 -6
  60. package/dist/{collect-DN_x7hvV.js → collect-Cr71JA7z.js} +8 -7
  61. package/dist/{collect-DMQ6Sxr6.js → collect-ScSG05VJ.js} +2 -2
  62. package/dist/collect-W9i7REKT.js +1 -0
  63. package/dist/compile/index.d.ts +1 -1
  64. package/dist/compile/index.js +1 -1
  65. package/dist/{compile-B_oJqmIg.js → compile-Cvru58id.js} +2 -2
  66. package/dist/{compile-DonvwG9x.d.ts → compile-DC-BrhH1.d.ts} +3 -3
  67. package/dist/{completion-6IshPaPd.js → completion-DOUMyCwa.js} +1 -1
  68. package/dist/{delegation-aK4T_5WU.js → condition-evaluate-bVVRSdzq.js} +159 -159
  69. package/dist/{config-C45X7mpm.js → config-DRp-E8Ly.js} +1 -1
  70. package/dist/{config-D2oXUwos.js → config-DyNanTjZ.js} +10 -8
  71. package/dist/{config-report-Bmo62RRr.js → config-report-Bh_nLdAE.js} +2 -2
  72. package/dist/{config-shape-D9paLhEX.js → config-shape-C4zqzG2K.js} +9 -2
  73. package/dist/{context-YhyXyqBI.js → context-Cem4QafV.js} +2 -2
  74. package/dist/convex/index.d.ts +5 -5
  75. package/dist/convex/index.js +2 -2
  76. package/dist/{core-Dxkwz4xR.js → core-CUjhfz0W.js} +6 -6
  77. package/dist/{core-9KbhurkH.d.ts → core-D2JNg5jA.d.ts} +3 -3
  78. package/dist/coverage-D8jBJdgD.d.ts +114 -0
  79. package/dist/coverage-Dh2W_DmF.js +211 -0
  80. package/dist/{create-DH4ZD0A7.d.ts → create-B2tdOygC.d.ts} +7 -7
  81. package/dist/{create-Q0wF9Elt.js → create-BJ2_8NDO.js} +5 -5
  82. package/dist/{create-BRiRVNUO.js → create-BsL5lCWR.js} +8 -7
  83. package/dist/{create-BzgDDamI.d.ts → create-CPDSbK1a.d.ts} +5 -5
  84. package/dist/{create-BQOQkYYg.d.ts → create-oMCcZV4X.d.ts} +9 -9
  85. package/dist/{credential-B3Hj4puZ.js → credential-Bap3HClV.js} +4 -4
  86. package/dist/{server-D0PW6ZCw.js → credentials-BXV0oz56.js} +3 -146
  87. package/dist/credentials-DPX140fN.d.ts +125 -0
  88. package/dist/delivery/index.d.ts +4 -4
  89. package/dist/delivery/index.js +1 -1
  90. package/dist/{denied-text-De8cw3MW.d.ts → denied-text-BXQkWU7d.d.ts} +2 -2
  91. package/dist/{describe-DibQM6g-.d.ts → describe-DVobr5FX.d.ts} +2 -2
  92. package/dist/{diff-BJv7I3GR.js → diff-BR9JArxz.js} +6 -6
  93. package/dist/{diff-3fpwo3UD.js → diff-Jc_kbDz-.js} +1 -1
  94. package/dist/{doctor-Bz7s3JYD.js → doctor-BBMW5ZT_.js} +310 -36
  95. package/dist/{doctor-keoa9DpH.js → doctor-DhqSiPkq.js} +3 -3
  96. package/dist/drizzle/index.d.ts +3 -3
  97. package/dist/drizzle/index.js +1 -1
  98. package/dist/elysia/index.d.ts +5 -5
  99. package/dist/elysia/index.js +3 -3
  100. package/dist/{errors-OTE9u4Wk.d.ts → errors-D_JIQJYb.d.ts} +1 -1
  101. package/dist/{evaluate-Dcq_U2TV.js → evaluate-B5yZHmts.js} +16 -16
  102. package/dist/{evaluations-CNMVJVD6.js → evaluations-BzTDWO4m.js} +57 -57
  103. package/dist/{evaluations-OCm_Z-8V.d.ts → evaluations-DQYfh4Jh.d.ts} +3 -3
  104. package/dist/eve/index.d.ts +5 -5
  105. package/dist/eve/index.js +3 -3
  106. package/dist/express/index.d.ts +5 -5
  107. package/dist/express/index.js +3 -3
  108. package/dist/fastify/index.d.ts +5 -5
  109. package/dist/fastify/index.js +3 -3
  110. package/dist/{fetch-adapter-BlL-ZhHq.d.ts → fetch-adapter-DxqsIXSO.d.ts} +4 -4
  111. package/dist/{fetch-adapter-4EB3cLgB.js → fetch-adapter-MoYZ-vF5.js} +3 -3
  112. package/dist/{fields-D_TfExiI.js → fields-CVyOk-f1.js} +2 -2
  113. package/dist/{fixtures-Cemqurt8.js → fixtures-BVZc7OCF.js} +1 -1
  114. package/dist/{from-snapshot-DHnb8Fh4.js → from-snapshot-oR_N97dM.js} +346 -14
  115. package/dist/{gen-DYF4LKUP.js → gen-DXXoFjyf.js} +1 -1
  116. package/dist/{gen-Cf7nQsOb.js → gen-WdycZ_-b.js} +5 -5
  117. package/dist/{grantee-conditions-DX4K_gGI.js → grantee-conditions-Dzprappv.js} +1 -1
  118. package/dist/{grantee-match-BP-k4vRJ.js → grantee-match-8J2y60MF.js} +3 -3
  119. package/dist/h3/index.d.ts +4 -4
  120. package/dist/h3/index.js +3 -3
  121. package/dist/{helpers-D-MXwkOF.js → helpers-DzBIfL1N.js} +25 -25
  122. package/dist/hono/index.d.ts +5 -5
  123. package/dist/hono/index.js +3 -3
  124. package/dist/{hosted-C2Pmhy2x.js → hosted-C5I2TSXm.js} +4 -4
  125. package/dist/{hosted-yhyAuQkL.d.ts → hosted-DXq1plaP.d.ts} +1 -1
  126. package/dist/{http-DhMWeB_h.js → http-dptLQzPP.js} +1 -1
  127. package/dist/{expiry-6XByK0dm.js → ids-DzhJaCUj.js} +23 -23
  128. package/dist/{import-CQ_kH_Ny.js → import-BE5sDazm.js} +2 -2
  129. package/dist/{import-C2ExjVvv.js → import-CvXswHDy.js} +2 -2
  130. package/dist/index-BcS8c_2S.d.ts +101 -0
  131. package/dist/{index--AwSBzJC.d.ts → index-BdZpqhJK.d.ts} +2 -2
  132. package/dist/{index-CLbGOPBr.d.ts → index-C-R8lBPb.d.ts} +3 -3
  133. package/dist/{index-Do7FqHEr.d.ts → index-C_8uxAlv.d.ts} +5 -5
  134. package/dist/{index-tuR-kZoJ.d.ts → index-Cjfa1Uwr.d.ts} +21 -40
  135. package/dist/{index-BqzpT-90.d.ts → index-iIsqXFVu.d.ts} +6 -6
  136. package/dist/index.d.ts +19 -20
  137. package/dist/index.js +25 -24
  138. package/dist/{init-kTFkEu8S.js → init-B_S8Xdz1.js} +4 -4
  139. package/dist/{init-DvkvbvZ_.js → init-CqGHcvyR.js} +2 -2
  140. package/dist/{instance-options-Cq66kEeR.d.ts → instance-options-C6gEDOts.d.ts} +1 -1
  141. package/dist/instance-options-URVwqpMW.js +24 -0
  142. package/dist/{instance-snapshot-Bi4-dJk0.js → instance-snapshot-D_dGTq--.js} +9 -9
  143. package/dist/jwt/index.d.ts +4 -4
  144. package/dist/jwt/index.js +2 -2
  145. package/dist/{kernel-CLEzDmbv.js → kernel-NmxiWII2.js} +8 -8
  146. package/dist/kysely/index.d.ts +3 -3
  147. package/dist/kysely/index.js +1 -1
  148. package/dist/limits-CAhpRrhk.js +167 -0
  149. package/dist/{load-BaEamml-.js → load-C4p4VgwR.js} +2 -2
  150. package/dist/load-DiBUJx77.js +1 -0
  151. package/dist/{login-9ycIcJZH.js → login-CzwlsBEO.js} +4 -4
  152. package/dist/{login-CM_etiLM.js → login-DoLxv1s5.js} +3 -3
  153. package/dist/{manifest-CCd-xrM3.js → manifest-BAf7cgRx.js} +35 -35
  154. package/dist/{map-claims-PQwHynxV.js → map-claims-CAa_bQt9.js} +1 -1
  155. package/dist/{map-error-EOhahOVA.js → map-error-p4ROJ_26.js} +1 -1
  156. package/dist/mcp/index.d.ts +9 -9
  157. package/dist/mcp/index.js +9 -8
  158. package/dist/{migrate-CkLHdwuH.js → migrate-DVsxeE0y.js} +1 -1
  159. package/dist/{module-values-BYuNtdK5.js → module-values-BLiVlO1X.js} +3 -3
  160. package/dist/nest/index.d.ts +5 -5
  161. package/dist/nest/index.js +3 -3
  162. package/dist/next/index.d.ts +43 -17
  163. package/dist/next/index.js +54 -21
  164. package/dist/next/plugin.d.ts +1 -1
  165. package/dist/next/plugin.js +1 -1
  166. package/dist/node/index.d.ts +5 -5
  167. package/dist/node/index.js +2 -2
  168. package/dist/openai/index.d.ts +5 -5
  169. package/dist/openai/index.js +3 -3
  170. package/dist/openapi/index.d.ts +5 -59
  171. package/dist/openapi/index.js +3 -2
  172. package/dist/{openapi-BOsx0xn9.js → openapi-Cc-aS9xC.js} +6 -135
  173. package/dist/{openapi-QnnU2A1c.js → openapi-DroBcLJZ.js} +2 -2
  174. package/dist/{openapi-DA7FVG2F.js → openapi-EmvKwuWj.js} +4 -4
  175. package/dist/{operations-Ci_rT6Uo.d.ts → operations-BMPx7HyO.d.ts} +1 -1
  176. package/dist/optional-8TKc-0j4.js +47 -0
  177. package/dist/orpc/index.d.ts +7 -7
  178. package/dist/orpc/index.js +4 -4
  179. package/dist/otel/index.d.ts +3 -3
  180. package/dist/otel/index.js +1 -1
  181. package/dist/{output-KT0a3B3H.js → output-CYgfpT6o.js} +1 -1
  182. package/dist/{ownership-CeNOtQMV.js → ownership-adPAsUwY.js} +15 -13
  183. package/dist/{parse-CXTT7hBq.js → parse-CORUNcCo.js} +1 -1
  184. package/dist/{parse-local-manifest-CE4tgFsj.d.ts → parse-local-manifest-BaCqsqwC.d.ts} +1 -1
  185. package/dist/pdp/index.d.ts +3 -3
  186. package/dist/pdp/index.js +4 -3
  187. package/dist/{permdock-DbAq8_Fp.js → permdock-B5LyNVgn.js} +70 -34
  188. package/dist/{permdock-CsrvbzHk.d.ts → permdock-BaB-KQqn.d.ts} +46 -9
  189. package/dist/{permissions-Dz79qsFw.js → permissions-COpRGKt7.js} +1 -1
  190. package/dist/{permissions-Bx6UI8n1.d.ts → permissions-DriWkV7q.d.ts} +1 -2
  191. package/dist/{policy-from-catalog-BtqfxytV.js → policy-from-catalog-Cy103lsm.js} +8 -8
  192. package/dist/{policy-types-BI9C5Sp5.d.ts → policy-types-rNfz7t0M.d.ts} +9 -3
  193. package/dist/{policy-CaAME-Rh.js → policy-wGzbAPQF.js} +7 -7
  194. package/dist/{policy-Dh9WVSVz.d.ts → policy-x8RBKW8d.d.ts} +2 -2
  195. package/dist/{postgrest-CWCCbaxm.d.ts → postgrest-Cn0Res25.d.ts} +9 -21
  196. package/dist/powersync-BdoR7nwS.js +1 -0
  197. package/dist/{powersync-CWsN-QaK.js → powersync-BeI0VmEK.js} +2 -2
  198. package/dist/{powersync-DiqY3VBG.js → powersync-Dpa5AnnN.js} +11 -11
  199. package/dist/preset/index.js +1 -1
  200. package/dist/{preset-pPrVyGU5.js → preset-Bn5Z54cH.js} +5 -6
  201. package/dist/prisma/index.d.ts +2 -2
  202. package/dist/prisma/index.js +1 -1
  203. package/dist/{protected-action-CuG0xz4P.d.ts → protected-action-C4aj1KjO.d.ts} +6 -7
  204. package/dist/{protected-action-CD1HXwQK.js → protected-action-E7Sdt_Dt.js} +1 -1
  205. package/dist/{provider-ihxuJbMi.d.ts → provider-B-1DlOGM.d.ts} +1 -1
  206. package/dist/{provider-qESIf_C0.js → provider-DKO9KHua.js} +2 -2
  207. package/dist/{provider-store-BTHGJH9j.js → provider-store-D4PU1my_.js} +2 -2
  208. package/dist/{pull-B4EhSqOG.js → pull-3tkn25ll.js} +5 -5
  209. package/dist/pull-D90HqWNP.js +1 -0
  210. package/dist/{push-DYOI4bPf.js → push-dMyKdlEm.js} +6 -6
  211. package/dist/{pushed-policy-Dszouliu.js → pushed-policy-Bi5-il4C.js} +2 -2
  212. package/dist/{pushed-policy-P0hgyLBh.d.ts → pushed-policy-P55cJNx5.d.ts} +1 -1
  213. package/dist/react/index.d.ts +6 -6
  214. package/dist/react/index.js +3 -3
  215. package/dist/react/provider-client.d.ts +1 -1
  216. package/dist/react/provider-client.js +1 -1
  217. package/dist/react-native/index.d.ts +9 -9
  218. package/dist/react-native/index.js +7 -7
  219. package/dist/{relation-walk-DK_gkgL7.js → relation-walk-BDTaTKTM.js} +1 -1
  220. package/dist/{relations-BxvRvDHK.js → relations-CMsJ1ARY.js} +1 -1
  221. package/dist/{replay-DYXI4gRN.d.ts → replay-DKhFvt0L.d.ts} +1 -1
  222. package/dist/{request-context-VjeXst1z.js → request-context-5gl_oxO1.js} +2 -2
  223. package/dist/resend/index.d.ts +4 -4
  224. package/dist/resend/index.js +2 -2
  225. package/dist/{resolve-names-BIHnWL_L.js → resolve-names-BnGJU88N.js} +4 -4
  226. package/dist/{rls-C7qXye9M.js → rls-DIYSRnDZ.js} +1 -1
  227. package/dist/{rls-CMFZWosz.js → rls-qrehUPf_.js} +45 -18
  228. package/dist/{role-builder-C5AgaC1x.js → role-builder-boQiUvfo.js} +3 -3
  229. package/dist/{rpc-CYXICjM1.d.ts → rpc-BqRiVpbP.d.ts} +2 -2
  230. package/dist/{rpc-BNIQwEB6.js → rpc-Dhi55Whd.js} +2 -2
  231. package/dist/run-elFdnSZx.js +1 -0
  232. package/dist/{run-CMJX9x7b.js → run-oNqBe0gc.js} +3 -3
  233. package/dist/{run-ticket-CjvXr6wj.js → run-ticket-Ddxt9OuU.js} +2 -2
  234. package/dist/{run-ticket-BXYqQ9dy.d.ts → run-ticket-Dulj4RQk.d.ts} +2 -2
  235. package/dist/{saas-DHFfthXv.js → saas-DABv6vjy.js} +6 -5
  236. package/dist/{scan-CSOkcNdl.js → scan-BYXqcgON.js} +1 -1
  237. package/dist/{schema-7pXCaRYB.js → schema-Wf-SvlHG.js} +1 -1
  238. package/dist/scim/index.d.ts +1 -1
  239. package/dist/scim/index.js +1 -1
  240. package/dist/{scopes-BSdYaGHs.js → scopes-gdH__vDZ.js} +1 -1
  241. package/dist/server/index.d.ts +11 -10
  242. package/dist/server/index.js +7 -6
  243. package/dist/server-CKjFooaJ.js +147 -0
  244. package/dist/{server-types-Bfl-IrzZ.d.ts → server-types--_Hann81.d.ts} +9 -9
  245. package/dist/{shared-sW3VYchq.js → shared-DfaIWvIJ.js} +11 -2
  246. package/dist/{sink-RwmP7ZHs.d.ts → sink-Cs6z34AX.d.ts} +4 -4
  247. package/dist/{skills-DAjg-rgF.js → skills-417bOj4o.js} +1 -1
  248. package/dist/{skills-DrX83QBK.js → skills-B9U465B7.js} +2 -2
  249. package/dist/{snapshot-DHPih65J.js → snapshot-C2j96x97.js} +4 -4
  250. package/dist/{snapshot-cache-MPinwwgZ.d.ts → snapshot-cache-Cc7VNabe.d.ts} +1 -1
  251. package/dist/solid/index.d.ts +6 -7
  252. package/dist/solid/index.js +2 -2
  253. package/dist/solid-start/index.d.ts +6 -6
  254. package/dist/solid-start/index.js +3 -3
  255. package/dist/{sources-sgQlMfmz.d.ts → sources-BfTza0zT.d.ts} +1 -1
  256. package/dist/{src-Cop53_X1.js → src-BG9YJM3Q.js} +96 -247
  257. package/dist/ssf/index.d.ts +3 -3
  258. package/dist/ssf/index.js +3 -3
  259. package/dist/{standard-webhooks-CFZIYtBF.d.ts → standard-webhooks-CJBgfl7y.d.ts} +2 -2
  260. package/dist/{store-CSOsXd5s.js → store-BpKH-pLm.js} +2 -2
  261. package/dist/{store-CRQ5VrWR.d.ts → store-DSyjHD5-.d.ts} +5 -5
  262. package/dist/{store-options-CDvoX52-.js → store-options-CXv6BHH6.js} +5 -6
  263. package/dist/{stores-PpYVQ5yF.js → stores-BuqAHjp_.js} +1 -1
  264. package/dist/{stores-pEBMy94l.d.ts → stores-C6-7TPTV.d.ts} +6 -7
  265. package/dist/{postgrest-BrjrckDG.js → subject-BqFwS6l3.js} +214 -319
  266. package/dist/subject-cache-BT1fGuea.js +193 -0
  267. package/dist/subject-cache-d_Z4KAnm.d.ts +144 -0
  268. package/dist/supabase/index.d.ts +6 -5
  269. package/dist/supabase/index.js +3 -2
  270. package/dist/supabase/middleware.d.ts +6 -6
  271. package/dist/supabase/middleware.js +6 -6
  272. package/dist/{supabase-Cbl2orB2.js → supabase-D0J99yqL.js} +2 -2
  273. package/dist/{supabase-CVZuytCC.js → supabase-DnazO6W4.js} +3 -3
  274. package/dist/{supabase-hook-BUcu3vPM.js → supabase-hook-Bh5syR9N.js} +174 -62
  275. package/dist/supabase-hook-CVAenq-w.js +1 -0
  276. package/dist/{supautils-a_253u1X.js → supautils-ChXR-4Or.js} +302 -43
  277. package/dist/{support-session-BsmPCbz8.js → support-session-BGeEYDSq.js} +2 -2
  278. package/dist/svelte/index.d.ts +5 -5
  279. package/dist/svelte/index.js +3 -3
  280. package/dist/svelte/runtime.d.ts +3 -3
  281. package/dist/svelte/runtime.js +1 -1
  282. package/dist/svelte/source.d.ts +5 -5
  283. package/dist/svelte/source.js +2 -2
  284. package/dist/sveltekit/index.d.ts +6 -6
  285. package/dist/sveltekit/index.js +2 -2
  286. package/dist/{tables-XrvffTMj.js → tables-CbEOy2Ma.js} +137 -55
  287. package/dist/tanstack-start/index.d.ts +6 -6
  288. package/dist/tanstack-start/index.js +2 -2
  289. package/dist/{tenancy-DvOHHk3-.js → tenancy-BlxY5T0q.js} +2 -2
  290. package/dist/terminal/index.d.ts +6 -6
  291. package/dist/terminal/index.js +6 -6
  292. package/dist/testing/core.d.ts +1 -1
  293. package/dist/testing/core.js +1 -1
  294. package/dist/testing/fixtures/index.d.ts +35 -2
  295. package/dist/testing/fixtures/index.js +39 -2
  296. package/dist/testing/index.d.ts +41 -25
  297. package/dist/testing/index.js +114 -26
  298. package/dist/testing/saas/index.d.ts +5 -5
  299. package/dist/testing/saas/index.js +2 -2
  300. package/dist/testing/saas/permissions.d.ts +1 -1
  301. package/dist/testing/saas/permissions.js +1 -1
  302. package/dist/trpc/index.d.ts +6 -6
  303. package/dist/trpc/index.js +4 -4
  304. package/dist/{type-helpers-BjOLGVy1.d.ts → type-helpers-iXJEIDe7.d.ts} +3 -4
  305. package/dist/{types-p8mhWTcR.d.ts → types-B9F0EZAF.d.ts} +3 -3
  306. package/dist/{types-DZwEOsK1.d.ts → types-BSNZMp5b.d.ts} +1 -1
  307. package/dist/{types-MixnvXQ5.d.ts → types-BpxdxaRD.d.ts} +5 -5
  308. package/dist/{types-C3C9ien9.d.ts → types-CD1qmxdx.d.ts} +4 -4
  309. package/dist/{types-D1NjjwI4.d.ts → types-CS1DI_Ke.d.ts} +40 -9
  310. package/dist/{types-zh4WGQcP.d.ts → types-C_a44wSr.d.ts} +3 -3
  311. package/dist/{types-DBVSljAx.d.ts → types-Cq2rvv-C.d.ts} +3 -3
  312. package/dist/{types--_lpWUGV.d.ts → types-CuDXvyIT.d.ts} +5 -5
  313. package/dist/{types-7Vlz1Wi2.d.ts → types-DAyp592k.d.ts} +2 -2
  314. package/dist/{types-DjGZAU64.d.ts → types-NikV1pND.d.ts} +4 -4
  315. package/dist/{types-BzxA2OAD.d.ts → types-ZfjQB0KC.d.ts} +2 -2
  316. package/dist/{types-DotXrris.d.ts → types-_pi9kxS2.d.ts} +2 -2
  317. package/dist/unplugin/index.d.ts +1 -1
  318. package/dist/unplugin/index.js +1 -1
  319. package/dist/{usage-DPbdI3Vi.js → usage-0wsl83uw.js} +10 -10
  320. package/dist/{usage-DHsqp4lN.js → usage-Bl-BkXEq.js} +1 -1
  321. package/dist/usage-CmyGbo4e.js +1 -0
  322. package/dist/{validation-error-DkOK9zUE.d.ts → validation-error-DLAYFlkr.d.ts} +1 -1
  323. package/dist/{verify-C0jGJrmb.js → verify-BSLotSa0.js} +41 -24
  324. package/dist/version-sources-BC3hf2ME.js +34 -0
  325. package/dist/{permission-types-CAY-GU7e.d.ts → vocabulary-DeZvUaTw.d.ts} +69 -1
  326. package/dist/vue/index.d.ts +6 -7
  327. package/dist/vue/index.js +2 -2
  328. package/dist/{waiter-BjVI_Byg.d.ts → waiter-cbK1CBhT.d.ts} +2 -2
  329. package/dist/{watch-Dz2LNM1R.js → watch-BigZ260i.js} +2 -2
  330. package/dist/watch-CHURMgrv.js +1 -0
  331. package/dist/webmcp/index.d.ts +2 -2
  332. package/dist/{who-can-CZeAwQZD.js → who-can-CjfMP9a4.js} +8 -8
  333. package/dist/workflow/index.d.ts +3 -3
  334. package/dist/workflow/index.js +6 -5
  335. package/dist/workflow-sdk/index.d.ts +5 -5
  336. package/dist/{wrap-EQ6Or2Hi.d.ts → wrap-B-k2qHJx.d.ts} +2 -2
  337. package/package.json +16 -4
  338. package/skills/permdock-wire/references/presets-and-recipes.md +2 -2
  339. package/dist/better-supabase-ayun1IKE.js +0 -122
  340. package/dist/catalog-BTPySmbp.js +0 -1
  341. package/dist/collect-eSTXOZDC.js +0 -1
  342. package/dist/index-DuOF7OqS.d.ts +0 -222
  343. package/dist/load-CjnlPxpL.js +0 -1
  344. package/dist/powersync-CWCirKAJ.js +0 -1
  345. package/dist/pull-VzcECZ-R.js +0 -1
  346. package/dist/run-D2e1tybu.js +0 -1
  347. package/dist/supabase-hook-QWphWBnG.js +0 -1
  348. package/dist/usage-dmSjKx-Z.js +0 -1
  349. package/dist/version-cache-q5cpaDSt.d.ts +0 -57
  350. package/dist/vocabulary-DEJ5j4mR.d.ts +0 -70
  351. package/dist/watch-CS69ftMP.js +0 -1
  352. package/dist/where-scope-BAyOsPQW.js +0 -332
  353. package/dist/{approval-normalize-hlfO9BJv.js → approval-normalize-DNLW0zOM.js} +1 -1
  354. package/dist/{body-C9JbIoqb.js → body-B3ylkmmE.js} +1 -1
  355. package/dist/{catalog-doc-nrgfbh8I.js → catalog-doc-Zi0jRpyH.js} +2 -2
  356. package/dist/{device-BwbJNmb2.js → device-BkSynWdg.js} +1 -1
  357. package/dist/{prompt-BYc6drYW.js → prompt-D1Gj1W4Y.js} +1 -1
  358. package/dist/{scim-C30QBBoF.js → scim-BG6uPUeW.js} +1 -1
  359. package/dist/{wrap-C5PWzgkq.js → wrap-BKU5Arsu.js} +1 -1
@@ -1,31 +1,31 @@
1
- import { Ct as WhereCompiler, D as Policy, G as CredentialVerifier, X as DecisionSink, Y as DecisionProvider, Z as EntitlementSource, _t as TokenSigner, ct as RelationSource, dn as DeliveryChannel, en as Snapshot, it as MembershipSource, lt as SettingsSource, mt as SubjectResolver, nt as LimitStore, q as CustomRoleSource, ut as SnapshotSource, vr as Membership, vt as TokenVerifier, xr as Subject, yr as Principal } from "../policy-types-BI9C5Sp5.js";
2
- import { g as ResourceInit, l as InferPermissionTree, u as Permission } from "../permission-types-CAY-GU7e.js";
3
- import { r as Role } from "../vocabulary-DEJ5j4mR.js";
4
- import { st as LegacyCheck } from "../index-tuR-kZoJ.js";
5
- import { i as ApprovalPolicySource } from "../approval-policies-CKlByf5o.js";
6
- import { _ as PrincipalSource, a as PermDock, b as Limits, h as PrincipalIdentity, u as SnapshotOptions, w as InstanceCache } from "../permdock-CsrvbzHk.js";
7
- import { s as PolicySource } from "../hosted-yhyAuQkL.js";
8
- import { a as ApprovalDelegationSource, m as ApprovalStore } from "../types-BzxA2OAD.js";
9
- import { a as ProblemDetails } from "../errors-OTE9u4Wk.js";
10
- import { c as ModelMap, t as AgentPermDock, u as ToolMap } from "../create-BQOQkYYg.js";
11
- import { c as AccessReviewStore } from "../types-DZwEOsK1.js";
12
- import { R as IdempotencyStore } from "../index-Do7FqHEr.js";
1
+ import { Ct as WhereCompiler, D as Policy, G as CredentialVerifier, X as DecisionSink, Y as DecisionProvider, Z as EntitlementSource, _t as TokenSigner, ct as RelationSource, dn as DeliveryChannel, en as Snapshot, it as MembershipSource, lt as SettingsSource, mt as SubjectResolver, nt as LimitStore, q as CustomRoleSource, ut as SnapshotSource, vr as Membership, vt as TokenVerifier, xr as Subject, yr as Principal } from "../policy-types-rNfz7t0M.js";
2
+ import { A as ResourceInit, C as InferPermissionTree, r as Role, w as Permission } from "../vocabulary-DeZvUaTw.js";
3
+ import { st as LegacyCheck } from "../index-Cjfa1Uwr.js";
4
+ import { i as ApprovalPolicySource } from "../approval-policies-UnDSxT__.js";
5
+ import { T as InstanceCache, _ as PrincipalSource, a as PermDock, h as PrincipalIdentity, u as SnapshotOptions, x as Limits } from "../permdock-BaB-KQqn.js";
6
+ import { s as PolicySource } from "../hosted-DXq1plaP.js";
7
+ import { a as ApprovalDelegationSource, m as ApprovalStore } from "../types-ZfjQB0KC.js";
8
+ import { a as ProblemDetails } from "../errors-D_JIQJYb.js";
9
+ import { c as ModelMap, t as AgentPermDock, u as ToolMap } from "../create-oMCcZV4X.js";
10
+ import { l as VersionStore, n as SubjectCache, s as VersionCache } from "../subject-cache-d_Z4KAnm.js";
11
+ import { c as AccessReviewStore } from "../types-BSNZMp5b.js";
12
+ import { R as IdempotencyStore } from "../index-C_8uxAlv.js";
13
13
  import { n as RevocationFeed } from "../revocations-BaUXHM1N.js";
14
- import { s as SupportSessionSource } from "../index-DuOF7OqS.js";
15
- import { n as VersionCache } from "../version-cache-q5cpaDSt.js";
14
+ import { s as SupportSessionSource } from "../index-BcS8c_2S.js";
16
15
  import { r as SupabaseHookManifest } from "../manifest-B5yF3CIq.js";
17
16
  import { t as supabaseMembershipsBudget } from "../budget-CNLsV2SL.js";
18
- import { a as AutomationSource, t as Automation } from "../automation-CpOk7Tlu.js";
19
- import { c as DeliveryTransport, g as TransportMessages } from "../types-p8mhWTcR.js";
20
- import { t as CloudApproverOptions } from "../types--_lpWUGV.js";
21
- import { n as ApprovalWaiter } from "../waiter-BjVI_Byg.js";
22
- import { g as SetQueue, l as ReplayStore } from "../types-DBVSljAx.js";
23
- import { r as SnapshotStorage } from "../types-DjGZAU64.js";
24
- import { x as DirectoryStore } from "../index-CLbGOPBr.js";
25
- import { S as SsfStreamStore } from "../index--AwSBzJC.js";
26
- import { S as policyMatrix, _ as DescribePolicyConfig, a as OrmParityScenario, b as PolicyMatrixCell, c as RlsFieldsOutcome, d as RlsParityOptions, f as RlsParityReport, g as testRlsParity, h as RlsQueryResult, i as OrmParityRunInput, l as RlsParityCase, m as RlsQueryFn, n as OrmParityOptions, o as testOrmParity, p as RlsParitySubject, r as OrmParityReport, s as RlsDbOutcome, t as OrmParityCase, u as RlsParityFixture, v as MatrixCell, x as PolicyMatrixReport, y as MatrixOutcome } from "../core-9KbhurkH.js";
27
- import { a as SaasProject } from "../permissions-Bx6UI8n1.js";
28
- import { n as saasPolicy } from "../policy-Dh9WVSVz.js";
17
+ import { a as AutomationSource, t as Automation } from "../automation-B20_8UoT.js";
18
+ import { c as DeliveryTransport, g as TransportMessages } from "../types-B9F0EZAF.js";
19
+ import { t as CloudApproverOptions } from "../types-CuDXvyIT.js";
20
+ import { n as ApprovalWaiter } from "../waiter-cbK1CBhT.js";
21
+ import { g as SetQueue, l as ReplayStore } from "../types-Cq2rvv-C.js";
22
+ import { c as OperationPermissions, n as OperationCoverageOptions } from "../coverage-D8jBJdgD.js";
23
+ import { r as SnapshotStorage } from "../types-NikV1pND.js";
24
+ import { x as DirectoryStore } from "../index-C-R8lBPb.js";
25
+ import { S as SsfStreamStore } from "../index-BdZpqhJK.js";
26
+ import { S as policyMatrix, _ as DescribePolicyConfig, a as OrmParityScenario, b as PolicyMatrixCell, c as RlsFieldsOutcome, d as RlsParityOptions, f as RlsParityReport, g as testRlsParity, h as RlsQueryResult, i as OrmParityRunInput, l as RlsParityCase, m as RlsQueryFn, n as OrmParityOptions, o as testOrmParity, p as RlsParitySubject, r as OrmParityReport, s as RlsDbOutcome, t as OrmParityCase, u as RlsParityFixture, v as MatrixCell, x as PolicyMatrixReport, y as MatrixOutcome } from "../core-D2JNg5jA.js";
27
+ import { a as SaasProject } from "../permissions-DriWkV7q.js";
28
+ import { n as saasPolicy } from "../policy-x8RBKW8d.js";
29
29
  import { expectTypeOf } from "vitest";
30
30
  //#region src/testing/describe-policy.d.ts
31
31
  /** `policyMatrix` under Vitest: one test per cell, plus the exhaustive check. */
@@ -54,6 +54,15 @@ type ClientParityOptions = {
54
54
  */
55
55
  export declare function testClientParity(policy: Policy, cases: readonly ClientParityCase[], options?: ClientParityOptions): void;
56
56
  //#endregion
57
+ //#region src/testing/operation-coverage.d.ts
58
+ /**
59
+ * Two tests over the declared operations and an OpenAPI document: every
60
+ * operation under `tenantPaths` has an entry, and every entry matches an
61
+ * operation. An undeclared tenant operation is denied by a gate, so this
62
+ * catches a route added without a permission before it ships.
63
+ */
64
+ export declare function testOperationCoverage(operations: OperationPermissions, document: unknown, options: OperationCoverageOptions): void;
65
+ //#endregion
57
66
  //#region src/testing/legacy-parity.d.ts
58
67
  type LegacyParityCase = {
59
68
  readonly name: string;
@@ -642,7 +651,14 @@ export declare function testSnapshotSource(source: SnapshotSource): void;
642
651
  export declare function testPolicySource(source: PolicySource, options?: {
643
652
  readonly policy?: Policy;
644
653
  }): void;
654
+ export declare function testVersionStore(store: VersionStore): void;
645
655
  export declare function testVersionCache(cache: VersionCache): void;
656
+ /**
657
+ * The `SubjectCache` contract: a record answers only at the version it was
658
+ * stored at, a lower version never replaces a higher one, a read at a newer
659
+ * version drops the record, and `evict` removes it.
660
+ */
661
+ export declare function testSubjectCache(cache: SubjectCache): void;
646
662
  /**
647
663
  * The `InstanceCache` contract: one build per key while it lives, a shared
648
664
  * build in flight, no stored rejection, and `evict` dropping a principal's
@@ -1,45 +1,47 @@
1
1
  import { r as isRecord } from "../compact-CAf557ZB.js";
2
2
  import { n as freezeDeep } from "../freeze-jjan0lCv.js";
3
3
  import { i as principal } from "../refs-C8BKxc_e.js";
4
- import { n as role, r as allow } from "../role-builder-C5AgaC1x.js";
5
- import { A as memoryCustomRoleSource, C as limits, D as approvalPoliciesFor, d as snapshotFor, w as memoryLimitStore } from "../src-Cop53_X1.js";
6
- import { t as memoryRevocationFeed } from "../revocations-Bhr0aMIC.js";
4
+ import { n as role, r as allow } from "../role-builder-boQiUvfo.js";
5
+ import { D as memoryCustomRoleSource, d as snapshotFor, w as approvalPoliciesFor } from "../src-BG9YJM3Q.js";
7
6
  import { n as loadPrincipalByIdentity, t as loadPrincipal } from "../principal-source-C6N60GtM.js";
7
+ import { n as fromSnapshot } from "../from-snapshot-oR_N97dM.js";
8
8
  import { v as resource } from "../permission-registry-B8tYxPIt.js";
9
- import { d as isoNow, f as nowMillis, p as nowSeconds, u as isoAt } from "../time-nR1JesoH.js";
10
- import { r as parseAutomation } from "../automation-x3KEUusw.js";
11
- import { d as scopeList, o as normalizeMemberships } from "../scopes-BSdYaGHs.js";
12
- import { u as evaluateCondition } from "../delegation-aK4T_5WU.js";
13
9
  import { a as authenticated } from "../grantee-Dke-9rd1.js";
10
+ import { d as isoNow, f as nowMillis, p as nowSeconds, u as isoAt } from "../time-nR1JesoH.js";
11
+ import { d as scopeList, o as normalizeMemberships } from "../scopes-gdH__vDZ.js";
12
+ import { t as evaluateCondition } from "../condition-evaluate-bVVRSdzq.js";
13
+ import { n as parseSnapshot } from "../snapshot-C2j96x97.js";
14
+ import { t as getPermDock } from "../permdock-B5LyNVgn.js";
15
+ import { t as memoryRevocationFeed } from "../revocations-Bhr0aMIC.js";
16
+ import { r as parseAutomation } from "../automation-BueW05db.js";
14
17
  import { t as byCodePoint } from "../compare-DTfyUunF.js";
15
- import { r as definePolicy } from "../policy-CaAME-Rh.js";
16
- import { c as mergeHostedGrants, l as parsePolicyDocument } from "../hosted-C2Pmhy2x.js";
18
+ import { r as definePolicy } from "../policy-wGzbAPQF.js";
19
+ import { c as mergeHostedGrants, l as parsePolicyDocument } from "../hosted-C5I2TSXm.js";
17
20
  import { i as rootMembershipId } from "../subject-C7RddW0G.js";
18
- import { T as validateCustomRole } from "../evaluate-Dcq_U2TV.js";
19
- import { n as parseSnapshot } from "../snapshot-DHPih65J.js";
20
- import { n as fromSnapshot } from "../from-snapshot-DHnb8Fh4.js";
21
- import { t as getPermDock } from "../permdock-DbAq8_Fp.js";
22
- import { t as APPROVAL_HEADER } from "../types-CcUXciSj.js";
23
- import { i as memoryApprovalStore } from "../store-CSOsXd5s.js";
21
+ import { T as validateCustomRole } from "../evaluate-B5yZHmts.js";
22
+ import { n as memoryLimitStore, t as limits } from "../limits-CAhpRrhk.js";
24
23
  import { t as definePermissions } from "../permissions-BaoLxy66.js";
25
24
  import { t as catalogFingerprint } from "../catalog-fingerprint-e6aCWosn.js";
26
- import { s as parseCredential } from "../credential-B3Hj4puZ.js";
25
+ import { s as parseCredential } from "../credential-Bap3HClV.js";
26
+ import { t as APPROVAL_HEADER } from "../types-CcUXciSj.js";
27
+ import { i as memoryApprovalStore } from "../store-BpKH-pLm.js";
27
28
  import { c as problemFromDecision } from "../problem-BWP1l86g.js";
28
- import { o as resolveApproval } from "../helpers-D-MXwkOF.js";
29
+ import { o as resolveApproval } from "../helpers-DzBIfL1N.js";
30
+ import { o as parseApiKey } from "../credentials-BXV0oz56.js";
29
31
  import { t as APPROVAL_REQUEST_SCHEMA } from "../request-schema-CMP8Cmxd.js";
30
32
  import { t as catalogSchema } from "../schema-BlnU_TzE.js";
31
33
  import { t as supabaseMembershipsBudget } from "../budget-BBCPDOGP.js";
32
- import { c as parseApiKey } from "../server-D0PW6ZCw.js";
33
- import { n as discoverAuthorizationServer } from "../device-BwbJNmb2.js";
34
+ import { t as operationCoverage } from "../coverage-Dh2W_DmF.js";
35
+ import { n as discoverAuthorizationServer } from "../device-BkSynWdg.js";
34
36
  import { t as CONNECTOR_SCHEMA } from "../connector-schema-CYLQNMYq.js";
35
- import { l as sha256Hex, n as scimHandler, t as directoryMembershipSource } from "../scim-C30QBBoF.js";
37
+ import { l as sha256Hex, n as scimHandler, t as directoryMembershipSource } from "../scim-BG6uPUeW.js";
36
38
  import { c as quoteSqlTable, o as quoteSqlIdent } from "../sql-0WjxIp9g.js";
37
- import { i as cloudEndpoints, n as cloud, s as approverHeaders, t as bearerChallenge } from "../challenge-DbkpCx_v.js";
39
+ import { i as cloudEndpoints, n as cloud, s as approverHeaders, t as bearerChallenge } from "../challenge-B__LcNve.js";
38
40
  import { t as supabaseManifestSchema } from "../manifest-schema-CsFsYLF-.js";
39
- import { t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-Dszouliu.js";
40
- import { i as policyMatrixLayout, n as testRlsParity, r as policyMatrix, t as testOrmParity } from "../core-Dxkwz4xR.js";
41
- import { i as saasPermissions } from "../permissions-Dz79qsFw.js";
42
- import { C as saasOrg, E as saasSeed, S as saasMemberships, a as saasProject, g as verifySaasSession, h as signSaasToken, k as saasPolicy, t as saasDoc, w as saasPrincipal, x as saasCustomRoles } from "../saas-DHFfthXv.js";
41
+ import { t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-Bi5-il4C.js";
42
+ import { i as policyMatrixLayout, n as testRlsParity, r as policyMatrix, t as testOrmParity } from "../core-CUjhfz0W.js";
43
+ import { i as saasPermissions } from "../permissions-COpRGKt7.js";
44
+ import { C as saasOrg, E as saasSeed, S as saasMemberships, a as saasProject, g as verifySaasSession, h as signSaasToken, k as saasPolicy, t as saasDoc, w as saasPrincipal, x as saasCustomRoles } from "../saas-DABv6vjy.js";
43
45
  import { t as POLICY_NOT_PUBLISHED } from "../problem-types-DSsRfONQ.js";
44
46
  import { t as require__2020 } from "../2020-CJbO8Bvz.js";
45
47
  import { afterAll, assert, beforeAll, describe, expect, expectTypeOf, it, vi } from "vitest";
@@ -95,6 +97,23 @@ function testClientParity(policy, cases, options = {}) {
95
97
  });
96
98
  }
97
99
  //#endregion
100
+ //#region src/testing/operation-coverage.ts
101
+ /**
102
+ * Two tests over the declared operations and an OpenAPI document: every
103
+ * operation under `tenantPaths` has an entry, and every entry matches an
104
+ * operation. An undeclared tenant operation is denied by a gate, so this
105
+ * catches a route added without a permission before it ships.
106
+ */
107
+ function testOperationCoverage(operations, document, options) {
108
+ const coverage = operationCoverage(operations, document, options);
109
+ it("declares every tenant-path operation of the document", () => {
110
+ expect(coverage.undeclared).toStrictEqual([]);
111
+ });
112
+ it("declares no operation the document lacks", () => {
113
+ expect(coverage.stale).toStrictEqual([]);
114
+ });
115
+ }
116
+ //#endregion
98
117
  //#region src/testing/legacy-parity.ts
99
118
  /**
100
119
  * Asserts that the policy answers each case as the application's legacy check
@@ -2463,6 +2482,21 @@ function testPolicySource(source, options = {}) {
2463
2482
  });
2464
2483
  }
2465
2484
  }
2485
+ function testVersionStore(store) {
2486
+ it("answers what it stored and nothing for an unknown id", async () => {
2487
+ expect(await store.get("u-store-unknown")).toBeUndefined();
2488
+ await store.set("u-store-set", 7);
2489
+ expect(await store.get("u-store-set")).toBe(7);
2490
+ });
2491
+ it("overwrites a version and forgets a deleted id", async () => {
2492
+ await store.set("u-store-delete", 1);
2493
+ await store.set("u-store-delete", 2);
2494
+ expect(await store.get("u-store-delete")).toBe(2);
2495
+ await store.delete("u-store-delete");
2496
+ expect(await store.get("u-store-delete")).toBeUndefined();
2497
+ await store.delete("u-store-delete");
2498
+ });
2499
+ }
2466
2500
  function testVersionCache(cache) {
2467
2501
  const counted = (version) => {
2468
2502
  const calls = { count: 0 };
@@ -2527,6 +2561,60 @@ function testVersionCache(cache) {
2527
2561
  });
2528
2562
  }
2529
2563
  /**
2564
+ * The `SubjectCache` contract: a record answers only at the version it was
2565
+ * stored at, a lower version never replaces a higher one, a read at a newer
2566
+ * version drops the record, and `evict` removes it.
2567
+ */
2568
+ function testSubjectCache(cache) {
2569
+ const recordAt = (id, authzVersion) => ({
2570
+ id,
2571
+ active: true,
2572
+ roles: ["staff"],
2573
+ memberships: [],
2574
+ customRoles: [],
2575
+ ...authzVersion === void 0 ? {} : { authzVersion }
2576
+ });
2577
+ it("answers null for an unknown principal", async () => {
2578
+ expect(await cache.record("u-subject-unknown", 1)).toBeNull();
2579
+ expect(await cache.record("u-subject-unknown", void 0)).toBeNull();
2580
+ });
2581
+ it("answers a seeded record at its own version only", async () => {
2582
+ const seeded = recordAt("u-subject-seed", 4);
2583
+ await cache.seed(seeded);
2584
+ expect(await cache.record("u-subject-seed", 4)).toStrictEqual(seeded);
2585
+ expect(await cache.record("u-subject-seed", 3)).toBeNull();
2586
+ expect(await cache.record("u-subject-seed", 4)).toStrictEqual(seeded);
2587
+ });
2588
+ it("drops a record when a newer version is asked for", async () => {
2589
+ await cache.seed(recordAt("u-subject-newer", 2));
2590
+ expect(await cache.record("u-subject-newer", 3)).toBeNull();
2591
+ expect(await cache.record("u-subject-newer", 2)).toBeNull();
2592
+ });
2593
+ it("refuses a record below the cached version", async () => {
2594
+ const current = recordAt("u-subject-lower", 6);
2595
+ await cache.seed(current);
2596
+ await cache.seed(recordAt("u-subject-lower", 5));
2597
+ await cache.seed(recordAt("u-subject-lower"));
2598
+ expect(await cache.record("u-subject-lower", 6)).toStrictEqual(current);
2599
+ expect(await cache.record("u-subject-lower", 5)).toBeNull();
2600
+ });
2601
+ it("replaces a record with a newer one", async () => {
2602
+ await cache.seed(recordAt("u-subject-replace", 1));
2603
+ const next = {
2604
+ ...recordAt("u-subject-replace", 2),
2605
+ roles: ["admin"]
2606
+ };
2607
+ await cache.seed(next);
2608
+ expect(await cache.record("u-subject-replace", 2)).toStrictEqual(next);
2609
+ expect(await cache.record("u-subject-replace", 1)).toBeNull();
2610
+ });
2611
+ it("forgets a record after evict", async () => {
2612
+ await cache.seed(recordAt("u-subject-evict", 2));
2613
+ await cache.evict("u-subject-evict");
2614
+ expect(await cache.record("u-subject-evict", 2)).toBeNull();
2615
+ });
2616
+ }
2617
+ /**
2530
2618
  * The `InstanceCache` contract: one build per key while it lives, a shared
2531
2619
  * build in flight, no stored rejection, and `evict` dropping a principal's
2532
2620
  * entries.
@@ -6658,4 +6746,4 @@ const PROBLEM_EXAMPLES = Object.freeze({
6658
6746
  }
6659
6747
  });
6660
6748
  //#endregion
6661
- export { AGENT_THROWING_ROW, AGENT_THROWING_USER, PROBLEM_EXAMPLES, authzenTodoData, authzenTodoPermissions, authzenTodoPolicy, authzenTodoUsers, authzenTodoVectors, describePolicy, expectTypeOf, jwtFixtureAudience, jwtFixtureIssuer, jwtFixtureJwks, jwtFixtureTokens, policyMatrix, seedRows, snapshotFixture, supabaseClaimFixtures, supabaseClaimVectors, supabaseHookManifestFixture, supabaseMembershipsBudget, testAccessReviewStore, testAgentAdapter, testAgentRuntime, testApprovalDelegationSource, testApprovalPolicySource, testApprovalStore, testApprovalWaiter, testAuthzen, testAutomationSource, testClientParity, testClientStore, testCloudApi, testCredentialVerifier, testCustomRoleSource, testDecisionProvider, testDecisionSink, testDeliveryTransport, testDirectoryStore, testEntitlementSource, testHttpAdapter, testIdempotencyStore, testInstanceCache, testLegacyParity, testLimitStore, testMembershipSource, testOrmParity, testPolicySource, testPrincipalSource, testRelationSource, testReplayStore, testRevocationFeed, testRlsParity, testSetQueue, testSettingsSource, testSnapshotSource, testSnapshotStorage, testSsfStreamStore, testSubjectResolver, testSupportSessionSource, testTokenSigner, testTokenVerifier, testVersionCache, testWhereCompiler };
6749
+ export { AGENT_THROWING_ROW, AGENT_THROWING_USER, PROBLEM_EXAMPLES, authzenTodoData, authzenTodoPermissions, authzenTodoPolicy, authzenTodoUsers, authzenTodoVectors, describePolicy, expectTypeOf, jwtFixtureAudience, jwtFixtureIssuer, jwtFixtureJwks, jwtFixtureTokens, policyMatrix, seedRows, snapshotFixture, supabaseClaimFixtures, supabaseClaimVectors, supabaseHookManifestFixture, supabaseMembershipsBudget, testAccessReviewStore, testAgentAdapter, testAgentRuntime, testApprovalDelegationSource, testApprovalPolicySource, testApprovalStore, testApprovalWaiter, testAuthzen, testAutomationSource, testClientParity, testClientStore, testCloudApi, testCredentialVerifier, testCustomRoleSource, testDecisionProvider, testDecisionSink, testDeliveryTransport, testDirectoryStore, testEntitlementSource, testHttpAdapter, testIdempotencyStore, testInstanceCache, testLegacyParity, testLimitStore, testMembershipSource, testOperationCoverage, testOrmParity, testPolicySource, testPrincipalSource, testRelationSource, testReplayStore, testRevocationFeed, testRlsParity, testSetQueue, testSettingsSource, testSnapshotSource, testSnapshotStorage, testSsfStreamStore, testSubjectCache, testSubjectResolver, testSupportSessionSource, testTokenSigner, testTokenVerifier, testVersionCache, testVersionStore, testWhereCompiler };
@@ -1,8 +1,8 @@
1
- import { ct as RelationSource, hr as Delegation, lr as Actor, nt as LimitStore, pr as CustomRole, qt as Instant, vr as Membership, xr as Subject, yr as Principal } from "../../policy-types-BI9C5Sp5.js";
2
- import { u as Permission } from "../../permission-types-CAY-GU7e.js";
3
- import { o as PermDockOptions } from "../../permdock-CsrvbzHk.js";
4
- import { a as SaasProject, c as saasPlans, i as SaasFolderSchema, l as saasRoles, n as SaasDocSchema, o as SaasProjectSchema, r as SaasFolder, s as saasPermissions, t as SaasDoc, u as saasTenantRoleNames } from "../../permissions-Bx6UI8n1.js";
5
- import { n as saasPolicy, t as SAAS_API_KEY_LIMIT } from "../../policy-Dh9WVSVz.js";
1
+ import { ct as RelationSource, hr as Delegation, lr as Actor, nt as LimitStore, pr as CustomRole, qt as Instant, vr as Membership, xr as Subject, yr as Principal } from "../../policy-types-rNfz7t0M.js";
2
+ import { w as Permission } from "../../vocabulary-DeZvUaTw.js";
3
+ import { o as PermDockOptions } from "../../permdock-BaB-KQqn.js";
4
+ import { a as SaasProject, c as saasPlans, i as SaasFolderSchema, l as saasRoles, n as SaasDocSchema, o as SaasProjectSchema, r as SaasFolder, s as saasPermissions, t as SaasDoc, u as saasTenantRoleNames } from "../../permissions-DriWkV7q.js";
5
+ import { n as saasPolicy, t as SAAS_API_KEY_LIMIT } from "../../policy-x8RBKW8d.js";
6
6
  import { StandardSchemaV1 } from "@standard-schema/spec";
7
7
  //#region src/testing/saas/schema.d.ts
8
8
  type FieldKind = "string" | "boolean" | "nullable-string";
@@ -1,3 +1,3 @@
1
- import { a as saasPlans, c as rowSchema, i as saasPermissions, n as SaasFolderSchema, o as saasRoles, r as SaasProjectSchema, s as saasTenantRoleNames, t as SaasDocSchema } from "../../permissions-Dz79qsFw.js";
2
- import { C as saasOrg, D as saasUsers, E as saasSeed, O as SAAS_API_KEY_LIMIT, S as saasMemberships, T as saasRelations, _ as verifySaasToken, a as saasProject, b as SAAS_EXPIRED_AT, c as saasUser, d as saasIssuer, f as saasJwks, g as verifySaasSession, h as signSaasToken, i as saasLimitStore, k as saasPolicy, l as SAAS_TOKEN_TTL_SECONDS, m as saasPublicJwk, n as saasFolder, o as saasScenarioOptions, p as saasPrivateJwk, r as saasFolderScenarios, s as saasScenarios, t as saasDoc, u as saasAudience, v as saasSchemaSql, w as saasPrincipal, x as saasCustomRoles, y as saasSeedSql } from "../../saas-DHFfthXv.js";
1
+ import { a as saasPlans, c as rowSchema, i as saasPermissions, n as SaasFolderSchema, o as saasRoles, r as SaasProjectSchema, s as saasTenantRoleNames, t as SaasDocSchema } from "../../permissions-COpRGKt7.js";
2
+ import { C as saasOrg, D as saasUsers, E as saasSeed, O as SAAS_API_KEY_LIMIT, S as saasMemberships, T as saasRelations, _ as verifySaasToken, a as saasProject, b as SAAS_EXPIRED_AT, c as saasUser, d as saasIssuer, f as saasJwks, g as verifySaasSession, h as signSaasToken, i as saasLimitStore, k as saasPolicy, l as SAAS_TOKEN_TTL_SECONDS, m as saasPublicJwk, n as saasFolder, o as saasScenarioOptions, p as saasPrivateJwk, r as saasFolderScenarios, s as saasScenarios, t as saasDoc, u as saasAudience, v as saasSchemaSql, w as saasPrincipal, x as saasCustomRoles, y as saasSeedSql } from "../../saas-DABv6vjy.js";
3
3
  export { SAAS_API_KEY_LIMIT, SAAS_EXPIRED_AT, SAAS_TOKEN_TTL_SECONDS, SaasDocSchema, SaasFolderSchema, SaasProjectSchema, rowSchema, saasAudience, saasCustomRoles, saasDoc, saasFolder, saasFolderScenarios, saasIssuer, saasJwks, saasLimitStore, saasMemberships, saasOrg, saasPermissions, saasPlans, saasPolicy, saasPrincipal, saasPrivateJwk, saasProject, saasPublicJwk, saasRelations, saasRoles, saasScenarioOptions, saasScenarios, saasSchemaSql, saasSeed, saasSeedSql, saasTenantRoleNames, saasUser, saasUsers, signSaasToken, verifySaasSession, verifySaasToken };
@@ -1,2 +1,2 @@
1
- import { a as SaasProject, c as saasPlans, i as SaasFolderSchema, l as saasRoles, n as SaasDocSchema, o as SaasProjectSchema, r as SaasFolder, s as saasPermissions, t as SaasDoc, u as saasTenantRoleNames } from "../../permissions-Bx6UI8n1.js";
1
+ import { a as SaasProject, c as saasPlans, i as SaasFolderSchema, l as saasRoles, n as SaasDocSchema, o as SaasProjectSchema, r as SaasFolder, s as saasPermissions, t as SaasDoc, u as saasTenantRoleNames } from "../../permissions-DriWkV7q.js";
2
2
  export { SaasDoc, SaasDocSchema, SaasFolder, SaasFolderSchema, SaasProject, SaasProjectSchema, saasPermissions, saasPlans, saasRoles, saasTenantRoleNames };
@@ -1 +1 @@
1
- export { t as SaasDocSchema, n as SaasFolderSchema, r as SaasProjectSchema, i as saasPermissions, a as saasPlans, o as saasRoles, s as saasTenantRoleNames } from "../../permissions-Dz79qsFw.js";
1
+ export { t as SaasDocSchema, n as SaasFolderSchema, r as SaasProjectSchema, i as saasPermissions, a as saasPlans, o as saasRoles, s as saasTenantRoleNames } from "../../permissions-COpRGKt7.js";
@@ -1,10 +1,10 @@
1
- import { D as Policy, yr as Principal } from "../policy-types-BI9C5Sp5.js";
2
- import { u as Permission } from "../permission-types-CAY-GU7e.js";
3
- import { a as PermDock } from "../permdock-CsrvbzHk.js";
1
+ import { D as Policy, yr as Principal } from "../policy-types-rNfz7t0M.js";
2
+ import { w as Permission } from "../vocabulary-DeZvUaTw.js";
3
+ import { a as PermDock } from "../permdock-BaB-KQqn.js";
4
4
  import { n as RevocationFeed } from "../revocations-BaUXHM1N.js";
5
- import { D as ConnectionOptions, T as Connection, i as OpenApiHooks } from "../server-types-Bfl-IrzZ.js";
6
- import { t as ServerAdapterOptions } from "../bind-XvnD_SUz.js";
7
- import { t as RpcProtectOptions } from "../rpc-CYXICjM1.js";
5
+ import { D as ConnectionOptions, T as Connection, i as OpenApiHooks } from "../server-types--_Hann81.js";
6
+ import { t as ServerAdapterOptions } from "../bind-CnOMjazH.js";
7
+ import { t as RpcProtectOptions } from "../rpc-BqRiVpbP.js";
8
8
  import { AnyTRPCMiddlewareFunction } from "@trpc/server";
9
9
  //#region src/trpc/create.d.ts
10
10
  type TrpcMiddlewareOpts<TCtx = object, TInput = unknown> = {
@@ -1,9 +1,9 @@
1
- import { o as problemMessage } from "../http-DKLXrFGk.js";
2
1
  import { r as permissionList } from "../decide-set-DXEPepY1.js";
3
- import { t as problemFromError } from "../map-error-EOhahOVA.js";
4
- import { n as attached } from "../bind-CJf7S-Jd.js";
2
+ import { o as problemMessage } from "../http-DKLXrFGk.js";
3
+ import { n as attached } from "../bind-B4Z0U2Gr.js";
4
+ import { t as problemFromError } from "../map-error-p4ROJ_26.js";
5
5
  import { i as isAsyncIterable, o as reloadAfter } from "../stream-DQ3rbO3J.js";
6
- import { i as rpcCode, n as guardStream, r as problemBody, t as bindRpcKernel } from "../rpc-BNIQwEB6.js";
6
+ import { i as rpcCode, n as guardStream, r as problemBody, t as bindRpcKernel } from "../rpc-Dhi55Whd.js";
7
7
  import { TRPCError, isTrackedEnvelope } from "@trpc/server";
8
8
  //#region src/trpc/create.ts
9
9
  const PROBLEM = Symbol.for("permdock.problem");
@@ -1,7 +1,6 @@
1
- import { N as PolicyVocabulary, wn as ScopeNames } from "./policy-types-BI9C5Sp5.js";
2
- import { k as POLICY_SCOPES, u as Permission } from "./permission-types-CAY-GU7e.js";
3
- import { n as PlanTree } from "./vocabulary-DEJ5j4mR.js";
4
- import { o as OperationMap } from "./operations-Ci_rT6Uo.js";
1
+ import { N as PolicyVocabulary, wn as ScopeNames } from "./policy-types-rNfz7t0M.js";
2
+ import { U as POLICY_SCOPES, n as PlanTree, w as Permission } from "./vocabulary-DeZvUaTw.js";
3
+ import { o as OperationMap } from "./operations-BMPx7HyO.js";
5
4
  //#region src/core/type-helpers.d.ts
6
5
  /** Recursion guard: a tree nests resources at most this many levels deep. */
7
6
  type Depth = [never, 0, 1, 2, 3, 4, 5, 6, 7];
@@ -1,6 +1,6 @@
1
- import { dn as DeliveryChannel, fn as DeliveryEvent, hn as EmailCategory, pn as DeliveryFailureCause, tr as GrantedDecision } from "./policy-types-BI9C5Sp5.js";
2
- import { s as CloudEvent } from "./sink-RwmP7ZHs.js";
3
- import { t as ApprovalPrompt } from "./approval-prompt-CQFiO1KE.js";
1
+ import { dn as DeliveryChannel, fn as DeliveryEvent, hn as EmailCategory, pn as DeliveryFailureCause, tr as GrantedDecision } from "./policy-types-rNfz7t0M.js";
2
+ import { s as CloudEvent } from "./sink-Cs6z34AX.js";
3
+ import { t as ApprovalPrompt } from "./approval-prompt-2hTqo6IM.js";
4
4
  //#region src/delivery/types.d.ts
5
5
  /**
6
6
  * Who a delivery goes to. `{ principal }` names an app principal and the
@@ -1,4 +1,4 @@
1
- import { En as Approver } from "./policy-types-BI9C5Sp5.js";
1
+ import { En as Approver } from "./policy-types-rNfz7t0M.js";
2
2
  //#region src/approvals/access-reviews/types.d.ts
3
3
  type AccessReviewStatus = "open" | "closed";
4
4
  type AccessReviewItemStatus = "pending" | "kept" | "revoked";
@@ -1,8 +1,8 @@
1
- import { Jn as ApprovalRequiredDecision, Yn as Decision, en as Snapshot, tr as GrantedDecision, vt as TokenVerifier } from "./policy-types-BI9C5Sp5.js";
2
- import { u as Permission } from "./permission-types-CAY-GU7e.js";
3
- import { s as RowData } from "./permdock-CsrvbzHk.js";
4
- import { n as DescribeMessages } from "./describe-DibQM6g-.js";
5
- import { n as ClientStoreOptions } from "./store-CRQ5VrWR.js";
1
+ import { Jn as ApprovalRequiredDecision, Yn as Decision, en as Snapshot, tr as GrantedDecision, vt as TokenVerifier } from "./policy-types-rNfz7t0M.js";
2
+ import { w as Permission } from "./vocabulary-DeZvUaTw.js";
3
+ import { s as RowData } from "./permdock-BaB-KQqn.js";
4
+ import { n as DescribeMessages } from "./describe-DVobr5FX.js";
5
+ import { n as ClientStoreOptions } from "./store-DSyjHD5-.js";
6
6
  import { ReactNode } from "react";
7
7
  //#region src/react/types.d.ts
8
8
  type PermDockProviderProps = ({
@@ -1,8 +1,8 @@
1
- import { Jn as ApprovalRequiredDecision, Yn as Decision, en as Snapshot, tr as GrantedDecision, vt as TokenVerifier } from "./policy-types-BI9C5Sp5.js";
2
- import { u as Permission } from "./permission-types-CAY-GU7e.js";
3
- import { a as PermDock } from "./permdock-CsrvbzHk.js";
1
+ import { Jn as ApprovalRequiredDecision, Yn as Decision, en as Snapshot, tr as GrantedDecision, vt as TokenVerifier } from "./policy-types-rNfz7t0M.js";
2
+ import { w as Permission } from "./vocabulary-DeZvUaTw.js";
3
+ import { a as PermDock } from "./permdock-BaB-KQqn.js";
4
4
  import { t as PermissionBoundaryState } from "./boundary-C9ck-3uK.js";
5
- import { d as PermissionState, m as ProviderOptionsBase, p as ProtectedActionView, t as ClientStore, v as ActionResult } from "./store-CRQ5VrWR.js";
5
+ import { d as PermissionState, m as ProviderOptionsBase, p as ProtectedActionView, t as ClientStore, v as ActionResult } from "./store-DSyjHD5-.js";
6
6
  import { Snippet } from "svelte";
7
7
  import { Readable } from "svelte/store";
8
8
  //#region src/client/views.d.ts
@@ -1,4 +1,4 @@
1
- import { h as RoleThrough, m as RoleMap, s as SqlMembershipSource } from "./sources-sgQlMfmz.js";
1
+ import { h as RoleThrough, m as RoleMap, s as SqlMembershipSource } from "./sources-BfTza0zT.js";
2
2
  //#region src/cli/core/errors.d.ts
3
3
  /**
4
4
  * 0 success, 1 failure, 2 usage, 3 action required, 130 interrupted (SIGINT or
@@ -121,13 +121,17 @@ type RlsTableVia = {
121
121
  readonly scope?: string;
122
122
  };
123
123
  /**
124
- * A resource's table: its `schema.table`, an object that adds `via`, or `false`
125
- * for a resource with no table (a console permission), which gets no policies
126
- * while its role grants are still seeded.
124
+ * A resource's table: its `schema.table`, an object that adds `via`, `false`
125
+ * for a resource with no table (a console permission), or `{ tableOf }` for a
126
+ * resource stored in another resource's table. `false` and `{ tableOf }` get no
127
+ * policies while their role grants are still seeded; the owner resource writes
128
+ * the table's policies.
127
129
  */
128
130
  type RlsTable = string | false | {
129
131
  readonly table?: string;
130
132
  readonly via: RlsTableVia;
133
+ } | {
134
+ readonly tableOf: string;
131
135
  };
132
136
  type RlsConfig = {
133
137
  /**
@@ -183,6 +187,13 @@ type RlsConfig = {
183
187
  * it.
184
188
  */
185
189
  readonly scopeTypes?: Readonly<Record<string, string>>;
190
+ /**
191
+ * Postgres type of each resource's id in the `rls.rowHelpers` helpers
192
+ * (`permitted_<resource>_rows` returns `setof <type>` and its `p_ids` takes
193
+ * `<type>[]`), by resource name; `"*"` sets the default. Without it: `uuid`
194
+ * on Supabase, `text` elsewhere.
195
+ */
196
+ readonly idTypes?: Readonly<Record<string, string>>;
186
197
  readonly roleClaim?: string;
187
198
  /**
188
199
  * Role values the existing SQL compares against (a string literal or an enum
@@ -412,6 +423,14 @@ type RlsConfig = {
412
423
  * stay hand-written.
413
424
  */
414
425
  readonly helpersOnly?: boolean;
426
+ /**
427
+ * Where the transaction-local helper memos live. `'permdock'` (default) reads
428
+ * and writes `permdock.m.*` with `current_setting` and `set_config`.
429
+ * `'better-supabase'` calls `better_supabase.memo_get` and `memo_set`, so the
430
+ * memo shares better-supabase's one mechanism; the keys stay `permdock.m.*`.
431
+ * Needs the `better_supabase` schema (better-supabase 0.52 or later).
432
+ */
433
+ readonly memo?: "permdock" | "better-supabase";
415
434
  /**
416
435
  * Emit `permitted_<resource>_rows(p_permission)`, its `_for` form,
417
436
  * `permitted_<resource>_rows(p_permission, p_ids)` limited to candidate ids
@@ -958,11 +977,6 @@ type DoctorConfig = {
958
977
  * `supabase.hook.claims` entry in it.
959
978
  */
960
979
  readonly claims?: string;
961
- /**
962
- * Tables two resources map to on purpose, over disjoint rows; PD075 skips
963
- * them.
964
- */
965
- readonly sharedTables?: readonly string[];
966
980
  /**
967
981
  * Functions that build an object once and keep it; PD080 and PD081 skip a
968
982
  * factory call passed to one of them, as in `once(() => claimsFirst(...))`.
@@ -997,8 +1011,25 @@ type PermDockConfig = {
997
1011
  readonly catalog?: CatalogConfig;
998
1012
  readonly openapi?: {
999
1013
  readonly doc?: readonly string[];
1014
+ /**
1015
+ * `"<module>#<export>"` of an `operationPermissions(...)` result (the
1016
+ * export defaults to `operations`); `permdock doctor` checks it against
1017
+ * `doc` (PD091).
1018
+ */
1019
+ readonly operations?: string;
1020
+ /** Path templates whose operations need an entry, such as `/orgs/{orgId}`. */
1021
+ readonly tenantPaths?: readonly string[];
1022
+ /** A prefix the documents' paths carry and the `operations` keys do not. */
1023
+ readonly base?: string;
1000
1024
  };
1001
1025
  readonly rls?: RlsConfig;
1026
+ /**
1027
+ * Where better-supabase's config lives, when it is not found from
1028
+ * `permdock.config.ts` up to the workspace root.
1029
+ */
1030
+ readonly betterSupabase?: {
1031
+ readonly config?: string;
1032
+ };
1002
1033
  readonly supabase?: SupabaseConfig;
1003
1034
  readonly powersync?: PowerSyncConfig;
1004
1035
  readonly doctor?: DoctorConfig;
@@ -1,6 +1,6 @@
1
- import { D as Policy, N as PolicyVocabulary, Yn as Decision, er as ExplainedDecision, vr as Membership, xr as Subject, yr as Principal } from "./policy-types-BI9C5Sp5.js";
2
- import { f as PermissionTree, u as Permission } from "./permission-types-CAY-GU7e.js";
3
- import { a as PermDock, f as WhereResult, k as PermissionCheck, l as SimulateOptions, n as DecideOptions, o as PermDockOptions, r as DeriveOptions } from "./permdock-CsrvbzHk.js";
1
+ import { D as Policy, N as PolicyVocabulary, Yn as Decision, er as ExplainedDecision, vr as Membership, xr as Subject, yr as Principal } from "./policy-types-rNfz7t0M.js";
2
+ import { E as PermissionTree, w as Permission } from "./vocabulary-DeZvUaTw.js";
3
+ import { M as PermissionCheck, a as PermDock, f as WhereResult, l as SimulateOptions, n as DecideOptions, o as PermDockOptions, r as DeriveOptions } from "./permdock-BaB-KQqn.js";
4
4
  //#region src/pdp/types.d.ts
5
5
  type RemotePdpAuth = {
6
6
  readonly bearer: string | (() => string | Promise<string>);
@@ -1,7 +1,7 @@
1
- import { $ as JwtClaims, gt as TokenFailureCause, it as MembershipSource, lr as Actor, sn as AuthEvent, vt as TokenVerifier, xr as Subject, yr as Principal } from "./policy-types-BI9C5Sp5.js";
2
- import { m as ApprovalStore } from "./types-BzxA2OAD.js";
3
- import { n as RevocationFeed } from "./revocations-BaUXHM1N.js";
1
+ import { $ as JwtClaims, gt as TokenFailureCause, it as MembershipSource, lr as Actor, sn as AuthEvent, vt as TokenVerifier, xr as Subject, yr as Principal } from "./policy-types-rNfz7t0M.js";
2
+ import { m as ApprovalStore } from "./types-ZfjQB0KC.js";
4
3
  import { t as ClaimsMap } from "./claims-map-D1Pb5oRq.js";
4
+ import { n as RevocationFeed } from "./revocations-BaUXHM1N.js";
5
5
  import { t as ClientNames } from "./clients-C_NOET3z.js";
6
6
  import { StandardSchemaV1 } from "@standard-schema/spec";
7
7
  //#region src/jwt/types.d.ts
@@ -1,8 +1,8 @@
1
- import { X as DecisionSink, _t as TokenSigner, ut as SnapshotSource, vt as TokenVerifier, xr as Subject } from "./policy-types-BI9C5Sp5.js";
2
- import { s as PolicySource } from "./hosted-yhyAuQkL.js";
3
- import { m as ApprovalStore, u as ApprovalRequest } from "./types-BzxA2OAD.js";
4
- import { a as CatalogDocument } from "./types-7Vlz1Wi2.js";
5
- import { a as CatalogFinding } from "./sink-RwmP7ZHs.js";
1
+ import { X as DecisionSink, _t as TokenSigner, ut as SnapshotSource, vt as TokenVerifier, xr as Subject } from "./policy-types-rNfz7t0M.js";
2
+ import { s as PolicySource } from "./hosted-DXq1plaP.js";
3
+ import { m as ApprovalStore, u as ApprovalRequest } from "./types-ZfjQB0KC.js";
4
+ import { a as CatalogDocument } from "./types-DAyp592k.js";
5
+ import { a as CatalogFinding } from "./sink-Cs6z34AX.js";
6
6
  //#region src/cloud/types.d.ts
7
7
  type CloudEndpointOptions = {
8
8
  readonly url?: string;
@@ -1,5 +1,5 @@
1
- import { C as ResourceRelation } from "./permission-types-CAY-GU7e.js";
2
- import { s as OperationMeta } from "./operations-Ci_rT6Uo.js";
1
+ import { L as ResourceRelation } from "./vocabulary-DeZvUaTw.js";
2
+ import { s as OperationMeta } from "./operations-BMPx7HyO.js";
3
3
  //#region src/catalog/types.d.ts
4
4
  type CatalogUsage = {
5
5
  readonly file: string;
@@ -1,7 +1,7 @@
1
- import { en as Snapshot, ut as SnapshotSource, vt as TokenVerifier } from "./policy-types-BI9C5Sp5.js";
2
- import { n as DescribeMessages } from "./describe-DibQM6g-.js";
3
- import { n as ClientStoreOptions } from "./store-CRQ5VrWR.js";
4
- import { t as PermDockDefaults } from "./types-MixnvXQ5.js";
1
+ import { en as Snapshot, ut as SnapshotSource, vt as TokenVerifier } from "./policy-types-rNfz7t0M.js";
2
+ import { n as DescribeMessages } from "./describe-DVobr5FX.js";
3
+ import { n as ClientStoreOptions } from "./store-DSyjHD5-.js";
4
+ import { t as PermDockDefaults } from "./types-BpxdxaRD.js";
5
5
  import { ReactNode } from "react";
6
6
  //#region src/react-native/types.d.ts
7
7
  type SnapshotStorage = {
@@ -1,5 +1,5 @@
1
- import { En as Approver, a as ApprovalMode, bn as WireDelegation, c as ApprovalStage, i as ApprovalFallback, n as ApprovalCombine, qt as Instant, vr as Membership, wr as AdapterId, xr as Subject, zn as RelationGrantee } from "./policy-types-BI9C5Sp5.js";
2
- import { M as AppData } from "./permission-types-CAY-GU7e.js";
1
+ import { En as Approver, a as ApprovalMode, bn as WireDelegation, c as ApprovalStage, i as ApprovalFallback, n as ApprovalCombine, qt as Instant, vr as Membership, wr as AdapterId, xr as Subject, zn as RelationGrantee } from "./policy-types-rNfz7t0M.js";
2
+ import { K as AppData } from "./vocabulary-DeZvUaTw.js";
3
3
  //#region src/approvals/types.d.ts
4
4
  type ApprovalStatus = "pending" | "approved" | "rejected" | "expired";
5
5
  type ApprovalApprovers = {
@@ -1,5 +1,5 @@
1
- import { N as PolicyVocabulary, un as DecisionEvent } from "./policy-types-BI9C5Sp5.js";
2
- import { a as PermDock } from "./permdock-CsrvbzHk.js";
1
+ import { N as PolicyVocabulary, un as DecisionEvent } from "./policy-types-rNfz7t0M.js";
2
+ import { a as PermDock } from "./permdock-BaB-KQqn.js";
3
3
  //#region src/otel/types.d.ts
4
4
  declare const GENAI_SEMCONV_PIN = "1.37.0";
5
5
  declare const GEN_AI_TOOL_NAME = "gen_ai.tool.name";
@@ -1,4 +1,4 @@
1
- import { s as PermDockPluginOptions } from "../types-D1NjjwI4.js";
1
+ import { s as PermDockPluginOptions } from "../types-CS1DI_Ke.js";
2
2
  import { createUnplugin } from "unplugin";
3
3
  //#region src/unplugin/index.d.ts
4
4
  type CreateUnplugin = typeof createUnplugin<PermDockPluginOptions | undefined>;
@@ -1,5 +1,5 @@
1
- import { n as createCollectScheduler, r as report } from "../watch-Dz2LNM1R.js";
2
1
  import { r as peerHint } from "../peer-BuK9F53f.js";
2
+ import { n as createCollectScheduler, r as report } from "../watch-BigZ260i.js";
3
3
  import { createRequire } from "node:module";
4
4
  //#region src/unplugin/index.ts
5
5
  function loadCreateUnplugin() {