permdock 0.34.0 → 0.35.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 (256) hide show
  1. package/dist/a2a/index.d.ts +4 -4
  2. package/dist/{adoption-scan-BPW1eWy5.js → adoption-scan-oaPsvHSN.js} +1 -1
  3. package/dist/agent/index.d.ts +2 -2
  4. package/dist/ai-sdk/index.d.ts +3 -3
  5. package/dist/app/index.d.ts +1 -1
  6. package/dist/{approval-prompt-CJvYBdja.d.ts → approval-prompt-BKxaKtby.d.ts} +1 -1
  7. package/dist/approvals/index.d.ts +3 -3
  8. package/dist/{arazzo-DqzmZG-x.js → arazzo-1oDMApA_.js} +1 -1
  9. package/dist/{arazzo-BUXKjylF.js → arazzo-B2PszcDL.js} +1 -1
  10. package/dist/astro/index.d.ts +4 -4
  11. package/dist/authzen/index.d.ts +6 -6
  12. package/dist/{automation-BqUmdFfe.d.ts → automation-C7WH5XcZ.d.ts} +1 -1
  13. package/dist/better-auth/index.d.ts +1 -1
  14. package/dist/better-supabase/index.d.ts +13 -13
  15. package/dist/better-supabase/index.js +2 -2
  16. package/dist/{bind-Bwk9tt1z.d.ts → bind-BnrOLyJq.d.ts} +7 -7
  17. package/dist/{bsb-access-tags-Nv4nDQ2U.js → bsb-access-tags-uDuwPUbT.js} +2 -2
  18. package/dist/{bsb-action-keys-CYEREFMg.js → bsb-action-keys-BfZAwg-9.js} +1 -1
  19. package/dist/{capability-qoD_jlcI.d.ts → capability-BW-vAxJi.d.ts} +1 -1
  20. package/dist/{casbin-qEW6RfXA.js → casbin-DrdS0vLy.js} +1 -1
  21. package/dist/{casbin-CM9mWO1V.js → casbin-vtIUd-6L.js} +1 -1
  22. package/dist/catalog/index.d.ts +4 -4
  23. package/dist/chat/index.d.ts +1 -1
  24. package/dist/chat-sdk/index.d.ts +3 -3
  25. package/dist/claude-agent/index.d.ts +3 -3
  26. package/dist/clerk/index.d.ts +2 -2
  27. package/dist/cli/bin.js +1 -1
  28. package/dist/cli/generate/watch-worker.js +2 -2
  29. package/dist/cli/index.d.ts +6 -6
  30. package/dist/cli/index.js +2 -2
  31. package/dist/cli/plugins/app.d.ts +1 -1
  32. package/dist/cli/plugins/app.js +1 -1
  33. package/dist/cli/plugins/better-supabase.d.ts +1 -1
  34. package/dist/cli/plugins/openapi.d.ts +1 -1
  35. package/dist/cli/plugins/openapi.js +1 -1
  36. package/dist/cli/plugins/powersync.d.ts +1 -1
  37. package/dist/cli/plugins/powersync.js +1 -1
  38. package/dist/cli/plugins/rls.d.ts +2 -2
  39. package/dist/cli/plugins/rls.js +1 -1
  40. package/dist/cli/plugins/schemas.d.ts +1 -1
  41. package/dist/cli/plugins/schemas.js +1 -1
  42. package/dist/cli/plugins/scim.d.ts +2 -2
  43. package/dist/cli/plugins/supabase-hook.d.ts +2 -2
  44. package/dist/cli/plugins/supabase-hook.js +1 -1
  45. package/dist/cli/plugins/supabase.d.ts +3 -3
  46. package/dist/cli/plugins/supabase.js +2 -2
  47. package/dist/cli/plugins/ui.d.ts +1 -1
  48. package/dist/cli/plugins/ui.js +1 -1
  49. package/dist/{client-subject-Dzo49nco.d.ts → client-subject-YAGMzRa-.d.ts} +2 -2
  50. package/dist/cloud/index.d.ts +8 -8
  51. package/dist/{cloud-CNGblWX0.js → cloud-BQnIR-SS.js} +1 -1
  52. package/dist/{codemod-BtJFcsD7.js → codemod-C0OHCnaj.js} +6 -6
  53. package/dist/{codemod-Dlhxov9D.js → codemod-rv5XSBNw.js} +1 -1
  54. package/dist/{collect-CE5wK0AX.js → collect-Ba7ccZ23.js} +1 -1
  55. package/dist/compile/index.d.ts +1 -1
  56. package/dist/{compile-nR1gQhXo.js → compile-BRDpja_Y.js} +2 -2
  57. package/dist/{compile-DNgpHgcK.d.ts → compile-CoUadQXF.d.ts} +2 -2
  58. package/dist/{completion-BIN9YXIe.js → completion-Dgjdte2-.js} +1 -1
  59. package/dist/{config-7QvEq57a.js → config-Dan6vcvj.js} +2 -2
  60. package/dist/{config-CoYhD6ur.js → config-anQ9E37F.js} +1 -1
  61. package/dist/{config-report-D_L1HXDb.js → config-report-C43BSFHY.js} +1 -1
  62. package/dist/{config-shape-BTojaD-H.js → config-shape-BODqM-rG.js} +1 -1
  63. package/dist/{context-D8tN3SZm.js → context-rioF4fQl.js} +1 -1
  64. package/dist/convex/index.d.ts +4 -4
  65. package/dist/{core-DPuDmlbL.d.ts → core-DCMIztx1.d.ts} +2 -2
  66. package/dist/{create-BKrKxipb.d.ts → create-BYL8xCJB.d.ts} +4 -4
  67. package/dist/{create-CdB9FCZh.d.ts → create-T_NqxU31.d.ts} +7 -7
  68. package/dist/{create-CdbVXh5I.d.ts → create-iCwrnaFE.d.ts} +6 -6
  69. package/dist/{credentials-Dl0-R2aB.d.ts → credentials-DzNrCNZY.d.ts} +2 -2
  70. package/dist/{define-permdock-4IkoNaB3.d.ts → define-permdock-Bhye7WSY.d.ts} +6 -6
  71. package/dist/{definition-options-DO0kIrB9.js → definition-options-DLBlRrPO.js} +1 -8
  72. package/dist/delivery/index.d.ts +4 -4
  73. package/dist/{denied-text-CllTzVJM.d.ts → denied-text-DgNqDAPH.d.ts} +1 -1
  74. package/dist/{describe-FT1oVN_o.d.ts → describe-DEoWvk00.d.ts} +1 -1
  75. package/dist/{doctor-Bn5OPJMB.js → doctor-GnMgqGO8.js} +25 -24
  76. package/dist/{doctor-C9lLeLp2.js → doctor-sAqU02Fx.js} +2 -2
  77. package/dist/drizzle/index.d.ts +3 -3
  78. package/dist/elysia/index.d.ts +4 -4
  79. package/dist/{errors-BGosrHl8.d.ts → errors-BliKrfmP.d.ts} +1 -1
  80. package/dist/{evaluations-CaXNkxTp.d.ts → evaluations-CUkSKioS.d.ts} +3 -3
  81. package/dist/eve/index.d.ts +4 -4
  82. package/dist/{execute-DsHFIBuO.js → execute-xF5fwAel.js} +3 -3
  83. package/dist/express/index.d.ts +4 -4
  84. package/dist/fastify/index.d.ts +4 -4
  85. package/dist/{fetch-adapter-Dci9NnyZ.d.ts → fetch-adapter-Ds2-fUUi.d.ts} +2 -2
  86. package/dist/gen-BPYFr_tZ.js +1 -0
  87. package/dist/{gen-Fi4GcvIY.js → gen-djPw1RS-.js} +2 -2
  88. package/dist/{gen-kind-DR2-to9P.js → gen-kind-Vhq_ZIZm.js} +1 -1
  89. package/dist/{generate-BSD_eI61.js → generate-BcH-uL0z.js} +10 -10
  90. package/dist/{generate-QEHCJSyv.js → generate-CYHeuPq8.js} +3 -3
  91. package/dist/{generate-options-BZ2nqy28.js → generate-options-DDSeUTFU.js} +6 -6
  92. package/dist/h3/index.d.ts +4 -4
  93. package/dist/hono/index.d.ts +4 -4
  94. package/dist/{hook-sql-CbkH78FC.js → hook-sql-EksAnz-T.js} +7 -7
  95. package/dist/{hosted-BISipW6F.d.ts → hosted-DZgmEG4b.d.ts} +1 -1
  96. package/dist/identity-scopes-CRVAV0HU.js +11 -0
  97. package/dist/{import-DppjSugv.js → import-C45gc74U.js} +1 -1
  98. package/dist/{index-giCl-aQY.d.ts → index-BOJPdIBk.d.ts} +4 -4
  99. package/dist/{index-Co_e22iJ.d.ts → index-CAE_Z53Y.d.ts} +1 -1
  100. package/dist/{index-BF4IlvkT.d.ts → index-CWBCzwOp.d.ts} +4 -4
  101. package/dist/{index-BDJ2OZvV.d.ts → index-Cjr8Q-uq.d.ts} +6 -6
  102. package/dist/{index-CWwWkz10.d.ts → index-DBBRSw6r.d.ts} +2 -2
  103. package/dist/{index-BO5f180f.d.ts → index-ktQ7E4qB.d.ts} +4 -4
  104. package/dist/index.d.ts +15 -15
  105. package/dist/{init-DJYSpo-H.js → init-B6aZxzd7.js} +1 -1
  106. package/dist/{init-BOYIObRF.js → init-CCBVeyW8.js} +3 -3
  107. package/dist/{inspect-functions-CwEAQpVF.js → inspect-functions-BUACOlgS.js} +1 -1
  108. package/dist/{instance-options-hq5Cp2Ih.d.ts → instance-options-DDERlopm.d.ts} +1 -1
  109. package/dist/jwt/index.d.ts +4 -4
  110. package/dist/{keys-U2V0maaq.js → keys-BWhAnANj.js} +1 -1
  111. package/dist/kysely/index.d.ts +3 -3
  112. package/dist/{lazy-provider-W8KwlWJU.d.ts → lazy-provider-Clt2095H.d.ts} +1 -1
  113. package/dist/{login-Dv8TFykx.js → login-BnE2iUUA.js} +1 -1
  114. package/dist/{login-xgjt0a5o.js → login-d631Tpa9.js} +3 -3
  115. package/dist/{manager-chain-FggG63qD.js → manager-chain-CFkceFls.js} +1 -1
  116. package/dist/{manifest-BUeAHWDT.js → manifest-1w67doim.js} +34 -34
  117. package/dist/mcp/index.d.ts +8 -8
  118. package/dist/{measure-DZtly0oE.js → measure-BKsYdwKd.js} +1 -1
  119. package/dist/{model-D0EKt-ED.js → model-BYCtXS_g.js} +1 -1
  120. package/dist/{module-values-B09BBJIj.js → module-values-D-AiNhBp.js} +1 -1
  121. package/dist/nest/index.d.ts +4 -4
  122. package/dist/next/index.d.ts +11 -11
  123. package/dist/next/plugin.d.ts +1 -1
  124. package/dist/next/plugin.js +1 -1
  125. package/dist/node/index.d.ts +4 -4
  126. package/dist/openai/index.d.ts +4 -4
  127. package/dist/openapi/index.d.ts +2 -2
  128. package/dist/{openapi-g58VVrsc.js → openapi-BnKSxOrh.js} +1 -1
  129. package/dist/{openapi-Bfakk4cF.js → openapi-CN2Oq9zN.js} +1 -1
  130. package/dist/{openapi-document-ZWpur4f1.js → openapi-document-XnGRbWBb.js} +1 -1
  131. package/dist/orpc/index.d.ts +5 -5
  132. package/dist/otel/index.d.ts +3 -3
  133. package/dist/{output-D4FLF3_v.js → output-dO4bArCS.js} +1 -1
  134. package/dist/{ownership-DvmaGcup.js → ownership-CSdLGGfW.js} +1 -1
  135. package/dist/{parse-local-manifest-AJWs3pkW.d.ts → parse-local-manifest-DoLQFkRb.d.ts} +1 -1
  136. package/dist/pdp/index.d.ts +3 -3
  137. package/dist/{permdock-V86uejcm.d.ts → permdock-DkvkGVF0.d.ts} +2 -2
  138. package/dist/{pipeline-DCERGTTY.js → pipeline-BAGSNnct.js} +2 -2
  139. package/dist/{plugin-BnvEp5tS.d.ts → plugin-DDPXES4k.d.ts} +2 -2
  140. package/dist/{policy-DZORR-Fw.d.ts → policy-BoUbJ2c0.d.ts} +1 -1
  141. package/dist/{policy-DoHkOOTQ.js → policy-CTn-9VQm.js} +1 -1
  142. package/dist/{policy-bundle-CsnNAo-n.js → policy-bundle-BHd1dqU9.js} +3 -3
  143. package/dist/{policy-types-BnBZvh7N.d.ts → policy-types-DuM3k5Ao.d.ts} +1 -1
  144. package/dist/{postgrest-BG0ipED3.d.ts → postgrest-B1bTbVE4.d.ts} +2 -2
  145. package/dist/{powersync-Dbpn-n0o.js → powersync-CZkZgVyi.js} +1 -1
  146. package/dist/{powersync-CTKfjnPT.js → powersync-DJ7dY-Vf.js} +6 -6
  147. package/dist/{powersync-Cz3MUw6R.js → powersync-Jj57J-X8.js} +1 -1
  148. package/dist/prisma/index.d.ts +2 -2
  149. package/dist/{protected-action-aGL_gT4j.d.ts → protected-action-gBxeetqY.d.ts} +5 -5
  150. package/dist/{provider-W8KwlWJU.d.ts → provider-Clt2095H.d.ts} +1 -1
  151. package/dist/{prune-config--x-cEF8G.js → prune-config-Bwz4wNQA.js} +5 -5
  152. package/dist/pull-BOC-0kJV.js +1 -0
  153. package/dist/{pull-BQELP7aV.js → pull-Cj_ngsuu.js} +1 -1
  154. package/dist/{pushed-policy-CQaXRDe3.d.ts → pushed-policy-C65TbLtU.d.ts} +1 -1
  155. package/dist/{rbac-BRMnQ9Rl.js → rbac-DbyaaNLa.js} +1 -1
  156. package/dist/react/index.d.ts +6 -6
  157. package/dist/react/lazy.d.ts +6 -6
  158. package/dist/react/provider-client-lazy.d.ts +1 -1
  159. package/dist/react/provider-client.d.ts +1 -1
  160. package/dist/react-native/index.d.ts +15 -15
  161. package/dist/react-native/index.js +1 -1
  162. package/dist/{rename-BjP2CFUY.js → rename-CI6NIF9t.js} +1 -1
  163. package/dist/replay-B__gzUx3.d.ts +3 -0
  164. package/dist/resend/index.d.ts +4 -4
  165. package/dist/{resolve-names-xBg9s2IJ.js → resolve-names-CuEhEQyB.js} +1 -1
  166. package/dist/{resolver-C_a-bddD.js → resolver-D2c1CcoZ.js} +1 -1
  167. package/dist/{rls-rk-QH4fc.js → rls-BDtyip5c.js} +7 -7
  168. package/dist/{rls-BzCz7ZV0.js → rls-DcqSn7b2.js} +3 -3
  169. package/dist/{rls-files-Bu0O7cZ6.js → rls-files-CRRtjXxG.js} +1 -1
  170. package/dist/{rls-options-f1wRhXSG.d.ts → rls-options-DCLdZaTZ.d.ts} +1 -1
  171. package/dist/{rpc-DyCWVn6C.d.ts → rpc-BYFB37KV.d.ts} +1 -1
  172. package/dist/run-DOP1UKWw.js +1 -0
  173. package/dist/{run-DTz-e3Od.js → run-DvbrPkgt.js} +3 -3
  174. package/dist/{run-ticket-mVPqm6M6.d.ts → run-ticket-CRldclc7.d.ts} +2 -2
  175. package/dist/{scan-Cn79IAJs.js → scan-CmfWbAbz.js} +1 -1
  176. package/dist/{schema-CbzVUpWv.js → schema-CO3btX_O.js} +1 -1
  177. package/dist/scim/index.d.ts +1 -1
  178. package/dist/seeds/index.d.ts +1 -1
  179. package/dist/{seeds-DLjPbhvM.d.ts → seeds-BZMPfWcC.d.ts} +1 -1
  180. package/dist/server/index.d.ts +11 -11
  181. package/dist/{server-types-BlMijUtb.d.ts → server-types-FkdDSB9h.d.ts} +8 -8
  182. package/dist/{sink-DhrVLPSJ.d.ts → sink-CoMI_OVw.d.ts} +2 -2
  183. package/dist/{skills-oZ8Ng2e7.js → skills-C28GUaJC.js} +1 -1
  184. package/dist/{skills-BKrN1qej.js → skills-CA8GfQxQ.js} +1 -1
  185. package/dist/{snapshot-cache-CVYqOThu.d.ts → snapshot-cache-R1lJjYmI.d.ts} +1 -1
  186. package/dist/solid/index.d.ts +5 -5
  187. package/dist/solid-start/index.d.ts +4 -4
  188. package/dist/{sources-Bq7k7g34.d.ts → sources-Dp6FQ8np.d.ts} +1 -1
  189. package/dist/ssf/index.d.ts +3 -3
  190. package/dist/{standard-webhooks-D6SPYjSQ.d.ts → standard-webhooks-D2FwHtMX.d.ts} +2 -2
  191. package/dist/{store-core-Bq7Qc9QM.d.ts → store-core-aluQ3R1M.d.ts} +4 -4
  192. package/dist/{stores-Dn7TpQFa.d.ts → stores-hHICuiQl.d.ts} +5 -5
  193. package/dist/{subject-cache-UKUgQCEX.d.ts → subject-cache-Bn4oJY_R.d.ts} +1 -1
  194. package/dist/supabase/index.d.ts +8 -8
  195. package/dist/supabase/index.js +3 -3
  196. package/dist/supabase/middleware.d.ts +5 -5
  197. package/dist/supabase/middleware.js +1 -1
  198. package/dist/{supabase-DrazwRER.js → supabase-ByhSqBDB.js} +2 -2
  199. package/dist/{supabase-BNPS-Gr1.js → supabase-DXEcFJGM.js} +2 -2
  200. package/dist/supabase-hook-C_ViYz3g.js +2 -0
  201. package/dist/{supabase-hook-t1HnQf8U.js → supabase-hook-D-ybV98H.js} +5 -5
  202. package/dist/{supabase-schemas-_ubYYw9i.js → supabase-schemas-CVhpyYB6.js} +1 -1
  203. package/dist/svelte/index.d.ts +5 -5
  204. package/dist/svelte/runtime.d.ts +3 -3
  205. package/dist/svelte/source.d.ts +5 -5
  206. package/dist/sveltekit/index.d.ts +4 -4
  207. package/dist/{table-reads-Ci-ZVo5m.js → table-reads-BcceuV7h.js} +1 -1
  208. package/dist/{table-reads-B7z40Yu-.js → table-reads-BoF_58yh.js} +1 -1
  209. package/dist/{tables-Bxmf2beb.js → tables-BTXmioCH.js} +85 -12
  210. package/dist/tanstack-start/index.d.ts +4 -4
  211. package/dist/{tenant-check-DW0kbH-a.js → tenant-check-DNbm8OiV.js} +3 -3
  212. package/dist/terminal/index.d.ts +5 -5
  213. package/dist/testing/core.d.ts +1 -1
  214. package/dist/testing/fixtures/index.d.ts +3 -3
  215. package/dist/testing/index.d.ts +22 -22
  216. package/dist/testing/saas/index.d.ts +3 -3
  217. package/dist/trpc/index.d.ts +5 -5
  218. package/dist/{type-helpers-CVN-p62O.d.ts → type-helpers-CsWH9z8p.d.ts} +1 -1
  219. package/dist/{types-5cvjmHTG.d.ts → types-BGN3coSe.d.ts} +1 -1
  220. package/dist/{types-BmTW35E5.d.ts → types-BwjOhlgx.d.ts} +4 -4
  221. package/dist/{types-Dl2jRkyq.d.ts → types-BzsplNgO.d.ts} +4 -4
  222. package/dist/{types-CrUguLsE.d.ts → types-CBUYbPwl.d.ts} +2 -2
  223. package/dist/{types-CgaGxF5q.d.ts → types-CKwI6AT4.d.ts} +1 -1
  224. package/dist/{types-B_I8TBA9.d.ts → types-Cvfe-G_N.d.ts} +2 -2
  225. package/dist/{types-CDkJNA3a.d.ts → types-D3GI2B9O.d.ts} +3 -3
  226. package/dist/{types-DNOJRhyn.d.ts → types-D417woMp.d.ts} +3 -3
  227. package/dist/{types-BMKDvcXc.d.ts → types-DRMoZjJm.d.ts} +2 -2
  228. package/dist/{types-config-CyawIkMF.d.ts → types-config-DYRoZ8Iw.d.ts} +11 -5
  229. package/dist/{types-gp1w86cV.d.ts → types-dtDg4goh.d.ts} +4 -4
  230. package/dist/{types-run-ByHuYUen.d.ts → types-run-CeCrWO0v.d.ts} +1 -1
  231. package/dist/unplugin/index.d.ts +1 -1
  232. package/dist/unplugin/index.js +1 -1
  233. package/dist/{usage-B8ca_Nj_.js → usage-BGuSrwiW.js} +2 -2
  234. package/dist/usage-CW6PfRfC.js +1 -0
  235. package/dist/{usage-Do7LQ4i4.js → usage-D5QwWiNp.js} +1 -1
  236. package/dist/{validation-error-BKgVVMc1.d.ts → validation-error-MZ7KLNHt.d.ts} +1 -1
  237. package/dist/{verify-ZojGAC3f.js → verify-GWeopgxU.js} +3 -3
  238. package/dist/vue/index.d.ts +5 -5
  239. package/dist/{waiter-Bov7Cig6.d.ts → waiter-DdwtUSzB.d.ts} +2 -2
  240. package/dist/{warm-BKD3FN6k.d.ts → warm-znYuJoUZ.d.ts} +1 -1
  241. package/dist/{watch-D-5ztqN8.js → watch-14vng0pg.js} +1 -1
  242. package/dist/watch-Be7ja4dL.js +1 -0
  243. package/dist/{watch-EzX_aG73.js → watch-DuIAsqFR.js} +2 -2
  244. package/dist/webmcp/index.d.ts +1 -1
  245. package/dist/workflow/index.d.ts +3 -3
  246. package/dist/workflow-sdk/index.d.ts +4 -4
  247. package/dist/{wrap-CaAA3ubO.d.ts → wrap-C36-eV-C.d.ts} +2 -2
  248. package/package.json +1 -1
  249. package/skills/permdock-data/references/queries-and-rls.md +1 -1
  250. package/dist/gen-CpS9JkCb.js +0 -1
  251. package/dist/pull-C_ZiPZ5X.js +0 -1
  252. package/dist/replay-Dg5-l7xu.d.ts +0 -3
  253. package/dist/run-BvtApZDp.js +0 -1
  254. package/dist/supabase-hook-D0Yzbl19.js +0 -2
  255. package/dist/usage-CKTsomEq.js +0 -1
  256. package/dist/watch-J1PfGMfb.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { t as byCodePoint } from "./compare-dfHDj8kT.js";
