permdock 0.18.1 → 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 +9 -9
  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
@@ -30,20 +30,20 @@ const SECTIONS = [
30
30
  docs: "init",
31
31
  effects: ["files"],
32
32
  config: false,
33
- load: async () => (await import("./init-DS3PEsCG.js")).init
33
+ load: async () => (await import("./init-4aRjat-S.js")).init
34
34
  }),
35
35
  group("preset", "Decode a preset code, or print its permdock.com/create link", "preset", [leaf("decode", "Print what a preset code holds", {
36
36
  examples: ["permdock preset decode p1AQIDBAc"],
37
37
  docs: "preset",
38
38
  effects: [],
39
39
  config: false,
40
- load: async () => (await import("./init-DS3PEsCG.js")).presetDecode
40
+ load: async () => (await import("./init-4aRjat-S.js")).presetDecode
41
41
  }), leaf("url", "Print the permdock.com/create link that opens a code", {
42
42
  examples: ["permdock preset url p1AQIDBAc"],
43
43
  docs: "preset",
44
44
  effects: [],
45
45
  config: false,
46
- load: async () => (await import("./init-DS3PEsCG.js")).presetUrl
46
+ load: async () => (await import("./init-4aRjat-S.js")).presetUrl
47
47
  })]),
48
48
  group("skills", "Install, update or list the PermDock Agent Skills", "skills", [
49
49
  leaf("install", "Copy the Agent Skills into the agent folders", {
@@ -55,34 +55,35 @@ const SECTIONS = [
55
55
  docs: "skills",
56
56
  effects: ["files"],
57
57
  config: false,
58
- load: async () => (await import("./skills-C9sTD70r.js")).install
58
+ load: async () => (await import("./skills-D42EyC8G.js")).install
59
59
  }),
60
60
  leaf("update", "Replace installed skills with this version's", {
61
61
  examples: ["permdock skills update"],
62
62
  docs: "skills",
63
63
  effects: ["files"],
64
64
  config: false,
65
- load: async () => (await import("./skills-C9sTD70r.js")).update
65
+ load: async () => (await import("./skills-D42EyC8G.js")).update
66
66
  }),
67
67
  leaf("list", "List the skills and where each is installed", {
68
68
  examples: ["permdock skills list"],
69
69
  docs: "skills",
70
70
  effects: [],
71
71
  config: false,
72
- load: async () => (await import("./skills-C9sTD70r.js")).list
72
+ load: async () => (await import("./skills-D42EyC8G.js")).list
73
73
  })
74
74
  ]),
75
75
  leaf("doctor", "Check a PermDock installation and print a fix for each finding", {
76
76
  examples: [
77
77
  "permdock doctor",
78
78
  "permdock doctor --only imports,references",
79
- "permdock doctor --format github"
79
+ "permdock doctor --format github",
80
+ "permdock doctor --only PD085 --db-url-stdin"
80
81
  ],
81
82
  docs: "doctor",
82
- effects: ["files"],
83
+ effects: ["files", "database:read"],
83
84
  config: true,
84
85
  findings: true,
85
- load: async () => (await import("./doctor-xUpR5rXg.js")).doctor
86
+ load: async () => (await import("./doctor-CL1OigyD.js")).doctor
86
87
  }),
87
88
  leaf("completion", "Print the shell completion script for bash, zsh or fish", {
88
89
  examples: ["permdock completion zsh > ~/.zfunc/_permdock", "eval \"$(permdock completion bash)\""],
@@ -90,7 +91,7 @@ const SECTIONS = [
90
91
  effects: [],
91
92
  config: false,
92
93
  shellOutput: true,
93
- load: async () => (await import("./completion-Dauc6pVT.js")).completion
94
+ load: async () => (await import("./completion-DnmUvCw0.js")).completion
94
95
  })
95
96
  ]
96
97
  },
@@ -106,14 +107,14 @@ const SECTIONS = [
106
107
  docs: "collect",
107
108
  effects: ["files"],
108
109
  config: true,
109
- load: async () => (await import("./collect-CU85z6Ta.js")).collect
110
+ load: async () => (await import("./collect-DMQ6Sxr6.js")).collect
110
111
  }),
111
112
  leaf("catalog", "Export the catalog as catalog JSON, JSON Schema or Markdown", {
112
113
  examples: ["permdock catalog --out permissions.catalog.json", "permdock catalog --kind markdown"],
113
114
  docs: "catalog",
114
115
  effects: ["files"],
115
116
  config: true,
116
- load: async () => (await import("./catalog-zzNuR3sY.js")).catalog
117
+ load: async () => (await import("./catalog-DjDc87R2.js")).catalog
117
118
  }),
