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,11 +1,11 @@
1
- import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-BRaJxlqL.js";
2
- import { i as describe } from "../describe-DEoWvk00.js";
3
- import { c as requiredPlans } from "../errors-BliKrfmP.js";
1
+ import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-ZjPv-GgQ.js";
2
+ import { i as describe } from "../describe-DLGEciCs.js";
3
+ import { c as requiredPlans } from "../errors-C35fh_2K.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-DPUPLu29.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-BXPRg1Ot.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-D5-cqb6z.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-fRqdlrep.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-C_Lnc8Ec.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-CaKNUxdc.js";
2
2
  import { a as OperationInput, t as Operation } from "../operations-DaEoGpMV.js";
3
- import { a as PermDock } from "../permdock-CHU1LZGq.js";
3
+ import { a as PermDock } from "../permdock-NJ4-pCZy.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-DuM3k5Ao.js";
6
- import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-CdaSVKrt.js";
5
+ import { D as Policy, N as PolicyVocabulary, Or as Principal, rn as Snapshot } from "../policy-types-CRWqx8qf.js";
6
+ import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-CQSxXotl.js";
7
7
  import { RequestEvent } from "@sveltejs/kit";
8
8
  /**
9
9
  * A `handle` hook. SvelteKit 2 exports `Handle` from `@sveltejs/kit` and
@@ -1,5 +1,5 @@
1
1
  import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-DPEAu_jM.js";
2
- import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-DXgza6EM.js";
2
+ import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-dmABnF7F.js";
3
3
  // src/sveltekit/create.ts
4
4
  const route = {
5
5
  context: (event) => event,
@@ -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-x9GeUvjx.js";
10
- import { a as tryKeyReasons, n as tenantCheck, r as keyReason, t as svals } from "./tenant-check-CsJkduIb.js";
10
+ import { a as tryKeyReasons, n as tenantCheck, r as keyReason, t as svals } from "./tenant-check-DoZibca6.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
@@ -1 +1 @@
1
- export { t as committedManifest, n as configuredTableReads, r as manifestTableReads, i as tableReads, a as withTableReads } from "./table-reads-B5kunhny.js";
1
+ export { t as committedManifest, n as configuredTableReads, r as manifestTableReads, i as tableReads, a as withTableReads } from "./table-reads-CMP1MnPJ.js";
@@ -5,7 +5,7 @@ import { c as rootScope, d as scopeList } from "./scopes-B-KX9EI8.js";
5
5
  import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
6
6
  import { r as relationCondition, t as inheritCondition } from "./grantee-conditions-Dob6QQAc.js";
7
7
  import { l as partitionsOf, p as scopeField } from "./tenancy-B5Xxt9Sc.js";
8
- import { a as delegatedScopeMap } from "./permdock-DZmr2kJw.js";
8
+ import { a as delegatedScopeMap } from "./permdock-CbavFN6u.js";
9
9
  import { i as configError } from "./errors-DgLOqc6j.js";
10
10
  import { d as sqlTextArray, i as qualifySqlTable, t as SQL_IDENT } from "./sql-T4GaBh9X.js";
11
11
  import { d as restrictedRowsSql, i as scopeColumn, l as relationArmSql } from "./compile-BUKXrueE.js";
@@ -15,7 +15,7 @@ import { t as IDENTITY_SCOPES } from "./identity-scopes-CRVAV0HU.js";
15
15
  import { a as quoteIdent, c as quoteTable, i as qualified, o as quoteLiteral, r as helperSchema, s as quoteQualified } from "./quote-LNaBdCGA.js";
16
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";
17
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";
18
- import { B as rolesTableScope, C as sourceRows, E as sqlBody, F as customRolesSql, G as activeRowSql, H as trustedReaderGrants, I as hasCustomRoleChecksFor, J as grantPermissionSql, K as activeUserSql, L as perScope, M as userActive, N as globalRoleSource, O as instancesActive, P as currentKeyExpr, R as raiseSql, S as sourceIdOf, T as sourcesKeep, U as activeInstancesSql, V as storedTenant, W as activeMembershipSql, _ as memoWriteSql, b as scopedBody, c as memoUserSql, d as disabledColumn, f as functionBody, g as memoHitList, h as memberColumn, i as interactiveAllowsSql, k as keyTenantLine, l as claimKeptLines, n as delegatedGlobalSql, o as interactiveSessionSql, p as hasBody, r as interactiveAllowsCall, s as memoGlobalUserSql, u as claimTenant, v as memoizedSetofSql, w as sourcesBodyOf, x as sourceFilters, y as memoizes, z as roleReadersSql } from "./interactive-only-CylKSukS.js";
18
+ import { B as rolesTableScope, C as sourceRows, E as sqlBody, F as customRolesSql, G as activeRowSql, H as trustedReaderGrants, I as hasCustomRoleChecksFor, J as grantPermissionSql, K as activeUserSql, L as perScope, M as userActive, N as globalRoleSource, O as instancesActive, P as currentKeyExpr, R as raiseSql, S as sourceIdOf, T as sourcesKeep, U as activeInstancesSql, V as storedTenant, W as activeMembershipSql, _ as memoWriteSql, b as scopedBody, c as memoUserSql, d as disabledColumn, f as functionBody, g as memoHitList, h as memberColumn, i as interactiveAllowsSql, k as keyTenantLine, l as claimKeptLines, n as delegatedGlobalSql, o as interactiveSessionSql, p as hasBody, r as interactiveAllowsCall, s as memoGlobalUserSql, u as claimTenant, v as memoizedSetofSql, w as sourcesBodyOf, x as sourceFilters, y as memoizes, z as roleReadersSql } from "./interactive-only-ad2JJYk8.js";
19
19
  import { S as scopeTable, _ as memberRoleOf, a as graphSqlText, b as restrictedHelper, d as linkHelper, f as memberForHelper, g as memberOfHelper, h as memberIdsHelper, i as graphSqlName, n as CLOSURE, o as hasMemberFor, p as memberForSources, r as graphHelper, s as hasMemberOf, u as isTeamScope, v as permittedForHelper, x as scopeSources, y as permittedIdsHelper } from "./names-DwGleRKB.js";
20
20
  import { n as byKey, t as byCodeUnit } from "./compare-8SNJN-9U.js";
21
21
  import { createHash } from "node:crypto";
@@ -1889,7 +1889,7 @@ function memberForFunction(ctx, scope, type) {
1889
1889
  const types = team ? "uuid, text" : "uuid";
1890
1890
  return `${team ? `drop function if exists ${fn}(uuid);\n` : ""}create or replace function ${fn}(p_user uuid${team ? ", p_active text default null" : ""})
1891
1891
  returns setof ${type}
1892
- ${functionBody(body)}
1892
+ ${functionBody(body, false, false, true)}
1893
1893
  revoke execute on function ${fn}(${types}) from public, anon, authenticated;
1894
1894
  ${authAdminGrants([`grant usage on schema ${quoteIdent(helperSchema(ctx))} to supabase_auth_admin;`, `grant execute on function ${fn}(${types}) to supabase_auth_admin;`])}`;
1895
1895
  }
@@ -1946,7 +1946,7 @@ function memberOfFunction(ctx, scope, type) {
1946
1946
  returns setof ${type}
1947
1947
  ${functionBody(sqlBody(` select m.id
1948
1948
  from ${qualified(ctx, memberForHelper(scope))}(p_user) as m(id)
1949
- where p_user = ${subjectIdSql(ctx)}`))}
1949
+ where p_user = ${subjectIdSql(ctx)}`), false, false, true)}
1950
1950
  revoke execute on function ${fn}(uuid) from public, anon;
1951
1951
  grant execute on function ${fn}(uuid) to authenticated;`;
1952
1952
  }
@@ -3272,7 +3272,7 @@ function heldSql(at, effect) {
3272
3272
  function keysFunction(fn, params, body, access, parallelSafe) {
3273
3273
  return `create or replace function ${fn}(${params})
3274
3274
  returns setof text
3275
- ${functionBody(body, parallelSafe).replace("set search_path = ''", "set search_path = ''\nset jit = off")}
3275
+ ${functionBody(body, parallelSafe, false, true).replace("set search_path = ''", "set search_path = ''\nset jit = off")}
3276
3276
  ${access}`;
3277
3277
  }
3278
3278
  /**
@@ -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-C_Lnc8Ec.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-CaKNUxdc.js";
2
2
  import { a as OperationInput, t as Operation } from "../operations-DaEoGpMV.js";
3
- import { a as PermDock } from "../permdock-CHU1LZGq.js";
3
+ import { a as PermDock } from "../permdock-NJ4-pCZy.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-DuM3k5Ao.js";
6
- import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-CdaSVKrt.js";
5
+ import { D as Policy, N as PolicyVocabulary, Or as Principal, rn as Snapshot } from "../policy-types-CRWqx8qf.js";
6
+ import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-CQSxXotl.js";
7
7
  import { RequestMiddleware, RequestMiddlewareAfterServer, createMiddleware } from "@tanstack/react-start";
8
8
  type TanStackStartPermDockOptions<TUser = unknown> = FetchAdapterOptions<Request, TUser>;
9
9
  /**
@@ -1,5 +1,5 @@
1
1
  import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-DPEAu_jM.js";
2
- import { t as fetchAdapter } from "../fetch-adapter-DXgza6EM.js";
2
+ import { t as fetchAdapter } from "../fetch-adapter-dmABnF7F.js";
3
3
  import { createMiddleware } from "@tanstack/react-start";
4
4
  // src/tanstack-start/create.ts
5
5
  function createPermDock(policy, options) {
@@ -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-BwQvlpS4.js";
4
- import { r as compileGrants } from "./compile-EtZv2wc0.js";
5
- import { i as buildContext, n as isRefusal, t as generateOptions } from "./generate-options-BFAvlJKQ.js";
3
+ import { i as tableNames } from "./tables-C-DzDqKb.js";
4
+ import { r as compileGrants } from "./compile-7tf8hHlu.js";
5
+ import { i as buildContext, n as isRefusal, t as generateOptions } from "./generate-options-RvPqyMWE.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-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-D-SLCp4I.js";
5
- import { a as PermDock } from "../permdock-CHU1LZGq.js";
1
+ import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal, ir as Decision, qt as Instant } from "../policy-types-CRWqx8qf.js";
2
+ import { m as ApprovalStore } from "../types-BdghnYGo.js";
3
+ import { a as ProblemDetails, t as ApprovalHint } from "../errors-C35fh_2K.js";
4
+ import { t as InstanceOptions } from "../instance-options-CUNLusL6.js";
5
+ import { a as PermDock } from "../permdock-NJ4-pCZy.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,6 +1,6 @@
1
1
  import { l as storedApprovalToken, s as resumeDecision } from "../helpers-COh0lLc1.js";
2
- import { u as withApp } from "../permdock-DZmr2kJw.js";
3
- import { n as resolveOrNull, t as buildInstance } from "../build-instance-CZg_Bf45.js";
2
+ import { u as withApp } from "../permdock-CbavFN6u.js";
3
+ import { n as resolveOrNull, t as buildInstance } from "../build-instance-BGpABVbM.js";
4
4
  import { t as compact } from "../compact-C4LFuqbW.js";
5
5
  import { n as resourceRef } from "../resource-ref-BiQtFK-I.js";
6
6
  import { r as isSubject } from "../subject-DkxY-AhF.js";
@@ -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-_Lofwt2K.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-BOWoKYve.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 +1 @@
1
- export { r as policyMatrix, t as testOrmParity, n as testRlsParity } from "../core-s_TCdJ6G.js";
1
+ export { r as policyMatrix, t as testOrmParity, n as testRlsParity } from "../core-BFR-V5CL.js";
@@ -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-DuM3k5Ao.js";
4
- import { r as SubjectRecord } from "../../subject-cache-Bn4oJY_R.js";
5
- import { i as SupabaseRpcClient } from "../../postgrest-B1bTbVE4.js";
3
+ import { rt as MemberEntry } from "../../policy-types-CRWqx8qf.js";
4
+ import { r as SubjectRecord } from "../../subject-cache-1EtpGx3y.js";
5
+ import { i as SupabaseRpcClient } from "../../postgrest-BGYDQhG1.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>>;
@@ -1,32 +1,32 @@
1
- import { Ar as Subject, Ct as WhereCompiler, D as Policy, Dr as Membership, G as CredentialVerifier, Or as Principal, X as DecisionSink, Y as DecisionProvider, Z as EntitlementSource, _t as TokenSigner, bn as DeliveryChannel, ct as RelationSource, it as MembershipSource, lt as SettingsSource, mt as SubjectResolver, nt as LimitStore, q as CustomRoleSource, rn as Snapshot, ut as SnapshotSource, vt as TokenVerifier } from "../policy-types-DuM3k5Ao.js";
2
- 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-_Lofwt2K.js";
1
+ import { Ar as Subject, Ct as WhereCompiler, D as Policy, Dr as Membership, G as CredentialVerifier, Or as Principal, X as DecisionSink, Y as DecisionProvider, Z as EntitlementSource, _t as TokenSigner, bn as DeliveryChannel, ct as RelationSource, it as MembershipSource, lt as SettingsSource, mt as SubjectResolver, nt as LimitStore, q as CustomRoleSource, rn as Snapshot, ut as SnapshotSource, vt as TokenVerifier } from "../policy-types-CRWqx8qf.js";
2
+ 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-BOWoKYve.js";
3
3
  import { A as ResourceInit, C as InferPermissionTree, r as Role, w as Permission } from "../vocabulary-DHfKPIC5.js";
4
4
  import { l as OperationLookup, n as OperationCoverageOptions } from "../coverage-AOeWiQ7Z.js";
5
- import { dt as LegacyCheck } from "../index-Bb2sZq1K.js";
6
- import { C as Limits, D as InstanceCache, a as PermDock, g as PrincipalIdentity, u as SnapshotOptions, v as PrincipalSource, z as ApprovalPolicySource } from "../permdock-CHU1LZGq.js";
7
- import { i as Seeds } from "../seeds-BZMPfWcC.js";
5
+ import { dt as LegacyCheck } from "../index-B1hyWi7O.js";
6
+ import { C as Limits, D as InstanceCache, a as PermDock, g as PrincipalIdentity, u as SnapshotOptions, v as PrincipalSource, z as ApprovalPolicySource } from "../permdock-NJ4-pCZy.js";
7
+ import { i as Seeds } from "../seeds-K00R0810.js";
8
8
  import { t as SqlQuery } from "../sql-BYYNi1lu.js";
9
- import { a as ApprovalDelegationSource, m as ApprovalStore } from "../types-BGN3coSe.js";
9
+ import { a as ApprovalDelegationSource, m as ApprovalStore } from "../types-BdghnYGo.js";
10
10
  import { n as RevocationFeed } from "../revocations-ku_f2d2y.js";
11
11
  import { a as SaasProject } from "../permissions-UyQD5nRN.js";
12
- import { n as saasPolicy } from "../policy-BoUbJ2c0.js";
13
- import { c as ModelMap, t as AgentPermDock, u as ToolMap } from "../create-D12I1Vkl.js";
14
- import { t as CloudApproverOptions } from "../types-BwjOhlgx.js";
15
- import { c as AccessReviewStore } from "../types-CKwI6AT4.js";
12
+ import { n as saasPolicy } from "../policy-BlOumPY5.js";
13
+ import { c as ModelMap, t as AgentPermDock, u as ToolMap } from "../create-BTthKNP0.js";
14
+ import { t as CloudApproverOptions } from "../types-XhEnMpL6.js";
15
+ import { c as AccessReviewStore } from "../types-CzAFVtMz.js";
16
16
  import { t as supabaseMembershipsBudget } from "../budget-5LJ8kfZk.js";
17
- import { R as IdempotencyStore } from "../index-DY1aJ-K1.js";
18
- import { g as SetQueue, l as ReplayStore } from "../types-Cvfe-G_N.js";
19
- import { S as SsfStreamStore } from "../index-DBBRSw6r.js";
20
- import { s as PolicySource } from "../hosted-DZgmEG4b.js";
21
- import { l as VersionStore, n as SubjectCache, s as VersionCache } from "../subject-cache-Bn4oJY_R.js";
22
- import { r as SnapshotStorage } from "../types-CM5GwxiJ.js";
23
- import { a as AutomationSource, t as Automation } from "../automation-C7WH5XcZ.js";
24
- import { s as SupportSessionSource } from "../index-Cfg0ED9K.js";
25
- import { n as ApprovalWaiter } from "../waiter-DdwtUSzB.js";
26
- import { c as DeliveryTransport, g as TransportMessages } from "../types-D3GI2B9O.js";
27
- import { x as DirectoryStore } from "../index-CAE_Z53Y.js";
17
+ import { R as IdempotencyStore } from "../index-p5y3whIg.js";
18
+ import { g as SetQueue, l as ReplayStore } from "../types-C1jxMZ4q.js";
19
+ import { S as SsfStreamStore } from "../index-DYvFRQle.js";
20
+ import { s as PolicySource } from "../hosted-Cl7q35D-.js";
21
+ import { l as VersionStore, n as SubjectCache, s as VersionCache } from "../subject-cache-1EtpGx3y.js";
22
+ import { r as SnapshotStorage } from "../types-CAGo84uV.js";
23
+ import { a as AutomationSource, t as Automation } from "../automation-DdarCGcn.js";
24
+ import { s as SupportSessionSource } from "../index-BtPvYUww.js";
25
+ import { n as ApprovalWaiter } from "../waiter-CyF-YowB.js";
26
+ import { c as DeliveryTransport, g as TransportMessages } from "../types-C2GmBHtC.js";
27
+ import { x as DirectoryStore } from "../index-L6lt50lg.js";
28
28
  import { r as SupabaseHookManifest } from "../manifest-BwhZ1s5b.js";
29
- import { a as ProblemDetails } from "../errors-BliKrfmP.js";
29
+ import { a as ProblemDetails } from "../errors-C35fh_2K.js";
30
30
  import { expectTypeOf } from "vitest";
31
31
  /** `policyMatrix` under Vitest: one test per cell, plus the exhaustive check. */
