permdock 0.18.1 → 0.20.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 (313) 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-BWL5H82_.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-CKlByf5o.d.ts} +1 -1
  10. package/dist/{approval-prompt-Bg7gDSqd.d.ts → approval-prompt-CQFiO1KE.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-B_CPVseu.js} +2 -2
  15. package/dist/{arazzo-CEDbb-uM.js → arazzo-C8u26FUA.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-BUonniPx.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-CpOk7Tlu.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-DR6ku3A9.d.ts → bind-CW7nsZ86.d.ts} +7 -7
  28. package/dist/{bind-B4pMH9bm.js → bind-gwEbe9hL.js} +4 -4
  29. package/dist/{body-CJQwYVa8.js → body-C9JbIoqb.js} +1 -1
  30. package/dist/{build-instance-BFMFQdE_.js → build-instance-DaBdCRiz.js} +1 -1
  31. package/dist/{capability-BZ_veK9o.d.ts → capability-v2xZB7us.d.ts} +1 -1
  32. package/dist/{casbin-DCQHkkyj.js → casbin-DaY-CWOr.js} +1 -1
  33. package/dist/{casbin-bKC1FpEx.js → casbin-JWZGKqzy.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-DbkpCx_v.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-pEhjaPNs.js} +2 -2
  54. package/dist/{codemod-C-L0w-u7.js → codemod-BUhreN8m.js} +2 -2
  55. package/dist/{codemod-eYI1FbeJ.js → codemod-Cv0-7Ogj.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-DZftFfXc.d.ts} +2 -2
  61. package/dist/{completion-Dauc6pVT.js → completion-BG1wcLJ3.js} +1 -1
  62. package/dist/{config-COHmivz9.js → config-D2oXUwos.js} +8 -5
  63. package/dist/{config-DWp2PucY.js → config-Di9kWoLY.js} +1 -1
  64. package/dist/{config-report-DKpFm5ID.js → config-report-B0IyW7EQ.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-BOeGWbcR.d.ts} +2 -2
  71. package/dist/{core-B8sLve3z.js → core-BwVkrpsi.js} +5 -5
  72. package/dist/{create-BrQXL-Wt.d.ts → create-BezeYFcT.d.ts} +6 -6
  73. package/dist/{create-C-tm3KIF.js → create-C0R8omeF.js} +4 -4
  74. package/dist/{create-3A7J9KRR.js → create-DDUFG1ul.js} +69 -29
  75. package/dist/{create-BzwjZuRS.d.ts → create-DMCC5ZOi.d.ts} +7 -7
  76. package/dist/{create-CtoT1lIQ.d.ts → create-DYSYYiLr.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-De8cw3MW.d.ts} +1 -1
  82. package/dist/{describe-BKtC_8PG.d.ts → describe-DibQM6g-.d.ts} +1 -1
  83. package/dist/{diff-BnNHqtHj.js → diff-Bd1-VCe5.js} +4 -4
  84. package/dist/{diff-CBCzOTWM.js → diff-DXRNcjpg.js} +1 -1
  85. package/dist/{doctor-xUpR5rXg.js → doctor-Bp3xspBi.js} +15 -5
  86. package/dist/{doctor-CkYKCuX7.js → doctor-DpD4nHMS.js} +295 -66
  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-OTE9u4Wk.d.ts} +1 -1
  91. package/dist/{errors-B6R_lg2a.js → errors-ynga1EQy.js} +1 -1
  92. package/dist/{evaluate-Czbj7thS.js → evaluate-Dcq_U2TV.js} +2 -2
  93. package/dist/{evaluations-CisTTURl.d.ts → evaluations-BgxEfPL7.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-BdmfnbJM.d.ts → fetch-adapter-DCQ4pZxf.d.ts} +2 -2
  102. package/dist/{fetch-adapter-DH-NJPbL.js → fetch-adapter-acq4dPX3.js} +3 -3
  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-BEIN-DRM.js → gen-B2O9T25-.js} +1 -1
  106. package/dist/{gen-mf-MRwVr.js → gen-CKr1Vfiz.js} +2 -2
  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-waouw2V-.js → hosted-C2Pmhy2x.js} +4 -3
  113. package/dist/{hosted-BFNXwcjd.d.ts → hosted-yhyAuQkL.d.ts} +1 -1
  114. package/dist/{import-DObwEota.js → import-DG6uswAo.js} +1 -1
  115. package/dist/{import-C1XXpG_m.js → import-DVI_1tO_.js} +46 -2
  116. package/dist/{index-BhnOOnp9.d.ts → index--AwSBzJC.d.ts} +2 -2
  117. package/dist/{index-rFp6X_QP.d.ts → index-B_I6N8Ju.d.ts} +5 -5
  118. package/dist/{index-CVGio3cH.d.ts → index-Bt37QovT.d.ts} +4 -4
  119. package/dist/{index-Dfv9Toct.d.ts → index-CLbGOPBr.d.ts} +1 -1
  120. package/dist/{index-CdMOd-GY.d.ts → index-CruReRkB.d.ts} +24 -6
  121. package/dist/{index-CdUTE6qd.d.ts → index-D7xGi1LS.d.ts} +24 -10
  122. package/dist/index.d.ts +17 -17
  123. package/dist/index.js +15 -15
  124. package/dist/{init-CNJ8lLjo.js → init-C-cgOvCl.js} +1 -1
  125. package/dist/{init-DS3PEsCG.js → init-DAPbdjcX.js} +3 -3
  126. package/dist/{instance-options-2sFGSdsf.d.ts → instance-options-VPsNQsTH.d.ts} +1 -1
  127. package/dist/{instance-snapshot-BWa71my8.js → instance-snapshot-SX8zH_1t.js} +3 -3
  128. package/dist/jwt/index.d.ts +4 -4
  129. package/dist/{kernel-30Z2zM_d.js → kernel-_QEUOSU0.js} +7 -7
  130. package/dist/kysely/index.d.ts +3 -3
  131. package/dist/{login-DUVzBLh7.js → login-CQGjpkuo.js} +3 -3
  132. package/dist/{login-BgK5Jloo.js → login-Cgix5FgG.js} +1 -1
  133. package/dist/{manifest-wclLWBVH.js → manifest-CMu1IE0R.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-zMEB9qxn.js → openapi-FVeCoh97.js} +2 -2
  150. package/dist/{openapi-C4gFqeRz.js → openapi-lsf1gEtr.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-DZQCr2lP.js} +1 -1
  155. package/dist/{ownership-D-mIt-w0.js → ownership-CBuIjxKh.js} +2 -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-CE4tgFsj.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-D-_WrdKu.js → permdock-C1DN_7a-.js} +6 -6
  162. package/dist/{permdock-ffY4CMd9.d.ts → permdock-D4F2p5J8.d.ts} +4 -4
  163. package/dist/{permissions-B3ggI88M.js → permissions-8N2yFsUM.js} +1 -1
  164. package/dist/{policy-cV_wwPb8.js → policy-CaAME-Rh.js} +2 -2
  165. package/dist/{policy-BtKSApSt.d.ts → policy-Dh9WVSVz.d.ts} +1 -1
  166. package/dist/{policy-from-catalog-B68hGC0S.js → policy-from-catalog-CUNlpgz0.js} +6 -6
  167. package/dist/{policy-types-D-GwfQTc.d.ts → policy-types-BI9C5Sp5.d.ts} +32 -2
  168. package/dist/{postgrest-D84p5dbA.d.ts → postgrest-CWCCbaxm.d.ts} +1 -1
  169. package/dist/powersync-BV68Jh-T.js +1 -0
  170. package/dist/{powersync-DStC_g0B.js → powersync-CRtuJXVB.js} +2 -2
  171. package/dist/{powersync-9PYOE1wt.js → powersync-Dz4H1FLs.js} +77 -38
  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-ua0cx5cW.d.ts} +5 -5
  176. package/dist/{provider-OtnIiFWm.d.ts → provider-D_hgjZRa.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-AOmtUo8V.js +1 -0
  180. package/dist/{pull-DLP4I1Kl.js → pull-DnhBA9pf.js} +3 -3
  181. package/dist/{push-BSb8j1EW.js → push-D2SsRW0U.js} +3 -3
  182. package/dist/{pushed-policy-BecMsTtM.js → pushed-policy-BERO0x9O.js} +1 -1
  183. package/dist/{pushed-policy-Ck3FZcoy.d.ts → pushed-policy-P0hgyLBh.d.ts} +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-DYXI4gRN.d.ts} +1 -1
  191. package/dist/{request-context-DM6_jY1n.js → request-context-BPTi68z5.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-CDnxNqNb.js} +2 -2
  195. package/dist/{rls-pAHGYgTb.js → rls-CHZi5SUK.js} +1 -1
  196. package/dist/{rls-DGBL-jDY.js → rls-CbDKv6GP.js} +19 -13
  197. package/dist/{role-builder-CMW4wWzn.js → role-builder-C5AgaC1x.js} +18 -3
  198. package/dist/rpc-D2LnFELm.d.ts +22 -0
  199. package/dist/{rpc-KwX_Jcxz.js → rpc-DdkbQVlT.js} +16 -6
  200. package/dist/{run-B7lv3NuK.js → run-Bnm5VZ8m.js} +3 -3
  201. package/dist/run-D6U-Gwok.js +1 -0
  202. package/dist/{run-ticket-DPaD27_r.d.ts → run-ticket-94DOS9Cd.d.ts} +2 -2
  203. package/dist/{saas-B8H1MsQ3.js → saas-BEXnrH9H.js} +4 -4
  204. package/dist/{scan-0r3OZqqK.js → scan-VKkU4Ix9.js} +1 -1
  205. package/dist/{schema-B_9tXrbG.js → schema-5onstWlb.js} +1 -1
  206. package/dist/{schema-CuX70xgH.js → schema-BlnU_TzE.js} +4 -0
  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-ChzXWU4Y.d.ts} +31 -13
  211. package/dist/{sink-ogbVkyeo.d.ts → sink-RwmP7ZHs.d.ts} +2 -2
  212. package/dist/{skills-C9sTD70r.js → skills-B6sLqv4E.js} +1 -1
  213. package/dist/{skills-B4MPRxQd.js → skills-Yz3LfoAZ.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-MPinwwgZ.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-sgQlMfmz.d.ts} +1 -1
  221. package/dist/{src-Brzq_0in.js → src-B8SQNsvw.js} +30 -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-CFZIYtBF.d.ts} +2 -2
  225. package/dist/{store-DmVqy74I.js → store-CSOsXd5s.js} +8 -6
  226. package/dist/{store-DYeB-_U3.d.ts → store-Dpg_fSNQ.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-C2A6KsxE.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-CWpADE8k.js} +2 -2
  239. package/dist/supabase-hook-Clczf4iF.js +1 -0
  240. package/dist/{supabase-hook-DX38Hj8h.js → supabase-hook-bDeWbKee.js} +151 -55
  241. package/dist/{supautils-BGf6zRvM.js → supautils-0RrdsFT3.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-C53U2zrN.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-BjOLGVy1.d.ts} +1 -1
  267. package/dist/{types-D-JO7lh8.d.ts → types--_lpWUGV.d.ts} +5 -5
  268. package/dist/{types-NYoj8JBm.d.ts → types-7Vlz1Wi2.d.ts} +1 -0
  269. package/dist/{types-CqcsNCaN.d.ts → types-BzxA2OAD.d.ts} +13 -1
  270. package/dist/{types-D19MK4t-.d.ts → types-C5p2hoBR.d.ts} +3 -3
  271. package/dist/{types-B8qUkGja.d.ts → types-CMclYgSk.d.ts} +2 -2
  272. package/dist/{types-3Y8UpFkF.d.ts → types-D1NjjwI4.d.ts} +68 -4
  273. package/dist/{types-DGf_cpKF.d.ts → types-D8JVDWOr.d.ts} +2 -2
  274. package/dist/{types-Ck1KOfug.d.ts → types-DBVSljAx.d.ts} +2 -2
  275. package/dist/{types-CDVXR6YD.d.ts → types-DZwEOsK1.d.ts} +1 -1
  276. package/dist/{types-DmbfLu2p.d.ts → types-DnzRZjEu.d.ts} +9 -4
  277. package/dist/{types-o1vu6Ks3.d.ts → types-Drs3OOAy.d.ts} +4 -4
  278. package/dist/{types-CCEeSCMB.d.ts → types-p8mhWTcR.d.ts} +3 -3
  279. package/dist/unplugin/index.d.ts +1 -1
  280. package/dist/unplugin/index.js +1 -1
  281. package/dist/{usage-DC0UKe6C.js → usage-B6gmS634.js} +7 -5
  282. package/dist/{usage-DYtRVkcN.js → usage-BFMCEgJp.js} +1 -1
  283. package/dist/usage-Csu-M5jC.js +1 -0
  284. package/dist/{validation-error-Dx8PipbO.d.ts → validation-error-DkOK9zUE.d.ts} +1 -1
  285. package/dist/{verify-Bpj0hauG.js → verify-DFruUfZg.js} +79 -58
  286. package/dist/{version-cache-DzNKWiI6.d.ts → version-cache-q5cpaDSt.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-BjVI_Byg.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-CZeAwQZD.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-CE5lxje7.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-data/SKILL.md +1 -1
  303. package/skills/permdock-data/references/queries-and-rls.md +2 -0
  304. package/skills/permdock-wire/references/adapters.md +1 -1
  305. package/dist/catalog-Caqhbdix.js +0 -1
  306. package/dist/collect-KCtOigxx.js +0 -1
  307. package/dist/powersync-xNRlC4jN.js +0 -1
  308. package/dist/pull-UBjDnf4b.js +0 -1
  309. package/dist/run-UPbacxPg.js +0 -1
  310. package/dist/stream-W2RuUYly.d.ts +0 -13
  311. package/dist/supabase-hook-BN46IrVI.js +0 -1
  312. package/dist/usage-Cl5eb-e1.js +0 -1
  313. package/dist/watch-OYwAPCzx.js +0 -1
@@ -119,11 +119,11 @@ server.registerTool(
119
119
  );
120
120
  ```
121
121
 
122
- `actor.kind` is `'mcp-client'` unless `actorKind` sets another (`'oauth-client'` makes the token the same actor kind `permdock/supabase` and `permdock/jwt` give it, so one delegation covers both), and `delegation` comes from the token's scopes and `authorization_details`. Every `registerTool` / `registerResource` / `registerPrompt` needs a `permission`, except an MCP Apps `ui://` view: it takes the permission of the tool whose `_meta.ui.resourceUri` names it, and a view no tool links is refused. Never give a view a looser permission than its tool. Lists are filtered per caller. A missing scope is an `insufficient_scope` step-up (HTTP `403`) naming only the scope the call needs. When the authorization server issues coarse scopes (`mcp:read`), declare them in `definePolicy({ oauthScopes })` instead of expanding scopes yourself: they are expanded into the delegation and named in challenges. Set `resource` to the server's URL so tokens for another audience are refused. Denied calls return `isError: true` with Decision `structuredContent`. `approval-required` parks the call in `store` and returns `isError: true` with the token, or an `input_required` URL request when `approval.at` is set and the client declares URL elicitation; the retried call runs once after approval (token optional under `_meta["dev.permdock/approval"]`, never from tool arguments) ([MCP adapter](https://permdock.com/docs/adapters/mcp)).
122
+ `actor.kind` is `'mcp-client'` unless `actorKind` sets another (`'oauth-client'` makes the token the same actor kind `permdock/supabase` and `permdock/jwt` give it, so one delegation covers both), and `delegation` comes from the token's scopes and `authorization_details`. Every `registerTool` / `registerResource` / `registerPrompt` needs a `permission`, except an MCP Apps `ui://` view: it takes the permission of the tool whose `_meta.ui.resourceUri` names it, and a view no tool links is refused. Never give a view a looser permission than its tool. `permission: null` makes a tool public (listed and called with no check); never leave `permission` out to mean public, it throws. A tool may take a permission list (all-of, or `anyOf: true`) and `rows(args)` to check every row a batch touches. Lists are filtered per caller. A missing scope is an `insufficient_scope` step-up (HTTP `403`) naming only the scope the call needs. When the authorization server issues coarse scopes (`mcp:read`), declare them in `definePolicy({ oauthScopes })` instead of expanding scopes yourself: they are expanded into the delegation and named in challenges. Set `resource` to the server's URL so tokens for another audience are refused. A session token with none of the policy's scopes (Supabase, Clerk) reaches nothing by default; `unscopedTokens: 'subject'` decides it on the subject, and a token with a `clientId` then needs a policy delegation to its actor kind. Denied calls return `isError: true` with Decision `structuredContent`. `approval-required` parks the call in `store` and returns `isError: true` with the token, or an `input_required` URL request when `approval.at` is set and the client declares URL elicitation; the retried call runs once after approval (token optional under `_meta["dev.permdock/approval"]`, never from tool arguments) ([MCP adapter](https://permdock.com/docs/adapters/mcp)).
123
123
 
124
124
  An MCP server that is not an SDK `McpServer` cannot be wrapped: narrow the tool's `meta` with `isPermission`, filter its tool list with `permdock.mayUse(permission)`, and decide each call with `permdock.decide(permission, args)` in its `authorize` hook. `mayUse` is a listing hint, never a decision.
125
125
 
126
- When a tool's handler calls an oRPC procedure that runs `protect`, use `protectServer(server, { enforce: 'procedure', permissionFor: (name) => permissionOf(procedures.get(name)) })` with `permissionOf` from `permdock/orpc`. `tools/list` and annotations follow the permission; the call is not guarded, so each call decides once, in the procedure. `data` and `longRunning` throw in this mode, and the mode covers the whole server. When the same operations are REST routes, declare each permission once with `operationPermissions({ 'GET /customers/{id}': { permission, operationId } })` from `permdock/openapi` and pass `permissionFor: operations.forOperation`; the HTTP gate reads `operations.forRequest(method, path)` from the same object. When two operations share a permission but need different coarse scopes (reading an export with `mcp:read`, creating one with `mcp:write`), list the permission under both in `oauthScopes`, then narrow each operation with `oauthScopes: ['mcp:read']` on its entry (or on the tool config): pass `oauthScopesFor: operations.oauthScopesForOperation` to `protectServer`, and `operations` to `permdock/server` (or `protect`'s `oauthScopes`) for the REST routes, which then answer `insufficient_scope` naming that scope. A route that checks no permission but should still require a scope (a chat endpoint, setting the active organization) uses `protect(null, undefined, { oauthScopes: ['api:chat'] })` or an operation entry with only `oauthScopes`; never write an app-side rule that maps HTTP methods to scopes.
126
+ When a tool's handler calls an oRPC procedure that runs `protect`, use `protectServer(server, { enforce: 'procedure', permissionFor: (name) => permissionOf(procedures.get(name)) })` with `permissionOf` from `permdock/orpc`. `tools/list` and annotations follow the permission; the call is not guarded, so each call decides once, in the procedure. `data`, `rows`, `anyOf` and `longRunning` throw in this mode, and the mode covers the whole server. When the same operations are REST routes, declare each permission once with `operationPermissions({ 'GET /customers/{id}': { permission, operationId } })` from `permdock/openapi` and pass `permissionFor: operations.forOperation`; the HTTP gate reads `operations.forRequest(method, path)` from the same object. When two operations share a permission but need different coarse scopes (reading an export with `mcp:read`, creating one with `mcp:write`), list the permission under both in `oauthScopes`, then narrow each operation with `oauthScopes: ['mcp:read']` on its entry (or on the tool config): pass `oauthScopesFor: operations.oauthScopesForOperation` to `protectServer`, and `operations` to `permdock/server` (or `protect`'s `oauthScopes`) for the REST routes, which then answer `insufficient_scope` naming that scope. A route that checks no permission but should still require a scope (a chat endpoint, setting the active organization) uses `protect(null, undefined, { oauthScopes: ['api:chat'] })` or an operation entry with only `oauthScopes`; never write an app-side rule that maps HTTP methods to scopes.
127
127
 
