permdock 0.17.0 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/dist/a2a/index.d.ts +4 -4
  2. package/dist/a2a/index.js +3 -3
  3. package/dist/{adoption-scan-Ci0xiJ3T.js → adoption-scan-CxExBYSJ.js} +1 -1
  4. package/dist/agent/index.d.ts +2 -2
  5. package/dist/agent/index.js +1 -1
  6. package/dist/ai-sdk/index.d.ts +3 -3
  7. package/dist/ai-sdk/index.js +3 -3
  8. package/dist/{approval-normalize-4KxMRdJC.js → approval-normalize-CUjgSsOl.js} +1 -1
  9. package/dist/{approval-policies-9VagPixq.d.ts → approval-policies-oNnckT12.d.ts} +1 -1
  10. package/dist/{approval-prompt-BSh-yxbH.d.ts → approval-prompt-Bg7gDSqd.d.ts} +1 -1
  11. package/dist/approvals/index.d.ts +3 -3
  12. package/dist/approvals/index.js +3 -3
  13. package/dist/{approvals-DdFcTncq.js → approvals-DGId_hgJ.js} +2 -2
  14. package/dist/{approvers-CNtl4Vc5.js → approvers-BaNwKYgd.js} +1 -3
  15. package/dist/{arazzo-_zUmT8ZT.js → arazzo--riLuGY0.js} +2 -2
  16. package/dist/{arazzo-7kbeh1yi.js → arazzo-CEDbb-uM.js} +1 -1
  17. package/dist/astro/index.d.ts +4 -4
  18. package/dist/astro/index.js +2 -2
  19. package/dist/{audience-jRO819i3.js → audience-B4YR9UpV.js} +1 -1
  20. package/dist/authzen/index.d.ts +5 -5
  21. package/dist/authzen/index.js +2 -2
  22. package/dist/{automation-DCWuVKtd.d.ts → automation-Bfa_wD1h.d.ts} +1 -1
  23. package/dist/better-auth/index.d.ts +1 -1
  24. package/dist/better-auth/index.js +1 -1
  25. package/dist/better-supabase/index.d.ts +153 -91
  26. package/dist/better-supabase/index.js +332 -62
  27. package/dist/{bind-BJFeLX1V.js → bind-B4pMH9bm.js} +4 -4
  28. package/dist/{bind-DjFNX0Pq.d.ts → bind-DR6ku3A9.d.ts} +7 -7
  29. package/dist/{build-instance-lye7oEqf.js → build-instance-BFMFQdE_.js} +1 -1
  30. package/dist/{capability-BzjWdKmP.d.ts → capability-BZ_veK9o.d.ts} +1 -1
  31. package/dist/{casbin-DFzk_so3.js → casbin-DCQHkkyj.js} +1 -1
  32. package/dist/{casbin-C3O_O9nu.js → casbin-bKC1FpEx.js} +1 -1
  33. package/dist/catalog/index.d.ts +4 -4
  34. package/dist/catalog/index.js +5 -5
  35. package/dist/catalog-Caqhbdix.js +1 -0
  36. package/dist/{catalog-DGDd_ww1.js → catalog-D1fw8qif.js} +2 -2
  37. package/dist/{catalog-operations-DVI5QO5R.js → catalog-operations-BD22drQf.js} +2 -2
  38. package/dist/{catalog-DJJIkR9P.js → catalog-zzNuR3sY.js} +1 -1
  39. package/dist/{challenge-M_ghKJnT.js → challenge-B2O2OLEk.js} +1 -1
  40. package/dist/chat/index.d.ts +1 -1
  41. package/dist/chat/index.js +2 -2
  42. package/dist/chat-sdk/index.d.ts +3 -3
  43. package/dist/claude-agent/index.d.ts +3 -3
  44. package/dist/claude-agent/index.js +2 -2
  45. package/dist/clerk/index.d.ts +2 -2
  46. package/dist/cli/bin.js +1 -1
  47. package/dist/cli/index.d.ts +4 -4
  48. package/dist/cli/index.js +2 -2
  49. package/dist/client-CH7vzSAY.d.ts +32 -0
  50. package/dist/cloud/index.d.ts +8 -8
  51. package/dist/cloud/index.js +1 -1
  52. package/dist/{cloud-DYqzmh5i.js → cloud-C0vXBmLG.js} +2 -2
  53. package/dist/{codemod-DqB9klYI.js → codemod-C-L0w-u7.js} +2 -2
  54. package/dist/{codemod-DNGMGqBS.js → codemod-eYI1FbeJ.js} +1 -1
  55. package/dist/{collect-C44RrKCI.js → collect-CU85z6Ta.js} +2 -2
  56. package/dist/{collect-HfJXl8Tr.js → collect-D878zLDP.js} +1 -1
  57. package/dist/collect-KCtOigxx.js +1 -0
  58. package/dist/compile/index.d.ts +1 -1
  59. package/dist/{compile-BxiwRotu.d.ts → compile-DBm0ub4p.d.ts} +2 -2
  60. package/dist/{completion-pwVjJlek.js → completion-Dauc6pVT.js} +1 -1
  61. package/dist/{config-DnfH6_eT.js → config-DWp2PucY.js} +1 -1
  62. package/dist/{config-report-C1jl7Na-.js → config-report-DKpFm5ID.js} +2 -2
  63. package/dist/convex/index.d.ts +4 -4
  64. package/dist/convex/index.js +2 -2
  65. package/dist/{core-W5f4Rjt0.js → core-B8sLve3z.js} +3 -3
  66. package/dist/{core-0iYZ5HUx.d.ts → core-D87h2kpR.d.ts} +2 -2
  67. package/dist/{create-jCPwPWXf.js → create-3A7J9KRR.js} +4 -4
  68. package/dist/{create-DrHUmKvG.d.ts → create-BrQXL-Wt.d.ts} +6 -6
  69. package/dist/{create-bzQlBzG4.d.ts → create-BzwjZuRS.d.ts} +7 -7
  70. package/dist/{create-gqtDb1nU.js → create-C-tm3KIF.js} +3 -3
  71. package/dist/{create-DNN3OtsO.d.ts → create-CtoT1lIQ.d.ts} +4 -4
  72. package/dist/delivery/index.d.ts +4 -4
  73. package/dist/delivery/index.js +1 -1
  74. package/dist/{denied-text-DyzWwxEB.d.ts → denied-text-DlIxt8fh.d.ts} +1 -1
  75. package/dist/{describe-nalX_HHE.d.ts → describe-BKtC_8PG.d.ts} +1 -1
  76. package/dist/{describe-CogP1loh.js → describe-BZAlPHxT.js} +1 -1
  77. package/dist/{diff-BTsLiW59.js → diff-BnNHqtHj.js} +4 -4
  78. package/dist/{diff-CcxYooMu.js → diff-CBCzOTWM.js} +1 -1
  79. package/dist/{doctor-DS-9ApID.js → doctor-CkYKCuX7.js} +55 -17
  80. package/dist/{doctor-BNRhJegR.js → doctor-xUpR5rXg.js} +2 -2
  81. package/dist/drizzle/index.d.ts +3 -3
  82. package/dist/elysia/index.d.ts +4 -4
  83. package/dist/elysia/index.js +3 -3
  84. package/dist/{errors-Dc9FdamT.d.ts → errors-TpzkEKgJ.d.ts} +1 -1
  85. package/dist/{evaluate-CsjXeLRo.js → evaluate-Czbj7thS.js} +2 -2
  86. package/dist/{evaluations-BasA9zXp.d.ts → evaluations-CisTTURl.d.ts} +3 -3
  87. package/dist/{evaluations-DG40eSJa.js → evaluations-h3KoJAPa.js} +1 -1
  88. package/dist/eve/index.d.ts +4 -4
  89. package/dist/eve/index.js +3 -3
  90. package/dist/express/index.d.ts +4 -4
  91. package/dist/express/index.js +3 -3
  92. package/dist/fastify/index.d.ts +4 -4
  93. package/dist/fastify/index.js +3 -3
  94. package/dist/{fetch-adapter-BgqpOOpd.d.ts → fetch-adapter-BdmfnbJM.d.ts} +2 -2
  95. package/dist/{fetch-adapter-UZOW0PRC.js → fetch-adapter-DH-NJPbL.js} +2 -2
  96. package/dist/{fixtures-0VTW5oNq.js → fixtures-Cemqurt8.js} +8 -2
  97. package/dist/{gen-CNCzG4sB.js → gen-BEIN-DRM.js} +1 -1
  98. package/dist/{gen-DnpZwQPo.js → gen-mf-MRwVr.js} +3 -3
  99. package/dist/h3/index.d.ts +4 -4
  100. package/dist/h3/index.js +3 -3
  101. package/dist/{helpers-DNnZffrI.js → helpers-DmqGy63f.js} +21 -13
  102. package/dist/hono/index.d.ts +4 -4
  103. package/dist/hono/index.js +3 -3
  104. package/dist/{hosted-DxRLLiFU.d.ts → hosted-BFNXwcjd.d.ts} +1 -1
  105. package/dist/{hosted-tPZnyjQS.js → hosted-waouw2V-.js} +3 -3
  106. package/dist/{import-BYVbSKx0.js → import-DObwEota.js} +1 -1
  107. package/dist/{index-z44pfWar.d.ts → index-BhnOOnp9.d.ts} +2 -2
  108. package/dist/{index-DFwUOkvt.d.ts → index-CVGio3cH.d.ts} +4 -4
  109. package/dist/{index-CXXUFWtG.d.ts → index-CdMOd-GY.d.ts} +4 -4
  110. package/dist/{index-Bt-UoBWu.d.ts → index-CdUTE6qd.d.ts} +8 -8
  111. package/dist/{index-CZ5mixHO.d.ts → index-Dfv9Toct.d.ts} +1 -1
  112. package/dist/{index-DtGtDzjb.d.ts → index-rFp6X_QP.d.ts} +4 -4
  113. package/dist/index.d.ts +17 -17
  114. package/dist/index.js +15 -13
  115. package/dist/{init-YSDySeMy.js → init-CNJ8lLjo.js} +1 -1
  116. package/dist/{init-Dr1qAStu.js → init-DS3PEsCG.js} +3 -3
  117. package/dist/{instance-options-BOCRxEFb.d.ts → instance-options-2sFGSdsf.d.ts} +1 -1
  118. package/dist/{instance-snapshot-BgOGtyCy.js → instance-snapshot-BWa71my8.js} +2 -2
  119. package/dist/jwt/index.d.ts +4 -4
  120. package/dist/{kernel-CDDU93dI.js → kernel-30Z2zM_d.js} +6 -6
  121. package/dist/kysely/index.d.ts +3 -3
  122. package/dist/{login-CXgEKLaW.js → login-BgK5Jloo.js} +1 -1
  123. package/dist/{login-DEVXDTX8.js → login-DUVzBLh7.js} +3 -3
  124. package/dist/{manifest-BXTbHNIV.js → manifest-BdzBobNK.js} +1 -1
  125. package/dist/{manifest-schema-DQkBK2Mr.js → manifest-schema-CsFsYLF-.js} +1 -1
  126. package/dist/{manifest-Dij1U0hx.js → manifest-wclLWBVH.js} +35 -35
  127. package/dist/{map-error-B_f3C5cs.js → map-error-BH16Ah8P.js} +1 -1
  128. package/dist/mcp/index.d.ts +8 -8
  129. package/dist/mcp/index.js +5 -5
  130. package/dist/nest/index.d.ts +4 -4
  131. package/dist/nest/index.js +3 -3
  132. package/dist/next/index.d.ts +23 -10
  133. package/dist/next/index.js +29 -9
  134. package/dist/next/plugin.d.ts +1 -1
  135. package/dist/next/plugin.js +1 -1
  136. package/dist/node/index.d.ts +4 -4
  137. package/dist/node/index.js +2 -2
  138. package/dist/openai/index.d.ts +4 -4
  139. package/dist/openai/index.js +3 -3
  140. package/dist/openapi/index.d.ts +2 -2
  141. package/dist/{openapi-D3wkvOoU.js → openapi-C4gFqeRz.js} +2 -2
  142. package/dist/{openapi-GM-kTdkq.js → openapi-zMEB9qxn.js} +2 -2
  143. package/dist/{operation-findings-CXtFzlKJ.js → operation-findings-CVwJHEu_.js} +1 -1
  144. package/dist/operation-risks-BKOcTv8J.js +13 -0
  145. package/dist/operations-Bm9HFecz.js +89 -0
  146. package/dist/orpc/index.d.ts +5 -5
  147. package/dist/orpc/index.js +3 -3
  148. package/dist/otel/index.d.ts +3 -3
  149. package/dist/{output-DhTpe8v1.js → output-BFWLER4r.js} +1 -1
  150. package/dist/{ownership-moSRhxl_.js → ownership-D-mIt-w0.js} +1 -1
  151. package/dist/{parse-local-manifest-DEiCF4ah.js → parse-local-manifest-CxcSMQgl.js} +2 -2
  152. package/dist/{parse-local-manifest-BgTYdR3q.d.ts → parse-local-manifest-DvjTQNuO.d.ts} +1 -1
  153. package/dist/pdp/index.d.ts +3 -3
  154. package/dist/pdp/index.js +1 -1
  155. package/dist/{permdock-DdzMv5-F.js → permdock-D-_WrdKu.js} +18 -8
  156. package/dist/{permdock-DUWZEOLR.d.ts → permdock-ffY4CMd9.d.ts} +20 -7
  157. package/dist/{permissions-CvpPtz5O.js → permissions-B3ggI88M.js} +2 -2
  158. package/dist/{permissions-CVXmRILq.js → permissions-BaoLxy66.js} +1 -13
  159. package/dist/{policy-CTNl7pvN.d.ts → policy-BtKSApSt.d.ts} +1 -1
  160. package/dist/{policy-DxQyHKPB.js → policy-cV_wwPb8.js} +2 -2
  161. package/dist/{policy-from-catalog-DVa1faOr.js → policy-from-catalog-B68hGC0S.js} +6 -6
  162. package/dist/{policy-types-IRJVABmm.d.ts → policy-types-D-GwfQTc.d.ts} +9 -0
  163. package/dist/{postgrest-B_cEDd4e.d.ts → postgrest-D84p5dbA.d.ts} +1 -1
  164. package/dist/{powersync-C0nsyULQ.js → powersync-9PYOE1wt.js} +150 -13
  165. package/dist/{powersync-BZxw_v-A.js → powersync-DStC_g0B.js} +2 -2
  166. package/dist/powersync-xNRlC4jN.js +1 -0
  167. package/dist/prisma/index.d.ts +2 -2
  168. package/dist/{protected-action-qowj6nxN.js → protected-action-B40tU3yP.js} +2 -2
  169. package/dist/{protected-action-D3S9U4nc.d.ts → protected-action-Ds_EUY8B.d.ts} +5 -5
  170. package/dist/{protected-action-B6n6w7Rl.js → protected-action-OpOxtTsN.js} +1 -1
  171. package/dist/{provider-CjAu39fJ.d.ts → provider-OtnIiFWm.d.ts} +1 -1
  172. package/dist/{pull-DVoZ0V9_.js → pull-DLP4I1Kl.js} +2 -2
  173. package/dist/pull-UBjDnf4b.js +1 -0
  174. package/dist/{push-eJl1Tvqm.js → push-BSb8j1EW.js} +3 -3
  175. package/dist/{pushed-policy-DMXAOmEW.js → pushed-policy-BecMsTtM.js} +1 -1
  176. package/dist/{pushed-policy-CUQuvlS3.d.ts → pushed-policy-Ck3FZcoy.d.ts} +1 -1
  177. package/dist/react/index.d.ts +6 -6
  178. package/dist/react/index.js +3 -3
  179. package/dist/react/provider-client.d.ts +1 -1
  180. package/dist/react-native/index.d.ts +103 -38
  181. package/dist/react-native/index.js +194 -35
  182. package/dist/{replay-Dc3d8LhG.d.ts → replay-E5X9E1lC.d.ts} +1 -1
  183. package/dist/{request-context-Ch052blg.js → request-context-DM6_jY1n.js} +1 -1
  184. package/dist/resend/index.d.ts +4 -4
  185. package/dist/{resolve-names-1nCei24V.js → resolve-names-CBl4r4_r.js} +1 -1
  186. package/dist/{rls-ClJRblnR.js → rls-DGBL-jDY.js} +10 -10
  187. package/dist/{rls-BVzoZCn3.js → rls-pAHGYgTb.js} +1 -1
  188. package/dist/{role-builder-BrmOcXch.js → role-builder-CMW4wWzn.js} +1 -1
  189. package/dist/{rpc-BOu3FD6X.js → rpc-KwX_Jcxz.js} +1 -1
  190. package/dist/{run-CnCaTjWX.js → run-B7lv3NuK.js} +2 -2
  191. package/dist/run-UPbacxPg.js +1 -0
  192. package/dist/{run-ticket-C6lXvHM_.d.ts → run-ticket-DPaD27_r.d.ts} +2 -2
  193. package/dist/{runtime-CBXkOcg9.js → runtime-rf0ZuyF3.js} +1 -1
  194. package/dist/{saas-BqM9mJkk.js → saas-B8H1MsQ3.js} +4 -4
  195. package/dist/{scan-CepUXrFt.js → scan-0r3OZqqK.js} +1 -1
  196. package/dist/{schema-9_NDz8fx.js → schema-B_9tXrbG.js} +1 -1
  197. package/dist/scim/index.d.ts +1 -1
  198. package/dist/server/index.d.ts +10 -10
  199. package/dist/server/index.js +3 -3
  200. package/dist/{server-types-Bw-lWqzR.d.ts → server-types-3OnXjZ2D.d.ts} +8 -8
  201. package/dist/{sink-DUzt0e4B.d.ts → sink-ogbVkyeo.d.ts} +2 -2
  202. package/dist/{skills-BUuH-QFt.js → skills-B4MPRxQd.js} +1 -1
  203. package/dist/{skills-a4N6Y2Xm.js → skills-C9sTD70r.js} +1 -1
  204. package/dist/{snapshot-cache-Dbk-Gnij.d.ts → snapshot-cache-B4YvlGG_.d.ts} +1 -1
  205. package/dist/solid/index.d.ts +5 -5
  206. package/dist/solid/index.js +3 -3
  207. package/dist/solid-start/index.d.ts +4 -4
  208. package/dist/solid-start/index.js +3 -3
  209. package/dist/{sources-CXY05xtB.d.ts → sources-xdQShLDU.d.ts} +1 -1
  210. package/dist/{src-nYNBfmgq.js → src-Brzq_0in.js} +21 -104
  211. package/dist/ssf/index.d.ts +3 -3
  212. package/dist/ssf/index.js +1 -1
  213. package/dist/{standard-webhooks-BFeEpjxy.d.ts → standard-webhooks-BfPaZ6T1.d.ts} +2 -2
  214. package/dist/{store-g5ctUrOI.d.ts → store-DYeB-_U3.d.ts} +4 -4
  215. package/dist/{store-XgBMbfDy.js → store-DmVqy74I.js} +2 -2
  216. package/dist/{stores-53_kOwPi.js → stores-BYFopOm1.js} +2 -2
  217. package/dist/{stores-BtdN3eDO.d.ts → stores-EPul_8MN.d.ts} +5 -5
  218. package/dist/{stream-BMJg56jU.d.ts → stream-W2RuUYly.d.ts} +1 -1
  219. package/dist/supabase/client.d.ts +2 -31
  220. package/dist/supabase/index.d.ts +5 -5
  221. package/dist/supabase/index.js +3 -3
  222. package/dist/supabase/middleware.d.ts +5 -5
  223. package/dist/supabase/middleware.js +4 -4
  224. package/dist/{supabase-C8cNzp4i.js → supabase-BiViJpQ4.js} +1 -1
  225. package/dist/{supabase-C6FyUeSh.js → supabase-CogTyJH2.js} +2 -2
  226. package/dist/supabase-hook-BN46IrVI.js +1 -0
  227. package/dist/{supabase-hook-Cj85nccs.js → supabase-hook-DX38Hj8h.js} +238 -23
  228. package/dist/{supautils-BP_5WAIc.js → supautils-BGf6zRvM.js} +6 -6
  229. package/dist/svelte/index.d.ts +5 -5
  230. package/dist/svelte/index.js +5 -5
  231. package/dist/svelte/runtime.d.ts +3 -3
  232. package/dist/svelte/runtime.js +2 -2
  233. package/dist/svelte/source.d.ts +5 -5
  234. package/dist/svelte/source.js +3 -3
  235. package/dist/sveltekit/index.d.ts +4 -4
  236. package/dist/sveltekit/index.js +2 -2
  237. package/dist/{tables-BsGE6HBR.js → tables-BfOk0ymL.js} +1 -1
  238. package/dist/tanstack-start/index.d.ts +4 -4
  239. package/dist/tanstack-start/index.js +2 -2
  240. package/dist/terminal/index.d.ts +5 -5
  241. package/dist/terminal/index.js +3 -3
  242. package/dist/testing/core.d.ts +1 -1
  243. package/dist/testing/core.js +1 -1
  244. package/dist/testing/fixtures/index.js +1 -1
  245. package/dist/testing/index.d.ts +22 -22
  246. package/dist/testing/index.js +15 -15
  247. package/dist/testing/saas/index.d.ts +3 -3
  248. package/dist/testing/saas/index.js +2 -2
  249. package/dist/testing/saas/permissions.js +1 -1
  250. package/dist/{tool-refusal-C1UlhU0V.js → tool-refusal-D4spOJ7I.js} +1 -1
  251. package/dist/trpc/index.d.ts +5 -5
  252. package/dist/trpc/index.js +3 -3
  253. package/dist/{type-helpers-C_OnZW8c.d.ts → type-helpers-i1EJ3Eb1.d.ts} +1 -1
  254. package/dist/{types-CAAN7evk.d.ts → types-3Y8UpFkF.d.ts} +17 -1
  255. package/dist/{types-B3BOcI0J.d.ts → types-B8qUkGja.d.ts} +2 -2
  256. package/dist/{types-UfpcY575.d.ts → types-CCEeSCMB.d.ts} +3 -3
  257. package/dist/{types-AOP5HQku.d.ts → types-CDVXR6YD.d.ts} +1 -1
  258. package/dist/{types-CJC1aaoJ.d.ts → types-Ck1KOfug.d.ts} +2 -2
  259. package/dist/{types-BvBbkAu1.d.ts → types-CqcsNCaN.d.ts} +1 -1
  260. package/dist/{types-CA-A33Q5.d.ts → types-D-JO7lh8.d.ts} +4 -4
  261. package/dist/{types-DVZNTkU0.d.ts → types-D19MK4t-.d.ts} +3 -3
  262. package/dist/{types-Sj1U8HMm.d.ts → types-DGf_cpKF.d.ts} +2 -2
  263. package/dist/{types-e82uzrTn.d.ts → types-DmbfLu2p.d.ts} +4 -4
  264. package/dist/{types-D29K5ZNP.d.ts → types-o1vu6Ks3.d.ts} +4 -4
  265. package/dist/unplugin/index.d.ts +1 -1
  266. package/dist/unplugin/index.js +1 -1
  267. package/dist/usage-Cl5eb-e1.js +1 -0
  268. package/dist/{usage-COsGLht5.js → usage-DC0UKe6C.js} +3 -3
  269. package/dist/{usage-CqcMeQgX.js → usage-DYtRVkcN.js} +1 -1
  270. package/dist/{validation-error-DpvsBwZJ.d.ts → validation-error-Dx8PipbO.d.ts} +1 -1
  271. package/dist/{verify-C8G8D5mk.js → verify-Bpj0hauG.js} +8 -8
  272. package/dist/{version-cache-9Vq5QVFC.d.ts → version-cache-DzNKWiI6.d.ts} +1 -1
  273. package/dist/{views-TrZYlDnM.js → views-MWmJ6Y4P.js} +1 -1
  274. package/dist/vue/index.d.ts +5 -5
  275. package/dist/vue/index.js +3 -3
  276. package/dist/{waiter-C2cXXLFZ.d.ts → waiter-NK_UuZbb.d.ts} +2 -2
  277. package/dist/{watch-DXRDBSCu.js → watch-CBHADqBH.js} +1 -1
  278. package/dist/watch-OYwAPCzx.js +1 -0
  279. package/dist/webmcp/index.d.ts +1 -1
  280. package/dist/webmcp/index.js +1 -1
  281. package/dist/{who-can-BY5d3HPw.js → who-can-KhVWMxtf.js} +1 -1
  282. package/dist/workflow/index.d.ts +3 -3
  283. package/dist/workflow/index.js +2 -2
  284. package/dist/workflow-sdk/index.d.ts +4 -4
  285. package/dist/{wrap-DpZAbxuD.d.ts → wrap-BHGA-SMM.d.ts} +2 -2
  286. package/package.json +1 -1
  287. package/schemas/supabase-manifest-v1.json +1 -1
  288. package/skills/permdock-approvals/references/stores-and-resume.md +1 -1
  289. package/skills/permdock-wire/references/adapters.md +3 -1
  290. package/dist/catalog-BpnjesqX.js +0 -1
  291. package/dist/collect-CAibhmCi.js +0 -1
  292. package/dist/powersync-Cqzx25dI.js +0 -1
  293. package/dist/pull-CUVdB04v.js +0 -1
  294. package/dist/run-D9N6V5WQ.js +0 -1
  295. package/dist/supabase-hook-CPBX4dy5.js +0 -1
  296. package/dist/usage-D1cpHO7p.js +0 -1
  297. package/dist/watch-DnymTAfe.js +0 -1