32
32
  export declare function describePolicy<TSubject>(policy: Policy, config: DescribePolicyConfig<TSubject>): void;
@@ -1,11 +1,11 @@
1
- import { i as policyMatrixLayout, n as testRlsParity, r as policyMatrix, t as testOrmParity } from "../core-s_TCdJ6G.js";
2
- import { p as clientBundle, t as getPermDock } from "../permdock-DZmr2kJw.js";
1
+ import { i as policyMatrixLayout, n as testRlsParity, r as policyMatrix, t as testOrmParity } from "../core-BFR-V5CL.js";
2
+ import { p as clientBundle, t as getPermDock } from "../permdock-CbavFN6u.js";
3
3
  import { t as fromSnapshot } from "../from-snapshot-DZ4D2sLa.js";
4
4
  import { n as parseSnapshot } from "../snapshot-Dzi4LR6n.js";
5
5
  import { t as operationCoverage } from "../coverage-C3jVYC9Y.js";
6
- import { A as memoryCustomRoleSource, D as approvalPoliciesFor, d as snapshotFor } from "../src-CYKqpYUM.js";
7
- import { C as saasOrg, E as saasSeed, S as saasMemberships, a as saasProject, g as verifySaasSession, h as signSaasToken, k as saasPolicy, t as saasDoc, w as saasPrincipal, x as saasCustomRoles } from "../saas-iXqf78G8.js";
8
- import { i as saasPermissions } from "../permissions-DUmypTlO.js";
6
+ import { A as memoryCustomRoleSource, D as approvalPoliciesFor, d as snapshotFor } from "../src-10d_jun2.js";
7
+ import { C as saasOrg, E as saasSeed, S as saasMemberships, a as saasProject, g as verifySaasSession, h as signSaasToken, k as saasPolicy, t as saasDoc, w as saasPrincipal, x as saasCustomRoles } from "../saas-CHviJgF2.js";
8
+ import { i as saasPermissions } from "../permissions-BPYOb5OB.js";
9
9
  import { c as quoteSqlTable, o as quoteSqlIdent } from "../sql-T4GaBh9X.js";