128
128
  ## A2A — `permdock/a2a`
129
129
 
@@ -45,7 +45,7 @@ The same portable conditions decide `can()` in memory, narrow list queries throu
45
45
 
46
46
  - [ ] No closure only compares fields a portable operator covers (`eq`, `in`, `memberOf`, `sqlFunction`, …); rewrite those as JSON conditions.
47
47
  - [ ] An owner-equals-principal `where` on a resource with a matching relation uses `relation()` instead.
48
- - [ ] No `opaque` RLS grant wraps a named helper; use `sqlFunction` with a twin and map it in `rls.functions`.
48
+ - [ ] No `opaque` RLS grant wraps a named helper; use `sqlFunction` with a twin and map it in `rls.functions`. A set-returning helper uses `set: { column }` and a declared resource column (PD086).
49
49
  - [ ] No condition the database must enforce reads `context.*` (PD027); on Supabase, `supabase.hook.attrs` lists only server-owned values (PD028).
50
50
  - [ ] Graph declarations are walked by a grant (PD031) and nameable in SQL (PD032).
51
51
  - [ ] Every list endpoint has an `testOrmParity` run, every RLS table an `testRlsParity` or `rls verify --db-url-stdin` run, and a custom `RelationSource` passes `testRelationSource`.
@@ -60,6 +60,8 @@ pnpm exec permdock rls verify --introspect
60
60
 