@@ -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-IRJVABmm.js";
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";
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-DUWZEOLR.js";
5
- import { c as requiredPlans } from "../errors-Dc9FdamT.js";
6
- import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-nalX_HHE.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";
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-g5ctUrOI.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";
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";
@@ -1,9 +1,9 @@
1
1
  import { t as compact } from "../compact-CAf557ZB.js";
2
2
  import { r as requiredPlans } from "../problem-details-CLDgX1KV.js";
3
- import { n as describe } from "../describe-CogP1loh.js";
3
+ import { n as describe } from "../describe-BZAlPHxT.js";
4
4
  import { n as boundaryFallback, t as boundaryDigest } from "../boundary-BV3O1eud.js";
5
- import { n as actionRunner, r as approvalHeaders, t as actionApproval } from "../protected-action-B6n6w7Rl.js";
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-TrZYlDnM.js";
5
+ import { n as actionRunner, r as approvalHeaders, t as actionApproval } from "../protected-action-OpOxtTsN.js";
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
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
8
  import { n as switchTenant, t as providerStore } from "../provider-store-BQP_pp8s.js";
9
9
  import { ErrorBoundary, createComponent, createComputed, createContext, createMemo, createSignal, getOwner, on, onCleanup, useContext } from "solid-js";
@@ -1,9 +1,9 @@
1
- import { $t as Snapshot, E as Policy, M as PolicyVocabulary, _r as Principal } from "../policy-types-IRJVABmm.js";
1
+ import { $t as Snapshot, E as Policy, M as PolicyVocabulary, _r as Principal } from "../policy-types-D-GwfQTc.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-DUWZEOLR.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-Bw-lWqzR.js";
6
- import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-BgqpOOpd.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";
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-DG40eSJa.js";
2
- import { i as decorate } from "../bind-BJFeLX1V.js";
3
- import { n as guardedRoute, t as fetchAdapter } from "../fetch-adapter-UZOW0PRC.js";
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";
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-IRJVABmm.js";
1
+ import { _r as Principal, an as AuthEvent, rt as MembershipSource } from "./policy-types-D-GwfQTc.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,11 +1,11 @@
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
- import { n as isForbiddenKey, r as ownGet } from "./paths-CUvURzHp.js";
4
- import { d as assertSqlFunctionArg, f as assertSqlFunctionName, l as normalizeWhere, u as assertPortableTwin } from "./role-builder-BrmOcXch.js";
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
5
  import { n as PermDockDeniedError } from "./errors-B6R_lg2a.js";