10
10
  import { o as resolveApproval } from "../helpers-COh0lLc1.js";
11
11
  import { c as problemFromDecision } from "../problem-BZB7zPC7.js";
@@ -1,7 +1,7 @@
1
1
  import { a as SaasProject, c as saasPlans, i as SaasFolderSchema, l as saasRoles, n as SaasDocSchema, o as SaasProjectSchema, r as SaasFolder, s as saasPermissions, t as SaasDoc, u as saasTenantRoleNames } from "../../permissions-UyQD5nRN.js";
2
- import { n as saasPolicy, t as SAAS_API_KEY_LIMIT } from "../../policy-BoUbJ2c0.js";
3
- import { Ar as Subject, Dr as Membership, Or as Principal, Sr as CustomRole, ct as RelationSource, nt as LimitStore, qt as Instant, vr as Actor, wr as Delegation } from "../../policy-types-DuM3k5Ao.js";
4
- import { o as PermDockOptions } from "../../permdock-CHU1LZGq.js";
2
+ import { n as saasPolicy, t as SAAS_API_KEY_LIMIT } from "../../policy-BlOumPY5.js";
3
+ import { Ar as Subject, Dr as Membership, Or as Principal, Sr as CustomRole, ct as RelationSource, nt as LimitStore, qt as Instant, vr as Actor, wr as Delegation } from "../../policy-types-CRWqx8qf.js";
4
+ import { o as PermDockOptions } from "../../permdock-NJ4-pCZy.js";
5
5
  import { w as Permission } from "../../vocabulary-DHfKPIC5.js";
