permdock 0.19.0 → 0.20.1

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 (249) hide show
  1. package/dist/a2a/index.d.ts +4 -4
  2. package/dist/a2a/index.js +3 -3
  3. package/dist/{adoption-scan-C_VQ-J2f.js → adoption-scan-BTG9Noyy.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/{approval-policies-CYqdqAob.d.ts → approval-policies-CKlByf5o.d.ts} +1 -1
  9. package/dist/{approval-prompt-BxYbwOAU.d.ts → approval-prompt-CQFiO1KE.d.ts} +1 -1
  10. package/dist/approvals/index.d.ts +3 -3
  11. package/dist/{arazzo-Dc969CA2.js → arazzo-CDXfX4u0.js} +1 -1
  12. package/dist/{arazzo-4vfaXj0U.js → arazzo-D4mKdaWI.js} +2 -2
  13. package/dist/astro/index.d.ts +4 -4
  14. package/dist/astro/index.js +1 -1
  15. package/dist/{audience-GCXRRAeZ.js → audience-BUonniPx.js} +1 -1
  16. package/dist/authzen/index.d.ts +5 -5
  17. package/dist/authzen/index.js +1 -1
  18. package/dist/{automation-BJiJT_Xr.d.ts → automation-CpOk7Tlu.d.ts} +1 -1
  19. package/dist/better-auth/index.d.ts +1 -1
  20. package/dist/better-auth/index.js +1 -1
  21. package/dist/better-supabase/index.d.ts +10 -10
  22. package/dist/better-supabase/index.js +5 -5
  23. package/dist/{bind-SpRxR213.d.ts → bind-CW7nsZ86.d.ts} +7 -7
  24. package/dist/{bind-BnKPWRrE.js → bind-gwEbe9hL.js} +3 -3
  25. package/dist/{build-instance-DrIbZVnm.js → build-instance-DaBdCRiz.js} +1 -1
  26. package/dist/{capability-Ci2S8Cdu.d.ts → capability-v2xZB7us.d.ts} +1 -1
  27. package/dist/{casbin-ChbpgfNR.js → casbin-BXlRcCdU.js} +1 -1
  28. package/dist/{casbin-C1TQqWkK.js → casbin-COUi09Ti.js} +1 -1
  29. package/dist/catalog/index.d.ts +4 -4
  30. package/dist/catalog/index.js +4 -4
  31. package/dist/{challenge-D57I5G1k.js → challenge-DbkpCx_v.js} +1 -1
  32. package/dist/chat/index.d.ts +1 -1
  33. package/dist/chat/index.js +1 -1
  34. package/dist/chat-sdk/index.d.ts +3 -3
  35. package/dist/claude-agent/index.d.ts +3 -3
  36. package/dist/claude-agent/index.js +2 -2
  37. package/dist/clerk/index.d.ts +2 -2
  38. package/dist/cli/bin.js +1 -1
  39. package/dist/cli/index.d.ts +4 -4
  40. package/dist/cli/index.js +2 -2
  41. package/dist/cloud/index.d.ts +8 -8
  42. package/dist/cloud/index.js +1 -1
  43. package/dist/{cloud-Dgj4FiEG.js → cloud-BW7JKfrF.js} +2 -2
  44. package/dist/{codemod-DN_fBt43.js → codemod-6CBQaT0x.js} +2 -2
  45. package/dist/{codemod-WWxwgM77.js → codemod-CR9EQBVd.js} +1 -1
  46. package/dist/compile/index.d.ts +1 -1
  47. package/dist/{compile-RaRUQhmD.d.ts → compile-DZftFfXc.d.ts} +2 -2
  48. package/dist/{completion-DnmUvCw0.js → completion-CYRlOJzv.js} +1 -1
  49. package/dist/{config-CmuEoob8.js → config-6iLK155o.js} +1 -1
  50. package/dist/{config-report-BVm8Dhbj.js → config-report-BLroaWCe.js} +1 -1
  51. package/dist/convex/index.d.ts +4 -4
  52. package/dist/convex/index.js +2 -2
  53. package/dist/{core-DNRWXyj4.d.ts → core-BOeGWbcR.d.ts} +2 -2
  54. package/dist/{core-ZIWZBi6-.js → core-BwVkrpsi.js} +3 -3
  55. package/dist/{create-BECB6fns.d.ts → create-BezeYFcT.d.ts} +6 -6
  56. package/dist/{create-CAZyXZFC.js → create-C0R8omeF.js} +3 -3
  57. package/dist/{create-CegYmYHu.js → create-DDUFG1ul.js} +3 -3
  58. package/dist/{create-0B_bjJc-.d.ts → create-DMCC5ZOi.d.ts} +7 -7
  59. package/dist/{create-DJ_5REgN.d.ts → create-DYSYYiLr.d.ts} +4 -4
  60. package/dist/delivery/index.d.ts +4 -4
  61. package/dist/delivery/index.js +1 -1
  62. package/dist/{denied-text-CF-2h8Vz.d.ts → denied-text-De8cw3MW.d.ts} +1 -1
  63. package/dist/{describe-DyN-HX6o.d.ts → describe-DibQM6g-.d.ts} +1 -1
  64. package/dist/{diff-BOU7sSnv.js → diff-Bd1-VCe5.js} +2 -2
  65. package/dist/{diff-BrmvcPXk.js → diff-DXRNcjpg.js} +1 -1
  66. package/dist/{doctor-BhhNMkU8.js → doctor-CJcS0Mrq.js} +68 -16
  67. package/dist/{doctor-CL1OigyD.js → doctor-DYTgibLC.js} +2 -2
  68. package/dist/drizzle/index.d.ts +3 -3
  69. package/dist/elysia/index.d.ts +4 -4
  70. package/dist/elysia/index.js +1 -1
  71. package/dist/{errors-POWcCXy7.d.ts → errors-OTE9u4Wk.d.ts} +1 -1
  72. package/dist/{evaluate-CrKkjgXS.js → evaluate-Dcq_U2TV.js} +2 -2
  73. package/dist/{evaluations--rkKhMqY.d.ts → evaluations-BgxEfPL7.d.ts} +3 -3
  74. package/dist/eve/index.d.ts +4 -4
  75. package/dist/eve/index.js +2 -2
  76. package/dist/express/index.d.ts +4 -4
  77. package/dist/express/index.js +1 -1
  78. package/dist/fastify/index.d.ts +4 -4
  79. package/dist/fastify/index.js +1 -1
  80. package/dist/{fetch-adapter-Bq4AB3W2.d.ts → fetch-adapter-DCQ4pZxf.d.ts} +2 -2
  81. package/dist/{fetch-adapter-Bm1iZolz.js → fetch-adapter-acq4dPX3.js} +1 -1
  82. package/dist/{fields-COvJbUva.js → fields-D_TfExiI.js} +1 -1
  83. package/dist/{gen-D0NqzeOP.js → gen-CH50v9VI.js} +1 -1
  84. package/dist/{gen-DonXr9Hg.js → gen-gv_WHBIG.js} +1 -1
  85. package/dist/h3/index.d.ts +4 -4
  86. package/dist/h3/index.js +2 -2
  87. package/dist/hono/index.d.ts +4 -4
  88. package/dist/hono/index.js +1 -1
  89. package/dist/{hosted-iOGBI_ER.js → hosted-C2Pmhy2x.js} +2 -2
  90. package/dist/{hosted-H1xp5Dfw.d.ts → hosted-yhyAuQkL.d.ts} +1 -1
  91. package/dist/{import-DNaFHm53.js → import-BlwuuZkr.js} +1 -1
  92. package/dist/{import-C8ffNykt.js → import-C2ExjVvv.js} +46 -2
  93. package/dist/{index-C2pmTzFx.d.ts → index--AwSBzJC.d.ts} +2 -2
  94. package/dist/{index-DLlWORcK.d.ts → index-B_I6N8Ju.d.ts} +4 -4
  95. package/dist/{index-B9-ZXNa-.d.ts → index-Bt37QovT.d.ts} +4 -4
  96. package/dist/{index-C5Tfpjex.d.ts → index-CLbGOPBr.d.ts} +1 -1
  97. package/dist/{index-DZnpRB0q.d.ts → index-CruReRkB.d.ts} +4 -4
  98. package/dist/{index-Cm6mHTZ-.d.ts → index-D7xGi1LS.d.ts} +16 -8
  99. package/dist/index.d.ts +16 -16
  100. package/dist/index.js +8 -8
  101. package/dist/{init-QfBfkrGu.js → init-B62H9Kyx.js} +1 -1
  102. package/dist/{init-4aRjat-S.js → init-CalppFAI.js} +3 -3
  103. package/dist/{instance-options-D6hyIKJF.d.ts → instance-options-VPsNQsTH.d.ts} +1 -1
  104. package/dist/{instance-snapshot-DXxcizAb.js → instance-snapshot-SX8zH_1t.js} +2 -2
  105. package/dist/jwt/index.d.ts +4 -4
  106. package/dist/{kernel-B2UCK36Z.js → kernel-_QEUOSU0.js} +4 -4
  107. package/dist/kysely/index.d.ts +3 -3
  108. package/dist/{login-Cg1la2yJ.js → login-MxQV1BLh.js} +3 -3
  109. package/dist/{login-lPtJIjbO.js → login-dDb_8muO.js} +1 -1
  110. package/dist/{manifest-CDhdXgf6.js → manifest-DvDzxhy6.js} +33 -33
  111. package/dist/mcp/index.d.ts +8 -8
  112. package/dist/mcp/index.js +3 -3
  113. package/dist/{migrate-BbY5-Khy.js → migrate-CkLHdwuH.js} +1 -1
  114. package/dist/nest/index.d.ts +4 -4
  115. package/dist/nest/index.js +1 -1
  116. package/dist/next/index.d.ts +10 -10
  117. package/dist/next/index.js +2 -2
  118. package/dist/next/plugin.d.ts +1 -1
  119. package/dist/node/index.d.ts +4 -4
  120. package/dist/node/index.js +1 -1
  121. package/dist/openai/index.d.ts +4 -4
  122. package/dist/openai/index.js +3 -3
  123. package/dist/openapi/index.d.ts +2 -2
  124. package/dist/{openapi-C3BIVLTd.js → openapi-BkGtE5kX.js} +2 -2
  125. package/dist/{openapi-Cr0B3p2h.js → openapi-DKePsnln.js} +2 -2
  126. package/dist/orpc/index.d.ts +5 -5
  127. package/dist/orpc/index.js +2 -2
  128. package/dist/otel/index.d.ts +3 -3
  129. package/dist/{output-DYq_o2dM.js → output-B2h-2g3F.js} +1 -1
  130. package/dist/{ownership-CrmMERZv.js → ownership-MGHa5vfX.js} +3 -2
  131. package/dist/{parse-local-manifest-CQjRmzrw.d.ts → parse-local-manifest-CE4tgFsj.d.ts} +1 -1
  132. package/dist/pdp/index.d.ts +3 -3
  133. package/dist/pdp/index.js +1 -1
  134. package/dist/{permdock-DeOfonuG.js → permdock-C1DN_7a-.js} +3 -3
  135. package/dist/{permdock-B45vPQb4.d.ts → permdock-D4F2p5J8.d.ts} +3 -3
  136. package/dist/{permissions-Rk9_Gm04.js → permissions-8N2yFsUM.js} +1 -1
  137. package/dist/{policy-DTmkP72P.js → policy-CaAME-Rh.js} +1 -1
  138. package/dist/{policy-re2Oag8s.d.ts → policy-Dh9WVSVz.d.ts} +1 -1
  139. package/dist/{policy-from-catalog-Cljh_B5H.js → policy-from-catalog-CUNlpgz0.js} +4 -4
  140. package/dist/{policy-types-Ky7P23CP.d.ts → policy-types-BI9C5Sp5.d.ts} +8 -0
  141. package/dist/{postgrest-pwxeaeOW.d.ts → postgrest-CWCCbaxm.d.ts} +1 -1
  142. package/dist/{powersync-BoqBik-G.js → powersync-CB8RwcB4.js} +7 -7
  143. package/dist/powersync-Cs1E04s6.js +1 -0
  144. package/dist/{powersync-PKC4yT62.js → powersync-Deim9O47.js} +2 -2
  145. package/dist/prisma/index.d.ts +2 -2
  146. package/dist/{protected-action-DHPqBLhz.d.ts → protected-action-ua0cx5cW.d.ts} +5 -5
  147. package/dist/{provider-C-CbGEii.d.ts → provider-D_hgjZRa.d.ts} +1 -1
  148. package/dist/pull-BLT25Y5C.js +1 -0
  149. package/dist/{pull-FG0Tf8aF.js → pull-BxqVL4Es.js} +1 -1
  150. package/dist/{push-CI5G7lRS.js → push-D2SsRW0U.js} +1 -1
  151. package/dist/{pushed-policy-DftSiyD3.js → pushed-policy-BERO0x9O.js} +1 -1
  152. package/dist/{pushed-policy-B94r9DlN.d.ts → pushed-policy-P0hgyLBh.d.ts} +1 -1
  153. package/dist/react/index.d.ts +6 -6
  154. package/dist/react/provider-client.d.ts +1 -1
  155. package/dist/react-native/index.d.ts +8 -8
  156. package/dist/{replay-BqmXcP7x.d.ts → replay-DYXI4gRN.d.ts} +1 -1
  157. package/dist/{request-context-uvaevbBu.js → request-context-BPTi68z5.js} +1 -1
  158. package/dist/resend/index.d.ts +4 -4
  159. package/dist/{resolve-names-Dg8560iu.js → resolve-names-BZQZRnMH.js} +3 -3
  160. package/dist/{rls-DJSczevJ.js → rls-DpoJ5gCg.js} +1 -1
  161. package/dist/{rls-CJbWbxXv.js → rls-OPorg_2G.js} +13 -13
  162. package/dist/{role-builder-C_2kWB_x.js → role-builder-C5AgaC1x.js} +17 -2
  163. package/dist/{rpc-D7cDHIVE.d.ts → rpc-D2LnFELm.d.ts} +1 -1
  164. package/dist/{rpc-m5hPklf-.js → rpc-DdkbQVlT.js} +1 -1
  165. package/dist/run-CW0QsyA9.js +1 -0
  166. package/dist/{run-BigMDvGR.js → run-YCpANf1B.js} +2 -2
  167. package/dist/{run-ticket-DRA3POCY.d.ts → run-ticket-94DOS9Cd.d.ts} +2 -2
  168. package/dist/{saas-BHeoBqbW.js → saas-BEXnrH9H.js} +4 -4
  169. package/dist/{scan-BKLwCSVV.js → scan-COvn7ZjN.js} +1 -1
  170. package/dist/{schema-CLuBlCCr.js → schema-BfSDo7Xj.js} +1 -1
  171. package/dist/scim/index.d.ts +1 -1
  172. package/dist/server/index.d.ts +10 -10
  173. package/dist/server/index.js +1 -1
  174. package/dist/{server-types-CwpJe664.d.ts → server-types-ChzXWU4Y.d.ts} +8 -8
  175. package/dist/{shared-DyYVEjKC.js → shared-sW3VYchq.js} +2 -1
  176. package/dist/{sink-7Lrch8dn.d.ts → sink-RwmP7ZHs.d.ts} +2 -2
  177. package/dist/{skills-D42EyC8G.js → skills-Ce4C2dq1.js} +1 -1
  178. package/dist/{skills-CyD_3eoi.js → skills-N2Hd8KN8.js} +1 -1
  179. package/dist/{snapshot-cache-B9weL8NE.d.ts → snapshot-cache-MPinwwgZ.d.ts} +1 -1
  180. package/dist/solid/index.d.ts +5 -5
  181. package/dist/solid-start/index.d.ts +4 -4
  182. package/dist/solid-start/index.js +2 -2
  183. package/dist/{sources-4d3fl7cq.d.ts → sources-sgQlMfmz.d.ts} +1 -1
  184. package/dist/{src-HDDf9Eum.js → src-B8SQNsvw.js} +8 -6
  185. package/dist/ssf/index.d.ts +3 -3
  186. package/dist/{standard-webhooks-BGi8pUwo.d.ts → standard-webhooks-CFZIYtBF.d.ts} +2 -2
  187. package/dist/{store-CjJaZI_g.d.ts → store-Dpg_fSNQ.d.ts} +4 -4
  188. package/dist/{stores-Cam6GGAV.d.ts → stores-C2A6KsxE.d.ts} +5 -5
  189. package/dist/supabase/index.d.ts +5 -5
  190. package/dist/supabase/middleware.d.ts +5 -5
  191. package/dist/supabase/middleware.js +4 -4
  192. package/dist/supabase-hook-7XxWGHQF.js +1 -0
  193. package/dist/{supabase-hook-Btk56XD6.js → supabase-hook-BCSwK5x-.js} +11 -6
  194. package/dist/{supabase-DBuZK2pP.js → supabase-zL7PC3RG.js} +2 -2
  195. package/dist/{supautils-lwXmXPP_.js → supautils-7UES0i4a.js} +68 -9
  196. package/dist/svelte/index.d.ts +5 -5
  197. package/dist/svelte/runtime.d.ts +3 -3
  198. package/dist/svelte/source.d.ts +5 -5
  199. package/dist/sveltekit/index.d.ts +4 -4
  200. package/dist/sveltekit/index.js +1 -1
  201. package/dist/{tables-B72q9UFD.js → tables-DSX_Ma_n.js} +329 -68
  202. package/dist/tanstack-start/index.d.ts +4 -4
  203. package/dist/tanstack-start/index.js +1 -1
  204. package/dist/terminal/index.d.ts +5 -5
  205. package/dist/terminal/index.js +2 -2
  206. package/dist/testing/core.d.ts +1 -1
  207. package/dist/testing/core.js +1 -1
  208. package/dist/testing/index.d.ts +22 -22
  209. package/dist/testing/index.js +11 -11
  210. package/dist/testing/saas/index.d.ts +3 -3
  211. package/dist/testing/saas/index.js +2 -2
  212. package/dist/testing/saas/permissions.js +1 -1
  213. package/dist/trpc/index.d.ts +5 -5
  214. package/dist/trpc/index.js +2 -2
  215. package/dist/{type-helpers-CDxxNswo.d.ts → type-helpers-BjOLGVy1.d.ts} +1 -1
  216. package/dist/{types-CChFKY10.d.ts → types--_lpWUGV.d.ts} +4 -4
  217. package/dist/{types--HfnkawU.d.ts → types-BzxA2OAD.d.ts} +1 -1
  218. package/dist/{types-Bwdumeos.d.ts → types-C5p2hoBR.d.ts} +3 -3
  219. package/dist/{types-BVn1w_0o.d.ts → types-CMclYgSk.d.ts} +2 -2
  220. package/dist/{types-BwuNGQRm.d.ts → types-D1NjjwI4.d.ts} +1 -1
  221. package/dist/{types-g0Vk9k2c.d.ts → types-D8JVDWOr.d.ts} +2 -2
  222. package/dist/{types-oaqeYKQu.d.ts → types-DBVSljAx.d.ts} +2 -2
  223. package/dist/{types-Do4yihST.d.ts → types-DZwEOsK1.d.ts} +1 -1
  224. package/dist/{types-BlYPxJDR.d.ts → types-DnzRZjEu.d.ts} +4 -4
  225. package/dist/{types-OLSfBLa5.d.ts → types-Drs3OOAy.d.ts} +4 -4
  226. package/dist/{types-Do8qBcRO.d.ts → types-p8mhWTcR.d.ts} +3 -3
  227. package/dist/unplugin/index.d.ts +1 -1
  228. package/dist/{usage-BLhhEPcZ.js → usage-BcAqmjkj.js} +1 -1
  229. package/dist/usage-BdIS9NfN.js +1 -0
  230. package/dist/{usage-C-wta3rx.js → usage-CUnw73Y-.js} +5 -3
  231. package/dist/{validation-error-AhCHeeff.d.ts → validation-error-DkOK9zUE.d.ts} +1 -1
  232. package/dist/{verify-CaaZlnP5.js → verify-V08pirDB.js} +10 -10
  233. package/dist/{version-cache-Ddvrfn1R.d.ts → version-cache-q5cpaDSt.d.ts} +1 -1
  234. package/dist/vue/index.d.ts +5 -5
  235. package/dist/{waiter-CROiWRIP.d.ts → waiter-BjVI_Byg.d.ts} +2 -2
  236. package/dist/webmcp/index.d.ts +1 -1
  237. package/dist/{who-can-jPfTABf-.js → who-can-CZeAwQZD.js} +1 -1
  238. package/dist/workflow/index.d.ts +3 -3
  239. package/dist/workflow/index.js +1 -1
  240. package/dist/workflow-sdk/index.d.ts +4 -4
  241. package/dist/{wrap-C-4o-Dpy.d.ts → wrap-CE5lxje7.d.ts} +2 -2
  242. package/package.json +1 -1
  243. package/skills/permdock-data/SKILL.md +1 -1
  244. package/skills/permdock-data/references/queries-and-rls.md +2 -0
  245. package/dist/powersync-B96MUB_Q.js +0 -1
  246. package/dist/pull-BjdsS9x1.js +0 -1
  247. package/dist/run-4m-TyVTD.js +0 -1
  248. package/dist/supabase-hook-2M-EpoRp.js +0 -1
  249. package/dist/usage-Csc_ZRd0.js +0 -1
@@ -1,31 +1,31 @@
1
- import { Ct as WhereCompiler, D as Policy, G as CredentialVerifier, X as DecisionSink, Y as DecisionProvider, Z as EntitlementSource, _t as TokenSigner, ct as RelationSource, dn as DeliveryChannel, en as Snapshot, it as MembershipSource, lt as SettingsSource, mt as SubjectResolver, nt as LimitStore, q as CustomRoleSource, ut as SnapshotSource, vr as Membership, vt as TokenVerifier, xr as Subject, yr as Principal } from "../policy-types-Ky7P23CP.js";
1
+ import { Ct as WhereCompiler, D as Policy, G as CredentialVerifier, X as DecisionSink, Y as DecisionProvider, Z as EntitlementSource, _t as TokenSigner, ct as RelationSource, dn as DeliveryChannel, en as Snapshot, it as MembershipSource, lt as SettingsSource, mt as SubjectResolver, nt as LimitStore, q as CustomRoleSource, ut as SnapshotSource, vr as Membership, vt as TokenVerifier, xr as Subject, yr as Principal } from "../policy-types-BI9C5Sp5.js";
2
2
  import { g as ResourceInit, l as InferPermissionTree, u as Permission } from "../permission-types-CAY-GU7e.js";
3
3
  import { r as Role } from "../vocabulary-DEJ5j4mR.js";
4
- import { st as LegacyCheck } from "../index-Cm6mHTZ-.js";
5
- import { i as ApprovalPolicySource } from "../approval-policies-CYqdqAob.js";
6
- import { _ as PrincipalSource, a as PermDock, b as Limits, h as PrincipalIdentity, u as SnapshotOptions, w as InstanceCache } from "../permdock-B45vPQb4.js";
7
- import { s as PolicySource } from "../hosted-H1xp5Dfw.js";
8
- import { a as ApprovalDelegationSource, m as ApprovalStore } from "../types--HfnkawU.js";
9
- import { a as ProblemDetails } from "../errors-POWcCXy7.js";
10
- import { c as ModelMap, t as AgentPermDock, u as ToolMap } from "../create-0B_bjJc-.js";
11
- import { c as AccessReviewStore } from "../types-Do4yihST.js";
12
- import { R as IdempotencyStore } from "../index-DZnpRB0q.js";
4
+ import { st as LegacyCheck } from "../index-D7xGi1LS.js";
5
+ import { i as ApprovalPolicySource } from "../approval-policies-CKlByf5o.js";
6
+ import { _ as PrincipalSource, a as PermDock, b as Limits, h as PrincipalIdentity, u as SnapshotOptions, w as InstanceCache } from "../permdock-D4F2p5J8.js";
7
+ import { s as PolicySource } from "../hosted-yhyAuQkL.js";
8
+ import { a as ApprovalDelegationSource, m as ApprovalStore } from "../types-BzxA2OAD.js";
9
+ import { a as ProblemDetails } from "../errors-OTE9u4Wk.js";
10
+ import { c as ModelMap, t as AgentPermDock, u as ToolMap } from "../create-DMCC5ZOi.js";
11
+ import { c as AccessReviewStore } from "../types-DZwEOsK1.js";
12
+ import { R as IdempotencyStore } from "../index-CruReRkB.js";
13
13
  import { n as RevocationFeed } from "../revocations-BaUXHM1N.js";
14
- import { s as SupportSessionSource } from "../index-DLlWORcK.js";
15
- import { n as VersionCache } from "../version-cache-Ddvrfn1R.js";
14
+ import { s as SupportSessionSource } from "../index-B_I6N8Ju.js";
15
+ import { n as VersionCache } from "../version-cache-q5cpaDSt.js";
16
16
  import { r as SupabaseHookManifest } from "../manifest-B5yF3CIq.js";
17
17
  import { t as supabaseMembershipsBudget } from "../budget-CNLsV2SL.js";
18
- import { a as AutomationSource, t as Automation } from "../automation-BJiJT_Xr.js";
19
- import { c as DeliveryTransport, g as TransportMessages } from "../types-Do8qBcRO.js";
20
- import { t as CloudApproverOptions } from "../types-CChFKY10.js";
21
- import { n as ApprovalWaiter } from "../waiter-CROiWRIP.js";
22
- import { g as SetQueue, l as ReplayStore } from "../types-oaqeYKQu.js";
23
- import { r as SnapshotStorage } from "../types-OLSfBLa5.js";
24
- import { x as DirectoryStore } from "../index-C5Tfpjex.js";
25
- import { S as SsfStreamStore } from "../index-C2pmTzFx.js";
26
- import { S as policyMatrix, _ as DescribePolicyConfig, a as OrmParityScenario, b as PolicyMatrixCell, c as RlsFieldsOutcome, d as RlsParityOptions, f as RlsParityReport, g as testRlsParity, h as RlsQueryResult, i as OrmParityRunInput, l as RlsParityCase, m as RlsQueryFn, n as OrmParityOptions, o as testOrmParity, p as RlsParitySubject, r as OrmParityReport, s as RlsDbOutcome, t as OrmParityCase, u as RlsParityFixture, v as MatrixCell, x as PolicyMatrixReport, y as MatrixOutcome } from "../core-DNRWXyj4.js";
18
+ import { a as AutomationSource, t as Automation } from "../automation-CpOk7Tlu.js";
19
+ import { c as DeliveryTransport, g as TransportMessages } from "../types-p8mhWTcR.js";
20
+ import { t as CloudApproverOptions } from "../types--_lpWUGV.js";
21
+ import { n as ApprovalWaiter } from "../waiter-BjVI_Byg.js";
22
+ import { g as SetQueue, l as ReplayStore } from "../types-DBVSljAx.js";
23
+ import { r as SnapshotStorage } from "../types-Drs3OOAy.js";
24
+ import { x as DirectoryStore } from "../index-CLbGOPBr.js";
25
+ import { S as SsfStreamStore } from "../index--AwSBzJC.js";
26
+ import { S as policyMatrix, _ as DescribePolicyConfig, a as OrmParityScenario, b as PolicyMatrixCell, c as RlsFieldsOutcome, d as RlsParityOptions, f as RlsParityReport, g as testRlsParity, h as RlsQueryResult, i as OrmParityRunInput, l as RlsParityCase, m as RlsQueryFn, n as OrmParityOptions, o as testOrmParity, p as RlsParitySubject, r as OrmParityReport, s as RlsDbOutcome, t as OrmParityCase, u as RlsParityFixture, v as MatrixCell, x as PolicyMatrixReport, y as MatrixOutcome } from "../core-BOeGWbcR.js";
27
27
  import { a as SaasProject } from "../permissions-Bx6UI8n1.js";
28
- import { n as saasPolicy } from "../policy-re2Oag8s.js";
28
+ import { n as saasPolicy } from "../policy-Dh9WVSVz.js";
29
29
  import { expectTypeOf } from "vitest";
30
30
  //#region src/testing/describe-policy.d.ts
31
31
  /** `policyMatrix` under Vitest: one test per cell, plus the exhaustive check. */
@@ -1,8 +1,8 @@
1
1
  import { r as isRecord } from "../compact-CAf557ZB.js";
2
2
  import { n as freezeDeep } from "../freeze-jjan0lCv.js";
3
3
  import { i as principal } from "../refs-C8BKxc_e.js";
4
- import { n as role, r as allow } from "../role-builder-C_2kWB_x.js";
5
- import { A as memoryCustomRoleSource, C as limits, D as approvalPoliciesFor, d as snapshotFor, w as memoryLimitStore } from "../src-HDDf9Eum.js";
4
+ import { n as role, r as allow } from "../role-builder-C5AgaC1x.js";
5
+ import { A as memoryCustomRoleSource, C as limits, D as approvalPoliciesFor, d as snapshotFor, w as memoryLimitStore } from "../src-B8SQNsvw.js";
6
6
  import { t as memoryRevocationFeed } from "../revocations-Bhr0aMIC.js";
7
7
  import { n as loadPrincipalByIdentity, t as loadPrincipal } from "../principal-source-C6N60GtM.js";
8
8
  import { v as resource } from "../permission-registry-B8tYxPIt.js";
@@ -12,13 +12,13 @@ import { d as scopeList, o as normalizeMemberships } from "../scopes-BSdYaGHs.js
12
12
  import { u as evaluateCondition } from "../delegation-aK4T_5WU.js";
13
13
  import { a as authenticated } from "../grantee-Dke-9rd1.js";
14
14
  import { t as byCodePoint } from "../compare-DTfyUunF.js";
15
- import { r as definePolicy } from "../policy-DTmkP72P.js";
16
- import { c as mergeHostedGrants, l as parsePolicyDocument } from "../hosted-iOGBI_ER.js";
15
+ import { r as definePolicy } from "../policy-CaAME-Rh.js";
16
+ import { c as mergeHostedGrants, l as parsePolicyDocument } from "../hosted-C2Pmhy2x.js";
17
17
  import { i as rootMembershipId } from "../subject-C7RddW0G.js";
18
- import { T as validateCustomRole } from "../evaluate-CrKkjgXS.js";
18
+ import { T as validateCustomRole } from "../evaluate-Dcq_U2TV.js";
19
19
  import { n as parseSnapshot } from "../snapshot-DHPih65J.js";
20
20
  import { n as fromSnapshot } from "../from-snapshot-DHnb8Fh4.js";
21
- import { t as getPermDock } from "../permdock-DeOfonuG.js";
21
+ import { t as getPermDock } from "../permdock-C1DN_7a-.js";
22
22
  import { t as APPROVAL_HEADER } from "../types-CcUXciSj.js";
23
23
  import { i as memoryApprovalStore } from "../store-CSOsXd5s.js";
24
24
  import { t as definePermissions } from "../permissions-BaoLxy66.js";
@@ -34,12 +34,12 @@ import { n as discoverAuthorizationServer } from "../device-BwbJNmb2.js";
34
34
  import { t as CONNECTOR_SCHEMA } from "../connector-schema-CYLQNMYq.js";
35
35
  import { l as sha256Hex, n as scimHandler, t as directoryMembershipSource } from "../scim-C30QBBoF.js";
36
36
  import { c as quoteSqlTable, o as quoteSqlIdent } from "../sql-0WjxIp9g.js";
37
- import { i as cloudEndpoints, n as cloud, s as approverHeaders, t as bearerChallenge } from "../challenge-D57I5G1k.js";
37
+ import { i as cloudEndpoints, n as cloud, s as approverHeaders, t as bearerChallenge } from "../challenge-DbkpCx_v.js";
38
38
  import { t as supabaseManifestSchema } from "../manifest-schema-CsFsYLF-.js";
39
- import { t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-DftSiyD3.js";
40
- import { i as policyMatrixLayout, n as testRlsParity, r as policyMatrix, t as testOrmParity } from "../core-ZIWZBi6-.js";
41
- import { i as saasPermissions } from "../permissions-Rk9_Gm04.js";
42
- import { C as saasOrg, E as saasSeed, S as saasMemberships, a as saasProject, g as verifySaasSession, h as signSaasToken, k as saasPolicy, t as saasDoc, w as saasPrincipal, x as saasCustomRoles } from "../saas-BHeoBqbW.js";
39
+ import { t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-BERO0x9O.js";
40
+ import { i as policyMatrixLayout, n as testRlsParity, r as policyMatrix, t as testOrmParity } from "../core-BwVkrpsi.js";
41
+ import { i as saasPermissions } from "../permissions-8N2yFsUM.js";
42
+ import { C as saasOrg, E as saasSeed, S as saasMemberships, a as saasProject, g as verifySaasSession, h as signSaasToken, k as saasPolicy, t as saasDoc, w as saasPrincipal, x as saasCustomRoles } from "../saas-BEXnrH9H.js";
43
43
  import { t as POLICY_NOT_PUBLISHED } from "../problem-types-DSsRfONQ.js";
44
44
  import { t as require__2020 } from "../2020-CJbO8Bvz.js";
45
45
  import { afterAll, assert, beforeAll, describe, expect, expectTypeOf, it, vi } from "vitest";
@@ -1,8 +1,8 @@
1
- import { ct as RelationSource, hr as Delegation, lr as Actor, nt as LimitStore, pr as CustomRole, qt as Instant, vr as Membership, xr as Subject, yr as Principal } from "../../policy-types-Ky7P23CP.js";
1
+ import { ct as RelationSource, hr as Delegation, lr as Actor, nt as LimitStore, pr as CustomRole, qt as Instant, vr as Membership, xr as Subject, yr as Principal } from "../../policy-types-BI9C5Sp5.js";
2
2
  import { u as Permission } from "../../permission-types-CAY-GU7e.js";
3
- import { o as PermDockOptions } from "../../permdock-B45vPQb4.js";
3
+ import { o as PermDockOptions } from "../../permdock-D4F2p5J8.js";
4
4
  import { a as SaasProject, c as saasPlans, i as SaasFolderSchema, l as saasRoles, n as SaasDocSchema, o as SaasProjectSchema, r as SaasFolder, s as saasPermissions, t as SaasDoc, u as saasTenantRoleNames } from "../../permissions-Bx6UI8n1.js";
5
- import { n as saasPolicy, t as SAAS_API_KEY_LIMIT } from "../../policy-re2Oag8s.js";
5
+ import { n as saasPolicy, t as SAAS_API_KEY_LIMIT } from "../../policy-Dh9WVSVz.js";
6
6
  import { StandardSchemaV1 } from "@standard-schema/spec";
7
7
  //#region src/testing/saas/schema.d.ts
8
8
  type FieldKind = "string" | "boolean" | "nullable-string";
@@ -1,3 +1,3 @@
1
- import { a as saasPlans, c as rowSchema, i as saasPermissions, n as SaasFolderSchema, o as saasRoles, r as SaasProjectSchema, s as saasTenantRoleNames, t as SaasDocSchema } from "../../permissions-Rk9_Gm04.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-BHeoBqbW.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-8N2yFsUM.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-BEXnrH9H.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-Rk9_Gm04.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-8N2yFsUM.js";
@@ -1,10 +1,10 @@
1
- import { D as Policy, yr as Principal } from "../policy-types-Ky7P23CP.js";
1
+ import { D as Policy, yr as Principal } from "../policy-types-BI9C5Sp5.js";
2
2
  import { u as Permission } from "../permission-types-CAY-GU7e.js";
3
- import { a as PermDock } from "../permdock-B45vPQb4.js";
3
+ import { a as PermDock } from "../permdock-D4F2p5J8.js";
4
4
  import { n as RevocationFeed } from "../revocations-BaUXHM1N.js";
5
- import { D as ConnectionOptions, T as Connection, i as OpenApiHooks } from "../server-types-CwpJe664.js";
6
- import { t as ServerAdapterOptions } from "../bind-SpRxR213.js";
7
- import { t as RpcProtectOptions } from "../rpc-D7cDHIVE.js";
5
+ import { D as ConnectionOptions, T as Connection, i as OpenApiHooks } from "../server-types-ChzXWU4Y.js";
6
+ import { t as ServerAdapterOptions } from "../bind-CW7nsZ86.js";
7
+ import { t as RpcProtectOptions } from "../rpc-D2LnFELm.js";
8
8
  import { AnyTRPCMiddlewareFunction } from "@trpc/server";
9
9
  //#region src/trpc/create.d.ts
10
10
  type TrpcMiddlewareOpts<TCtx = object, TInput = unknown> = {
@@ -1,9 +1,9 @@
1
1
  import { o as problemMessage } from "../http-DKLXrFGk.js";
2
2
  import { r as permissionList } from "../decide-set-DXEPepY1.js";
3
3
  import { t as problemFromError } from "../map-error-EOhahOVA.js";
4
- import { n as attached } from "../bind-BnKPWRrE.js";
4
+ import { n as attached } from "../bind-gwEbe9hL.js";
5
5
  import { i as isAsyncIterable, o as reloadAfter } from "../stream-DQ3rbO3J.js";
6
- import { i as rpcCode, n as guardStream, r as problemBody, t as bindRpcKernel } from "../rpc-m5hPklf-.js";
6
+ import { i as rpcCode, n as guardStream, r as problemBody, t as bindRpcKernel } from "../rpc-DdkbQVlT.js";
7
7
  import { TRPCError, isTrackedEnvelope } from "@trpc/server";
8
8
  //#region src/trpc/create.ts
9
9
  const PROBLEM = Symbol.for("permdock.problem");
@@ -1,4 +1,4 @@
1
- import { N as PolicyVocabulary, wn as ScopeNames } from "./policy-types-Ky7P23CP.js";
1
+ import { N as PolicyVocabulary, wn as ScopeNames } from "./policy-types-BI9C5Sp5.js";
2
2
  import { k as POLICY_SCOPES, u as Permission } from "./permission-types-CAY-GU7e.js";
3
3
  import { n as PlanTree } from "./vocabulary-DEJ5j4mR.js";
4
4
  import { o as OperationMap } from "./operations-Ci_rT6Uo.js";
@@ -1,8 +1,8 @@
1
- import { X as DecisionSink, _t as TokenSigner, ut as SnapshotSource, vt as TokenVerifier, xr as Subject } from "./policy-types-Ky7P23CP.js";
2
- import { s as PolicySource } from "./hosted-H1xp5Dfw.js";
3
- import { m as ApprovalStore, u as ApprovalRequest } from "./types--HfnkawU.js";
1
+ import { X as DecisionSink, _t as TokenSigner, ut as SnapshotSource, vt as TokenVerifier, xr as Subject } from "./policy-types-BI9C5Sp5.js";
2
+ import { s as PolicySource } from "./hosted-yhyAuQkL.js";
3
+ import { m as ApprovalStore, u as ApprovalRequest } from "./types-BzxA2OAD.js";
4
4
  import { a as CatalogDocument } from "./types-7Vlz1Wi2.js";
5
- import { a as CatalogFinding } from "./sink-7Lrch8dn.js";
5
+ import { a as CatalogFinding } from "./sink-RwmP7ZHs.js";
6
6
  //#region src/cloud/types.d.ts
7
7
  type CloudEndpointOptions = {
8
8
  readonly url?: string;
@@ -1,4 +1,4 @@
1
- import { En as Approver, a as ApprovalMode, bn as WireDelegation, c as ApprovalStage, i as ApprovalFallback, n as ApprovalCombine, qt as Instant, vr as Membership, wr as AdapterId, xr as Subject, zn as RelationGrantee } from "./policy-types-Ky7P23CP.js";
1
+ import { En as Approver, a as ApprovalMode, bn as WireDelegation, c as ApprovalStage, i as ApprovalFallback, n as ApprovalCombine, qt as Instant, vr as Membership, wr as AdapterId, xr as Subject, zn as RelationGrantee } from "./policy-types-BI9C5Sp5.js";
2
2
  import { M as AppData } from "./permission-types-CAY-GU7e.js";
3
3
  //#region src/approvals/types.d.ts
4
4
  type ApprovalStatus = "pending" | "approved" | "rejected" | "expired";
@@ -1,8 +1,8 @@
1
- import { Jn as ApprovalRequiredDecision, Yn as Decision, en as Snapshot, tr as GrantedDecision, vt as TokenVerifier } from "./policy-types-Ky7P23CP.js";
1
+ import { Jn as ApprovalRequiredDecision, Yn as Decision, en as Snapshot, tr as GrantedDecision, vt as TokenVerifier } from "./policy-types-BI9C5Sp5.js";
2
2
  import { u as Permission } from "./permission-types-CAY-GU7e.js";
3
- import { a as PermDock } from "./permdock-B45vPQb4.js";
3
+ import { a as PermDock } from "./permdock-D4F2p5J8.js";
4
4
  import { t as PermissionBoundaryState } from "./boundary-C9ck-3uK.js";
5
- import { d as PermissionState, m as ProviderOptionsBase, p as ProtectedActionView, t as ClientStore, v as ActionResult } from "./store-CjJaZI_g.js";
5
+ import { d as PermissionState, m as ProviderOptionsBase, p as ProtectedActionView, t as ClientStore, v as ActionResult } from "./store-Dpg_fSNQ.js";
6
6
  import { Snippet } from "svelte";
7
7
  import { Readable } from "svelte/store";
8
8
  //#region src/client/views.d.ts
@@ -1,6 +1,6 @@
1
- import { D as Policy, N as PolicyVocabulary, Yn as Decision, er as ExplainedDecision, vr as Membership, xr as Subject, yr as Principal } from "./policy-types-Ky7P23CP.js";
1
+ import { D as Policy, N as PolicyVocabulary, Yn as Decision, er as ExplainedDecision, vr as Membership, xr as Subject, yr as Principal } from "./policy-types-BI9C5Sp5.js";
2
2
  import { f as PermissionTree, u as Permission } from "./permission-types-CAY-GU7e.js";
3
- import { a as PermDock, f as WhereResult, k as PermissionCheck, l as SimulateOptions, n as DecideOptions, o as PermDockOptions, r as DeriveOptions } from "./permdock-B45vPQb4.js";
3
+ import { a as PermDock, f as WhereResult, k as PermissionCheck, l as SimulateOptions, n as DecideOptions, o as PermDockOptions, r as DeriveOptions } from "./permdock-D4F2p5J8.js";
4
4
  //#region src/pdp/types.d.ts
5
5
  type RemotePdpAuth = {
6
6
  readonly bearer: string | (() => string | Promise<string>);
@@ -1,4 +1,4 @@
1
- import { h as RoleThrough, m as RoleMap, s as SqlMembershipSource } from "./sources-4d3fl7cq.js";
1
+ import { h as RoleThrough, m as RoleMap, s as SqlMembershipSource } from "./sources-sgQlMfmz.js";
2
2
  //#region src/cli/core/errors.d.ts
3
3
  /**
4
4
  * 0 success, 1 failure, 2 usage, 3 action required, 130 interrupted (SIGINT or
@@ -1,5 +1,5 @@
1
- import { N as PolicyVocabulary, un as DecisionEvent } from "./policy-types-Ky7P23CP.js";
2
- import { a as PermDock } from "./permdock-B45vPQb4.js";
1
+ import { N as PolicyVocabulary, un as DecisionEvent } from "./policy-types-BI9C5Sp5.js";
2
+ import { a as PermDock } from "./permdock-D4F2p5J8.js";
3
3
  //#region src/otel/types.d.ts
4
4
  declare const GENAI_SEMCONV_PIN = "1.37.0";
5
5
  declare const GEN_AI_TOOL_NAME = "gen_ai.tool.name";
@@ -1,5 +1,5 @@
1
- import { $ as JwtClaims, gt as TokenFailureCause, it as MembershipSource, lr as Actor, sn as AuthEvent, vt as TokenVerifier, xr as Subject, yr as Principal } from "./policy-types-Ky7P23CP.js";
2
- import { m as ApprovalStore } from "./types--HfnkawU.js";
1
+ import { $ as JwtClaims, gt as TokenFailureCause, it as MembershipSource, lr as Actor, sn as AuthEvent, vt as TokenVerifier, xr as Subject, yr as Principal } from "./policy-types-BI9C5Sp5.js";
2
+ import { m as ApprovalStore } from "./types-BzxA2OAD.js";
3
3
  import { n as RevocationFeed } from "./revocations-BaUXHM1N.js";
4
4
  import { t as ClaimsMap } from "./claims-map-D1Pb5oRq.js";
5
5
  import { t as ClientNames } from "./clients-C_NOET3z.js";
@@ -1,4 +1,4 @@
1
- import { En as Approver } from "./policy-types-Ky7P23CP.js";
1
+ import { En as Approver } from "./policy-types-BI9C5Sp5.js";
2
2
  //#region src/approvals/access-reviews/types.d.ts
3
3
  type AccessReviewStatus = "open" | "closed";
4
4
  type AccessReviewItemStatus = "pending" | "kept" | "revoked";
@@ -1,8 +1,8 @@
1
- import { Jn as ApprovalRequiredDecision, Yn as Decision, en as Snapshot, tr as GrantedDecision, vt as TokenVerifier } from "./policy-types-Ky7P23CP.js";
1
+ import { Jn as ApprovalRequiredDecision, Yn as Decision, en as Snapshot, tr as GrantedDecision, vt as TokenVerifier } from "./policy-types-BI9C5Sp5.js";
2
2
  import { u as Permission } from "./permission-types-CAY-GU7e.js";
3
- import { s as RowData } from "./permdock-B45vPQb4.js";
4
- import { n as DescribeMessages } from "./describe-DyN-HX6o.js";
5
- import { n as ClientStoreOptions } from "./store-CjJaZI_g.js";
3
+ import { s as RowData } from "./permdock-D4F2p5J8.js";
4
+ import { n as DescribeMessages } from "./describe-DibQM6g-.js";
5
+ import { n as ClientStoreOptions } from "./store-Dpg_fSNQ.js";
6
6
  import { ReactNode } from "react";
7
7
  //#region src/react/types.d.ts
8
8
  type PermDockProviderProps = ({
@@ -1,7 +1,7 @@
1
- import { en as Snapshot, ut as SnapshotSource, vt as TokenVerifier } from "./policy-types-Ky7P23CP.js";
2
- import { n as DescribeMessages } from "./describe-DyN-HX6o.js";
3
- import { n as ClientStoreOptions } from "./store-CjJaZI_g.js";
4
- import { t as PermDockDefaults } from "./types-BlYPxJDR.js";
1
+ import { en as Snapshot, ut as SnapshotSource, vt as TokenVerifier } from "./policy-types-BI9C5Sp5.js";
2
+ import { n as DescribeMessages } from "./describe-DibQM6g-.js";
3
+ import { n as ClientStoreOptions } from "./store-Dpg_fSNQ.js";
4
+ import { t as PermDockDefaults } from "./types-DnzRZjEu.js";
5
5
  import { ReactNode } from "react";
6
6
  //#region src/react-native/types.d.ts
7
7
  type SnapshotStorage = {
@@ -1,6 +1,6 @@
1
- import { dn as DeliveryChannel, fn as DeliveryEvent, hn as EmailCategory, pn as DeliveryFailureCause, tr as GrantedDecision } from "./policy-types-Ky7P23CP.js";
2
- import { s as CloudEvent } from "./sink-7Lrch8dn.js";
3
- import { t as ApprovalPrompt } from "./approval-prompt-BxYbwOAU.js";
1
+ import { dn as DeliveryChannel, fn as DeliveryEvent, hn as EmailCategory, pn as DeliveryFailureCause, tr as GrantedDecision } from "./policy-types-BI9C5Sp5.js";
2
+ import { s as CloudEvent } from "./sink-RwmP7ZHs.js";
3
+ import { t as ApprovalPrompt } from "./approval-prompt-CQFiO1KE.js";
4
4
  //#region src/delivery/types.d.ts
5
5
  /**
6
6
  * Who a delivery goes to. `{ principal }` names an app principal and the
@@ -1,4 +1,4 @@
1
- import { s as PermDockPluginOptions } from "../types-BwuNGQRm.js";
1
+ import { s as PermDockPluginOptions } from "../types-D1NjjwI4.js";
2
2
  import { createUnplugin } from "unplugin";
3
3
  //#region src/unplugin/index.d.ts
4
4
  type CreateUnplugin = typeof createUnplugin<PermDockPluginOptions | undefined>;
@@ -16,7 +16,7 @@ const usage = defineLeaf({
16
16
  }
17
17
  },
18
18
  async run(ctx, { flags }) {
19
- return (await import("./usage-Csc_ZRd0.js")).runUsage({
19
+ return (await import("./usage-BdIS9NfN.js")).runUsage({
20
20
  cwd: ctx.cwd,
21
21
  config: ctx.config,
22
22
  ignore: flags.ignore,
@@ -0,0 +1 @@
1
+ export { t as runUsage } from "./usage-CUnw73Y-.js";
@@ -6,8 +6,8 @@ import { c as jsonSchemaOf } from "./catalog-doc-nrgfbh8I.js";
6
6
  import { a as loadModule, n as asPolicy, s as pickNamed } from "./load-BaEamml-.js";
7
7
  import { r as runCollect } from "./collect-DN_x7hvV.js";
8
8
  import { t as beforeFirst } from "./text-BMFRfBqc.js";
9
- import { t as DOCS_BASE } from "./manifest-CDhdXgf6.js";
10
- import { r as findingOf } from "./output-DYq_o2dM.js";
9
+ import { t as DOCS_BASE } from "./manifest-DvDzxhy6.js";
10
+ import { r as findingOf } from "./output-B2h-2g3F.js";
11
11
  import { existsSync, readFileSync, realpathSync } from "node:fs";
12
12
  import { dirname, resolve } from "node:path";
13
13
  import { fileURLToPath, pathToFileURL } from "node:url";
@@ -678,7 +678,9 @@ function conditionFields(condition, out) {
678
678
  for (const parent of condition.parents ?? []) add(typeof parent === "string" ? parent : parent.field);
679
679
  break;
680
680
  case "sqlFunction":
681
- for (const arg of condition.args) if (arg !== null && typeof arg === "object" && !Array.isArray(arg) && "field" in arg) add(arg.field);
681
+ if (condition.set === void 0) {
682
+ for (const arg of condition.args) if (arg !== null && typeof arg === "object" && !Array.isArray(arg) && "field" in arg) add(arg.field);
683
+ } else add(condition.set.column);
682
684
  conditionFields(condition.twin, out);
683
685
  break;
684
686
  case "related":
@@ -1,4 +1,4 @@
1
- import { a as ProblemDetails } from "./errors-POWcCXy7.js";
1
+ import { a as ProblemDetails } from "./errors-OTE9u4Wk.js";
2
2
  import { StandardSchemaV1 } from "@standard-schema/spec";
3
3
  //#region src/core/validation-error.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  import { a as sole, r as isRecord } from "./compact-CAf557ZB.js";
2
2
  import { l as isConditionRef, o as hasConditionOp } from "./refs-C8BKxc_e.js";
3
- import { A as memoryCustomRoleSource, S as memoryRelationSource } from "./src-HDDf9Eum.js";
3
+ import { A as memoryCustomRoleSource, S as memoryRelationSource } from "./src-B8SQNsvw.js";
4
4
  import { c as listPermissions, h as formerKeys, n as findPermission } from "./permission-registry-B8tYxPIt.js";
5
5
  import { c as isEdgeRelation, l as isFieldRelation, u as isPrincipalRelation } from "./resource-relations-8-pCScBO.js";
6
6
  import { f as nowMillis, u as isoAt } from "./time-nR1JesoH.js";
@@ -8,10 +8,10 @@ import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
8
8
  import { c as rootScope, d as scopeList, o as normalizeMemberships } from "./scopes-BSdYaGHs.js";
9
9
  import { o as requiresStandIn } from "./delegation-aK4T_5WU.js";
10
10
  import { p as scopeField } from "./tenancy-DvOHHk3-.js";
11
- import { l as policyLevels, t as coveredLevels } from "./policy-DTmkP72P.js";
11
+ import { l as policyLevels, t as coveredLevels } from "./policy-CaAME-Rh.js";
12
12
  import { t as requiresApproval } from "./approval-required-TzNB9oQA.js";
13
- import { c as andWhere, m as customRoleScope, v as leveled, y as membershipsClaim } from "./evaluate-CrKkjgXS.js";
14
- import { t as getPermDock } from "./permdock-DeOfonuG.js";
13
+ import { c as andWhere, m as customRoleScope, v as leveled, y as membershipsClaim } from "./evaluate-Dcq_U2TV.js";
14
+ import { t as getPermDock } from "./permdock-C1DN_7a-.js";
15
15
  import { a as describeError, i as configError, u as usageResult } from "./errors-BhRkoNS7.js";
16
16
  import { t as policyRowConditionKeys } from "./row-conditions-BAGHOmVq.js";
17
17
  import { s as writeFileEnsuringDir } from "./files-BSjrtIHw.js";
@@ -22,14 +22,14 @@ import { i as qualifySqlTable, n as defaultSqlCommand, t as SQL_IDENT } from "./
22
22
  import { a as scopeMembershipTable, i as scopeColumn } from "./compile-B_oJqmIg.js";
23
23
  import "./sources-C4vkzZJV.js";
24
24
  import { t as beforeFirst } from "./text-BMFRfBqc.js";
25
- import { t as DOCS_BASE } from "./manifest-CDhdXgf6.js";
25
+ import { t as DOCS_BASE } from "./manifest-DvDzxhy6.js";
26
26
  import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-Cemqurt8.js";
27
27
  import { n as pgConnector, t as connectPgPool } from "./pg-Ddxsd5ZB.js";
28
- import { A as quoteQualified, N as arrayColumnsOf, O as quoteIdent, P as columnTypesOf, _ as subjectClaimJsonSql, a as customRolesOn, j as quoteTable, k as quoteLiteral, r as HELPERS, v as subjectClaimSql } from "./shared-DyYVEjKC.js";
29
- import { C as accessSql, D as tokenScopeAllowsCall, S as requiresSql, ht as scopeTable, k as capabilityAccessSql, n as tableNameOf, o as graphPlan, q as apiKeyAllowsCall, r as tableNames } from "./tables-B72q9UFD.js";
30
- import { c as breakGlassKey, f as compileConditionSql, l as collectGrants, m as sqlFunctionNames, p as contextRefs, s as breakGlassHolder } from "./ownership-CrmMERZv.js";
28
+ import { A as quoteQualified, N as arrayColumnsOf, O as quoteIdent, P as columnTypesOf, _ as subjectClaimJsonSql, a as customRolesOn, j as quoteTable, k as quoteLiteral, r as HELPERS, v as subjectClaimSql } from "./shared-sW3VYchq.js";
29
+ import { C as accessSql, D as tokenScopeAllowsCall, S as requiresSql, ht as scopeTable, k as capabilityAccessSql, n as tableNameOf, o as graphPlan, q as apiKeyAllowsCall, r as tableNames } from "./tables-DSX_Ma_n.js";
30
+ import { c as breakGlassKey, f as compileConditionSql, l as collectGrants, m as sqlFunctionNames, p as contextRefs, s as breakGlassHolder } from "./ownership-MGHa5vfX.js";
31
31
  import { t as membershipSourcesOf } from "./sources-qoIJQrJv.js";
32
- import { _ as wrapSql, g as validitySql, m as andSql, s as viewName, t as FIELD_VIEWS } from "./fields-COvJbUva.js";
32
+ import { _ as wrapSql, g as validitySql, m as andSql, s as viewName, t as FIELD_VIEWS } from "./fields-D_TfExiI.js";
33
33
  import { resolve } from "node:path";
34
34
  import { createHash, randomUUID } from "node:crypto";
35
35
  //#region src/cli/core/ignores.ts
@@ -105,8 +105,8 @@ function indexedFields(condition) {
105
105
  case "memberOf": return plainField(condition.field);
106
106
  case "eq":
107
107
  case "in": return isConditionRef(condition.value) ? plainField(condition.field) : [];
108
+ case "sqlFunction": return condition.set === void 0 ? [] : plainField(condition.set.column);
108
109
  case "not":
109
- case "sqlFunction":
110
110
  case "opaque":
111
111
  case "related":
112
112
  case "ne":
@@ -1,4 +1,4 @@
1
- import { St as VersionQuery, qt as Instant } from "./policy-types-Ky7P23CP.js";
1
+ import { St as VersionQuery, qt as Instant } from "./policy-types-BI9C5Sp5.js";
2
2
  //#region src/core/version-cache.d.ts
3
3
  type VersionCacheStats = {
4
4
  /** Version reads the cache started. */
@@ -1,11 +1,11 @@
1
- import { Jn as ApprovalRequiredDecision, N as PolicyVocabulary, Yn as Decision, en as Snapshot, vr as Membership, vt as TokenVerifier } from "../policy-types-Ky7P23CP.js";
1
+ import { Jn as ApprovalRequiredDecision, N as PolicyVocabulary, Yn as Decision, en as Snapshot, vr as Membership, vt as TokenVerifier } from "../policy-types-BI9C5Sp5.js";
2
2
  import { u as Permission } from "../permission-types-CAY-GU7e.js";
3
3
  import { r as Role } from "../vocabulary-DEJ5j4mR.js";
4
- import { d as UncheckedData, s as RowData } from "../permdock-B45vPQb4.js";
5
- import { c as requiredPlans } from "../errors-POWcCXy7.js";
6
- import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-DyN-HX6o.js";
4
+ import { d as UncheckedData, s as RowData } from "../permdock-D4F2p5J8.js";
5
+ import { c as requiredPlans } from "../errors-OTE9u4Wk.js";
6
+ import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-DibQM6g-.js";
7
7
  import { t as PermissionBoundaryState } from "../boundary-C9ck-3uK.js";
8
- import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, m as ProviderOptionsBase, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-CjJaZI_g.js";
8
+ import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, m as ProviderOptionsBase, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-Dpg_fSNQ.js";
9
9
  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-L9UOwATg.js";
10
10
  import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
11
11
  import { ComputedRef, DefineComponent, MaybeRefOrGetter, Plugin, VNode } from "vue";
@@ -1,5 +1,5 @@
1
- import { qt as Instant } from "./policy-types-Ky7P23CP.js";
2
- import { m as ApprovalStore } from "./types--HfnkawU.js";
1
+ import { qt as Instant } from "./policy-types-BI9C5Sp5.js";
2
+ import { m as ApprovalStore } from "./types-BzxA2OAD.js";
3
3
  //#region src/workflow/waiter.d.ts
4
4
  type ApprovalWaitOptions = {
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { Yn as Decision, en as Snapshot } from "../policy-types-Ky7P23CP.js";
1
+ import { Yn as Decision, en as Snapshot } from "../policy-types-BI9C5Sp5.js";
2
2
  import { f as PermissionTree, u as Permission } from "../permission-types-CAY-GU7e.js";
3
3
  import { StandardSchemaV1 } from "@standard-schema/spec";
4
4
  //#region src/webmcp/types.d.ts
@@ -10,7 +10,7 @@ import { o as flattenGrantee } from "./grantee-Dke-9rd1.js";
10
10
  import { t as byCodePoint } from "./compare-DTfyUunF.js";
11
11
  import { r as relationCondition } from "./grantee-conditions-DX4K_gGI.js";
12
12
  import { c as nowSeconds, p as scopeField } from "./tenancy-DvOHHk3-.js";
13
- import { D as emptyListeners, t as evaluate } from "./evaluate-CrKkjgXS.js";
13
+ import { D as emptyListeners, t as evaluate } from "./evaluate-Dcq_U2TV.js";
14
14
  import { n as relationId, t as pendingRelations } from "./relations-BxvRvDHK.js";
15
15
  import { t as relationWalk } from "./relation-walk-DK_gkgL7.js";
16
16
  //#region src/core/who-can.ts
@@ -1,5 +1,5 @@
1
- import { a as AutomationSource, i as AutomationRequest, l as memoryAutomationSource, n as AutomationDecision, r as AutomationMode, s as MemoryAutomationSource, t as Automation, u as parseAutomation } from "../automation-BJiJT_Xr.js";
2
- import { i as pollingApprovalWaiter, n as ApprovalWaiter, r as PollingApprovalWaiterOptions, t as ApprovalWaitOptions } from "../waiter-CROiWRIP.js";
3
- import { a as WorkflowPermDockOptions, i as WorkflowPermDock, n as AwaitApprovalOptions, o as createPermDock, r as StartAutomationResult, t as AutomationOptions } from "../create-BECB6fns.js";
1
+ import { a as AutomationSource, i as AutomationRequest, l as memoryAutomationSource, n as AutomationDecision, r as AutomationMode, s as MemoryAutomationSource, t as Automation, u as parseAutomation } from "../automation-CpOk7Tlu.js";
2
+ import { i as pollingApprovalWaiter, n as ApprovalWaiter, r as PollingApprovalWaiterOptions, t as ApprovalWaitOptions } from "../waiter-BjVI_Byg.js";
3
+ import { a as WorkflowPermDockOptions, i as WorkflowPermDock, n as AwaitApprovalOptions, o as createPermDock, r as StartAutomationResult, t as AutomationOptions } from "../create-BezeYFcT.js";
4
4
  import "../index-CaxrMD1A.js";
5
5
  export { type ApprovalWaitOptions, type ApprovalWaiter, type Automation, type AutomationDecision, type AutomationMode, type AutomationOptions, type AutomationRequest, type AutomationSource, type AwaitApprovalOptions, type MemoryAutomationSource, type PollingApprovalWaiterOptions, type StartAutomationResult, type WorkflowPermDock, type WorkflowPermDockOptions, createPermDock, memoryAutomationSource, parseAutomation, pollingApprovalWaiter };
@@ -4,7 +4,7 @@ import { a as isId } from "../expiry-6XByK0dm.js";
4
4
  import { n as findPermission } from "../permission-registry-B8tYxPIt.js";
5
5
  import { n as isThenable } from "../thenable-BNSM1U2R.js";
6
6
  import { n as memoryAutomationSource, r as parseAutomation } from "../automation-x3KEUusw.js";
7
- import { l as withApp, t as getPermDock } from "../permdock-DeOfonuG.js";
7
+ import { l as withApp, t as getPermDock } from "../permdock-C1DN_7a-.js";
8
8
  import { o as automationEvent } from "../sink-D9_vh372.js";
9
9
  import { a as requestApproval, s as resumeDecision } from "../helpers-D-MXwkOF.js";
10
10
  import { i as subjectFromRunTicket, r as signRunTicket } from "../run-ticket-CjvXr6wj.js";
@@ -1,8 +1,8 @@
1
- import { Yn as Decision } from "../policy-types-Ky7P23CP.js";
1
+ import { Yn as Decision } from "../policy-types-BI9C5Sp5.js";
2
2
  import { u as Permission } from "../permission-types-CAY-GU7e.js";
3
- import { a as PermDock } from "../permdock-B45vPQb4.js";
4
- import { n as ApprovalWaiter } from "../waiter-CROiWRIP.js";
5
- import { i as WorkflowPermDock, r as StartAutomationResult, t as AutomationOptions } from "../create-BECB6fns.js";
3
+ import { a as PermDock } from "../permdock-D4F2p5J8.js";
4
+ import { n as ApprovalWaiter } from "../waiter-BjVI_Byg.js";
5
+ import { i as WorkflowPermDock, r as StartAutomationResult, t as AutomationOptions } from "../create-BezeYFcT.js";
6
6
  //#region src/workflow-sdk/index.d.ts
7
7
  /**
8
8
  * The part of a Workflow SDK `Hook` the waiter reads: awaiting it suspends the
@@ -1,5 +1,5 @@
1
- import { N as PolicyVocabulary } from "./policy-types-Ky7P23CP.js";
2
- import { a as PermDock } from "./permdock-B45vPQb4.js";
1
+ import { N as PolicyVocabulary } from "./policy-types-BI9C5Sp5.js";
2
+ import { a as PermDock } from "./permdock-D4F2p5J8.js";
3
3
  //#region src/core/wrap.d.ts
4
4
  /** A wrapper an adapter applies to each instance it builds, as `withOtel` does. */
5
5
  type PermDockWrap = <V extends PolicyVocabulary>(permdock: PermDock<V>) => PermDock<V>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "permdock",
3
- "version": "0.19.0",
3
+ "version": "0.20.1",
4
4
  "description": "Typed permissions for TypeScript apps, APIs, databases, and AI agents, with the permdock CLI and test runners.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -45,7 +45,7 @@ The same portable conditions decide `can()` in memory, narrow list queries throu
45
45
 
46
46
  - [ ] No closure only compares fields a portable operator covers (`eq`, `in`, `memberOf`, `sqlFunction`, …); rewrite those as JSON conditions.
47
47
  - [ ] An owner-equals-principal `where` on a resource with a matching relation uses `relation()` instead.
48
- - [ ] No `opaque` RLS grant wraps a named helper; use `sqlFunction` with a twin and map it in `rls.functions`.
48
+ - [ ] No `opaque` RLS grant wraps a named helper; use `sqlFunction` with a twin and map it in `rls.functions`. A set-returning helper uses `set: { column }` and a declared resource column (PD086).
49
49
  - [ ] No condition the database must enforce reads `context.*` (PD027); on Supabase, `supabase.hook.attrs` lists only server-owned values (PD028).
50
50
  - [ ] Graph declarations are walked by a grant (PD031) and nameable in SQL (PD032).
51
51
  - [ ] Every list endpoint has an `testOrmParity` run, every RLS table an `testRlsParity` or `rls verify --db-url-stdin` run, and a custom `RelationSource` passes `testRelationSource`.
@@ -60,6 +60,8 @@ pnpm exec permdock rls verify --introspect
60
60
 
61
61
  When the database already holds the rules, skip `generate`. Map each helper in `rls.functions`, write `sqlFunction` twins in the policy, and fail CI on `rls verify --db-url-stdin`. `--inline-functions` inlines the twin for targets that cannot call a SQL function.
62
62
 
63
+ A set-returning helper that returns the ids the subject may read uses `set: { column: 'id' }`; `generate` calls it once per statement as `"id" in (select <helper>(<args without row fields>))`, so pass only the helper's own arguments. Keep the helper `stable` or `immutable` so Postgres plans it as a hashed SubPlan (or an InitPlan). `rls import` reads `col in (select fn(...))` and `col = any (select fn(...))` with no `FROM` or `WHERE` back as the same set form; PD086 checks that the column is declared and warns when row-field args would be dropped.
64
+
63
65
  When hand-written policies call the app's own helpers (`org_ids_with_permission`, `has_org_permission`), map each under `rls.migrate.helpers` with its `form` (`ids`, `row`, `scoped`, `global`, `membership`) and the legacy keys under `rls.migrate.keys` or `prefixes`. Run `permdock rls migrate --dry-run`, read the skipped calls, and apply by running it without `--dry-run`. Generate with `--helpers-only` while the policies stay hand-written. A `row-conditions` skip means that table's policy should be generated, not migrated.
64
66
 
65
67
  When the old helpers read a permissions table that triggers keep in step (`user_permissions`), list it under `rls.migrate.tables`. `permdock rls migrate` then reports its refresh triggers and every policy, view or function that still reads it, and `permdock doctor` reports PD066 while the migrations still create it. Rewrite each reader, then run `permdock rls migrate --retire-out <migrations dir>/`, which exits `1` and writes nothing while a reader remains. Never hand-write the drop with `cascade` ([retire a materialised table](https://permdock.com/docs/cli/rls#retire-a-materialised-table)).
@@ -1 +0,0 @@
1
- export { n as runPowerSync } from "./powersync-BoqBik-G.js";
@@ -1 +0,0 @@
1
- export { n as runCloudPull } from "./pull-FG0Tf8aF.js";
@@ -1 +0,0 @@
1
- export { t as run } from "./run-BigMDvGR.js";
@@ -1 +0,0 @@
1
- export { i as runSupabase } from "./supabase-hook-Btk56XD6.js";
@@ -1 +0,0 @@
1
- export { t as runUsage } from "./usage-C-wta3rx.js";