permdock 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (359) hide show
  1. package/README.md +2 -1
  2. package/dist/a2a/index.d.ts +5 -5
  3. package/dist/a2a/index.js +5 -4
  4. package/dist/{adoption-scan-UkQisAqe.js → adoption-scan-_bHLMnVQ.js} +1 -1
  5. package/dist/agent/index.d.ts +2 -2
  6. package/dist/agent/index.js +1 -1
  7. package/dist/ai-sdk/index.d.ts +4 -4
  8. package/dist/ai-sdk/index.js +3 -3
  9. package/dist/app/index.d.ts +85 -0
  10. package/dist/app/index.js +91 -0
  11. package/dist/app-DIvM65Mv.js +24 -0
  12. package/dist/{approval-policies-CKlByf5o.d.ts → approval-policies-UnDSxT__.d.ts} +2 -2
  13. package/dist/{approval-prompt-CQFiO1KE.d.ts → approval-prompt-2hTqo6IM.d.ts} +2 -2
  14. package/dist/approvals/index.d.ts +3 -3
  15. package/dist/approvals/index.js +3 -3
  16. package/dist/{approvals-CuXILe52.js → approvals-B_sn4Wrn.js} +6 -6
  17. package/dist/{arazzo-CUthH61H.js → arazzo-BXD-VJU_.js} +1 -1
  18. package/dist/{arazzo-BC3uLIZy.js → arazzo-Ct0PGblq.js} +3 -3
  19. package/dist/astro/index.d.ts +6 -6
  20. package/dist/astro/index.js +2 -2
  21. package/dist/{audience-BUonniPx.js → audience-5Xx1hdIv.js} +1 -1
  22. package/dist/{auth-j3Eu-j4h.js → auth-BxXHxWRy.js} +1 -1
  23. package/dist/authzen/index.d.ts +5 -5
  24. package/dist/authzen/index.js +4 -4
  25. package/dist/{automation-CpOk7Tlu.d.ts → automation-B20_8UoT.d.ts} +3 -3
  26. package/dist/{automation-x3KEUusw.js → automation-BueW05db.js} +2 -2
  27. package/dist/better-auth/index.d.ts +2 -2
  28. package/dist/better-auth/index.js +1 -1
  29. package/dist/better-supabase/index.d.ts +113 -56
  30. package/dist/better-supabase/index.js +200 -62
  31. package/dist/better-supabase-DF8f8oly.js +194 -0
  32. package/dist/{bind-CJf7S-Jd.js → bind-B4Z0U2Gr.js} +5 -5
  33. package/dist/{bind-XvnD_SUz.d.ts → bind-CnOMjazH.d.ts} +7 -7
  34. package/dist/{build-instance-CkRKgjSj.js → build-instance-B0vsViF5.js} +3 -25
  35. package/dist/{capability-zN6T9fxe.js → capability-CenWwTMR.js} +1 -1
  36. package/dist/{capability-v2xZB7us.d.ts → capability-YkRMUAsF.d.ts} +2 -2
  37. package/dist/{casbin-BOZN1P2Y.js → casbin-D5evU3lX.js} +1 -1
  38. package/dist/{casbin-v9Xo_XPa.js → casbin-imBS3UIf.js} +1 -1
  39. package/dist/catalog/index.d.ts +5 -5
  40. package/dist/catalog/index.js +5 -5
  41. package/dist/catalog-C462QC3A.js +1 -0
  42. package/dist/{catalog-DjDc87R2.js → catalog-CoyKnU5c.js} +1 -1
  43. package/dist/{catalog-s0waIrfY.js → catalog-Y4CjN8NA.js} +4 -4
  44. package/dist/{catalog-operations-BD22drQf.js → catalog-operations-Do1eD-Rt.js} +1 -1
  45. package/dist/{challenge-DbkpCx_v.js → challenge-B__LcNve.js} +3 -3
  46. package/dist/chat/index.d.ts +1 -1
  47. package/dist/chat/index.js +3 -2
  48. package/dist/chat-sdk/index.d.ts +3 -3
  49. package/dist/claude-agent/index.d.ts +3 -3
  50. package/dist/claude-agent/index.js +2 -2
  51. package/dist/clerk/index.d.ts +3 -3
  52. package/dist/cli/bin.js +1 -1
  53. package/dist/cli/index.d.ts +8 -7
  54. package/dist/cli/index.js +3 -3
  55. package/dist/cloud/index.d.ts +8 -8
  56. package/dist/cloud/index.js +3 -3
  57. package/dist/{cloud-CB0btByh.js → cloud-DWCeStPH.js} +2 -2
  58. package/dist/{codemod-C3a3Iz_w.js → codemod-B7QKJ_ak.js} +2 -2
  59. package/dist/{codemod-B-duJDFD.js → codemod-BaPmaCYQ.js} +13 -6
  60. package/dist/{collect-DN_x7hvV.js → collect-Cr71JA7z.js} +8 -7
  61. package/dist/{collect-DMQ6Sxr6.js → collect-ScSG05VJ.js} +2 -2
  62. package/dist/collect-W9i7REKT.js +1 -0
  63. package/dist/compile/index.d.ts +1 -1
  64. package/dist/compile/index.js +1 -1
  65. package/dist/{compile-B_oJqmIg.js → compile-Cvru58id.js} +2 -2
  66. package/dist/{compile-DonvwG9x.d.ts → compile-DC-BrhH1.d.ts} +3 -3
  67. package/dist/{completion-6IshPaPd.js → completion-DOUMyCwa.js} +1 -1
  68. package/dist/{delegation-aK4T_5WU.js → condition-evaluate-bVVRSdzq.js} +159 -159
  69. package/dist/{config-C45X7mpm.js → config-DRp-E8Ly.js} +1 -1
  70. package/dist/{config-D2oXUwos.js → config-DyNanTjZ.js} +10 -8
  71. package/dist/{config-report-Bmo62RRr.js → config-report-Bh_nLdAE.js} +2 -2
  72. package/dist/{config-shape-D9paLhEX.js → config-shape-C4zqzG2K.js} +9 -2
  73. package/dist/{context-YhyXyqBI.js → context-Cem4QafV.js} +2 -2
  74. package/dist/convex/index.d.ts +5 -5
  75. package/dist/convex/index.js +2 -2
  76. package/dist/{core-Dxkwz4xR.js → core-CUjhfz0W.js} +6 -6
  77. package/dist/{core-9KbhurkH.d.ts → core-D2JNg5jA.d.ts} +3 -3
  78. package/dist/coverage-D8jBJdgD.d.ts +114 -0
  79. package/dist/coverage-Dh2W_DmF.js +211 -0
  80. package/dist/{create-DH4ZD0A7.d.ts → create-B2tdOygC.d.ts} +7 -7
  81. package/dist/{create-Q0wF9Elt.js → create-BJ2_8NDO.js} +5 -5
  82. package/dist/{create-BRiRVNUO.js → create-BsL5lCWR.js} +8 -7
  83. package/dist/{create-BzgDDamI.d.ts → create-CPDSbK1a.d.ts} +5 -5
  84. package/dist/{create-BQOQkYYg.d.ts → create-oMCcZV4X.d.ts} +9 -9
  85. package/dist/{credential-B3Hj4puZ.js → credential-Bap3HClV.js} +4 -4
  86. package/dist/{server-D0PW6ZCw.js → credentials-BXV0oz56.js} +3 -146
  87. package/dist/credentials-DPX140fN.d.ts +125 -0
  88. package/dist/delivery/index.d.ts +4 -4
  89. package/dist/delivery/index.js +1 -1
  90. package/dist/{denied-text-De8cw3MW.d.ts → denied-text-BXQkWU7d.d.ts} +2 -2
  91. package/dist/{describe-DibQM6g-.d.ts → describe-DVobr5FX.d.ts} +2 -2
  92. package/dist/{diff-BJv7I3GR.js → diff-BR9JArxz.js} +6 -6
  93. package/dist/{diff-3fpwo3UD.js → diff-Jc_kbDz-.js} +1 -1
  94. package/dist/{doctor-Bz7s3JYD.js → doctor-BBMW5ZT_.js} +310 -36
  95. package/dist/{doctor-keoa9DpH.js → doctor-DhqSiPkq.js} +3 -3
  96. package/dist/drizzle/index.d.ts +3 -3
  97. package/dist/drizzle/index.js +1 -1
  98. package/dist/elysia/index.d.ts +5 -5
  99. package/dist/elysia/index.js +3 -3
  100. package/dist/{errors-OTE9u4Wk.d.ts → errors-D_JIQJYb.d.ts} +1 -1
  101. package/dist/{evaluate-Dcq_U2TV.js → evaluate-B5yZHmts.js} +16 -16
  102. package/dist/{evaluations-CNMVJVD6.js → evaluations-BzTDWO4m.js} +57 -57
  103. package/dist/{evaluations-OCm_Z-8V.d.ts → evaluations-DQYfh4Jh.d.ts} +3 -3
  104. package/dist/eve/index.d.ts +5 -5
  105. package/dist/eve/index.js +3 -3
  106. package/dist/express/index.d.ts +5 -5
  107. package/dist/express/index.js +3 -3
  108. package/dist/fastify/index.d.ts +5 -5
  109. package/dist/fastify/index.js +3 -3
  110. package/dist/{fetch-adapter-BlL-ZhHq.d.ts → fetch-adapter-DxqsIXSO.d.ts} +4 -4
  111. package/dist/{fetch-adapter-4EB3cLgB.js → fetch-adapter-MoYZ-vF5.js} +3 -3
  112. package/dist/{fields-D_TfExiI.js → fields-CVyOk-f1.js} +2 -2
  113. package/dist/{fixtures-Cemqurt8.js → fixtures-BVZc7OCF.js} +1 -1
  114. package/dist/{from-snapshot-DHnb8Fh4.js → from-snapshot-oR_N97dM.js} +346 -14
  115. package/dist/{gen-DYF4LKUP.js → gen-DXXoFjyf.js} +1 -1
  116. package/dist/{gen-Cf7nQsOb.js → gen-WdycZ_-b.js} +5 -5
  117. package/dist/{grantee-conditions-DX4K_gGI.js → grantee-conditions-Dzprappv.js} +1 -1
  118. package/dist/{grantee-match-BP-k4vRJ.js → grantee-match-8J2y60MF.js} +3 -3
  119. package/dist/h3/index.d.ts +4 -4
  120. package/dist/h3/index.js +3 -3
  121. package/dist/{helpers-D-MXwkOF.js → helpers-DzBIfL1N.js} +25 -25
  122. package/dist/hono/index.d.ts +5 -5
  123. package/dist/hono/index.js +3 -3
  124. package/dist/{hosted-C2Pmhy2x.js → hosted-C5I2TSXm.js} +4 -4
  125. package/dist/{hosted-yhyAuQkL.d.ts → hosted-DXq1plaP.d.ts} +1 -1
  126. package/dist/{http-DhMWeB_h.js → http-dptLQzPP.js} +1 -1
  127. package/dist/{expiry-6XByK0dm.js → ids-DzhJaCUj.js} +23 -23
  128. package/dist/{import-CQ_kH_Ny.js → import-BE5sDazm.js} +2 -2
  129. package/dist/{import-C2ExjVvv.js → import-CvXswHDy.js} +2 -2
  130. package/dist/index-BcS8c_2S.d.ts +101 -0
  131. package/dist/{index--AwSBzJC.d.ts → index-BdZpqhJK.d.ts} +2 -2
  132. package/dist/{index-CLbGOPBr.d.ts → index-C-R8lBPb.d.ts} +3 -3
  133. package/dist/{index-Do7FqHEr.d.ts → index-C_8uxAlv.d.ts} +5 -5
  134. package/dist/{index-tuR-kZoJ.d.ts → index-Cjfa1Uwr.d.ts} +21 -40
  135. package/dist/{index-BqzpT-90.d.ts → index-iIsqXFVu.d.ts} +6 -6
  136. package/dist/index.d.ts +19 -20
  137. package/dist/index.js +25 -24
  138. package/dist/{init-kTFkEu8S.js → init-B_S8Xdz1.js} +4 -4
  139. package/dist/{init-DvkvbvZ_.js → init-CqGHcvyR.js} +2 -2
  140. package/dist/{instance-options-Cq66kEeR.d.ts → instance-options-C6gEDOts.d.ts} +1 -1
  141. package/dist/instance-options-URVwqpMW.js +24 -0
  142. package/dist/{instance-snapshot-Bi4-dJk0.js → instance-snapshot-D_dGTq--.js} +9 -9
  143. package/dist/jwt/index.d.ts +4 -4
  144. package/dist/jwt/index.js +2 -2
  145. package/dist/{kernel-CLEzDmbv.js → kernel-NmxiWII2.js} +8 -8
  146. package/dist/kysely/index.d.ts +3 -3
  147. package/dist/kysely/index.js +1 -1
  148. package/dist/limits-CAhpRrhk.js +167 -0
  149. package/dist/{load-BaEamml-.js → load-C4p4VgwR.js} +2 -2
  150. package/dist/load-DiBUJx77.js +1 -0
  151. package/dist/{login-9ycIcJZH.js → login-CzwlsBEO.js} +4 -4
  152. package/dist/{login-CM_etiLM.js → login-DoLxv1s5.js} +3 -3
  153. package/dist/{manifest-CCd-xrM3.js → manifest-BAf7cgRx.js} +35 -35
  154. package/dist/{map-claims-PQwHynxV.js → map-claims-CAa_bQt9.js} +1 -1
  155. package/dist/{map-error-EOhahOVA.js → map-error-p4ROJ_26.js} +1 -1
  156. package/dist/mcp/index.d.ts +9 -9
  157. package/dist/mcp/index.js +9 -8
  158. package/dist/{migrate-CkLHdwuH.js → migrate-DVsxeE0y.js} +1 -1
  159. package/dist/{module-values-BYuNtdK5.js → module-values-BLiVlO1X.js} +3 -3
  160. package/dist/nest/index.d.ts +5 -5
  161. package/dist/nest/index.js +3 -3
  162. package/dist/next/index.d.ts +43 -17
  163. package/dist/next/index.js +54 -21
  164. package/dist/next/plugin.d.ts +1 -1
  165. package/dist/next/plugin.js +1 -1
  166. package/dist/node/index.d.ts +5 -5
  167. package/dist/node/index.js +2 -2
  168. package/dist/openai/index.d.ts +5 -5
  169. package/dist/openai/index.js +3 -3
  170. package/dist/openapi/index.d.ts +5 -59
  171. package/dist/openapi/index.js +3 -2
  172. package/dist/{openapi-BOsx0xn9.js → openapi-Cc-aS9xC.js} +6 -135
  173. package/dist/{openapi-QnnU2A1c.js → openapi-DroBcLJZ.js} +2 -2
  174. package/dist/{openapi-DA7FVG2F.js → openapi-EmvKwuWj.js} +4 -4
  175. package/dist/{operations-Ci_rT6Uo.d.ts → operations-BMPx7HyO.d.ts} +1 -1
  176. package/dist/optional-8TKc-0j4.js +47 -0
  177. package/dist/orpc/index.d.ts +7 -7
  178. package/dist/orpc/index.js +4 -4
  179. package/dist/otel/index.d.ts +3 -3
  180. package/dist/otel/index.js +1 -1
  181. package/dist/{output-KT0a3B3H.js → output-CYgfpT6o.js} +1 -1
  182. package/dist/{ownership-CeNOtQMV.js → ownership-adPAsUwY.js} +15 -13
  183. package/dist/{parse-CXTT7hBq.js → parse-CORUNcCo.js} +1 -1
  184. package/dist/{parse-local-manifest-CE4tgFsj.d.ts → parse-local-manifest-BaCqsqwC.d.ts} +1 -1
  185. package/dist/pdp/index.d.ts +3 -3
  186. package/dist/pdp/index.js +4 -3
  187. package/dist/{permdock-DbAq8_Fp.js → permdock-B5LyNVgn.js} +70 -34
  188. package/dist/{permdock-CsrvbzHk.d.ts → permdock-BaB-KQqn.d.ts} +46 -9
  189. package/dist/{permissions-Dz79qsFw.js → permissions-COpRGKt7.js} +1 -1
  190. package/dist/{permissions-Bx6UI8n1.d.ts → permissions-DriWkV7q.d.ts} +1 -2
  191. package/dist/{policy-from-catalog-BtqfxytV.js → policy-from-catalog-Cy103lsm.js} +8 -8
  192. package/dist/{policy-types-BI9C5Sp5.d.ts → policy-types-rNfz7t0M.d.ts} +9 -3
  193. package/dist/{policy-CaAME-Rh.js → policy-wGzbAPQF.js} +7 -7
  194. package/dist/{policy-Dh9WVSVz.d.ts → policy-x8RBKW8d.d.ts} +2 -2
  195. package/dist/{postgrest-CWCCbaxm.d.ts → postgrest-Cn0Res25.d.ts} +9 -21
  196. package/dist/powersync-BdoR7nwS.js +1 -0
  197. package/dist/{powersync-CWsN-QaK.js → powersync-BeI0VmEK.js} +2 -2
  198. package/dist/{powersync-DiqY3VBG.js → powersync-Dpa5AnnN.js} +11 -11
  199. package/dist/preset/index.js +1 -1
  200. package/dist/{preset-pPrVyGU5.js → preset-Bn5Z54cH.js} +5 -6
  201. package/dist/prisma/index.d.ts +2 -2
  202. package/dist/prisma/index.js +1 -1
  203. package/dist/{protected-action-CuG0xz4P.d.ts → protected-action-C4aj1KjO.d.ts} +6 -7
  204. package/dist/{protected-action-CD1HXwQK.js → protected-action-E7Sdt_Dt.js} +1 -1
  205. package/dist/{provider-ihxuJbMi.d.ts → provider-B-1DlOGM.d.ts} +1 -1
  206. package/dist/{provider-qESIf_C0.js → provider-DKO9KHua.js} +2 -2
  207. package/dist/{provider-store-BTHGJH9j.js → provider-store-D4PU1my_.js} +2 -2
  208. package/dist/{pull-B4EhSqOG.js → pull-3tkn25ll.js} +5 -5
  209. package/dist/pull-D90HqWNP.js +1 -0
  210. package/dist/{push-DYOI4bPf.js → push-dMyKdlEm.js} +6 -6
  211. package/dist/{pushed-policy-Dszouliu.js → pushed-policy-Bi5-il4C.js} +2 -2
  212. package/dist/{pushed-policy-P0hgyLBh.d.ts → pushed-policy-P55cJNx5.d.ts} +1 -1
  213. package/dist/react/index.d.ts +6 -6
  214. package/dist/react/index.js +3 -3
  215. package/dist/react/provider-client.d.ts +1 -1
  216. package/dist/react/provider-client.js +1 -1
  217. package/dist/react-native/index.d.ts +9 -9
  218. package/dist/react-native/index.js +7 -7
  219. package/dist/{relation-walk-DK_gkgL7.js → relation-walk-BDTaTKTM.js} +1 -1
  220. package/dist/{relations-BxvRvDHK.js → relations-CMsJ1ARY.js} +1 -1
  221. package/dist/{replay-DYXI4gRN.d.ts → replay-DKhFvt0L.d.ts} +1 -1
  222. package/dist/{request-context-VjeXst1z.js → request-context-5gl_oxO1.js} +2 -2
  223. package/dist/resend/index.d.ts +4 -4
  224. package/dist/resend/index.js +2 -2
  225. package/dist/{resolve-names-BIHnWL_L.js → resolve-names-BnGJU88N.js} +4 -4
  226. package/dist/{rls-C7qXye9M.js → rls-DIYSRnDZ.js} +1 -1
  227. package/dist/{rls-CMFZWosz.js → rls-qrehUPf_.js} +45 -18
  228. package/dist/{role-builder-C5AgaC1x.js → role-builder-boQiUvfo.js} +3 -3
  229. package/dist/{rpc-CYXICjM1.d.ts → rpc-BqRiVpbP.d.ts} +2 -2
  230. package/dist/{rpc-BNIQwEB6.js → rpc-Dhi55Whd.js} +2 -2
  231. package/dist/run-elFdnSZx.js +1 -0
  232. package/dist/{run-CMJX9x7b.js → run-oNqBe0gc.js} +3 -3
  233. package/dist/{run-ticket-CjvXr6wj.js → run-ticket-Ddxt9OuU.js} +2 -2
  234. package/dist/{run-ticket-BXYqQ9dy.d.ts → run-ticket-Dulj4RQk.d.ts} +2 -2
  235. package/dist/{saas-DHFfthXv.js → saas-DABv6vjy.js} +6 -5
  236. package/dist/{scan-CSOkcNdl.js → scan-BYXqcgON.js} +1 -1
  237. package/dist/{schema-7pXCaRYB.js → schema-Wf-SvlHG.js} +1 -1
  238. package/dist/scim/index.d.ts +1 -1
  239. package/dist/scim/index.js +1 -1
  240. package/dist/{scopes-BSdYaGHs.js → scopes-gdH__vDZ.js} +1 -1
  241. package/dist/server/index.d.ts +11 -10
  242. package/dist/server/index.js +7 -6
  243. package/dist/server-CKjFooaJ.js +147 -0
  244. package/dist/{server-types-Bfl-IrzZ.d.ts → server-types--_Hann81.d.ts} +9 -9
  245. package/dist/{shared-sW3VYchq.js → shared-DfaIWvIJ.js} +11 -2
  246. package/dist/{sink-RwmP7ZHs.d.ts → sink-Cs6z34AX.d.ts} +4 -4
  247. package/dist/{skills-DAjg-rgF.js → skills-417bOj4o.js} +1 -1
  248. package/dist/{skills-DrX83QBK.js → skills-B9U465B7.js} +2 -2
  249. package/dist/{snapshot-DHPih65J.js → snapshot-C2j96x97.js} +4 -4
  250. package/dist/{snapshot-cache-MPinwwgZ.d.ts → snapshot-cache-Cc7VNabe.d.ts} +1 -1
  251. package/dist/solid/index.d.ts +6 -7
  252. package/dist/solid/index.js +2 -2
  253. package/dist/solid-start/index.d.ts +6 -6
  254. package/dist/solid-start/index.js +3 -3
  255. package/dist/{sources-sgQlMfmz.d.ts → sources-BfTza0zT.d.ts} +1 -1
  256. package/dist/{src-Cop53_X1.js → src-BG9YJM3Q.js} +96 -247
  257. package/dist/ssf/index.d.ts +3 -3
  258. package/dist/ssf/index.js +3 -3
  259. package/dist/{standard-webhooks-CFZIYtBF.d.ts → standard-webhooks-CJBgfl7y.d.ts} +2 -2
  260. package/dist/{store-CSOsXd5s.js → store-BpKH-pLm.js} +2 -2
  261. package/dist/{store-CRQ5VrWR.d.ts → store-DSyjHD5-.d.ts} +5 -5
  262. package/dist/{store-options-CDvoX52-.js → store-options-CXv6BHH6.js} +5 -6
  263. package/dist/{stores-PpYVQ5yF.js → stores-BuqAHjp_.js} +1 -1
  264. package/dist/{stores-pEBMy94l.d.ts → stores-C6-7TPTV.d.ts} +6 -7
  265. package/dist/{postgrest-BrjrckDG.js → subject-BqFwS6l3.js} +214 -319
  266. package/dist/subject-cache-BT1fGuea.js +193 -0
  267. package/dist/subject-cache-d_Z4KAnm.d.ts +144 -0
  268. package/dist/supabase/index.d.ts +6 -5
  269. package/dist/supabase/index.js +3 -2
  270. package/dist/supabase/middleware.d.ts +6 -6
  271. package/dist/supabase/middleware.js +6 -6
  272. package/dist/{supabase-Cbl2orB2.js → supabase-D0J99yqL.js} +2 -2
  273. package/dist/{supabase-CVZuytCC.js → supabase-DnazO6W4.js} +3 -3
  274. package/dist/{supabase-hook-BUcu3vPM.js → supabase-hook-Bh5syR9N.js} +174 -62
  275. package/dist/supabase-hook-CVAenq-w.js +1 -0
  276. package/dist/{supautils-a_253u1X.js → supautils-ChXR-4Or.js} +302 -43
  277. package/dist/{support-session-BsmPCbz8.js → support-session-BGeEYDSq.js} +2 -2
  278. package/dist/svelte/index.d.ts +5 -5
  279. package/dist/svelte/index.js +3 -3
  280. package/dist/svelte/runtime.d.ts +3 -3
  281. package/dist/svelte/runtime.js +1 -1
  282. package/dist/svelte/source.d.ts +5 -5
  283. package/dist/svelte/source.js +2 -2
  284. package/dist/sveltekit/index.d.ts +6 -6
  285. package/dist/sveltekit/index.js +2 -2
  286. package/dist/{tables-XrvffTMj.js → tables-CbEOy2Ma.js} +137 -55
  287. package/dist/tanstack-start/index.d.ts +6 -6
  288. package/dist/tanstack-start/index.js +2 -2
  289. package/dist/{tenancy-DvOHHk3-.js → tenancy-BlxY5T0q.js} +2 -2
  290. package/dist/terminal/index.d.ts +6 -6
  291. package/dist/terminal/index.js +6 -6
  292. package/dist/testing/core.d.ts +1 -1
  293. package/dist/testing/core.js +1 -1
  294. package/dist/testing/fixtures/index.d.ts +35 -2
  295. package/dist/testing/fixtures/index.js +39 -2
  296. package/dist/testing/index.d.ts +41 -25
  297. package/dist/testing/index.js +114 -26
  298. package/dist/testing/saas/index.d.ts +5 -5
  299. package/dist/testing/saas/index.js +2 -2
  300. package/dist/testing/saas/permissions.d.ts +1 -1
  301. package/dist/testing/saas/permissions.js +1 -1
  302. package/dist/trpc/index.d.ts +6 -6
  303. package/dist/trpc/index.js +4 -4
  304. package/dist/{type-helpers-BjOLGVy1.d.ts → type-helpers-iXJEIDe7.d.ts} +3 -4
  305. package/dist/{types-p8mhWTcR.d.ts → types-B9F0EZAF.d.ts} +3 -3
  306. package/dist/{types-DZwEOsK1.d.ts → types-BSNZMp5b.d.ts} +1 -1
  307. package/dist/{types-MixnvXQ5.d.ts → types-BpxdxaRD.d.ts} +5 -5
  308. package/dist/{types-C3C9ien9.d.ts → types-CD1qmxdx.d.ts} +4 -4
  309. package/dist/{types-D1NjjwI4.d.ts → types-CS1DI_Ke.d.ts} +40 -9
  310. package/dist/{types-zh4WGQcP.d.ts → types-C_a44wSr.d.ts} +3 -3
  311. package/dist/{types-DBVSljAx.d.ts → types-Cq2rvv-C.d.ts} +3 -3
  312. package/dist/{types--_lpWUGV.d.ts → types-CuDXvyIT.d.ts} +5 -5
  313. package/dist/{types-7Vlz1Wi2.d.ts → types-DAyp592k.d.ts} +2 -2
  314. package/dist/{types-DjGZAU64.d.ts → types-NikV1pND.d.ts} +4 -4
  315. package/dist/{types-BzxA2OAD.d.ts → types-ZfjQB0KC.d.ts} +2 -2
  316. package/dist/{types-DotXrris.d.ts → types-_pi9kxS2.d.ts} +2 -2
  317. package/dist/unplugin/index.d.ts +1 -1
  318. package/dist/unplugin/index.js +1 -1
  319. package/dist/{usage-DPbdI3Vi.js → usage-0wsl83uw.js} +10 -10
  320. package/dist/{usage-DHsqp4lN.js → usage-Bl-BkXEq.js} +1 -1
  321. package/dist/usage-CmyGbo4e.js +1 -0
  322. package/dist/{validation-error-DkOK9zUE.d.ts → validation-error-DLAYFlkr.d.ts} +1 -1
  323. package/dist/{verify-C0jGJrmb.js → verify-BSLotSa0.js} +41 -24
  324. package/dist/version-sources-BC3hf2ME.js +34 -0
  325. package/dist/{permission-types-CAY-GU7e.d.ts → vocabulary-DeZvUaTw.d.ts} +69 -1
  326. package/dist/vue/index.d.ts +6 -7
  327. package/dist/vue/index.js +2 -2
  328. package/dist/{waiter-BjVI_Byg.d.ts → waiter-cbK1CBhT.d.ts} +2 -2
  329. package/dist/{watch-Dz2LNM1R.js → watch-BigZ260i.js} +2 -2
  330. package/dist/watch-CHURMgrv.js +1 -0
  331. package/dist/webmcp/index.d.ts +2 -2
  332. package/dist/{who-can-CZeAwQZD.js → who-can-CjfMP9a4.js} +8 -8
  333. package/dist/workflow/index.d.ts +3 -3
  334. package/dist/workflow/index.js +6 -5
  335. package/dist/workflow-sdk/index.d.ts +5 -5
  336. package/dist/{wrap-EQ6Or2Hi.d.ts → wrap-B-k2qHJx.d.ts} +2 -2
  337. package/package.json +16 -4
  338. package/skills/permdock-wire/references/presets-and-recipes.md +2 -2
  339. package/dist/better-supabase-ayun1IKE.js +0 -122
  340. package/dist/catalog-BTPySmbp.js +0 -1
  341. package/dist/collect-eSTXOZDC.js +0 -1
  342. package/dist/index-DuOF7OqS.d.ts +0 -222
  343. package/dist/load-CjnlPxpL.js +0 -1
  344. package/dist/powersync-CWCirKAJ.js +0 -1
  345. package/dist/pull-VzcECZ-R.js +0 -1
  346. package/dist/run-D2e1tybu.js +0 -1
  347. package/dist/supabase-hook-QWphWBnG.js +0 -1
  348. package/dist/usage-dmSjKx-Z.js +0 -1
  349. package/dist/version-cache-q5cpaDSt.d.ts +0 -57
  350. package/dist/vocabulary-DEJ5j4mR.d.ts +0 -70
  351. package/dist/watch-CS69ftMP.js +0 -1
  352. package/dist/where-scope-BAyOsPQW.js +0 -332
  353. package/dist/{approval-normalize-hlfO9BJv.js → approval-normalize-DNLW0zOM.js} +1 -1
  354. package/dist/{body-C9JbIoqb.js → body-B3ylkmmE.js} +1 -1
  355. package/dist/{catalog-doc-nrgfbh8I.js → catalog-doc-Zi0jRpyH.js} +2 -2
  356. package/dist/{device-BwbJNmb2.js → device-BkSynWdg.js} +1 -1
  357. package/dist/{prompt-BYc6drYW.js → prompt-D1Gj1W4Y.js} +1 -1
  358. package/dist/{scim-C30QBBoF.js → scim-BG6uPUeW.js} +1 -1
  359. package/dist/{wrap-C5PWzgkq.js → wrap-BKU5Arsu.js} +1 -1