6
6
  import { StandardSchemaV1 } from "@standard-schema/spec";
7
7
  type FieldKind = "string" | "boolean" | "nullable-string";
@@ -1,3 +1,3 @@
1
- import { a as saasPlans, c as rowSchema, i as saasPermissions, n as SaasFolderSchema, o as saasRoles, r as SaasProjectSchema, s as saasTenantRoleNames, t as SaasDocSchema } from "../../permissions-DUmypTlO.js";
2
- import { C as saasOrg, D as saasUsers, E as saasSeed, O as SAAS_API_KEY_LIMIT, S as saasMemberships, T as saasRelations, _ as verifySaasToken, a as saasProject, b as SAAS_EXPIRED_AT, c as saasUser, d as saasIssuer, f as saasJwks, g as verifySaasSession, h as signSaasToken, i as saasLimitStore, k as saasPolicy, l as SAAS_TOKEN_TTL_SECONDS, m as saasPublicJwk, n as saasFolder, o as saasScenarioOptions, p as saasPrivateJwk, r as saasFolderScenarios, s as saasScenarios, t as saasDoc, u as saasAudience, v as saasSchemaSql, w as saasPrincipal, x as saasCustomRoles, y as saasSeedSql } from "../../saas-iXqf78G8.js";
1
+ import { a as saasPlans, c as rowSchema, i as saasPermissions, n as SaasFolderSchema, o as saasRoles, r as SaasProjectSchema, s as saasTenantRoleNames, t as SaasDocSchema } from "../../permissions-BPYOb5OB.js";
2
+ import { C as saasOrg, D as saasUsers, E as saasSeed, O as SAAS_API_KEY_LIMIT, S as saasMemberships, T as saasRelations, _ as verifySaasToken, a as saasProject, b as SAAS_EXPIRED_AT, c as saasUser, d as saasIssuer, f as saasJwks, g as verifySaasSession, h as signSaasToken, i as saasLimitStore, k as saasPolicy, l as SAAS_TOKEN_TTL_SECONDS, m as saasPublicJwk, n as saasFolder, o as saasScenarioOptions, p as saasPrivateJwk, r as saasFolderScenarios, s as saasScenarios, t as saasDoc, u as saasAudience, v as saasSchemaSql, w as saasPrincipal, x as saasCustomRoles, y as saasSeedSql } from "../../saas-CHviJgF2.js";
3
3
  export { SAAS_API_KEY_LIMIT, SAAS_EXPIRED_AT, SAAS_TOKEN_TTL_SECONDS, SaasDocSchema, SaasFolderSchema, SaasProjectSchema, rowSchema, saasAudience, saasCustomRoles, saasDoc, saasFolder, saasFolderScenarios, saasIssuer, saasJwks, saasLimitStore, saasMemberships, saasOrg, saasPermissions, saasPlans, saasPolicy, saasPrincipal, saasPrivateJwk, saasProject, saasPublicJwk, saasRelations, saasRoles, saasScenarioOptions, saasScenarios, saasSchemaSql, saasSeed, saasSeedSql, saasTenantRoleNames, saasUser, saasUsers, signSaasToken, verifySaasSession, verifySaasToken };