118
119
  leaf("gen", "Write typed constants, schemas, factories, hooks and messages from the policy", {
119
120
  examples: [
@@ -124,7 +125,7 @@ const SECTIONS = [
124
125
  docs: "gen",
125
126
  effects: ["files"],
126
127
  config: true,
127
- load: async () => (await import("./gen-BEIN-DRM.js")).gen
128
+ load: async () => (await import("./gen-DonXr9Hg.js")).gen
128
129
  }),
129
130
  leaf("usage", "Report unused, ungranted and role-less permissions and conditions on undeclared fields", {
130
131
  examples: ["permdock usage", "permdock usage --fail-on warning"],
@@ -132,14 +133,14 @@ const SECTIONS = [
132
133
  effects: [],
133
134
  config: true,
134
135
  findings: true,
135
- load: async () => (await import("./usage-DYtRVkcN.js")).usage
136
+ load: async () => (await import("./usage-BLhhEPcZ.js")).usage
136
137
  }),
137
138
  leaf("diff", "Compare two policies or catalogs; exit 1 on a breaking change", {
138
139
  examples: ["permdock diff main.catalog.json permissions.catalog.json", "permdock diff ./old-policy.ts ./src/policy.ts --impact"],
139
140
  docs: "diff",
140
141
  effects: [],
141
142
  config: true,
142
- load: async () => (await import("./diff-CBCzOTWM.js")).diff
143
+ load: async () => (await import("./diff-BrmvcPXk.js")).diff
143
144
  }),
144
145
  leaf("config", "Check permdock.config.ts for unknown keys, or print the effective config", {
145
146
  examples: ["permdock config", "permdock config --print"],
@@ -147,7 +148,7 @@ const SECTIONS = [
147
148
  effects: [],
148
149
  config: true,
149
150
  findings: true,
150
- load: async () => (await import("./config-DWp2PucY.js")).config
151
+ load: async () => (await import("./config-CmuEoob8.js")).config
151
152
  })
152
153
  ]
153
154
  },
@@ -164,14 +165,14 @@ const SECTIONS = [
164
165
  "network"
165
166
  ],
166
167
  config: true,
167
- load: async () => (await import("./rls-pAHGYgTb.js")).generate
168
+ load: async () => (await import("./rls-DJSczevJ.js")).generate
168
169
  }),
169
170
  leaf("import", "Turn existing RLS policies into a generated definition", {
170
171
  examples: ["permdock rls import --sql schema.sql --out src/permissions.generated.ts", "permdock rls import --db-url-stdin --out src/permissions.generated.ts"],
171
172
  docs: "rls",
172
173
  effects: ["files", "database:read"],
173
174
  config: true,
174
- load: async () => (await import("./rls-pAHGYgTb.js")).importPolicies
175
+ load: async () => (await import("./rls-DJSczevJ.js")).importPolicies
175
176
  }),
176
177
  leaf("verify", "Run the fixtures against the policies, or compare a live database", {
177
178
  examples: [
@@ -183,21 +184,21 @@ const SECTIONS = [
183
184
  effects: ["files", "database:read"],
184
185
  config: true,
185
186
  findings: true,
186
- load: async () => (await import("./rls-pAHGYgTb.js")).verify
187
+ load: async () => (await import("./rls-DJSczevJ.js")).verify
187
188
  }),
188
189
  leaf("migrate", "Rewrite hand-written policies onto the generated helpers", {
189
190
  examples: ["permdock rls migrate --sql supabase/migrations --dry-run", "permdock rls migrate --sql supabase/migrations"],
190
191
  docs: "rls",
191
192
  effects: ["rewrite", "files"],
192
193
  config: true,
193
- load: async () => (await import("./rls-pAHGYgTb.js")).migrate
194
+ load: async () => (await import("./rls-DJSczevJ.js")).migrate
194
195
  }),
195
196
  leaf("explain", "Show the tables, membership sources and triggers the SQL binds to", {
196
197
  examples: ["permdock rls explain", "permdock rls explain --db-url-stdin --json"],
197
198
  docs: "rls",
198
199
  effects: ["database:read"],
199
200
  config: true,
200
- load: async () => (await import("./rls-pAHGYgTb.js")).explain
201
+ load: async () => (await import("./rls-DJSczevJ.js")).explain
201
202
  })
202
203
  ]),
