permdock 0.36.0 → 0.38.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 (308) hide show
  1. package/dist/a2a/index.d.ts +4 -4
  2. package/dist/a2a/index.js +2 -2
  3. package/dist/{adoption-scan-FcbJOEo1.js → adoption-scan-D-uM3y5a.js} +1 -1
  4. package/dist/agent/index.d.ts +2 -2
  5. package/dist/agent/index.js +1 -1
  6. package/dist/ai-sdk/index.d.ts +3 -3
  7. package/dist/ai-sdk/index.js +3 -3
  8. package/dist/app/index.d.ts +1 -1
  9. package/dist/app/index.js +1 -1
  10. package/dist/{approval-prompt-BKxaKtby.d.ts → approval-prompt-DCC4jp2s.d.ts} +1 -1
  11. package/dist/approvals/index.d.ts +3 -3
  12. package/dist/{arazzo-BRWgVc8j.js → arazzo-BdWGzdqv.js} +1 -1
  13. package/dist/{arazzo-rYG2UY9k.js → arazzo-CyENGJ-M.js} +2 -2
  14. package/dist/astro/index.d.ts +4 -4
  15. package/dist/astro/index.js +1 -1
  16. package/dist/authzen/index.d.ts +6 -6
  17. package/dist/authzen/index.js +1 -1
  18. package/dist/{automation-C7WH5XcZ.d.ts → automation-DdarCGcn.d.ts} +1 -1
  19. package/dist/better-auth/index.d.ts +1 -1
  20. package/dist/better-supabase/index.d.ts +13 -13
  21. package/dist/better-supabase/index.js +5 -5
  22. package/dist/{bind-2Cuy29LS.js → bind-BNYcJ1D9.js} +2 -2
  23. package/dist/{bind-Caffleoh.d.ts → bind-CLvD4iLc.d.ts} +7 -7
  24. package/dist/{bsb-access-tags-Bfmhft2o.js → bsb-access-tags-C4iPlzjs.js} +1 -1
  25. package/dist/{budgets-B2hIDaz7.js → budgets-DFnMBpKz.js} +3 -3
  26. package/dist/{build-instance-CZg_Bf45.js → build-instance-BGpABVbM.js} +1 -1
  27. package/dist/bundle-size-CGd8wVIu.js +1 -0
  28. package/dist/{bundle-size-BjdmlKWJ.js → bundle-size-Pgm7BB5m.js} +2 -2
  29. package/dist/{capability-BW-vAxJi.d.ts → capability-CsiHf7K3.d.ts} +1 -1
  30. package/dist/{casbin-4FACZ5Ez.js → casbin-DdJndgnu.js} +1 -1
  31. package/dist/{casbin-Cz8BGXHW.js → casbin-ILRPO6t9.js} +1 -1
  32. package/dist/catalog/index.d.ts +4 -4
  33. package/dist/chat/index.d.ts +1 -1
  34. package/dist/chat/index.js +1 -1
  35. package/dist/chat-sdk/index.d.ts +3 -3
  36. package/dist/claims-size-B0OvYh9z.js +1 -0
  37. package/dist/{claims-size-BUhCWS88.js → claims-size-ZiUJBn0r.js} +42 -8
  38. package/dist/claude-agent/index.d.ts +3 -3
  39. package/dist/claude-agent/index.js +2 -2
  40. package/dist/clerk/index.d.ts +2 -2
  41. package/dist/cli/bin.js +1 -1
  42. package/dist/cli/generate/watch-worker.js +1 -1
  43. package/dist/cli/index.d.ts +6 -6
  44. package/dist/cli/index.js +1 -1
  45. package/dist/cli/plugins/app.d.ts +1 -1
  46. package/dist/cli/plugins/app.js +1 -1
  47. package/dist/cli/plugins/better-supabase.d.ts +1 -1
  48. package/dist/cli/plugins/openapi.d.ts +1 -1
  49. package/dist/cli/plugins/openapi.js +1 -1
  50. package/dist/cli/plugins/powersync.d.ts +1 -1
  51. package/dist/cli/plugins/powersync.js +1 -1
  52. package/dist/cli/plugins/rls.d.ts +2 -2
  53. package/dist/cli/plugins/rls.js +1 -1
  54. package/dist/cli/plugins/schemas.d.ts +1 -1
  55. package/dist/cli/plugins/schemas.js +1 -1
  56. package/dist/cli/plugins/scim.d.ts +2 -2
  57. package/dist/cli/plugins/supabase-hook.d.ts +2 -2
  58. package/dist/cli/plugins/supabase-hook.js +1 -1
  59. package/dist/cli/plugins/supabase.d.ts +3 -3
  60. package/dist/cli/plugins/supabase.js +2 -2
  61. package/dist/cli/plugins/ui.d.ts +1 -1
  62. package/dist/cli/plugins/ui.js +1 -1
  63. package/dist/{client-subject-YAGMzRa-.d.ts → client-subject-DSF0IYGW.d.ts} +2 -2
  64. package/dist/cloud/index.d.ts +8 -8
  65. package/dist/{cloud-BB67klb4.js → cloud-C8bHMKjI.js} +1 -1
  66. package/dist/{codemod-BPcxGOlq.js → codemod-D02eYuzA.js} +4 -4
  67. package/dist/{codemod-Lov9764v.js → codemod-D8zh3IYV.js} +1 -1
  68. package/dist/compile/index.d.ts +1 -1
  69. package/dist/{compile-EtZv2wc0.js → compile-7tf8hHlu.js} +3 -3
  70. package/dist/{compile-CyUn58lf.d.ts → compile-CFV4wDo9.d.ts} +2 -2
  71. package/dist/{completion-5Y8toe1d.js → completion-BZShluF7.js} +1 -1
  72. package/dist/{config-DfbiV554.js → config-ClypJwe2.js} +1 -1
  73. package/dist/{config-report-Cs6iDebE.js → config-report-Kb-mYv9F.js} +1 -1
  74. package/dist/{context-CFPsmfPl.js → context-BQQzAw83.js} +1 -1
  75. package/dist/convex/index.d.ts +4 -4
  76. package/dist/convex/index.js +2 -2
  77. package/dist/{core-s_TCdJ6G.js → core-BFR-V5CL.js} +2 -2
  78. package/dist/{core-_Lofwt2K.d.ts → core-BOWoKYve.d.ts} +2 -2
  79. package/dist/{create-bbjS7tCW.js → create-BICq9l-p.js} +2 -2
  80. package/dist/{create-D12I1Vkl.d.ts → create-BTthKNP0.d.ts} +7 -7
  81. package/dist/{create-EPbgV-LA.d.ts → create-BaKdh-D8.d.ts} +6 -6
  82. package/dist/{create-D6B06lb8.js → create-Dapy8DIK.js} +3 -3
  83. package/dist/{create-BfTbYrts.d.ts → create-Y6DnNpuP.d.ts} +4 -4
  84. package/dist/{credentials-DtSnydoD.d.ts → credentials-e872ACwg.d.ts} +2 -2
  85. package/dist/{custom-role-rebuild-QFXiMHqJ.js → custom-role-rebuild-CRz6Ip6J.js} +1 -1
  86. package/dist/{define-permdock-ZR0w-Loy.d.ts → define-permdock-8YZPaa9x.d.ts} +6 -6
  87. package/dist/{define-permdock-Dazve5lw.js → define-permdock-B0q7Rg9b.js} +1 -1
  88. package/dist/delivery/index.d.ts +4 -4
  89. package/dist/{denied-text-DgNqDAPH.d.ts → denied-text-u4OC-MYV.d.ts} +1 -1
  90. package/dist/{describe-DEoWvk00.d.ts → describe-DLGEciCs.d.ts} +1 -1
  91. package/dist/{diff-C7zKA7ny.js → diff-BebUlh4Z.js} +1 -1
  92. package/dist/{diff-BABnQ-z0.js → diff-Sxca4_5q.js} +2 -2
  93. package/dist/{doctor-Cm1HDI5s.js → doctor-DAx9dIEX.js} +2 -2
  94. package/dist/{doctor-Chio5Col.js → doctor-XSdrG1SZ.js} +21 -21
  95. package/dist/drizzle/index.d.ts +3 -3
  96. package/dist/elysia/index.d.ts +4 -4
  97. package/dist/elysia/index.js +1 -1
  98. package/dist/{errors-BliKrfmP.d.ts → errors-C35fh_2K.d.ts} +1 -1
  99. package/dist/{evaluations-BYoj5ci6.d.ts → evaluations-BiZYgET4.d.ts} +3 -3
  100. package/dist/eve/index.d.ts +4 -4
  101. package/dist/eve/index.js +2 -2
  102. package/dist/{execute-B_yY9xWV.js → execute-DgCH7kEE.js} +4 -4
  103. package/dist/{explain-CKIqxXSe.js → explain-BrvY9cXX.js} +1 -1
  104. package/dist/{explain-Blkq60Ff.js → explain-CgKGadRa.js} +2 -2
  105. package/dist/express/index.d.ts +4 -4
  106. package/dist/express/index.js +1 -1
  107. package/dist/fastify/index.d.ts +4 -4
  108. package/dist/fastify/index.js +1 -1
  109. package/dist/{fetch-adapter-CdaSVKrt.d.ts → fetch-adapter-CQSxXotl.d.ts} +2 -2
  110. package/dist/{fetch-adapter-DXgza6EM.js → fetch-adapter-dmABnF7F.js} +1 -1
  111. package/dist/gen-Df-r9jpy.js +1 -0
  112. package/dist/{gen-kind-C4tERYMw.js → gen-kind-DIltjpY9.js} +1 -1
  113. package/dist/{gen-DlJK73v7.js → gen-m1X9N8DZ.js} +3 -3
  114. package/dist/{generate-CbLA2WW_.js → generate-CIjPy_cH.js} +3 -3
  115. package/dist/{generate-CFqcr3H6.js → generate-DWL9aXjZ.js} +11 -11
  116. package/dist/{generate-options-BFAvlJKQ.js → generate-options-RvPqyMWE.js} +7 -7
  117. package/dist/h3/index.d.ts +4 -4
  118. package/dist/h3/index.js +2 -2
  119. package/dist/hono/index.d.ts +4 -4
  120. package/dist/hono/index.js +1 -1
  121. package/dist/{hook-sql-CSUFnRn0.js → hook-sql-C24FFEWr.js} +5 -5
  122. package/dist/{hosted-DZgmEG4b.d.ts → hosted-Cl7q35D-.d.ts} +1 -1
  123. package/dist/{import-B-17dw3B.js → import-Dmm7N9C6.js} +1 -1
  124. package/dist/{index-Bb2sZq1K.d.ts → index-B1hyWi7O.d.ts} +6 -6
  125. package/dist/{index-Cfg0ED9K.d.ts → index-BtPvYUww.d.ts} +4 -4
  126. package/dist/{index-CT4VKXU-.d.ts → index-D9DsY164.d.ts} +4 -4
  127. package/dist/{index-DBBRSw6r.d.ts → index-DYvFRQle.d.ts} +2 -2
  128. package/dist/{index-CAE_Z53Y.d.ts → index-L6lt50lg.d.ts} +1 -1
  129. package/dist/{index-DY1aJ-K1.d.ts → index-p5y3whIg.d.ts} +4 -4
  130. package/dist/index.d.ts +15 -15
  131. package/dist/index.js +3 -3
  132. package/dist/{init-Bg0vS1LV.js → init-Cgcea11w.js} +1 -1
  133. package/dist/{init-DRbkPclr.js → init-tXmJlH7f.js} +3 -3
  134. package/dist/{inspect-functions-DLP72IMA.js → inspect-functions-DbhgRvDf.js} +1 -1
  135. package/dist/{instance-options-D-SLCp4I.d.ts → instance-options-CUNLusL6.d.ts} +1 -1
  136. package/dist/{interactive-only-CylKSukS.js → interactive-only-ad2JJYk8.js} +12 -7
  137. package/dist/jwt/index.d.ts +4 -4
  138. package/dist/{kernel-CzzmzwLg.js → kernel-yI0nUyuX.js} +3 -3
  139. package/dist/{keys-C-W0yrql.js → keys-B4JLF5VZ.js} +1 -1
  140. package/dist/kysely/index.d.ts +3 -3
  141. package/dist/{lazy-provider-BSHAIpMK.d.ts → lazy-provider-B22nfOsw.d.ts} +1 -1
  142. package/dist/{login-D6IJk8k1.js → login-DAqoZl0F.js} +1 -1
  143. package/dist/{login-yF-sDNm9.js → login-fz4tUg2P.js} +3 -3
  144. package/dist/{manifest-DkHIGPoY.js → manifest-DbJC_rXj.js} +39 -39
  145. package/dist/mcp/index.d.ts +8 -8
  146. package/dist/mcp/index.js +2 -2
  147. package/dist/{measure-_VlSPfSY.js → measure-R9VWfQ2y.js} +1 -1
  148. package/dist/{model-r7X_HXyS.js → model-8NWofaam.js} +1 -1
  149. package/dist/nest/index.d.ts +4 -4
  150. package/dist/nest/index.js +1 -1
  151. package/dist/next/index.d.ts +11 -11
  152. package/dist/next/index.js +3 -3
  153. package/dist/next/plugin.d.ts +1 -1
  154. package/dist/node/index.d.ts +4 -4
  155. package/dist/node/index.js +1 -1
  156. package/dist/openai/index.d.ts +4 -4
  157. package/dist/openai/index.js +3 -3
  158. package/dist/openapi/index.d.ts +2 -2
  159. package/dist/{openapi-D156UqcM.js → openapi-BgXg8LkZ.js} +2 -2
  160. package/dist/{openapi-document-CTvHkCXz.js → openapi-document-BJcbM0-l.js} +1 -1
  161. package/dist/{openapi-Dcqqja0n.js → openapi-uxD7ABpM.js} +1 -1
  162. package/dist/orpc/index.d.ts +5 -5
  163. package/dist/orpc/index.js +2 -2
  164. package/dist/otel/index.d.ts +3 -3
  165. package/dist/{output-DNbj0_Yi.js → output-DZS9QWHI.js} +1 -1
  166. package/dist/{ownership-BvKT4DBj.js → ownership-DO5EF2nr.js} +2 -2
  167. package/dist/{parse-local-manifest-DoLQFkRb.d.ts → parse-local-manifest-BE_R-Ish.d.ts} +1 -1
  168. package/dist/pdp/index.d.ts +3 -3
  169. package/dist/pdp/index.js +1 -1
  170. package/dist/{permdock-DZmr2kJw.js → permdock-CbavFN6u.js} +4 -1
  171. package/dist/{permdock-CHU1LZGq.d.ts → permdock-NJ4-pCZy.d.ts} +2 -2
  172. package/dist/{permissions-DUmypTlO.js → permissions-BPYOb5OB.js} +1 -1
  173. package/dist/{pipeline-BMbLI2Sj.js → pipeline-IvdKfvuP.js} +2 -2
  174. package/dist/{plugin-DDPXES4k.d.ts → plugin-YAJ25tft.d.ts} +2 -2
  175. package/dist/{policy-BoUbJ2c0.d.ts → policy-BlOumPY5.d.ts} +1 -1
  176. package/dist/{policy-DekUQ-6v.js → policy-V-sHH2Ku.js} +1 -1
  177. package/dist/{policy-bundle-JU4-AFJM.js → policy-bundle-DyJKT9TF.js} +3 -3
  178. package/dist/{policy-types-DuM3k5Ao.d.ts → policy-types-CRWqx8qf.d.ts} +7 -2
  179. package/dist/{postgrest-B1bTbVE4.d.ts → postgrest-BGYDQhG1.d.ts} +7 -6
  180. package/dist/{powersync-D9ZLDzyv.js → powersync-BY6r-MIk.js} +1 -1
  181. package/dist/{powersync-CpxkK_Lz.js → powersync-BkN45DVg.js} +1 -1
  182. package/dist/{powersync-cG4lxrzQ.js → powersync-IqzV6QHS.js} +8 -8
  183. package/dist/prisma/index.d.ts +2 -2
  184. package/dist/{protected-action-Dux5RJbA.d.ts → protected-action-BbQb5G_c.d.ts} +5 -5
  185. package/dist/{provider-BSHAIpMK.d.ts → provider-B22nfOsw.d.ts} +1 -1
  186. package/dist/{provider-BfKUBNyV.js → provider-hQFC3b98.js} +1 -1
  187. package/dist/{prune-config-ByigsAkl.js → prune-config-BRqnw6rb.js} +4 -4
  188. package/dist/{pull-4Cyo0uTS.js → pull-PDxkxdGN.js} +1 -1
  189. package/dist/pull-n6noMzmE.js +1 -0
  190. package/dist/{pushed-policy-C65TbLtU.d.ts → pushed-policy-B2AXpqRr.d.ts} +1 -1
  191. package/dist/{rbac-BOVyTCI6.js → rbac-BK_wp3eK.js} +2 -2
  192. package/dist/react/index.d.ts +6 -6
  193. package/dist/react/lazy.d.ts +6 -6
  194. package/dist/react/provider-client-lazy.d.ts +1 -1
  195. package/dist/react/provider-client.d.ts +1 -1
  196. package/dist/react-native/index.d.ts +8 -8
  197. package/dist/{rename-Dp47Gs_j.js → rename-BbdlodFz.js} +2 -2
  198. package/dist/replay-DjZ4I8QN.d.ts +3 -0
  199. package/dist/{request-context-LvIolknK.js → request-context-C9FFFpuH.js} +1 -1
  200. package/dist/resend/index.d.ts +4 -4
  201. package/dist/{resolve-names-B_no27Dh.js → resolve-names-B85N2-Ws.js} +2 -2
  202. package/dist/{resolver-CAmmdVAL.js → resolver-C9-dU-SZ.js} +11 -6
  203. package/dist/{rls-DB18scnl.js → rls-BkXnBVXx.js} +7 -7
  204. package/dist/{rls-C816Uuvx.js → rls-DTXsf2zJ.js} +3 -3
  205. package/dist/{rls-files-Cp-qzl61.js → rls-files-BJMmTuC9.js} +1 -1
  206. package/dist/{rls-options-DCLdZaTZ.d.ts → rls-options-BWWTZWjh.d.ts} +1 -1
  207. package/dist/{rpc-CL8lrV5Y.d.ts → rpc-CqKQCBPN.d.ts} +1 -1
  208. package/dist/{rpc-CoClxzcc.js → rpc-RDBrKR7N.js} +1 -1
  209. package/dist/run-DqqVLgh_.js +1 -0
  210. package/dist/{run-CJhz8BHw.js → run-dwwtRWj6.js} +2 -2
  211. package/dist/{run-ticket-CCRYQNj0.d.ts → run-ticket-BIRal-vH.d.ts} +2 -2
  212. package/dist/{saas-iXqf78G8.js → saas-CHviJgF2.js} +2 -2
  213. package/dist/{scan-DvM-_F8-.js → scan-BGTnZXgx.js} +1 -1
  214. package/dist/{schema-uTRr3B9f.js → schema-KPTMZVeK.js} +1 -1
  215. package/dist/scim/index.d.ts +1 -1
  216. package/dist/seeds/index.d.ts +1 -1
  217. package/dist/{seeds-BZMPfWcC.d.ts → seeds-K00R0810.d.ts} +1 -1
  218. package/dist/server/index.d.ts +11 -11
  219. package/dist/server/index.js +1 -1
  220. package/dist/{server-types-C_Lnc8Ec.d.ts → server-types-CaKNUxdc.d.ts} +8 -8
  221. package/dist/{sink-CoMI_OVw.d.ts → sink-CCirKrLv.d.ts} +2 -2
  222. package/dist/{size-BO7J8M3B.js → size-Dm3777Ev.js} +3 -3
  223. package/dist/{skills-DF_3nX9_.js → skills-CexZ2QfF.js} +1 -1
  224. package/dist/{skills-B5exEJf5.js → skills-jPbcwqhX.js} +1 -1
  225. package/dist/{snapshot-cache-R1lJjYmI.d.ts → snapshot-cache-Dh_owfVu.d.ts} +1 -1
  226. package/dist/{snapshot-size-CJ53OOen.js → snapshot-size-CpdksnSr.js} +1 -1
  227. package/dist/{snapshot-size-BzamcZrn.js → snapshot-size-I_-fxGry.js} +1 -1
  228. package/dist/solid/index.d.ts +5 -5
  229. package/dist/solid-start/index.d.ts +4 -4
  230. package/dist/solid-start/index.js +2 -2
  231. package/dist/{sources-Dp6FQ8np.d.ts → sources-CD1OiqqK.d.ts} +1 -1
  232. package/dist/{src-CYKqpYUM.js → src-10d_jun2.js} +1 -1
  233. package/dist/ssf/index.d.ts +3 -3
  234. package/dist/{standard-webhooks-D2FwHtMX.d.ts → standard-webhooks-CiV4_mv2.d.ts} +2 -2
  235. package/dist/{store-core-D5-cqb6z.d.ts → store-core-fRqdlrep.d.ts} +4 -4
  236. package/dist/{stores-DPUPLu29.d.ts → stores-BXPRg1Ot.d.ts} +5 -5
  237. package/dist/{subject-cache-Bn4oJY_R.d.ts → subject-cache-1EtpGx3y.d.ts} +9 -1
  238. package/dist/supabase/index.d.ts +8 -8
  239. package/dist/supabase/index.js +3 -3
  240. package/dist/supabase/middleware.d.ts +5 -5
  241. package/dist/supabase/middleware.js +3 -3
  242. package/dist/{supabase-NpHqrRXC.js → supabase-CeJAHqZp.js} +2 -2
  243. package/dist/{supabase-Dpy2XE9v.js → supabase-DgHCnzMW.js} +2 -2
  244. package/dist/supabase-hook-8jAi64W9.js +2 -0
  245. package/dist/{supabase-hook-VIpXUHKI.js → supabase-hook-BIBC5Ihn.js} +5 -5
  246. package/dist/{supabase-schemas-DA28GP4N.js → supabase-schemas-DOc3cNnf.js} +1 -1
  247. package/dist/svelte/index.d.ts +5 -5
  248. package/dist/svelte/runtime.d.ts +3 -3
  249. package/dist/svelte/source.d.ts +5 -5
  250. package/dist/sveltekit/index.d.ts +4 -4
  251. package/dist/sveltekit/index.js +1 -1
  252. package/dist/{table-reads-B5kunhny.js → table-reads-CMP1MnPJ.js} +1 -1
  253. package/dist/{table-reads-4KzGXg9f.js → table-reads-CXecyZKo.js} +1 -1
  254. package/dist/{tables-BwQvlpS4.js → tables-C-DzDqKb.js} +5 -5
  255. package/dist/tanstack-start/index.d.ts +4 -4
  256. package/dist/tanstack-start/index.js +1 -1
  257. package/dist/{tenant-check-CsJkduIb.js → tenant-check-DoZibca6.js} +3 -3
  258. package/dist/terminal/index.d.ts +5 -5
  259. package/dist/terminal/index.js +2 -2
  260. package/dist/testing/core.d.ts +1 -1
  261. package/dist/testing/core.js +1 -1
  262. package/dist/testing/fixtures/index.d.ts +3 -3
  263. package/dist/testing/index.d.ts +22 -22
  264. package/dist/testing/index.js +5 -5
  265. package/dist/testing/saas/index.d.ts +3 -3
  266. package/dist/testing/saas/index.js +2 -2
  267. package/dist/testing/saas/permissions.js +1 -1
  268. package/dist/trpc/index.d.ts +5 -5
  269. package/dist/trpc/index.js +2 -2
  270. package/dist/{type-helpers-CsWH9z8p.d.ts → type-helpers-DTlfU9zX.d.ts} +1 -1
  271. package/dist/{types-iwSmOTcK.d.ts → types-BGDafbIK.d.ts} +4 -4
  272. package/dist/{types-BGN3coSe.d.ts → types-BdghnYGo.d.ts} +1 -1
  273. package/dist/{types-Cvfe-G_N.d.ts → types-C1jxMZ4q.d.ts} +2 -2
  274. package/dist/{types-D3GI2B9O.d.ts → types-C2GmBHtC.d.ts} +3 -3
  275. package/dist/{types-CM5GwxiJ.d.ts → types-CAGo84uV.d.ts} +4 -4
  276. package/dist/{types-B23A72BG.d.ts → types-CN3Tk7bb.d.ts} +2 -2
  277. package/dist/{types-CKwI6AT4.d.ts → types-CzAFVtMz.d.ts} +1 -1
  278. package/dist/{types-C8sDUhaF.d.ts → types-Jxy_Ko7f.d.ts} +2 -2
  279. package/dist/{types-BwjOhlgx.d.ts → types-XhEnMpL6.d.ts} +4 -4
  280. package/dist/{types-BRaJxlqL.d.ts → types-ZjPv-GgQ.d.ts} +3 -3
  281. package/dist/{types-config-DYRoZ8Iw.d.ts → types-config-B3eAej9-.d.ts} +2 -2
  282. package/dist/{types-run-CeCrWO0v.d.ts → types-run-sP7yLp61.d.ts} +1 -1
  283. package/dist/unplugin/index.d.ts +1 -1
  284. package/dist/{usage-_9h9jQo8.js → usage-BiTJQNJO.js} +2 -2
  285. package/dist/usage-D7-bsLte.js +1 -0
  286. package/dist/{usage-BD_z4pba.js → usage-ltA8iGa4.js} +1 -1
  287. package/dist/{validation-error-MZ7KLNHt.d.ts → validation-error-OX59FaXR.d.ts} +1 -1
  288. package/dist/{verify-cw6SFoQE.js → verify-Dj3OjNiD.js} +5 -5
  289. package/dist/{version-cache-Ccrfu2A4.js → version-cache-l9Zrfvhz.js} +8 -6
  290. package/dist/vue/index.d.ts +5 -5
  291. package/dist/{waiter-DdwtUSzB.d.ts → waiter-CyF-YowB.d.ts} +2 -2
  292. package/dist/{warm-XyQ-2nUR.js → warm-BOrs0-_j.js} +1 -1
  293. package/dist/{warm-znYuJoUZ.d.ts → warm-BYF-zxiy.d.ts} +1 -1
  294. package/dist/{watch-Cvc7eUPk.js → watch--c--3aEf.js} +1 -1
  295. package/dist/webmcp/index.d.ts +1 -1
  296. package/dist/workflow/index.d.ts +3 -3
  297. package/dist/workflow/index.js +1 -1
  298. package/dist/workflow-sdk/index.d.ts +4 -4
  299. package/dist/{wrap-B4Ge6LOd.d.ts → wrap-CPvBX9lm.d.ts} +2 -2
  300. package/package.json +2 -2
  301. package/dist/bundle-size-BoG9Jm7c.js +0 -1
  302. package/dist/claims-size-C6oKGuOM.js +0 -1
  303. package/dist/gen-CYuPbpBZ.js +0 -1
  304. package/dist/pull-_ic7Md2h.js +0 -1
  305. package/dist/replay-B__gzUx3.d.ts +0 -3
  306. package/dist/run-PpoUQXDc.js +0 -1
  307. package/dist/supabase-hook-DaK4Rirh.js +0 -2
  308. package/dist/usage-wphGxzPQ.js +0 -1