@@ -1 +1 @@
1
- export { t as SaasDocSchema, n as SaasFolderSchema, r as SaasProjectSchema, i as saasPermissions, a as saasPlans, o as saasRoles, s as saasTenantRoleNames } from "../../permissions-DUmypTlO.js";
1
+ export { t as SaasDocSchema, n as SaasFolderSchema, r as SaasProjectSchema, i as saasPermissions, a as saasPlans, o as saasRoles, s as saasTenantRoleNames } from "../../permissions-BPYOb5OB.js";
@@ -1,10 +1,10 @@
1
- import { a as PermDock } from "../permdock-CHU1LZGq.js";
1
+ import { a as PermDock } from "../permdock-NJ4-pCZy.js";
2
2
  import { w as Permission } from "../vocabulary-DHfKPIC5.js";
3
- import { D as Policy, Or as Principal } from "../policy-types-DuM3k5Ao.js";
3
+ import { D as Policy, Or as Principal } from "../policy-types-CRWqx8qf.js";
4
4
  import { n as RevocationFeed } from "../revocations-ku_f2d2y.js";
5
- import { t as ServerAdapterOptions } from "../bind-Caffleoh.js";
6
- import { D as ConnectionOptions, T as Connection, i as OpenApiHooks } from "../server-types-C_Lnc8Ec.js";
7
- import { t as RpcProtectOptions } from "../rpc-CL8lrV5Y.js";
5
+ import { t as ServerAdapterOptions } from "../bind-CLvD4iLc.js";
6
+ import { D as ConnectionOptions, T as Connection, i as OpenApiHooks } from "../server-types-CaKNUxdc.js";
7
+ import { t as RpcProtectOptions } from "../rpc-CqKQCBPN.js";
8
8
  import { AnyTRPCMiddlewareFunction } from "@trpc/server";
