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
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as Policy, G as CredentialVerifier, N as PolicyVocabulary, On as ApproverInput, Q as Intent, Sr as Subject, Tt as SupportSession, br as Principal, cn as AuthEvent, er as DeniedDecision, it as MembershipSource, jt as ApiKeyPrincipal, qt as Instant } from "../policy-types-DU389Elz.js";
|
|
2
2
|
import { E as PermissionTree, w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
3
|
import { i as OperationEffect } from "../operations-BMPx7HyO.js";
|
|
4
|
-
import { i as ApprovalPolicySource } from "../approval-policies-
|
|
5
|
-
import { M as PermissionCheck, N as PermissionState, T as InstanceCache, _ as PrincipalSource, a as PermDock, h as PrincipalIdentity, o as PermDockOptions } from "../permdock-
|
|
6
|
-
import { m as ApprovalStore } from "../types-
|
|
7
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
8
|
-
import { n as SubjectCache, s as VersionCache } from "../subject-cache-
|
|
9
|
-
import { c as AccessReviewStore } from "../types-
|
|
10
|
-
import { r as SupabaseRpcCaller } from "../postgrest-
|
|
4
|
+
import { i as ApprovalPolicySource } from "../approval-policies-BiXMlYBu.js";
|
|
5
|
+
import { M as PermissionCheck, N as PermissionState, T as InstanceCache, _ as PrincipalSource, a as PermDock, h as PrincipalIdentity, o as PermDockOptions } from "../permdock-DV3opaI3.js";
|
|
6
|
+
import { m as ApprovalStore } from "../types-X40XNxRP.js";
|
|
7
|
+
import { t as InstanceOptions } from "../instance-options-DhQVCuhT.js";
|
|
8
|
+
import { n as SubjectCache, s as VersionCache } from "../subject-cache-TY2tw-k9.js";
|
|
9
|
+
import { c as AccessReviewStore } from "../types-BsqLNNvG.js";
|
|
10
|
+
import { r as SupabaseRpcCaller } from "../postgrest-3dE9SGx9.js";
|
|
11
11
|
import { a as CatalogDocument } from "../types-DAyp592k.js";
|
|
12
|
-
import { A as SupabaseSubjectOptions, C as SupabasePrincipal, N as SupabaseSuspension, O as SupabaseSessionLike, s as SqlMembershipSource } from "../sources-
|
|
12
|
+
import { A as SupabaseSubjectOptions, C as SupabasePrincipal, N as SupabaseSuspension, O as SupabaseSessionLike, s as SqlMembershipSource } from "../sources-2virTxHt.js";
|
|
13
13
|
import { t as SqlQuery } from "../sql-B80DFdpG.js";
|
|
14
|
-
import { c as LinkPolicy, o as CapabilityPrincipal, t as Capability } from "../capability-
|
|
14
|
+
import { c as LinkPolicy, o as CapabilityPrincipal, t as Capability } from "../capability-DqCyFGip.js";
|
|
15
15
|
import { AccessBucketPolicy, AccessTopicPolicy, AuthorizationHooks, AuthorizationProvider, AuthorizationRequest, Authorizer, BlockTables, CredentialProvider, SupportAuthorize, SupportAuthorizeInput, ToolDecision, ToolRef } from "better-supabase/contract";
|
|
16
|
+
import { AuthSession, DelegationRef } from "better-supabase/server";
|
|
16
17
|
import { EntitlementClaimOptions } from "better-supabase/blocks/entitlements";
|
|
17
|
-
import { AuthSession } from "better-supabase/server";
|
|
18
18
|
import { ApiKey, ApiKeyClaimsOptions, ApiKeys } from "better-supabase/blocks/api-keys";
|
|
19
19
|
import { AuthorizeHookOptions, ProtectWebHandlerOptions } from "better-supabase/workflow-sdk";
|
|
20
20
|
//#region src/better-supabase/access-reviews.d.ts
|
|
@@ -128,7 +128,14 @@ type BlockApprovalTenantPolicy = {
|
|
|
128
128
|
readonly mode: "confirm" | "authorize";
|
|
129
129
|
readonly steps: readonly {
|
|
130
130
|
readonly approvers: BlockApprovalApprovers;
|
|
131
|
-
readonly required: number
|
|
131
|
+
readonly required: number;
|
|
132
|
+
/** Every holder decides; `required` is 0 then. */
|
|
133
|
+
readonly all?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* An interval after which `escalateTo` may decide; PermDock has no
|
|
136
|
+
* counterpart.
|
|
137
|
+
*/
|
|
138
|
+
readonly escalateAfter?: string;
|
|
132
139
|
}[];
|
|
133
140
|
readonly selfApproval: boolean;
|
|
134
141
|
readonly expiresIn?: string;
|
|
@@ -139,15 +146,18 @@ type BlockApprovalTenantPolicy = {
|
|
|
139
146
|
* `better-supabase/blocks/approvals`.
|
|
140
147
|
*/
|
|
141
148
|
type BlockApprovalsClient<I extends BlockInstant> = {
|
|
142
|
-
readonly request: (
|
|
143
|
-
readonly
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
readonly
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
readonly request: (args: {
|
|
150
|
+
readonly subject: {
|
|
151
|
+
readonly type: string;
|
|
152
|
+
readonly id: string;
|
|
153
|
+
};
|
|
154
|
+
readonly input: {
|
|
155
|
+
readonly action: string;
|
|
156
|
+
readonly reason?: string;
|
|
157
|
+
readonly payload?: Readonly<Record<string, unknown>>;
|
|
158
|
+
readonly fingerprint?: string;
|
|
159
|
+
readonly tenantless?: boolean;
|
|
160
|
+
};
|
|
151
161
|
}) => BlockResult<BlockApprovalRecord<I>>;
|
|
152
162
|
readonly list: (options?: {
|
|
153
163
|
readonly status?: BlockStatus | null;
|
|
@@ -155,11 +165,16 @@ type BlockApprovalsClient<I extends BlockInstant> = {
|
|
|
155
165
|
readonly before?: I;
|
|
156
166
|
readonly tenantless?: boolean;
|
|
157
167
|
}) => BlockResult<readonly BlockApprovalRecord<I>[]>;
|
|
158
|
-
readonly consume: (
|
|
168
|
+
readonly consume: (args: {
|
|
169
|
+
readonly id: string;
|
|
170
|
+
readonly fingerprint?: string;
|
|
171
|
+
}) => BlockResult<BlockApprovalRecord<I>>;
|
|
159
172
|
readonly approve?: BlockDecide<I>;
|
|
160
173
|
readonly reject?: BlockDecide<I>;
|
|
161
174
|
};
|
|
162
|
-
type BlockDecide<I extends BlockInstant> = (
|
|
175
|
+
type BlockDecide<I extends BlockInstant> = (args: {
|
|
176
|
+
readonly id: string;
|
|
177
|
+
readonly comment?: string;
|
|
163
178
|
readonly decidedBy?: string;
|
|
164
179
|
}) => BlockResult<BlockApprovalRecord<I>>;
|
|
165
180
|
/** The call `blockApprovalPolicySource` makes on the approvals block. */
|
|
@@ -566,8 +581,18 @@ export declare function supportPolicy<V extends PolicyVocabulary = PolicyVocabul
|
|
|
566
581
|
//#region src/better-supabase/hooks.d.ts
|
|
567
582
|
type Maybe$1<T> = T | null | undefined | Promise<T | null | undefined>;
|
|
568
583
|
type Claims = Readonly<Record<string, unknown>>;
|
|
584
|
+
type DelegationHook = {
|
|
585
|
+
readonly permissions?: (ref: DelegationRef) => readonly string[] | Promise<readonly string[]>;
|
|
586
|
+
};
|
|
569
587
|
type AuthorizationHooksBase<V extends PolicyVocabulary> = {
|
|
570
588
|
readonly policy: Policy<unknown, Principal, V>;
|
|
589
|
+
/**
|
|
590
|
+
* Installs `delegation`, which maps a token's OAuth scopes to permission
|
|
591
|
+
* keys. `true` uses the policy's scopes and `oauthScopes`; an object's
|
|
592
|
+
* `permissions` replaces that mapping. Without it the hooks set no
|
|
593
|
+
* `delegation` and better-supabase grants a delegated token nothing.
|
|
594
|
+
*/
|
|
595
|
+
readonly delegation?: true | DelegationHook;
|
|
571
596
|
/**
|
|
572
597
|
* The app's `permdockFor` resolver, shared with `authorizer({ permdockFor })`
|
|
573
598
|
* so a hook reuses the instances the checks built. It holds `subject`,
|
|
@@ -635,8 +660,8 @@ type ClaimsHooks<V extends PolicyVocabulary> = {
|
|
|
635
660
|
};
|
|
636
661
|
/**
|
|
637
662
|
* With `claims` the hooks set `automation`, `support` and `tickets`; without it
|
|
638
|
-
* only `sessionTags`, `
|
|
639
|
-
* and passing `service`, `support` or `tickets` is a type error.
|
|
663
|
+
* only `sessionTags`, `approverOf`, `identities`, `delivery` and the opt-in
|
|
664
|
+
* `delegation`, and passing `service`, `support` or `tickets` is a type error.
|
|
640
665
|
*/
|
|
641
666
|
type AuthorizationHooksOptions<V extends PolicyVocabulary = PolicyVocabulary> = (AuthorizationHooksBase<V> & ClaimsHooks<V>) | (AuthorizationHooksBase<V> & {
|
|
642
667
|
readonly claims?: undefined;
|
|
@@ -649,12 +674,14 @@ type AuthorizationHooksOptions<V extends PolicyVocabulary = PolicyVocabulary> =
|
|
|
649
674
|
* authorization })`), decided by `policy`. Every hook builds the principal's
|
|
650
675
|
* instance from the claims `claims` loads now, never from the request, and
|
|
651
676
|
* fails closed: a throw, an unknown key and `approval-required` refuse.
|
|
652
|
-
* `
|
|
653
|
-
*
|
|
654
|
-
*
|
|
655
|
-
*
|
|
656
|
-
*
|
|
657
|
-
* `
|
|
677
|
+
* `sessionTags` (`snapshotTag(userId)`, so `evictSession` and sign-out clear
|
|
678
|
+
* PermDock snapshots) is always set, so `authorizationHooks({ policy })` is the
|
|
679
|
+
* session-tags-only form; `delegation` only with `delegation: true` or an
|
|
680
|
+
* object; `automation`, `support` and `tickets` only with `claims`;
|
|
681
|
+
* `identities`, `delivery` and `approverOf` only with the options they read.
|
|
682
|
+
* `delegation.permissions` maps each scope to the keys whose `.scope` it is,
|
|
683
|
+
* was renamed from, or that a policy `oauthScopes` entry covers, and reads no
|
|
684
|
+
* `authorization_details`.
|
|
658
685
|
*/
|
|
659
686
|
export declare function authorizationHooks<V extends PolicyVocabulary = PolicyVocabulary>(options: AuthorizationHooksOptions<V>): AuthorizationHooks;
|
|
660
687
|
//#endregion
|
|
@@ -724,14 +751,10 @@ type AuthorizationProviderOptions = {
|
|
|
724
751
|
readonly personas?: readonly ProviderPersona[];
|
|
725
752
|
/**
|
|
726
753
|
* Names `permdock_subject()` as `functions.subject`, so a bootstrap seeds the
|
|
727
|
-
* provider subject.
|
|
728
|
-
* the compatibility table); older conformance kits reject it.
|
|
754
|
+
* provider subject.
|
|
729
755
|
*/
|
|
730
756
|
readonly subject?: boolean;
|
|
731
|
-
/**
|
|
732
|
-
* Fills `platformRoles` from `rls.roles`. Needs a better-supabase release
|
|
733
|
-
* whose config schema knows the field; older ones reject it.
|
|
734
|
-
*/
|
|
757
|
+
/** Fills `platformRoles` from `rls.roles`. */
|
|
735
758
|
readonly platformRoles?: boolean;
|
|
736
759
|
};
|
|
737
760
|
/** One `personas` entry of better-supabase's `AuthorizationProvider`. */
|
|
@@ -1171,7 +1194,9 @@ type ShareLinkRow = {
|
|
|
1171
1194
|
};
|
|
1172
1195
|
/** better-supabase's `ShareLinks`, or anything with its `resolve`. */
|
|
1173
1196
|
type ShareLinkResolver = {
|
|
1174
|
-
resolve: (
|
|
1197
|
+
resolve: (input: {
|
|
1198
|
+
readonly token: string;
|
|
1199
|
+
}) => PromiseLike<{
|
|
1175
1200
|
readonly ok: true;
|
|
1176
1201
|
readonly data: ShareLinkRow | null;
|
|
1177
1202
|
} | {
|
|
@@ -8,23 +8,23 @@ import { r as isId, t as idList } from "../ids-DzhJaCUj.js";
|
|
|
8
8
|
import { d as scopeList } from "../scopes-gdH__vDZ.js";
|
|
9
9
|
import { t as canonicalJson } from "../canonical-json-DwilZ1iB.js";
|
|
10
10
|
import { r as sha256Digest } from "../sha256-C-4WXKIu.js";
|
|
11
|
-
import { a as delegatedScopeMap, s as scopesReaching } from "../permdock-
|
|
11
|
+
import { a as delegatedScopeMap, s as scopesReaching } from "../permdock-B3zE16To.js";
|
|
12
12
|
import { t as loadPrincipal } from "../principal-source-C6N60GtM.js";
|
|
13
13
|
import { t as decideSupportSession } from "../support-session-BGeEYDSq.js";
|
|
14
14
|
import { n as asApprover } from "../approval-normalize-KfhzpD93.js";
|
|
15
15
|
import { n as isOperationEffect } from "../operations-Bm9HFecz.js";
|
|
16
16
|
import { r as isSubject, t as anonymousSubject } from "../subject-C7RddW0G.js";
|
|
17
|
-
import { I as decisionTenant } from "../evaluate-
|
|
17
|
+
import { I as decisionTenant } from "../evaluate-BQ2nWOki.js";
|
|
18
18
|
import { n as readSubjectRecord } from "../subject-cache-BT1fGuea.js";
|
|
19
19
|
import { a as permissionStates } from "../checks-fyDOhcz0.js";
|
|
20
|
-
import { n as appOf } from "../app-
|
|
20
|
+
import { n as appOf } from "../app-J9PE1LNm.js";
|
|
21
21
|
import { i as linkPolicyViolation, n as capabilityOf, r as capabilitySubject } from "../capability-CenWwTMR.js";
|
|
22
|
-
import { r as credentialSubject, s as parseCredential } from "../credential-
|
|
22
|
+
import { r as credentialSubject, s as parseCredential } from "../credential-BMsbcaeP.js";
|
|
23
23
|
import { s as ApprovalError } from "../types-CcUXciSj.js";
|
|
24
24
|
import { t as applyApprovalVerdict } from "../store-DXO0aVgf.js";
|
|
25
25
|
import { t as instanceOptions } from "../instance-options-URVwqpMW.js";
|
|
26
|
-
import { t as versionSources } from "../version-sources-
|
|
27
|
-
import { t as buildInstance } from "../build-instance-
|
|
26
|
+
import { t as versionSources } from "../version-sources-BRb9ZteH.js";
|
|
27
|
+
import { t as buildInstance } from "../build-instance-Bq8wkJ4i.js";
|
|
28
28
|
import { n as NO_GRANT } from "../decision-CaG5_eNJ.js";
|
|
29
29
|
import { n as parseApprovalHeader } from "../approval-header-8QV6MU4H.js";
|
|
30
30
|
import { h as managerKeys, s as resumeDecision } from "../helpers-CO2hDpBU.js";
|
|
@@ -32,10 +32,10 @@ import { t as AccessReviewError } from "../errors-BDUwg2qC.js";
|
|
|
32
32
|
import { t as parseApprovalRequest } from "../parse-request-DOBVaeiQ.js";
|
|
33
33
|
import { i as snapshotTag } from "../snapshot-cache-B66h7FBK.js";
|
|
34
34
|
import { t as policyRowConditionKeys } from "../row-conditions-BAGHOmVq.js";
|
|
35
|
-
import { n as subscribersFor } from "../audience-
|
|
35
|
+
import { n as subscribersFor } from "../audience-DLoopY4q.js";
|
|
36
36
|
import { i as qualifySqlTable, l as sqlIdent, s as quoteSqlLiteral } from "../sql-0WjxIp9g.js";
|
|
37
37
|
import { o as junctionMembershipSource } from "../sources-C4vkzZJV.js";
|
|
38
|
-
import { a as callRpc, i as subjectFromSupabaseSession } from "../subject-
|
|
38
|
+
import { a as callRpc, i as subjectFromSupabaseSession } from "../subject-jG6o8eKo.js";
|
|
39
39
|
import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-BoCYBbQL.js";
|
|
40
40
|
import { t as parseCatalog } from "../parse-CORUNcCo.js";
|
|
41
41
|
import { n as activeTenantMismatch, t as activeOrganizationFrom } from "../active-tenant-DVee32-T.js";
|
|
@@ -268,15 +268,18 @@ function blockApprovalStore(approvals, options = {}) {
|
|
|
268
268
|
name: "better-supabase-approvals",
|
|
269
269
|
async create(request) {
|
|
270
270
|
await unwrap(approvals.request({
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
271
|
+
subject: {
|
|
272
|
+
type: request.resource.type,
|
|
273
|
+
id: request.resource.id ?? request.id
|
|
274
|
+
},
|
|
275
|
+
input: compact({
|
|
276
|
+
action: actionOf(request.permission),
|
|
277
|
+
reason: request.detail,
|
|
278
|
+
payload: { permdock: request },
|
|
279
|
+
fingerprint: request.fingerprint,
|
|
280
|
+
tenantless: tenantless && decisionTenant(request.subject, request.membership) === void 0 ? true : void 0
|
|
281
|
+
})
|
|
282
|
+
}), "request");
|
|
280
283
|
},
|
|
281
284
|
async get(token) {
|
|
282
285
|
return (await byToken(token))?.request ?? null;
|
|
@@ -291,7 +294,11 @@ function blockApprovalStore(approvals, options = {}) {
|
|
|
291
294
|
if (found === void 0) throw new ApprovalError("approval-not-found", "approval was not found");
|
|
292
295
|
applyApprovalVerdict(found.request, verdict);
|
|
293
296
|
const by = verdict.by.principal?.id;
|
|
294
|
-
const next = requestOf(await unwrap(decide(
|
|
297
|
+
const next = requestOf(await unwrap(decide(compact({
|
|
298
|
+
id: found.record.id,
|
|
299
|
+
comment: verdict.note,
|
|
300
|
+
decidedBy: by
|
|
301
|
+
})), verdict.status === "approved" ? "approve" : "reject"));
|
|
295
302
|
if (next === null) throw new ApprovalError("approval-not-found", "approval was not found");
|
|
296
303
|
return next;
|
|
297
304
|
},
|
|
@@ -312,7 +319,10 @@ function blockApprovalStore(approvals, options = {}) {
|
|
|
312
319
|
async consume(token) {
|
|
313
320
|
const found = await byToken(token);
|
|
314
321
|
if (found === void 0) return null;
|
|
315
|
-
const consumed = await approvals.consume(
|
|
322
|
+
const consumed = await approvals.consume(compact({
|
|
323
|
+
id: found.record.id,
|
|
324
|
+
fingerprint: found.request.fingerprint
|
|
325
|
+
}));
|
|
316
326
|
return consumed.ok ? requestOf(consumed.data) : null;
|
|
317
327
|
}
|
|
318
328
|
});
|
|
@@ -362,9 +372,10 @@ function stageApprovers(approvers, roleScope) {
|
|
|
362
372
|
};
|
|
363
373
|
}
|
|
364
374
|
function quorumOf(step) {
|
|
365
|
-
if (step.
|
|
375
|
+
if (step.escalateAfter !== void 0) throw new TypeError("PermDock: an approval policy step with escalateAfter is not supported; escalation is decided by the block");
|
|
376
|
+
if (step.all !== true) return step.required;
|
|
366
377
|
const { users = [], permission, role, team, manager } = step.approvers;
|
|
367
|
-
if (users.length === 0 || permission !== void 0 || role !== void 0 || team !== void 0 || manager === true) throw new TypeError("PermDock: an approval policy step with
|
|
378
|
+
if (users.length === 0 || permission !== void 0 || role !== void 0 || team !== void 0 || manager === true) throw new TypeError("PermDock: an approval policy step with `all` needs users and no other approvers, since the block counts other holders when a request is filed");
|
|
368
379
|
return users.length;
|
|
369
380
|
}
|
|
370
381
|
const NUMERIC = /^-?\d+(?:\.\d+)?$/u;
|
|
@@ -1179,12 +1190,14 @@ function matches(approvers, userId, permdock, managed) {
|
|
|
1179
1190
|
* authorization })`), decided by `policy`. Every hook builds the principal's
|
|
1180
1191
|
* instance from the claims `claims` loads now, never from the request, and
|
|
1181
1192
|
* fails closed: a throw, an unknown key and `approval-required` refuse.
|
|
1182
|
-
* `
|
|
1183
|
-
*
|
|
1184
|
-
*
|
|
1185
|
-
*
|
|
1186
|
-
*
|
|
1187
|
-
* `
|
|
1193
|
+
* `sessionTags` (`snapshotTag(userId)`, so `evictSession` and sign-out clear
|
|
1194
|
+
* PermDock snapshots) is always set, so `authorizationHooks({ policy })` is the
|
|
1195
|
+
* session-tags-only form; `delegation` only with `delegation: true` or an
|
|
1196
|
+
* object; `automation`, `support` and `tickets` only with `claims`;
|
|
1197
|
+
* `identities`, `delivery` and `approverOf` only with the options they read.
|
|
1198
|
+
* `delegation.permissions` maps each scope to the keys whose `.scope` it is,
|
|
1199
|
+
* was renamed from, or that a policy `oauthScopes` entry covers, and reads no
|
|
1200
|
+
* `authorization_details`.
|
|
1188
1201
|
*/
|
|
1189
1202
|
function authorizationHooks(options) {
|
|
1190
1203
|
const { policy } = options;
|
|
@@ -1228,7 +1241,13 @@ function authorizationHooks(options) {
|
|
|
1228
1241
|
}
|
|
1229
1242
|
}
|
|
1230
1243
|
};
|
|
1244
|
+
const given = options.delegation;
|
|
1245
|
+
const override = given === void 0 || given === true ? void 0 : given;
|
|
1231
1246
|
const delegation = { permissions(ref) {
|
|
1247
|
+
if (override?.permissions !== void 0) {
|
|
1248
|
+
const own = override.permissions;
|
|
1249
|
+
return Promise.resolve().then(() => own(ref)).catch(() => []);
|
|
1250
|
+
}
|
|
1232
1251
|
try {
|
|
1233
1252
|
const scopes = new Set(ref.scopes);
|
|
1234
1253
|
return listPermissions(policy.permissions).filter((permission) => scopesReaching(policy, permission).some((scope) => scopes.has(scope))).map((permission) => permission.key);
|
|
@@ -1240,11 +1259,11 @@ function authorizationHooks(options) {
|
|
|
1240
1259
|
const approverOf = approvers === void 0 ? void 0 : async (approver, request) => {
|
|
1241
1260
|
try {
|
|
1242
1261
|
if (approver.userId === request.requester || !Object.hasOwn(approvers, request.kind)) return false;
|
|
1243
|
-
const
|
|
1244
|
-
if (
|
|
1262
|
+
const entry = approvers[request.kind];
|
|
1263
|
+
if (entry === void 0 || approver.claims["sub"] !== approver.userId) return false;
|
|
1245
1264
|
const permdock = await instance(approver.claims, request.tenant);
|
|
1246
1265
|
if (permdock === null) return false;
|
|
1247
|
-
const wanted = asApprover(
|
|
1266
|
+
const wanted = asApprover(entry);
|
|
1248
1267
|
const managed = request.requester === void 0 ? [] : await managerKeys(approverLeaves(wanted), request.requester, approver.userId, compact({ relations: resolve.sources().relations }));
|
|
1249
1268
|
return matches(wanted, approver.userId, permdock, new Set(managed));
|
|
1250
1269
|
} catch {
|
|
@@ -1278,7 +1297,7 @@ function authorizationHooks(options) {
|
|
|
1278
1297
|
name: "PermDock",
|
|
1279
1298
|
sessionTags: (userId) => [snapshotTag(userId)],
|
|
1280
1299
|
...loadClaims === void 0 ? {} : { automation: Object.freeze(automation) },
|
|
1281
|
-
delegation: Object.freeze(delegation),
|
|
1300
|
+
...given === void 0 ? {} : { delegation: Object.freeze(delegation) },
|
|
1282
1301
|
...approverOf === void 0 ? {} : { approverOf },
|
|
1283
1302
|
...identities === void 0 ? {} : { identities: Object.freeze(identities) },
|
|
1284
1303
|
...fanOut === void 0 ? {} : { delivery: Object.freeze({
|
|
@@ -2002,12 +2021,10 @@ function claimsOf(request) {
|
|
|
2002
2021
|
* used only when it names the claims' user and carries a version.
|
|
2003
2022
|
*/
|
|
2004
2023
|
function seedOf(runtime, claims) {
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
subject
|
|
2010
|
-
} : void 0;
|
|
2024
|
+
const seed = runtime?.seed;
|
|
2025
|
+
if (seed === void 0 || !isRecord(claims)) return;
|
|
2026
|
+
const { userId, version } = seed;
|
|
2027
|
+
return typeof userId === "string" && userId !== "" && userId === claims["sub"] && typeof version === "number" && Number.isSafeInteger(version) && version >= 0 ? seed : void 0;
|
|
2011
2028
|
}
|
|
2012
2029
|
const tenantOf = (request) => {
|
|
2013
2030
|
const { tenant } = request.context;
|
|
@@ -2526,7 +2543,7 @@ async function subjectFromShareLink(token, options) {
|
|
|
2526
2543
|
let row;
|
|
2527
2544
|
let subject;
|
|
2528
2545
|
try {
|
|
2529
|
-
const resolved = await options.shareLinks.resolve(token);
|
|
2546
|
+
const resolved = await options.shareLinks.resolve({ token });
|
|
2530
2547
|
if (!resolved.ok) return deny("source-threw", "resolve-failed");
|
|
2531
2548
|
if (resolved.data === null) return deny("invalid-token", "share-link-unknown");
|
|
2532
2549
|
const parsed = parseRow(resolved.data);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Q as Intent,
|
|
2
|
-
import { m as ApprovalStore } from "./types-
|
|
3
|
-
import { t as InstanceOptions } from "./instance-options-
|
|
1
|
+
import { Q as Intent, Sr as Subject } from "./policy-types-DU389Elz.js";
|
|
2
|
+
import { m as ApprovalStore } from "./types-X40XNxRP.js";
|
|
3
|
+
import { t as InstanceOptions } from "./instance-options-DhQVCuhT.js";
|
|
4
4
|
import { t as RequestContext } from "./request-context-C2_1lchh.js";
|
|
5
|
-
import { n as PermDockWrap } from "./wrap-
|
|
6
|
-
import { o as OtelWrap } from "./types-
|
|
7
|
-
import { r as PdpFactory } from "./types-
|
|
8
|
-
import { S as TenantOption, _ as WebBotAuthVerifier, t as DeniedResponse } from "./server-types-
|
|
5
|
+
import { n as PermDockWrap } from "./wrap-Bq9fHwuT.js";
|
|
6
|
+
import { o as OtelWrap } from "./types-BWjNPQkS.js";
|
|
7
|
+
import { r as PdpFactory } from "./types-CH67RMvL.js";
|
|
8
|
+
import { S as TenantOption, _ as WebBotAuthVerifier, t as DeniedResponse } from "./server-types-C4q8_8MM.js";
|
|
9
9
|
//#region src/server/bind.d.ts
|
|
10
10
|
/**
|
|
11
11
|
* The options of every framework adapter; `TContext` is what its callbacks
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { r as withApp } from "./app-
|
|
2
|
+
import { r as withApp } from "./app-J9PE1LNm.js";
|
|
3
3
|
import { t as composeWraps } from "./wrap-C5PWzgkq.js";
|
|
4
4
|
import { t as instanceOptions } from "./instance-options-URVwqpMW.js";
|
|
5
5
|
import { n as tenantScope } from "./adapter-context-OHikyRqV.js";
|
|
6
|
-
import { t as createPermDock } from "./create-
|
|
6
|
+
import { t as createPermDock } from "./create-D7D94oNh.js";
|
|
7
7
|
import { h as invalidSignatureResponse } from "./evaluations-Bj5xw0EM.js";
|
|
8
8
|
//#region src/server/bind.ts
|
|
9
9
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { t as getPermDock } from "./permdock-
|
|
2
|
+
import { t as getPermDock } from "./permdock-B3zE16To.js";
|
|
3
3
|
import { t as instanceOptions } from "./instance-options-URVwqpMW.js";
|
|
4
4
|
//#region src/core/build-instance.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _t as TokenSigner,
|
|
1
|
+
import { _t as TokenSigner, br as Principal, qt as Instant } from "./policy-types-DU389Elz.js";
|
|
2
2
|
import { E as PermissionTree, w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
3
|
//#region src/core/capability.d.ts
|
|
4
4
|
/**
|
|
@@ -16,7 +16,7 @@ const casbinImport = defineLeaf({
|
|
|
16
16
|
...outFlag
|
|
17
17
|
},
|
|
18
18
|
async run(ctx, { flags }) {
|
|
19
|
-
const { runCasbinImport } = await import("./casbin-
|
|
19
|
+
const { runCasbinImport } = await import("./casbin-XFqehd6I.js");
|
|
20
20
|
return runCasbinImport({
|
|
21
21
|
cwd: ctx.cwd,
|
|
22
22
|
model: given(flags.model),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as nonEmptyOr } from "./output-
|
|
1
|
+
import { a as nonEmptyOr } from "./output-CuJfGWo6.js";
|
|
2
2
|
import { t as applyFiles } from "./files-CfiRtQ-m.js";
|
|
3
3
|
import { n as isIdentifier, t as emitPolicyModule } from "./policy-module-xym9fnSq.js";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
package/dist/catalog/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as Policy,
|
|
2
|
-
import { c as checkHostedGrant, n as HostedGrantCheck, o as PolicyDocument } from "../hosted-
|
|
1
|
+
import { D as Policy, br as Principal, s as ApprovalRequirement } from "../policy-types-DU389Elz.js";
|
|
2
|
+
import { c as checkHostedGrant, n as HostedGrantCheck, o as PolicyDocument } from "../hosted-D5StFpKa.js";
|
|
3
3
|
import { a as CatalogDocument, c as CatalogOperation, d as CatalogRole, f as CatalogScope, h as CatalogValidity, i as CatalogDelegation, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, o as CatalogGrant, p as CatalogSupportAccess, r as CatalogBreakGlass, s as CatalogOAuthScope, t as CatalogActivation, u as CatalogResource } from "../types-DAyp592k.js";
|
|
4
|
-
import { a as CatalogFinding, i as CatalogEventData } from "../sink-
|
|
5
|
-
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
4
|
+
import { a as CatalogFinding, i as CatalogEventData } from "../sink-C3KDccl9.js";
|
|
5
|
+
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-Db651nih.js";
|
|
6
6
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
7
7
|
//#region src/catalog/drift.d.ts
|
|
8
8
|
/**
|
package/dist/catalog/index.js
CHANGED
|
@@ -3,12 +3,12 @@ import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
|
3
3
|
import { a as getResource, n as findPermission } from "../permission-registry-B8tYxPIt.js";
|
|
4
4
|
import { d as isSelfParented } from "../resource-relations-8-pCScBO.js";
|
|
5
5
|
import { o as listPlans, r as findRole } from "../vocabulary-BuYFWeCU.js";
|
|
6
|
-
import { n as declaredRoleNames } from "../policy-
|
|
7
|
-
import { i as hostedGrantDrops, n as codeApprovals, r as declaredGrantee, t as checkHostedGrant } from "../hosted-
|
|
6
|
+
import { n as declaredRoleNames } from "../policy-DnNOTENd.js";
|
|
7
|
+
import { i as hostedGrantDrops, n as codeApprovals, r as declaredGrantee, t as checkHostedGrant } from "../hosted-CQW_YNx7.js";
|
|
8
8
|
import { n as rowConditionKeys, t as parseCatalog } from "../parse-CORUNcCo.js";
|
|
9
9
|
import { t as operationFindings } from "../operation-findings-CVwJHEu_.js";
|
|
10
|
-
import { n as resourceSchemaFromJson, t as policyFromCatalog } from "../policy-from-catalog-
|
|
11
|
-
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
10
|
+
import { n as resourceSchemaFromJson, t as policyFromCatalog } from "../policy-from-catalog-Z0hvSffr.js";
|
|
11
|
+
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-UZyQinrL.js";
|
|
12
12
|
//#region src/catalog/drift.ts
|
|
13
13
|
/**
|
|
14
14
|
* The finding a drop reason becomes; `null` for a reason the catalog did not
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { r as listSourceFiles, t as defaultSrcPath } from "./files-BSjrtIHw.js";
|
|
3
|
-
import { a as catalogSchemaDocument, n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, s as formatCatalogMarkdown, t as buildCatalog } from "./catalog-doc-
|
|
3
|
+
import { a as catalogSchemaDocument, n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, s as formatCatalogMarkdown, t as buildCatalog } from "./catalog-doc-DnQDviXY.js";
|
|
4
4
|
import { a as loadModule, i as loadConfiguredPolicy, r as leavesOf, s as pickNamed, t as asPermissionTree } from "./load-C4p4VgwR.js";
|
|
5
5
|
import { t as loadConfiguredOperations } from "./catalog-operations-Do1eD-Rt.js";
|
|
6
|
-
import { i as scanSources, r as runCollect } from "./collect-
|
|
6
|
+
import { i as scanSources, r as runCollect } from "./collect-BG-SXFQv.js";
|
|
7
7
|
import { n as fileSummary, t as applyFiles } from "./files-CfiRtQ-m.js";
|
|
8
8
|
import { existsSync, readFileSync } from "node:fs";
|
|
9
9
|
import { resolve } from "node:path";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as catalogFile, n as runCatalog } from "./catalog-B1MAmRQI.js";
|
|
@@ -30,7 +30,7 @@ const catalog = defineLeaf({
|
|
|
30
30
|
...checkFlag
|
|
31
31
|
},
|
|
32
32
|
async run(ctx, { flags }) {
|
|
33
|
-
const { catalogFile, runCatalog } = await import("./catalog-
|
|
33
|
+
const { catalogFile, runCatalog } = await import("./catalog-BCVIH7kq.js");
|
|
34
34
|
const result = await runCatalog({
|
|
35
35
|
cwd: ctx.cwd,
|
|
36
36
|
config: ctx.config,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { i as dateAt, p as nowSeconds } from "./time-nR1JesoH.js";
|
|
4
|
-
import { u as policyDocumentFromClaims } from "./hosted-
|
|
4
|
+
import { u as policyDocumentFromClaims } from "./hosted-CQW_YNx7.js";
|
|
5
5
|
import { h as toCloudEvent, l as isAbsoluteUri } from "./sink-D9_vh372.js";
|
|
6
6
|
import { n as parseCatalogEventData, t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
|
|
7
7
|
import { l as isApprovalErrorCode, s as ApprovalError, t as APPROVAL_HEADER } from "./types-CcUXciSj.js";
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ChatCommandResult, c as createPermDock, d as SubjectFromChatOptions, f as isChatAuthor, i as ChatCommandContext, l as ChatAuthor, n as ChatActionResult, o as ChatPermDock, p as subjectFromChat, r as ChatCommand, s as ChatPermDockOptions, t as ChatAction, u as ChatPrincipal } from "../create-
|
|
1
|
+
import { a as ChatCommandResult, c as createPermDock, d as SubjectFromChatOptions, f as isChatAuthor, i as ChatCommandContext, l as ChatAuthor, n as ChatActionResult, o as ChatPermDock, p as subjectFromChat, r as ChatCommand, s as ChatPermDockOptions, t as ChatAction, u as ChatPrincipal } from "../create-CYj0cjTu.js";
|
|
2
2
|
export { type ChatAction, type ChatActionResult, type ChatAuthor, type ChatCommand, type ChatCommandContext, type ChatCommandResult, type ChatPermDock, type ChatPermDockOptions, type ChatPrincipal, type SubjectFromChatOptions, createPermDock, isChatAuthor, subjectFromChat };
|
package/dist/chat/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
3
3
|
import { f as nowMillis } from "../time-nR1JesoH.js";
|
|
4
|
-
import { t as getPermDock } from "../permdock-
|
|
4
|
+
import { t as getPermDock } from "../permdock-B3zE16To.js";
|
|
5
5
|
import { n as loadPrincipalByIdentity } from "../principal-source-C6N60GtM.js";
|
|
6
|
-
import { r as withApp } from "../app-
|
|
6
|
+
import { r as withApp } from "../app-J9PE1LNm.js";
|
|
7
7
|
import { c as isApprovalError } from "../types-CcUXciSj.js";
|
|
8
8
|
import { a as requestApproval, o as resolveApproval, s as resumeDecision } from "../helpers-CO2hDpBU.js";
|
|
9
9
|
import { t as approvalPrompt } from "../approval-prompt-B8hQY69x.js";
|
package/dist/chat-sdk/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-
|
|
2
|
-
import { l as ChatAuthor, n as ChatActionResult, o as ChatPermDock } from "../create-
|
|
3
|
-
import { n as ChatTransport } from "../types-
|
|
1
|
+
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-j5PTItiy.js";
|
|
2
|
+
import { l as ChatAuthor, n as ChatActionResult, o as ChatPermDock } from "../create-CYj0cjTu.js";
|
|
3
|
+
import { n as ChatTransport } from "../types-BIvkpVoc.js";
|
|
4
4
|
import { ActionEvent, Author, CardElement } from "chat";
|
|
5
5
|
//#region src/chat-sdk/author.d.ts
|
|
6
6
|
type ChatSdkAuthorOptions = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary,
|
|
2
|
-
import { a as PermDock } from "../permdock-
|
|
3
|
-
import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, br as Principal } from "../policy-types-DU389Elz.js";
|
|
2
|
+
import { a as PermDock } from "../permdock-DV3opaI3.js";
|
|
3
|
+
import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-C5IQw_-i.js";
|
|
4
4
|
//#region src/claude-agent/create.d.ts
|
|
5
5
|
/** Structural `McpServerProvenance` from `@anthropic-ai/claude-agent-sdk`. */
|
|
6
6
|
type ClaudeMcpServer = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
|
|
2
|
-
import { r as withApp } from "../app-
|
|
3
|
-
import { t as agentRuntime } from "../create-
|
|
2
|
+
import { r as withApp } from "../app-J9PE1LNm.js";
|
|
3
|
+
import { t as agentRuntime } from "../create-DaddhCIg.js";
|
|
4
4
|
//#region src/claude-agent/create.ts
|
|
5
5
|
const MCP_PREFIX = "mcp__";
|
|
6
6
|
function asInput(input) {
|
package/dist/clerk/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Sr as Subject, br as Principal, q as CustomRoleSource } from "../policy-types-DU389Elz.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
3
|
import { t as ClaimsMap } from "../claims-map-D1Pb5oRq.js";
|
|
4
|
-
import { s as RemotePdpCache } from "../types-
|
|
4
|
+
import { s as RemotePdpCache } from "../types-CH67RMvL.js";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
//#region src/clerk/types.d.ts
|
|
7
7
|
type ClerkPrincipal = Principal & {
|
package/dist/cli/bin.js
CHANGED
|
@@ -11,7 +11,7 @@ if (argv.length === 1 && (argv[0] === "--version" || argv[0] === "-v")) {
|
|
|
11
11
|
const [{ isCi }, { trapSignals }, { run }, { streamHasColors }] = await Promise.all([
|
|
12
12
|
import("../env-DJZrPjRi.js"),
|
|
13
13
|
import("../signals-B1vHR3fN.js"),
|
|
14
|
-
import("../run-
|
|
14
|
+
import("../run-CdGNonHf.js"),
|
|
15
15
|
import("../style-DblOtSga.js")
|
|
16
16
|
]);
|
|
17
17
|
const signals = trapSignals();
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as Policy } from "../policy-types-
|
|
1
|
+
import { D as Policy } from "../policy-types-DU389Elz.js";
|
|
2
2
|
import { E as PermissionTree } from "../vocabulary-DeZvUaTw.js";
|
|
3
3
|
import { o as OperationMap } from "../operations-BMPx7HyO.js";
|
|
4
4
|
import { a as CatalogDocument, d as CatalogRole, f as CatalogScope, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, p as CatalogSupportAccess, r as CatalogBreakGlass, t as CatalogActivation, u as CatalogResource } from "../types-DAyp592k.js";
|
|
5
|
-
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
6
|
-
import { _ as RlsSuspension, a as GenKind, c as RlsActiveRow, d as RlsDialect, f as RlsFunctionMapping, g as RlsSuspendedScope, h as RlsSuspendedMembership, i as GenConfig, l as RlsApiKeys, m as RlsMemberships, n as CliIo, o as PermDockConfig, p as RlsMembershipTable, r as CollectConfig, t as CatalogConfig, u as RlsConfig, v as RlsTarget, y as RunResult } from "../types-
|
|
7
|
-
import { o as ResourceNameOf, r as PermissionKeyOf, s as ScopeNameOf, t as ActionNameOf } from "../type-helpers-
|
|
5
|
+
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-Db651nih.js";
|
|
6
|
+
import { _ as RlsSuspension, a as GenKind, c as RlsActiveRow, d as RlsDialect, f as RlsFunctionMapping, g as RlsSuspendedScope, h as RlsSuspendedMembership, i as GenConfig, l as RlsApiKeys, m as RlsMemberships, n as CliIo, o as PermDockConfig, p as RlsMembershipTable, r as CollectConfig, t as CatalogConfig, u as RlsConfig, v as RlsTarget, y as RunResult } from "../types-61f3KMtI.js";
|
|
7
|
+
import { o as ResourceNameOf, r as PermissionKeyOf, s as ScopeNameOf, t as ActionNameOf } from "../type-helpers-tDoGEIsd.js";
|
|
8
8
|
//#region src/cli/catalog-path.d.ts
|
|
9
9
|
/**
|
|
10
10
|
* The absolute path `permdock collect` writes the catalog to: `collect.out`,
|
package/dist/cli/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as catalogPath } from "../catalog-path-CnI0XTFK.js";
|
|
2
|
-
import { t as defineConfig } from "../config-
|
|
3
|
-
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
2
|
+
import { t as defineConfig } from "../config-DC7aiuhP.js";
|
|
3
|
+
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-UZyQinrL.js";
|
|
4
4
|
import { c as parseGrantsMarker, l as parseHookMarker } from "../markers-BeHZ4x9Q.js";
|
|
5
|
-
import { t as run } from "../run-
|
|
5
|
+
import { t as run } from "../run-2GwcSago.js";
|
|
6
6
|
//#region src/cli/token-schemas.ts
|
|
7
7
|
const ID = {
|
|
8
8
|
type: "string",
|