2
2
  import { t as didYouMean } from "./args-BSpXxMnb.js";
3
- import { o as nonEmptyOr } from "./output-D4FLF3_v.js";
3
+ import { o as nonEmptyOr } from "./output-dO4bArCS.js";
4
4
  import { i as readJsonFile, s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
5
5
  import { l as packageRoot } from "./version-D-jWyJb9.js";
6
6
  import { cpSync, existsSync, lstatSync, readFileSync, readdirSync, readlinkSync, realpathSync } from "node:fs";
@@ -1,7 +1,7 @@
1
1
  import { t as defineLeaf } from "./command-9GAzSI7E.js";
2
2
  import { t as checkFlag } from "./flags-DQzNPxg1.js";
3
3
  import { r as pick, t as CANCELLED } from "./prompt-CPlJn_4-.js";
4
- import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-oZ8Ng2e7.js";
4
+ import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-C28GUaJC.js";
5
5
  // src/cli/commands/skills.ts
6
6
  const forFlag = { for: {
7
7
  type: "string",
@@ -1,4 +1,4 @@
1
- import { qt as Instant, rn as Snapshot } from "./policy-types-BnBZvh7N.js";
1
+ import { qt as Instant, rn as Snapshot } from "./policy-types-DuM3k5Ao.js";
2
2
  type CacheLifeForOptions = {
3
3
  /**
4
4
  * Lower bound in seconds. Next.js includes a private entry in per-link
@@ -1,10 +1,10 @@
1
- import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-FT1oVN_o.js";
2
- import { c as requiredPlans } from "../errors-BGosrHl8.js";
1
+ import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-DEoWvk00.js";
2
+ import { c as requiredPlans } from "../errors-BliKrfmP.js";
3
3
  import { t as approvalHeaders } from "../headers-D1oRr-js.js";
4
4
  import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-C1zIMtJr.js";
5
- import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, h as ProviderOptionsBase, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-Bq7Qc9QM.js";
6
- import { Dr as Membership, Jt as ClientBundle, N as PolicyVocabulary, ir as Decision, rn as Snapshot, rr as ApprovalRequiredDecision, ur as GrantedDecision, vt as TokenVerifier } from "../policy-types-BnBZvh7N.js";
7
- import { d as UncheckedData, s as RowData } from "../permdock-V86uejcm.js";
5
+ import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, h as ProviderOptionsBase, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-aluQ3R1M.js";
6
+ import { Dr as Membership, Jt as ClientBundle, N as PolicyVocabulary, ir as Decision, rn as Snapshot, rr as ApprovalRequiredDecision, ur as GrantedDecision, vt as TokenVerifier } from "../policy-types-DuM3k5Ao.js";
7
+ import { d as UncheckedData, s as RowData } from "../permdock-DkvkGVF0.js";
8
8
  import { r as Role, w as Permission } from "../vocabulary-DHfKPIC5.js";
9
9
  import { t as PermissionBoundaryState } from "../boundary-DJqHADKu.js";
10
10
  import { Accessor, Accessor as Accessor$1, JSX } from "solid-js";
@@ -1,9 +1,9 @@
1
- import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-BlMijUtb.js";
1
+ import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-FkdDSB9h.js";
2
2
  import { a as OperationInput, t as Operation } from "../operations-DaEoGpMV.js";
3
- import { a as PermDock } from "../permdock-V86uejcm.js";
3
+ import { a as PermDock } from "../permdock-DkvkGVF0.js";
4
4
  import { w as Permission } from "../vocabulary-DHfKPIC5.js";
5
- import { D as Policy, N as PolicyVocabulary, Or as Principal, rn as Snapshot } from "../policy-types-BnBZvh7N.js";
6
- import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-Dci9NnyZ.js";
5
+ import { D as Policy, N as PolicyVocabulary, Or as Principal, rn as Snapshot } from "../policy-types-DuM3k5Ao.js";
6
+ import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-Ds2-fUUi.js";
7
7
  import { APIEvent, FetchEvent } from "@solidjs/start/server";
8
8
  /** The h3 event under every SolidStart request; `subject` and `scope` read it. */
9
9
  type SolidStartNativeEvent = FetchEvent["nativeEvent"];
@@ -1,4 +1,4 @@
1
- import { Or as Principal, gn as AuthEvent, it as MembershipSource, q as CustomRoleSource } from "./policy-types-BnBZvh7N.js";
1
+ import { Or as Principal, gn as AuthEvent, it as MembershipSource, q as CustomRoleSource } from "./policy-types-DuM3k5Ao.js";
2
2
  import { t as SqlQuery } from "./sql-BYYNi1lu.js";
3
3
  import { c as SupabaseManifestMembership } from "./manifest-BwhZ1s5b.js";
4
4
  import { t as ClaimsMap } from "./claims-map-CLKQWxJG.js";
@@ -1,4 +1,4 @@
1
- import { A as SsfSubject, C as SsfEventName, D as SsfReceiver, E as SsfPermDockOptions, M as SsfTransmitterConfiguration, N as SsfVerification, O as SsfStreamConfiguration, S as SsfEventListener, T as SsfPermDock, _ as SetSubject, a as PollHandle, b as SsfEventHandler, c as PushSetOptions, d as SetDelivery, f as SetDeliveryFailureCause, g as SetQueue, h as SetPollHandlerOptions, i as CaepReason, j as SsfSubjectResolver, k as SsfStreamStatus, l as ReplayStore, m as SetEvent, n as CaepEventName, o as PollOptions, p as SetError, r as CaepInitiatingEntity, s as PollResult, t as CaepCommon, u as RiscEventName, v as SignSetOptions, w as SsfOnEvent, x as SsfEventInput, y as SsfAuditEvent } from "../types-B_I8TBA9.js";
2
- import { t as memoryReplayStore } from "../replay-Dg5-l7xu.js";
3
- import { A as createPermDock, C as memorySsfStreamStore, D as PollSetsResult, E as PollSetsOptions, O as PolledSet, S as SsfStreamStore, T as setPollHandler, _ as SsfFanOut, a as CaepTokenClaimsChange, b as ssfTransmitter, c as RiscEvents, d as caepEvents, f as pushSet, g as FanOutSetOptions, h as streamVerificationEvent, i as CaepEvents, k as pollSets, l as SSF_POLL_DELIVERY, m as signSet, n as CaepCredentialChange, o as RiscAccountDisabled, p as riscEvents, r as CaepDeviceComplianceChange, s as RiscCredentialCompromise, t as CaepAssuranceLevelChange, u as SSF_PUSH_DELIVERY, v as SsfTransmitterOptions, w as memorySetQueue, x as SsfStream, y as fanOutSet } from "../index-CWwWkz10.js";
1
+ import { A as SsfSubject, C as SsfEventName, D as SsfReceiver, E as SsfPermDockOptions, M as SsfTransmitterConfiguration, N as SsfVerification, O as SsfStreamConfiguration, S as SsfEventListener, T as SsfPermDock, _ as SetSubject, a as PollHandle, b as SsfEventHandler, c as PushSetOptions, d as SetDelivery, f as SetDeliveryFailureCause, g as SetQueue, h as SetPollHandlerOptions, i as CaepReason, j as SsfSubjectResolver, k as SsfStreamStatus, l as ReplayStore, m as SetEvent, n as CaepEventName, o as PollOptions, p as SetError, r as CaepInitiatingEntity, s as PollResult, t as CaepCommon, u as RiscEventName, v as SignSetOptions, w as SsfOnEvent, x as SsfEventInput, y as SsfAuditEvent } from "../types-Cvfe-G_N.js";
2
+ import { t as memoryReplayStore } from "../replay-B__gzUx3.js";
3
+ import { A as createPermDock, C as memorySsfStreamStore, D as PollSetsResult, E as PollSetsOptions, O as PolledSet, S as SsfStreamStore, T as setPollHandler, _ as SsfFanOut, a as CaepTokenClaimsChange, b as ssfTransmitter, c as RiscEvents, d as caepEvents, f as pushSet, g as FanOutSetOptions, h as streamVerificationEvent, i as CaepEvents, k as pollSets, l as SSF_POLL_DELIVERY, m as signSet, n as CaepCredentialChange, o as RiscAccountDisabled, p as riscEvents, r as CaepDeviceComplianceChange, s as RiscCredentialCompromise, t as CaepAssuranceLevelChange, u as SSF_PUSH_DELIVERY, v as SsfTransmitterOptions, w as memorySetQueue, x as SsfStream, y as fanOutSet } from "../index-DBBRSw6r.js";
4
4
  export { type CaepAssuranceLevelChange, type CaepCommon, type CaepCredentialChange, type CaepDeviceComplianceChange, type CaepEventName, type CaepEvents, type CaepInitiatingEntity, type CaepReason, type CaepTokenClaimsChange, type FanOutSetOptions, type PollHandle, type PollOptions, type PollResult, type PollSetsOptions, type PollSetsResult, type PolledSet, type PushSetOptions, type ReplayStore, type RiscAccountDisabled, type RiscCredentialCompromise, type RiscEventName, type RiscEvents, SSF_POLL_DELIVERY, SSF_PUSH_DELIVERY, type SetDelivery, type SetDeliveryFailureCause, type SetError, type SetEvent, type SetPollHandlerOptions, type SetQueue, type SetSubject, type SignSetOptions, type SsfAuditEvent, type SsfEventHandler, type SsfEventInput, type SsfEventListener, type SsfEventName, type SsfFanOut, type SsfOnEvent, type SsfPermDock, type SsfPermDockOptions, type SsfReceiver, type SsfStream, type SsfStreamConfiguration, type SsfStreamStatus, type SsfStreamStore, type SsfSubject, type SsfSubjectResolver, type SsfTransmitterConfiguration, type SsfTransmitterOptions, type SsfVerification, caepEvents, createPermDock, fanOutSet, memoryReplayStore, memorySetQueue, memorySsfStreamStore, pollSets, pushSet, riscEvents, setPollHandler, signSet, ssfTransmitter, streamVerificationEvent };
@@ -1,5 +1,5 @@
1
- import { Er as JsonWebKeyLike, qt as Instant } from "./policy-types-BnBZvh7N.js";
2
- import { l as ReplayStore } from "./types-B_I8TBA9.js";
1
+ import { Er as JsonWebKeyLike, qt as Instant } from "./policy-types-DuM3k5Ao.js";
2
+ import { l as ReplayStore } from "./types-Cvfe-G_N.js";
3
3
  /** The three Standard Webhooks headers a delivery carries. */
4
4
  type WebhookHeaders = {
5
5
  readonly "webhook-id": string;
@@ -1,9 +1,9 @@
1
- import { Jt as ClientBundle, N as PolicyVocabulary, Or as Principal, ir as Decision, rn as Snapshot, vr as Actor, vt as TokenVerifier, wr as Delegation } from "./policy-types-BnBZvh7N.js";
1
+ import { Jt as ClientBundle, N as PolicyVocabulary, Or as Principal, ir as Decision, rn as Snapshot, vr as Actor, vt as TokenVerifier, wr as Delegation } from "./policy-types-DuM3k5Ao.js";
2
2
  import { w as Permission } from "./vocabulary-DHfKPIC5.js";
3
3
  import { r as RefreshTrigger } from "./refresh-on-C1zIMtJr.js";
4
- import { a as ProblemDetails } from "./errors-BGosrHl8.js";
5
- import { n as DescribeMessages, t as DecisionDescription } from "./describe-FT1oVN_o.js";
6
- import { a as PermDock } from "./permdock-V86uejcm.js";
4
+ import { a as ProblemDetails } from "./errors-BliKrfmP.js";
5
+ import { n as DescribeMessages, t as DecisionDescription } from "./describe-DEoWvk00.js";
6
+ import { a as PermDock } from "./permdock-DkvkGVF0.js";
7
7
  /** What a `protectAction` action resolves to; both members cross to the client. */
8
8
  type ActionResult<T> = {
9
9
  readonly ok: true;
@@ -1,9 +1,9 @@
1
- import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, l as GateView, r as ApprovalHandle, s as FilterResult, v as TenantView } from "./store-core-Bq7Qc9QM.js";
2
- import { Dr as Membership, N as PolicyVocabulary, ir as Decision } from "./policy-types-BnBZvh7N.js";
3
- import { r as DescribeOptions, t as DecisionDescription } from "./describe-FT1oVN_o.js";
4
- import { d as UncheckedData, s as RowData } from "./permdock-V86uejcm.js";
1
+ import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, l as GateView, r as ApprovalHandle, s as FilterResult, v as TenantView } from "./store-core-aluQ3R1M.js";
2
+ import { Dr as Membership, N as PolicyVocabulary, ir as Decision } from "./policy-types-DuM3k5Ao.js";
3
+ import { r as DescribeOptions, t as DecisionDescription } from "./describe-DEoWvk00.js";
4
+ import { d as UncheckedData, s as RowData } from "./permdock-DkvkGVF0.js";
5
5
  import { r as Role, w as Permission } from "./vocabulary-DHfKPIC5.js";
6
- import { n as ProtectedActionReadable, r as SveltePermDockOptions } from "./types-DNOJRhyn.js";
6
+ import { n as ProtectedActionReadable, r as SveltePermDockOptions } from "./types-D417woMp.js";
7
7
  import { Readable } from "svelte/store";
8
8
  declare function setPermDock(options: SveltePermDockOptions): ClientPermDock;
9
9
  declare function getPermDock<V extends PolicyVocabulary = PolicyVocabulary>(): ClientPermDock<V>;
@@ -1,4 +1,4 @@
1
- import { Dr as Membership, Sr as CustomRole, St as VersionQuery, qt as Instant } from "./policy-types-BnBZvh7N.js";
1
+ import { Dr as Membership, Sr as CustomRole, St as VersionQuery, qt as Instant } from "./policy-types-DuM3k5Ao.js";
2
2
  type VersionCacheStats = {
3
3
  /** Version reads the cache started. */
4
4
  readonly reads: number;
@@ -1,14 +1,14 @@
1
- import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal, Q as Intent, qt as Instant } from "../policy-types-BnBZvh7N.js";
2
- 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-Bq7k7g34.js";
3
- import { a as ApprovalDelegationSource, m as ApprovalStore, u as ApprovalRequest } from "../types-5cvjmHTG.js";
4
- import { a as SupabaseRpcResult, i as SupabaseRpcClient, n as PostgrestSourcesOptions, o as postgrestSources, r as SupabaseRpcCaller, t as PostgrestSources } from "../postgrest-BG0ipED3.js";
5
- import { F as PermissionState, P as PermissionCheck, a as PermDock, z as ApprovalPolicySource } from "../permdock-V86uejcm.js";
1
+ import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal, Q as Intent, qt as Instant } from "../policy-types-DuM3k5Ao.js";
2
+ 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-Dp6FQ8np.js";
3
+ import { a as ApprovalDelegationSource, m as ApprovalStore, u as ApprovalRequest } from "../types-BGN3coSe.js";
4
+ import { a as SupabaseRpcResult, i as SupabaseRpcClient, n as PostgrestSourcesOptions, o as postgrestSources, r as SupabaseRpcCaller, t as PostgrestSources } from "../postgrest-B1bTbVE4.js";
5
+ import { F as PermissionState, P as PermissionCheck, a as PermDock, z as ApprovalPolicySource } from "../permdock-DkvkGVF0.js";
6
6
  import { t as SqlQuery } from "../sql-BYYNi1lu.js";
7
- import { a as readSubjectRecord, r as SubjectRecord } from "../subject-cache-UKUgQCEX.js";
7
+ import { a as readSubjectRecord, r as SubjectRecord } from "../subject-cache-Bn4oJY_R.js";
8
8
  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-BwhZ1s5b.js";
9
- import { a as AppOptions, n as PermDockDefinition, r as PermDockQuery } from "../define-permdock-4IkoNaB3.js";
9
+ import { a as AppOptions, n as PermDockDefinition, r as PermDockQuery } from "../define-permdock-Bhye7WSY.js";
10
10
  import { n as supabaseTenantClaim, t as supabaseMembershipsBudget } from "../budget-5LJ8kfZk.js";
11
- import { n as subjectFromSupabaseClient, t as SupabaseClaimsClient } from "../client-subject-Dzo49nco.js";
11
+ import { n as subjectFromSupabaseClient, t as SupabaseClaimsClient } from "../client-subject-YAGMzRa-.js";
12
12
  /**
13
13
  * The server topic the generated version trigger broadcasts on without
14
14
  * better-supabase; no user may join it. With better-supabase it is
@@ -2,9 +2,9 @@ import { r as readSubjectRecord } from "../version-cache-Ccrfu2A4.js";
2
2
  import { n as compactMemberships, r as expandMemberships } from "../read-memberships-DVBitJZG.js";
3
3
  import { n as AUTHZ_TOPIC, r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-D8x24Jv-.js";
4
4
  import { n as supabaseMembershipsBudget, r as supabaseTenantClaim } from "../budget-BH81q2cj.js";
5
- import { a as tableApprovalPolicySource, c as exchangeCapability, i as tableApprovalDelegationSource, n as authorizeSql, o as supabaseApprovalStore, r as supabaseRls, s as supabaseClaims, t as definePermDock } from "../supabase-DrazwRER.js";
5
+ import { a as tableApprovalPolicySource, c as exchangeCapability, i as tableApprovalDelegationSource, n as authorizeSql, o as supabaseApprovalStore, r as supabaseRls, s as supabaseClaims, t as definePermDock } from "../supabase-ByhSqBDB.js";
6
6
  import { c as tableMembershipSource, i as authzVersion, o as junctionMembershipSource, s as supabasePostgresQuery, t as AUTHZ_VERSION_TABLE } from "../sources-C6Id63F8.js";
7
- import { r as subjectFromSupabaseClient, s as postgrestSources } from "../resolver-C_a-bddD.js";
8
- import { a as delegationOf, i as actorOf, o as subjectFromSupabase, s as subjectFromSupabaseSession } from "../definition-options-DO0kIrB9.js";
7
+ import { r as subjectFromSupabaseClient, s as postgrestSources } from "../resolver-D2c1CcoZ.js";
8
+ import { a as delegationOf, i as actorOf, o as subjectFromSupabase, s as subjectFromSupabaseSession } from "../definition-options-DLBlRrPO.js";
9
9
  import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-CIWOmdlP.js";
10
10
  export { AUTHZ_EVENT, AUTHZ_TOPIC, AUTHZ_VERSION_TABLE, actorOf, authorizeSql, authzUserTopic, authzVersion, compactMemberships, definePermDock, delegationOf, exchangeCapability, expandMemberships, hasTokenHook, junctionMembershipSource, parseSupabaseManifest, postgrestSources, readSubjectRecord, subjectFromSupabase, subjectFromSupabaseClient, subjectFromSupabaseSession, supabaseApprovalStore, supabaseClaims, supabaseMembershipsBudget, supabasePostgresQuery, supabaseRls, supabaseTenantClaim, tableApprovalDelegationSource, tableApprovalPolicySource, tableMembershipSource };
@@ -1,11 +1,11 @@
1
1
  import { n as TenantSlugResolver, t as TenantFromPathOptions } from "../tenant-from-path-Dq3jkqjh.js";
2
- import { t as InstanceOptions } from "../instance-options-hq5Cp2Ih.js";
3
- import { a as PermDock } from "../permdock-V86uejcm.js";
2
+ import { t as InstanceOptions } from "../instance-options-DDERlopm.js";
3
+ import { a as PermDock } from "../permdock-DkvkGVF0.js";
4
4
  import { w as Permission } from "../vocabulary-DHfKPIC5.js";
5
- import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-BnBZvh7N.js";
6
- import { n as ServerAdapterServices } from "../bind-Bwk9tt1z.js";
5
+ import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-DuM3k5Ao.js";
6
+ import { n as ServerAdapterServices } from "../bind-BnrOLyJq.js";
7
7
  import { t as RequestContext } from "../request-context-E3-ps-H_.js";
8
- import { i as OpenApiHooks } from "../server-types-BlMijUtb.js";
8
+ import { i as OpenApiHooks } from "../server-types-FkdDSB9h.js";
9
9
  import { FetchHandler, Middleware } from "@supabase/middleware";
10
10
  /**
11
11
  * The verified Supabase Auth access-token payload as `@supabase/server`
@@ -7,7 +7,7 @@ import { n as attached } from "../bind-DPptdk31.js";
7
7
  import { t as createPermDock$1 } from "../create-BMRnaZel.js";
8
8
  import { o as methodNotAllowed } from "../problem-BZB7zPC7.js";
9
9
  import { n as tenantFromPath$1 } from "../tenant-from-path-AKTSY7uR.js";
10
- import { n as supabaseOptionsOf, o as subjectFromSupabase, t as SUPABASE_OPTIONS } from "../definition-options-DO0kIrB9.js";
10
+ import { n as supabaseOptionsOf, o as subjectFromSupabase, t as SUPABASE_OPTIONS } from "../definition-options-DLBlRrPO.js";
11
11
  import { defineMiddleware } from "@supabase/middleware";
12
12
  // src/supabase/middleware.ts
13
13
  /**
@@ -8,11 +8,11 @@ import { t as CUSTOM_ROLES_VERSION_CLAIM } from "./budget-BH81q2cj.js";
8
8
  import { s as ApprovalError } from "./types-DFZKovb3.js";
9
9
  import { c as decodeApprovalCursor, l as encodeApprovalCursor, s as approvalPageSize, t as applyApprovalVerdict } from "./store-n3yEN7dt.js";
10
10
  import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
11
- import { a as withMembers, i as ownedCaches, n as getPermissions, o as callRpc, r as subjectFromSupabaseClient, s as postgrestSources, t as createResolver } from "./resolver-C_a-bddD.js";
11
+ import { a as withMembers, i as ownedCaches, n as getPermissions, o as callRpc, r as subjectFromSupabaseClient, s as postgrestSources, t as createResolver } from "./resolver-D2c1CcoZ.js";
12
12
  import { d as keptKeys, l as roleColumn } from "./sources-C6Id63F8.js";
13
13
  import { a as quoteQualifiedTable, c as quoteSqlTable, d as sqlTextArray, i as qualifySqlTable, o as quoteSqlIdent, s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
14
14
  import { t as compactMembershipsSql } from "./membership-claim-sql-DGfhIn__.js";
15
- import { o as subjectFromSupabase, t as SUPABASE_OPTIONS } from "./definition-options-DO0kIrB9.js";
15
+ import { o as subjectFromSupabase, t as SUPABASE_OPTIONS } from "./definition-options-DLBlRrPO.js";
16
16
  import { t as definePermDock$1 } from "./define-permdock-CO7YNrOF.js";
17
17
  import { r as isSubject } from "./subject-DkxY-AhF.js";
18
18
  // src/supabase/capability.ts
@@ -20,7 +20,7 @@ const inspect = defineLeaf({
20
20
  },
21
21
  async run(ctx, { flags }) {
22
22
  if (flags.functions !== void 0) {
23
- const { inspectFunctions } = await import("./inspect-functions-CwEAQpVF.js");
23
+ const { inspectFunctions } = await import("./inspect-functions-BUACOlgS.js");
24
24
  return inspectFunctions({
25
25
  cwd: ctx.cwd,
26
26
  config: ctx.config,
@@ -29,7 +29,7 @@ const inspect = defineLeaf({
29
29
  });
30
30
  }
31
31
  const out = flags.out === "" ? true : flags.out === "-" ? void 0 : flags.out;
32
- const { runSupabase } = await import("./supabase-hook-D0Yzbl19.js");
32
+ const { runSupabase } = await import("./supabase-hook-C_ViYz3g.js");
33
33
  return runSupabase({
34
34
  cwd: ctx.cwd,
35
35
  config: ctx.config,
@@ -0,0 +1,2 @@
1
+ import "./hook-sql-EksAnz-T.js";
2
+ export { r as runSupabase } from "./supabase-hook-D-ybV98H.js";
@@ -5,13 +5,13 @@ import { _ as writeOutputFiles, d as pgDeltaPath, g as underSchemaDir, h as serv
5
5
  import { i as readJsonFile, o as sqlFiles, s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
6
6
  import { n as formatManifestJson, t as MANIFEST_FILE } from "./manifest-json-DMaBWmcG.js";
7
7
  import { c as requirePolicy } from "./load-m7jmit3y.js";
8
- import { a as tryKeyReasons } from "./tenant-check-DW0kbH-a.js";
9
- import { n as hookUri } from "./rbac-BRMnQ9Rl.js";
10
- import { a as withTableReads } from "./table-reads-B7z40Yu-.js";
11
- import { a as supabaseHookSql, c as asideAuthzReceive, d as declarativeSql, i as supabaseHookManifest, l as configToml, n as hooklessDatabase, o as defaultOut, r as supabaseDatabaseManifest, s as hookMarker, t as grantsLabel } from "./hook-sql-CbkH78FC.js";
8
+ import { a as tryKeyReasons } from "./tenant-check-DNbm8OiV.js";
9
+ import { n as hookUri } from "./rbac-DbyaaNLa.js";
10
+ import { a as withTableReads } from "./table-reads-BoF_58yh.js";
11
+ import { a as supabaseHookSql, c as asideAuthzReceive, d as declarativeSql, i as supabaseHookManifest, l as configToml, n as hooklessDatabase, o as defaultOut, r as supabaseDatabaseManifest, s as hookMarker, t as grantsLabel } from "./hook-sql-EksAnz-T.js";
12
12
  import { r as HOOK_MARKER, s as hookMarkerFields } from "./markers-C-kThnKN.js";
13
13
  import { i as withSchemaDefaults } from "./schema-tables-Ba9LE_XB.js";
14
- import { l as supabaseConfig, n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-_ubYYw9i.js";
14
+ import { l as supabaseConfig, n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-CVhpyYB6.js";
15
15
  import { t as readMemberships } from "./read-memberships-DVBitJZG.js";
16
16
  import { r as pgConnector } from "./pg-DmS5ITHu.js";
17
17
  import { n as MIGRATION_DIRS } from "./constants-PCJiir_3.js";
@@ -1,6 +1,6 @@
1
1
  import "./sources-C6Id63F8.js";
2
2
  import { a as describeError } from "./errors-DgLOqc6j.js";
3
- import { n as hookUri } from "./rbac-BRMnQ9Rl.js";
3
+ import { n as hookUri } from "./rbac-DbyaaNLa.js";
4
4
  import { n as supabaseDir, t as supabaseConfigFile } from "./supabase-dir-0lxKbrYu.js";
5
5
  import { existsSync, readFileSync } from "node:fs";
6
6
  import { join, posix } from "node:path";
@@ -1,11 +1,11 @@
1
- import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-DNOJRhyn.js";
2
- import { i as describe } from "../describe-FT1oVN_o.js";
3
- import { c as requiredPlans } from "../errors-BGosrHl8.js";
1
+ import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-D417woMp.js";
2
+ import { i as describe } from "../describe-DEoWvk00.js";
3
+ import { c as requiredPlans } from "../errors-BliKrfmP.js";
4
4
  import { t as approvalHeaders } from "../headers-D1oRr-js.js";
5
5
  import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-C1zIMtJr.js";
6
- import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-Dn7TpQFa.js";
6
+ import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-hHICuiQl.js";
7
7
  import { t as PermissionBoundaryState } from "../boundary-DJqHADKu.js";
8
- import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-Bq7Qc9QM.js";
8
+ import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-aluQ3R1M.js";
9
9
  import { Component } from "svelte";
10
10
  export declare const Protected: Component<ProtectedProps>;
11
11
  export declare const PermissionBoundary: Component<PermissionBoundaryProps>;
@@ -1,7 +1,7 @@
1
1
  import { n as boundaryDigest, r as boundaryFallback, t as PermissionBoundaryState } from "../boundary-DJqHADKu.js";
2
- import { a as scopedFor, c as slotContent, i as ProtectedProps, o as viewFor, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-DNOJRhyn.js";
3
- import { t as ClientStore } from "../store-core-Bq7Qc9QM.js";
4
- import { n as DescribeMessages } from "../describe-FT1oVN_o.js";
2
+ import { a as scopedFor, c as slotContent, i as ProtectedProps, o as viewFor, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-D417woMp.js";
3
+ import { t as ClientStore } from "../store-core-aluQ3R1M.js";
4
+ import { n as DescribeMessages } from "../describe-DEoWvk00.js";
5
5
  /** The provider's `defaults` and `messages`. */
6
6
  type PermDockUi = {
7
7
  readonly defaults?: PermDockDefaults | undefined;
@@ -1,11 +1,11 @@
1
- import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-DNOJRhyn.js";
2
- import { i as describe } from "../describe-FT1oVN_o.js";
3
- import { c as requiredPlans } from "../errors-BGosrHl8.js";
1
+ import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-D417woMp.js";
2
+ import { i as describe } from "../describe-DEoWvk00.js";
3
+ import { c as requiredPlans } from "../errors-BliKrfmP.js";
4
4
  import { t as approvalHeaders } from "../headers-D1oRr-js.js";
5
5
  import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-C1zIMtJr.js";
6
- import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-Dn7TpQFa.js";
6
+ import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-hHICuiQl.js";
7
7
  import { t as PermissionBoundaryState } from "../boundary-DJqHADKu.js";
8
- import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-Bq7Qc9QM.js";
8
+ import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-aluQ3R1M.js";
9
9
  import { Component } from "svelte";
10
10
  export declare const Protected: Component<ProtectedProps>;
11
11
  export declare const PermissionBoundary: Component<PermissionBoundaryProps>;
@@ -1,9 +1,9 @@
1
- import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-BlMijUtb.js";
1
+ import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-FkdDSB9h.js";
2
2
  import { a as OperationInput, t as Operation } from "../operations-DaEoGpMV.js";
3
- import { a as PermDock } from "../permdock-V86uejcm.js";
3
+ import { a as PermDock } from "../permdock-DkvkGVF0.js";
4
4
  import { w as Permission } from "../vocabulary-DHfKPIC5.js";
5
- import { D as Policy, N as PolicyVocabulary, Or as Principal, rn as Snapshot } from "../policy-types-BnBZvh7N.js";
6
- import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-Dci9NnyZ.js";
5
+ import { D as Policy, N as PolicyVocabulary, Or as Principal, rn as Snapshot } from "../policy-types-DuM3k5Ao.js";
6
+ import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-Ds2-fUUi.js";
7
7
  import { RequestEvent } from "@sveltejs/kit";
8
8
  /**
9
9
  * A `handle` hook. SvelteKit 2 exports `Handle` from `@sveltejs/kit` and
@@ -1 +1 @@
1
- export { t as committedManifest, n as configuredTableReads, r as manifestTableReads, i as tableReads, a as withTableReads } from "./table-reads-B7z40Yu-.js";
1
+ export { t as committedManifest, n as configuredTableReads, r as manifestTableReads, i as tableReads, a as withTableReads } from "./table-reads-BoF_58yh.js";
@@ -7,7 +7,7 @@ import { i as loadConfiguredPolicy } from "./load-m7jmit3y.js";
7
7
  import { a as parseSqlFile, c as readPolicy, d as sqlCalls, f as stringValues, t as SqlSyntaxError } from "./ast-Dnm2TOHN.js";
8
8
  import { i as taggedAccessPolicies } from "./bsb-access-Bcw6GrQm.js";
9
9
  import { a as droppedPolicy, s as reportFiles, u as isPlatformSchema } from "./report-XdCm1y_J.js";
10
- import { a as tryKeyReasons, n as tenantCheck, r as keyReason, t as svals } from "./tenant-check-DW0kbH-a.js";
10
+ import { a as tryKeyReasons, n as tenantCheck, r as keyReason, t as svals } from "./tenant-check-DNbm8OiV.js";
11
11
  import { existsSync, readFileSync } from "node:fs";
12
12
  import { join, relative } from "node:path";
13
13
  // src/cli/rls/shared-functions.ts
@@ -11,6 +11,7 @@ import { d as sqlTextArray, i as qualifySqlTable, t as SQL_IDENT } from "./sql-T
11
11
  import { d as restrictedRowsSql, i as scopeColumn, l as relationArmSql } from "./compile-BUKXrueE.js";
12
12
  import { t as AUTHZ_VERSION_TABLE } from "./sources-C6Id63F8.js";
13
13
  import { t as compactMembershipsSql } from "./membership-claim-sql-DGfhIn__.js";
14
+ import { t as IDENTITY_SCOPES } from "./identity-scopes-CRVAV0HU.js";
14
15
  import { a as quoteIdent, c as quoteTable, i as qualified, o as quoteLiteral, r as helperSchema, s as quoteQualified } from "./quote-LNaBdCGA.js";
15
16
  import { C as tenantTypeOf, a as kindFilterSql, b as idTypeOf, c as roleKindSql, d as subjectClaimSql, f as subjectIdSql, i as keyTenantSql, m as userIdHelperSql, s as memberVia, u as subjectClaimJsonSql, x as scopeTypeOf } from "./subject-B7p94Y0s.js";
16
17
  import { i as allowEntry, n as GLOBAL_ROLES, o as rootName, r as HELPERS, s as signedIn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
@@ -2174,19 +2175,60 @@ ${grants(active, "text")}`);
2174
2175
  // src/cli/rls/token-scopes.ts
2175
2176
  const TOKEN_SCOPE_ALLOWS = "permdock_token_scope_allows";
2176
2177
  const TOKEN_SCOPE_MAP = "permdock_token_scope_map";
2178
+ const TOKEN_DELEGATION_MAP = "permdock_token_delegation_map";
2179
+ function isTokenScopesSetting(value) {
2180
+ if (value === void 0 || typeof value === "boolean") return true;
2181
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
2182
+ return Object.entries(value).every(([key, flag]) => key === "delegations" && (flag === void 0 || typeof flag === "boolean"));
2183
+ }
2184
+ /** Whether `rls.tokenScopes` turns the helpers' token narrowing on. */
2185
+ function tokenScopesOn(setting) {
2186
+ return setting === true || typeof setting === "object" && setting !== null;
2187
+ }
2188
+ /**
2189
+ * Delegations Postgres can decide from the token alone: to `oauth-client`, from
2190
+ * `authenticated()` only, without a validity window. Others hand over nothing
2191
+ * in SQL, so the token stays capped by its scopes.
2192
+ */
2193
+ function delegatedKeys(delegations) {
2194
+ const all = /* @__PURE__ */ new Set();
2195
+ const clients = /* @__PURE__ */ new Map();
2196
+ let everyClient = false;
2197
+ for (const delegation of delegations ?? []) {
2198
+ const from = Array.isArray(delegation.from) ? delegation.from : [delegation.from];
2199
+ if (delegation.to.kind !== "oauth-client" || delegation.to.client !== void 0 || delegation.validity !== void 0 || from.length === 0 || !from.every((grantee) => grantee.kind === "authenticated")) continue;
2200
+ const id = delegation.to.id;
2201
+ let target = all;
2202
+ if (id === void 0) everyClient = true;
2203
+ else {
2204
+ target = clients.get(id) ?? /* @__PURE__ */ new Set();
2205
+ clients.set(id, target);
2206
+ }
2207
+ for (const key of delegation.permissions) target.add(key);
2208
+ }
2209
+ return {
2210
+ ...everyClient ? { all: [...all].toSorted() } : {},
2211
+ clients: Object.fromEntries([...clients].map(([id, set]) => [id, [...set].toSorted()]))
2212
+ };
2213
+ }
2177
2214
  /**
2178
2215
  * `rls.tokenScopes` as the SQL generator needs it, or `undefined` when it is
2179
2216
  * off.
2180
2217
  */
2181
2218
  function tokenScopesPlan(setting, policy) {
2182
- if (setting !== true) return;
2219
+ if (!tokenScopesOn(setting)) return;
2183
2220
  const permissions = listPermissions(policy.permissions).map((leaf) => ({
2184
2221
  key: leaf.key,
2185
2222
  scope: leaf.scope,
2186
2223
  renamedFrom: formerKeys(leaf),
2187
2224
  meta: leaf.meta
2188
2225
  }));
2189
- return { scopes: delegatedScopeMap(permissions, policy.oauthScopes) };
2226
+ const scopes = delegatedScopeMap(permissions, policy.oauthScopes);
2227
+ if (typeof setting !== "object" || setting.delegations !== true) return { scopes };
2228
+ return {
2229
+ scopes,
2230
+ delegated: delegatedKeys(policy.delegations)
2231
+ };
2190
2232
  }
2191
2233
  function tokenScopeUnlimitedSql(ctx) {
2192
2234
  const act = subjectClaimJsonSql(ctx, "act");
@@ -2224,6 +2266,43 @@ function tokenScopeAllowsSql(ctx, plan, anonExecute) {
2224
2266
  const grants = anonExecute ? `revoke execute on function ${fn}(text) from public;
2225
2267
  grant execute on function ${fn}(text) to anon, authenticated;` : `revoke execute on function ${fn}(text) from public, anon;
2226
2268
  grant execute on function ${fn}(text) to authenticated;`;
2269
+ const delegationMap = qualified(ctx, TOKEN_DELEGATION_MAP);
2270
+ const client = subjectClaimSql(ctx, "client_id");
2271
+ const act = subjectClaimJsonSql(ctx, "act");
2272
+ const key = "split_part(split_part(p_grant, '#', 1), '@', 1)";
2273
+ const covered = `exists (
2274
+ select 1
2275
+ from ${tokenScopeRows(ctx)}
2276
+ where s.scope <> ''
2277
+ and coalesce(${map}() -> s.scope, '[]'::jsonb)
2278
+ ? ${key}
2279
+ )`;
2280
+ const identity = [...IDENTITY_SCOPES].map(quoteLiteral).join(", ");
2281
+ const delegated = plan.delegated === void 0 ? "" : `
2282
+ when coalesce(${client}, '') <> ''
2283
+ and (${act} is null or ${act} = 'null'::jsonb)
2284
+ and (${delegationMap}() ? 'all'
2285
+ or ${delegationMap}() -> 'clients' ? ${client})
2286
+ then (coalesce(${delegationMap}() -> 'all', '[]'::jsonb)
2287
+ || coalesce(${delegationMap}() -> 'clients' -> ${client}, '[]'::jsonb))
2288
+ ? ${key}
2289
+ and (not exists (
2290
+ select 1
2291
+ from ${tokenScopeRows(ctx)}
2292
+ where s.scope <> '' and s.scope <> all (array[${identity}])
2293
+ )
2294
+ or ${covered})`;
2295
+ const delegationFunction = plan.delegated === void 0 ? "" : `
2296
+ create or replace function ${delegationMap}()
2297
+ returns jsonb
2298
+ language sql
2299
+ immutable
2300
+ set search_path = ''
2301
+ as $$
2302
+ select ${quoteLiteral(JSON.stringify(plan.delegated))}::jsonb
2303
+ $$;
2304
+ revoke execute on function ${delegationMap}() from public, anon, authenticated;
2305
+ `;
2227
2306
  return `create or replace function ${map}()
2228
2307
  returns jsonb
2229
2308
  language sql
@@ -2233,7 +2312,7 @@ as $$
2233
2312
  select ${quoteLiteral(JSON.stringify(plan.scopes))}::jsonb
2234
2313
  $$;
2235
2314
  revoke execute on function ${map}() from public, anon, authenticated;
2236
-
2315
+ ${delegationFunction}
2237
2316
  -- Token scopes: a delegated token holds only the permissions its scope claim maps to; denies always apply, and a token without client_id or an agent act is not limited
2238
2317
  create or replace function ${fn}(p_grant text)
2239
2318
  returns boolean
@@ -2249,14 +2328,8 @@ begin
2249
2328
  when exists (
2250
2329
  select 1 from ${qualified(ctx, "role_permissions")} rp
2251
2330
  where rp.grant_key = p_grant and rp.effect = 'deny'
2252
- ) then true
2253
- else exists (
2254
- select 1
2255
- from ${tokenScopeRows(ctx)}
2256
- where s.scope <> ''
2257
- and coalesce(${map}() -> s.scope, '[]'::jsonb)
2258
- ? split_part(split_part(p_grant, '#', 1), '@', 1)
2259
- )
2331
+ ) then true${delegated}
2332
+ else ${covered}
2260
2333
  end
2261
2334
  );
2262
2335
  end;
@@ -3446,4 +3519,4 @@ function resolveVias(tables, scopes, dialect) {
3446
3519
  }
3447
3520
  return Object.keys(out).length === 0 ? void 0 : out;
3448
3521
  }
3449
- export { graphSql as $, tokenScopeUnlimitedSql as A, apiKeyUnlimitedSql as B, forUserContext as C, seedSql as D, memoReadsSql as E, capabilityAccessSql as F, POLICY_BUNDLE_FORMAT as G, HOOK_TEAM_READER as H, API_KEY_ALLOWS as I, policyBundle as J, POLICY_BUNDLE_TABLE as K, apiKeyAllowsCall as L, memoReadTriggersSql as M, guardAuthAdminGrants as N, TOKEN_SCOPE_ALLOWS as O, unguardAuthAdminGrants as P, graphPlan as Q, apiKeyClaimSql as R, accessSql as S, helpersSql as T, hookTeamReader as U, apiKeysPlan as V, hookTeamsHelper as W, closureDepths as X, closureBackfillSql as Y, graphIdsSql as Z, sourceTransferTriggerSql as _, tablelessResources as a, ASSIGNMENTS as b, permissionHelpersSql as c, permittedByPermissionHelper as d, requiresSql as f, sourceRowsSql as g, sourceHoldersTriggerSql as h, tableNames as i, tokenScopesPlan as j, tokenScopeAllowsCall as k, permissionKeysForHelper as l, pairsSql as m, resolveVias as n, PERMISSION_HELPERS as o, holderSources as p, bundleLoaderSql as q, tableNameOf as r, checkName as s, checkSharedTables as t, permissionKeysHelper as u, holdersTriggerSql as v, grantBodies as w, OWNERSHIP as x, transferTriggerSql as y, apiKeyFields as z };
3522
+ export { graphIdsSql as $, tokenScopeAllowsCall as A, apiKeyClaimSql as B, forUserContext as C, seedSql as D, memoReadsSql as E, guardAuthAdminGrants as F, hookTeamReader as G, apiKeyUnlimitedSql as H, unguardAuthAdminGrants as I, POLICY_BUNDLE_TABLE as J, hookTeamsHelper as K, capabilityAccessSql as L, tokenScopesOn as M, tokenScopesPlan as N, TOKEN_SCOPE_ALLOWS as O, memoReadTriggersSql as P, closureDepths as Q, API_KEY_ALLOWS as R, accessSql as S, helpersSql as T, apiKeysPlan as U, apiKeyFields as V, HOOK_TEAM_READER as W, policyBundle as X, bundleLoaderSql as Y, closureBackfillSql as Z, sourceTransferTriggerSql as _, tablelessResources as a, ASSIGNMENTS as b, permissionHelpersSql as c, permittedByPermissionHelper as d, graphPlan as et, requiresSql as f, sourceRowsSql as g, sourceHoldersTriggerSql as h, tableNames as i, tokenScopeUnlimitedSql as j, isTokenScopesSetting as k, permissionKeysForHelper as l, pairsSql as m, resolveVias as n, PERMISSION_HELPERS as o, holderSources as p, POLICY_BUNDLE_FORMAT as q, tableNameOf as r, checkName as s, checkSharedTables as t, graphSql as tt, permissionKeysHelper as u, holdersTriggerSql as v, grantBodies as w, OWNERSHIP as x, transferTriggerSql as y, apiKeyAllowsCall as z };
@@ -1,9 +1,9 @@
1
- import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-BlMijUtb.js";
1
+ import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-FkdDSB9h.js";
2
2
  import { a as OperationInput, t as Operation } from "../operations-DaEoGpMV.js";
3
- import { a as PermDock } from "../permdock-V86uejcm.js";
3
+ import { a as PermDock } from "../permdock-DkvkGVF0.js";
4
4
  import { w as Permission } from "../vocabulary-DHfKPIC5.js";
5
- import { D as Policy, N as PolicyVocabulary, Or as Principal, rn as Snapshot } from "../policy-types-BnBZvh7N.js";
6
- import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-Dci9NnyZ.js";
5
+ import { D as Policy, N as PolicyVocabulary, Or as Principal, rn as Snapshot } from "../policy-types-DuM3k5Ao.js";
6
+ import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-Ds2-fUUi.js";
7
7
  import { RequestMiddleware, RequestMiddlewareAfterServer, createMiddleware } from "@tanstack/react-start";
8
8
  type TanStackStartPermDockOptions<TUser = unknown> = FetchAdapterOptions<Request, TUser>;
9
9
  /**
@@ -1,8 +1,8 @@
1
1
  import { r as isRecord } from "./compact-C4LFuqbW.js";
2
2
  import { n as CliError } from "./errors-DgLOqc6j.js";
3
- import { i as tableNames } from "./tables-Bxmf2beb.js";
4
- import { r as compileGrants } from "./compile-nR1gQhXo.js";
5
- import { i as buildContext, n as isRefusal, t as generateOptions } from "./generate-options-BZ2nqy28.js";
3
+ import { i as tableNames } from "./tables-BTXmioCH.js";
4
+ import { r as compileGrants } from "./compile-BRDpja_Y.js";
5
+ import { i as buildContext, n as isRefusal, t as generateOptions } from "./generate-options-DDSeUTFU.js";
6
6
  // src/cli/rls/key-reasons.ts
7
7
  /** A grant key written as a condition group (`k#1`) or a level (`k@own`). */
8
8
  function isConditionKey(permission, grantKey) {
@@ -1,8 +1,8 @@
1
- import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal, ir as Decision, qt as Instant } from "../policy-types-BnBZvh7N.js";
2
- import { m as ApprovalStore } from "../types-5cvjmHTG.js";
3
- import { a as ProblemDetails, t as ApprovalHint } from "../errors-BGosrHl8.js";
4
- import { t as InstanceOptions } from "../instance-options-hq5Cp2Ih.js";
5
- import { a as PermDock } from "../permdock-V86uejcm.js";
1
+ import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal, ir as Decision, qt as Instant } from "../policy-types-DuM3k5Ao.js";
2
+ import { m as ApprovalStore } from "../types-BGN3coSe.js";
3
+ import { a as ProblemDetails, t as ApprovalHint } from "../errors-BliKrfmP.js";
4
+ import { t as InstanceOptions } from "../instance-options-DDERlopm.js";
5
+ import { a as PermDock } from "../permdock-DkvkGVF0.js";
6
6
  import { w as Permission } from "../vocabulary-DHfKPIC5.js";
7
7
  type TokenSourceName = "device" | "keychain" | "env" | "ci-oidc";
8
8
  type TokenSource = TokenSourceName | {
@@ -1,2 +1,2 @@
1
- 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-DPuDmlbL.js";
1
+ 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-DCMIztx1.js";
2
2
  export { type DescribePolicyConfig, type MatrixCell, type MatrixOutcome, type OrmParityCase, type OrmParityOptions, type OrmParityReport, type OrmParityRunInput, type OrmParityScenario, type PolicyMatrixCell, type PolicyMatrixReport, type RlsDbOutcome, type RlsFieldsOutcome, type RlsParityCase, type RlsParityFixture, type RlsParityOptions, type RlsParityReport, type RlsParitySubject, type RlsQueryFn, type RlsQueryResult, policyMatrix, testOrmParity, testRlsParity };
@@ -1,8 +1,8 @@
1
1
  import { a as CatalogDocument } from "../../types-CbJ5mxXv.js";
2
2
  import { i as SupabaseManifest } from "../../manifest-BwhZ1s5b.js";
3
- import { rt as MemberEntry } from "../../policy-types-BnBZvh7N.js";
4
- import { r as SubjectRecord } from "../../subject-cache-UKUgQCEX.js";
5
- import { i as SupabaseRpcClient } from "../../postgrest-BG0ipED3.js";
3
+ import { rt as MemberEntry } from "../../policy-types-DuM3k5Ao.js";
4
+ import { r as SubjectRecord } from "../../subject-cache-Bn4oJY_R.js";
5
+ import { i as SupabaseRpcClient } from "../../postgrest-B1bTbVE4.js";
6
6
  type PostgrestFixtureOptions = {
7
7
  /** The users `subject_for` knows, by id. An unknown user answers `null`. */
8
8
  readonly subjects: Readonly<Record<string, SubjectRecord>>;