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
@@ -0,0 +1,193 @@
1
+ import { r as isRecord, t as compact } from "./compact-CAf557ZB.js";
2
+ import { f as nowMillis } from "./time-nR1JesoH.js";
3
+ //#region src/core/read-memberships.ts
4
+ function asStrings(value) {
5
+ return Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
6
+ }
7
+ /**
8
+ * Reads the `memberships` claim; an entry it cannot read is dropped and its
9
+ * index reported.
10
+ */
11
+ function readMemberships(value) {
12
+ if (!Array.isArray(value)) return {
13
+ memberships: [],
14
+ dropped: []
15
+ };
16
+ const out = [];
17
+ const dropped = [];
18
+ for (const [index, item] of value.entries()) {
19
+ const membership = asMembership(item);
20
+ if (membership === void 0) dropped.push(index);
21
+ else out.push(membership);
22
+ }
23
+ return {
24
+ memberships: out,
25
+ dropped
26
+ };
27
+ }
28
+ function asMembership(item) {
29
+ if (!isRecord(item) || !Array.isArray(item["roles"])) return;
30
+ const roles = item["roles"].filter((role) => typeof role === "string");
31
+ if (roles.length === 0) return;
32
+ const scope = typeof item["scope"] === "string" ? item["scope"] : void 0;
33
+ const id = typeof item["id"] === "string" ? item["id"] : void 0;
34
+ const within = isRecord(item["within"]) ? Object.fromEntries(Object.entries(item["within"]).filter((entry) => typeof entry[1] === "string")) : void 0;
35
+ const onRecord = isRecord(item["on"]) ? item["on"] : void 0;
36
+ const on = onRecord !== void 0 && typeof onRecord["resource"] === "string" && typeof onRecord["id"] === "string" ? {
37
+ resource: onRecord["resource"],
38
+ id: onRecord["id"]
39
+ } : void 0;
40
+ if ((scope === void 0 || id === void 0) && on === void 0) return;
41
+ const keep = item["keep"];
42
+ if (keep !== void 0 && (!Array.isArray(keep) || !keep.every((key) => typeof key === "string" && key !== ""))) return;
43
+ return compact({
44
+ roles,
45
+ scope,
46
+ id,
47
+ within,
48
+ on,
49
+ via: typeof item["via"] === "string" ? item["via"] : void 0,
50
+ expiresAt: typeof item["expires_at"] === "number" ? item["expires_at"] : void 0,
51
+ grantedBy: typeof item["granted_by"] === "string" ? item["granted_by"] : void 0,
52
+ reason: typeof item["reason"] === "string" ? item["reason"] : void 0,
53
+ member: memberOf(item["member"]),
54
+ managedBy: item["managed_by"] === "idp" ? "idp" : void 0,
55
+ entitlements: Array.isArray(item["entitlements"]) ? item["entitlements"].filter((seat) => typeof seat === "string") : void 0,
56
+ keep: keep === void 0 ? void 0 : asStrings(keep)
57
+ });
58
+ }
59
+ function memberOf(value) {
60
+ if (value === null || typeof value !== "object" || !Object.hasOwn(value, "group")) return;
61
+ const group = value.group;
62
+ return typeof group === "string" && group !== "" ? { group } : void 0;
63
+ }
64
+ //#endregion
65
+ //#region src/core/subject-cache.ts
66
+ function strings(value) {
67
+ return Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
68
+ }
69
+ function grantOf(value) {
70
+ if (!isRecord(value) || typeof value["permission"] !== "string") return;
71
+ return compact({
72
+ permission: value["permission"],
73
+ effect: value["effect"] === "deny" ? "deny" : "allow",
74
+ level: typeof value["level"] === "string" ? value["level"] : void 0
75
+ });
76
+ }
77
+ function customRoleOf(value) {
78
+ if (!isRecord(value) || typeof value["name"] !== "string") return;
79
+ const grants = Array.isArray(value["grants"]) ? value["grants"].flatMap((item) => {
80
+ const grant = grantOf(item);
81
+ return grant === void 0 ? [] : [grant];
82
+ }) : [];
83
+ const includes = strings(value["includes"]);
84
+ const body = {
85
+ name: value["name"],
86
+ grants,
87
+ ...includes.length === 0 ? {} : { includes }
88
+ };
89
+ if (value["scope"] === "global") return value["tenant"] === void 0 && value["shared"] === void 0 ? {
90
+ ...body,
91
+ scope: "global"
92
+ } : void 0;
93
+ if (value["shared"] === true) return value["tenant"] === void 0 && value["id"] === void 0 ? compact({
94
+ ...body,
95
+ shared: true,
96
+ scope: typeof value["scope"] === "string" ? value["scope"] : void 0
97
+ }) : void 0;
98
+ if (typeof value["tenant"] !== "string") return;
99
+ return compact({
100
+ ...body,
101
+ tenant: value["tenant"],
102
+ scope: typeof value["scope"] === "string" ? value["scope"] : void 0,
103
+ id: typeof value["id"] === "string" ? value["id"] : void 0
104
+ });
105
+ }
106
+ /**
107
+ * Reads `subject_for`'s JSON; anything it cannot read is left out, and a
108
+ * malformed record is no record.
109
+ */
110
+ function readSubjectRecord(value) {
111
+ if (!isRecord(value) || typeof value["id"] !== "string") return;
112
+ if (value["active"] !== true) return {
113
+ id: value["id"],
114
+ active: false,
115
+ roles: [],
116
+ memberships: [],
117
+ customRoles: []
118
+ };
119
+ const version = value["authzVersion"];
120
+ return compact({
121
+ id: value["id"],
122
+ active: true,
123
+ roles: strings(value["roles"]),
124
+ memberships: readMemberships(value["memberships"]).memberships,
125
+ customRoles: Array.isArray(value["customRoles"]) ? value["customRoles"].flatMap((item) => {
126
+ const role = customRoleOf(item);
127
+ return role === void 0 ? [] : [role];
128
+ }) : [],
129
+ authzVersion: typeof version === "number" && Number.isFinite(version) ? version : void 0,
130
+ claims: isRecord(value["claims"]) && Object.keys(value["claims"]).length > 0 ? value["claims"] : void 0
131
+ });
132
+ }
133
+ const DEFAULT_MAX_ENTRIES = 1e4;
134
+ const MAX_STALE_CEILING_MS = 6e4;
135
+ /**
136
+ * An in-process `SubjectCache`: a bounded LRU keyed by principal id. Create it
137
+ * once at module scope and pass it as `subjects`.
138
+ */
139
+ function memorySubjectCache(options = {}) {
140
+ const maxEntries = Math.max(Math.floor(options.maxEntries ?? DEFAULT_MAX_ENTRIES), 1);
141
+ const maxStaleMs = Math.min(Math.max(Math.floor(options.maxStaleMs ?? 0), 0), MAX_STALE_CEILING_MS);
142
+ const entries = /* @__PURE__ */ new Map();
143
+ const now = () => nowMillis(options.now?.());
144
+ const store = (entry) => {
145
+ entries.delete(entry.record.id);
146
+ entries.set(entry.record.id, entry);
147
+ if (entries.size > maxEntries) {
148
+ const oldest = entries.keys().next();
149
+ if (oldest.done !== true) entries.delete(oldest.value);
150
+ }
151
+ };
152
+ /** The version the version cache holds, never reading. */
153
+ const known = (id) => {
154
+ const answer = options.versions?.current({ id }, () => void 0, { live: false });
155
+ return typeof answer === "number" ? answer : void 0;
156
+ };
157
+ return Object.freeze({
158
+ name: "memory",
159
+ record(id, version) {
160
+ const entry = entries.get(id);
161
+ if (entry === void 0) return null;
162
+ const held = entry.record.authzVersion;
163
+ if (version !== void 0) {
164
+ if (held === version) {
165
+ store(entry);
166
+ return entry.record;
167
+ }
168
+ if (held === void 0 || held < version) entries.delete(id);
169
+ return null;
170
+ }
171
+ const current = known(id);
172
+ if (maxStaleMs === 0 || now() - entry.at > maxStaleMs || current !== void 0 && held !== current) return null;
173
+ store(entry);
174
+ return entry.record;
175
+ },
176
+ seed(record) {
177
+ const version = record.authzVersion;
178
+ const held = entries.get(record.id)?.record.authzVersion;
179
+ if (version === void 0) {
180
+ if (held !== void 0) return;
181
+ } else if (version < (held ?? version) || version < (known(record.id) ?? version)) return;
182
+ store({
183
+ record,
184
+ at: now()
185
+ });
186
+ },
187
+ evict(id) {
188
+ entries.delete(id);
189
+ }
190
+ });
191
+ }
192
+ //#endregion
193
+ export { readSubjectRecord as n, readMemberships as r, memorySubjectCache as t };
@@ -0,0 +1,144 @@
1
+ import { St as VersionQuery, pr as CustomRole, qt as Instant, vr as Membership } from "./policy-types-rNfz7t0M.js";
2
+ //#region src/core/version-cache.d.ts
3
+ type VersionCacheStats = {
4
+ /** Version reads the cache started. */
5
+ readonly reads: number;
6
+ /** Calls answered by a read already in flight. */
7
+ readonly shared: number;
8
+ /** Local misses answered by the `shared` store, with no read. */
9
+ readonly storeHits?: number;
10
+ /** Calls answered from an entry or a token claim, with no read. */
11
+ readonly hits: number;
12
+ readonly evictions: number;
13
+ readonly size: number;
14
+ };
15
+ /**
16
+ * Current authorization versions shared by every instance in a process:
17
+ * `claimsFirst(source, { versions })` reads through it.
18
+ */
19
+ type VersionCache = {
20
+ readonly name?: string;
21
+ /** How old an entry may be when an instance with intent `read` uses it. */
22
+ readonly maxStaleMs: number;
23
+ /**
24
+ * The current version of `principal`. With `live: false`, an entry at most
25
+ * `maxStaleMs` old answers and a read in flight is shared; with `live: true`,
26
+ * `read` runs.
27
+ */
28
+ current: (principal: VersionQuery, read: () => number | undefined | Promise<number | undefined>, options: {
29
+ readonly live: boolean;
30
+ }) => number | undefined | Promise<number | undefined>;
31
+ /**
32
+ * Stores a version read at `at` (default now): `bsb.bootstrap()`'s
33
+ * `authz_ver`, or a token claim dated by its `iat`. A seed never lowers a
34
+ * cached version, and one dated in the future is ignored.
35
+ */
36
+ seed: (principal: string, version: number, at?: Instant) => void;
37
+ /** Drops `principal`'s entry, so the next instance reads the version. */
38
+ evict: (principal: string) => void;
39
+ stats: () => VersionCacheStats;
40
+ };
41
+ /**
42
+ * A store shared by every process, such as Redis or a runtime cache, behind
43
+ * `memoryVersionCache({ shared })`. A rejected or thrown call counts as a
44
+ * miss.
45
+ */
46
+ type VersionStore = {
47
+ get: (id: string) => number | undefined | PromiseLike<number | undefined>;
48
+ set: (id: string, version: number) => void | PromiseLike<void>;
49
+ delete: (id: string) => void | PromiseLike<void>;
50
+ };
51
+ type MemoryVersionCacheOptions = {
52
+ /**
53
+ * How stale a read may be, in milliseconds: the entry lifetime and the
54
+ * longest a removed member keeps read access. Default 30,000; clamped to 0 to
55
+ * 60,000.
56
+ */
57
+ readonly maxStaleMs?: number;
58
+ /**
59
+ * A store read on a local miss and written on every read and seed, so
60
+ * instances share what one of them learned. Without one the cache is per
61
+ * process.
62
+ */
63
+ readonly shared?: VersionStore;
64
+ /** Principals kept; the least recently used goes first. Default 10,000. */
65
+ readonly maxEntries?: number;
66
+ /** The clock, read only when an instance asks for a version. */
67
+ readonly now?: () => Instant;
68
+ };
69
+ /**
70
+ * An in-process `VersionCache`: a bounded LRU keyed by principal id that keeps
71
+ * resolved versions and shares reads in flight. Create it once at module
72
+ * scope.
73
+ */
74
+ declare function memoryVersionCache(options?: MemoryVersionCacheOptions): VersionCache;
75
+ //#endregion
76
+ //#region src/core/subject-cache.d.ts
77
+ /** One user as `subject_for(p_user)` returns it. */
78
+ type SubjectRecord = {
79
+ readonly id: string;
80
+ /** `false` for a suspended user, who holds no roles or memberships. */
81
+ readonly active: boolean;
82
+ readonly roles: readonly string[];
83
+ readonly memberships: readonly Membership[];
84
+ readonly customRoles: readonly CustomRole[];
85
+ readonly authzVersion?: number;
86
+ /**
87
+ * The token claims the hook adds besides the memberships: `team_ids` and each
88
+ * `supabase.hook.claims` entry.
89
+ */
90
+ readonly claims?: Readonly<Record<string, unknown>>;
91
+ };
92
+ /**
93
+ * Subject records kept across instances, so a source reads `subject_for` once
94
+ * per authorization version instead of once per request. A cache never decides
95
+ * anything: it answers a record or `null`, and the source reads on `null`.
96
+ */
97
+ type SubjectCache = {
98
+ readonly name?: string;
99
+ /**
100
+ * The record held for `id`, or `null`. With a `version` (the one the instance
101
+ * resolved), only a record at exactly that version answers, and a record
102
+ * below it is dropped. With none, a record answers while it is younger than
103
+ * the cache's staleness window and at the version the cache's `VersionCache`
104
+ * holds.
105
+ */
106
+ record: (id: string, version: number | undefined) => SubjectRecord | null | Promise<SubjectRecord | null>;
107
+ /**
108
+ * Stores a record a source read. A record whose `authzVersion` is below the
109
+ * cached record's, or below the version cache's entry, is refused, as is one
110
+ * with no version when a versioned record is held.
111
+ */
112
+ seed: (record: SubjectRecord) => void | Promise<void>;
113
+ /** Drops the record of `id`. */
114
+ evict: (id: string) => void | Promise<void>;
115
+ };
116
+ type MemorySubjectCacheOptions = {
117
+ /** Records kept; the least recently used goes first. Default 10,000. */
118
+ readonly maxEntries?: number;
119
+ /**
120
+ * How long a record answers a read made with no known version, in
121
+ * milliseconds, as for `memoryVersionCache`. Default 0: such a read always
122
+ * misses.
123
+ */
124
+ readonly maxStaleMs?: number;
125
+ /**
126
+ * The version cache `seed` and a read with no known version compare with, so
127
+ * a record older than the version the process already saw is refused.
128
+ */
129
+ readonly versions?: VersionCache;
130
+ /** The clock, read only when a record is stored or read. */
131
+ readonly now?: () => Instant;
132
+ };
133
+ /**
134
+ * Reads `subject_for`'s JSON; anything it cannot read is left out, and a
135
+ * malformed record is no record.
136
+ */
137
+ declare function readSubjectRecord(value: unknown): SubjectRecord | undefined;
138
+ /**
139
+ * An in-process `SubjectCache`: a bounded LRU keyed by principal id. Create it
140
+ * once at module scope and pass it as `subjects`.
141
+ */
142
+ declare function memorySubjectCache(options?: MemorySubjectCacheOptions): SubjectCache;
143
+ //#endregion
144
+ export { readSubjectRecord as a, VersionCacheStats as c, memorySubjectCache as i, VersionStore as l, SubjectCache as n, MemoryVersionCacheOptions as o, SubjectRecord as r, VersionCache as s, MemorySubjectCacheOptions as t, memoryVersionCache as u };
@@ -1,8 +1,9 @@
1
- import { qt as Instant, xr as Subject } from "../policy-types-BI9C5Sp5.js";
2
- import { i as ApprovalPolicySource } from "../approval-policies-CKlByf5o.js";
3
- import { a as ApprovalDelegationSource, m as ApprovalStore, u as ApprovalRequest } from "../types-BzxA2OAD.js";
4
- 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-CWCCbaxm.js";
5
- import { A as SupabaseSubjectOptions, B as supabaseClaims, C as SupabasePrincipal, D as SupabaseRlsOptions, E as SupabaseRlsMembershipTable, F as SupabaseClaims, I as SupabaseClaimsOptions, L as SupabaseClaimsSchema, M as SupabaseSuspendedScope, N as SupabaseSuspension, O as SupabaseSessionLike, P as SupabaseActClaim, R as SupabaseMembershipClaim, S as SupabasePermissionRef, T as SupabaseRlsConfig, _ as SupabaseActor, a as MembershipStream, b as SupabaseInclude, c as SupabasePostgres, d as supabasePostgresQuery, f as tableMembershipSource, g as SupabaseActiveRow, h as RoleThrough, i as MembershipSql, j as SupabaseSuspendedMembership, k as SupabaseStorage, l as authzVersion, n as MembershipHolders, o as MembershipTableOptions, p as AuthorizeSqlOptions, r as MembershipJunctionOptions, s as SqlMembershipSource, t as AUTHZ_VERSION_TABLE, u as junctionMembershipSource, v as SupabaseActorResult, w as SupabaseRealtime, x as SupabaseMembershipTable, y as SupabaseDelegation, z as SupabasePermDockClaims } from "../sources-sgQlMfmz.js";
1
+ import { qt as Instant, xr as Subject } from "../policy-types-rNfz7t0M.js";
2
+ import { i as ApprovalPolicySource } from "../approval-policies-UnDSxT__.js";
3
+ import { a as ApprovalDelegationSource, m as ApprovalStore, u as ApprovalRequest } from "../types-ZfjQB0KC.js";
4
+ import { a as readSubjectRecord, r as SubjectRecord } from "../subject-cache-d_Z4KAnm.js";
5
+ import { a as SupabaseRpcResult, i as SupabaseRpcClient, n as PostgrestSourcesOptions, o as postgrestSources, r as SupabaseRpcCaller, t as PostgrestSources } from "../postgrest-Cn0Res25.js";
6
+ import { A as SupabaseSubjectOptions, B as supabaseClaims, C as SupabasePrincipal, D as SupabaseRlsOptions, E as SupabaseRlsMembershipTable, F as SupabaseClaims, I as SupabaseClaimsOptions, L as SupabaseClaimsSchema, M as SupabaseSuspendedScope, N as SupabaseSuspension, O as SupabaseSessionLike, P as SupabaseActClaim, R as SupabaseMembershipClaim, S as SupabasePermissionRef, T as SupabaseRlsConfig, _ as SupabaseActor, a as MembershipStream, b as SupabaseInclude, c as SupabasePostgres, d as supabasePostgresQuery, f as tableMembershipSource, g as SupabaseActiveRow, h as RoleThrough, i as MembershipSql, j as SupabaseSuspendedMembership, k as SupabaseStorage, l as authzVersion, n as MembershipHolders, o as MembershipTableOptions, p as AuthorizeSqlOptions, r as MembershipJunctionOptions, s as SqlMembershipSource, t as AUTHZ_VERSION_TABLE, u as junctionMembershipSource, v as SupabaseActorResult, w as SupabaseRealtime, x as SupabaseMembershipTable, y as SupabaseDelegation, z as SupabasePermDockClaims } from "../sources-BfTza0zT.js";
6
7
  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-B5yF3CIq.js";