203
204
  group("supabase", "Generate the Supabase Custom Access Token Hook, or inspect its manifest", "supabase", [group("hook", "The Custom Access Token Hook", "supabase", [leaf("generate", "Compile the membership sources into the hook migration", {
@@ -205,26 +206,26 @@ const SECTIONS = [
205
206
  docs: "supabase",
206
207
  effects: ["files", "database:read"],
207
208
  config: true,
208
- load: async () => (await import("./supabase-CogTyJH2.js")).hookGenerate
209
+ load: async () => (await import("./supabase-DBuZK2pP.js")).hookGenerate
209
210
  })]), leaf("inspect", "Print or write the hook and helper manifest", {
210
211
  examples: ["permdock supabase inspect", "permdock supabase inspect --out"],
211
212
  docs: "supabase",
212
213
  effects: ["files"],
213
214
  config: true,
214
- load: async () => (await import("./supabase-CogTyJH2.js")).inspect
215
+ load: async () => (await import("./supabase-DBuZK2pP.js")).inspect
215
216
  })]),
216
217
  group("powersync", "Generate PowerSync Sync Streams from the policy, or verify them", "powersync", [leaf("generate", "Compile the read grants into sync-config.yaml", {
217
218
  examples: ["permdock powersync generate", "permdock powersync generate --check"],
218
219
  docs: "powersync",
219
220
  effects: ["files"],
220
221
  config: true,
221
- load: async () => (await import("./powersync-DStC_g0B.js")).generate
222
+ load: async () => (await import("./powersync-PKC4yT62.js")).generate
222
223
  }), leaf("verify", "Fail on stale streams or a stream that syncs a denied row", {
223
224
  examples: ["permdock powersync verify", "permdock powersync verify --db-url-stdin"],
224
225
  docs: "powersync",
225
226
  effects: ["database:read"],
226
227
  config: true,
227
- load: async () => (await import("./powersync-DStC_g0B.js")).verify
228
+ load: async () => (await import("./powersync-PKC4yT62.js")).verify
228
229
  })]),
229
230
  group("scim", "Generate the Postgres tables postgresDirectoryStore keeps a SCIM directory in", "scim", [leaf("generate", "Write the tenant-keyed users, groups and members tables", {
230
231
  examples: [
@@ -247,13 +248,13 @@ const SECTIONS = [
247
248
  docs: "openapi",
248
249
  effects: ["files"],
249
250
  config: true,
250
- load: async () => (await import("./openapi-C4gFqeRz.js")).emit
251
+ load: async () => (await import("./openapi-C3BIVLTd.js")).emit
251
252
  }), leaf("import", "Turn an OpenAPI document into a generated definition", {
252
253
  examples: ["permdock openapi import --doc openapi.yaml --out src/permissions.generated.ts"],
253
254
  docs: "openapi",
254
255
  effects: ["files", "network"],
255
256
  config: false,
256
- load: async () => (await import("./openapi-C4gFqeRz.js")).importDocument
257
+ load: async () => (await import("./openapi-C3BIVLTd.js")).importDocument
257
258
  })]),
258
259
  group("arazzo", "Check Arazzo workflows against the permissions", "arazzo", [leaf("check", "Resolve every Arazzo step to x-permdock-permissions", {
259
260
  examples: ["permdock arazzo check --doc arazzo.json --openapi openapi.json"],
@@ -261,7 +262,7 @@ const SECTIONS = [
261
262
  effects: [],
262
263
  config: true,
263
264
  findings: true,
264
- load: async () => (await import("./arazzo-CEDbb-uM.js")).check
265
+ load: async () => (await import("./arazzo-Dc969CA2.js")).check
265
266
  })]),
266
267
  leaf("scan", "List authorization checks written without PermDock, to adopt it in an existing app", {
267
268
  examples: ["permdock scan", "permdock scan --src app,lib --pattern isBeta"],
@@ -269,7 +270,7 @@ const SECTIONS = [
269
270
  effects: [],
270
271
  config: true,
271
272
  findings: true,
272
- load: async () => (await import("./scan-0r3OZqqK.js")).scan
273
+ load: async () => (await import("./scan-BKLwCSVV.js")).scan
273
274
  }),
274
275
  group("casl", "Import CASL rules into a generated module", "casl", [leaf("import", "Turn CASL rules per role into a permissions and policy module", {
275
276
  examples: ["permdock casl import --rules rules.json --out src/permissions.generated.ts"],
@@ -283,7 +284,7 @@ const SECTIONS = [
283
284
  docs: "casbin",
284
285
  effects: ["files"],
285
286
  config: false,
286
- load: async () => (await import("./casbin-DCQHkkyj.js")).casbinImport
287
+ load: async () => (await import("./casbin-ChbpgfNR.js")).casbinImport
287
288
  })])
288
289
  ]
289
290
  },
@@ -295,34 +296,34 @@ const SECTIONS = [
295
296
  docs: "login",
296
297
  effects: ["network", "files"],
297
298
  config: false,
298
- load: async () => (await import("./login-DUVzBLh7.js")).login
299
+ load: async () => (await import("./login-Cg1la2yJ.js")).login
299
300
  }),
300
301
  leaf("logout", "Revoke and delete the stored PermDock Cloud login", {
301
302
  examples: ["permdock logout"],
302
303
  docs: "login",
303
304
  effects: ["network", "files"],
304
305
  config: false,
305
- load: async () => (await import("./login-DUVzBLh7.js")).logout
306
+ load: async () => (await import("./login-Cg1la2yJ.js")).logout
306
307
  }),
307
308
  leaf("whoami", "Print the PermDock Cloud identity the CLI acts as", {
308
309
  examples: ["permdock whoami", "permdock whoami --json"],
309
310
  docs: "login",
310
311
  effects: [],
311
312
  config: false,
312
- load: async () => (await import("./login-DUVzBLh7.js")).whoami
313
+ load: async () => (await import("./login-Cg1la2yJ.js")).whoami
313
314
  }),
314
315
  group("cloud", "Publish to or pull from a PermDock Cloud project", "cloud", [leaf("push", "Publish the catalog, policy and manifest to a Cloud project", {
315
316
  examples: ["permdock cloud push --dry-run", "permdock cloud push --project prj_123"],
316
317
  docs: "cloud",
317
318
  effects: ["network", "cloud:write"],
318
319
  config: true,
319
- load: async () => (await import("./cloud-C0vXBmLG.js")).push
320
+ load: async () => (await import("./cloud-Dgj4FiEG.js")).push
320
321
  }), leaf("pull", "Write a Cloud project's published catalog and manifest", {
321
322
  examples: ["permdock cloud pull --project prj_123"],
322
323
  docs: "cloud",
323
324
  effects: ["network", "files"],
324
325
  config: true,
325
- load: async () => (await import("./cloud-C0vXBmLG.js")).pull
326
+ load: async () => (await import("./cloud-Dgj4FiEG.js")).pull
326
327
  })])
327
328
  ]
328
329
  },
@@ -333,7 +334,7 @@ const SECTIONS = [
333
334
  docs: "codemod",
334
335
  effects: ["rewrite"],
335
336
  config: false,
336
- load: async () => (await import("./codemod-C-L0w-u7.js")).codemod
337
+ load: async () => (await import("./codemod-DN_fBt43.js")).codemod
337
338
  })]