@@ -0,0 +1 @@
1
+ export { n as runCloudPull } from "./pull-3tkn25ll.js";
@@ -3,13 +3,13 @@ import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
3
3
  import { t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
4
4
  import { a as describeError, n as CliError } from "./errors-BhRkoNS7.js";
5
5
  import { s as cliVersion } from "./version-DMQ0dnN5.js";
6
- import { i as loadConfiguredPolicy } from "./load-BaEamml-.js";
6
+ import { i as loadConfiguredPolicy } from "./load-C4p4VgwR.js";
7
7
  import { n as parseSupabaseManifest } from "./manifest-BdzBobNK.js";
8
- import { t as parseCatalog } from "./parse-CXTT7hBq.js";
9
- import { r as pushedPolicy } from "./pushed-policy-Dszouliu.js";
10
- import { n as runCatalog } from "./catalog-s0waIrfY.js";
11
- import { n as httpRequest, t as authFailure } from "./http-DhMWeB_h.js";
12
- import { a as pushAuth, l as cloudUrl, n as cliRuntime, u as firstNonEmpty } from "./auth-j3Eu-j4h.js";
8
+ import { t as parseCatalog } from "./parse-CORUNcCo.js";
9
+ import { r as pushedPolicy } from "./pushed-policy-Bi5-il4C.js";
10
+ import { n as runCatalog } from "./catalog-Y4CjN8NA.js";
11
+ import { n as httpRequest, t as authFailure } from "./http-dptLQzPP.js";
12
+ import { a as pushAuth, l as cloudUrl, n as cliRuntime, u as firstNonEmpty } from "./auth-BxXHxWRy.js";
13
13
  import "./manifest-json-CAGzls-C.js";
14
14
  import { existsSync, readFileSync } from "node:fs";
15
15
  import { resolve } from "node:path";
@@ -1,9 +1,9 @@
1
1
  import { t as compact } from "./compact-CAf557ZB.js";
2
2
  import { n as freezeDeep } from "./freeze-jjan0lCv.js";
3
3
  import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
4
- import { n as RFC3339_PATTERN } from "./time-nR1JesoH.js";
5
4
  import { i as wireValidity } from "./validity-Buc7w8E9.js";
6
- import { n as snapshotScopes } from "./instance-snapshot-Bi4-dJk0.js";
5
+ import { n as RFC3339_PATTERN } from "./time-nR1JesoH.js";
6
+ import { n as snapshotScopes } from "./instance-snapshot-D_dGTq--.js";
7
7
  import { n as copyJson, r as forbiddenKeyPath, t as checkSchema } from "./json-schema-BPGa-RjQ.js";
8
8
  //#region src/catalog/pushed-policy.ts
9
9
  const strings = {
@@ -1,4 +1,4 @@
1
- import { D as Policy, Er as Condition, In as Grantee, W as WireValidity, b as GrantMeta, f as BreakGlassSpec, in as SnapshotScope, qn as AppObligation, s as ApprovalRequirement, y as GrantLimit } from "./policy-types-BI9C5Sp5.js";
1
+ import { D as Policy, Er as Condition, In as Grantee, W as WireValidity, b as GrantMeta, f as BreakGlassSpec, in as SnapshotScope, qn as AppObligation, s as ApprovalRequirement, y as GrantLimit } from "./policy-types-rNfz7t0M.js";
2
2
  import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
3
3
  //#region src/catalog/pushed-policy.d.ts
4
4
  /**
@@ -1,9 +1,9 @@
1
- import { c as requiredPlans } from "../errors-OTE9u4Wk.js";
2
- import { i as describe } from "../describe-DibQM6g-.js";
3
- import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, f as ProtectedActionHandle, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-CRQ5VrWR.js";
1
+ import { c as requiredPlans } from "../errors-D_JIQJYb.js";
2
+ import { i as describe } from "../describe-DVobr5FX.js";
3
+ import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, f as ProtectedActionHandle, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-DSyjHD5-.js";
4
4
  import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-L9UOwATg.js";
5
- import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-MixnvXQ5.js";
5
+ import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-BpxdxaRD.js";
6
6
  import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
7
- import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, p as useRefreshOn, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-CuG0xz4P.js";
8
- import { t as PermDockProvider } from "../provider-ihxuJbMi.js";
7
+ import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, p as useRefreshOn, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-C4aj1KjO.js";
8
+ import { t as PermDockProvider } from "../provider-B-1DlOGM.js";
9
9
  export { type ActionResult, type ApprovalHandle, type ApprovalState, type AuthzChangeRefresh, type ClientPermDock, type ClientStatus, type EventSourceRefreshOptions, type FilterResult, type GateMode, type GateView, type PermDockDefaults, PermDockProvider, type PermDockProviderProps, type PermissionSet, type PermissionState, Protected, type ProtectedAction, type ProtectedActionHandle, type ProtectedActionView, type ProtectedProps, type RefreshTrigger, type RolesOptions, type SubjectView, type TenantView, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
@@ -2,7 +2,7 @@
2
2
  import { r as requiredPlans } from "../problem-details-CLDgX1KV.js";
3
3
  import { n as describe } from "../describe-BZAlPHxT.js";
4
4
  import { r as approvalHeaders } from "../protected-action-OpOxtTsN.js";
5
- import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-CDvoX52-.js";
6
- import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, p as useRefreshOn, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-CD1HXwQK.js";
7
- import { t as PermDockProvider } from "../provider-qESIf_C0.js";
5
+ import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-CXv6BHH6.js";
6
+ import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, p as useRefreshOn, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-E7Sdt_Dt.js";
7
+ import { t as PermDockProvider } from "../provider-DKO9KHua.js";
8
8
  export { PermDockProvider, Protected, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
@@ -1,2 +1,2 @@
1
- import { t as PermDockProvider } from "../provider-ihxuJbMi.js";
1
+ import { t as PermDockProvider } from "../provider-B-1DlOGM.js";
2
2
  export { PermDockProvider };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export { t as PermDockProvider } from "../provider-qESIf_C0.js";
2
+ export { t as PermDockProvider } from "../provider-DKO9KHua.js";
@@ -1,15 +1,15 @@
1
- import { $t as LocalSnapshotRows, Qt as LocalSnapshotManifest, Xt as LocalRowColumn, Yt as LocalMembershipRows, Zt as LocalRowValue, en as Snapshot, pr as CustomRole, qt as Instant, ut as SnapshotSource, vr as Membership } from "../policy-types-BI9C5Sp5.js";
2
- import { u as Permission } from "../permission-types-CAY-GU7e.js";
3
- import { c as requiredPlans } from "../errors-OTE9u4Wk.js";
4
- import { i as describe } from "../describe-DibQM6g-.js";
5
- import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-CE4tgFsj.js";
6
- import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, f as ProtectedActionHandle, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, t as ClientStore, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-CRQ5VrWR.js";
1
+ import { $t as LocalSnapshotRows, Qt as LocalSnapshotManifest, Xt as LocalRowColumn, Yt as LocalMembershipRows, Zt as LocalRowValue, en as Snapshot, pr as CustomRole, qt as Instant, ut as SnapshotSource, vr as Membership } from "../policy-types-rNfz7t0M.js";
2
+ import { w as Permission } from "../vocabulary-DeZvUaTw.js";
3
+ import { c as requiredPlans } from "../errors-D_JIQJYb.js";
4
+ import { i as describe } from "../describe-DVobr5FX.js";
5
+ import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-BaCqsqwC.js";
6
+ import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, f as ProtectedActionHandle, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, t as ClientStore, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-DSyjHD5-.js";
7
7
  import { i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, t as AuthzChangeRefresh } from "../refresh-on-L9UOwATg.js";
8
- import { r as ProtectedProps, t as PermDockDefaults } from "../types-MixnvXQ5.js";
8
+ import { r as ProtectedProps, t as PermDockDefaults } from "../types-BpxdxaRD.js";
9
9
  import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
10
- import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-CuG0xz4P.js";
10
+ import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-C4aj1KjO.js";
11
11
  import { n as RealtimeRefreshClient, t as RealtimeRefreshChannel } from "../client-JK504UCq.js";
12
- import { a as SubscribeOnline, i as SubscribeForeground, n as ReactNativePermDockProviderProps, r as SnapshotStorage, t as NativeRevalidate } from "../types-DjGZAU64.js";
12
+ import { a as SubscribeOnline, i as SubscribeForeground, n as ReactNativePermDockProviderProps, r as SnapshotStorage, t as NativeRevalidate } from "../types-NikV1pND.js";
13
13
  import { ReactElement } from "react";
14
14
  //#region src/react-native/guards.d.ts
15
15
  /**
@@ -3,19 +3,19 @@ import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
3
3
  import { n as freezeDeep } from "../freeze-jjan0lCv.js";
4
4
  import { r as requiredPlans } from "../problem-details-CLDgX1KV.js";
5
5
  import { n as describe } from "../describe-BZAlPHxT.js";
6
+ import { r as heldRoleNames, t as emptySnapshot } from "../from-snapshot-oR_N97dM.js";
6
7
  import { n as isThenable } from "../thenable-BNSM1U2R.js";
7
- import { h as secondsAt, m as rfc3339 } from "../time-nR1JesoH.js";
8
- import { d as scopeList, o as normalizeMemberships, p as tenantOf$1, s as resolveScope } from "../scopes-BSdYaGHs.js";
9
8
  import { o as flattenGrantee } from "../grantee-Dke-9rd1.js";
9
+ import { h as secondsAt, m as rfc3339 } from "../time-nR1JesoH.js";
10
+ import { d as scopeList, o as normalizeMemberships, p as tenantOf$1, s as resolveScope } from "../scopes-gdH__vDZ.js";
11
+ import { d as resolveActiveTenant, r as isMembershipExpired } from "../tenancy-BlxY5T0q.js";
12
+ import { a as bindConditionRefs, n as parseSnapshot } from "../snapshot-C2j96x97.js";
10
13
  import { t as byCodePoint } from "../compare-DTfyUunF.js";
11
- import { d as resolveActiveTenant, r as isMembershipExpired } from "../tenancy-DvOHHk3-.js";
12
- import { a as bindConditionRefs, n as parseSnapshot } from "../snapshot-DHPih65J.js";
13
- import { r as heldRoleNames, t as emptySnapshot } from "../from-snapshot-DHnb8Fh4.js";
14
14
  import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-Ce2N-Opr.js";
15
15
  import { r as approvalHeaders } from "../protected-action-OpOxtTsN.js";
16
- import { a as eventSourceRefresh, c as isJws, n as storeOf, r as authzChangeRefresh, t as adapterStore } from "../store-options-CDvoX52-.js";
16
+ import { a as eventSourceRefresh, c as isJws, n as storeOf, r as authzChangeRefresh, t as adapterStore } from "../store-options-CXv6BHH6.js";
17
17
  import { a as PermDockUiContext, i as PermDockStoreContext, n as useKeyed, t as useLiveOptions } from "../live-options-BBIT68le.js";
18
- import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-CD1HXwQK.js";
18
+ import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-E7Sdt_Dt.js";
19
19
  import { r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-Dbc-HDOS.js";
20
20
  import { useEffect, useMemo, useRef } from "react";
21
21
  import { jsx } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import { r as isRecord } from "./compact-CAf557ZB.js";
2
2
  import { r as ownGet } from "./paths-CUvURzHp.js";
3
- import { n as relationId } from "./relations-BxvRvDHK.js";
3
+ import { n as relationId } from "./relations-CMsJ1ARY.js";
4
4
  //#region src/core/relation-walk.ts
5
5
  /** Whether the holder's period covers `now`. */
6
6
  function activeNow(holder, now) {
@@ -1,7 +1,7 @@
1
1
  import { r as isRecord } from "./compact-CAf557ZB.js";
2
- import { i as idText } from "./expiry-6XByK0dm.js";
3
2
  import { n as isThenable } from "./thenable-BNSM1U2R.js";
4
3
  import { a as expandRelation } from "./resource-relations-8-pCScBO.js";
4
+ import { n as idText } from "./ids-DzhJaCUj.js";
5
5
  //#region src/core/relations.ts
6
6
  function isInstant(value) {
7
7
  return value === void 0 || typeof value === "number" && Number.isFinite(value);
@@ -1,4 +1,4 @@
1
- import { l as ReplayStore } from "./types-DBVSljAx.js";
1
+ import { l as ReplayStore } from "./types-Cq2rvv-C.js";
2
2
  //#region src/ssf/replay.d.ts
3
3
  declare function memoryReplayStore(): ReplayStore;
4
4
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { t as assertAppData } from "./app-data-UNNm07jV.js";
2
- import { n as wrapPermDock } from "./wrap-C5PWzgkq.js";
3
- import { t as buildInstance } from "./build-instance-CkRKgjSj.js";
2
+ import { n as wrapPermDock } from "./wrap-BKU5Arsu.js";
3
+ import { t as buildInstance } from "./build-instance-B0vsViF5.js";
4
4
  //#region src/core/request-context.ts
5
5
  /**
6
6
  * Errors an adapter raises around one instance (a `context` hook that threw, an
@@ -1,7 +1,7 @@
1
- import { X as DecisionSink } from "../policy-types-BI9C5Sp5.js";
2
- import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-CQFiO1KE.js";
3
- import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-p8mhWTcR.js";
4
- import { l as ReplayStore } from "../types-DBVSljAx.js";
1
+ import { X as DecisionSink } from "../policy-types-rNfz7t0M.js";
2
+ import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-2hTqo6IM.js";
3
+ import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-B9F0EZAF.js";
4
+ import { l as ReplayStore } from "../types-Cq2rvv-C.js";
5
5
  //#region src/resend/approval-email.d.ts
6
6
  type ApprovalEmailOptions = {
7
7
  /**
@@ -4,9 +4,9 @@ import { o as statusProblem } from "../problem-details-CLDgX1KV.js";
4
4
  import { l as isRfc3339, p as nowSeconds } from "../time-nR1JesoH.js";
5
5
  import { n as sha256, t as bytesToBase64Url } from "../sha256-C-4WXKIu.js";
6
6
  import { t as deliveryEvent } from "../delivery-event-JioK5YbS.js";
7
- import { n as readBodyText } from "../body-text-DQhcmqdY.js";
8
7
  import { l as problemResponse, o as methodNotAllowed } from "../problem-BWP1l86g.js";
9
- import { t as bodyTooLarge } from "../body-C9JbIoqb.js";
8
+ import { n as readBodyText } from "../body-text-DQhcmqdY.js";
9
+ import { t as bodyTooLarge } from "../body-B3ylkmmE.js";
10
10
  import { n as approvalUrlFor } from "../approval-prompt-B8hQY69x.js";
11
11
  import { i as isDeliveryTarget } from "../target-qdEAnnhU.js";
12
12
  //#region src/resend/approval-email.ts
@@ -1,12 +1,12 @@
1
1
  import { n as freezeDeep } from "./freeze-jjan0lCv.js";
2
2
  import { c as listPermissions } from "./permission-registry-B8tYxPIt.js";
3
- import { d as scopeList } from "./scopes-BSdYaGHs.js";
3
+ import { d as scopeList } from "./scopes-gdH__vDZ.js";
4
4
  import { i as configError } from "./errors-BhRkoNS7.js";
5
5
  import "./budget-BBCPDOGP.js";
6
6
  import "./sources-C4vkzZJV.js";
7
- import { A as quoteQualified, D as qualified, I as scopeTypeOf, O as quoteIdent } from "./shared-sW3VYchq.js";
8
- import { F as globalRoleRows, Q as graphSqlName, Z as graphHelper, _ as PERMISSION_HELPERS, at as memberForHelper, c as holderSources, ct as memberIdsHelper, dt as permittedForHelper, ft as permittedIdsHelper, ht as scopeTable, lt as memberOfHelper, nt as inheritedRowsHelper, o as graphPlan, pt as restrictedHelper, r as tableNames, rt as isTeamScope, tt as hasPermittedUsers, v as checkName, x as permittedByPermissionHelper } from "./tables-XrvffTMj.js";
9
- import { t as FIELD_VIEWS } from "./fields-D_TfExiI.js";
7
+ import { A as quoteQualified, D as qualified, L as scopeTypeOf, O as quoteIdent } from "./shared-DfaIWvIJ.js";
8
+ import { C as permittedByPermissionHelper, Ct as scopeTable, U as globalRoleRows, _t as memberOfHelper, at as graphHelper, b as checkName, bt as permittedIdsHelper, c as graphPlan, dt as isTeamScope, gt as memberIdsHelper, i as tableNames, lt as hasPermittedUsers, ot as graphSqlName, pt as memberForHelper, u as holderSources, ut as inheritedRowsHelper, xt as restrictedHelper, y as PERMISSION_HELPERS, yt as permittedForHelper } from "./tables-CbEOy2Ma.js";
9
+ import { t as FIELD_VIEWS } from "./fields-CVyOk-f1.js";
10
10
  //#region src/cli/rls/permission-holders.ts
11
11
  /**
12
12
  * `permitted_<scope>_users(p_permission, p_id)`. Names are part of the SQL
@@ -192,7 +192,7 @@ async function rlsInput(ctx, verb, shape, options) {
192
192
  };
193
193
  }
194
194
  async function runRls(input) {
195
- return (await import("./rls-CMFZWosz.js")).runRls(input);
195
+ return (await import("./rls-qrehUPf_.js")).runRls(input);
196
196
  }
197
197
  const generate = defineLeaf({
198
198
  flags: {
@@ -1,32 +1,32 @@
1
1
  import { t as compact } from "./compact-CAf557ZB.js";
2
2
  import { c as listPermissions, u as renamedKeys } from "./permission-registry-B8tYxPIt.js";
3
3
  import { i as dateAt } from "./time-nR1JesoH.js";
4
- import { p as scopeField } from "./tenancy-DvOHHk3-.js";
4
+ import { p as scopeField } from "./tenancy-BlxY5T0q.js";
5
5
  import { a as describeError, i as configError, o as exitCodeOfError, u as usageResult } from "./errors-BhRkoNS7.js";
6
6
  import { t as policyRowConditionKeys } from "./row-conditions-BAGHOmVq.js";
7
7
  import { o as sqlFiles } from "./files-BSjrtIHw.js";
8
- import { c as requirePolicy } from "./load-BaEamml-.js";
8
+ import { i as requirePeer, n as packageManagerOf, t as addLine } from "./peer-BuK9F53f.js";
9
+ import { c as requirePolicy } from "./load-C4p4VgwR.js";
9
10
  import { i as qualifySqlTable, r as escapeSqlIdent } from "./sql-0WjxIp9g.js";
10
11
  import "./sources-C4vkzZJV.js";
11
- import { t as policyFromCatalog } from "./policy-from-catalog-BtqfxytV.js";
12
+ import { t as policyFromCatalog } from "./policy-from-catalog-Cy103lsm.js";
12
13
  import { t as beforeFirst } from "./text-BMFRfBqc.js";
13
14
  import { i as INDEXES_MARKER, n as GRANTS_MARKER, o as SEEDS_MARKER, t as BACKFILL_MARKER } from "./markers-BeHZ4x9Q.js";
14
- import { a as nonEmptyOr } from "./output-KT0a3B3H.js";
15
- import { i as requirePeer, n as packageManagerOf, t as addLine } from "./peer-BuK9F53f.js";
15
+ import { a as nonEmptyOr } from "./output-CYgfpT6o.js";
16
16
  import { t as POLICY_NOT_PUBLISHED } from "./problem-types-DSsRfONQ.js";
17
- import { t as fetchProjectPolicy } from "./pull-B4EhSqOG.js";
17
+ import { t as fetchProjectPolicy } from "./pull-3tkn25ll.js";
18
18
  import { n as MIGRATION_DIRS } from "./constants-DcJABbLW.js";
19
19
  import { a as isSeedsDirectory, c as parseSplit, d as seedsMigration, f as writeOutputFiles, l as partPath, n as dataMigrationFile, r as driftOf, u as pgDeltaPath } from "./output-files-CM0BnH05.js";
20
20
  import { t as connectPgPool } from "./pg-Ddxsd5ZB.js";
21
- import { b as rbacScaffold, d as resolveSchemas, f as schemasRefusal, o as supabaseHookSql, p as declarativeSql, s as approvalsSql, t as grantsLabel, u as isSupabaseSchemas, y as parseRbacAuthorize } from "./supabase-hook-BUcu3vPM.js";
22
- import { A as quoteQualified, D as qualified$1, I as scopeTypeOf, O as quoteIdent$1, _ as subjectClaimJsonSql, c as SESSION_LIVE_HELPER, g as sessionLiveHelperSql, j as quoteTable, k as quoteLiteral, r as HELPERS, t as CUSTOM_ROLES, y as subjectIdSql } from "./shared-sW3VYchq.js";
23
- import { C as accessSql, G as byKey, T as seedSql, Z as graphHelper, ct as memberIdsHelper, ft as permittedIdsHelper, ht as scopeTable, mt as scopeSources, r as tableNames, s as graphSql, w as helpersSql, x as permittedByPermissionHelper, y as permissionHelpersSql } from "./tables-XrvffTMj.js";
24
- import { c as breakGlassKey, i as assignmentSql, l as collectGrants, n as ownershipSql, s as breakGlassHolder } from "./ownership-CeNOtQMV.js";
21
+ import { b as rbacScaffold, d as resolveSchemas, f as schemasRefusal, o as supabaseHookSql, p as declarativeSql, s as approvalsSql, t as grantsLabel, u as isSupabaseSchemas, y as parseRbacAuthorize } from "./supabase-hook-Bh5syR9N.js";
22
+ import { A as quoteQualified, D as qualified$1, L as scopeTypeOf, O as quoteIdent$1, _ as subjectClaimJsonSql, c as SESSION_LIVE_HELPER, g as sessionLiveHelperSql, j as quoteTable, k as quoteLiteral, r as HELPERS, t as CUSTOM_ROLES, y as subjectIdSql } from "./shared-DfaIWvIJ.js";
23
+ import { $ as byKey, C as permittedByPermissionHelper, Ct as scopeTable, E as helpersSql, O as seedSql, St as scopeSources, T as accessSql, at as graphHelper, bt as permittedIdsHelper, gt as memberIdsHelper, i as tableNames, l as graphSql, x as permissionHelpersSql } from "./tables-CbEOy2Ma.js";
24
+ import { c as breakGlassKey, i as assignmentSql, l as collectGrants, n as ownershipSql, s as breakGlassHolder } from "./ownership-adPAsUwY.js";
25
25
  import { a as splitUndiffed } from "./deciding-columns-NB4wcyBf.js";
26
- import { a as fieldViewsSql, c as ACTOR_MAY_WRITE, f as readOnlyActorKinds, i as fieldViews, l as actorMayWriteSql, n as columnGrantSql, o as rowBranches, p as readOnlyActorPolicies, r as columnRevokeSql, u as assemblePolicies } from "./fields-D_TfExiI.js";
27
- import { n as permissionHoldersSql } from "./resolve-names-BIHnWL_L.js";
28
- import { _ as indexTargets, a as verifyResult, b as readTableIndexFacts, c as callsHelper, g as INDEX_COLUMNS_SQL, h as COLUMNS_SQL, i as verifyIgnores, l as helperCallKeys, m as tableFor, n as runRlsVerify, o as HELPER_TABLES, p as compileGrants, r as rlsFinding, v as indexesSql, y as pruneIndexTargets } from "./verify-C0jGJrmb.js";
29
- import { a as buildContext, c as levelKeys, d as rebuildPlan, i as splitsPart, l as rowHelpersSql, n as generateOptions, o as CANDIDATES, r as isRefusal, s as inheritTargets, t as supautilsRejections, u as DROPPED_LIST } from "./supautils-a_253u1X.js";
26
+ import { a as fieldViewsSql, c as ACTOR_MAY_WRITE, f as readOnlyActorKinds, i as fieldViews, l as actorMayWriteSql, n as columnGrantSql, o as rowBranches, p as readOnlyActorPolicies, r as columnRevokeSql, u as assemblePolicies } from "./fields-CVyOk-f1.js";
27
+ import { n as permissionHoldersSql } from "./resolve-names-BnGJU88N.js";
28
+ import { _ as INDEX_COLUMNS_SQL, a as verifyResult, b as pruneIndexTargets, c as callsHelper, g as COLUMNS_SQL, h as tableFor, i as verifyIgnores, l as helperCallKeys, m as inferredCommand, n as runRlsVerify, o as HELPER_TABLES, p as compileGrants, r as rlsFinding, v as indexTargets, x as readTableIndexFacts, y as indexesSql } from "./verify-BSLotSa0.js";
29
+ import { a as buildContext, c as levelKeys, d as rebuildPlan, i as splitsPart, l as rowHelpersSql, n as generateOptions, o as CANDIDATES, r as isRefusal, s as inheritTargets, t as supautilsRejections, u as DROPPED_LIST } from "./supautils-ChXR-4Or.js";
30
30
  import { readFileSync } from "node:fs";
31
31
  import { basename, delimiter, join } from "node:path";
32
32
  import { spawn } from "node:child_process";
@@ -285,9 +285,32 @@ function explainRls(input) {
285
285
  resource,
286
286
  permissions: [...new Set(generated.compiled.branches.flatMap((branch) => branch.resource === resource && branch.coverage !== true ? [branch.permissionKey] : []))].toSorted()
287
287
  })),
288
+ inferredActions: inferredActions(generated, rls?.actions),
288
289
  triggers: generatedTriggers(input.text)
289
290
  };
290
291
  }
292
+ function inferredActions(generated, actions) {
293
+ const found = /* @__PURE__ */ new Map();
294
+ for (const branch of generated.compiled.branches) {
295
+ if (branch.resource === void 0) continue;
296
+ const base = branch.permissionKey.split("@")[0] ?? branch.permissionKey;
297
+ const action = base.slice(branch.resource.length + 1);
298
+ const command = inferredCommand(action, actions);
299
+ if (command !== void 0) {
300
+ const entry = found.get(action) ?? {
301
+ command,
302
+ keys: /* @__PURE__ */ new Set()
303
+ };
304
+ entry.keys.add(base);
305
+ found.set(action, entry);
306
+ }
307
+ }
308
+ return [...found.entries()].toSorted(([a], [b]) => a < b ? -1 : 1).map(([action, { command, keys }]) => ({
309
+ action,
310
+ command,
311
+ permissions: [...keys].toSorted()
312
+ }));
313
+ }
291
314
  /** The text report of `explain`. */
292
315
  function describeExplain(explain) {
293
316
  const lines = [
@@ -315,6 +338,10 @@ function describeExplain(explain) {
315
338
  lines.push("", "row helpers:");
316
339
  for (const helper of explain.rowHelpers) lines.push(` ${helper.resource}: ${helper.permissions.join(", ")}`);
317
340
  }
341
+ if (explain.inferredActions.length > 0) {
342
+ lines.push("", "inferred actions (set rls.actions to change):");
343
+ for (const item of explain.inferredActions) lines.push(` ${item.action} -> ${item.command}: ${item.permissions.join(", ")}`);
344
+ }
318
345
  if (explain.triggers.length > 0) {
319
346
  lines.push("", "generated triggers:");
320
347
  for (const trigger of explain.triggers) lines.push(` ${trigger.name} on ${trigger.table} (${trigger.reason})`);
@@ -1027,7 +1054,7 @@ function realtimeStoragePolicies(ctx, facts, config, warnings = []) {
1027
1054
  }
1028
1055
  //#endregion
1029
1056
  //#region src/cli/rls/generate-policies.ts
1030
- const ACTOR_GUARDS_HEADER = "-- rls.readOnlyActors with --helpers-only: restrictive policies on the write commands, which narrow the hand-written policies and grant nothing. A table that does not exist yet is skipped.";
1057
+ const ACTOR_GUARDS_HEADER = "-- rls.readOnlyActors with --helpers-only: restrictive policies on the write commands, which narrow the hand-written policies and grant nothing. Apply this after the migrations that create the tables.";
1031
1058
  const SERVICE_TABLES_HEADER = "-- Supabase Realtime and Storage: rls.realtime and rls.storage. RLS on both tables is Supabase's.";
1032
1059
  /**
1033
1060
  * A policy that applies only where its table exists. The Realtime and Storage
@@ -1119,7 +1146,7 @@ function generatePolicies(input, policy, options, built, warnings) {
1119
1146
  force,
1120
1147
  views,
1121
1148
  policies: helpersOnly ? [] : withActors(assembled),
1122
- ...actorGuards.length === 0 ? {} : { actorGuards: [ACTOR_GUARDS_HEADER, ...actorGuards.map(guardedPolicySql)].join("\n") }
1149
+ ...actorGuards.length === 0 ? {} : { actorGuards: [ACTOR_GUARDS_HEADER, ...actorGuards.map((item) => policySql(item))].join("\n") }
1123
1150
  };
1124
1151
  if (servicePolicies.length === 0) return generated;
1125
1152
  return {
@@ -2502,7 +2529,7 @@ async function migrate(input) {
2502
2529
  output: generated.output
2503
2530
  };
2504
2531
  await requirePeer(() => import("pgsql-parser"), "pgsql-parser", "permdock rls migrate", input.cwd, PGSQL_PARSER_MAJOR);
2505
- const { migrateTarget, runRlsMigrate } = await import("./migrate-CkLHdwuH.js");
2532
+ const { migrateTarget, runRlsMigrate } = await import("./migrate-DVsxeE0y.js");
2506
2533
  return runRlsMigrate({
2507
2534
  cwd: input.cwd,
2508
2535
  sql: input.sql,
@@ -2618,7 +2645,7 @@ async function runRls(input) {
2618
2645
  }
2619
2646
  case "import": {
2620
2647
  await requirePeer(() => import("pgsql-parser"), "pgsql-parser", "permdock rls import", input.cwd, PGSQL_PARSER_MAJOR);
2621
- const { runRlsImport } = await import("./import-C2ExjVvv.js");
2648
+ const { runRlsImport } = await import("./import-CvXswHDy.js");
2622
2649
  return runRlsImport({
2623
2650
  cwd: input.cwd,
2624
2651
  config: input.config,
@@ -2,12 +2,12 @@ import { a as sole, n as isReadonlyArray, r as isRecord, t as compact } from "./
2
2
  import { n as freezeDeep } from "./freeze-jjan0lCv.js";
3
3
  import { i as ownKeys, n as isForbiddenKey, t as assertSafeKey } from "./paths-CUvURzHp.js";
4
4
  import { c as isConditionDate, l as isConditionRef, r as isSubjectRef, s as isCondition, u as isSqlFunctionField } from "./refs-C8BKxc_e.js";
5
+ import { c as sanitizeFields, n as normalizeValidity } from "./validity-Buc7w8E9.js";
5
6
  import { c as listPermissions, o as isPermission } from "./permission-registry-B8tYxPIt.js";
6
7
  import { n as assertMetaValue, r as parseAppData, t as assertAppData } from "./app-data-UNNm07jV.js";
7
- import { a as durationOf, r as assertDuration } from "./time-nR1JesoH.js";
8
8
  import { d as roleScopeOf, g as isRole, o as flattenGrantee, r as asGrantee, u as roleNameOf } from "./grantee-Dke-9rd1.js";
9
- import { a as normalizeApproval, t as activationApproval } from "./approval-normalize-hlfO9BJv.js";
10
- import { c as sanitizeFields, n as normalizeValidity } from "./validity-Buc7w8E9.js";
9
+ import { a as durationOf, r as assertDuration } from "./time-nR1JesoH.js";
10
+ import { a as normalizeApproval, t as activationApproval } from "./approval-normalize-DNLW0zOM.js";
11
11
  //#region src/conditions/opaque.ts
12
12
  function opaque(input) {
13
13
  return freezeDeep({
@@ -1,5 +1,5 @@
1
- import { u as Permission } from "./permission-types-CAY-GU7e.js";
2
- import { o as ProtectOptions } from "./server-types-Bfl-IrzZ.js";
1
+ import { w as Permission } from "./vocabulary-DeZvUaTw.js";
2
+ import { o as ProtectOptions } from "./server-types--_Hann81.js";
3
3
  //#region src/server/stream.d.ts
4
4
  type StreamProtectOptions = ProtectOptions & {
5
5
  /**
@@ -1,7 +1,7 @@
1
1
  import { t as compact } from "./compact-CAf557ZB.js";
2
- import { s as requestFromContext } from "./http-DKLXrFGk.js";
3
2
  import { n as tenantScope } from "./adapter-context-OHikyRqV.js";
4
- import { t as adapterKernel } from "./bind-CJf7S-Jd.js";
3
+ import { s as requestFromContext } from "./http-DKLXrFGk.js";
4
+ import { t as adapterKernel } from "./bind-B4Z0U2Gr.js";
5
5
  import { r as guardIterable } from "./stream-DQ3rbO3J.js";
6
6
  //#region src/server/rpc.ts
7
7
  /** The tRPC and oRPC error code for a Problem Details status. */
@@ -0,0 +1 @@
1
+ export { t as run } from "./run-oNqBe0gc.js";
@@ -1,13 +1,13 @@
1
1
  import { i as dateAt } from "./time-nR1JesoH.js";
2
2
  import { a as describeError, l as problemOf, n as CliError, r as cliProblem, s as kindOfCode } from "./errors-BhRkoNS7.js";
3
3
  import { s as cliVersion } from "./version-DMQ0dnN5.js";
4
- import { a as resolveCwd, i as readConfig } from "./config-D2oXUwos.js";
4
+ import { a as resolveCwd, i as readConfig } from "./config-DyNanTjZ.js";
5
5
  import { t as beforeFirst } from "./text-BMFRfBqc.js";
6
6
  import { a as GLOBAL_FLAGS, i as suggestion, n as parseFlags, r as parseLeaf } from "./args-iafbHiXn.js";
7
7
  import { r as progressReporter, t as redact } from "./credentials-dkycUsY3.js";
8
- import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-CCd-xrM3.js";
8
+ import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-BAf7cgRx.js";
9
9
  import { t as createStyle } from "./style-Ds11Hmk4.js";
10
- import { i as githubAnnotations, n as envelope, o as sarifLog, t as dataOf } from "./output-KT0a3B3H.js";
10
+ import { i as githubAnnotations, n as envelope, o as sarifLog, t as dataOf } from "./output-CYgfpT6o.js";
11
11
  import { stripVTControlCharacters } from "node:util";
12
12
  import { existsSync, statSync } from "node:fs";
13
13
  import { createHash } from "node:crypto";
@@ -1,10 +1,10 @@
1
1
  import { t as compact } from "./compact-CAf557ZB.js";
2
2
  import { n as freezeDeep } from "./freeze-jjan0lCv.js";
3
3
  import { a as ownRecord, n as isForbiddenKey } from "./paths-CUvURzHp.js";
4
- import { a as isId } from "./expiry-6XByK0dm.js";
5
4
  import { o as epochSeconds, p as nowSeconds } from "./time-nR1JesoH.js";
6
- import { t as anonymousSubject } from "./subject-C7RddW0G.js";
5
+ import { r as isId } from "./ids-DzhJaCUj.js";
7
6
  import { n as toWireDelegation, t as fromWireDelegation } from "./wire-delegation-Cv3W2eaM.js";
7
+ import { t as anonymousSubject } from "./subject-C7RddW0G.js";
8
8
  //#region src/server/run-ticket.ts
9
9
  const RUN_TICKET_TYP = "vnd.permdock.run+jwt";
10
10
  /**
@@ -1,5 +1,5 @@
1
- import { _t as TokenSigner, dr as AuthorizationDetail, gt as TokenFailureCause, hr as Delegation, lr as Actor, qt as Instant, sn as AuthEvent, vt as TokenVerifier, xr as Subject, yr as Principal } from "./policy-types-BI9C5Sp5.js";
2
- import { _ as PrincipalSource } from "./permdock-CsrvbzHk.js";
1
+ import { _t as TokenSigner, dr as AuthorizationDetail, gt as TokenFailureCause, hr as Delegation, lr as Actor, qt as Instant, sn as AuthEvent, vt as TokenVerifier, xr as Subject, yr as Principal } from "./policy-types-rNfz7t0M.js";
2
+ import { _ as PrincipalSource } from "./permdock-BaB-KQqn.js";
3
3
  //#region src/server/run-ticket.d.ts
4
4
  /**
5
5
  * What started the run: a saved automation, a background job, or a caller's own
@@ -1,12 +1,13 @@
1
1
  import { r as isRecord } from "./compact-CAf557ZB.js";
2
2
  import { i as principal } from "./refs-C8BKxc_e.js";
3
- import { a as deny, n as role, r as allow } from "./role-builder-C5AgaC1x.js";
4
- import { A as memoryCustomRoleSource, C as limits, S as memoryRelationSource, w as memoryLimitStore } from "./src-Cop53_X1.js";
5
- import { h as secondsAt } from "./time-nR1JesoH.js";
3
+ import { a as deny, n as role, r as allow } from "./role-builder-boQiUvfo.js";
4
+ import { D as memoryCustomRoleSource, x as memoryRelationSource } from "./src-BG9YJM3Q.js";
6
5
  import { l as relation, n as anyone } from "./grantee-Dke-9rd1.js";
7
- import { r as definePolicy } from "./policy-CaAME-Rh.js";
6
+ import { h as secondsAt } from "./time-nR1JesoH.js";
7
+ import { r as definePolicy } from "./policy-wGzbAPQF.js";
8
+ import { n as memoryLimitStore, t as limits } from "./limits-CAhpRrhk.js";
8
9
  import { s as quoteSqlLiteral } from "./sql-0WjxIp9g.js";
9
- import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-Dz79qsFw.js";
10
+ import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-COpRGKt7.js";
10
11
  //#region src/testing/saas/policy.ts
11
12
  function isSubject(user) {
12
13
  return user !== null && "context" in user && "principal" in user;
@@ -16,7 +16,7 @@ const scan = defineLeaf({
16
16
  }
17
17
  },
18
18
  async run(ctx, { flags }) {
19
- const { runAdoptionScan } = await import("./adoption-scan-UkQisAqe.js");
19
+ const { runAdoptionScan } = await import("./adoption-scan-_bHLMnVQ.js");
20
20
  return runAdoptionScan({
21
21
  cwd: ctx.cwd,
22
22
  srcPath: flags.src.length > 0 ? flags.src : ctx.config.collect?.srcPath ?? ["src"],
@@ -1,7 +1,7 @@
1
1
  import { r as isRecord } from "./compact-CAf557ZB.js";
2
2
  import { l as packageRoot } from "./version-DMQ0dnN5.js";
3
3
  import { t as DRAFT_PINS } from "./pins-nqarl3oE.js";
4
- import { a as nonEmptyOr } from "./output-KT0a3B3H.js";
4
+ import { a as nonEmptyOr } from "./output-CYgfpT6o.js";
5
5
  import { t as require__2020 } from "./2020-CJbO8Bvz.js";
6
6
  import { readFileSync } from "node:fs";
7
7
  import { join } from "node:path";
@@ -1,3 +1,3 @@
1
1
  import { t as SqlQuery } from "../sql-B80DFdpG.js";
2
- import { A as ScimFilter, C as DirectoryUser, D as PATCH_SCHEMA, E as LIST_SCHEMA, F as ScimTokenOptions, I as USER_SCHEMA, L as isDirectoryNotFoundError, M as ScimPage, N as ScimPageResult, O as ROLES_EXTENSION, P as ScimPatchOp, R as isDirectoryUniquenessError, S as DirectoryUniquenessError, T as GROUP_SCHEMA, _ as DirectoryChange, a as normalizePatchOps, b as DirectoryNotFoundError, c as filterSupported, d as resourceTypes, f as schemas, g as APP_DATA_EXTENSION, h as sha256Hex, i as directoryMembershipSource, j as ScimHandlerOptions, k as SCIM_CONTENT_TYPE, l as matchFilter, m as authenticateScim, n as postgresDirectoryStore, o as tenantFromPath, p as serviceProviderConfig, r as memoryDirectoryStore, s as scimHandler, t as PostgresDirectoryStoreOptions, u as parseScimFilter, v as DirectoryGroup, w as ERROR_SCHEMA, x as DirectoryStore, y as DirectoryMembershipSourceOptions } from "../index-CLbGOPBr.js";
2
+ import { A as ScimFilter, C as DirectoryUser, D as PATCH_SCHEMA, E as LIST_SCHEMA, F as ScimTokenOptions, I as USER_SCHEMA, L as isDirectoryNotFoundError, M as ScimPage, N as ScimPageResult, O as ROLES_EXTENSION, P as ScimPatchOp, R as isDirectoryUniquenessError, S as DirectoryUniquenessError, T as GROUP_SCHEMA, _ as DirectoryChange, a as normalizePatchOps, b as DirectoryNotFoundError, c as filterSupported, d as resourceTypes, f as schemas, g as APP_DATA_EXTENSION, h as sha256Hex, i as directoryMembershipSource, j as ScimHandlerOptions, k as SCIM_CONTENT_TYPE, l as matchFilter, m as authenticateScim, n as postgresDirectoryStore, o as tenantFromPath, p as serviceProviderConfig, r as memoryDirectoryStore, s as scimHandler, t as PostgresDirectoryStoreOptions, u as parseScimFilter, v as DirectoryGroup, w as ERROR_SCHEMA, x as DirectoryStore, y as DirectoryMembershipSourceOptions } from "../index-C-R8lBPb.js";
3
3
  export { APP_DATA_EXTENSION, type DirectoryChange, type DirectoryGroup, type DirectoryMembershipSourceOptions, DirectoryNotFoundError, type DirectoryStore, DirectoryUniquenessError, type DirectoryUser, ERROR_SCHEMA, GROUP_SCHEMA, LIST_SCHEMA, PATCH_SCHEMA, type PostgresDirectoryStoreOptions, ROLES_EXTENSION, SCIM_CONTENT_TYPE, type ScimFilter, type ScimHandlerOptions, type ScimPage, type ScimPageResult, type ScimPatchOp, type ScimTokenOptions, type SqlQuery, USER_SCHEMA, authenticateScim, directoryMembershipSource, filterSupported, isDirectoryNotFoundError, isDirectoryUniquenessError, matchFilter, memoryDirectoryStore, normalizePatchOps, parseScimFilter, postgresDirectoryStore, resourceTypes, schemas, scimHandler, serviceProviderConfig, sha256Hex, tenantFromPath };
@@ -1,3 +1,3 @@
1
- import { a as resourceTypes, c as authenticateScim, i as normalizePatchOps, l as sha256Hex, n as scimHandler, o as schemas, r as tenantFromPath, s as serviceProviderConfig, t as directoryMembershipSource } from "../scim-C30QBBoF.js";
1
+ import { a as resourceTypes, c as authenticateScim, i as normalizePatchOps, l as sha256Hex, n as scimHandler, o as schemas, r as tenantFromPath, s as serviceProviderConfig, t as directoryMembershipSource } from "../scim-BG6uPUeW.js";
2
2
  import { _ as SCIM_CONTENT_TYPE, a as memoryDirectoryStore, b as isDirectoryUniquenessError, c as parseScimFilter, d as DirectoryUniquenessError, f as ERROR_SCHEMA, g as ROLES_EXTENSION, h as PATCH_SCHEMA, i as postgresDirectoryStore, l as APP_DATA_EXTENSION, m as LIST_SCHEMA, o as filterSupported, p as GROUP_SCHEMA, s as matchFilter, u as DirectoryNotFoundError, v as USER_SCHEMA, y as isDirectoryNotFoundError } from "../postgres-store-DcyrPS-r.js";
3
3
  export { APP_DATA_EXTENSION, DirectoryNotFoundError, DirectoryUniquenessError, ERROR_SCHEMA, GROUP_SCHEMA, LIST_SCHEMA, PATCH_SCHEMA, ROLES_EXTENSION, SCIM_CONTENT_TYPE, USER_SCHEMA, authenticateScim, directoryMembershipSource, filterSupported, isDirectoryNotFoundError, isDirectoryUniquenessError, matchFilter, memoryDirectoryStore, normalizePatchOps, parseScimFilter, postgresDirectoryStore, resourceTypes, schemas, scimHandler, serviceProviderConfig, sha256Hex, tenantFromPath };
@@ -1,8 +1,8 @@
1
1
  import { r as isRecord } from "./compact-CAf557ZB.js";
2
2
  import { t as freezeCopy } from "./freeze-jjan0lCv.js";
3
3
  import { n as isForbiddenKey } from "./paths-CUvURzHp.js";
4
- import { i as idText, n as expirySeconds } from "./expiry-6XByK0dm.js";
5
4
  import { i as readAppData } from "./app-data-UNNm07jV.js";
5
+ import { n as idText, o as expirySeconds } from "./ids-DzhJaCUj.js";
6
6
  //#region src/core/scopes.ts
7
7
  const RESERVED = /* @__PURE__ */ new Set(["global", "resource"]);
8
8
  const NAME = /^[a-z][a-z0-9_]*$/u;
@@ -1,13 +1,14 @@
1
- import { n as PermDockValidationError, t as PROBLEM_BASE } from "../validation-error-DkOK9zUE.js";
2
- import { i as PermDockRevokedError, n as PermDockApprovalRequiredError, r as PermDockDeniedError, t as ApprovalHint } from "../errors-OTE9u4Wk.js";
1
+ import { n as PermDockValidationError, t as PROBLEM_BASE } from "../validation-error-DLAYFlkr.js";
2
+ import { i as PermDockRevokedError, n as PermDockApprovalRequiredError, r as PermDockDeniedError, t as ApprovalHint } from "../errors-D_JIQJYb.js";
3
3
  import { t as RequestContext } from "../request-context-C2_1lchh.js";
4
+ import { a as StoredCredential, c as generateFeedKey, d as parseApiKey, f as parseFeedKey, i as MemoryCredentialStore, l as hashApiKey, n as ApiKeyParts, o as apiKeyVerifier, p as subjectFromApiKey, r as ApiKeySubjectOptions, s as generateApiKey, t as ApiKeyFailureCause, u as memoryCredentialStore } from "../credentials-DPX140fN.js";
4
5
  import { i as memoryRevocationFeed, n as RevocationFeed, t as RevocationEvent } from "../revocations-BaUXHM1N.js";
5
- import { C as TenantScope, D as ConnectionOptions, E as ConnectionData, S as TenantOption, T as Connection, _ as WebBotAuthVerifier, a as OperationScopes, b as invalidSignatureResponse, c as ServerPermDock, d as DiscoverViaSignatureAgentOptions, f as InvalidSignatureError, g as WebBotAuthOptions, h as WebBotAuthKeys, i as OpenApiHooks, l as ServerPermDockOptions, m as WebBotAuthKeyLookup, n as DeniedResponseEvent, o as ProtectOptions, p as WebBotAuthJwk, r as Guard, s as ScopeGuard, t as DeniedResponse, u as SnapshotQuery, v as discoverViaSignatureAgent, w as tenantScope, x as webBotAuthVerifier, y as invalidSignatureProblem } from "../server-types-Bfl-IrzZ.js";
6
- import { i as evaluationsHandler } from "../evaluations-OCm_Z-8V.js";
7
- import { C as subjectFromApiKey, E as createPermDock, S as parseFeedKey, T as problemFromError, _ as generateApiKey, a as SupportSessionContext, b as memoryCredentialStore, c as SupportSessionSubjectOptions, d as ApiKeyFailureCause, f as ApiKeyParts, g as apiKeyVerifier, h as StoredCredential, i as wwwAuthenticate, l as signSupportSession, m as MemoryCredentialStore, n as problemResponse, o as SupportSessionFailureCause, p as ApiKeySubjectOptions, r as validationProblem, s as SupportSessionSource, t as problemFromDecision, u as subjectFromSupportSession, v as generateFeedKey, w as ProblemFromErrorOptions, x as parseApiKey, y as hashApiKey } from "../index-DuOF7OqS.js";
8
- import { l as ReplayStore } from "../types-DBVSljAx.js";
9
- import { a as WebhookInput, c as WebhookMessage, d as WebhookSigningKey, f as WebhookVerifier, h as webhookVerifier, i as WebhookHeaders, l as WebhookSigner, m as webhookSigner, n as WebhookAlgorithm, o as WebhookJwk, p as WebhookVerifierOptions, r as WebhookFailureCause, s as WebhookJwks, t as VerifiedWebhookMessage, u as WebhookSignerOptions } from "../standard-webhooks-CFZIYtBF.js";
10
- import { t as memoryReplayStore } from "../replay-DYXI4gRN.js";
11
- import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotKey, r as SnapshotHeadersOptions, s as snapshotTag, t as CacheLifeForOptions } from "../snapshot-cache-MPinwwgZ.js";
12
- import { _ as subjectFromRunTicket, a as RunContext, c as RunResource, d as RunTicketFailureCause, f as RunTicketInput, g as signRunTicket, h as parseRunTicket, i as RunBinding, l as RunTicket, m as RunTicketSubjectOptions, n as RunActClaim, o as RunKind, p as RunTicketOptions, r as RunAutomation, s as RunPrincipal, t as RUN_TICKET_CLAIMS, u as RunTicketAutomations } from "../run-ticket-BXYqQ9dy.js";
6
+ import { C as TenantScope, D as ConnectionOptions, E as ConnectionData, S as TenantOption, T as Connection, _ as WebBotAuthVerifier, a as OperationScopes, b as invalidSignatureResponse, c as ServerPermDock, d as DiscoverViaSignatureAgentOptions, f as InvalidSignatureError, g as WebBotAuthOptions, h as WebBotAuthKeys, i as OpenApiHooks, l as ServerPermDockOptions, m as WebBotAuthKeyLookup, n as DeniedResponseEvent, o as ProtectOptions, p as WebBotAuthJwk, r as Guard, s as ScopeGuard, t as DeniedResponse, u as SnapshotQuery, v as discoverViaSignatureAgent, w as tenantScope, x as webBotAuthVerifier, y as invalidSignatureProblem } from "../server-types--_Hann81.js";
7
+ import { i as evaluationsHandler } from "../evaluations-DQYfh4Jh.js";
8
+ import { a as SupportSessionContext, c as SupportSessionSubjectOptions, d as ProblemFromErrorOptions, f as problemFromError, i as wwwAuthenticate, l as signSupportSession, n as problemResponse, o as SupportSessionFailureCause, p as createPermDock, r as validationProblem, s as SupportSessionSource, t as problemFromDecision, u as subjectFromSupportSession } from "../index-BcS8c_2S.js";
9
+ import { l as ReplayStore } from "../types-Cq2rvv-C.js";
10
+ import { a as WebhookInput, c as WebhookMessage, d as WebhookSigningKey, f as WebhookVerifier, h as webhookVerifier, i as WebhookHeaders, l as WebhookSigner, m as webhookSigner, n as WebhookAlgorithm, o as WebhookJwk, p as WebhookVerifierOptions, r as WebhookFailureCause, s as WebhookJwks, t as VerifiedWebhookMessage, u as WebhookSignerOptions } from "../standard-webhooks-CJBgfl7y.js";
11
+ import { t as memoryReplayStore } from "../replay-DKhFvt0L.js";
12
+ import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotKey, r as SnapshotHeadersOptions, s as snapshotTag, t as CacheLifeForOptions } from "../snapshot-cache-Cc7VNabe.js";
13
+ import { _ as subjectFromRunTicket, a as RunContext, c as RunResource, d as RunTicketFailureCause, f as RunTicketInput, g as signRunTicket, h as parseRunTicket, i as RunBinding, l as RunTicket, m as RunTicketSubjectOptions, n as RunActClaim, o as RunKind, p as RunTicketOptions, r as RunAutomation, s as RunPrincipal, t as RUN_TICKET_CLAIMS, u as RunTicketAutomations } from "../run-ticket-Dulj4RQk.js";
13
14
  export { type ApiKeyFailureCause, type ApiKeyParts, type ApiKeySubjectOptions, type ApprovalHint, type CacheLifeForOptions, type Connection, type ConnectionData, type ConnectionOptions, type DeniedResponse, type DeniedResponseEvent, type DiscoverViaSignatureAgentOptions, type Guard, InvalidSignatureError, type MemoryCredentialStore, type OpenApiHooks, type OperationScopes, PROBLEM_BASE, PermDockApprovalRequiredError, PermDockDeniedError, PermDockRevokedError, PermDockValidationError, type ProblemFromErrorOptions, type ProtectOptions, RUN_TICKET_CLAIMS, type ReplayStore, type RequestContext, type RevocationEvent, type RevocationFeed, type RunActClaim, type RunAutomation, type RunBinding, type RunContext, type RunKind, type RunPrincipal, type RunResource, type RunTicket, type RunTicketAutomations, type RunTicketFailureCause, type RunTicketInput, type RunTicketOptions, type RunTicketSubjectOptions, type ScopeGuard, type ServerPermDock, type ServerPermDockOptions, type SnapshotHeaders, type SnapshotHeadersOptions, type SnapshotQuery, type StoredCredential, type SupportSessionContext, type SupportSessionFailureCause, type SupportSessionSource, type SupportSessionSubjectOptions, type TenantOption, type TenantScope, type VerifiedWebhookMessage, type WebBotAuthJwk, type WebBotAuthKeyLookup, type WebBotAuthKeys, type WebBotAuthOptions, type WebBotAuthVerifier, type WebhookAlgorithm, type WebhookFailureCause, type WebhookHeaders, type WebhookInput, type WebhookJwk, type WebhookJwks, type WebhookMessage, type WebhookSigner, type WebhookSignerOptions, type WebhookSigningKey, type WebhookVerifier, type WebhookVerifierOptions, apiKeyVerifier, cacheLifeFor, createPermDock, discoverViaSignatureAgent, evaluationsHandler, generateApiKey, generateFeedKey, hashApiKey, invalidSignatureProblem, invalidSignatureResponse, memoryCredentialStore, memoryReplayStore, memoryRevocationFeed, parseApiKey, parseFeedKey, parseRunTicket, problemFromDecision, problemFromError, problemResponse, signRunTicket, signSupportSession, snapshotHeaders, snapshotKey, snapshotTag, subjectFromApiKey, subjectFromRunTicket, subjectFromSupportSession, tenantScope, validationProblem, webBotAuthVerifier, webhookSigner, webhookVerifier, wwwAuthenticate };