7
8
  import { t as SqlQuery } from "../sql-B80DFdpG.js";
8
9
  import { n as supabaseTenantClaim, t as supabaseMembershipsBudget } from "../budget-CNLsV2SL.js";
@@ -1,7 +1,8 @@
1
+ import { n as readSubjectRecord } from "../subject-cache-BT1fGuea.js";
1
2
  import { n as AUTHZ_TOPIC, r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-Dbc-HDOS.js";
2
3
  import { n as supabaseTenantClaim, t as supabaseMembershipsBudget } from "../budget-BBCPDOGP.js";
3
- import { a as supabaseApprovalStore, i as tableApprovalPolicySource, n as supabaseRls, o as supabaseClaims, r as tableApprovalDelegationSource, s as exchangeCapability, t as authorizeSql } from "../supabase-CVZuytCC.js";
4
+ import { a as supabaseApprovalStore, i as tableApprovalPolicySource, n as supabaseRls, o as supabaseClaims, r as tableApprovalDelegationSource, s as exchangeCapability, t as authorizeSql } from "../supabase-DnazO6W4.js";
4
5
  import { c as tableMembershipSource, i as authzVersion, o as junctionMembershipSource, s as supabasePostgresQuery, t as AUTHZ_VERSION_TABLE } from "../sources-C4vkzZJV.js";
5
- import { a as delegationOf, c as subjectFromSupabaseSession, i as actorOf, n as postgrestSources, r as readSubjectRecord, s as subjectFromSupabase } from "../postgrest-BrjrckDG.js";
6
+ import { i as subjectFromSupabaseSession, n as delegationOf, o as postgrestSources, r as subjectFromSupabase, t as actorOf } from "../subject-BqFwS6l3.js";
6
7
  import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-BdzBobNK.js";
7
8
  export { AUTHZ_EVENT, AUTHZ_TOPIC, AUTHZ_VERSION_TABLE, actorOf, authorizeSql, authzUserTopic, authzVersion, delegationOf, exchangeCapability, hasTokenHook, junctionMembershipSource, parseSupabaseManifest, postgrestSources, readSubjectRecord, subjectFromSupabase, subjectFromSupabaseSession, supabaseApprovalStore, supabaseClaims, supabaseMembershipsBudget, supabasePostgresQuery, supabaseRls, supabaseTenantClaim, tableApprovalDelegationSource, tableApprovalPolicySource, tableMembershipSource };
@@ -1,10 +1,10 @@
1
- import { D as Policy, N as PolicyVocabulary, xr as Subject, 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";
4
- import { t as InstanceOptions } from "../instance-options-Cq66kEeR.js";
1
+ import { D as Policy, N as PolicyVocabulary, xr as Subject, 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
+ import { t as InstanceOptions } from "../instance-options-C6gEDOts.js";
5
5
  import { t as RequestContext } from "../request-context-C2_1lchh.js";
6
- import { i as OpenApiHooks } from "../server-types-Bfl-IrzZ.js";
7
- import { n as ServerAdapterServices } from "../bind-XvnD_SUz.js";
6
+ import { i as OpenApiHooks } from "../server-types--_Hann81.js";
7
+ import { n as ServerAdapterServices } from "../bind-CnOMjazH.js";
8
8
  import { FetchHandler, 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-DbAq8_Fp.js";
3
- import { t as composeWraps } from "../wrap-C5PWzgkq.js";
4
- import { r as credentialSubject } from "../credential-B3Hj4puZ.js";
2
+ import { r as withApp } from "../app-DIvM65Mv.js";
3
+ import { t as composeWraps } from "../wrap-BKU5Arsu.js";
4
+ import { r as credentialSubject } from "../credential-Bap3HClV.js";
5
+ import { t as instanceOptions } from "../instance-options-URVwqpMW.js";
5
6
  import { o as methodNotAllowed } from "../problem-BWP1l86g.js";
6
- import { r as instanceOptions } from "../build-instance-CkRKgjSj.js";
7
- import { t as createPermDock$1 } from "../create-BRiRVNUO.js";
8
- import { n as attached } from "../bind-CJf7S-Jd.js";
7
+ import { t as createPermDock$1 } from "../create-BsL5lCWR.js";
8
+ import { n as attached } from "../bind-B4Z0U2Gr.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;
@@ -47,7 +47,7 @@ const hookGenerate = defineLeaf({
47
47
  const budget = given(flags.budget);
48
48
  const schema = given(flags.schema);
49
49
  const grantsOut = given(flags["grants-out"]);
50
- const { runSupabase } = await import("./supabase-hook-QWphWBnG.js");
50
+ const { runSupabase } = await import("./supabase-hook-CVAenq-w.js");
51
51
  return runSupabase({
52
52
  cwd: ctx.cwd,
53
53
  config: ctx.config,
@@ -76,7 +76,7 @@ const inspect = defineLeaf({
76
76
  },
77
77
  async run(ctx, { flags }) {
78
78
  const out = flags.out === "" ? true : flags.out === "-" ? void 0 : flags.out;
79
- const { runSupabase } = await import("./supabase-hook-QWphWBnG.js");
79
+ const { runSupabase } = await import("./supabase-hook-CVAenq-w.js");
80
80
  return runSupabase({
81
81
  cwd: ctx.cwd,
82
82
  config: ctx.config,
@@ -1,14 +1,14 @@
1
1
  import { r as isRecord, t as compact } from "./compact-CAf557ZB.js";
2
2
  import { d as isoNow, i as dateAt, p as nowSeconds, u as isoAt } from "./time-nR1JesoH.js";
3
3
  import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
4
+ import { a as parseCapability } from "./capability-CenWwTMR.js";
4
5
  import { s as ApprovalError } from "./types-CcUXciSj.js";
5
- import { c as decodeApprovalCursor, l as encodeApprovalCursor, s as approvalPageSize, t as applyApprovalVerdict } from "./store-CSOsXd5s.js";
6
- import { a as parseCapability } from "./capability-zN6T9fxe.js";
6
+ import { c as decodeApprovalCursor, l as encodeApprovalCursor, s as approvalPageSize, t as applyApprovalVerdict } from "./store-BpKH-pLm.js";
7
7
  import { t as loadJose } from "./load-jose-DZ4dnjri.js";
8
8
  import "./budget-BBCPDOGP.js";
9
9
  import { a as quoteQualifiedTable, c as quoteSqlTable, d as sqlTextArray, i as qualifySqlTable, o as quoteSqlIdent, s as quoteSqlLiteral } from "./sql-0WjxIp9g.js";
10
10
  import { d as keptKeys, l as roleColumn } from "./sources-C4vkzZJV.js";
11
- import { t as callRpc } from "./postgrest-BrjrckDG.js";
11
+ import { a as callRpc } from "./subject-BqFwS6l3.js";
12
12
  //#region src/supabase/capability.ts
13
13
  const DEFAULT_TTL = 300;
14
14
  const MAX_TTL = 3600;