permdock 0.23.0 → 0.25.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.
- package/dist/a2a/index.d.ts +4 -4
- package/dist/a2a/index.js +4 -4
- package/dist/{adoption-scan-CNoE5yBA.js → adoption-scan-DhZejKH8.js} +1 -1
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +3 -3
- package/dist/ai-sdk/index.js +3 -3
- package/dist/app/index.d.ts +28 -10
- package/dist/app/index.js +69 -46
- package/dist/{app-DIvM65Mv.js → app-J9PE1LNm.js} +1 -1
- package/dist/{approval-policies-D7moEfTM.d.ts → approval-policies-BiXMlYBu.d.ts} +1 -1
- package/dist/{approval-prompt-DtfKSH-8.d.ts → approval-prompt-j5PTItiy.d.ts} +1 -1
- package/dist/approvals/index.d.ts +3 -3
- package/dist/{arazzo-rsYPFgga.js → arazzo-2_9pOddr.js} +2 -2
- package/dist/{arazzo-4rMFOHbu.js → arazzo-BDDzHgwW.js} +1 -1
- package/dist/astro/index.d.ts +4 -4
- package/dist/astro/index.js +1 -1
- package/dist/{audience-N2BqOvES.js → audience-DLoopY4q.js} +1 -1
- package/dist/authzen/index.d.ts +5 -5
- package/dist/authzen/index.js +1 -1
- package/dist/{automation-CrGcfIZn.d.ts → automation-_iGeP54L.d.ts} +1 -1
- package/dist/better-auth/index.d.ts +1 -1
- package/dist/better-supabase/index.d.ts +63 -38
- package/dist/better-supabase/index.js +55 -38
- package/dist/{bind-N5jf6kjk.d.ts → bind-CTj4dHc1.d.ts} +7 -7
- package/dist/{bind-Cx10JuJ-.js → bind-LQ6zbARV.js} +2 -2
- package/dist/{build-instance-BDGzsGcn.js → build-instance-Bq8wkJ4i.js} +1 -1
- package/dist/{capability-mLbd3KZ0.d.ts → capability-DqCyFGip.d.ts} +1 -1
- package/dist/{casbin-CjUT-wqV.js → casbin-BspH3-6_.js} +1 -1
- package/dist/{casbin-Dg5N0Gfa.js → casbin-XFqehd6I.js} +1 -1
- package/dist/catalog/index.d.ts +4 -4
- package/dist/catalog/index.js +4 -4
- package/dist/{catalog-BJu0A15r.js → catalog-B1MAmRQI.js} +2 -2
- package/dist/catalog-BCVIH7kq.js +1 -0
- package/dist/{catalog-CgA6-DQA.js → catalog-CaZoXBD8.js} +1 -1
- package/dist/{challenge-DVw1SrH9.js → challenge-DKJpP-5P.js} +1 -1
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +2 -2
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +2 -2
- package/dist/clerk/index.d.ts +2 -2
- package/dist/cli/bin.js +1 -1
- package/dist/cli/index.d.ts +4 -4
- package/dist/cli/index.js +3 -3
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +1 -1
- package/dist/{cloud-Blw4AaQv.js → cloud-CUvR7okV.js} +2 -2
- package/dist/{codemod-BFFXaS-S.js → codemod-iwXnO0fg.js} +1 -1
- package/dist/{codemod-ByRUKVp-.js → codemod-uZsk1b6T.js} +2 -2
- package/dist/{collect-D3ToPa6Z.js → collect-BG-SXFQv.js} +1 -1
- package/dist/{collect-COqPRz6O.js → collect-CxPJRjoc.js} +2 -2
- package/dist/collect-ZLgHgujd.js +1 -0
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-DSwZUJmL.d.ts → compile-Dh9pW_Co.d.ts} +2 -2
- package/dist/{completion-BW53byZN.js → completion-DenWMczI.js} +1 -1
- package/dist/{config-B0qti4jI.js → config-CoUYTCCu.js} +1 -1
- package/dist/{config-DyNanTjZ.js → config-DC7aiuhP.js} +2 -2
- package/dist/{config-report-DgMqeeK6.js → config-report-C5D1rPiF.js} +2 -2
- package/dist/{config-shape-C4zqzG2K.js → config-shape-ChhsuGSV.js} +2 -1
- package/dist/{context-KrAhRY22.js → context-BXM0MDB0.js} +2 -2
- package/dist/convex/index.d.ts +4 -4
- package/dist/convex/index.js +2 -2
- package/dist/{core-DMQsq2Gv.js → core-BTJlqWsv.js} +5 -5
- package/dist/{core-KsoqXWhf.d.ts → core-BhZEo5Le.d.ts} +2 -2
- package/dist/{coverage-D8jBJdgD.d.ts → coverage-BuGlwUms.d.ts} +30 -9
- package/dist/{coverage-Dh2W_DmF.js → coverage-CGu_Kovx.js} +114 -64
- package/dist/{create-goT32QIN.d.ts → create--q7-j0hX.d.ts} +6 -6
- package/dist/{create-ChK8bpCK.d.ts → create-C5IQw_-i.d.ts} +7 -7
- package/dist/{create-DGFv7Dje.d.ts → create-CYj0cjTu.d.ts} +4 -4
- package/dist/{create-BRr7Gu7N.js → create-D7D94oNh.js} +4 -4
- package/dist/{create-bYkJ4-tg.js → create-DaddhCIg.js} +3 -3
- package/dist/{credentials-UwTE2wCW.js → credentials-BZU7Twpt.js} +1 -1
- package/dist/{credentials-fqa_Xzzh.d.ts → credentials-Bq-Xa7Vq.d.ts} +2 -2
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-BTMxIn5W.d.ts → denied-text-B6s29jcf.d.ts} +1 -1
- package/dist/{describe-CazEjtOH.d.ts → describe-DwcoWMLB.d.ts} +1 -1
- package/dist/{diff-DLcsCeVo.js → diff-BnYHpRSI.js} +3 -3
- package/dist/{diff-BkuW_5dK.js → diff-H75YU6Q-.js} +1 -1
- package/dist/{doctor-oD08zL1e.js → doctor-CF9TXVkX.js} +68 -32
- package/dist/{doctor-Jk2Ifezw.js → doctor-DreyO1At.js} +2 -2
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/elysia/index.d.ts +4 -4
- package/dist/elysia/index.js +1 -1
- package/dist/{errors-CXxQwtbZ.d.ts → errors-D_SnqcRn.d.ts} +1 -1
- package/dist/{evaluate-_JdlbJ32.js → evaluate-BQ2nWOki.js} +2 -2
- package/dist/{evaluations-DcUW5VkX.d.ts → evaluations-BVtY66lF.d.ts} +3 -3
- package/dist/evaluator-CDl2YUd_.js +2 -0
- package/dist/{evaluator-eager-DvmrpdZt.js → evaluator-eager-CULtQ8t6.js} +1 -1
- package/dist/eve/index.d.ts +4 -4
- package/dist/eve/index.js +2 -2
- package/dist/express/index.d.ts +4 -4
- package/dist/express/index.js +1 -1
- package/dist/fastify/index.d.ts +4 -4
- package/dist/fastify/index.js +1 -1
- package/dist/{fetch-adapter-eQ-mdk8n.d.ts → fetch-adapter-BJ76IZZg.d.ts} +2 -2
- package/dist/{fetch-adapter-CAA3VJMX.js → fetch-adapter-CXeBg4CH.js} +1 -1
- package/dist/{fields-B17OWcPx.js → fields-D9PIYlJy.js} +13 -7
- package/dist/{from-snapshot-CdGYjHUg.js → from-snapshot-FdVXG_QZ.js} +20 -14
- package/dist/{gen-BwcwwLok.js → gen-BU5glz2Q.js} +2 -2
- package/dist/{gen-D4ulqsYR.js → gen-C75KIBdA.js} +1 -1
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +2 -2
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +1 -1
- package/dist/{hosted-cPDyrlsQ.js → hosted-CQW_YNx7.js} +1 -1
- package/dist/{hosted-BUCpV8-u.d.ts → hosted-D5StFpKa.d.ts} +1 -1
- package/dist/{import-BsrnU4BF.js → import-B34PyXgL.js} +3 -16
- package/dist/{import-B2jgnNS0.js → import-BYYXmHvP.js} +1 -1
- package/dist/{index-DD2FBFdm.d.ts → index-B1-tE0Kx.d.ts} +14 -7
- package/dist/{index-DQCBzEhO.d.ts → index-BwSEp_O5.d.ts} +4 -4
- package/dist/{index-CvKGALWb.d.ts → index-CB_eM-qx.d.ts} +4 -4
- package/dist/{index-BXS29UnX.d.ts → index-CvcE9mYP.d.ts} +1 -1
- package/dist/{index-DYAJ9JX1.d.ts → index-D7sMtTf6.d.ts} +4 -4
- package/dist/{index-CxA-ygwc.d.ts → index-d7f0hNss.d.ts} +2 -2
- package/dist/index.d.ts +17 -17
- package/dist/index.js +13 -13
- package/dist/{init-Baq0yYfu.js → init-C-nzibt_.js} +1 -1
- package/dist/{init-Cik6ITgM.js → init-C1Bj0BFA.js} +3 -3
- package/dist/{instance-options-BDHB3qBG.d.ts → instance-options-DhQVCuhT.d.ts} +1 -1
- package/dist/{instance-snapshot-LPNBG9np.js → instance-snapshot-DyG_5ASl.js} +5 -5
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-BY3rVRs2.js → kernel-D9AxUqmz.js} +5 -5
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{login-CUboKh0f.js → login-Cm_ebe5M.js} +3 -3
- package/dist/{login-CcBS1xkU.js → login-DjuUQqqK.js} +1 -1
- package/dist/{manifest-CIlVL-QT.js → manifest-9KSrH_1h.js} +35 -35
- package/dist/{may-use-D0_wNcgB.js → may-use-WDhFPqGG.js} +5 -6
- package/dist/mcp/index.d.ts +8 -8
- package/dist/mcp/index.js +3 -3
- package/dist/{membership-filter-CfLdP_F9.js → membership-filter-BWnfRQzo.js} +1 -1
- package/dist/{module-values-BLiVlO1X.js → module-values-CdaVwrab.js} +1 -1
- package/dist/nest/index.d.ts +4 -4
- package/dist/nest/index.js +1 -1
- package/dist/next/index.d.ts +10 -10
- package/dist/next/index.js +2 -2
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +1 -1
- package/dist/node/index.d.ts +4 -4
- package/dist/node/index.js +1 -1
- package/dist/oauth-security-X7Em8DbH.js +26 -0
- package/dist/openai/index.d.ts +4 -4
- package/dist/openai/index.js +3 -3
- package/dist/openapi/index.d.ts +4 -4
- package/dist/openapi/index.js +1 -1
- package/dist/{openapi-DobvXTF6.js → openapi-C2WGtmFa.js} +2 -2
- package/dist/{openapi-DglIpD53.js → openapi-DvTtFkwY.js} +2 -2
- package/dist/orpc/index.d.ts +5 -5
- package/dist/orpc/index.js +2 -2
- package/dist/otel/index.d.ts +3 -3
- package/dist/{output-B81GJ6u6.js → output-CuJfGWo6.js} +1 -1
- package/dist/{ownership-B7Ea-hUY.js → ownership-C_5eZ6N2.js} +1 -1
- package/dist/{parse-local-manifest-DzZOzDsK.d.ts → parse-local-manifest-w_ksIkB9.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +1 -1
- package/dist/{permdock-HfTF99xX.js → permdock-B3zE16To.js} +14 -18
- package/dist/{permdock-vD3mwLSm.d.ts → permdock-DV3opaI3.d.ts} +3 -3
- package/dist/{permissions-CGYZqYsY.js → permissions-D-M48hW-.js} +1 -1
- package/dist/{policy-B_cqFLHu.d.ts → policy-DIHfTqm6.d.ts} +1 -1
- package/dist/{policy-from-catalog-lKL280I8.js → policy-from-catalog-Z0hvSffr.js} +3 -3
- package/dist/{policy-types-CCBrL7me.d.ts → policy-types-DU389Elz.d.ts} +30 -3
- package/dist/{postgrest-5WOO47Ud.d.ts → postgrest-3dE9SGx9.d.ts} +2 -2
- package/dist/powersync-BO1ty3Mf.js +1 -0
- package/dist/{powersync-BUUqJfH2.js → powersync-Bqy5Un2J.js} +6 -6
- package/dist/{powersync-B6f4l8C1.js → powersync-CCQAqiOo.js} +2 -2
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{protected-action-DGuJNiMA.d.ts → protected-action-CjSUoPGx.d.ts} +5 -5
- package/dist/{protected-action-CdqR2-E2.js → protected-action-D41o5LvP.js} +6 -3
- package/dist/provider-Bzzux0TR.js +12 -0
- package/dist/{provider-yIM04TwN.d.ts → provider-D1jsNJ85.d.ts} +1 -1
- package/dist/{provider-store-BLd4UEmg.js → provider-store-tIAwP4aW.js} +3 -3
- package/dist/{provider-6mpRZO1E.js → provider-with-Do28DhxP.js} +6 -24
- package/dist/pull-CYdd5HzX.js +1 -0
- package/dist/{pull-4Yi8zYeU.js → pull-DLkaZBwH.js} +2 -2
- package/dist/{push-Dv1nfFPr.js → push-sJ5dy46a.js} +2 -2
- package/dist/{pushed-policy-B2ZSpnRY.d.ts → pushed-policy-Db651nih.d.ts} +1 -1
- package/dist/{pushed-policy-DJoyBZsd.js → pushed-policy-UZyQinrL.js} +1 -1
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +3 -3
- package/dist/react/lazy.d.ts +12 -0
- package/dist/react/lazy.js +36 -0
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +8 -8
- package/dist/react-native/index.js +7 -7
- package/dist/{replay-CsErjiHt.d.ts → replay-BpmpY2ev.d.ts} +1 -1
- package/dist/{request-context-B_L4ev8L.js → request-context-dyCY4V1t.js} +1 -1
- package/dist/resend/index.d.ts +4 -4
- package/dist/{resolve-names-SGcLjtFc.js → resolve-names-DHDedxk0.js} +2 -2
- package/dist/{rls-hmwRIS3-.js → rls-B3-tGA4r.js} +13 -13
- package/dist/{rls-Df9NEWD3.js → rls-BW2u4lQW.js} +1 -1
- package/dist/{rpc-DFtputZ1.js → rpc-BdFGYcWm.js} +1 -1
- package/dist/{rpc-D3St8vPO.d.ts → rpc-DKRQobOX.d.ts} +1 -1
- package/dist/{run-BXmJIjRA.js → run-2GwcSago.js} +3 -3
- package/dist/run-CdGNonHf.js +1 -0
- package/dist/{run-ticket-zfABczfh.d.ts → run-ticket-o4RxoaEN.d.ts} +2 -2
- package/dist/{saas-DIThcxbn.js → saas-D9maBt0q.js} +3 -3
- package/dist/{scan-BrTSlc_5.js → scan-CB46GDQ0.js} +1 -1
- package/dist/{schema-UOeI_LTB.js → schema-CyEB_zeO.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/server/index.d.ts +11 -11
- package/dist/server/index.js +2 -2
- package/dist/{server-types-CtJSDhOv.d.ts → server-types-C4q8_8MM.d.ts} +8 -8
- package/dist/{sink-BskpqwLl.d.ts → sink-C3KDccl9.d.ts} +2 -2
- package/dist/{skills-BTVeFptV.js → skills-BYHCObpD.js} +1 -1
- package/dist/{skills-CAgWKbDR.js → skills-C-9wjNaE.js} +1 -1
- package/dist/{snapshot-BcHYtUIg.js → snapshot-D0VOanxQ.js} +7 -0
- package/dist/{snapshot-cache-BnXMcJbK.d.ts → snapshot-cache-C1mN0pXe.d.ts} +2 -2
- package/dist/snapshot-compact-CUtXsx6i.js +75 -0
- package/dist/{snapshot-empty-BoPBFoB8.js → snapshot-empty-F7d5BRlc.js} +1 -0
- package/dist/{snapshot-evaluate-CwYVSUgO.js → snapshot-evaluate-C3ZA35O_.js} +1 -1
- package/dist/{snapshot-reads-DOsTYC82.js → snapshot-reads-CNNmp1cK.js} +2 -2
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid/index.js +2 -2
- package/dist/solid-start/index.d.ts +4 -4
- package/dist/solid-start/index.js +2 -2
- package/dist/{sources-DhCtO9G8.d.ts → sources-2virTxHt.d.ts} +1 -1
- package/dist/{src-BZKQe1lr.js → src-ieIv22BA.js} +11 -7
- package/dist/ssf/index.d.ts +3 -3
- package/dist/{standard-webhooks-kQDkIPj3.d.ts → standard-webhooks-B2g_yWK8.d.ts} +2 -2
- package/dist/{store-core-CDabEiO9.d.ts → store-core-BI-9ZU-5.d.ts} +4 -4
- package/dist/{store-options-COLWAd1K.js → store-options-BYKNX_JG.js} +8 -6
- package/dist/{stores-DYxx75fk.js → stores-DtM8pt8o.js} +1 -1
- package/dist/{stores-Mw_VAJ3B.d.ts → stores-DwGfIcmq.d.ts} +5 -5
- package/dist/{subject-cache-DrJGnRiV.d.ts → subject-cache-TY2tw-k9.d.ts} +1 -1
- package/dist/{subject-BqFwS6l3.js → subject-jG6o8eKo.js} +1 -1
- package/dist/supabase/index.d.ts +6 -6
- package/dist/supabase/index.js +2 -2
- package/dist/supabase/middleware.d.ts +5 -5
- package/dist/supabase/middleware.js +4 -4
- package/dist/{supabase-BDr-fIHp.js → supabase-BlAqmxD8.js} +1 -1
- package/dist/{supabase-Bt8rb-ah.js → supabase-C1hExXsZ.js} +2 -2
- package/dist/supabase-hook-DCemge7i.js +1 -0
- package/dist/{supabase-hook-Cb3UZpGC.js → supabase-hook-DJA8AJYz.js} +5 -5
- package/dist/{supautils-CuR9rPsi.js → supautils-DuwkBqKm.js} +7 -7
- package/dist/svelte/index.d.ts +5 -5
- package/dist/svelte/index.js +3 -3
- package/dist/svelte/runtime.d.ts +3 -3
- package/dist/svelte/runtime.js +1 -1
- package/dist/svelte/source.d.ts +5 -5
- package/dist/svelte/source.js +2 -2
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/sveltekit/index.js +1 -1
- package/dist/{tables-Bl_ozD0k.js → tables-B3w3EtUF.js} +1 -1
- package/dist/tanstack-start/index.d.ts +4 -4
- package/dist/tanstack-start/index.js +1 -1
- package/dist/terminal/index.d.ts +5 -5
- package/dist/terminal/index.js +6 -5
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.d.ts +3 -3
- package/dist/testing/fixtures/index.js +2 -2
- package/dist/testing/index.d.ts +32 -25
- package/dist/testing/index.js +25 -16
- package/dist/testing/saas/index.d.ts +3 -3
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +5 -5
- package/dist/trpc/index.js +2 -2
- package/dist/{type-helpers-fQdBvtU0.d.ts → type-helpers-tDoGEIsd.d.ts} +1 -1
- package/dist/{types-JmB6unT6.d.ts → types-61f3KMtI.d.ts} +7 -2
- package/dist/{types-CdXM6qPc.d.ts → types-BDgMzK1i.d.ts} +2 -2
- package/dist/{types-DyA4Loy4.d.ts → types-BIvkpVoc.d.ts} +3 -3
- package/dist/{types-CXUwgZ3d.d.ts → types-BWjNPQkS.d.ts} +2 -2
- package/dist/{types-CErg7ft6.d.ts → types-Bq4AU68k.d.ts} +3 -3
- package/dist/{types-ChYCRn7Y.d.ts → types-BsqLNNvG.d.ts} +1 -1
- package/dist/{types-Cc68_zqR.d.ts → types-CH67RMvL.d.ts} +2 -2
- package/dist/{types-BSGrzDPi.d.ts → types-DEDocm4c.d.ts} +4 -4
- package/dist/{types-DDlaFDM3.d.ts → types-DQQkzF97.d.ts} +4 -4
- package/dist/{types-DM0o1YyJ.d.ts → types-DdeivUBP.d.ts} +4 -4
- package/dist/{types-CAp7UGiB.d.ts → types-X40XNxRP.d.ts} +1 -1
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-B6sQwycY.js → usage-BBEm7GVn.js} +4 -4
- package/dist/{usage-CNkKk27O.js → usage-CkKbvpmL.js} +1 -1
- package/dist/usage-GQxn7qkA.js +1 -0
- package/dist/{validation-error-BE8bpmhR.d.ts → validation-error-CV0nV6_L.d.ts} +1 -1
- package/dist/{verify-OtU4yCzg.js → verify-lgYu1Twv.js} +10 -10
- package/dist/{version-sources-BZ7V6Z8Z.js → version-sources-BRb9ZteH.js} +1 -1
- package/dist/vue/index.d.ts +5 -5
- package/dist/vue/index.js +2 -2
- package/dist/{waiter-LdnPaBJE.d.ts → waiter-BophA4BT.d.ts} +2 -2
- package/dist/{watch-CR2ZIT_5.js → watch-CJKYQYNb.js} +2 -2
- package/dist/watch-Cv-xvI6e.js +1 -0
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/webmcp/index.js +9 -1
- package/dist/{who-can-DcrHB6ya.js → who-can-Yh9WdiwK.js} +1 -1
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +2 -2
- package/dist/workflow-sdk/index.d.ts +4 -4
- package/dist/{wrap-CVBPIuEs.d.ts → wrap-Bq9fHwuT.d.ts} +2 -2
- package/package.json +8 -4
- package/schemas/snapshot-v1.json +208 -52
- package/skills/permdock-wire/references/adapters.md +4 -2
- package/dist/catalog-DqYnQz8U.js +0 -1
- package/dist/collect-CjFczu8a.js +0 -1
- package/dist/evaluator-mHAoYEkk.js +0 -2
- package/dist/powersync-D12Q6Chj.js +0 -1
- package/dist/pull-Dr6Bq5Jo.js +0 -1
- package/dist/run-DnzrDgU-.js +0 -1
- package/dist/supabase-hook-D1pwHu87.js +0 -1
- package/dist/usage-Cem1FOeJ.js +0 -1
- package/dist/watch-B8F7Wgdy.js +0 -1
- package/dist/{catalog-doc-BoSOQRXT.js → catalog-doc-DnQDviXY.js} +1 -1
- package/dist/{credential-DrVrRL7z.js → credential-BMsbcaeP.js} +1 -1
- package/dist/{policy-BovcTojN.js → policy-DnNOTENd.js} +1 -1
|
@@ -9,15 +9,15 @@ import { o as flattenGrantee } from "./grantee-OG4klcNr.js";
|
|
|
9
9
|
import { p as nowSeconds, s as instantAt } from "./time-nR1JesoH.js";
|
|
10
10
|
import { i as sameId } from "./ids-DzhJaCUj.js";
|
|
11
11
|
import { c as rootScope, d as scopeList, i as keepsPermission, p as tenantOf, s as resolveScope } from "./scopes-gdH__vDZ.js";
|
|
12
|
+
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
12
13
|
import { a as readOnlyActorRefuses, i as delegatedPermissions, r as coversRequirements } from "./delegation-CrdqnesZ.js";
|
|
13
14
|
import { n as matchGrantee, t as combineWhere } from "./grantee-match-CPQ9zV-H.js";
|
|
14
15
|
import { c as nowSeconds$1, d as resolveActiveTenant, l as partitionsOf, p as scopeField, r as isMembershipExpired } from "./tenancy-BlxY5T0q.js";
|
|
15
|
-
import { t as
|
|
16
|
-
import {
|
|
17
|
-
import { t as evaluateSnapshot } from "./snapshot-evaluate-CwYVSUgO.js";
|
|
16
|
+
import { o as subjectFromSnapshot, t as buildSnapshot } from "./snapshot-D0VOanxQ.js";
|
|
17
|
+
import { t as evaluateSnapshot } from "./snapshot-evaluate-C3ZA35O_.js";
|
|
18
18
|
import { t as byCodePoint } from "./compare-DTfyUunF.js";
|
|
19
|
-
import { c as levelNames, i as grantList, n as declaredRoleNames, s as levelCondition, t as coveredLevels } from "./policy-
|
|
20
|
-
import { C as tenantCustomRoles, D as emptyListeners, M as contactMayUse, S as roleAllowKeys, _ as isSharedCustomRole, a as expandRoleNames, g as holdsGlobalCustomRole, h as holdsCustomRole, l as ceilingGrants, m as customRoleScope, n as requirementCondition, p as customRoleOf, t as evaluate, u as customGrantsFor, x as resolveCustomRole } from "./evaluate-
|
|
19
|
+
import { c as levelNames, i as grantList, n as declaredRoleNames, s as levelCondition, t as coveredLevels } from "./policy-DnNOTENd.js";
|
|
20
|
+
import { C as tenantCustomRoles, D as emptyListeners, M as contactMayUse, S as roleAllowKeys, _ as isSharedCustomRole, a as expandRoleNames, g as holdsGlobalCustomRole, h as holdsCustomRole, l as ceilingGrants, m as customRoleScope, n as requirementCondition, p as customRoleOf, t as evaluate, u as customGrantsFor, x as resolveCustomRole } from "./evaluate-BQ2nWOki.js";
|
|
21
21
|
//#region src/core/memberships.ts
|
|
22
22
|
/** Two memberships are the same row when everything but `roles` matches. */
|
|
23
23
|
function identity(membership) {
|
package/dist/jwt/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as JwtClaims,
|
|
2
|
-
import { c as LinkPolicy, o as CapabilityPrincipal, t as Capability } from "../capability-
|
|
3
|
-
import { B as JwtAlgorithm, F as DpopProofResult, H as JwtPrincipal, I as IntrospectionPrincipal, L as JoseTokenSignerOptions, P as DiscoveryInput, R as JoseTokenVerifierOptions, U as JwtSubjectOptions, V as JwtJwks, W as MappedSubject, l as ReplayStore, z as JsonWebKeySet } from "../types-
|
|
4
|
-
import { t as memoryReplayStore } from "../replay-
|
|
1
|
+
import { $ as JwtClaims, Sr as Subject, _t as TokenSigner, br as Principal, bt as VerifiedToken, cn as AuthEvent, gt as TokenFailureCause, vt as TokenVerifier } from "../policy-types-DU389Elz.js";
|
|
2
|
+
import { c as LinkPolicy, o as CapabilityPrincipal, t as Capability } from "../capability-DqCyFGip.js";
|
|
3
|
+
import { B as JwtAlgorithm, F as DpopProofResult, H as JwtPrincipal, I as IntrospectionPrincipal, L as JoseTokenSignerOptions, P as DiscoveryInput, R as JoseTokenVerifierOptions, U as JwtSubjectOptions, V as JwtJwks, W as MappedSubject, l as ReplayStore, z as JsonWebKeySet } from "../types-BDgMzK1i.js";
|
|
4
|
+
import { t as memoryReplayStore } from "../replay-BpmpY2ev.js";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
//#region src/jwt/capability.d.ts
|
|
7
7
|
/**
|
|
@@ -5,12 +5,12 @@ import { t as actorMayCallTool } from "./delegation-CrdqnesZ.js";
|
|
|
5
5
|
import { n as resourceRef } from "./resource-ref-CaS9yVPi.js";
|
|
6
6
|
import { c as nowSeconds, r as isMembershipExpired } from "./tenancy-BlxY5T0q.js";
|
|
7
7
|
import { a as deniedMessage } from "./errors-ynga1EQy.js";
|
|
8
|
-
import { k as activate } from "./evaluate-
|
|
9
|
-
import { t as delegationAllows } from "./may-use-
|
|
10
|
-
import { r as withApp } from "./app-
|
|
8
|
+
import { k as activate } from "./evaluate-BQ2nWOki.js";
|
|
9
|
+
import { t as delegationAllows } from "./may-use-WDhFPqGG.js";
|
|
10
|
+
import { r as withApp } from "./app-J9PE1LNm.js";
|
|
11
11
|
import { n as tenantScope, t as actorFrom } from "./adapter-context-OHikyRqV.js";
|
|
12
|
-
import { n as resolveOrNull } from "./build-instance-
|
|
13
|
-
import { n as requestContext, t as buildReportingInstance } from "./request-context-
|
|
12
|
+
import { n as resolveOrNull } from "./build-instance-Bq8wkJ4i.js";
|
|
13
|
+
import { n as requestContext, t as buildReportingInstance } from "./request-context-dyCY4V1t.js";
|
|
14
14
|
import { l as storedApprovalToken, s as resumeDecision } from "./helpers-CO2hDpBU.js";
|
|
15
15
|
//#region src/agent/denied-text.ts
|
|
16
16
|
/**
|
package/dist/kysely/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as WhereResult } from "../permdock-
|
|
1
|
+
import { Dr as Condition, Sr as Subject, qt as Instant } from "../policy-types-DU389Elz.js";
|
|
2
|
+
import { f as WhereResult } from "../permdock-DV3opaI3.js";
|
|
3
3
|
import { r as RelationsMapping } from "../graph-sql-BwFC4Qjs.js";
|
|
4
|
-
import { s as MembershipsMapping } from "../compile-
|
|
4
|
+
import { s as MembershipsMapping } from "../compile-Dh9pW_Co.js";
|
|
5
5
|
import { n as RowCheck, t as WithSubjectOptions } from "../subject-settings-vNW8qmUH.js";
|
|
6
6
|
//#region src/kysely/types.d.ts
|
|
7
7
|
type KyselySelectQuery = {
|
|
@@ -27,7 +27,7 @@ const login = defineLeaf({
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
async run(ctx, { flags }) {
|
|
30
|
-
const { runLogin } = await import("./login-
|
|
30
|
+
const { runLogin } = await import("./login-DjuUQqqK.js");
|
|
31
31
|
return runLogin({
|
|
32
32
|
cwd: ctx.cwd,
|
|
33
33
|
url: given(flags.url),
|
|
@@ -43,7 +43,7 @@ const login = defineLeaf({
|
|
|
43
43
|
const logout = defineLeaf({
|
|
44
44
|
flags: { ...urlFlag },
|
|
45
45
|
async run(ctx, { flags }) {
|
|
46
|
-
const { runLogout } = await import("./login-
|
|
46
|
+
const { runLogout } = await import("./login-DjuUQqqK.js");
|
|
47
47
|
return runLogout({
|
|
48
48
|
url: given(flags.url),
|
|
49
49
|
json: ctx.json,
|
|
@@ -55,7 +55,7 @@ const logout = defineLeaf({
|
|
|
55
55
|
const whoami = defineLeaf({
|
|
56
56
|
flags: { ...urlFlag },
|
|
57
57
|
async run(ctx, { flags }) {
|
|
58
|
-
const { runWhoami } = await import("./login-
|
|
58
|
+
const { runWhoami } = await import("./login-DjuUQqqK.js");
|
|
59
59
|
return runWhoami({
|
|
60
60
|
url: given(flags.url),
|
|
61
61
|
json: ctx.json,
|
|
@@ -3,7 +3,7 @@ import { n as CliError } from "./errors-BhRkoNS7.js";
|
|
|
3
3
|
import { i as postForm, r as parseToken, s as runDeviceFlow } from "./device-BkSynWdg.js";
|
|
4
4
|
import { i as writeCredentials, n as deleteCredentials, r as readCredentials, t as credentialsPath } from "./storage-C2bWdvJH.js";
|
|
5
5
|
import { n as randomToken, t as pkce } from "./pkce-CnmmYqUZ.js";
|
|
6
|
-
import { a as nonEmptyOr } from "./output-
|
|
6
|
+
import { a as nonEmptyOr } from "./output-CuJfGWo6.js";
|
|
7
7
|
import { n as httpRequest } from "./http-dptLQzPP.js";
|
|
8
8
|
import { c as READ_SCOPES, d as issuerMetadata, i as credentialsInsideRepository, l as cloudUrl, n as cliRuntime, r as credentialStorage, s as CLI_CLIENT_ID, t as CREDENTIAL_SERVICE } from "./auth-BxXHxWRy.js";
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
@@ -30,20 +30,20 @@ const SECTIONS = [
|
|
|
30
30
|
docs: "init",
|
|
31
31
|
effects: ["files"],
|
|
32
32
|
config: false,
|
|
33
|
-
load: async () => (await import("./init-
|
|
33
|
+
load: async () => (await import("./init-C1Bj0BFA.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-
|
|
40
|
+
load: async () => (await import("./init-C1Bj0BFA.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-
|
|
46
|
+
load: async () => (await import("./init-C1Bj0BFA.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,21 +55,21 @@ const SECTIONS = [
|
|
|
55
55
|
docs: "skills",
|
|
56
56
|
effects: ["files"],
|
|
57
57
|
config: false,
|
|
58
|
-
load: async () => (await import("./skills-
|
|
58
|
+
load: async () => (await import("./skills-BYHCObpD.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-
|
|
65
|
+
load: async () => (await import("./skills-BYHCObpD.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-
|
|
72
|
+
load: async () => (await import("./skills-BYHCObpD.js")).list
|
|
73
73
|
})
|
|
74
74
|
]),
|
|
75
75
|
leaf("doctor", "Check a PermDock installation and print a fix for each finding", {
|
|
@@ -83,7 +83,7 @@ const SECTIONS = [
|
|
|
83
83
|
effects: ["files", "database:read"],
|
|
84
84
|
config: true,
|
|
85
85
|
findings: true,
|
|
86
|
-
load: async () => (await import("./doctor-
|
|
86
|
+
load: async () => (await import("./doctor-DreyO1At.js")).doctor
|
|
87
87
|
}),
|
|
88
88
|
leaf("completion", "Print the shell completion script for bash, zsh or fish", {
|
|
89
89
|
examples: ["permdock completion zsh > ~/.zfunc/_permdock", "eval \"$(permdock completion bash)\""],
|
|
@@ -91,7 +91,7 @@ const SECTIONS = [
|
|
|
91
91
|
effects: [],
|
|
92
92
|
config: false,
|
|
93
93
|
shellOutput: true,
|
|
94
|
-
load: async () => (await import("./completion-
|
|
94
|
+
load: async () => (await import("./completion-DenWMczI.js")).completion
|
|
95
95
|
})
|
|
96
96
|
]
|
|
97
97
|
},
|
|
@@ -107,14 +107,14 @@ const SECTIONS = [
|
|
|
107
107
|
docs: "collect",
|
|
108
108
|
effects: ["files"],
|
|
109
109
|
config: true,
|
|
110
|
-
load: async () => (await import("./collect-
|
|
110
|
+
load: async () => (await import("./collect-CxPJRjoc.js")).collect
|
|
111
111
|
}),
|
|
112
112
|
leaf("catalog", "Export the catalog as catalog JSON, JSON Schema or Markdown", {
|
|
113
113
|
examples: ["permdock catalog --out permissions.catalog.json", "permdock catalog --kind markdown"],
|
|
114
114
|
docs: "catalog",
|
|
115
115
|
effects: ["files"],
|
|
116
116
|
config: true,
|
|
117
|
-
load: async () => (await import("./catalog-
|
|
117
|
+
load: async () => (await import("./catalog-CaZoXBD8.js")).catalog
|
|
118
118
|
}),
|
|
119
119
|
leaf("gen", "Write typed constants, schemas, factories, hooks and messages from the policy", {
|
|
120
120
|
examples: [
|
|
@@ -125,7 +125,7 @@ const SECTIONS = [
|
|
|
125
125
|
docs: "gen",
|
|
126
126
|
effects: ["files"],
|
|
127
127
|
config: true,
|
|
128
|
-
load: async () => (await import("./gen-
|
|
128
|
+
load: async () => (await import("./gen-C75KIBdA.js")).gen
|
|
129
129
|
}),
|
|
130
130
|
leaf("usage", "Report unused, ungranted and role-less permissions and conditions on undeclared fields", {
|
|
131
131
|
examples: ["permdock usage", "permdock usage --fail-on warning"],
|
|
@@ -133,14 +133,14 @@ const SECTIONS = [
|
|
|
133
133
|
effects: [],
|
|
134
134
|
config: true,
|
|
135
135
|
findings: true,
|
|
136
|
-
load: async () => (await import("./usage-
|
|
136
|
+
load: async () => (await import("./usage-CkKbvpmL.js")).usage
|
|
137
137
|
}),
|
|
138
138
|
leaf("diff", "Compare two policies or catalogs; exit 1 on a breaking change", {
|
|
139
139
|
examples: ["permdock diff main.catalog.json permissions.catalog.json", "permdock diff ./old-policy.ts ./src/policy.ts --impact"],
|
|
140
140
|
docs: "diff",
|
|
141
141
|
effects: [],
|
|
142
142
|
config: true,
|
|
143
|
-
load: async () => (await import("./diff-
|
|
143
|
+
load: async () => (await import("./diff-H75YU6Q-.js")).diff
|
|
144
144
|
}),
|
|
145
145
|
leaf("config", "Check permdock.config.ts for unknown keys, or print the effective config", {
|
|
146
146
|
examples: ["permdock config", "permdock config --print"],
|
|
@@ -148,7 +148,7 @@ const SECTIONS = [
|
|
|
148
148
|
effects: [],
|
|
149
149
|
config: true,
|
|
150
150
|
findings: true,
|
|
151
|
-
load: async () => (await import("./config-
|
|
151
|
+
load: async () => (await import("./config-CoUYTCCu.js")).config
|
|
152
152
|
})
|
|
153
153
|
]
|
|
154
154
|
},
|
|
@@ -165,14 +165,14 @@ const SECTIONS = [
|
|
|
165
165
|
"network"
|
|
166
166
|
],
|
|
167
167
|
config: true,
|
|
168
|
-
load: async () => (await import("./rls-
|
|
168
|
+
load: async () => (await import("./rls-BW2u4lQW.js")).generate
|
|
169
169
|
}),
|
|
170
170
|
leaf("import", "Turn existing RLS policies into a generated definition", {
|
|
171
171
|
examples: ["permdock rls import --sql schema.sql --out src/permissions.generated.ts", "permdock rls import --db-url-stdin --out src/permissions.generated.ts"],
|
|
172
172
|
docs: "rls",
|
|
173
173
|
effects: ["files", "database:read"],
|
|
174
174
|
config: true,
|
|
175
|
-
load: async () => (await import("./rls-
|
|
175
|
+
load: async () => (await import("./rls-BW2u4lQW.js")).importPolicies
|
|
176
176
|
}),
|
|
177
177
|
leaf("verify", "Run the fixtures against the policies, or compare a live database", {
|
|
178
178
|
examples: [
|
|
@@ -184,21 +184,21 @@ const SECTIONS = [
|
|
|
184
184
|
effects: ["files", "database:read"],
|
|
185
185
|
config: true,
|
|
186
186
|
findings: true,
|
|
187
|
-
load: async () => (await import("./rls-
|
|
187
|
+
load: async () => (await import("./rls-BW2u4lQW.js")).verify
|
|
188
188
|
}),
|
|
189
189
|
leaf("migrate", "Rewrite hand-written policies onto the generated helpers", {
|
|
190
190
|
examples: ["permdock rls migrate --sql supabase/migrations --dry-run", "permdock rls migrate --sql supabase/migrations"],
|
|
191
191
|
docs: "rls",
|
|
192
192
|
effects: ["rewrite", "files"],
|
|
193
193
|
config: true,
|
|
194
|
-
load: async () => (await import("./rls-
|
|
194
|
+
load: async () => (await import("./rls-BW2u4lQW.js")).migrate
|
|
195
195
|
}),
|
|
196
196
|
leaf("explain", "Show the tables, membership sources and triggers the SQL binds to", {
|
|
197
197
|
examples: ["permdock rls explain", "permdock rls explain --db-url-stdin --json"],
|
|
198
198
|
docs: "rls",
|
|
199
199
|
effects: ["database:read"],
|
|
200
200
|
config: true,
|
|
201
|
-
load: async () => (await import("./rls-
|
|
201
|
+
load: async () => (await import("./rls-BW2u4lQW.js")).explain
|
|
202
202
|
})
|
|
203
203
|
]),
|
|
204
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", {
|
|
@@ -206,26 +206,26 @@ const SECTIONS = [
|
|
|
206
206
|
docs: "supabase",
|
|
207
207
|
effects: ["files", "database:read"],
|
|
208
208
|
config: true,
|
|
209
|
-
load: async () => (await import("./supabase-
|
|
209
|
+
load: async () => (await import("./supabase-C1hExXsZ.js")).hookGenerate
|
|
210
210
|
})]), leaf("inspect", "Print or write the hook and helper manifest", {
|
|
211
211
|
examples: ["permdock supabase inspect", "permdock supabase inspect --out"],
|
|
212
212
|
docs: "supabase",
|
|
213
213
|
effects: ["files"],
|
|
214
214
|
config: true,
|
|
215
|
-
load: async () => (await import("./supabase-
|
|
215
|
+
load: async () => (await import("./supabase-C1hExXsZ.js")).inspect
|
|
216
216
|
})]),
|
|
217
217
|
group("powersync", "Generate PowerSync Sync Streams from the policy, or verify them", "powersync", [leaf("generate", "Compile the read grants into sync-config.yaml", {
|
|
218
218
|
examples: ["permdock powersync generate", "permdock powersync generate --check"],
|
|
219
219
|
docs: "powersync",
|
|
220
220
|
effects: ["files"],
|
|
221
221
|
config: true,
|
|
222
|
-
load: async () => (await import("./powersync-
|
|
222
|
+
load: async () => (await import("./powersync-CCQAqiOo.js")).generate
|
|
223
223
|
}), leaf("verify", "Fail on stale streams or a stream that syncs a denied row", {
|
|
224
224
|
examples: ["permdock powersync verify", "permdock powersync verify --db-url-stdin"],
|
|
225
225
|
docs: "powersync",
|
|
226
226
|
effects: ["database:read"],
|
|
227
227
|
config: true,
|
|
228
|
-
load: async () => (await import("./powersync-
|
|
228
|
+
load: async () => (await import("./powersync-CCQAqiOo.js")).verify
|
|
229
229
|
})]),
|
|
230
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", {
|
|
231
231
|
examples: [
|
|
@@ -248,13 +248,13 @@ const SECTIONS = [
|
|
|
248
248
|
docs: "openapi",
|
|
249
249
|
effects: ["files"],
|
|
250
250
|
config: true,
|
|
251
|
-
load: async () => (await import("./openapi-
|
|
251
|
+
load: async () => (await import("./openapi-C2WGtmFa.js")).emit
|
|
252
252
|
}), leaf("import", "Turn an OpenAPI document into a generated definition", {
|
|
253
253
|
examples: ["permdock openapi import --doc openapi.yaml --out src/permissions.generated.ts"],
|
|
254
254
|
docs: "openapi",
|
|
255
255
|
effects: ["files", "network"],
|
|
256
256
|
config: false,
|
|
257
|
-
load: async () => (await import("./openapi-
|
|
257
|
+
load: async () => (await import("./openapi-C2WGtmFa.js")).importDocument
|
|
258
258
|
})]),
|
|
259
259
|
group("arazzo", "Check Arazzo workflows against the permissions", "arazzo", [leaf("check", "Resolve every Arazzo step to x-permdock-permissions", {
|
|
260
260
|
examples: ["permdock arazzo check --doc arazzo.json --openapi openapi.json"],
|
|
@@ -262,7 +262,7 @@ const SECTIONS = [
|
|
|
262
262
|
effects: [],
|
|
263
263
|
config: true,
|
|
264
264
|
findings: true,
|
|
265
|
-
load: async () => (await import("./arazzo-
|
|
265
|
+
load: async () => (await import("./arazzo-BDDzHgwW.js")).check
|
|
266
266
|
})]),
|
|
267
267
|
leaf("scan", "List authorization checks written without PermDock, to adopt it in an existing app", {
|
|
268
268
|
examples: ["permdock scan", "permdock scan --src app,lib --pattern isBeta"],
|
|
@@ -270,7 +270,7 @@ const SECTIONS = [
|
|
|
270
270
|
effects: [],
|
|
271
271
|
config: true,
|
|
272
272
|
findings: true,
|
|
273
|
-
load: async () => (await import("./scan-
|
|
273
|
+
load: async () => (await import("./scan-CB46GDQ0.js")).scan
|
|
274
274
|
}),
|
|
275
275
|
group("casl", "Import CASL rules into a generated module", "casl", [leaf("import", "Turn CASL rules per role into a permissions and policy module", {
|
|
276
276
|
examples: ["permdock casl import --rules rules.json --out src/permissions.generated.ts"],
|
|
@@ -284,7 +284,7 @@ const SECTIONS = [
|
|
|
284
284
|
docs: "casbin",
|
|
285
285
|
effects: ["files"],
|
|
286
286
|
config: false,
|
|
287
|
-
load: async () => (await import("./casbin-
|
|
287
|
+
load: async () => (await import("./casbin-BspH3-6_.js")).casbinImport
|
|
288
288
|
})])
|
|
289
289
|
]
|
|
290
290
|
},
|
|
@@ -296,34 +296,34 @@ const SECTIONS = [
|
|
|
296
296
|
docs: "login",
|
|
297
297
|
effects: ["network", "files"],
|
|
298
298
|
config: false,
|
|
299
|
-
load: async () => (await import("./login-
|
|
299
|
+
load: async () => (await import("./login-Cm_ebe5M.js")).login
|
|
300
300
|
}),
|
|
301
301
|
leaf("logout", "Revoke and delete the stored PermDock Cloud login", {
|
|
302
302
|
examples: ["permdock logout"],
|
|
303
303
|
docs: "login",
|
|
304
304
|
effects: ["network", "files"],
|
|
305
305
|
config: false,
|
|
306
|
-
load: async () => (await import("./login-
|
|
306
|
+
load: async () => (await import("./login-Cm_ebe5M.js")).logout
|
|
307
307
|
}),
|
|
308
308
|
leaf("whoami", "Print the PermDock Cloud identity the CLI acts as", {
|
|
309
309
|
examples: ["permdock whoami", "permdock whoami --json"],
|
|
310
310
|
docs: "login",
|
|
311
311
|
effects: [],
|
|
312
312
|
config: false,
|
|
313
|
-
load: async () => (await import("./login-
|
|
313
|
+
load: async () => (await import("./login-Cm_ebe5M.js")).whoami
|
|
314
314
|
}),
|
|
315
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", {
|
|
316
316
|
examples: ["permdock cloud push --dry-run", "permdock cloud push --project prj_123"],
|
|
317
317
|
docs: "cloud",
|
|
318
318
|
effects: ["network", "cloud:write"],
|
|
319
319
|
config: true,
|
|
320
|
-
load: async () => (await import("./cloud-
|
|
320
|
+
load: async () => (await import("./cloud-CUvR7okV.js")).push
|
|
321
321
|
}), leaf("pull", "Write a Cloud project's published catalog and manifest", {
|
|
322
322
|
examples: ["permdock cloud pull --project prj_123"],
|
|
323
323
|
docs: "cloud",
|
|
324
324
|
effects: ["network", "files"],
|
|
325
325
|
config: true,
|
|
326
|
-
load: async () => (await import("./cloud-
|
|
326
|
+
load: async () => (await import("./cloud-CUvR7okV.js")).pull
|
|
327
327
|
})])
|
|
328
328
|
]
|
|
329
329
|
},
|
|
@@ -334,7 +334,7 @@ const SECTIONS = [
|
|
|
334
334
|
docs: "codemod",
|
|
335
335
|
effects: ["rewrite"],
|
|
336
336
|
config: false,
|
|
337
|
-
load: async () => (await import("./codemod-
|
|
337
|
+
load: async () => (await import("./codemod-uZsk1b6T.js")).codemod
|
|
338
338
|
})]
|
|
339
339
|
}
|
|
340
340
|
];
|
|
@@ -346,7 +346,7 @@ const COMPLETE_LEAF = leaf("__complete", "Print completion candidates for a part
|
|
|
346
346
|
config: false,
|
|
347
347
|
shellOutput: true,
|
|
348
348
|
hidden: true,
|
|
349
|
-
load: async () => (await import("./completion-
|
|
349
|
+
load: async () => (await import("./completion-DenWMczI.js")).complete
|
|
350
350
|
});
|
|
351
351
|
const ROOT = group("permdock", "Collect, export, diff and check the permissions a PermDock policy declares", "", [...SECTIONS.flatMap((section) => section.entries), COMPLETE_LEAF]);
|
|
352
352
|
/** Each leaf with its path from the root, in manifest order. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
2
2
|
import { d as scopeList, p as tenantOf, s as resolveScope } from "./scopes-gdH__vDZ.js";
|
|
3
|
+
import { r as expandSnapshot } from "./snapshot-compact-CUtXsx6i.js";
|
|
3
4
|
import { a as readOnlyActorRefuses, n as coveredByDelegation } from "./delegation-CrdqnesZ.js";
|
|
4
5
|
import { r as readWireValidity, t as isActive } from "./validity-IcjQSR7I.js";
|
|
5
6
|
import { c as nowSeconds, r as isMembershipExpired } from "./tenancy-BlxY5T0q.js";
|
|
@@ -55,8 +56,7 @@ function withinDelegation(permdock, permission, ceiling) {
|
|
|
55
56
|
*/
|
|
56
57
|
function delegationAllows(permdock, permission) {
|
|
57
58
|
try {
|
|
58
|
-
|
|
59
|
-
return "grants" in snapshot && withinDelegation(permdock, permission, snapshot.delegated);
|
|
59
|
+
return withinDelegation(permdock, permission, expandSnapshot(permdock.snapshot()).delegated);
|
|
60
60
|
} catch {
|
|
61
61
|
return false;
|
|
62
62
|
}
|
|
@@ -69,8 +69,8 @@ function delegationAllows(permdock, permission) {
|
|
|
69
69
|
*/
|
|
70
70
|
function mayUse(permdock, permission) {
|
|
71
71
|
try {
|
|
72
|
-
const snapshot = permdock.snapshot();
|
|
73
|
-
if (!
|
|
72
|
+
const snapshot = expandSnapshot(permdock.snapshot());
|
|
73
|
+
if (!withinDelegation(permdock, permission, snapshot.delegated)) return false;
|
|
74
74
|
const tenant = permdock.subject.principal?.tenant;
|
|
75
75
|
const scopes = scopeList(snapshot.scopes);
|
|
76
76
|
const grants = snapshot.grants.filter((grant) => {
|
|
@@ -101,8 +101,7 @@ function isConditioned(grant) {
|
|
|
101
101
|
*/
|
|
102
102
|
function permittedIds(permdock, permission, scope, options = {}) {
|
|
103
103
|
try {
|
|
104
|
-
const snapshot = permdock.snapshot({ tenants: "all" });
|
|
105
|
-
if (!("grants" in snapshot)) return [];
|
|
104
|
+
const snapshot = expandSnapshot(permdock.snapshot({ tenants: "all" }));
|
|
106
105
|
const scopes = scopeList(snapshot.scopes);
|
|
107
106
|
const name = resolveScope(scopes, scope);
|
|
108
107
|
if (name === void 0 || !withinDelegation(permdock, permission, snapshot.delegated)) return [];
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { $ as JwtClaims, D as Policy,
|
|
1
|
+
import { $ as JwtClaims, D as Policy, Sr as Subject, br as Principal, gr as Delegation, vt as TokenVerifier } from "../policy-types-DU389Elz.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { m as ApprovalStore } from "../types-
|
|
4
|
-
import { t as ApprovalHint } from "../errors-
|
|
5
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
3
|
+
import { m as ApprovalStore } from "../types-X40XNxRP.js";
|
|
4
|
+
import { t as ApprovalHint } from "../errors-D_SnqcRn.js";
|
|
5
|
+
import { t as InstanceOptions } from "../instance-options-DhQVCuhT.js";
|
|
6
6
|
import { t as RequestContext } from "../request-context-C2_1lchh.js";
|
|
7
|
-
import { n as PermDockWrap } from "../wrap-
|
|
8
|
-
import { o as OtelWrap } from "../types-
|
|
9
|
-
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-
|
|
7
|
+
import { n as PermDockWrap } from "../wrap-Bq9fHwuT.js";
|
|
8
|
+
import { o as OtelWrap } from "../types-BWjNPQkS.js";
|
|
9
|
+
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-B6s29jcf.js";
|
|
10
10
|
import { t as ClientNames } from "../clients-C_NOET3z.js";
|
|
11
|
-
import { U as JwtSubjectOptions } from "../types-
|
|
11
|
+
import { U as JwtSubjectOptions } from "../types-BDgMzK1i.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
|
/**
|
package/dist/mcp/index.js
CHANGED
|
@@ -5,16 +5,16 @@ import { n as describe } from "../describe-BZAlPHxT.js";
|
|
|
5
5
|
import { c as listPermissions, m as annotationsFor } from "../permission-registry-B8tYxPIt.js";
|
|
6
6
|
import { t as actorMayCallTool } from "../delegation-CrdqnesZ.js";
|
|
7
7
|
import { n as resourceRef } from "../resource-ref-CaS9yVPi.js";
|
|
8
|
-
import { i as challengeScope, o as hasScope, s as scopesReaching } from "../permdock-
|
|
8
|
+
import { i as challengeScope, o as hasScope, s as scopesReaching } from "../permdock-B3zE16To.js";
|
|
9
9
|
import { t as anonymousSubject } from "../subject-C7RddW0G.js";
|
|
10
|
-
import { r as withApp } from "../app-
|
|
10
|
+
import { r as withApp } from "../app-J9PE1LNm.js";
|
|
11
11
|
import { t as composeWraps } from "../wrap-C5PWzgkq.js";
|
|
12
12
|
import { t as instanceOptions } from "../instance-options-URVwqpMW.js";
|
|
13
13
|
import { t as clientNameOf } from "../clients-DYr3U86j.js";
|
|
14
14
|
import { r as mapClaimsToSubject } from "../map-claims-CAa_bQt9.js";
|
|
15
15
|
import { l as problemResponse, o as methodNotAllowed, r as bearerChallenge, u as protectedResourceMetadataUrl } from "../problem-CPB8kqk7.js";
|
|
16
16
|
import { t as decideAll } from "../decide-set-DXEPepY1.js";
|
|
17
|
-
import { i as refusalText, n as createAgentKernel } from "../kernel-
|
|
17
|
+
import { i as refusalText, n as createAgentKernel } from "../kernel-D9AxUqmz.js";
|
|
18
18
|
import { t as boundedMap } from "../lru-8q4WZjBV.js";
|
|
19
19
|
import { n as delegationFrom, t as authorizationDetailsOf } from "../delegation-input-DcXhiMkf.js";
|
|
20
20
|
import { n as deniedToolRefusal, r as toolErrorResult, t as approvalToolRefusal } from "../tool-refusal-D4spOJ7I.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { g as secondsOf, m as rfc3339 } from "./time-nR1JesoH.js";
|
|
3
|
-
import { n as parseSnapshot } from "./snapshot-
|
|
3
|
+
import { n as parseSnapshot } from "./snapshot-D0VOanxQ.js";
|
|
4
4
|
//#region src/core/snapshot-sign.ts
|
|
5
5
|
/**
|
|
6
6
|
* The claims `signSnapshot` signs for `snapshot`. `issuedAt` and `expiresAt`
|
|
@@ -2,7 +2,7 @@ import { c as listPermissions } from "./permission-registry-B8tYxPIt.js";
|
|
|
2
2
|
import { i as configError } from "./errors-BhRkoNS7.js";
|
|
3
3
|
import { r as parseSync } from "./optional-8TKc-0j4.js";
|
|
4
4
|
import { a as loadModule, s as pickNamed, t as asPermissionTree } from "./load-C4p4VgwR.js";
|
|
5
|
-
import { i as isModuleKey, n as MODULE_KEYS } from "./config-shape-
|
|
5
|
+
import { i as isModuleKey, n as MODULE_KEYS } from "./config-shape-ChhsuGSV.js";
|
|
6
6
|
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
7
7
|
import { dirname, relative, resolve } from "node:path";
|
|
8
8
|
//#region src/cli/project/module-values.ts
|
package/dist/nest/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as Policy,
|
|
1
|
+
import { D as Policy, br as Principal } from "../policy-types-DU389Elz.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
3
|
+
import { a as PermDock } from "../permdock-DV3opaI3.js";
|
|
4
4
|
import { n as RevocationFeed } from "../revocations-BaUXHM1N.js";
|
|
5
|
-
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-
|
|
6
|
-
import { t as ServerAdapterOptions } from "../bind-
|
|
5
|
+
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-C4q8_8MM.js";
|
|
6
|
+
import { t as ServerAdapterOptions } from "../bind-CTj4dHc1.js";
|
|
7
7
|
import { r as sendResponse, t as NodeRequest } from "../http-B_LphE5Y.js";
|
|
8
8
|
import { CanActivate, DynamicModule, ExceptionFilter, ExecutionContext, Type } from "@nestjs/common";
|
|
9
9
|
//#region src/nest/http.d.ts
|
package/dist/nest/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { n as PermDockValidationError } from "../validation-error-CYg2kJEw.js";
|
|
|
3
3
|
import { n as PermDockDeniedError, r as PermDockRevokedError, t as PermDockApprovalRequiredError } from "../errors-ynga1EQy.js";
|
|
4
4
|
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-Bj5xw0EM.js";
|
|
5
5
|
import { c as writeReply, r as hasCredentials } from "../http-DKLXrFGk.js";
|
|
6
|
-
import { a as socketConnection, r as bindKernel } from "../bind-
|
|
6
|
+
import { a as socketConnection, r as bindKernel } from "../bind-LQ6zbARV.js";
|
|
7
7
|
import { t as problemFromError } from "../map-error-BCdb2Nrp.js";
|
|
8
8
|
import { a as onRevoked, n as closeReason, t as POLICY_VIOLATION } from "../stream-DQ3rbO3J.js";
|
|
9
9
|
import { n as sendResponse, r as toRequest$1, t as isServerResponse } from "../http-DH94eh6f.js";
|
package/dist/next/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, Q as Intent,
|
|
1
|
+
import { $n as DenialReason, D as Policy, N as PolicyVocabulary, Q as Intent, Sr as Subject, Xn as Decision, br as Principal, en as Snapshot, on as SnapshotTenants } from "../policy-types-DU389Elz.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { M as PermissionCheck, N as PermissionState, a as PermDock, d as UncheckedData, s as RowData } from "../permdock-
|
|
4
|
-
import { m as ApprovalStore } from "../types-
|
|
5
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
6
|
-
import { n as PermDockWrap } from "../wrap-
|
|
7
|
-
import { o as OtelWrap } from "../types-
|
|
8
|
-
import { n as DescribeMessages } from "../describe-
|
|
9
|
-
import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotKey, r as SnapshotHeadersOptions, s as snapshotTag, t as CacheLifeForOptions } from "../snapshot-cache-
|
|
10
|
-
import { b as ProtectedAction, y as ActionResult } from "../store-core-
|
|
11
|
-
import { n as PermDockProviderProps } from "../types-
|
|
3
|
+
import { M as PermissionCheck, N as PermissionState, a as PermDock, d as UncheckedData, s as RowData } from "../permdock-DV3opaI3.js";
|
|
4
|
+
import { m as ApprovalStore } from "../types-X40XNxRP.js";
|
|
5
|
+
import { t as InstanceOptions } from "../instance-options-DhQVCuhT.js";
|
|
6
|
+
import { n as PermDockWrap } from "../wrap-Bq9fHwuT.js";
|
|
7
|
+
import { o as OtelWrap } from "../types-BWjNPQkS.js";
|
|
8
|
+
import { n as DescribeMessages } from "../describe-DwcoWMLB.js";
|
|
9
|
+
import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotKey, r as SnapshotHeadersOptions, s as snapshotTag, t as CacheLifeForOptions } from "../snapshot-cache-C1mN0pXe.js";
|
|
10
|
+
import { b as ProtectedAction, y as ActionResult } from "../store-core-BI-9ZU-5.js";
|
|
11
|
+
import { n as PermDockProviderProps } from "../types-DEDocm4c.js";
|
|
12
12
|
import { ReactElement, ReactNode } from "react";
|
|
13
13
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
14
14
|
//#region src/next/types.d.ts
|
package/dist/next/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import { o as statusProblem, t as notFoundDetails } from "../problem-details-CLD
|
|
|
4
4
|
import { n as isThenable } from "../thenable-BNSM1U2R.js";
|
|
5
5
|
import { n as resourceRef } from "../resource-ref-CaS9yVPi.js";
|
|
6
6
|
import { a as permissionStates } from "../checks-fyDOhcz0.js";
|
|
7
|
-
import { r as withApp } from "../app-
|
|
7
|
+
import { r as withApp } from "../app-J9PE1LNm.js";
|
|
8
8
|
import { n as wrapPermDock } from "../wrap-C5PWzgkq.js";
|
|
9
|
-
import { n as resolveOrNull, t as buildInstance } from "../build-instance-
|
|
9
|
+
import { n as resolveOrNull, t as buildInstance } from "../build-instance-Bq8wkJ4i.js";
|
|
10
10
|
import { n as NO_GRANT, t as LOAD_FAILED } from "../decision-CaG5_eNJ.js";
|
|
11
11
|
import { i as decisionProblem } from "../problem-CPB8kqk7.js";
|
|
12
12
|
import { o as evaluationsHandler } from "../evaluations-Bj5xw0EM.js";
|
package/dist/next/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as PermDockPluginOptions } from "../types-
|
|
1
|
+
import { s as PermDockPluginOptions } from "../types-61f3KMtI.js";
|
|
2
2
|
//#region src/cli/plugin.d.ts
|
|
3
3
|
/** Any object: Next's `NextConfig` is an interface, so no index signature. */
|
|
4
4
|
type NextConfigLike = object;
|
package/dist/next/plugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as describeError } from "../errors-BhRkoNS7.js";
|
|
2
|
-
import { n as createCollectScheduler, r as report, t as collectOnce } from "../watch-
|
|
2
|
+
import { n as createCollectScheduler, r as report, t as collectOnce } from "../watch-CJKYQYNb.js";
|
|
3
3
|
//#region src/cli/plugin.ts
|
|
4
4
|
const PHASE_BUILD = "phase-production-build";
|
|
5
5
|
const PHASE_DEV = "phase-development-server";
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary,
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, br as Principal } from "../policy-types-DU389Elz.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
4
|
-
import { f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, r as Guard, s as ScopeGuard, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-
|
|
5
|
-
import { t as ServerAdapterOptions } from "../bind-
|
|
3
|
+
import { a as PermDock } from "../permdock-DV3opaI3.js";
|
|
4
|
+
import { f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, r as Guard, s as ScopeGuard, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-C4q8_8MM.js";
|
|
5
|
+
import { t as ServerAdapterOptions } from "../bind-CTj4dHc1.js";
|
|
6
6
|
import { i as toRequest, n as isServerResponse, r as sendResponse, t as NodeRequest } from "../http-B_LphE5Y.js";
|
|
7
7
|
import { IncomingMessage, ServerResponse } from "node:http";
|
|
8
8
|
//#region src/node/create.d.ts
|
package/dist/node/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-Bj5xw0EM.js";
|
|
2
|
-
import { r as bindKernel } from "../bind-
|
|
2
|
+
import { r as bindKernel } from "../bind-LQ6zbARV.js";
|
|
3
3
|
import { n as sendResponse, r as toRequest, t as isServerResponse } from "../http-DH94eh6f.js";
|
|
4
4
|
//#region src/node/create.ts
|
|
5
5
|
const nodeRequest = (req) => req;
|