338
339
  }
339
340
  ];
@@ -345,7 +346,7 @@ const COMPLETE_LEAF = leaf("__complete", "Print completion candidates for a part
345
346
  config: false,
346
347
  shellOutput: true,
347
348
  hidden: true,
348
- load: async () => (await import("./completion-Dauc6pVT.js")).complete
349
+ load: async () => (await import("./completion-DnmUvCw0.js")).complete
349
350
  });
350
351
  const ROOT = group("permdock", "Collect, export, diff and check the permissions a PermDock policy declares", "", [...SECTIONS.flatMap((section) => section.entries), COMPLETE_LEAF]);
351
352
  /** Each leaf with its path from the root, in manifest order. */
@@ -1,8 +1,8 @@
1
1
  import { t as compact } from "./compact-CAf557ZB.js";
2
2
  import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
3
- import { n as PermDockDeniedError, r as PermDockRevokedError, t as PermDockApprovalRequiredError } from "./errors-B6R_lg2a.js";
4
- import { a as decisionResponse, l as problemResponse } from "./problem-BVLHFK33.js";
5
- import { l as InvalidSignatureError } from "./evaluations-h3KoJAPa.js";
3
+ import { n as PermDockDeniedError, r as PermDockRevokedError, t as PermDockApprovalRequiredError } from "./errors-ynga1EQy.js";
4
+ import { a as decisionResponse, l as problemResponse } from "./problem-BWP1l86g.js";
5
+ import { l as InvalidSignatureError } from "./evaluations-CNMVJVD6.js";
6
6
  //#region src/server/map-error.ts
