permdock 0.18.0 → 0.19.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 (311) hide show
  1. package/dist/a2a/index.d.ts +4 -4
  2. package/dist/a2a/index.js +6 -6
  3. package/dist/{adoption-scan-CxExBYSJ.js → adoption-scan-C_VQ-J2f.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 +4 -4
  8. package/dist/{approval-normalize-CUjgSsOl.js → approval-normalize-hlfO9BJv.js} +8 -1
  9. package/dist/{approval-policies-oNnckT12.d.ts → approval-policies-CYqdqAob.d.ts} +1 -1
  10. package/dist/{approval-prompt-Bg7gDSqd.d.ts → approval-prompt-BxYbwOAU.d.ts} +1 -1
  11. package/dist/approvals/index.d.ts +4 -4
  12. package/dist/approvals/index.js +3 -3
  13. package/dist/{approvals-DGId_hgJ.js → approvals-CuXILe52.js} +9 -6
  14. package/dist/{arazzo--riLuGY0.js → arazzo-4vfaXj0U.js} +2 -2
  15. package/dist/{arazzo-CEDbb-uM.js → arazzo-Dc969CA2.js} +1 -1
  16. package/dist/astro/index.d.ts +4 -4
  17. package/dist/astro/index.js +2 -2
  18. package/dist/{audience-B4YR9UpV.js → audience-GCXRRAeZ.js} +1 -1
  19. package/dist/authzen/index.d.ts +5 -5
  20. package/dist/authzen/index.js +3 -3
  21. package/dist/{automation-Bfa_wD1h.d.ts → automation-BJiJT_Xr.d.ts} +1 -1
  22. package/dist/better-auth/index.d.ts +1 -1
  23. package/dist/better-auth/index.js +1 -1
  24. package/dist/better-supabase/index.d.ts +20 -17
  25. package/dist/better-supabase/index.js +10 -10
  26. package/dist/{better-supabase-BJtQ-kNf.js → better-supabase-ayun1IKE.js} +38 -4
  27. package/dist/{bind-B4pMH9bm.js → bind-BnKPWRrE.js} +4 -4
  28. package/dist/{bind-DR6ku3A9.d.ts → bind-SpRxR213.d.ts} +7 -7
  29. package/dist/{body-CJQwYVa8.js → body-C9JbIoqb.js} +1 -1
  30. package/dist/{build-instance-BFMFQdE_.js → build-instance-DrIbZVnm.js} +1 -1
  31. package/dist/{capability-BZ_veK9o.d.ts → capability-Ci2S8Cdu.d.ts} +1 -1
  32. package/dist/{casbin-bKC1FpEx.js → casbin-C1TQqWkK.js} +1 -1
  33. package/dist/{casbin-DCQHkkyj.js → casbin-ChbpgfNR.js} +1 -1
  34. package/dist/catalog/index.d.ts +5 -5
  35. package/dist/catalog/index.js +5 -5
  36. package/dist/catalog-BTPySmbp.js +1 -0
  37. package/dist/{catalog-zzNuR3sY.js → catalog-DjDc87R2.js} +1 -1
  38. package/dist/{catalog-doc-C4DGfJCO.js → catalog-doc-nrgfbh8I.js} +2 -1
  39. package/dist/{catalog-D1fw8qif.js → catalog-s0waIrfY.js} +2 -2
  40. package/dist/{challenge-B2O2OLEk.js → challenge-D57I5G1k.js} +1 -1
  41. package/dist/chat/index.d.ts +1 -1
  42. package/dist/chat/index.js +2 -2
  43. package/dist/chat-sdk/index.d.ts +3 -3
  44. package/dist/claude-agent/index.d.ts +3 -3
  45. package/dist/claude-agent/index.js +2 -2
  46. package/dist/clerk/index.d.ts +2 -2
  47. package/dist/cli/bin.js +1 -1
  48. package/dist/cli/index.d.ts +5 -5
  49. package/dist/cli/index.js +3 -3
  50. package/dist/{client-CH7vzSAY.d.ts → client-JK504UCq.d.ts} +15 -2
  51. package/dist/cloud/index.d.ts +8 -8
  52. package/dist/cloud/index.js +2 -2
  53. package/dist/{cloud-C0vXBmLG.js → cloud-Dgj4FiEG.js} +2 -2
  54. package/dist/{codemod-C-L0w-u7.js → codemod-DN_fBt43.js} +2 -2
  55. package/dist/{codemod-eYI1FbeJ.js → codemod-WWxwgM77.js} +1 -1
  56. package/dist/{collect-CU85z6Ta.js → collect-DMQ6Sxr6.js} +2 -2
  57. package/dist/{collect-D878zLDP.js → collect-DN_x7hvV.js} +1 -1
  58. package/dist/collect-eSTXOZDC.js +1 -0
  59. package/dist/compile/index.d.ts +1 -1
  60. package/dist/{compile-DBm0ub4p.d.ts → compile-RaRUQhmD.d.ts} +2 -2
  61. package/dist/{completion-Dauc6pVT.js → completion-DnmUvCw0.js} +1 -1
  62. package/dist/{config-DWp2PucY.js → config-CmuEoob8.js} +1 -1
  63. package/dist/{config-COHmivz9.js → config-D2oXUwos.js} +8 -5
  64. package/dist/{config-report-DKpFm5ID.js → config-report-BVm8Dhbj.js} +2 -2
  65. package/dist/{config-shape-tsxHx71E.js → config-shape-D9paLhEX.js} +5 -1
  66. package/dist/{connection-B72dg5Q2.js → connection-QFsv-kbh.js} +1 -1
  67. package/dist/{context-DeammvFl.js → context-YhyXyqBI.js} +3 -2
  68. package/dist/convex/index.d.ts +4 -4
  69. package/dist/convex/index.js +3 -3
  70. package/dist/{core-D87h2kpR.d.ts → core-DNRWXyj4.d.ts} +2 -2
  71. package/dist/{core-B8sLve3z.js → core-ZIWZBi6-.js} +5 -5
  72. package/dist/{create-BzwjZuRS.d.ts → create-0B_bjJc-.d.ts} +7 -7
  73. package/dist/{create-BrQXL-Wt.d.ts → create-BECB6fns.d.ts} +6 -6
  74. package/dist/{create-C-tm3KIF.js → create-CAZyXZFC.js} +4 -4
  75. package/dist/{create-3A7J9KRR.js → create-CegYmYHu.js} +69 -29
  76. package/dist/{create-CtoT1lIQ.d.ts → create-DJ_5REgN.d.ts} +4 -4
  77. package/dist/decide-set-DXEPepY1.js +100 -0
  78. package/dist/{delegation-input-FTxMK3ji.js → delegation-input-DcXhiMkf.js} +1 -1
  79. package/dist/delivery/index.d.ts +4 -4
  80. package/dist/delivery/index.js +1 -1
  81. package/dist/{denied-text-DlIxt8fh.d.ts → denied-text-CF-2h8Vz.d.ts} +1 -1
  82. package/dist/{describe-BKtC_8PG.d.ts → describe-DyN-HX6o.d.ts} +1 -1
  83. package/dist/{diff-BnNHqtHj.js → diff-BOU7sSnv.js} +4 -4
  84. package/dist/{diff-CBCzOTWM.js → diff-BrmvcPXk.js} +1 -1
  85. package/dist/{doctor-CkYKCuX7.js → doctor-BhhNMkU8.js} +242 -65
  86. package/dist/{doctor-xUpR5rXg.js → doctor-CL1OigyD.js} +15 -5
  87. package/dist/drizzle/index.d.ts +3 -3
  88. package/dist/elysia/index.d.ts +4 -4
  89. package/dist/elysia/index.js +4 -4
  90. package/dist/{errors-TpzkEKgJ.d.ts → errors-POWcCXy7.d.ts} +1 -1
  91. package/dist/{errors-B6R_lg2a.js → errors-ynga1EQy.js} +1 -1
  92. package/dist/{evaluate-Czbj7thS.js → evaluate-CrKkjgXS.js} +2 -2
  93. package/dist/{evaluations-CisTTURl.d.ts → evaluations--rkKhMqY.d.ts} +3 -3
  94. package/dist/{evaluations-h3KoJAPa.js → evaluations-CNMVJVD6.js} +3 -3
  95. package/dist/eve/index.d.ts +4 -4
  96. package/dist/eve/index.js +3 -3
  97. package/dist/express/index.d.ts +4 -4
  98. package/dist/express/index.js +3 -3
  99. package/dist/fastify/index.d.ts +4 -4
  100. package/dist/fastify/index.js +3 -3
  101. package/dist/{fetch-adapter-DH-NJPbL.js → fetch-adapter-Bm1iZolz.js} +3 -3
  102. package/dist/{fetch-adapter-BdmfnbJM.d.ts → fetch-adapter-Bq4AB3W2.d.ts} +2 -2
  103. package/dist/{fields-CrjL6A49.js → fields-COvJbUva.js} +1 -1
  104. package/dist/{from-snapshot-DMlSSo9b.js → from-snapshot-DHnb8Fh4.js} +2 -2
  105. package/dist/{gen-mf-MRwVr.js → gen-D0NqzeOP.js} +2 -2
  106. package/dist/{gen-BEIN-DRM.js → gen-DonXr9Hg.js} +1 -1
  107. package/dist/h3/index.d.ts +4 -4
  108. package/dist/h3/index.js +3 -3
  109. package/dist/{helpers-DmqGy63f.js → helpers-D-MXwkOF.js} +28 -4
  110. package/dist/hono/index.d.ts +4 -4
  111. package/dist/hono/index.js +5 -5
  112. package/dist/{hosted-BFNXwcjd.d.ts → hosted-H1xp5Dfw.d.ts} +1 -1
  113. package/dist/{hosted-waouw2V-.js → hosted-iOGBI_ER.js} +4 -3
  114. package/dist/{import-C1XXpG_m.js → import-C8ffNykt.js} +2 -2
  115. package/dist/{import-DObwEota.js → import-DNaFHm53.js} +1 -1
  116. package/dist/{index-CVGio3cH.d.ts → index-B9-ZXNa-.d.ts} +4 -4
  117. package/dist/{index-BhnOOnp9.d.ts → index-C2pmTzFx.d.ts} +2 -2
  118. package/dist/{index-Dfv9Toct.d.ts → index-C5Tfpjex.d.ts} +1 -1
  119. package/dist/{index-CdUTE6qd.d.ts → index-Cm6mHTZ-.d.ts} +16 -10
  120. package/dist/{index-rFp6X_QP.d.ts → index-DLlWORcK.d.ts} +5 -5
  121. package/dist/{index-CdMOd-GY.d.ts → index-DZnpRB0q.d.ts} +24 -6
  122. package/dist/index.d.ts +17 -17
  123. package/dist/index.js +15 -15
  124. package/dist/{init-DS3PEsCG.js → init-4aRjat-S.js} +3 -3
  125. package/dist/{init-CNJ8lLjo.js → init-QfBfkrGu.js} +1 -1
  126. package/dist/{instance-options-2sFGSdsf.d.ts → instance-options-D6hyIKJF.d.ts} +1 -1
  127. package/dist/{instance-snapshot-BWa71my8.js → instance-snapshot-DXxcizAb.js} +3 -3
  128. package/dist/jwt/index.d.ts +4 -4
  129. package/dist/{kernel-30Z2zM_d.js → kernel-B2UCK36Z.js} +7 -7
  130. package/dist/kysely/index.d.ts +3 -3
  131. package/dist/{login-DUVzBLh7.js → login-Cg1la2yJ.js} +3 -3
  132. package/dist/{login-BgK5Jloo.js → login-lPtJIjbO.js} +1 -1
  133. package/dist/{manifest-wclLWBVH.js → manifest-CDhdXgf6.js} +38 -37
  134. package/dist/{map-error-BH16Ah8P.js → map-error-EOhahOVA.js} +3 -3
  135. package/dist/mcp/index.d.ts +57 -17
  136. package/dist/mcp/index.js +199 -53
  137. package/dist/{module-values-B8tNIxdd.js → module-values-BYuNtdK5.js} +1 -1
  138. package/dist/nest/index.d.ts +4 -4
  139. package/dist/nest/index.js +5 -5
  140. package/dist/next/index.d.ts +12 -12
  141. package/dist/next/index.js +8 -8
  142. package/dist/next/plugin.d.ts +1 -1
  143. package/dist/next/plugin.js +1 -1
  144. package/dist/node/index.d.ts +4 -4
  145. package/dist/node/index.js +2 -2
  146. package/dist/openai/index.d.ts +4 -4
  147. package/dist/openai/index.js +3 -3
  148. package/dist/openapi/index.d.ts +2 -2
  149. package/dist/{openapi-C4gFqeRz.js → openapi-C3BIVLTd.js} +2 -2
  150. package/dist/{openapi-zMEB9qxn.js → openapi-Cr0B3p2h.js} +2 -2
  151. package/dist/orpc/index.d.ts +21 -17
  152. package/dist/orpc/index.js +18 -11
  153. package/dist/otel/index.d.ts +3 -3
  154. package/dist/{output-BFWLER4r.js → output-DYq_o2dM.js} +1 -1
  155. package/dist/{ownership-D-mIt-w0.js → ownership-CrmMERZv.js} +1 -1
  156. package/dist/{parse-UTC-sDrt.js → parse-CXTT7hBq.js} +1 -1
  157. package/dist/{parse-local-manifest-DvjTQNuO.d.ts → parse-local-manifest-CQjRmzrw.d.ts} +1 -1
  158. package/dist/{parse-local-manifest-CxcSMQgl.js → parse-local-manifest-Ce2N-Opr.js} +1 -1
  159. package/dist/pdp/index.d.ts +3 -3
  160. package/dist/pdp/index.js +2 -2
  161. package/dist/{permdock-ffY4CMd9.d.ts → permdock-B45vPQb4.d.ts} +4 -4
  162. package/dist/{permdock-D-_WrdKu.js → permdock-DeOfonuG.js} +6 -6
  163. package/dist/{permissions-B3ggI88M.js → permissions-Rk9_Gm04.js} +1 -1
  164. package/dist/{policy-cV_wwPb8.js → policy-DTmkP72P.js} +2 -2
  165. package/dist/{policy-from-catalog-B68hGC0S.js → policy-from-catalog-Cljh_B5H.js} +6 -6
  166. package/dist/{policy-BtKSApSt.d.ts → policy-re2Oag8s.d.ts} +1 -1
  167. package/dist/{policy-types-D-GwfQTc.d.ts → policy-types-Ky7P23CP.d.ts} +24 -2
  168. package/dist/{postgrest-D84p5dbA.d.ts → postgrest-pwxeaeOW.d.ts} +1 -1
  169. package/dist/powersync-B96MUB_Q.js +1 -0
  170. package/dist/{powersync-9PYOE1wt.js → powersync-BoqBik-G.js} +77 -38
  171. package/dist/{powersync-DStC_g0B.js → powersync-PKC4yT62.js} +2 -2
  172. package/dist/prisma/index.d.ts +2 -2
  173. package/dist/{problem-BVLHFK33.js → problem-BWP1l86g.js} +8 -7
  174. package/dist/{protected-action-B40tU3yP.js → protected-action-CD1HXwQK.js} +2 -2
  175. package/dist/{protected-action-Ds_EUY8B.d.ts → protected-action-DHPqBLhz.d.ts} +5 -5
  176. package/dist/{provider-OtnIiFWm.d.ts → provider-C-CbGEii.d.ts} +1 -1
  177. package/dist/{provider-CY4TSSJo.js → provider-qESIf_C0.js} +5 -2
  178. package/dist/{provider-store-BQP_pp8s.js → provider-store-BTHGJH9j.js} +3 -2
  179. package/dist/pull-BjdsS9x1.js +1 -0
  180. package/dist/{pull-DLP4I1Kl.js → pull-FG0Tf8aF.js} +3 -3
  181. package/dist/{push-BSb8j1EW.js → push-CI5G7lRS.js} +3 -3
  182. package/dist/{pushed-policy-Ck3FZcoy.d.ts → pushed-policy-B94r9DlN.d.ts} +1 -1
  183. package/dist/{pushed-policy-BecMsTtM.js → pushed-policy-DftSiyD3.js} +1 -1
  184. package/dist/react/index.d.ts +6 -6
  185. package/dist/react/index.js +3 -3
  186. package/dist/react/provider-client.d.ts +1 -1
  187. package/dist/react/provider-client.js +1 -1
  188. package/dist/react-native/index.d.ts +28 -14
  189. package/dist/react-native/index.js +57 -37
  190. package/dist/{replay-E5X9E1lC.d.ts → replay-BqmXcP7x.d.ts} +1 -1
  191. package/dist/{request-context-DM6_jY1n.js → request-context-uvaevbBu.js} +1 -1
  192. package/dist/resend/index.d.ts +4 -4
  193. package/dist/resend/index.js +2 -2
  194. package/dist/{resolve-names-CBl4r4_r.js → resolve-names-Dg8560iu.js} +2 -2
  195. package/dist/{rls-DGBL-jDY.js → rls-CJbWbxXv.js} +19 -13
  196. package/dist/{rls-pAHGYgTb.js → rls-DJSczevJ.js} +1 -1
  197. package/dist/{role-builder-CMW4wWzn.js → role-builder-C_2kWB_x.js} +1 -1
  198. package/dist/rpc-D7cDHIVE.d.ts +22 -0
  199. package/dist/{rpc-KwX_Jcxz.js → rpc-m5hPklf-.js} +16 -6
  200. package/dist/run-4m-TyVTD.js +1 -0
  201. package/dist/{run-B7lv3NuK.js → run-BigMDvGR.js} +3 -3
  202. package/dist/{run-ticket-DPaD27_r.d.ts → run-ticket-DRA3POCY.d.ts} +2 -2
  203. package/dist/{saas-B8H1MsQ3.js → saas-BHeoBqbW.js} +4 -4
  204. package/dist/{scan-0r3OZqqK.js → scan-BKLwCSVV.js} +1 -1
  205. package/dist/{schema-CuX70xgH.js → schema-BlnU_TzE.js} +4 -0
  206. package/dist/{schema-B_9tXrbG.js → schema-CLuBlCCr.js} +1 -1
  207. package/dist/scim/index.d.ts +1 -1
  208. package/dist/server/index.d.ts +10 -10
  209. package/dist/server/index.js +5 -5
  210. package/dist/{server-types-3OnXjZ2D.d.ts → server-types-CwpJe664.d.ts} +31 -13
  211. package/dist/{sink-ogbVkyeo.d.ts → sink-7Lrch8dn.d.ts} +2 -2
  212. package/dist/{skills-B4MPRxQd.js → skills-CyD_3eoi.js} +1 -1
  213. package/dist/{skills-C9sTD70r.js → skills-D42EyC8G.js} +1 -1
  214. package/dist/{snapshot-DN_8J27z.js → snapshot-DHPih65J.js} +2 -1
  215. package/dist/{snapshot-cache-B4YvlGG_.d.ts → snapshot-cache-B9weL8NE.d.ts} +1 -1
  216. package/dist/solid/index.d.ts +5 -5
  217. package/dist/solid/index.js +3 -2
  218. package/dist/solid-start/index.d.ts +4 -4
  219. package/dist/solid-start/index.js +3 -3
  220. package/dist/{sources-xdQShLDU.d.ts → sources-4d3fl7cq.d.ts} +1 -1
  221. package/dist/{src-Brzq_0in.js → src-HDDf9Eum.js} +28 -13
  222. package/dist/ssf/index.d.ts +3 -3
  223. package/dist/ssf/index.js +2 -2
  224. package/dist/{standard-webhooks-BfPaZ6T1.d.ts → standard-webhooks-BGi8pUwo.d.ts} +2 -2
  225. package/dist/{store-DmVqy74I.js → store-CSOsXd5s.js} +8 -6
  226. package/dist/{store-DYeB-_U3.d.ts → store-CjJaZI_g.d.ts} +31 -4
  227. package/dist/{store-options--zWn48PK.js → store-options-CDvoX52-.js} +31 -8
  228. package/dist/{stores-EPul_8MN.d.ts → stores-Cam6GGAV.d.ts} +5 -5
  229. package/dist/{stores-BYFopOm1.js → stores-PpYVQ5yF.js} +1 -1
  230. package/dist/{stream-CDvF0sJm.js → stream-DQ3rbO3J.js} +1 -1
  231. package/dist/supabase/client.d.ts +1 -1
  232. package/dist/supabase/client.js +32 -4
  233. package/dist/supabase/index.d.ts +10 -5
  234. package/dist/supabase/index.js +1 -1
  235. package/dist/supabase/middleware.d.ts +5 -5
  236. package/dist/supabase/middleware.js +5 -5
  237. package/dist/{supabase-BiViJpQ4.js → supabase-CVZuytCC.js} +2 -2
  238. package/dist/{supabase-CogTyJH2.js → supabase-DBuZK2pP.js} +2 -2
  239. package/dist/supabase-hook-2M-EpoRp.js +1 -0
  240. package/dist/{supabase-hook-DX38Hj8h.js → supabase-hook-Btk56XD6.js} +151 -55
  241. package/dist/{supautils-BGf6zRvM.js → supautils-lwXmXPP_.js} +7 -7
  242. package/dist/svelte/index.d.ts +5 -5
  243. package/dist/svelte/index.js +3 -3
  244. package/dist/svelte/runtime.d.ts +3 -3
  245. package/dist/svelte/runtime.js +1 -1
  246. package/dist/svelte/source.d.ts +5 -5
  247. package/dist/svelte/source.js +2 -2
  248. package/dist/sveltekit/index.d.ts +4 -4
  249. package/dist/sveltekit/index.js +2 -2
  250. package/dist/{tables-BfOk0ymL.js → tables-B72q9UFD.js} +1 -1
  251. package/dist/tanstack-start/index.d.ts +4 -4
  252. package/dist/tanstack-start/index.js +2 -2
  253. package/dist/terminal/index.d.ts +5 -5
  254. package/dist/terminal/index.js +4 -4
  255. package/dist/testing/core.d.ts +1 -1
  256. package/dist/testing/core.js +1 -1
  257. package/dist/testing/fixtures/index.d.ts +1 -1
  258. package/dist/testing/fixtures/index.js +1 -1
  259. package/dist/testing/index.d.ts +23 -23
  260. package/dist/testing/index.js +22 -22
  261. package/dist/testing/saas/index.d.ts +3 -3
  262. package/dist/testing/saas/index.js +2 -2
  263. package/dist/testing/saas/permissions.js +1 -1
  264. package/dist/trpc/index.d.ts +15 -8
  265. package/dist/trpc/index.js +23 -19
  266. package/dist/{type-helpers-i1EJ3Eb1.d.ts → type-helpers-CDxxNswo.d.ts} +1 -1
  267. package/dist/{types-CqcsNCaN.d.ts → types--HfnkawU.d.ts} +13 -1
  268. package/dist/{types-NYoj8JBm.d.ts → types-7Vlz1Wi2.d.ts} +1 -0
  269. package/dist/{types-B8qUkGja.d.ts → types-BVn1w_0o.d.ts} +2 -2
  270. package/dist/{types-DmbfLu2p.d.ts → types-BlYPxJDR.d.ts} +9 -4
  271. package/dist/{types-D19MK4t-.d.ts → types-Bwdumeos.d.ts} +3 -3
  272. package/dist/{types-3Y8UpFkF.d.ts → types-BwuNGQRm.d.ts} +68 -4
  273. package/dist/{types-D-JO7lh8.d.ts → types-CChFKY10.d.ts} +5 -5
  274. package/dist/{types-CDVXR6YD.d.ts → types-Do4yihST.d.ts} +1 -1
  275. package/dist/{types-CCEeSCMB.d.ts → types-Do8qBcRO.d.ts} +3 -3
  276. package/dist/{types-o1vu6Ks3.d.ts → types-OLSfBLa5.d.ts} +4 -4
  277. package/dist/{types-DGf_cpKF.d.ts → types-g0Vk9k2c.d.ts} +2 -2
  278. package/dist/{types-Ck1KOfug.d.ts → types-oaqeYKQu.d.ts} +2 -2
  279. package/dist/unplugin/index.d.ts +1 -1
  280. package/dist/unplugin/index.js +1 -1
  281. package/dist/{usage-DYtRVkcN.js → usage-BLhhEPcZ.js} +1 -1
  282. package/dist/{usage-DC0UKe6C.js → usage-C-wta3rx.js} +4 -4
  283. package/dist/usage-Csc_ZRd0.js +1 -0
  284. package/dist/{validation-error-Dx8PipbO.d.ts → validation-error-AhCHeeff.d.ts} +1 -1
  285. package/dist/{verify-Bpj0hauG.js → verify-CaaZlnP5.js} +78 -57
  286. package/dist/{version-cache-DzNKWiI6.d.ts → version-cache-Ddvrfn1R.d.ts} +1 -1
  287. package/dist/vue/index.d.ts +5 -5
  288. package/dist/vue/index.js +2 -2
  289. package/dist/{waiter-NK_UuZbb.d.ts → waiter-CROiWRIP.d.ts} +2 -2
  290. package/dist/watch-CS69ftMP.js +1 -0
  291. package/dist/{watch-CBHADqBH.js → watch-Dz2LNM1R.js} +2 -2
  292. package/dist/webmcp/index.d.ts +1 -1
  293. package/dist/{where-scope-BKrqUDVk.js → where-scope-BAyOsPQW.js} +1 -1
  294. package/dist/{who-can-KhVWMxtf.js → who-can-jPfTABf-.js} +1 -1
  295. package/dist/workflow/index.d.ts +3 -3
  296. package/dist/workflow/index.js +2 -2
  297. package/dist/workflow-sdk/index.d.ts +4 -4
  298. package/dist/{wrap-BHGA-SMM.d.ts → wrap-C-4o-Dpy.d.ts} +2 -2
  299. package/package.json +1 -1
  300. package/schemas/catalog-v1.json +8 -0
  301. package/skills/permdock-agents/references/runtimes.md +2 -2
  302. package/skills/permdock-wire/references/adapters.md +1 -1
  303. package/dist/catalog-Caqhbdix.js +0 -1
  304. package/dist/collect-KCtOigxx.js +0 -1
  305. package/dist/powersync-xNRlC4jN.js +0 -1
  306. package/dist/pull-UBjDnf4b.js +0 -1
  307. package/dist/run-UPbacxPg.js +0 -1
  308. package/dist/stream-W2RuUYly.d.ts +0 -13
  309. package/dist/supabase-hook-BN46IrVI.js +0 -1
  310. package/dist/usage-Cl5eb-e1.js +0 -1
  311. package/dist/watch-OYwAPCzx.js +0 -1
@@ -1,14 +1,14 @@
1
- import { $t as Snapshot, Kt as Instant, M as PolicyVocabulary, Z as Intent, hr as JsonWebKeyLike, qn as Decision, sr as Actor, yr as Subject } from "./policy-types-D-GwfQTc.js";
1
+ import { N as PolicyVocabulary, Q as Intent, Yn as Decision, _r as JsonWebKeyLike, an as SnapshotTenants, en as Snapshot, lr as Actor, qt as Instant, xr as Subject } from "./policy-types-Ky7P23CP.js";
2
2
  import { u as Permission } from "./permission-types-CAY-GU7e.js";
3
- import { a as PermDock, u as SnapshotOptions } from "./permdock-ffY4CMd9.js";
4
- import { m as ApprovalStore } from "./types-CqcsNCaN.js";
5
- import { a as ProblemDetails, t as ApprovalHint } from "./errors-TpzkEKgJ.js";
6
- import { t as InstanceOptions } from "./instance-options-2sFGSdsf.js";
3
+ import { a as PermDock, u as SnapshotOptions } from "./permdock-B45vPQb4.js";
4
+ import { m as ApprovalStore } from "./types--HfnkawU.js";
5
+ import { a as ProblemDetails, t as ApprovalHint } from "./errors-POWcCXy7.js";
6
+ import { t as InstanceOptions } from "./instance-options-D6hyIKJF.js";
7
7
  import { t as RequestContext } from "./request-context-C2_1lchh.js";
8
- import { n as PermDockWrap } from "./wrap-BHGA-SMM.js";
8
+ import { n as PermDockWrap } from "./wrap-C-4o-Dpy.js";
9
9
  import { n as RevocationFeed } from "./revocations-BaUXHM1N.js";
10
- import { r as PdpFactory } from "./types-B8qUkGja.js";
11
- import { i as evaluationsHandler } from "./evaluations-CisTTURl.js";
10
+ import { r as PdpFactory } from "./types-BVn1w_0o.js";
11
+ import { i as evaluationsHandler } from "./evaluations--rkKhMqY.js";
12
12
  //#region src/server/connection.d.ts
13
13
  type ConnectionData<T> = T | (() => T | null | undefined | Promise<T | null | undefined>);
14
14
  type ConnectionOptions<T = unknown> = {
@@ -228,12 +228,18 @@ type Loader<T> = (request: Request) => T | null | undefined | Promise<T | null |
228
228
  * delegated token, one of the OAuth scopes it declares, but no permission.
229
229
  */
230
230
  type Protect<V extends PolicyVocabulary = PolicyVocabulary, TArgs extends unknown[] = []> = {
231
- <T = unknown>(permission: Permission, data?: Loader<T>, protectOptions?: ProtectOptions): (request: Request, ...args: TArgs) => Promise<Guard<T, V>>;
231
+ <T = unknown>(permission: Permission | readonly Permission[], data?: Loader<T>, protectOptions?: ProtectOptions): (request: Request, ...args: TArgs) => Promise<Guard<T, V>>;
232
232
  <T = unknown>(permission: null, data?: Loader<T>, protectOptions?: ProtectOptions): (request: Request, ...args: TArgs) => Promise<ScopeGuard<T, V>>;
233
- <T = unknown>(permission: Permission | null, data?: Loader<T>, protectOptions?: ProtectOptions): (request: Request, ...args: TArgs) => Promise<Guard<T, V> | ScopeGuard<T, V>>;
233
+ <T = unknown>(permission: Permission | readonly Permission[] | null, data?: Loader<T>, protectOptions?: ProtectOptions): (request: Request, ...args: TArgs) => Promise<Guard<T, V> | ScopeGuard<T, V>>;
234
234
  };
235
235
  type OpenApiHooks = {
236
- readonly security: (permission: Permission) => {
236
+ /**
237
+ * One requirement holding every permission's scope, or with `anyOf` one
238
+ * requirement per permission.
239
+ */
240
+ readonly security: (permission: Permission | readonly Permission[], options?: {
241
+ readonly anyOf?: boolean;
242
+ }) => {
237
243
  readonly security: readonly Record<string, readonly string[]>[];
238
244
  readonly "x-permdock-permissions": readonly string[];
239
245
  };
@@ -256,6 +262,18 @@ type ProtectOptions = {
256
262
  readonly field?: string;
257
263
  /** Adds the evaluation `trace` to the guard's decision. */
258
264
  readonly explain?: boolean;
265
+ /**
266
+ * With a list of permissions, one of them grants each row; without it, every
267
+ * permission must.
268
+ */
269
+ readonly anyOf?: boolean;
270
+ /**
271
+ * Loads the rows the route acts on, in place of `data`: every row must be
272
+ * granted, the guard's `data` is the list, and a denial reports the first
273
+ * refused row. No rows answers 404, as a `data` loader answering `null`
274
+ * does.
275
+ */
276
+ readonly rows?: (request: Request) => readonly unknown[] | Promise<readonly unknown[]>;
259
277
  };
260
278
  type SnapshotQuery = {
261
279
  /**
@@ -264,7 +282,7 @@ type SnapshotQuery = {
264
282
  */
265
283
  readonly tenant?: string;
266
284
  readonly include?: SnapshotOptions["include"];
267
- readonly tenants?: "all";
285
+ readonly tenants?: SnapshotTenants;
268
286
  };
269
287
  /**
270
288
  * What `createPermDock` from `permdock/server` returns. Every member takes an
@@ -286,7 +304,7 @@ type ServerPermDock<V extends PolicyVocabulary = PolicyVocabulary> = {
286
304
  * resume. A method, so a `ServerPermDock<V>` stays assignable to
287
305
  * `ServerPermDock`.
288
306
  */
289
- protectOn<T = unknown>(instance: PermDock<V>, permission: Permission | null, data?: () => T | null | undefined | Promise<T | null | undefined>, protectOptions?: ProtectOptions, request?: Request): Promise<Guard<T, V> | ScopeGuard<T, V>>;
307
+ protectOn<T = unknown>(instance: PermDock<V>, permission: Permission | readonly Permission[] | null, data?: () => T | null | undefined | Promise<T | null | undefined>, protectOptions?: ProtectOptions, request?: Request): Promise<Guard<T, V> | ScopeGuard<T, V>>;
290
308
  /** A long-lived connection for a stream or socket opened by `request`. */
291
309
  readonly connection: <T = unknown>(request: Request, options?: ConnectionOptions<T>, scope?: TenantScope) => Promise<Connection>;
292
310
  /**
@@ -1,7 +1,7 @@
1
- import { Y as DecisionSink, gt as TokenSigner, hn as SinkEvent, in as AccessEvent, jt as Credential, mn as MembershipEvent, on as AutomationEvent, sn as CredentialEvent, wt as SupportSession } from "./policy-types-D-GwfQTc.js";
1
+ import { Mt as Credential, Tt as SupportSession, X as DecisionSink, _n as SinkEvent, _t as TokenSigner, cn as AutomationEvent, gn as MembershipEvent, ln as CredentialEvent, on as AccessEvent } from "./policy-types-Ky7P23CP.js";
2
2
  import { M as AppData } from "./permission-types-CAY-GU7e.js";
3
3
  import { u as OperationRisk } from "./operations-Ci_rT6Uo.js";
4
- import { t as Automation } from "./automation-Bfa_wD1h.js";
4
+ import { t as Automation } from "./automation-BJiJT_Xr.js";
5
5
  //#region src/core/sink.d.ts
6
6
  /**
7
7
  * The closed list of CloudEvents `type` values, `com.permdock.<family>` or
@@ -2,7 +2,7 @@ import { t as byCodePoint } from "./compare-DTfyUunF.js";
2
2
  import { i as readJsonFile } from "./files-BSjrtIHw.js";
3
3
  import { l as packageRoot } from "./version-DMQ0dnN5.js";
4
4
  import { t as didYouMean } from "./args-iafbHiXn.js";
5
- import { a as nonEmptyOr } from "./output-BFWLER4r.js";
5
+ import { a as nonEmptyOr } from "./output-DYq_o2dM.js";
6
6
  import { cpSync, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, readlinkSync, realpathSync, writeFileSync } from "node:fs";
7
7
  import { basename, dirname, join, relative, resolve } from "node:path";
8
8
  import { pathToFileURL } from "node:url";
@@ -1,7 +1,7 @@
1
1
  import { t as defineLeaf } from "./command-L8EstFNm.js";
2
2
  import { t as checkFlag } from "./flags-BlmpmXoY.js";
3
3
  import { r as pick, t as CANCELLED } from "./prompt-BYc6drYW.js";
4
- import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-B4MPRxQd.js";
4
+ import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-CyD_3eoi.js";
5
5
  //#region src/cli/commands/skills.ts
6
6
  const forFlag = { for: {
7
7
  type: "string",
@@ -173,7 +173,8 @@ function buildSnapshot(input) {
173
173
  const now = input.now ?? nowSeconds();
174
174
  const principal = input.subject.principal;
175
175
  const allTenants = tenantsOf(principal, scopeList(input.scopes));
176
- const tenants = input.tenants === "all" ? allTenants : principal?.tenant === void 0 ? [] : [principal.tenant];
176
+ const wanted = input.tenants;
177
+ const tenants = wanted === "all" ? allTenants : wanted === void 0 ? principal?.tenant === void 0 ? [] : [principal.tenant] : allTenants.filter((tenant) => wanted.includes(tenant));
177
178
  const include = input.include;
178
179
  const included = (permission) => include === void 0 || include.length === 0 || include.some((prefix) => permission.key === prefix || permission.key.startsWith(`${prefix}.`) || permission.resource === prefix);
179
180
  const grants = input.grants.filter((item) => included(item.grant.permission)).map((item) => bindClaims(snapshotGrant(item.grant, item.membership), input.subject));
@@ -1,4 +1,4 @@
1
- import { $t as Snapshot, Kt as Instant } from "./policy-types-D-GwfQTc.js";
1
+ import { en as Snapshot, qt as Instant } from "./policy-types-Ky7P23CP.js";
2
2
  //#region src/core/snapshot-cache.d.ts
3
3
  type CacheLifeForOptions = {
4
4
  /**
@@ -1,11 +1,11 @@
1
- import { $n as GrantedDecision, $t as Snapshot, Kn as ApprovalRequiredDecision, M as PolicyVocabulary, _t as TokenVerifier, gr as Membership, qn as Decision } from "../policy-types-D-GwfQTc.js";
1
+ import { Jn as ApprovalRequiredDecision, N as PolicyVocabulary, Yn as Decision, en as Snapshot, tr as GrantedDecision, vr as Membership, vt as TokenVerifier } from "../policy-types-Ky7P23CP.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-ffY4CMd9.js";
5
- import { c as requiredPlans } from "../errors-TpzkEKgJ.js";
6
- import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-BKtC_8PG.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";
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-DYeB-_U3.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";
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 { Accessor, Accessor as Accessor$1, JSX } from "solid-js";
@@ -4,8 +4,8 @@ import { n as describe } from "../describe-BZAlPHxT.js";
4
4
  import { n as boundaryFallback, t as boundaryDigest } from "../boundary-BV3O1eud.js";
5
5
  import { n as actionRunner, r as approvalHeaders, t as actionApproval } from "../protected-action-OpOxtTsN.js";
6
6
  import { a as livePermDock, c as rolesView, d as subjectView, f as tenantView, i as gateView, l as scopedTenant, n as describeWith, o as permissionSet, r as filterResult, s as protectedView, t as approvalHandle, u as slotContent } from "../views-MWmJ6Y4P.js";
7
- import { a as eventSourceRefresh, i as broadcastChannelRefresh, l as isPromiseLike, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options--zWn48PK.js";
8
- import { n as switchTenant, t as providerStore } from "../provider-store-BQP_pp8s.js";
7
+ import { a as eventSourceRefresh, i as broadcastChannelRefresh, l as isPromiseLike, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-CDvoX52-.js";
8
+ import { n as switchTenant, t as providerStore } from "../provider-store-BTHGJH9j.js";
9
9
  import { ErrorBoundary, createComponent, createComputed, createContext, createMemo, createSignal, getOwner, on, onCleanup, useContext } from "solid-js";
10
10
  //#region src/solid/context.ts
11
11
  const PermDockContext = createContext(void 0);
@@ -192,6 +192,7 @@ function PermDockProvider(props) {
192
192
  const store = providerStore(compact({
193
193
  endpoint: props.endpoint,
194
194
  snapshotUrl: props.snapshotUrl,
195
+ fetchSnapshot: props.fetchSnapshot,
195
196
  approvals: props.approvals,
196
197
  tenant: props.tenant,
197
198
  maxAge: props.maxAge,
@@ -1,9 +1,9 @@
1
- import { $t as Snapshot, E as Policy, M as PolicyVocabulary, _r as Principal } from "../policy-types-D-GwfQTc.js";
1
+ import { D as Policy, N as PolicyVocabulary, en as Snapshot, yr as Principal } from "../policy-types-Ky7P23CP.js";
2
2
  import { u as Permission } from "../permission-types-CAY-GU7e.js";
3
3
  import { a as OperationInput, t as Operation } from "../operations-Ci_rT6Uo.js";
4
- import { a as PermDock } from "../permdock-ffY4CMd9.js";
5
- import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-3OnXjZ2D.js";
6
- import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-BdmfnbJM.js";
4
+ import { a as PermDock } from "../permdock-B45vPQb4.js";
5
+ import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-CwpJe664.js";
6
+ import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-Bq4AB3W2.js";
7
7
  import { APIEvent, FetchEvent } from "@solidjs/start/server";
8
8
  //#region src/solid-start/create.d.ts
9
9
  /** The h3 event under every SolidStart request; `subject` and `scope` read it. */
@@ -1,6 +1,6 @@
1
- import { l as InvalidSignatureError, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-h3KoJAPa.js";
2
- import { i as decorate } from "../bind-B4pMH9bm.js";
3
- import { n as guardedRoute, t as fetchAdapter } from "../fetch-adapter-DH-NJPbL.js";
1
+ import { l as InvalidSignatureError, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-CNMVJVD6.js";
2
+ import { i as decorate } from "../bind-BnKPWRrE.js";
3
+ import { n as guardedRoute, t as fetchAdapter } from "../fetch-adapter-Bm1iZolz.js";
4
4
  //#region src/solid-start/create.ts
5
5
  /**
6
6
  * `event.locals`. Its type, `App.RequestEventLocals`, is declared by
@@ -1,4 +1,4 @@
1
- import { _r as Principal, an as AuthEvent, rt as MembershipSource } from "./policy-types-D-GwfQTc.js";
1
+ import { it as MembershipSource, sn as AuthEvent, yr as Principal } from "./policy-types-Ky7P23CP.js";
2
2
  import { t as ClaimsMap } from "./claims-map-D1Pb5oRq.js";
3
3
  import { t as ClientNames } from "./clients-C_NOET3z.js";
4
4
  import { c as SupabaseManifestMembership } from "./manifest-B5yF3CIq.js";
@@ -1,8 +1,8 @@
1
1
  import { n as isReadonlyArray, r as isRecord, t as compact } from "./compact-CAf557ZB.js";
2
2
  import { n as freezeDeep } from "./freeze-jjan0lCv.js";
3
3
  import { r as ownGet } from "./paths-CUvURzHp.js";
4
- import { d as assertSqlFunctionArg, f as assertSqlFunctionName, l as normalizeWhere, u as assertPortableTwin } from "./role-builder-CMW4wWzn.js";
5
- import { n as PermDockDeniedError } from "./errors-B6R_lg2a.js";
4
+ import { d as assertSqlFunctionArg, f as assertSqlFunctionName, l as normalizeWhere, u as assertPortableTwin } from "./role-builder-C_2kWB_x.js";
5
+ import { n as PermDockDeniedError } from "./errors-ynga1EQy.js";
6
6
  import { o as sameId } from "./expiry-6XByK0dm.js";
7
7
  import { n as internalsOf } from "./internals-B3IgHrvo.js";
8
8
  import { c as listPermissions, i as getRegistry, n as findPermission } from "./permission-registry-B8tYxPIt.js";
@@ -13,19 +13,19 @@ import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
13
13
  import { a as normalizeMembership$1, c as rootScope, d as scopeList, l as scopeChain, o as normalizeMemberships$1, p as tenantOf, s as resolveScope$1, u as scopeIdOf } from "./scopes-BSdYaGHs.js";
14
14
  import { u as evaluateCondition } from "./delegation-aK4T_5WU.js";
15
15
  import { _ as listPlans, a as authenticated, m as findRole, o as flattenGrantee } from "./grantee-Dke-9rd1.js";
16
- import { a as normalizeApproval, r as assertApprovalRelations } from "./approval-normalize-CUjgSsOl.js";
16
+ import { a as normalizeApproval, r as assertApprovalRelations } from "./approval-normalize-hlfO9BJv.js";
17
17
  import { m as tenantsOf, r as isMembershipExpired } from "./tenancy-DvOHHk3-.js";
18
- import { c as levelNames, i as grantList, n as declaredRoleNames } from "./policy-cV_wwPb8.js";
19
- import { o as isPortableCondition } from "./hosted-waouw2V-.js";
18
+ import { c as levelNames, i as grantList, n as declaredRoleNames } from "./policy-DTmkP72P.js";
19
+ import { o as isPortableCondition } from "./hosted-iOGBI_ER.js";
20
20
  import { n as isOperationRisk } from "./operation-risks-BKOcTv8J.js";
21
21
  import { n as isOperationEffect } from "./operations-Bm9HFecz.js";
22
- import { C as tenantCustomRoles, S as roleAllowKeys, f as customRoleId, l as ceilingGrants, m as customRoleScope, p as customRoleOf, x as resolveCustomRole } from "./evaluate-Czbj7thS.js";
23
- import { a as heldLevels, f as bindingOf, h as usesAssigns, m as roleMeta, n as snapshotScopes, o as collectSnapshotGrants, p as rankRoles, r as assignableCandidates, t as snapshotOf } from "./instance-snapshot-BWa71my8.js";
22
+ import { C as tenantCustomRoles, S as roleAllowKeys, f as customRoleId, l as ceilingGrants, m as customRoleScope, p as customRoleOf, x as resolveCustomRole } from "./evaluate-CrKkjgXS.js";
23
+ import { a as heldLevels, f as bindingOf, h as usesAssigns, m as roleMeta, n as snapshotScopes, o as collectSnapshotGrants, p as rankRoles, r as assignableCandidates, t as snapshotOf } from "./instance-snapshot-DXxcizAb.js";
24
24
  import { n as relationId } from "./relations-BxvRvDHK.js";
25
- import { i as snapshotGrant, r as plainPermission, t as buildSnapshot } from "./snapshot-DN_8J27z.js";
26
- import { n as LOCAL_CUSTOM_ROLE } from "./parse-local-manifest-CxcSMQgl.js";
27
- import { c as APP, r as resolveSubject } from "./permdock-D-_WrdKu.js";
28
- import { i as memoryApprovalStore } from "./store-DmVqy74I.js";
25
+ import { i as snapshotGrant, r as plainPermission, t as buildSnapshot } from "./snapshot-DHPih65J.js";
26
+ import { n as LOCAL_CUSTOM_ROLE } from "./parse-local-manifest-Ce2N-Opr.js";
27
+ import { c as APP, r as resolveSubject } from "./permdock-DeOfonuG.js";
28
+ import { i as memoryApprovalStore } from "./store-CSOsXd5s.js";
29
29
  import { n as wrapPermDock } from "./wrap-C5PWzgkq.js";
30
30
  //#region src/conditions/sql-function.ts
31
31
  function sqlFunction(name, options) {
@@ -74,6 +74,15 @@ function memoryMembershipSource(entries) {
74
74
  }
75
75
  });
76
76
  }
77
+ /**
78
+ * The memberships `subject`'s principal carries, as a `MembershipSource` for
79
+ * `permdockFor` and `snapshotFor`. It answers for that principal only; any
80
+ * other principal has none.
81
+ */
82
+ function subjectMembershipSource(subject) {
83
+ const principal = subject.principal;
84
+ return memoryMembershipSource(principal === null ? {} : { [principal.id]: principal.memberships ?? [] });
85
+ }
77
86
  /** A snapshot held in memory; `set` replaces it and notifies every subscriber. */
78
87
  function memorySnapshotSource(initial) {
79
88
  let current = initial;
@@ -324,6 +333,7 @@ function tightenApproval(code, entries, input) {
324
333
  const seen = /* @__PURE__ */ new Set();
325
334
  let sequential = false;
326
335
  let authorize = false;
336
+ let fallback = true;
327
337
  let staleOn;
328
338
  let ttl;
329
339
  for (const [index, part] of parts.entries()) {
@@ -337,10 +347,14 @@ function tightenApproval(code, entries, input) {
337
347
  }
338
348
  if (part === "human") {
339
349
  authorize = true;
350
+ fallback = false;
340
351
  continue;
341
352
  }
342
353
  sequential ||= part.combine === "sequential";
343
- authorize ||= part.mode !== "confirm";
354
+ if (part.mode !== "confirm") {
355
+ authorize = true;
356
+ fallback &&= part.fallback === "confirm";
357
+ }
344
358
  staleOn ??= part.staleOn;
345
359
  ttl = shorter(ttl, part.ttl);
346
360
  }
@@ -348,6 +362,7 @@ function tightenApproval(code, entries, input) {
348
362
  combine: sequential ? "sequential" : "all",
349
363
  stages,
350
364
  mode: authorize ? void 0 : "confirm",
365
+ fallback: authorize && fallback ? "confirm" : void 0,
351
366
  staleOn,
352
367
  ttl,
353
368
  escalation: code === void 0 || code === "human" ? void 0 : code.escalation
@@ -2205,4 +2220,4 @@ function toCsvRow(event) {
2205
2220
  ].map(field).join(",");
2206
2221
  }
2207
2222
  //#endregion
2208
- export { memoryCustomRoleSource as A, limits as C, approvalPoliciesFor as D, approvalPolicies as E, sqlFunction as F, memoryMembershipSource as M, memorySettingsSource as N, memoryApprovalPolicySource as O, memorySnapshotSource as P, memoryRelationSource as S, stripeEntitlementSource as T, arazzoFindings as _, normalizeMembership as a, instanceCache as b, crud as c, snapshotFor as d, customRoleSource as f, localSnapshotManifest as g, defineApp as h, decideRoleChange as i, memoryEntitlementSource as j, validateApprovalPolicy as k, readable as l, shadowMode as m, toCsvRow as n, normalizeMemberships as o, mayAccess as p, checkRoleChange as r, resolveScope as s, CSV_COLUMNS as t, writable as u, simulateArazzo as v, memoryLimitStore as w, signPolicyDocument as x, memoryVersionCache as y };
2223
+ export { memoryCustomRoleSource as A, limits as C, approvalPoliciesFor as D, approvalPolicies as E, subjectMembershipSource as F, sqlFunction as I, memoryMembershipSource as M, memorySettingsSource as N, memoryApprovalPolicySource as O, memorySnapshotSource as P, memoryRelationSource as S, stripeEntitlementSource as T, arazzoFindings as _, normalizeMembership as a, instanceCache as b, crud as c, snapshotFor as d, customRoleSource as f, localSnapshotManifest as g, defineApp as h, decideRoleChange as i, memoryEntitlementSource as j, validateApprovalPolicy as k, readable as l, shadowMode as m, toCsvRow as n, normalizeMemberships as o, mayAccess as p, checkRoleChange as r, resolveScope as s, CSV_COLUMNS as t, writable as u, simulateArazzo as v, memoryLimitStore as w, signPolicyDocument as x, memoryVersionCache as y };
@@ -1,4 +1,4 @@
1
- import { A as SsfSubject, C as SsfEventName, D as SsfReceiver, E as SsfPermDockOptions, M as SsfTransmitterConfiguration, N as SsfVerification, O as SsfStreamConfiguration, S as SsfEventListener, T as SsfPermDock, _ as SetSubject, a as PollHandle, b as SsfEventHandler, c as PushSetOptions, d as SetDelivery, f as SetDeliveryFailureCause, g as SetQueue, h as SetPollHandlerOptions, i as CaepReason, j as SsfSubjectResolver, k as SsfStreamStatus, l as ReplayStore, m as SetEvent, n as CaepEventName, o as PollOptions, p as SetError, r as CaepInitiatingEntity, s as PollResult, t as CaepCommon, u as RiscEventName, v as SignSetOptions, w as SsfOnEvent, x as SsfEventInput, y as SsfAuditEvent } from "../types-Ck1KOfug.js";
2
- import { t as memoryReplayStore } from "../replay-E5X9E1lC.js";
3
- import { A as createPermDock, C as memorySsfStreamStore, D as PollSetsResult, E as PollSetsOptions, O as PolledSet, S as SsfStreamStore, T as setPollHandler, _ as SsfFanOut, a as CaepTokenClaimsChange, b as ssfTransmitter, c as RiscEvents, d as caepEvents, f as pushSet, g as FanOutSetOptions, h as streamVerificationEvent, i as CaepEvents, k as pollSets, l as SSF_POLL_DELIVERY, m as signSet, n as CaepCredentialChange, o as RiscAccountDisabled, p as riscEvents, r as CaepDeviceComplianceChange, s as RiscCredentialCompromise, t as CaepAssuranceLevelChange, u as SSF_PUSH_DELIVERY, v as SsfTransmitterOptions, w as memorySetQueue, x as SsfStream, y as fanOutSet } from "../index-BhnOOnp9.js";
1
+ import { A as SsfSubject, C as SsfEventName, D as SsfReceiver, E as SsfPermDockOptions, M as SsfTransmitterConfiguration, N as SsfVerification, O as SsfStreamConfiguration, S as SsfEventListener, T as SsfPermDock, _ as SetSubject, a as PollHandle, b as SsfEventHandler, c as PushSetOptions, d as SetDelivery, f as SetDeliveryFailureCause, g as SetQueue, h as SetPollHandlerOptions, i as CaepReason, j as SsfSubjectResolver, k as SsfStreamStatus, l as ReplayStore, m as SetEvent, n as CaepEventName, o as PollOptions, p as SetError, r as CaepInitiatingEntity, s as PollResult, t as CaepCommon, u as RiscEventName, v as SignSetOptions, w as SsfOnEvent, x as SsfEventInput, y as SsfAuditEvent } from "../types-oaqeYKQu.js";
2
+ import { t as memoryReplayStore } from "../replay-BqmXcP7x.js";
3
+ import { A as createPermDock, C as memorySsfStreamStore, D as PollSetsResult, E as PollSetsOptions, O as PolledSet, S as SsfStreamStore, T as setPollHandler, _ as SsfFanOut, a as CaepTokenClaimsChange, b as ssfTransmitter, c as RiscEvents, d as caepEvents, f as pushSet, g as FanOutSetOptions, h as streamVerificationEvent, i as CaepEvents, k as pollSets, l as SSF_POLL_DELIVERY, m as signSet, n as CaepCredentialChange, o as RiscAccountDisabled, p as riscEvents, r as CaepDeviceComplianceChange, s as RiscCredentialCompromise, t as CaepAssuranceLevelChange, u as SSF_PUSH_DELIVERY, v as SsfTransmitterOptions, w as memorySetQueue, x as SsfStream, y as fanOutSet } from "../index-C2pmTzFx.js";
4
4
  export { type CaepAssuranceLevelChange, type CaepCommon, type CaepCredentialChange, type CaepDeviceComplianceChange, type CaepEventName, type CaepEvents, type CaepInitiatingEntity, type CaepReason, type CaepTokenClaimsChange, type FanOutSetOptions, type PollHandle, type PollOptions, type PollResult, type PollSetsOptions, type PollSetsResult, type PolledSet, type PushSetOptions, type ReplayStore, type RiscAccountDisabled, type RiscCredentialCompromise, type RiscEventName, type RiscEvents, SSF_POLL_DELIVERY, SSF_PUSH_DELIVERY, type SetDelivery, type SetDeliveryFailureCause, type SetError, type SetEvent, type SetPollHandlerOptions, type SetQueue, type SetSubject, type SignSetOptions, type SsfAuditEvent, type SsfEventHandler, type SsfEventInput, type SsfEventListener, type SsfEventName, type SsfFanOut, type SsfOnEvent, type SsfPermDock, type SsfPermDockOptions, type SsfReceiver, type SsfStream, type SsfStreamConfiguration, type SsfStreamStatus, type SsfStreamStore, type SsfSubject, type SsfSubjectResolver, type SsfTransmitterConfiguration, type SsfTransmitterOptions, type SsfVerification, caepEvents, createPermDock, fanOutSet, memoryReplayStore, memorySetQueue, memorySsfStreamStore, pollSets, pushSet, riscEvents, setPollHandler, signSet, ssfTransmitter, streamVerificationEvent };
package/dist/ssf/index.js CHANGED
@@ -2,8 +2,8 @@ import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
2
2
  import { o as statusProblem } from "../problem-details-CLDgX1KV.js";
3
3
  import { o as epochSeconds } from "../time-nR1JesoH.js";
4
4
  import { n as readBodyText } from "../body-text-DQhcmqdY.js";
5
- import { f as validationProblem, l as problemResponse, o as methodNotAllowed, s as notFoundProblem } from "../problem-BVLHFK33.js";
6
- import { t as cancelApprovals } from "../helpers-DmqGy63f.js";
5
+ import { f as validationProblem, l as problemResponse, o as methodNotAllowed, s as notFoundProblem } from "../problem-BWP1l86g.js";
6
+ import { t as cancelApprovals } from "../helpers-D-MXwkOF.js";
7
7
  import { i as issuerFromDiscovery, t as joseTokenVerifier } from "../verifier-DUV6pLqZ.js";
8
8
  import { t as memoryReplayStore } from "../replay-BU09ad4L.js";
9
9
  import { t as timeoutSignal } from "../timeout-D51niuQP.js";
@@ -1,5 +1,5 @@
1
- import { Kt as Instant, hr as JsonWebKeyLike } from "./policy-types-D-GwfQTc.js";
2
- import { l as ReplayStore } from "./types-Ck1KOfug.js";
1
+ import { _r as JsonWebKeyLike, qt as Instant } from "./policy-types-Ky7P23CP.js";
2
+ import { l as ReplayStore } from "./types-oaqeYKQu.js";
3
3
  //#region src/server/standard-webhooks.d.ts
4
4
  /** The three Standard Webhooks headers a delivery carries. */
5
5
  type WebhookHeaders = {
@@ -2,7 +2,7 @@ import { t as compact } from "./compact-CAf557ZB.js";
2
2
  import { n as freezeDeep } from "./freeze-jjan0lCv.js";
3
3
  import { a as flattenApprovers, i as approverManagerKey } from "./approvers-BaNwKYgd.js";
4
4
  import { a as durationOf, i as dateAt } from "./time-nR1JesoH.js";
5
- import { o as readWireApproval } from "./approval-normalize-CUjgSsOl.js";
5
+ import { o as readWireApproval } from "./approval-normalize-hlfO9BJv.js";
6
6
  import { i as rootMembershipId } from "./subject-C7RddW0G.js";
7
7
  import { n as matchGrantee } from "./grantee-match-BP-k4vRJ.js";
8
8
  import { a as escalationOpenAt, i as approverRelationKey, o as stageEscalationOpenAt, r as approvalQuorum, s as ApprovalError } from "./types-CcUXciSj.js";
@@ -167,13 +167,15 @@ function matchesFilter(request, filter) {
167
167
  if (filter.session !== void 0 && request.subject.session !== filter.session) return false;
168
168
  return true;
169
169
  }
170
- function assertSeparateApprover(request, by, requireDistinctApprover) {
170
+ function assertSeparateApprover(request, by, requireDistinctApprover, otherApprovers) {
171
171
  const principal = by.principal;
172
172
  if (principal === null) throw new ApprovalError("approver-unauthenticated", "approver must be authenticated");
173
173
  if (principal.kind === "link" || principal.kind === "feed" || principal.kind === "contact") throw new ApprovalError("approver-not-eligible", "a link, a feed or a contact cannot approve");
174
174
  if (by.actor?.kind === "support") throw new ApprovalError("approver-not-eligible", "a support session cannot approve");
175
175
  if (request.subject.actor !== void 0 && principal.id === request.subject.actor.id) throw new ApprovalError("approver-is-actor", "approver is the actor of this request");
176
- if ((requireDistinctApprover || readWireApproval(request.approvers)?.mode !== "confirm") && request.subject.principal !== null && principal.id === request.subject.principal.id) throw new ApprovalError("approver-is-principal", "approver is the principal of this request");
176
+ const wire = readWireApproval(request.approvers);
177
+ const alone = wire?.fallback === "confirm" && otherApprovers === 0;
178
+ if ((requireDistinctApprover || wire?.mode !== "confirm" && !alone) && request.subject.principal !== null && principal.id === request.subject.principal.id) throw new ApprovalError("approver-is-principal", "approver is the principal of this request");
177
179
  if (by.actor !== void 0 && !isSystemSubject(by) || by.delegation !== void 0 || principal.kind === "service" || principal.kind === "workload") throw new ApprovalError("approver-not-eligible", "an approver must be a person acting for themselves, not an agent, a delegated token or a service");
178
180
  return principal;
179
181
  }
@@ -193,9 +195,9 @@ function vouchedRule(verdict) {
193
195
  * are the relation approvers `by` holds on the request's resource (see
194
196
  * `ApprovalVerdict.relations`).
195
197
  */
196
- function assertApprover(request, by, requireDistinctApprover, at, relations = [], permissions = []) {
198
+ function assertApprover(request, by, requireDistinctApprover, at, relations = [], permissions = [], otherApprovers) {
197
199
  const now = dateAt(at);
198
- const principal = assertSeparateApprover(request, by, requireDistinctApprover);
200
+ const principal = assertSeparateApprover(request, by, requireDistinctApprover, otherApprovers);
199
201
  const tenant = request.subject.principal?.tenant;
200
202
  if (tenant !== void 0 && !belongsToTenant(by, tenant)) throw new ApprovalError("approver-not-eligible", "approver does not belong to the request tenant");
201
203
  assertNotRepeated(request, principal.id);
@@ -248,7 +250,7 @@ function applyApprovalVerdict(request, verdict, at) {
248
250
  const behalf = vouched === void 0 ? verdict.onBehalfOf : void 0;
249
251
  let stage;
250
252
  if (verdict.status === "rejected" && isSystemSubject(verdict.by) || vouched !== void 0) stage = void 0;
251
- else if (behalf === void 0) stage = assertApprover(request, verdict.by, false, { epochMilliseconds: now.getTime() }, verdict.relations, verdict.permissions);
253
+ else if (behalf === void 0) stage = assertApprover(request, verdict.by, false, { epochMilliseconds: now.getTime() }, verdict.relations, verdict.permissions, verdict.otherApprovers);
252
254
  else {
253
255
  const delegate = assertSeparateApprover(request, verdict.by, false);
254
256
  const tenant = request.subject.principal?.tenant;
@@ -1,8 +1,8 @@
1
- import { $t as Snapshot, M as PolicyVocabulary, _r as Principal, _t as TokenVerifier, pr as Delegation, qn as Decision, sr as Actor } from "./policy-types-D-GwfQTc.js";
1
+ import { N as PolicyVocabulary, Yn as Decision, en as Snapshot, hr as Delegation, lr as Actor, vt as TokenVerifier, yr as Principal } from "./policy-types-Ky7P23CP.js";
2
2
  import { u as Permission } from "./permission-types-CAY-GU7e.js";
3
- import { a as PermDock } from "./permdock-ffY4CMd9.js";
4
- import { a as ProblemDetails } from "./errors-TpzkEKgJ.js";
5
- import { n as DescribeMessages, t as DecisionDescription } from "./describe-BKtC_8PG.js";
3
+ import { a as PermDock } from "./permdock-B45vPQb4.js";
4
+ import { a as ProblemDetails } from "./errors-POWcCXy7.js";
5
+ import { n as DescribeMessages, t as DecisionDescription } from "./describe-DyN-HX6o.js";
6
6
  import { r as RefreshTrigger } from "./refresh-on-L9UOwATg.js";
7
7
  //#region src/core/action-result.d.ts
8
8
  /** What a `protectAction` action resolves to; both members cross to the client. */
@@ -113,6 +113,11 @@ type ProviderOptionsBase = {
113
113
  readonly endpoint?: string | false;
114
114
  /** Where `refresh()` fetches a fresh snapshot. Defaults to `endpoint`. */
115
115
  readonly snapshotUrl?: string;
116
+ /**
117
+ * Answers `refresh()` in place of a request to `snapshotUrl` or `endpoint`;
118
+ * see `ClientStoreOptions.fetchSnapshot`.
119
+ */
120
+ readonly fetchSnapshot?: NonNullable<ClientStoreOptions["fetchSnapshot"]>;
116
121
  readonly approvals?: string;
117
122
  /** Read on every request, so a new `fetch` applies without a new store. */
118
123
  readonly fetch?: typeof fetch;
@@ -170,6 +175,15 @@ type ClientStoreOptions = {
170
175
  readonly snapshot: Snapshot | string;
171
176
  readonly endpoint?: string;
172
177
  readonly snapshotUrl?: string;
178
+ /**
179
+ * Answers a refresh in place of a request to `snapshotUrl` or `endpoint`: the
180
+ * app's own source of a snapshot, such as a server action. A rejection keeps
181
+ * the current snapshot and marks it stale. With a `verifier`, it must answer
182
+ * a signed snapshot.
183
+ */
184
+ readonly fetchSnapshot?: (query: {
185
+ readonly tenant?: string;
186
+ }) => Snapshot | string | Promise<Snapshot | string>;
173
187
  readonly approvals?: string;
174
188
  readonly tenant?: string;
175
189
  readonly fetch?: typeof fetch;
@@ -234,6 +248,19 @@ type ClientStore = {
234
248
  * settled (`status: 'fulfilled'`) hydrates at once.
235
249
  */
236
250
  track: (value: PromiseLike<Snapshot | string>) => void;
251
+ /**
252
+ * Render-time `track()`: hydrates at once from a promise React already
253
+ * settled (`status: 'fulfilled'`) and does nothing for a pending one, which
254
+ * `track()` follows after commit. Subscribers are notified in a microtask,
255
+ * never inside render.
256
+ */
257
+ seed: (value: PromiseLike<Snapshot | string>) => void;
258
+ /**
259
+ * What a server render saw: the instance the store held when first read after
260
+ * `seed()`. Pass it as `getServerSnapshot`, so a boundary that hydrates after
261
+ * the store moved on still matches the server's markup, then updates.
262
+ */
263
+ serverGet: () => ClientPermDock;
237
264
  /**
238
265
  * The approval state for a decision. While something subscribes, an
239
266
  * `approval-required` decision is polled at `<approvals>/<token>`.
@@ -3,9 +3,9 @@ import { g as secondsOf } from "./time-nR1JesoH.js";
3
3
  import { c as rowIdOf } from "./delegation-aK4T_5WU.js";
4
4
  import { c as nowSeconds } from "./tenancy-DvOHHk3-.js";
5
5
  import { r as payloadDigest } from "./token-DaMnIU9O.js";
6
- import { n as parseSnapshot } from "./snapshot-DN_8J27z.js";
7
- import { c as snapshotClaim } from "./where-scope-BKrqUDVk.js";
8
- import { n as fromSnapshot, t as emptySnapshot } from "./from-snapshot-DMlSSo9b.js";
6
+ import { n as parseSnapshot } from "./snapshot-DHPih65J.js";
7
+ import { c as snapshotClaim } from "./where-scope-BAyOsPQW.js";
8
+ import { n as fromSnapshot, t as emptySnapshot } from "./from-snapshot-DHnb8Fh4.js";
9
9
  import { t as timeoutSignal } from "./timeout-D51niuQP.js";
10
10
  //#region src/client/source.ts
11
11
  /** A compact JWS: three non-empty dot-separated parts. */
@@ -441,6 +441,7 @@ function createClientStore(options) {
441
441
  let awaiting = options.awaiting === true;
442
442
  let following = awaiting ? 1 : 0;
443
443
  let tracked;
444
+ let serverView;
444
445
  let refreshSeq = 0;
445
446
  let silent = false;
446
447
  let adopted;
@@ -682,8 +683,10 @@ function createClientStore(options) {
682
683
  },
683
684
  async refresh(query) {
684
685
  const requested = query?.tenant;
686
+ const fetchSnapshot = options.fetchSnapshot;
685
687
  const source = options.snapshotUrl ?? options.endpoint;
686
- if (requested !== void 0 && (snapshot.tenants.includes(requested) || source === void 0)) {
688
+ const hasSource = fetchSnapshot !== void 0 || source !== void 0;
689
+ if (requested !== void 0 && (snapshot.tenants.includes(requested) || !hasSource)) {
687
690
  const wasStale = base === "stale";
688
691
  tenant = requested;
689
692
  hydrate(snapshot);
@@ -693,7 +696,7 @@ function createClientStore(options) {
693
696
  }
694
697
  return;
695
698
  }
696
- if (source === void 0 || disposed) return;
699
+ if (!hasSource || disposed) return;
697
700
  const started = generation;
698
701
  refreshSeq += 1;
699
702
  const seq = refreshSeq;
@@ -702,10 +705,15 @@ function createClientStore(options) {
702
705
  let body;
703
706
  let ok = false;
704
707
  try {
705
- const response = await request(withTenant(source, requested));
706
- if (response.ok) {
707
- body = await response.json();
708
+ if (fetchSnapshot !== void 0) {
709
+ body = await fetchSnapshot(compact({ tenant: requested }));
708
710
  ok = true;
711
+ } else if (source !== void 0) {
712
+ const response = await request(withTenant(source, requested));
713
+ if (response.ok) {
714
+ body = await response.json();
715
+ ok = true;
716
+ }
709
717
  }
710
718
  } catch {
711
719
  ok = false;
@@ -802,6 +810,20 @@ function createClientStore(options) {
802
810
  else if (thenable.status === "rejected") serverOnly();
803
811
  else follow(value);
804
812
  },
813
+ seed(value) {
814
+ const thenable = value;
815
+ if (tracked === value || thenable.status !== "fulfilled") return;
816
+ tracked = value;
817
+ if (awaiting) {
818
+ awaiting = false;
819
+ following -= 1;
820
+ }
821
+ store.adopt(thenable.value, value);
822
+ },
823
+ serverGet() {
824
+ serverView ??= cached;
825
+ return serverView;
826
+ },
805
827
  adopt(value, source) {
806
828
  if (adopted === source) return;
807
829
  adopted = source;
@@ -869,6 +891,7 @@ function adapterStore(options, snapshot, native) {
869
891
  endpoint: options.endpoint === false ? void 0 : options.endpoint,
870
892
  onServerOnly: options.endpoint === false ? hintOnce() : void 0,
871
893
  snapshotUrl: options.snapshotUrl,
894
+ fetchSnapshot: options.fetchSnapshot,
872
895
  approvals: options.approvals,
873
896
  tenant: options.tenant,
874
897
  fetch: options.fetch,
@@ -1,10 +1,10 @@
1
- import { M as PolicyVocabulary, gr as Membership, qn as Decision } from "./policy-types-D-GwfQTc.js";
1
+ import { N as PolicyVocabulary, Yn as Decision, vr as Membership } from "./policy-types-Ky7P23CP.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-ffY4CMd9.js";
5
- import { r as DescribeOptions, t as DecisionDescription } from "./describe-BKtC_8PG.js";
6
- import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, g as SubjectView, h as RolesOptions, l as GateView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, y as ProtectedAction } from "./store-DYeB-_U3.js";
7
- import { n as ProtectedActionReadable, r as SveltePermDockOptions } from "./types-D19MK4t-.js";
4
+ import { d as UncheckedData, s as RowData } from "./permdock-B45vPQb4.js";
5
+ import { r as DescribeOptions, t as DecisionDescription } from "./describe-DyN-HX6o.js";
6
+ import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, g as SubjectView, h as RolesOptions, l as GateView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, y as ProtectedAction } from "./store-CjJaZI_g.js";
7
+ import { n as ProtectedActionReadable, r as SveltePermDockOptions } from "./types-Bwdumeos.js";
8
8
  import { Readable } from "svelte/store";
9
9
  //#region src/svelte/stores.d.ts
10
10
  declare function setPermDock(options: SveltePermDockOptions): ClientPermDock;
@@ -1,6 +1,6 @@
1
1
  import { n as actionRunner, t as actionApproval } from "./protected-action-OpOxtTsN.js";
2
2
  import { a as livePermDock, c as rolesView, d as subjectView, f as tenantView, i as gateView, n as describeWith, o as permissionSet, r as filterResult, t as approvalHandle } from "./views-MWmJ6Y4P.js";
3
- import { n as getUi, r as providePermDock, t as getStore } from "./context-DeammvFl.js";
3
+ import { n as getUi, r as providePermDock, t as getStore } from "./context-YhyXyqBI.js";
4
4
  import { derived, readable, toStore, writable } from "svelte/store";
5
5
  //#region src/svelte/stores.ts
6
6
  function fromStore(store, compute) {
@@ -1,4 +1,4 @@
1
- import { r as PermDockRevokedError } from "./errors-B6R_lg2a.js";
1
+ import { r as PermDockRevokedError } from "./errors-ynga1EQy.js";
2
2
  //#region src/server/stream.ts
3
3
  function isAsyncIterable(value) {
4
4
  return value !== null && typeof value === "object" && typeof value[Symbol.asyncIterator] === "function";
@@ -1,2 +1,2 @@
1
- import { i as supabaseRealtimeRefresh, n as RealtimeRefreshClient, r as SupabaseRealtimeRefreshOptions, t as RealtimeRefreshChannel } from "../client-CH7vzSAY.js";
1
+ import { i as supabaseRealtimeRefresh, n as RealtimeRefreshClient, r as SupabaseRealtimeRefreshOptions, t as RealtimeRefreshChannel } from "../client-JK504UCq.js";
2
2
  export { RealtimeRefreshChannel, RealtimeRefreshClient, SupabaseRealtimeRefreshOptions, supabaseRealtimeRefresh };