@@ -1,4 +1,4 @@
1
- import { tn as LocalSnapshotManifest } from "./policy-types-DuM3k5Ao.js";
1
+ import { tn as LocalSnapshotManifest } from "./policy-types-CRWqx8qf.js";
2
2
  /**
3
3
  * Whether `value` has the shape `localSnapshotManifest(policy)` writes, with no
4
4
  * prototype keys. A JSON import widens `v: 1` to `number`; this narrows it back
@@ -1,6 +1,6 @@
1
- import { o as PermDockOptions } from "../permdock-CHU1LZGq.js";
2
- import { D as Policy, N as PolicyVocabulary, Or as Principal, Y as DecisionProvider } from "../policy-types-DuM3k5Ao.js";
3
- import { a as RelationMap, c as RemotePdpEndpoints, d as SpiceDbCheck, f as SpiceDbOptions, i as PdpPermDock, l as RemotePdpMapping, n as OpenFgaTuple, o as RemotePdpAuth, r as PdpFactory, s as RemotePdpCache, t as OpenFgaOptions, u as RemotePdpOptions } from "../types-C8sDUhaF.js";
1
+ import { o as PermDockOptions } from "../permdock-NJ4-pCZy.js";
2
+ import { D as Policy, N as PolicyVocabulary, Or as Principal, Y as DecisionProvider } from "../policy-types-CRWqx8qf.js";
3
+ import { a as RelationMap, c as RemotePdpEndpoints, d as SpiceDbCheck, f as SpiceDbOptions, i as PdpPermDock, l as RemotePdpMapping, n as OpenFgaTuple, o as RemotePdpAuth, r as PdpFactory, s as RemotePdpCache, t as OpenFgaOptions, u as RemotePdpOptions } from "../types-Jxy_Ko7f.js";
4
4
  /**
5
5
  * The PDP-aware instance, built synchronously like core `getPermDockSync`; use
6
6
  * `getPermDock` for asynchronous inputs.
package/dist/pdp/index.js CHANGED
@@ -4,7 +4,7 @@ import { n as PermDockValidationError } from "../validation-error-CgDOA6VS.js";
4
4
  import { a as deniedMessage, i as approvalMessage, n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-DOSkVeTC.js";
5
5
  import { n as freezeDeep } from "../freeze-DGfJq_j2.js";
6
6
  import { n as internalsOf, t as attachInternals } from "../internals-D58TnmDB.js";
7
- import { n as getPermDockSync$1, t as getPermDock$1 } from "../permdock-DZmr2kJw.js";
7
+ import { n as getPermDockSync$1, t as getPermDock$1 } from "../permdock-CbavFN6u.js";
8
8
  import { a as getResource, c as listPermissions } from "../permission-registry-DstT40VS.js";
9
9
  import { a as postJson, c as ttlMs, i as joinUrl, n as denied, o as resourceIdOf, r as granted, s as ttlCache, t as cacheKey } from "../shared-BOsJIQf4.js";
10
10
  import { n as toWireDelegation } from "../wire-delegation-DC5Cyec4.js";
@@ -626,7 +626,10 @@ function assemblePrincipal(policy, user, options, auth, memo) {
626
626
  }, () => read(source, principal), auth, source.globalRolesFor === void 0 ? void 0 : () => source.globalRolesFor?.(compact({
627
627
  id: principal.id,
628
628
  kind: principal.kind
629
- }), { memo }) ?? [], options.version?.known, forced, rolesCheck);
629
+ }), compact({
630
+ memo,
631
+ tenant: options.tenant
632
+ })) ?? [], options.version?.known, forced, rolesCheck);
630
633
  memberships = reread.memberships;
631
634
  stale = reread.stale;
632
635
  roles = reread.roles;
@@ -1,7 +1,7 @@
1
- import { Ar as Subject, D as Policy, Dr as Membership, Fr as Condition, J as CustomRoleSourceFactory, N as PolicyVocabulary, Nr as AdapterId, Or as Principal, Q as Intent, X as DecisionSink, Z as EntitlementSource, _ as Grant, _t as TokenSigner, ct as RelationSource, dr as LimitDetail, gn as AuthEvent, ir as Decision, it as MembershipSource, jn as Scope, lr as ExplainedDecision, lt as SettingsSource, mr as Quota, nt as LimitStore, o as ApprovalOption, pn as SnapshotTenants, pr as Obligation, q as CustomRoleSource, qt as Instant, rn as Snapshot, vr as Actor, wr as Delegation, y as GrantLimit, yn as DecisionEvent } from "./policy-types-DuM3k5Ao.js";
1
+ import { Ar as Subject, D as Policy, Dr as Membership, Fr as Condition, J as CustomRoleSourceFactory, N as PolicyVocabulary, Nr as AdapterId, Or as Principal, Q as Intent, X as DecisionSink, Z as EntitlementSource, _ as Grant, _t as TokenSigner, ct as RelationSource, dr as LimitDetail, gn as AuthEvent, ir as Decision, it as MembershipSource, jn as Scope, lr as ExplainedDecision, lt as SettingsSource, mr as Quota, nt as LimitStore, o as ApprovalOption, pn as SnapshotTenants, pr as Obligation, q as CustomRoleSource, qt as Instant, rn as Snapshot, vr as Actor, wr as Delegation, y as GrantLimit, yn as DecisionEvent } from "./policy-types-CRWqx8qf.js";
2
2
  import { K as AppData, P as ResourceNode, V as RowOf, a as RoleTree, n as PlanTree, r as Role, w as Permission } from "./vocabulary-DHfKPIC5.js";
3
3
  import { i as OperationEffect, s as OperationMeta, t as Operation, u as OperationRisk } from "./operations-DaEoGpMV.js";
4
- import { a as HostedPolicies } from "./hosted-DZgmEG4b.js";
4
+ import { a as HostedPolicies } from "./hosted-Cl7q35D-.js";
5
5
  /**
6
6
  * One approval requirement kept as data, for a tenant or the whole platform. It
7
7
  * adds to what the code requires and never removes a requirement.
@@ -1,4 +1,4 @@
1
- import { c as crud } from "./src-CYKqpYUM.js";
1
+ import { c as crud } from "./src-10d_jun2.js";
2
2
  import { t as definePermissions } from "./permissions-DJ_QV9L7.js";
3
3
  import { n as defineRoles, t as definePlans } from "./vocabulary-CE2k7s1a.js";
4
4
  import { v as resource } from "./permission-registry-DstT40VS.js";
@@ -2,8 +2,8 @@ import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
2
2
  import { r as planFiles, t as applyFiles } from "./files-DuV7wRim.js";
3
3
  import { s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
4
4
  import { n as CliError } from "./errors-DgLOqc6j.js";
5
- import { a as ownedObjects, i as inReservedDir, n as foreignSchemaFiles, o as shownKey, s as withoutOwned, t as policyModel } from "./model-r7X_HXyS.js";
6
- import { n as resolveSchemas } from "./supabase-schemas-DA28GP4N.js";
5
+ import { a as ownedObjects, i as inReservedDir, n as foreignSchemaFiles, o as shownKey, s as withoutOwned, t as policyModel } from "./model-8NWofaam.js";
6
+ import { n as resolveSchemas } from "./supabase-schemas-DOc3cNnf.js";
7
7
  import { i as orderPlugins } from "./plugin-MQVfUBUS.js";
8
8
  import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
9
9
  import { join, relative, resolve } from "node:path";
@@ -1,5 +1,5 @@
1
- import { D as Policy, Fr as Condition, _ as Grant, jn as Scope } from "./policy-types-DuM3k5Ao.js";
2
- import { a as PermDockConfig } from "./types-config-DYRoZ8Iw.js";
1
+ import { D as Policy, Fr as Condition, _ as Grant, jn as Scope } from "./policy-types-CRWqx8qf.js";
2
+ import { a as PermDockConfig } from "./types-config-B3eAej9-.js";
3
3
  import { P as ResourceNode } from "./vocabulary-DHfKPIC5.js";
4
4
  /** The settings of the Supabase project config doctor reads. */