7
7
  /**
8
8
  * Turns a thrown PermDock error into its Problem Details response, with the
@@ -1,14 +1,14 @@
1
- import { E as Policy, Q as JwtClaims, _r as Principal, _t as TokenVerifier, pr as Delegation, yr as Subject } from "../policy-types-D-GwfQTc.js";
1
+ import { $ as JwtClaims, D as Policy, hr as Delegation, vt as TokenVerifier, xr as Subject, yr as Principal } from "../policy-types-Ky7P23CP.js";
2
2
  import { u as Permission } from "../permission-types-CAY-GU7e.js";
3
- import { m as ApprovalStore } from "../types-CqcsNCaN.js";
4
- import { t as ApprovalHint } from "../errors-TpzkEKgJ.js";
5
- import { t as InstanceOptions } from "../instance-options-2sFGSdsf.js";
3
+ import { m as ApprovalStore } from "../types--HfnkawU.js";
4
+ import { t as ApprovalHint } from "../errors-POWcCXy7.js";
5
+ import { t as InstanceOptions } from "../instance-options-D6hyIKJF.js";
6
6
  import { t as RequestContext } from "../request-context-C2_1lchh.js";
7
- import { n as PermDockWrap } from "../wrap-BHGA-SMM.js";
8
- import { o as OtelWrap } from "../types-DGf_cpKF.js";
9
- import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-DlIxt8fh.js";
7
+ import { n as PermDockWrap } from "../wrap-C-4o-Dpy.js";
8
+ import { o as OtelWrap } from "../types-g0Vk9k2c.js";
9
+ import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-CF-2h8Vz.js";
10
10
  import { t as ClientNames } from "../clients-C_NOET3z.js";
11
- import { U as JwtSubjectOptions } from "../types-Ck1KOfug.js";
11
+ import { U as JwtSubjectOptions } from "../types-oaqeYKQu.js";
12
12
  import { CacheHint, Icon, McpServer, PromptCallback, ReadResourceCallback, ReadResourceTemplateCallback, RegisteredPrompt, RegisteredResource, RegisteredResourceTemplate, RegisteredTool, ResourceMetadata, ResourceTemplate, ScopeChallengeHandler, StandardSchemaWithJSON, ToolAnnotations, ToolCallback, Variables } from "@modelcontextprotocol/server";
13
13
  //#region src/mcp/types.d.ts
14
14
  /**
@@ -39,7 +39,7 @@ type Guard<TArgs extends readonly unknown[]> = {
39
39
  /** Loads the row to decide on; `null` or a throw denies. */
40
40
  readonly data?: (...args: TArgs) => unknown;
41
41
  };