6
6
  import { o as sameId } from "./expiry-6XByK0dm.js";
7
7
  import { n as internalsOf } from "./internals-B3IgHrvo.js";
8
- import { c as listPermissions, i as getRegistry, n as findPermission, o as isPermission } from "./permission-registry-B8tYxPIt.js";
8
+ import { c as listPermissions, i as getRegistry, n as findPermission } from "./permission-registry-B8tYxPIt.js";
9
9
  import { n as isThenable$1 } from "./thenable-BNSM1U2R.js";
10
10
  import { c as isEdgeRelation, m as restrictedStops, o as groupEntries, s as isComputedRelation, u as isPrincipalRelation } from "./resource-relations-8-pCScBO.js";
11
11
  import { a as durationOf, f as nowMillis, g as secondsOf, m as rfc3339, p as nowSeconds } from "./time-nR1JesoH.js";
@@ -13,18 +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-4KxMRdJC.js";
16
+ import { a as normalizeApproval, r as assertApprovalRelations } from "./approval-normalize-CUjgSsOl.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-DxQyHKPB.js";
19
- import { o as isPortableCondition } from "./hosted-tPZnyjQS.js";
20
- import { n as OPERATION_RISKS, r as isOperationRisk } from "./permissions-CVXmRILq.js";
21
- import { C as tenantCustomRoles, S as roleAllowKeys, f as customRoleId, l as ceilingGrants, m as customRoleScope, p as customRoleOf, x as resolveCustomRole } from "./evaluate-CsjXeLRo.js";
22
- 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-BgOGtyCy.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";
20
+ import { n as isOperationRisk } from "./operation-risks-BKOcTv8J.js";
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";
23
24
  import { n as relationId } from "./relations-BxvRvDHK.js";