5
5
  type SupabaseConfig = {
@@ -1,4 +1,4 @@
1
- import { Ar as Subject, D as Policy, Or as Principal } from "./policy-types-DuM3k5Ao.js";
1
+ import { Ar as Subject, D as Policy, Or as Principal } from "./policy-types-CRWqx8qf.js";
2
2
  import { c as saasPlans, l as saasRoles, s as saasPermissions } from "./permissions-UyQD5nRN.js";
3
3
  /** Daily API-key quota per subject; the bucket should be per tenant too. */
4
4
  declare const SAAS_API_KEY_LIMIT = 5;
@@ -18,7 +18,7 @@ const policyBundle = defineLeaf({
18
18
  },
19
19
  async run(ctx, { flags }) {
20
20
  try {
21
- const { runPolicyBundle } = await import("./policy-bundle-JU4-AFJM.js");
21
+ const { runPolicyBundle } = await import("./policy-bundle-DyJKT9TF.js");
22
22
  const policy = await requirePolicy(ctx.cwd, given(flags.policy) ?? ctx.config.policy, "set policy in permdock.config.ts or pass --policy");
23
23
  return runPolicyBundle({
24
24
  cwd: ctx.cwd,
@@ -1,7 +1,7 @@
1
1
  import { n as fileSummary, t as applyFiles } from "./files-DuV7wRim.js";
2
- import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-BFAvlJKQ.js";
3
- import { r as compileGrants } from "./compile-EtZv2wc0.js";
4
- import { X as policyBundle, Y as bundleLoaderSql, i as tableNames, q as POLICY_BUNDLE_FORMAT } from "./tables-BwQvlpS4.js";
2
+ import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-RvPqyMWE.js";
3
+ import { r as compileGrants } from "./compile-7tf8hHlu.js";
4
+ import { X as policyBundle, Y as bundleLoaderSql, i as tableNames, q as POLICY_BUNDLE_FORMAT } from "./tables-C-DzDqKb.js";
5
5
  import { existsSync, readFileSync } from "node:fs";
6
6
  import { resolve } from "node:path";
7
7
  // src/cli/policy-bundle.ts
@@ -2125,12 +2125,17 @@ type MembershipSource = {
2125
2125
  * The global roles the principal holds now. With `onStale: 'reread'`, a stale
2126
2126
  * token's `principal.roles` is replaced by this answer, so a revoked platform
2127
2127
  * role is lost with the memberships. A throw or rejection leaves no global
2128
- * roles. Without it, a reread keeps the token's roles.
2128
+ * roles. Without it, a reread keeps the token's roles. The context carries
2129
+ * the instance's `tenant` when it has one: global roles are the user's in
2130
+ * every tenant, so a source that reads one tenant's record may answer from
2131
+ * it.
2129
2132
  */
2130
2133
  globalRolesFor?: (principal: {
2131
2134
  readonly id: string;
2132
2135
  readonly kind?: string;
2133
- }, context?: SourceContext) => readonly string[] | Promise<readonly string[]>;
2136
+ }, context?: SourceContext & {
2137
+ readonly tenant?: string;
2138
+ }) => readonly string[] | Promise<readonly string[]>;
2134
2139
  /**
2135
2140
  * Keep the memberships the verified token carries and read this source only
2136
2141
  * when the token says they were truncated (`claimsFirst`).
@@ -1,5 +1,5 @@
1
- import { Ar as Subject, D as Policy, Or as Principal, dt as SourceCall, it as MembershipSource, q as CustomRoleSource, rt as MemberEntry } from "./policy-types-DuM3k5Ao.js";
2
- import { n as SubjectCache, r as SubjectRecord } from "./subject-cache-Bn4oJY_R.js";
1
+ import { Ar as Subject, D as Policy, Or as Principal, dt as SourceCall, it as MembershipSource, q as CustomRoleSource, rt as MemberEntry } from "./policy-types-CRWqx8qf.js";
2
+ import { n as SubjectCache, r as SubjectRecord } from "./subject-cache-1EtpGx3y.js";
3
3
  /**
4
4
  * What a supabase-js `rpc` call resolves to: `data` or an `error` with a
5
5
  * message.
@@ -86,10 +86,11 @@ type PostgrestSourcesOptions = {
86
86
  * option) through `subject_for(p_user, p_tenant)` instead of every tenant's
87
87
  * through `subject_for(p_user)`, so a user in many organisations loads one.
88
88
  * An instance with no `tenant`, or an empty one, reads no memberships here:
89
- * the source never falls back to the all-tenants read. `subject`, `refresh`,
90
- * `record` and `memberships.globalRolesFor` still read the whole user. A
91
- * custom role of another tenant than the instance's is not read. Default
92
- * `false`.
89
+ * the source never falls back to the all-tenants read.
90
+ * `memberships.globalRolesFor` reads the instance's tenant too, since that
91
+ * record carries the user's global roles. `subject`, `refresh` and `record`
92
+ * still read the whole user. A custom role of another tenant than the
93
+ * instance's is not read. Default `false`.
93
94
  */
94
95
  readonly tenantScoped?: boolean;
95
96
  };
@@ -1 +1 @@
1
- export { i as powersyncFiles, r as publicationPath, t as runPowerSync } from "./powersync-cG4lxrzQ.js";
1
+ export { i as powersyncFiles, r as publicationPath, t as runPowerSync } from "./powersync-IqzV6QHS.js";
@@ -24,7 +24,7 @@ const verify = defineLeaf({
24
24
  const db = await dbUrl(ctx, flags, { required: true });
25
25
  const fixtures = given(flags.fixtures);
26
26
  const from = given(flags.policy);
27
- const { runPowerSync } = await import("./powersync-D9ZLDzyv.js");
27
+ const { runPowerSync } = await import("./powersync-BY6r-MIk.js");
28
28
  return runPowerSync({
29
29
  cwd: ctx.cwd,
30
30
  config: ctx.config,
@@ -1,15 +1,15 @@
1
1
  import { c as isConditionDate, l as isConditionRef, o as hasConditionOp } from "./refs-Cix9Zjis.js";
2
2
  import { n as findPermission } from "./permission-registry-DstT40VS.js";
3
- import { t as getPermDock } from "./permdock-DZmr2kJw.js";
4
- import { A as memoryCustomRoleSource, _ as localSnapshotManifest } from "./src-CYKqpYUM.js";
3
+ import { t as getPermDock } from "./permdock-CbavFN6u.js";
4
+ import { A as memoryCustomRoleSource, _ as localSnapshotManifest } from "./src-10d_jun2.js";
5
5
  import { f as usageResult } from "./errors-DgLOqc6j.js";
6
6
  import { t as applyFiles } from "./files-DuV7wRim.js";
7
7
  import { i as fileDrift } from "./output-files-8lfALMSU.js";
8
8
  import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-3aUUP6Nx.js";
9
9
  import { r as pgConnector } from "./pg-DmS5ITHu.js";
10
10
  import { c as requirePolicy } from "./load-m7jmit3y.js";
11
- import { t as canFixture } from "./verify-cw6SFoQE.js";
12
- import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, u as roleNames } from "./rbac-BOVyTCI6.js";
11
+ import { t as canFixture } from "./verify-Dj3OjNiD.js";
12
+ import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, u as roleNames } from "./rbac-BK_wp3eK.js";
13
13
  import { a as quoteIdent, s as quoteQualified } from "./quote-LNaBdCGA.js";
14
14
  import { a as scopeMembershipTable, i as scopeColumn } from "./compile-BUKXrueE.js";
15
15
  import { r as isRecord, t as compact } from "./compact-C4LFuqbW.js";
@@ -18,15 +18,15 @@ import { d as keptKeys, t as AUTHZ_VERSION_TABLE } from "./sources-C6Id63F8.js";
18
18
  import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
19
19
  import { t as membershipSourcesOf } from "./sources-BbSUNmFX.js";
20
20
  import { s as quoteSqlLiteral, t as SQL_IDENT } from "./sql-T4GaBh9X.js";
21
- import { t as ownershipRules } from "./ownership-BvKT4DBj.js";
22
- import { a as tableFor } from "./compile-EtZv2wc0.js";
23
- import { i as tableNames, r as tableNameOf } from "./tables-BwQvlpS4.js";
21
+ import { t as ownershipRules } from "./ownership-DO5EF2nr.js";
22
+ import { a as tableFor } from "./compile-7tf8hHlu.js";
23
+ import { i as tableNames, r as tableNameOf } from "./tables-C-DzDqKb.js";
24
24
  import { l as policyLevels } from "./policy-CZBJDcTx.js";
25
25
  import { p as scopeField } from "./tenancy-B5Xxt9Sc.js";
26
26
  import { t as requiresApproval } from "./approval-required-B-R4Yw3J.js";
27
27
  import { o as sqlFiles } from "./files-DAR51W3J.js";
28
28
  import { o as parseSqlLenient } from "./ast-Dnm2TOHN.js";
29
- import { n as resolveSchemas } from "./supabase-schemas-DA28GP4N.js";
29
+ import { n as resolveSchemas } from "./supabase-schemas-DOc3cNnf.js";
30
30
  import { existsSync, readFileSync } from "node:fs";
31
31
  import { join, resolve } from "node:path";
32
32
  // src/cli/powersync/claims.ts
@@ -1,6 +1,6 @@
1
- import { Ar as Subject, Fr as Condition, qt as Instant } from "../policy-types-DuM3k5Ao.js";
1
+ import { Ar as Subject, Fr as Condition, qt as Instant } from "../policy-types-CRWqx8qf.js";
2
2
  import { n as RowCheck, t as WithSubjectOptions } from "../subject-settings-C9F1sU1d.js";
3
- import { p as WhereResult } from "../permdock-CHU1LZGq.js";
3
+ import { p as WhereResult } from "../permdock-NJ4-pCZy.js";
4
4
  import { r as RelationsMapping } from "../graph-sql-Ds3nbevr.js";
5
5
  /**
6
6
  * A model's non-nullable scalar fields and its scalar list fields, by Prisma
@@ -1,10 +1,10 @@
1
- import { Dr as Membership, N as PolicyVocabulary, ir as Decision } from "./policy-types-DuM3k5Ao.js";
1
+ import { Dr as Membership, N as PolicyVocabulary, ir as Decision } from "./policy-types-CRWqx8qf.js";
2
2
  import { r as Role, w as Permission } from "./vocabulary-DHfKPIC5.js";
3
- import { d as UncheckedData, s as RowData } from "./permdock-CHU1LZGq.js";
4
- import { r as DescribeOptions, t as DecisionDescription } from "./describe-DEoWvk00.js";
5
- import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, l as GateView, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView } from "./store-core-D5-cqb6z.js";
3
+ import { d as UncheckedData, s as RowData } from "./permdock-NJ4-pCZy.js";
4
+ import { r as DescribeOptions, t as DecisionDescription } from "./describe-DLGEciCs.js";
5
+ import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, l as GateView, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView } from "./store-core-fRqdlrep.js";
6
6
  import { r as RefreshTrigger } from "./refresh-on-C1zIMtJr.js";
7
- import { r as ProtectedProps } from "./types-iwSmOTcK.js";
7
+ import { r as ProtectedProps } from "./types-BGDafbIK.js";
8
8
  import { ReactNode } from "react";
9
9
  /**
10
10
  * The instance with every check. It loads the evaluator on first use and
@@ -1,4 +1,4 @@
1
- import { n as PermDockProviderProps } from "./types-iwSmOTcK.js";
1
+ import { n as PermDockProviderProps } from "./types-BGDafbIK.js";
2
2
  import { ReactElement } from "react";
3
3
  declare function PermDockProvider(props: PermDockProviderProps): ReactElement;
4
4
  export { PermDockProvider as t };
@@ -1,6 +1,6 @@
1
1
  import { t as parseCatalog } from "./parse-CUqZ_lLC.js";
2
2
  import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
3
- import { a as delegatedScopeMap } from "./permdock-DZmr2kJw.js";
3
+ import { a as delegatedScopeMap } from "./permdock-CbavFN6u.js";
4
4
  import { i as qualifySqlTable, l as sqlIdent, s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
5
5
  import { n as parseSupabaseManifest, t as hasTokenHook } from "./manifest-teSfgeqF.js";
6
6
  import { y as parseAnswer } from "./permission-registry-DstT40VS.js";
@@ -1,16 +1,16 @@
1
1
  import { n as CliError } from "./errors-DgLOqc6j.js";
2
2
  import { i as refuseDirty, t as applyFiles } from "./files-DuV7wRim.js";
3
3
  import { a as rel } from "./files-DAR51W3J.js";
4
- import { t as genFiles } from "./gen-DlJK73v7.js";
5
- import { t as projectContext } from "./context-CFPsmfPl.js";
6
- import { t as emitPluginFiles } from "./pipeline-BMbLI2Sj.js";
4
+ import { t as genFiles } from "./gen-m1X9N8DZ.js";
5
+ import { t as projectContext } from "./context-BQQzAw83.js";
6
+ import { t as emitPluginFiles } from "./pipeline-IvdKfvuP.js";
7
7
  import { n as isPermDockPlugin } from "./plugin-MQVfUBUS.js";
8
8
  import { S as restatedFacts, c as withDerivedDefaults, o as readParsedConfig, t as configFileIn } from "./config-Dan6vcvj.js";
9
9
  import { c as requirePolicy } from "./load-m7jmit3y.js";
10
10
  import { n as restatedDefaults, r as withoutPath } from "./resolve-config-Cu_mE2wt.js";
11
11
  import { n as writtenPaths, t as configProperty } from "./config-paths-CQvGng3k.js";
12
12
  import { r as removeProperty, t as applyEditsStrict } from "./edits-CqU8s2GC.js";
13
- import { n as commandFor } from "./compile-EtZv2wc0.js";
13
+ import { n as commandFor } from "./compile-7tf8hHlu.js";
14
14
  import { r as schemaTables, t as restatedSchemaDefaults } from "./schema-tables-Ba9LE_XB.js";
15
15
  import { readFileSync } from "node:fs";
16
16
  // src/cli/codemod/prune-config.ts
@@ -4,7 +4,7 @@ import { n as parseSupabaseManifest } from "./manifest-teSfgeqF.js";
4
4
  import { o as formatCatalogJson } from "./catalog-doc-BX97oFAn.js";
5
5
  import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
6
6
  import { a as describeError } from "./errors-DgLOqc6j.js";
7
- import { o as nonEmptyOr } from "./output-DNbj0_Yi.js";
7
+ import { o as nonEmptyOr } from "./output-DZS9QWHI.js";
8
8
  import { s as cliVersion } from "./version-D-jWyJb9.js";
9
9
  import { s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
10
10
  import { n as formatManifestJson } from "./manifest-json-DMaBWmcG.js";
@@ -0,0 +1 @@
1
+ export { n as runCloudPull } from "./pull-PDxkxdGN.js";
@@ -1,4 +1,4 @@
1
- import { D as Policy, Fr as Condition, Gn as Grantee, W as WireValidity, b as GrantMeta, dn as SnapshotScope, f as BreakGlassSpec, nr as AppObligation, s as ApprovalRequirement, y as GrantLimit } from "./policy-types-DuM3k5Ao.js";
1
+ import { D as Policy, Fr as Condition, Gn as Grantee, W as WireValidity, b as GrantMeta, dn as SnapshotScope, f as BreakGlassSpec, nr as AppObligation, s as ApprovalRequirement, y as GrantLimit } from "./policy-types-CRWqx8qf.js";
2
2
  import { t as JsonSchemaNode } from "./json-schema-DAeA-lJa.js";
3
3
  /**
4
4
  * One code grant as `permdock cloud push` sends it. `portable: false` marks a
@@ -1,4 +1,4 @@
1
- import { n as authorizeSql } from "./supabase-NpHqrRXC.js";
1
+ import { n as authorizeSql } from "./supabase-CeJAHqZp.js";
2
2
  import { i as configError } from "./errors-DgLOqc6j.js";
3
3
  import { r as relationCondition, t as inheritCondition } from "./grantee-conditions-Dob6QQAc.js";
4
4
  import { c as rootScope, d as scopeList, s as resolveScope } from "./scopes-B-KX9EI8.js";
@@ -10,7 +10,7 @@ import { n as isForbiddenKey } from "./paths-CeS_gpHf.js";
10
10
  import { i as qualifySqlTable } from "./sql-T4GaBh9X.js";
11
11
  import { u as isoAt } from "./time-r0CKBm57.js";
12
12
  import { u as isSqlFunctionField } from "./refs-Cix9Zjis.js";
13
- import { K as activeUserSql, U as activeInstancesSql, W as activeMembershipSql, c as memoUserSql, g as memoHitList, y as memoizes } from "./interactive-only-CylKSukS.js";
13
+ import { K as activeUserSql, U as activeInstancesSql, W as activeMembershipSql, c as memoUserSql, g as memoHitList, y as memoizes } from "./interactive-only-ad2JJYk8.js";
14
14
  import { S as sqlType, a as kindFilterSql, b as idTypeOf, c as roleKindSql, d as subjectClaimSql, f as subjectIdSql, h as CLAIM, i as keyTenantSql, o as liveSessionSql, p as tenantClaimSql, s as memberVia, u as subjectClaimJsonSql } from "./subject-B7p94Y0s.js";
15
15
  import { S as scopeTable, _ as memberRoleOf, a as graphSqlText, b as restrictedHelper, d as linkHelper, h as memberIdsHelper, l as inheritedRowsHelper, n as CLOSURE, r as graphHelper, x as scopeSources } from "./names-DwGleRKB.js";
16
16
  import { a as quoteIdent, c as quoteTable, i as qualified, l as textArrayLiteral, o as quoteLiteral, r as helperSchema, s as quoteQualified } from "./quote-LNaBdCGA.js";
@@ -1,10 +1,10 @@
1
- import { i as describe } from "../describe-DEoWvk00.js";
2
- import { c as requiredPlans } from "../errors-BliKrfmP.js";
1
+ import { i as describe } from "../describe-DLGEciCs.js";
2
+ import { c as requiredPlans } from "../errors-C35fh_2K.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 useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-Dux5RJbA.js";
5
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-BbQb5G_c.js";
6
6
  import { t as onlineRefresh } from "../refresh-online-vtUfV6dk.js";
7
- import { t as PermDockProvider } from "../provider-BSHAIpMK.js";
8
- import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-iwSmOTcK.js";
9
- 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, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView, y as ActionResult } from "../store-core-D5-cqb6z.js";
7
+ import { t as PermDockProvider } from "../provider-B22nfOsw.js";
8
+ import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-BGDafbIK.js";
9
+ 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, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView, y as ActionResult } from "../store-core-fRqdlrep.js";
10
10
  export { type ActionResult, type ApprovalHandle, type ApprovalState, type AuthzChangeRefresh, type ClientPermDock, type ClientStatus, type EventSourceRefreshOptions, type FilterResult, type GateMode, type GateView, type PermDockDefaults, PermDockProvider, type PermDockProviderProps, type PermissionOutcome, type PermissionSet, type PermissionState, Protected, type ProtectedAction, type ProtectedActionHandle, type ProtectedActionView, type ProtectedProps, type RefreshTrigger, type RolesOptions, type SubjectView, type TenantView, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, onlineRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
@@ -1,10 +1,10 @@
1
- import { i as describe } from "../describe-DEoWvk00.js";
2
- import { c as requiredPlans } from "../errors-BliKrfmP.js";
1
+ import { i as describe } from "../describe-DLGEciCs.js";
2
+ import { c as requiredPlans } from "../errors-C35fh_2K.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 useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-Dux5RJbA.js";
5
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-BbQb5G_c.js";
6
6
  import { t as onlineRefresh } from "../refresh-online-vtUfV6dk.js";
7
- import { t as PermDockProvider } from "../lazy-provider-BSHAIpMK.js";
8
- import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-iwSmOTcK.js";
9
- 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, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView, y as ActionResult } from "../store-core-D5-cqb6z.js";
7
+ import { t as PermDockProvider } from "../lazy-provider-B22nfOsw.js";
8
+ import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-BGDafbIK.js";
9
+ 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, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView, y as ActionResult } from "../store-core-fRqdlrep.js";
10
10
  export { type ActionResult, type ApprovalHandle, type ApprovalState, type AuthzChangeRefresh, type ClientPermDock, type ClientStatus, type EventSourceRefreshOptions, type FilterResult, type GateMode, type GateView, type PermDockDefaults, PermDockProvider, type PermDockProviderProps, type PermissionOutcome, type PermissionSet, type PermissionState, Protected, type ProtectedAction, type ProtectedActionHandle, type ProtectedActionView, type ProtectedProps, type RefreshTrigger, type RolesOptions, type SubjectView, type TenantView, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, onlineRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
@@ -1,2 +1,2 @@
1
- import { t as PermDockProvider } from "../lazy-provider-BSHAIpMK.js";
1
+ import { t as PermDockProvider } from "../lazy-provider-B22nfOsw.js";
2
2
  export { PermDockProvider };
@@ -1,2 +1,2 @@
1
- import { t as PermDockProvider } from "../provider-BSHAIpMK.js";
1
+ import { t as PermDockProvider } from "../provider-B22nfOsw.js";
2
2
  export { PermDockProvider };
@@ -1,15 +1,15 @@
1
- import { i as describe } from "../describe-DEoWvk00.js";
1
+ import { i as describe } from "../describe-DLGEciCs.js";
2
2
  import { t as approvalHeaders } from "../headers-D1oRr-js.js";
3
- import { c as requiredPlans } from "../errors-BliKrfmP.js";
3
+ import { c as requiredPlans } from "../errors-C35fh_2K.js";
4
4
  import { i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, t as AuthzChangeRefresh } from "../refresh-on-C1zIMtJr.js";
5
- import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-Dux5RJbA.js";
6
- 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, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, t as ClientStore, v as TenantView, y as ActionResult } from "../store-core-D5-cqb6z.js";
7
- import { r as ProtectedProps, t as PermDockDefaults } from "../types-iwSmOTcK.js";
8
- import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-DoLQFkRb.js";
5
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-BbQb5G_c.js";
6
+ 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, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, t as ClientStore, v as TenantView, y as ActionResult } from "../store-core-fRqdlrep.js";
7
+ import { r as ProtectedProps, t as PermDockDefaults } from "../types-BGDafbIK.js";
8
+ import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-BE_R-Ish.js";
9
9
  import { w as Permission } from "../vocabulary-DHfKPIC5.js";
10
- import { $t as LocalRowColumn, Dr as Membership, Qt as LocalMembershipRows, Sr as CustomRole, en as LocalRowValue, nn as LocalSnapshotRows, qt as Instant, rn as Snapshot, tn as LocalSnapshotManifest, ut as SnapshotSource } from "../policy-types-DuM3k5Ao.js";
10
+ import { $t as LocalRowColumn, Dr as Membership, Qt as LocalMembershipRows, Sr as CustomRole, en as LocalRowValue, nn as LocalSnapshotRows, qt as Instant, rn as Snapshot, tn as LocalSnapshotManifest, ut as SnapshotSource } from "../policy-types-CRWqx8qf.js";
11
11
  import { n as RealtimeRefreshClient, t as RealtimeRefreshChannel } from "../client-V95IvZsF.js";
12
- import { a as SubscribeOnline, i as SubscribeForeground, n as ReactNativePermDockProviderProps, r as SnapshotStorage, t as NativeRevalidate } from "../types-CM5GwxiJ.js";
12
+ import { a as SubscribeOnline, i as SubscribeForeground, n as ReactNativePermDockProviderProps, r as SnapshotStorage, t as NativeRevalidate } from "../types-CAGo84uV.js";
13
13
  import { ReactElement } from "react";
14
14
  /**
15
15
  * `true` once the provider has a snapshot to answer from: storage was read or a
@@ -3,9 +3,9 @@ import "./sources-C6Id63F8.js";
3
3
  import { i as configError, n as CliError } from "./errors-DgLOqc6j.js";
4
4
  import { i as refuseDirty, n as fileSummary, t as applyFiles } from "./files-DuV7wRim.js";
5
5
  import { a as loadModule, r as leavesOf, s as pickNamed, t as asPermissionTree } from "./load-m7jmit3y.js";
6
- import { a as resolveAuthorize } from "./rbac-BOVyTCI6.js";
6
+ import { a as resolveAuthorize } from "./rbac-BK_wp3eK.js";
7
7
  import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
8
- import { n as legacyKeySql } from "./custom-role-rebuild-QFXiMHqJ.js";
8
+ import { n as legacyKeySql } from "./custom-role-rebuild-CRz6Ip6J.js";
9
9
  import { n as byKey } from "./compare-8SNJN-9U.js";
10
10
  import { a as quoteIdent, o as quoteLiteral } from "./quote-LNaBdCGA.js";
11
11
  import { a as nameOf, o as nodes, r as child, u as walk } from "./ast-CAOxvn9t.js";
@@ -0,0 +1,3 @@
1
+ import { l as ReplayStore } from "./types-C1jxMZ4q.js";
2
+ declare function memoryReplayStore(): ReplayStore;
3
+ export { memoryReplayStore as t };
@@ -1,5 +1,5 @@
1
1
  import { t as assertAppData } from "./app-data-DbSPSPIl.js";
2
- import { t as buildInstance } from "./build-instance-CZg_Bf45.js";
2
+ import { t as buildInstance } from "./build-instance-BGpABVbM.js";
3
3
  import { n as wrapPermDock } from "./wrap-CsfsaJhd.js";
4
4
  // src/core/request-context.ts
5
5
  /**
@@ -1,7 +1,7 @@
1
- import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-BKxaKtby.js";
2
- import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-D3GI2B9O.js";
3
- import { X as DecisionSink } from "../policy-types-DuM3k5Ao.js";
4
- import { l as ReplayStore } from "../types-Cvfe-G_N.js";
1
+ import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-DCC4jp2s.js";
2
+ import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-C2GmBHtC.js";
3
+ import { X as DecisionSink } from "../policy-types-CRWqx8qf.js";
4
+ import { l as ReplayStore } from "../types-C1jxMZ4q.js";
5
5
  type ApprovalEmailOptions = {
6
6
  /**
7
7
  * The app's approval page: a base the request id is appended to, or a
@@ -5,11 +5,11 @@ import "./budget-BH81q2cj.js";
5
5
  import "./sources-C6Id63F8.js";
6
6
  import { i as configError } from "./errors-DgLOqc6j.js";
7
7
  import { t as FIELD_VIEWS } from "./fields-CKX-qjWb.js";
8
- import { C as forUserContext, d as permittedByPermissionHelper, et as graphPlan, i as tableNames, o as PERMISSION_HELPERS, p as holderSources, s as checkName, w as grantBodies } from "./tables-BwQvlpS4.js";
8
+ import { C as forUserContext, d as permittedByPermissionHelper, et as graphPlan, i as tableNames, o as PERMISSION_HELPERS, p as holderSources, s as checkName, w as grantBodies } from "./tables-C-DzDqKb.js";
9
9
  import { b as idTypeOf, x as scopeTypeOf } from "./subject-B7p94Y0s.js";
10
10
  import { S as scopeTable, b as restrictedHelper, c as hasPermittedUsers, f as memberForHelper, g as memberOfHelper, h as memberIdsHelper, i as graphSqlName, l as inheritedRowsHelper, r as graphHelper, u as isTeamScope, v as permittedForHelper, y as permittedIdsHelper } from "./names-DwGleRKB.js";
11
11
  import { a as quoteIdent, i as qualified, o as quoteLiteral, s as quoteQualified } from "./quote-LNaBdCGA.js";
12
- import { D as globalRoleRows, m as holderBody } from "./interactive-only-CylKSukS.js";
12
+ import { D as globalRoleRows, m as holderBody } from "./interactive-only-ad2JJYk8.js";
13
13
  // src/cli/rls/permission-holders.ts
14
14
  /**
15
15
  * `permitted_<scope>_users(p_permission, p_id)`. Names are part of the SQL
@@ -1,13 +1,13 @@
1
1
  import { r as isRecord, t as compact } from "./compact-C4LFuqbW.js";
2
2
  import { f as nowMillis } from "./time-r0CKBm57.js";
3
- import { l as appOf, u as withApp } from "./permdock-DZmr2kJw.js";
3
+ import { l as appOf, u as withApp } from "./permdock-CbavFN6u.js";
4
4
  import { t as anonymousSubject } from "./subject-DkxY-AhF.js";
5
- import { i as instanceCache, n as memorySubjectCache, r as readSubjectRecord, t as memoryVersionCache } from "./version-cache-Ccrfu2A4.js";
5
+ import { i as instanceCache, n as memorySubjectCache, r as readSubjectRecord, t as memoryVersionCache } from "./version-cache-l9Zrfvhz.js";
6
6
  import { t as readMemberships } from "./read-memberships-DVBitJZG.js";
7
7
  import { a as permissionStates } from "./checks-DSm45qH7.js";
8
8
  import { t as instanceOptions } from "./instance-options-CLErhA76.js";
9
- import { n as versionSources } from "./define-permdock-Dazve5lw.js";
10
- import { t as buildInstance } from "./build-instance-CZg_Bf45.js";
9
+ import { n as versionSources } from "./define-permdock-B0q7Rg9b.js";
10
+ import { t as buildInstance } from "./build-instance-BGpABVbM.js";
11
11
  import { n as NO_GRANT } from "./decision-hHv4UZgy.js";
12
12
  import { a as hookApiNames } from "./sources-C6Id63F8.js";
13
13
  import { o as subjectFromSupabase } from "./definition-options-DLBlRrPO.js";
@@ -312,7 +312,8 @@ function postgrestSources(client, given = {}) {
312
312
  },
313
313
  list,
314
314
  async globalRolesFor(principal, context) {
315
- return [...(await live(principal.id, context?.memo))?.roles ?? []];
315
+ const scopeTo = tenantScoped && context?.tenant !== "" ? context?.tenant : void 0;
316
+ return [...(await live(principal.id, context?.memo, scopeTo))?.roles ?? []];
316
317
  }
317
318
  },
318
319
  customRoles(principal) {
@@ -479,7 +480,11 @@ function createResolver(given) {
479
480
  if (options.subjects !== void 0 && id !== void 0 && known !== void 0) try {
480
481
  await options.subjects.record(id, known);
481
482
  const record = result?.subject === void 0 ? void 0 : readSubjectRecord(result.subject);
482
- if (record?.active === true && (result?.subjectTenant ?? tenant ?? null) === (tenant ?? null) && record.id === id && record.authzVersion === known) await options.subjects.seed(record);
483
+ const restrictedTo = result?.subjectTenant ?? null;
484
+ if (record?.active === true && (restrictedTo ?? tenant ?? null) === (tenant ?? null) && record.id === id && record.authzVersion === known) await options.subjects.seed(restrictedTo === null ? record : {
485
+ ...record,
486
+ tenant: restrictedTo
487
+ });
483
488
  } catch {}
484
489
  const { permdock } = await buildInstance({
485
490
  policy: options.policy,
@@ -2,19 +2,19 @@ import "./sources-C6Id63F8.js";
2
2
  import { a as describeError, f as usageResult, o as exitCodeOfError } from "./errors-DgLOqc6j.js";
3
3
  import { n as openPgPool, r as pgConnector, t as connectPgPool } from "./pg-DmS5ITHu.js";
4
4
  import { i as taggedAccessPolicies } from "./bsb-access-Bcw6GrQm.js";
5
- import { n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-DA28GP4N.js";
6
- import { o as nonEmptyOr } from "./output-DNbj0_Yi.js";
5
+ import { n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-DOc3cNnf.js";
6
+ import { o as nonEmptyOr } from "./output-DZS9QWHI.js";
7
7
  import { n as packageManagerOf, t as addLine } from "./peer-D77JpXe-.js";
8
- import { n as describeExplain, t as runRlsGenerate } from "./generate-CFqcr3H6.js";
9
- import { c as INDEX_COLUMNS_SQL, f as readTableIndexFacts, s as COLUMNS_SQL } from "./compile-EtZv2wc0.js";
8
+ import { n as describeExplain, t as runRlsGenerate } from "./generate-DWL9aXjZ.js";
9
+ import { c as INDEX_COLUMNS_SQL, f as readTableIndexFacts, s as COLUMNS_SQL } from "./compile-7tf8hHlu.js";
10
10
  import { r as escapeSqlIdent } from "./sql-T4GaBh9X.js";
11
11
  import { t as beforeFirst } from "./text-D704xHVl.js";
12
12
  import { a as conditionShown, i as callsHelper, o as helperCallKeys, t as HELPER_TABLES } from "./helper-calls-DN1PJcNY.js";
13
13
  import { u as isPlatformSchema } from "./report-x9GeUvjx.js";
14
14
  import { c as ACTOR_MAY_WRITE, p as readOnlyActorKinds } from "./fields-CKX-qjWb.js";
15
- import { a as verifyResult, i as verifyIgnores, n as runRlsVerify, r as rlsFinding } from "./verify-cw6SFoQE.js";
16
- import { r as parseRbacAuthorize } from "./rbac-BOVyTCI6.js";
17
- import { n as configuredTableReads } from "./table-reads-B5kunhny.js";
15
+ import { a as verifyResult, i as verifyIgnores, n as runRlsVerify, r as rlsFinding } from "./verify-Dj3OjNiD.js";
16
+ import { r as parseRbacAuthorize } from "./rbac-BK_wp3eK.js";
17
+ import { n as configuredTableReads } from "./table-reads-CMP1MnPJ.js";
18
18
  import { r as isRecord } from "./compact-C4LFuqbW.js";
19
19
  import { a as rel, o as sqlFiles } from "./files-DAR51W3J.js";
20
20
  import { t as importFromApp } from "./app-peer-BnMh5lqz.js";
@@ -194,7 +194,7 @@ async function rlsInput(ctx, verb, shape, options) {
194
194
  };
195
195
  }
196
196
  async function runRls(input) {
197
- return (await import("./rls-DB18scnl.js")).runRls(input);
197
+ return (await import("./rls-BkXnBVXx.js")).runRls(input);
198
198
  }
199
199
  ({
200
200
  ...shapeFlags,
@@ -305,7 +305,7 @@ const report = defineLeaf({
305
305
  const [{ runRlsReport }, { pgConnector }, { configuredTableReads }] = await Promise.all([
306
306
  import("./report-Dp-ApWVC.js"),
307
307
  import("./pg-DtiDogUp.js"),
308
- import("./table-reads-4KzGXg9f.js")
308
+ import("./table-reads-CXecyZKo.js")
309
309
  ]);
310
310
  return runRlsReport({
311
311
  cwd: ctx.cwd,
@@ -349,7 +349,7 @@ const measure = defineLeaf({
349
349
  if (db === void 0) throw missingInput("rls measure", ["--db-url-stdin", "--local"], "the database to run requests against");
350
350
  const tenant = given(flags.tenant);
351
351
  const [{ runRlsMeasure, DEFAULT_REQUESTS, DEFAULT_TABLES }, { pgConnector }, { positiveInteger }] = await Promise.all([
352
- import("./measure-_VlSPfSY.js"),
352
+ import("./measure-R9VWfQ2y.js"),
353
353
  import("./pg-DtiDogUp.js"),
354
354
  import("./memberships-DiCbNRny.js")
355
355
  ]);
@@ -3,7 +3,7 @@ import { i as dateAt } from "./time-r0CKBm57.js";
3
3
  import { n as CliError } from "./errors-DgLOqc6j.js";
4
4
  import { m as seedsMigration, p as seedDeltaNote } from "./output-files-8lfALMSU.js";
5
5
  import { a as fixturesPresent, i as defaultsSeedSql, o as fixturesSeedSql, r as FIXTURES_PATH, t as DEFAULTS_MARKER } from "./seed-sql-CjF7u0aX.js";
6
- import { t as runRlsGenerate } from "./generate-CFqcr3H6.js";
6
+ import { t as runRlsGenerate } from "./generate-DWL9aXjZ.js";
7
7
  import { a as quietIo, r as noted } from "./plugin-MQVfUBUS.js";
8
8
  // src/cli/generate/plugins/rls-options.ts
9
9
  function seedMode(seeds) {
@@ -1,4 +1,4 @@
1
- import { c as RlsConfig, g as RlsTarget, o as SupabaseSchemas } from "./types-config-DYRoZ8Iw.js";
1
+ import { c as RlsConfig, g as RlsTarget, o as SupabaseSchemas } from "./types-config-B3eAej9-.js";
2
2
  /**
3
3
  * `rls.seeds` as a mode, or `false` to skip the rows, or where they are
4
4
  * written.
@@ -1,5 +1,5 @@
1
1
  import { w as Permission } from "./vocabulary-DHfKPIC5.js";
2
- import { o as ProtectOptions } from "./server-types-C_Lnc8Ec.js";
2
+ import { o as ProtectOptions } from "./server-types-CaKNUxdc.js";
3
3
  type StreamProtectOptions = ProtectOptions & {
4
4
  /**
5
5
  * For a procedure that returns an async iterable: each outbound item is