61
61
  When the database already holds the rules, skip `generate`. Map each helper in `rls.functions`, write `sqlFunction` twins in the policy, and fail CI on `rls verify --db-url-stdin`. `--inline-functions` inlines the twin for targets that cannot call a SQL function.
62
62
 
63
+ A set-returning helper that returns the ids the subject may read uses `set: { column: 'id' }`; `generate` calls it once per statement as `"id" in (select <helper>(<args without row fields>))`, so pass only the helper's own arguments. Keep the helper `stable` or `immutable` so Postgres plans it as a hashed SubPlan (or an InitPlan). `rls import` reads `col in (select fn(...))` and `col = any (select fn(...))` with no `FROM` or `WHERE` back as the same set form; PD086 checks that the column is declared and warns when row-field args would be dropped.
64
+
63
65
  When hand-written policies call the app's own helpers (`org_ids_with_permission`, `has_org_permission`), map each under `rls.migrate.helpers` with its `form` (`ids`, `row`, `scoped`, `global`, `membership`) and the legacy keys under `rls.migrate.keys` or `prefixes`. Run `permdock rls migrate --dry-run`, read the skipped calls, and apply by running it without `--dry-run`. Generate with `--helpers-only` while the policies stay hand-written. A `row-conditions` skip means that table's policy should be generated, not migrated.