24
25
  import { i as snapshotGrant, r as plainPermission, t as buildSnapshot } from "./snapshot-DN_8J27z.js";
25
- import { n as LOCAL_CUSTOM_ROLE } from "./parse-local-manifest-DEiCF4ah.js";
26
- import { c as APP, r as resolveSubject } from "./permdock-DdzMv5-F.js";
27
- import { i as memoryApprovalStore } from "./store-XgBMbfDy.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";
28
29
  import { n as wrapPermDock } from "./wrap-C5PWzgkq.js";
29
30
  //#region src/conditions/sql-function.ts
30
31
  function sqlFunction(name, options) {
@@ -121,91 +122,6 @@ function memoryCustomRoleSource(customRoles) {
121
122
  };
122
123
  }
123
124
  //#endregion
124
- //#region src/core/operations.ts
125
- const OPERATION_EFFECTS = Object.freeze([
126
- "read",
127
- "write",
128
- "delete",
129
- "send",
130
- "spend",
131
- "external"
132
- ]);
133
- /**
134
- * MCP tool-name characters (MCP 2025-11-25, Tools: Tool names), so a name works
135
- * as a tool name unchanged.
136
- */
137
- const NAME = /^[A-Za-z0-9_.-]{1,128}$/u;
138
- const META_KEYS = /* @__PURE__ */ new Set([
139
- "risk",
140
- "effects",
141
- "title"
142
- ]);
143
- function isOperationEffect(value) {
144
- return OPERATION_EFFECTS.some((effect) => effect === value);
145
- }
146
- function readMeta(name, value) {
147
- if (value === void 0) return Object.freeze({});
148
- if (value === null || typeof value !== "object" || Array.isArray(value)) throw new TypeError(`Operation "${name}": meta must be an object.`);
149
- for (const key of Object.keys(value)) if (!META_KEYS.has(key)) throw new TypeError(`Operation "${name}": meta.${key} is not one of risk, effects, title.`);
150
- const meta = {};
151
- const risk = Reflect.get(value, "risk");
152
- if (risk !== void 0) {
153
- if (!isOperationRisk(risk)) throw new TypeError(`Operation "${name}": meta.risk must be one of ${OPERATION_RISKS.join(", ")}.`);
154
- meta.risk = risk;
155
- }
156
- const effects = Reflect.get(value, "effects");
157
- if (effects !== void 0) {
158
- if (!Array.isArray(effects) || !effects.every(isOperationEffect) || new Set(effects).size !== effects.length) throw new TypeError(`Operation "${name}": meta.effects must list distinct values of ${OPERATION_EFFECTS.join(", ")}.`);
159
- meta.effects = Object.freeze([...effects]);
160
- }
161
- const title = Reflect.get(value, "title");
162
- if (title !== void 0) {
163
- if (typeof title !== "string" || title.trim() === "") throw new TypeError(`Operation "${name}": meta.title must be a non-empty string.`);
164
- meta.title = title;
165
- }
166
- return Object.freeze(meta);
167
- }
168
- function treeLeaf(keys, name, field, value) {
169
- if (!isPermission(value)) throw new TypeError(`Operation "${name}": ${field} must be a permission from the tree.`);
170
- if (!keys.has(value.key)) throw new TypeError(`Operation "${name}": ${field} ${value.key} is not a permission of the tree passed to defineOperations.`);
171
- return value;
172
- }
173
- /**
174
- * Binds each named operation to a permission of `permissions`. Throws at
175
- * definition time for a permission or `results` outside the tree, a name that
176
- * is not 1 to 128 of `A-Z a-z 0-9 _ . -` or repeats another case-insensitively,
177
- * a `data` that is not a function, or meta outside the closed lists.
178
- */
179
- function defineOperations(permissions, definitions) {
180
- const keys = new Map(listPermissions(permissions).map((leaf) => [leaf.key, leaf]));
181
- const seen = /* @__PURE__ */ new Map();
182
- const out = {};
183
- for (const name of Object.keys(definitions)) {
184
- if (!NAME.test(name) || isForbiddenKey(name)) throw new TypeError(`Operation name "${name}" must be 1 to 128 of A-Z a-z 0-9 _ . -.`);
185
- const folded = name.toLowerCase();
186
- const previous = seen.get(folded);
187
- if (previous !== void 0) throw new TypeError(`Operation name "${name}" is a duplicate of "${previous}".`);
188
- seen.set(folded, name);
189
- const definition = definitions[name];
190
- if (definition === null || typeof definition !== "object" || Array.isArray(definition)) throw new TypeError(`Operation "${name}" must be an object.`);
191
- const permission = treeLeaf(keys, name, "permission", Reflect.get(definition, "permission"));
192
- const value = Reflect.get(definition, "data");
193
- if (value !== void 0 && typeof value !== "function") throw new TypeError(`Operation "${name}": data must be a function.`);
194
- const data = value;
195
- const resultsValue = Reflect.get(definition, "results");
196
- const results = resultsValue === void 0 ? void 0 : treeLeaf(keys, name, "results", resultsValue);
197
- const meta = readMeta(name, Reflect.get(definition, "meta"));
198
- out[name] = Object.freeze({
199
- name,
200
- permission,
201
- ...data === void 0 ? {} : { data },
202
- ...results === void 0 ? {} : { results },
203
- meta
204
- });
205
- }
206
- return Object.freeze(out);
207
- }
208
- //#endregion
209
125
  //#region src/core/approval-policies.ts