42
- type McpToolConfig<TInput extends StandardSchemaWithJSON | undefined = undefined, TOutput extends StandardSchemaWithJSON | undefined = undefined> = Guard<[args: InputOf<TInput>]> & {
42
+ type ToolFields<TInput extends StandardSchemaWithJSON | undefined, TOutput extends StandardSchemaWithJSON | undefined> = {
43
43
  readonly title?: string;
44
44
  readonly description?: string;
45
45
  readonly inputSchema?: TInput;
@@ -49,13 +49,44 @@ type McpToolConfig<TInput extends StandardSchemaWithJSON | undefined = undefined
49
49
  readonly scopeChallenge?: ScopeChallengeHandler;
50
50
  readonly oauthScopes?: readonly string[];
51
51
  readonly _meta?: Record<string, unknown>;
52
+ };
53
+ /**
54
+ * A tool's check: one permission or a list (all-of, or any-of with `anyOf`),
55
+ * over the row `data` loads or every row `rows` loads. `permission: null` makes
56
+ * the tool public: listed and called with no check.
57
+ */
58
+ type ToolGuard<TArgs extends readonly unknown[]> = {
59
+ readonly permission: Permission | readonly Permission[];
60
+ /** One permission of the list is enough. */
61
+ readonly anyOf?: boolean;
62
+ /** Loads the row to decide on; `null` or a throw denies. */
63
+ readonly data?: (...args: TArgs) => unknown;
64
+ readonly rows?: undefined;
52
65
  /**
53
- * Decide again when the handler resolves, without consuming quota, and return
54
- * the refusal instead of the result unless the call is still allowed. The
55
- * re-check withholds the result; it cannot undo the work.
66
+ * Decide again when the handler resolves, without consuming quota, and
67
+ * return the refusal instead of the result unless the call is still
68
+ * allowed. The re-check withholds the result; it cannot undo the work.
69
+ * One permission and no `rows` only.
56
70
  */
57
71
  readonly longRunning?: boolean;
72
+ } | {
73
+ readonly permission: Permission | readonly Permission[];
74
+ readonly anyOf?: boolean;
75
+ readonly data?: undefined;
76
+ /**
77
+ * Loads every row the call touches; each must be granted. No rows, a
78
+ * non-array or a throw denies.
79
+ */
80
+ readonly rows: (...args: TArgs) => readonly unknown[] | Promise<readonly unknown[]>;
81
+ readonly longRunning?: undefined;
82
+ } | {
83
+ readonly permission: null;
84
+ readonly anyOf?: undefined;
85
+ readonly data?: undefined;
86
+ readonly rows?: undefined;
87
+ readonly longRunning?: undefined;
58
88
  };
89
+ type McpToolConfig<TInput extends StandardSchemaWithJSON | undefined = undefined, TOutput extends StandardSchemaWithJSON | undefined = undefined> = ToolGuard<[args: InputOf<TInput>]> & ToolFields<TInput, TOutput>;
59
90
  type McpResourceConfig<TArgs extends readonly unknown[]> = Guard<TArgs> & ResourceMetadata & {
60
91
  readonly cacheHint?: CacheHint;
61
92
  readonly scopeChallenge?: ScopeChallengeHandler;
@@ -87,9 +118,9 @@ type GuardedMcpServer = Omit<McpServer, "registerTool" | "registerResource" | "r
87
118
  registerPrompt: <TArgs extends StandardSchemaWithJSON | undefined = undefined>(name: string, config: McpPromptConfig<TArgs>, handler: PromptCallback<TArgs>) => RegisteredPrompt;
88
119
  };
89
120
  /** A tool config when the tool's own procedure decides: no loader, no re-check. */
90
- type McpProcedureToolConfig<TInput extends StandardSchemaWithJSON | undefined = undefined, TOutput extends StandardSchemaWithJSON | undefined = undefined> = Omit<McpToolConfig<TInput, TOutput>, "permission" | "data" | "longRunning"> & {
91
- /** Overrides `permissionFor(name)`. */
92
- readonly permission?: Permission;
121
+ type McpProcedureToolConfig<TInput extends StandardSchemaWithJSON | undefined = undefined, TOutput extends StandardSchemaWithJSON | undefined = undefined> = ToolFields<TInput, TOutput> & {
122
+ /** Overrides `permissionFor(name)`; `null` makes the tool public. */
123
+ readonly permission?: Permission | readonly Permission[] | null;
93
124
  };
94
125
  /**
95
126
  * `GuardedMcpServer` whose tools are listed and annotated by permission but
@@ -107,9 +138,10 @@ type McpProcedureEnforcement = {
107
138
  readonly enforce: "procedure";
108
139
  /**
109
140
  * The permission of the tool `name`; `permissionOf(procedure)` from
110
- * `permdock/orpc` reads it. `undefined` throws at registration.
141
+ * `permdock/orpc` reads it. A list lists the tool when one of its permissions
142
+ * is usable, `null` makes it public, and `undefined` throws at registration.
111
143
  */
112
- readonly permissionFor: (name: string) => Permission | undefined;
144
+ readonly permissionFor: (name: string) => Permission | readonly Permission[] | null | undefined;
113
145
  readonly oauthScopesFor?: (name: string) => readonly string[] | undefined;
114
146
  };
115
147
  /** What an `onError` sink receives next to the thrown error. */
@@ -163,6 +195,14 @@ type McpPermDockOptions<TUser = unknown> = InstanceOptions & {
163
195
  readonly tenant?: string | ((authInfo: McpAuthInfo) => string | undefined | Promise<string | undefined>);
164
196
  /** Deny every call and list nothing when the transport carries no auth info. */
165
197
  readonly requireAuthInfo?: boolean;
198
+ /**
199
+ * A token carrying none of the policy's OAuth scopes and no
200
+ * `authorization_details`, such as a Supabase or Clerk session token.
201
+ * `'deny'` (the default) refuses it every guarded tool. `'subject'` decides
202
+ * it on the subject alone: no scope check and no delegation. A token with any
203
+ * of the policy's scopes is still narrowed by them.
204
+ */
205
+ readonly unscopedTokens?: "deny" | "subject";
166
206
  /**
167
207
  * This server's RFC 8707 resource identifier. A token whose
168
208
  * `authInfo.resource` is absent or different is refused with