64
66
 
65
67
  When the old helpers read a permissions table that triggers keep in step (`user_permissions`), list it under `rls.migrate.tables`. `permdock rls migrate` then reports its refresh triggers and every policy, view or function that still reads it, and `permdock doctor` reports PD066 while the migrations still create it. Rewrite each reader, then run `permdock rls migrate --retire-out <migrations dir>/`, which exits `1` and writes nothing while a reader remains. Never hand-write the drop with `cascade` ([retire a materialised table](https://permdock.com/docs/cli/rls#retire-a-materialised-table)).
@@ -300,7 +300,7 @@ procedure
300
300
  .mutation(({ ctx }) => deletePost(ctx.permdockData));
301
301
  ```
302
302
 
303
- `protect` throws `TRPCError` (`FORBIDDEN`, `BAD_REQUEST`, `UNAUTHORIZED`) with Problem Details as `cause`; pass `errorFormatter` to `initTRPC.create` so clients see it under `data`. `ctx.permdock.assert` in a resolver maps to the same error. Read the tenant from each procedure's input (`tenant: (opts) => opts.input?.org`) so a batch never shares one; `request: (ctx) => ctx.req` names the Web `Request` when the context holds it elsewhere. `permdockHandler()` returns the decision endpoint as a Fetch handler. `openapi.security(permission)` is the `trpc-to-openapi` meta fragment. On a subscription, `protect(permission, load, { items })` ends the iterator with `UNAUTHORIZED` or `FORBIDDEN` when the session is revoked or the permission re-denied, and drops items the subscriber cannot read; pass `revocations`.
303
+ `protect` throws `TRPCError` (`FORBIDDEN`, `BAD_REQUEST`, `UNAUTHORIZED`) with Problem Details as `cause`; pass `errorFormatter` to `initTRPC.create` so clients see it under `data`. `ctx.permdock.assert` in a resolver maps to the same error. Read the tenant from each procedure's input (`tenant: (opts) => opts.input?.org`) so a batch never shares one; `request: (ctx) => ctx.req` names the Web `Request` when the context holds it elsewhere. `permdockHandler()` returns the decision endpoint as a Fetch handler. `openapi.security(permission)` is the `trpc-to-openapi` meta fragment. `protect([a, b], load, { anyOf: true })` needs one of a permission list (all-of without `anyOf`); `protect(permission, undefined, { rows: (opts) => loadMany(opts.input.ids) })` checks every row of a batch and passes the rows as `ctx.permdockData`. oRPC's `protect` takes the same options. On a subscription, `protect(permission, load, { items })` ends the iterator with `UNAUTHORIZED` or `FORBIDDEN` when the session is revoked or the permission re-denied, and drops items the subscriber cannot read; pass `revocations`.
304
304
 
305
305
  ## oRPC — `permdock/orpc`
306
306
 
@@ -1 +0,0 @@
1
- export { t as catalogFile, n as runCatalog } from "./catalog-D1fw8qif.js";
@@ -1 +0,0 @@
1
- export { r as runCollect } from "./collect-D878zLDP.js";
@@ -1 +0,0 @@
1
- export { n as runPowerSync } from "./powersync-9PYOE1wt.js";
@@ -1 +0,0 @@
1
- export { n as runCloudPull } from "./pull-DLP4I1Kl.js";
@@ -1 +0,0 @@
1
- export { t as run } from "./run-B7lv3NuK.js";
@@ -1,13 +0,0 @@
1
- import { u as Permission } from "./permission-types-CAY-GU7e.js";
2
- import { o as ProtectOptions } from "./server-types-3OnXjZ2D.js";
3
- //#region src/server/stream.d.ts
4
- type StreamProtectOptions = ProtectOptions & {
5
- /**
6
- * For a procedure that returns an async iterable: each outbound item is
7
- * checked against this permission and dropped when the subscriber cannot read
8
- * it.
9
- */
10
- readonly items?: Permission<string, unknown, "instance">;
11
- };
12
- //#endregion
13
- export { StreamProtectOptions as t };
@@ -1 +0,0 @@
1
- export { i as runSupabase } from "./supabase-hook-DX38Hj8h.js";
@@ -1 +0,0 @@
1
- export { t as runUsage } from "./usage-DC0UKe6C.js";
@@ -1 +0,0 @@
1
- export { i as watchCollect } from "./watch-CBHADqBH.js";