210
126
  /**
211
127
  * The denial detail when an `ApprovalPolicySource` fails: every call an allow
@@ -931,15 +847,16 @@ function instanceCache(options = {}) {
931
847
  ])}`;
932
848
  return Promise.resolve(through(id, key.principal, build));
933
849
  },
934
- customRoles(source) {
935
- const sourceId = ownerId(source);
850
+ customRoles(source, of) {
851
+ const sourceId = of === void 0 ? String(ownerId(source)) : `${String(ownerId(of.owner))}:${canonicalJson(of.principal)}`;
852
+ const principal = of?.principal;
936
853
  const { globalRoles, sharedRoles, assignable } = source;
937
854
  return Object.freeze({
938
855
  ...source.name === void 0 ? {} : { name: source.name },
939
- rolesFor: (tenant, context) => through(roleKey(`${sourceId}:rolesFor`, [tenant, withoutMemo(context)]), void 0, () => source.rolesFor(tenant, context)),
940
- ...assignable === void 0 ? {} : { assignable: (tenant) => through(roleKey(`${sourceId}:assignable`, [tenant]), void 0, () => assignable.call(source, tenant)) },
941
- ...globalRoles === void 0 ? {} : { globalRoles: (context) => through(roleKey(`${sourceId}:globalRoles`, [withoutMemo(context)]), void 0, () => globalRoles.call(source, context)) },
942
- ...sharedRoles === void 0 ? {} : { sharedRoles: (context) => through(roleKey(`${sourceId}:sharedRoles`, [withoutMemo(context)]), void 0, () => sharedRoles.call(source, context)) }
856
+ rolesFor: (tenant, context) => through(roleKey(`${sourceId}:rolesFor`, [tenant, withoutMemo(context)]), principal, () => source.rolesFor(tenant, context)),
857
+ ...assignable === void 0 ? {} : { assignable: (tenant) => through(roleKey(`${sourceId}:assignable`, [tenant]), principal, () => assignable.call(source, tenant)) },
858
+ ...globalRoles === void 0 ? {} : { globalRoles: (context) => through(roleKey(`${sourceId}:globalRoles`, [withoutMemo(context)]), principal, () => globalRoles.call(source, context)) },
859
+ ...sharedRoles === void 0 ? {} : { sharedRoles: (context) => through(roleKey(`${sourceId}:sharedRoles`, [withoutMemo(context)]), principal, () => sharedRoles.call(source, context)) }
943
860
  });
944
861
  },
945
862
  entitlements(source) {
@@ -2288,4 +2205,4 @@ function toCsvRow(event) {
2288
2205
  ].map(field).join(",");
2289
2206
  }
2290
2207
  //#endregion
2291
- export { defineOperations as A, limits as C, approvalPoliciesFor as D, approvalPolicies as E, memorySettingsSource as F, memorySnapshotSource as I, sqlFunction as L, memoryCustomRoleSource as M, memoryEntitlementSource as N, memoryApprovalPolicySource as O, memoryMembershipSource 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, isOperationEffect 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 };
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 };
@@ -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-CJC1aaoJ.js";
2
- import { t as memoryReplayStore } from "../replay-Dc3d8LhG.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-z44pfWar.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-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";
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
@@ -3,7 +3,7 @@ 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
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-DNnZffrI.js";
6
+ import { t as cancelApprovals } from "../helpers-DmqGy63f.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-IRJVABmm.js";
2
- import { l as ReplayStore } from "./types-CJC1aaoJ.js";
1
+ import { Kt as Instant, hr as JsonWebKeyLike } from "./policy-types-D-GwfQTc.js";
2
+ import { l as ReplayStore } from "./types-Ck1KOfug.js";
3
3
  //#region src/server/standard-webhooks.d.ts
4
4
  /** The three Standard Webhooks headers a delivery carries. */