9
9
  type TrpcMiddlewareOpts<TCtx = object, TInput = unknown> = {
10
10
  readonly ctx: TCtx;
@@ -1,7 +1,7 @@
1
- import { n as attached } from "../bind-2Cuy29LS.js";
1
+ import { n as attached } from "../bind-BNYcJ1D9.js";
2
2
  import { o as problemMessage } from "../http-C9jDw_bZ.js";
3
3
  import { t as problemFromError } from "../map-error-DYQbf-3Q.js";
4
- import { i as rpcCode, n as guardStream, r as problemBody, t as bindRpcKernel } from "../rpc-CoClxzcc.js";
4
+ import { i as rpcCode, n as guardStream, r as problemBody, t as bindRpcKernel } from "../rpc-RDBrKR7N.js";
5
5
  import { i as isAsyncIterable, o as reloadAfter } from "../stream-DdF94h7T.js";
6
6
  import { r as permissionList } from "../decide-set-CgNcE6pP.js";
7
7
  import { TRPCError, isTrackedEnvelope } from "@trpc/server";
@@ -1,6 +1,6 @@
1
1
  import { U as POLICY_SCOPES, n as PlanTree, w as Permission } from "./vocabulary-DHfKPIC5.js";
2
2
  import { o as OperationMap } from "./operations-DaEoGpMV.js";
3
- import { N as PolicyVocabulary, Nn as ScopeNames } from "./policy-types-DuM3k5Ao.js";
3
+ import { N as PolicyVocabulary, Nn as ScopeNames } from "./policy-types-CRWqx8qf.js";
4
4
  /** Recursion guard: a tree nests resources at most this many levels deep. */
5
5
  type Depth = [never, 0, 1, 2, 3, 4, 5, 6, 7];
6
6
  /** The literal string keys of `T`, without an index signature. */
@@ -1,7 +1,7 @@
1
- import { n as ClientStoreOptions } from "./store-core-D5-cqb6z.js";
2
- import { Jt as ClientBundle, ir as Decision, rn as Snapshot, rr as ApprovalRequiredDecision, ur as GrantedDecision, vt as TokenVerifier } from "./policy-types-DuM3k5Ao.js";
3
- import { n as DescribeMessages } from "./describe-DEoWvk00.js";
4
- import { s as RowData } from "./permdock-CHU1LZGq.js";
1
+ import { n as ClientStoreOptions } from "./store-core-fRqdlrep.js";
2
+ import { Jt as ClientBundle, ir as Decision, rn as Snapshot, rr as ApprovalRequiredDecision, ur as GrantedDecision, vt as TokenVerifier } from "./policy-types-CRWqx8qf.js";
3
+ import { n as DescribeMessages } from "./describe-DLGEciCs.js";
4
+ import { s as RowData } from "./permdock-NJ4-pCZy.js";
5
5
  import { w as Permission } from "./vocabulary-DHfKPIC5.js";
6
6
  import { ReactNode } from "react";
7
7
  type PermDockProviderProps = ({
@@ -1,5 +1,5 @@
1
1
  import { K as AppData } from "./vocabulary-DHfKPIC5.js";
2
- import { Ar as Subject, Dr as Membership, Fn as Approver, Jn as RelationGrantee, Nr as AdapterId, a as ApprovalMode, c as ApprovalStage, i as ApprovalFallback, kn as WireDelegation, n as ApprovalCombine, qt as Instant } from "./policy-types-DuM3k5Ao.js";
2
+ import { Ar as Subject, Dr as Membership, Fn as Approver, Jn as RelationGrantee, Nr as AdapterId, a as ApprovalMode, c as ApprovalStage, i as ApprovalFallback, kn as WireDelegation, n as ApprovalCombine, qt as Instant } from "./policy-types-CRWqx8qf.js";
3
3
  type ApprovalStatus = "pending" | "approved" | "rejected" | "expired";
4
4
  type ApprovalApprovers = {
5
5
  /** Under `combine: 'any'` (the default). */
@@ -1,5 +1,5 @@
1
- import { m as ApprovalStore } from "./types-BGN3coSe.js";
2
- import { $ as JwtClaims, Ar as Subject, Or as Principal, gn as AuthEvent, gt as TokenFailureCause, it as MembershipSource, vr as Actor, vt as TokenVerifier } from "./policy-types-DuM3k5Ao.js";
1
+ import { m as ApprovalStore } from "./types-BdghnYGo.js";
2
+ import { $ as JwtClaims, Ar as Subject, Or as Principal, gn as AuthEvent, gt as TokenFailureCause, it as MembershipSource, vr as Actor, vt as TokenVerifier } from "./policy-types-CRWqx8qf.js";
3
3
  import { n as RevocationFeed } from "./revocations-ku_f2d2y.js";
4
4
  import { t as ClaimsMap } from "./claims-map-CLKQWxJG.js";
5
5
  import { t as ClientNames } from "./clients-DGcyFDCc.js";
@@ -1,6 +1,6 @@
1
- import { Sn as DeliveryFailureCause, bn as DeliveryChannel, ur as GrantedDecision, wn as EmailCategory, xn as DeliveryEvent } from "./policy-types-DuM3k5Ao.js";
2
- import { s as CloudEvent } from "./sink-CoMI_OVw.js";
3
- import { t as ApprovalPrompt } from "./approval-prompt-BKxaKtby.js";
1
+ import { Sn as DeliveryFailureCause, bn as DeliveryChannel, ur as GrantedDecision, wn as EmailCategory, xn as DeliveryEvent } from "./policy-types-CRWqx8qf.js";
2
+ import { s as CloudEvent } from "./sink-CCirKrLv.js";
3
+ import { t as ApprovalPrompt } from "./approval-prompt-DCC4jp2s.js";
4
4
  /**
5
5
  * Who a delivery goes to. `{ principal }` names an app principal and the
6
6
  * address the server loaded for it on `channel`. `{ address }` alone is an
@@ -1,7 +1,7 @@
1
- import { n as ClientStoreOptions } from "./store-core-D5-cqb6z.js";
2
- import { n as DescribeMessages } from "./describe-DEoWvk00.js";
3
- import { rn as Snapshot, ut as SnapshotSource, vt as TokenVerifier } from "./policy-types-DuM3k5Ao.js";
4
- import { t as PermDockDefaults } from "./types-iwSmOTcK.js";
1
+ import { n as ClientStoreOptions } from "./store-core-fRqdlrep.js";
2
+ import { n as DescribeMessages } from "./describe-DLGEciCs.js";
3
+ import { rn as Snapshot, ut as SnapshotSource, vt as TokenVerifier } from "./policy-types-CRWqx8qf.js";
4
+ import { t as PermDockDefaults } from "./types-BGDafbIK.js";
5
5
  import { ReactNode } from "react";
6
6
  type SnapshotStorage = {
7
7
  /** Names the implementation in errors and events. */
@@ -1,5 +1,5 @@
1
- import { N as PolicyVocabulary, yn as DecisionEvent } from "./policy-types-DuM3k5Ao.js";
2
- import { a as PermDock } from "./permdock-CHU1LZGq.js";
1
+ import { N as PolicyVocabulary, yn as DecisionEvent } from "./policy-types-CRWqx8qf.js";
2
+ import { a as PermDock } from "./permdock-NJ4-pCZy.js";
3
3
  declare const GENAI_SEMCONV_PIN = "1.37.0";
4
4
  declare const GEN_AI_TOOL_NAME = "gen_ai.tool.name";
5
5
  declare const GEN_AI_TOOL_CALL_ID = "gen_ai.tool.call.id";
@@ -1,4 +1,4 @@
1
- import { Fn as Approver } from "./policy-types-DuM3k5Ao.js";
1
+ import { Fn as Approver } from "./policy-types-CRWqx8qf.js";
2
2
  type AccessReviewStatus = "open" | "closed";
3
3
  type AccessReviewItemStatus = "pending" | "kept" | "revoked";
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { P as PermissionCheck, a as PermDock, f as WhereOptions, l as SimulateOptions, n as DecideOptions, o as PermDockOptions, p as WhereResult, r as DeriveOptions } from "./permdock-CHU1LZGq.js";
2
- import { Ar as Subject, D as Policy, Dr as Membership, N as PolicyVocabulary, Or as Principal, ir as Decision, lr as ExplainedDecision } from "./policy-types-DuM3k5Ao.js";
1
+ import { P as PermissionCheck, a as PermDock, f as WhereOptions, l as SimulateOptions, n as DecideOptions, o as PermDockOptions, p as WhereResult, r as DeriveOptions } from "./permdock-NJ4-pCZy.js";
2
+ import { Ar as Subject, D as Policy, Dr as Membership, N as PolicyVocabulary, Or as Principal, ir as Decision, lr as ExplainedDecision } from "./policy-types-CRWqx8qf.js";
3
3
  import { E as PermissionTree, w as Permission } from "./vocabulary-DHfKPIC5.js";
4
4
  type RemotePdpAuth = {
5
5
  readonly bearer: string | (() => string | Promise<string>);
@@ -1,8 +1,8 @@
1
- import { m as ApprovalStore, u as ApprovalRequest } from "./types-BGN3coSe.js";
1
+ import { m as ApprovalStore, u as ApprovalRequest } from "./types-BdghnYGo.js";
2
2
  import { a as CatalogDocument } from "./types-CbJ5mxXv.js";
3
- import { s as PolicySource } from "./hosted-DZgmEG4b.js";
4
- import { Ar as Subject, X as DecisionSink, _t as TokenSigner, ut as SnapshotSource, vt as TokenVerifier } from "./policy-types-DuM3k5Ao.js";
5
- import { a as CatalogFinding } from "./sink-CoMI_OVw.js";
3
+ import { s as PolicySource } from "./hosted-Cl7q35D-.js";
4
+ import { Ar as Subject, X as DecisionSink, _t as TokenSigner, ut as SnapshotSource, vt as TokenVerifier } from "./policy-types-CRWqx8qf.js";
5
+ import { a as CatalogFinding } from "./sink-CCirKrLv.js";
6
6
  type CloudEndpointOptions = {
7
7
  readonly url?: string;
8
8
  readonly environment?: string;
@@ -1,8 +1,8 @@
1
- import { Jt as ClientBundle, ir as Decision, rn as Snapshot, rr as ApprovalRequiredDecision, ur as GrantedDecision, vt as TokenVerifier } from "./policy-types-DuM3k5Ao.js";
1
+ import { Jt as ClientBundle, ir as Decision, rn as Snapshot, rr as ApprovalRequiredDecision, ur as GrantedDecision, vt as TokenVerifier } from "./policy-types-CRWqx8qf.js";
2
2
  import { w as Permission } from "./vocabulary-DHfKPIC5.js";
3
- import { a as PermDock } from "./permdock-CHU1LZGq.js";
3
+ import { a as PermDock } from "./permdock-NJ4-pCZy.js";
4
4
  import { t as PermissionBoundaryState } from "./boundary-DJqHADKu.js";
5
- import { f as PermissionState, h as ProviderOptionsBase, m as ProtectedActionView, t as ClientStore, y as ActionResult } from "./store-core-D5-cqb6z.js";
5
+ import { f as PermissionState, h as ProviderOptionsBase, m as ProtectedActionView, t as ClientStore, y as ActionResult } from "./store-core-fRqdlrep.js";
6
6
  import { Snippet } from "svelte";
7
7
  import { Readable } from "svelte/store";
8
8
  /**
@@ -1,5 +1,5 @@
1
- import { i as Seeds } from "./seeds-BZMPfWcC.js";
2
- import { h as RoleThrough, m as RoleMap, s as SqlMembershipSource } from "./sources-Dp6FQ8np.js";
1
+ import { i as Seeds } from "./seeds-K00R0810.js";
2
+ import { h as RoleThrough, m as RoleMap, s as SqlMembershipSource } from "./sources-CD1OiqqK.js";
3
3
  /**
4
4
  * `permdock powersync generate` and `verify` input. Tables and memberships come
5
5
  * from `rls`.
@@ -1,4 +1,4 @@
1
- import { n as CollectConfig } from "./types-config-DYRoZ8Iw.js";
1
+ import { n as CollectConfig } from "./types-config-B3eAej9-.js";
2
2
  /**
3
3
  * 0 success, 1 failure, 2 usage or an action only a person can take (an input,
4
4
  * a confirmation, a login), 130 interrupted (SIGINT or a cancelled prompt), 143
@@ -1,4 +1,4 @@
1
- import { n as PermDockPluginOptions } from "../types-run-CeCrWO0v.js";
1
+ import { n as PermDockPluginOptions } from "../types-run-sP7yLp61.js";
2
2
  import { createUnplugin } from "unplugin";
3
3
  type CreateUnplugin = typeof createUnplugin<PermDockPluginOptions | undefined>;
4
4
  export declare const createPermDockUnplugin: ReturnType<CreateUnplugin>;
@@ -2,8 +2,8 @@ import { a as getResource } from "./permission-registry-DstT40VS.js";
2
2
  import { c as jsonSchemaOf } from "./catalog-doc-BX97oFAn.js";
3
3
  import { r as runCollect } from "./collect-Co-w8Eg2.js";
4
4
  import { f as usageResult } from "./errors-DgLOqc6j.js";
5
- import { t as DOCS_BASE } from "./manifest-DkHIGPoY.js";
6
- import { r as findingOf } from "./output-DNbj0_Yi.js";
5
+ import { t as DOCS_BASE } from "./manifest-DbJC_rXj.js";
6
+ import { r as findingOf } from "./output-DZS9QWHI.js";
7
7
  import { o as USAGE_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
8
8
  import { n as jiti, r as parseSync, t as createVisitor } from "./optional-CaQWp9HA.js";
9
9
  import { a as rel, r as listSourceFiles } from "./files-DAR51W3J.js";
@@ -0,0 +1 @@
1
+ export { t as runUsage } from "./usage-BiTJQNJO.js";
@@ -16,7 +16,7 @@ const usage = defineLeaf({
16
16
  }
17
17
  },
18
18
  async run(ctx, { flags }) {
19
- return (await import("./usage-wphGxzPQ.js")).runUsage({
19
+ return (await import("./usage-D7-bsLte.js")).runUsage({
20
20
  cwd: ctx.cwd,
21
21
  config: ctx.config,
22
22
  ignore: flags.ignore,
@@ -1,4 +1,4 @@
1
- import { a as ProblemDetails } from "./errors-BliKrfmP.js";
1
+ import { a as ProblemDetails } from "./errors-C35fh_2K.js";
2
2
  import { StandardSchemaV1 } from "@standard-schema/spec";
3
3
  /**
4
4
  * The base of every Problem Details `type` URI; defined here so a validation
@@ -1,21 +1,21 @@
1
1
  import { c as listPermissions, n as findPermission } from "./permission-registry-DstT40VS.js";
2
2
  import { o as hasConditionOp } from "./refs-Cix9Zjis.js";
3
- import { t as getPermDock } from "./permdock-DZmr2kJw.js";
4
- import { A as memoryCustomRoleSource, w as memoryRelationSource } from "./src-CYKqpYUM.js";
3
+ import { t as getPermDock } from "./permdock-CbavFN6u.js";
4
+ import { A as memoryCustomRoleSource, w as memoryRelationSource } from "./src-10d_jun2.js";
5
5
  import { a as describeError, f as usageResult, i as configError } from "./errors-DgLOqc6j.js";
6
6
  import { s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
7
7
  import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-3aUUP6Nx.js";
8
8
  import { r as pgConnector } from "./pg-DmS5ITHu.js";
9
9
  import { o as loadPolicyAt } from "./load-m7jmit3y.js";
10
- import { n as commandFor } from "./compile-EtZv2wc0.js";
10
+ import { n as commandFor } from "./compile-7tf8hHlu.js";
11
11
  import { r as isRecord } from "./compact-C4LFuqbW.js";
12
12
  import { n as policyRowConditionKeys } from "./row-conditions-BjARoFLU.js";
13
13
  import { c as rootScope, d as scopeList, o as normalizeMemberships } from "./scopes-B-KX9EI8.js";
14
14
  import { c as helperTablePoliciesFromRows, l as rowConditionMessage, n as HELPER_TABLE_POLICIES_SQL } from "./helper-calls-DN1PJcNY.js";
15
15
  import { a as quoteIdent, c as quoteTable, o as quoteLiteral, s as quoteQualified } from "./quote-LNaBdCGA.js";
16
- import { et as graphPlan, i as tableNames, r as tableNameOf } from "./tables-BwQvlpS4.js";
16
+ import { et as graphPlan, i as tableNames, r as tableNameOf } from "./tables-C-DzDqKb.js";
17
17
  import { s as viewName, t as FIELD_VIEWS } from "./fields-CKX-qjWb.js";
18
- import { t as DOCS_BASE } from "./manifest-DkHIGPoY.js";
18
+ import { t as DOCS_BASE } from "./manifest-DbJC_rXj.js";
19
19
  import { C as membershipsClaim, g as customRoleScope } from "./evaluate-DNz6wMYv.js";
20
20
  import { n as defaultSqlCommand, t as SQL_IDENT } from "./sql-T4GaBh9X.js";
21
21
  import "./budget-BH81q2cj.js";
@@ -360,12 +360,16 @@ function memoryVersionCache(options = {}) {
360
360
  if (oldest.done !== true) entries.delete(oldest.value);
361
361
  }
362
362
  };
363
- const remember = (id, version, at) => {
364
- if (remote === void 0) return;
363
+ const background = (write) => {
365
364
  try {
366
- Promise.resolve(remote.set(id, version, at)).catch(() => void 0);
365
+ const pending = Promise.resolve(write()).catch(() => void 0);
366
+ options.waitUntil?.(pending);
367
367
  } catch {}
368
368
  };
369
+ const remember = (id, version, at) => {
370
+ if (remote === void 0) return;
371
+ background(() => remote.set(id, version, at));
372
+ };
369
373
  const fromStore = async (id, at, read, dated) => {
370
374
  try {
371
375
  const known = await remote?.get(id);
@@ -456,9 +460,7 @@ function memoryVersionCache(options = {}) {
456
460
  counts.evictions += 1;
457
461
  entries.delete(principal);
458
462
  inFlight.delete(principal);
459
- if (remote !== void 0) try {
460
- Promise.resolve(remote.delete(principal)).catch(() => void 0);
461
- } catch {}
463
+ if (remote !== void 0) background(() => remote.delete(principal));
462
464
  },
463
465
  stats() {
464
466
  return {