5
5
  type WebhookHeaders = {
@@ -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-IRJVABmm.js";
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";
2
2
  import { u as Permission } from "./permission-types-CAY-GU7e.js";
3
- import { a as PermDock } from "./permdock-DUWZEOLR.js";
4
- import { a as ProblemDetails } from "./errors-Dc9FdamT.js";
5
- import { n as DescribeMessages, t as DecisionDescription } from "./describe-nalX_HHE.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";
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. */
@@ -1,8 +1,8 @@
1
1
  import { t as compact } from "./compact-CAf557ZB.js";
2
2
  import { n as freezeDeep } from "./freeze-jjan0lCv.js";
3
- import { a as flattenApprovers, i as approverManagerKey } from "./approvers-CNtl4Vc5.js";
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-4KxMRdJC.js";
5
+ import { o as readWireApproval } from "./approval-normalize-CUjgSsOl.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";
@@ -1,5 +1,5 @@
1
- import { n as actionRunner, t as actionApproval } from "./protected-action-B6n6w7Rl.js";
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-TrZYlDnM.js";
1
+ import { n as actionRunner, t as actionApproval } from "./protected-action-OpOxtTsN.js";
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
3
  import { n as getUi, r as providePermDock, t as getStore } from "./context-DeammvFl.js";
4
4
  import { derived, readable, toStore, writable } from "svelte/store";
5
5
  //#region src/svelte/stores.ts
@@ -1,10 +1,10 @@
1
- import { M as PolicyVocabulary, gr as Membership, qn as Decision } from "./policy-types-IRJVABmm.js";
1
+ import { M as PolicyVocabulary, gr as Membership, qn as Decision } from "./policy-types-D-GwfQTc.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-DUWZEOLR.js";
5
- import { r as DescribeOptions, t as DecisionDescription } from "./describe-nalX_HHE.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-g5ctUrOI.js";
7
- import { n as ProtectedActionReadable, r as SveltePermDockOptions } from "./types-DVZNTkU0.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";
8
8
  import { Readable } from "svelte/store";
9
9
  //#region src/svelte/stores.d.ts
10
10
  declare function setPermDock(options: SveltePermDockOptions): ClientPermDock;
@@ -1,5 +1,5 @@
1
1
  import { u as Permission } from "./permission-types-CAY-GU7e.js";
2
- import { o as ProtectOptions } from "./server-types-Bw-lWqzR.js";
2
+ import { o as ProtectOptions } from "./server-types-3OnXjZ2D.js";
3
3
  //#region src/server/stream.d.ts
4
4
  type StreamProtectOptions = ProtectOptions & {
5
5
  /**
@@ -1,31 +1,2 @@
1
- import { r as RefreshTrigger } from "../refresh-on-L9UOwATg.js";
2
- //#region src/supabase/client.d.ts
3
- /** The part of a supabase-js `RealtimeChannel` the trigger uses. */
4
- export type RealtimeRefreshChannel = {
5
- readonly on: (type: "broadcast", filter: {
6
- readonly event: string;
7
- }, callback: (message: unknown) => void) => unknown;
8
- readonly subscribe: () => unknown;
9
- };
10
- /** The part of a browser supabase-js client the trigger uses. */
11
- export type RealtimeRefreshClient<C extends RealtimeRefreshChannel = RealtimeRefreshChannel> = {
12
- readonly channel: (topic: string, options: {
13
- readonly config: {
14
- readonly private: boolean;
15
- };
16
- }) => C;
17
- readonly removeChannel: (channel: C) => unknown;
18
- };
19
- export type SupabaseRealtimeRefreshOptions = {
20
- /** The signed-in user's id, the `sub` of their token. */
21
- readonly userId: string;
22
- };
23
- /**
24
- * A `refreshOn` trigger on the user's private `authz:<uid>` Realtime topic,
25
- * where the generated version trigger sends each bump, for apps without
26
- * better-supabase. The `realtime.messages` receive policy from
27
- * `supabase.hook.broadcast` lets each user join only their own topic. With
28
- * better-supabase, use `authzChangeRefresh` on `SessionProvider` instead.
29
- */
30
- export declare function supabaseRealtimeRefresh<C extends RealtimeRefreshChannel>(client: RealtimeRefreshClient<C>, options: SupabaseRealtimeRefreshOptions): RefreshTrigger;
31
- //#endregion
1
+ import { i as supabaseRealtimeRefresh, n as RealtimeRefreshClient, r as SupabaseRealtimeRefreshOptions, t as RealtimeRefreshChannel } from "../client-CH7vzSAY.js";
2
+ export { RealtimeRefreshChannel, RealtimeRefreshClient, SupabaseRealtimeRefreshOptions, supabaseRealtimeRefresh };
@@ -1,8 +1,8 @@
1
- import { Kt as Instant, yr as Subject } from "../policy-types-IRJVABmm.js";
2
- import { i as ApprovalPolicySource } from "../approval-policies-9VagPixq.js";
3
- import { a as ApprovalDelegationSource, m as ApprovalStore, u as ApprovalRequest } from "../types-BvBbkAu1.js";
4
- import { a as SupabaseRpcClient, c as readSubjectRecord, i as SupabaseRpcCaller, n as PostgrestSourcesOptions, o as SupabaseRpcResult, r as SubjectRecord, s as postgrestSources, t as PostgrestSources } from "../postgrest-B_cEDd4e.js";
5
- import { A as SupabaseSubjectOptions, B as supabaseClaims, C as SupabasePrincipal, D as SupabaseRlsOptions, E as SupabaseRlsMembershipTable, F as SupabaseClaims, I as SupabaseClaimsOptions, L as SupabaseClaimsSchema, M as SupabaseSuspendedScope, N as SupabaseSuspension, O as SupabaseSessionLike, P as SupabaseActClaim, R as SupabaseMembershipClaim, S as SupabasePermissionRef, T as SupabaseRlsConfig, _ as SupabaseActor, a as MembershipStream, b as SupabaseInclude, c as SupabasePostgres, d as supabasePostgresQuery, f as tableMembershipSource, g as SupabaseActiveRow, h as RoleThrough, i as MembershipSql, j as SupabaseSuspendedMembership, k as SupabaseStorage, l as authzVersion, n as MembershipHolders, o as MembershipTableOptions, p as AuthorizeSqlOptions, r as MembershipJunctionOptions, s as SqlMembershipSource, t as AUTHZ_VERSION_TABLE, u as junctionMembershipSource, v as SupabaseActorResult, w as SupabaseRealtime, x as SupabaseMembershipTable, y as SupabaseDelegation, z as SupabasePermDockClaims } from "../sources-CXY05xtB.js";
1
+ import { Kt as Instant, yr as Subject } from "../policy-types-D-GwfQTc.js";
2
+ import { i as ApprovalPolicySource } from "../approval-policies-oNnckT12.js";
3
+ import { a as ApprovalDelegationSource, m as ApprovalStore, u as ApprovalRequest } from "../types-CqcsNCaN.js";
4
+ import { a as SupabaseRpcClient, c as readSubjectRecord, i as SupabaseRpcCaller, n as PostgrestSourcesOptions, o as SupabaseRpcResult, r as SubjectRecord, s as postgrestSources, t as PostgrestSources } from "../postgrest-D84p5dbA.js";
5
+ import { A as SupabaseSubjectOptions, B as supabaseClaims, C as SupabasePrincipal, D as SupabaseRlsOptions, E as SupabaseRlsMembershipTable, F as SupabaseClaims, I as SupabaseClaimsOptions, L as SupabaseClaimsSchema, M as SupabaseSuspendedScope, N as SupabaseSuspension, O as SupabaseSessionLike, P as SupabaseActClaim, R as SupabaseMembershipClaim, S as SupabasePermissionRef, T as SupabaseRlsConfig, _ as SupabaseActor, a as MembershipStream, b as SupabaseInclude, c as SupabasePostgres, d as supabasePostgresQuery, f as tableMembershipSource, g as SupabaseActiveRow, h as RoleThrough, i as MembershipSql, j as SupabaseSuspendedMembership, k as SupabaseStorage, l as authzVersion, n as MembershipHolders, o as MembershipTableOptions, p as AuthorizeSqlOptions, r as MembershipJunctionOptions, s as SqlMembershipSource, t as AUTHZ_VERSION_TABLE, u as junctionMembershipSource, v as SupabaseActorResult, w as SupabaseRealtime, x as SupabaseMembershipTable, y as SupabaseDelegation, z as SupabasePermDockClaims } from "../sources-xdQShLDU.js";
6
6
  import { _ as hasTokenHook, a as SupabaseManifestActiveRow, c as SupabaseManifestMembership, d as SupabaseManifestResourceNames, f as SupabaseManifestRls, g as SupabaseManifestValue, h as SupabaseManifestThrough, i as SupabaseManifest, l as SupabaseManifestNames, m as SupabaseManifestScopeNames, n as SupabaseHookClaim, o as SupabaseManifestColumn, p as SupabaseManifestRole, r as SupabaseHookManifest, s as SupabaseManifestHelper, t as SupabaseDatabaseManifest, u as SupabaseManifestRequires, v as parseSupabaseManifest } from "../manifest-B5yF3CIq.js";
7
7
  import { t as SqlQuery } from "../sql-B80DFdpG.js";
8
8
  import { n as supabaseTenantClaim, t as supabaseMembershipsBudget } from "../budget-CNLsV2SL.js";
@@ -1,7 +1,7 @@
1
- import { n as supabaseTenantClaim, t as supabaseMembershipsBudget } from "../budget-BBCPDOGP.js";
2
1
  import { n as AUTHZ_TOPIC, r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-Dbc-HDOS.js";
3
- import { a as supabaseApprovalStore, i as tableApprovalPolicySource, n as supabaseRls, o as supabaseClaims, r as tableApprovalDelegationSource, s as exchangeCapability, t as authorizeSql } from "../supabase-C8cNzp4i.js";
2
+ import { n as supabaseTenantClaim, t as supabaseMembershipsBudget } from "../budget-BBCPDOGP.js";
3
+ import { a as supabaseApprovalStore, i as tableApprovalPolicySource, n as supabaseRls, o as supabaseClaims, r as tableApprovalDelegationSource, s as exchangeCapability, t as authorizeSql } from "../supabase-BiViJpQ4.js";
4
4
  import { c as tableMembershipSource, i as authzVersion, o as junctionMembershipSource, s as supabasePostgresQuery, t as AUTHZ_VERSION_TABLE } from "../sources-C4vkzZJV.js";
5
5
  import { a as delegationOf, c as subjectFromSupabaseSession, i as actorOf, n as postgrestSources, r as readSubjectRecord, s as subjectFromSupabase } from "../postgrest-BrjrckDG.js";
6
- import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-BXTbHNIV.js";
6
+ import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-BdzBobNK.js";
7
7
  export { AUTHZ_EVENT, AUTHZ_TOPIC, AUTHZ_VERSION_TABLE, actorOf, authorizeSql, authzUserTopic, authzVersion, delegationOf, exchangeCapability, hasTokenHook, junctionMembershipSource, parseSupabaseManifest, postgrestSources, readSubjectRecord, subjectFromSupabase, subjectFromSupabaseSession, supabaseApprovalStore, supabaseClaims, supabaseMembershipsBudget, supabasePostgresQuery, supabaseRls, supabaseTenantClaim, tableApprovalDelegationSource, tableApprovalPolicySource, tableMembershipSource };
@@ -1,10 +1,10 @@
1
- import { E as Policy, M as PolicyVocabulary, _r as Principal, yr as Subject } from "../policy-types-IRJVABmm.js";
1
+ import { E as Policy, M as PolicyVocabulary, _r as Principal, yr as Subject } from "../policy-types-D-GwfQTc.js";
2
2
  import { u as Permission } from "../permission-types-CAY-GU7e.js";
3
- import { a as PermDock } from "../permdock-DUWZEOLR.js";
4
- import { t as InstanceOptions } from "../instance-options-BOCRxEFb.js";
3
+ import { a as PermDock } from "../permdock-ffY4CMd9.js";
4
+ import { t as InstanceOptions } from "../instance-options-2sFGSdsf.js";
5
5
  import { t as RequestContext } from "../request-context-C2_1lchh.js";
6
- import { i as OpenApiHooks } from "../server-types-Bw-lWqzR.js";
7
- import { n as ServerAdapterServices } from "../bind-DjFNX0Pq.js";
6
+ import { i as OpenApiHooks } from "../server-types-3OnXjZ2D.js";
7
+ import { n as ServerAdapterServices } from "../bind-DR6ku3A9.js";
8
8
  import { FetchHandler, Middleware } from "@supabase/middleware";
9
9
  //#region src/supabase/middleware.d.ts
10
10
  /**
@@ -1,11 +1,11 @@
1
1
  import { t as compact } from "../compact-CAf557ZB.js";
2
- import { l as withApp } from "../permdock-DdzMv5-F.js";
2
+ import { l as withApp } from "../permdock-D-_WrdKu.js";
3
3
  import { t as composeWraps } from "../wrap-C5PWzgkq.js";
4
4
  import { r as credentialSubject } from "../credential-B3Hj4puZ.js";
5
5
  import { o as methodNotAllowed } from "../problem-BVLHFK33.js";
6
- import { r as instanceOptions } from "../build-instance-lye7oEqf.js";
7
- import { t as createPermDock$1 } from "../create-jCPwPWXf.js";
8
- import { n as attached } from "../bind-BJFeLX1V.js";
6
+ import { r as instanceOptions } from "../build-instance-BFMFQdE_.js";
7
+ import { t as createPermDock$1 } from "../create-3A7J9KRR.js";
8
+ import { n as attached } from "../bind-B4pMH9bm.js";
9
9
  import { defineMiddleware } from "@supabase/middleware";
10
10
  //#region src/supabase/middleware.ts
11
11
  const SECRET_KEY_NAME = /^[A-Za-z0-9_-]+$/u;
@@ -2,7 +2,7 @@ import { r as isRecord, t as compact } from "./compact-CAf557ZB.js";
2
2
  import { d as isoNow, i as dateAt, p as nowSeconds, u as isoAt } from "./time-nR1JesoH.js";
3
3
  import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
4
4
  import { s as ApprovalError } from "./types-CcUXciSj.js";
5
- import { c as decodeApprovalCursor, l as encodeApprovalCursor, s as approvalPageSize, t as applyApprovalVerdict } from "./store-XgBMbfDy.js";
5
+ import { c as decodeApprovalCursor, l as encodeApprovalCursor, s as approvalPageSize, t as applyApprovalVerdict } from "./store-DmVqy74I.js";
6
6
  import { a as parseCapability } from "./capability-zN6T9fxe.js";
7
7
  import { t as loadJose } from "./load-jose-DZ4dnjri.js";
8
8
  import "./budget-BBCPDOGP.js";
@@ -47,7 +47,7 @@ const hookGenerate = defineLeaf({
47
47
  const budget = given(flags.budget);
48
48
  const schema = given(flags.schema);
49
49
  const grantsOut = given(flags["grants-out"]);
50
- const { runSupabase } = await import("./supabase-hook-CPBX4dy5.js");
50
+ const { runSupabase } = await import("./supabase-hook-BN46IrVI.js");
51
51
  return runSupabase({
52
52
  cwd: ctx.cwd,
53
53
  config: ctx.config,
@@ -76,7 +76,7 @@ const inspect = defineLeaf({
76
76
  },
77
77
  async run(ctx, { flags }) {
78
78
  const out = flags.out === "" ? true : flags.out === "-" ? void 0 : flags.out;
79
- const { runSupabase } = await import("./supabase-hook-CPBX4dy5.js");
79
+ const { runSupabase } = await import("./supabase-hook-BN46IrVI.js");
80
80
  return runSupabase({
81
81
  cwd: ctx.cwd,
82
82
  config: ctx.config,
@@ -0,0 +1 @@
1
+ export { i as runSupabase } from "./supabase-hook-DX38Hj8h.js";