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
package/dist/a2a/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as Policy,
|
|
1
|
+
import { D as Policy, br as Principal, fr as AuthorizationDetail } from "../policy-types-DU389Elz.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { m as ApprovalStore } from "../types-
|
|
4
|
-
import { a as ProblemDetails } from "../errors-
|
|
5
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
3
|
+
import { m as ApprovalStore } from "../types-X40XNxRP.js";
|
|
4
|
+
import { a as ProblemDetails } from "../errors-D_SnqcRn.js";
|
|
5
|
+
import { t as InstanceOptions } from "../instance-options-DhQVCuhT.js";
|
|
6
6
|
//#region src/a2a/types.d.ts
|
|
7
7
|
type A2aAuth = {
|
|
8
8
|
readonly clientId?: string;
|
package/dist/a2a/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
3
3
|
import { o as statusProblem } from "../problem-details-CLDgX1KV.js";
|
|
4
|
-
import { n as resourceRef } from "../resource-ref-CaS9yVPi.js";
|
|
5
4
|
import { t as canonicalJson } from "../canonical-json-DwilZ1iB.js";
|
|
5
|
+
import { n as resourceRef } from "../resource-ref-CaS9yVPi.js";
|
|
6
6
|
import { t as bytesToBase64Url } from "../sha256-C-4WXKIu.js";
|
|
7
|
-
import { i as challengeScope, o as hasScope, s as scopesReaching } from "../permdock-
|
|
7
|
+
import { i as challengeScope, o as hasScope, s as scopesReaching } from "../permdock-B3zE16To.js";
|
|
8
8
|
import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-ynga1EQy.js";
|
|
9
|
-
import { r as withApp } from "../app-
|
|
9
|
+
import { r as withApp } from "../app-J9PE1LNm.js";
|
|
10
10
|
import { t as instanceOptions } from "../instance-options-URVwqpMW.js";
|
|
11
11
|
import { p as wwwAuthenticate, r as bearerChallenge } from "../problem-CPB8kqk7.js";
|
|
12
|
-
import { n as createAgentKernel } from "../kernel-
|
|
12
|
+
import { n as createAgentKernel } from "../kernel-D9AxUqmz.js";
|
|
13
13
|
import { n as delegationFrom } from "../delegation-input-DcXhiMkf.js";
|
|
14
14
|
//#region src/a2a/create.ts
|
|
15
15
|
function firstScheme(options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as listSourceFiles } from "./files-BSjrtIHw.js";
|
|
2
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
2
|
+
import { t as DOCS_BASE } from "./manifest-9KSrH_1h.js";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { relative } from "node:path";
|
|
5
5
|
//#region src/cli/adoption-scan.ts
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-
|
|
2
|
-
import { a as createPermDock, c as ModelMap, d as StepUp, i as OperationVerdict, l as ToolBinding, n as AgentPermDockOptions, o as AgentAdapterOptions, r as GatewayOptions, s as DecideToolOptions, t as AgentPermDock, u as ToolMap } from "../create-
|
|
1
|
+
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-B6s29jcf.js";
|
|
2
|
+
import { a as createPermDock, c as ModelMap, d as StepUp, i as OperationVerdict, l as ToolBinding, n as AgentPermDockOptions, o as AgentAdapterOptions, r as GatewayOptions, s as DecideToolOptions, t as AgentPermDock, u as ToolMap } from "../create-C5IQw_-i.js";
|
|
3
3
|
export { type AgentAdapterOptions, type AgentPermDock, type AgentPermDockOptions, type DecideToolOptions, type DeniedText, type DeniedTextEvent, type GatewayOptions, type ModelMap, type OperationVerdict, type StepUp, type ToolBinding, type ToolMap, createPermDock };
|
package/dist/agent/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as createPermDock } from "../create-
|
|
1
|
+
export { n as createPermDock } from "../create-DaddhCIg.js";
|
package/dist/ai-sdk/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 { n as DeniedTextEvent, t as DeniedText } from "../denied-text-
|
|
4
|
-
import { d as StepUp, o as AgentAdapterOptions, t as AgentPermDock } from "../create-
|
|
3
|
+
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-B6s29jcf.js";
|
|
4
|
+
import { d as StepUp, o as AgentAdapterOptions, t as AgentPermDock } from "../create-C5IQw_-i.js";
|
|
5
5
|
//#region src/ai-sdk/create.d.ts
|
|
6
6
|
type AiSdkContext = {
|
|
7
7
|
readonly runtimeContext?: unknown;
|
package/dist/ai-sdk/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-ynga1EQy.js";
|
|
3
|
-
import { r as withApp } from "../app-
|
|
4
|
-
import { r as stepUpText, t as approvalTokenOf } from "../kernel-
|
|
5
|
-
import { t as agentRuntime } from "../create-
|
|
3
|
+
import { r as withApp } from "../app-J9PE1LNm.js";
|
|
4
|
+
import { r as stepUpText, t as approvalTokenOf } from "../kernel-D9AxUqmz.js";
|
|
5
|
+
import { t as agentRuntime } from "../create-DaddhCIg.js";
|
|
6
6
|
//#region src/ai-sdk/create.ts
|
|
7
7
|
const APPROVAL_STATUSES = /* @__PURE__ */ new Set([
|
|
8
8
|
"approved",
|
package/dist/app/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary,
|
|
2
|
-
import { a as PermDock, o as PermDockOptions } from "../permdock-
|
|
3
|
-
import { m as ApprovalStore } from "../types-
|
|
4
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
5
|
-
import { r as ApiKeySubjectOptions } from "../credentials-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, br as Principal } from "../policy-types-DU389Elz.js";
|
|
2
|
+
import { a as PermDock, o as PermDockOptions } from "../permdock-DV3opaI3.js";
|
|
3
|
+
import { m as ApprovalStore } from "../types-X40XNxRP.js";
|
|
4
|
+
import { t as InstanceOptions } from "../instance-options-DhQVCuhT.js";
|
|
5
|
+
import { r as ApiKeySubjectOptions } from "../credentials-Bq-Xa7Vq.js";
|
|
6
6
|
import { t as ClaimsMap } from "../claims-map-D1Pb5oRq.js";
|
|
7
|
-
import { n as SubjectCache, s as VersionCache } from "../subject-cache-
|
|
7
|
+
import { n as SubjectCache, s as VersionCache } from "../subject-cache-TY2tw-k9.js";
|
|
8
8
|
//#region src/core/app.d.ts
|
|
9
9
|
/**
|
|
10
10
|
* How strict `definePermDock` is about the services the policy needs. `dev`
|
|
@@ -19,7 +19,14 @@ type AppProfile = "dev" | "prod";
|
|
|
19
19
|
* opt-in features and the services. An adapter's own options win over these,
|
|
20
20
|
* key by key.
|
|
21
21
|
*/
|
|
22
|
-
type AppOptions = InstanceOptions & Pick<PermDockOptions, "settings"> & {
|
|
22
|
+
type AppOptions<TClient extends object = object> = InstanceOptions & Pick<PermDockOptions, "settings"> & {
|
|
23
|
+
/**
|
|
24
|
+
* The sources of one client, such as a request-scoped or lazily created
|
|
25
|
+
* admin client. `app.forClient(client)` calls it once per client and caches
|
|
26
|
+
* the answer in a `WeakMap`, so a client the app no longer holds is
|
|
27
|
+
* collected with its sources.
|
|
28
|
+
*/
|
|
29
|
+
readonly sources?: (client: TClient) => ClientSources;
|
|
23
30
|
/** Where approval requests open and resume, for every adapter. */
|
|
24
31
|
readonly store?: ApprovalStore;
|
|
25
32
|
readonly profile?: AppProfile;
|
|
@@ -35,6 +42,10 @@ type AppOptions = InstanceOptions & Pick<PermDockOptions, "settings"> & {
|
|
|
35
42
|
/** The API key verifier options, for `fromApiKey`. */
|
|
36
43
|
readonly credentials?: Omit<ApiKeySubjectOptions, "permissions">;
|
|
37
44
|
};
|
|
45
|
+
/** What `AppOptions.sources` answers for one client. */
|
|
46
|
+
type ClientSources = Pick<InstanceOptions, "memberships" | "customRoles"> & {
|
|
47
|
+
readonly subjects?: SubjectCache;
|
|
48
|
+
};
|
|
38
49
|
//#endregion
|
|
39
50
|
//#region src/app/define-permdock.d.ts
|
|
40
51
|
/**
|
|
@@ -43,7 +54,7 @@ type AppOptions = InstanceOptions & Pick<PermDockOptions, "settings"> & {
|
|
|
43
54
|
*/
|
|
44
55
|
type PermDockQuery = Pick<PermDockOptions, "tenant" | "intent">;
|
|
45
56
|
/** The members `definePermDock` adds to the policy it binds. */
|
|
46
|
-
type PermDockApp<V extends PolicyVocabulary = PolicyVocabulary> = {
|
|
57
|
+
type PermDockApp<V extends PolicyVocabulary = PolicyVocabulary, TClient extends object = object, TUser = unknown, TPrincipal extends Principal = Principal> = {
|
|
47
58
|
/** The instance for `user`, built with the app's sources and caches. */
|
|
48
59
|
readonly getPermDock: (user: unknown, query?: PermDockQuery) => Promise<PermDock<V>>;
|
|
49
60
|
/**
|
|
@@ -66,12 +77,19 @@ type PermDockApp<V extends PolicyVocabulary = PolicyVocabulary> = {
|
|
|
66
77
|
readonly sources: (versions?: VersionCache) => InstanceOptions;
|
|
67
78
|
/** Drops the principal's instances, authorization version and subject record. */
|
|
68
79
|
readonly evict: (principal: string) => Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* The definition bound to `client`: the same policy, caches and services,
|
|
82
|
+
* with `memberships`, `customRoles` and `subjects` from
|
|
83
|
+
* `options.sources(client)`, which runs once per client (cached in a
|
|
84
|
+
* `WeakMap`). Throws a `TypeError` when the app has no `sources` option.
|
|
85
|
+
*/
|
|
86
|
+
readonly forClient: (client: TClient) => PermDockDefinition<TUser, TPrincipal, V, TClient>;
|
|
69
87
|
};
|
|
70
88
|
/**
|
|
71
89
|
* A policy that carries the app definition and the `PermDockApp` members. It is
|
|
72
90
|
* a `Policy`: pass it wherever a policy goes.
|
|
73
91
|
*/
|
|
74
|
-
type PermDockDefinition<TUser = unknown, TPrincipal extends Principal = Principal, V extends PolicyVocabulary = PolicyVocabulary> = Policy<TUser, TPrincipal, V> & PermDockApp<V>;
|
|
92
|
+
type PermDockDefinition<TUser = unknown, TPrincipal extends Principal = Principal, V extends PolicyVocabulary = PolicyVocabulary, TClient extends object = object> = Policy<TUser, TPrincipal, V> & PermDockApp<V, TClient, TUser, TPrincipal>;
|
|
75
93
|
/**
|
|
76
94
|
* Binds the app's sources, caches, features and services to `policy` and adds
|
|
77
95
|
* `getPermDock`, `fromClaims`, `fromApiKey`, `sources` and `evict`. The result
|
|
@@ -80,6 +98,6 @@ type PermDockDefinition<TUser = unknown, TPrincipal extends Principal = Principa
|
|
|
80
98
|
* precedence. The profile defaults to `prod`. Server-only: nothing here belongs
|
|
81
99
|
* in a client bundle.
|
|
82
100
|
*/
|
|
83
|
-
export declare function definePermDock<TUser, TPrincipal extends Principal, V extends PolicyVocabulary>(policy: Policy<TUser, TPrincipal, V>, options?: AppOptions): PermDockDefinition<TUser, TPrincipal, V>;
|
|
101
|
+
export declare function definePermDock<TUser, TPrincipal extends Principal, V extends PolicyVocabulary, TClient extends object = object>(policy: Policy<TUser, TPrincipal, V>, options?: AppOptions<TClient>): PermDockDefinition<TUser, TPrincipal, V, TClient>;
|
|
84
102
|
//#endregion
|
|
85
103
|
export type { AppOptions, AppProfile, PermDockApp, PermDockDefinition, PermDockQuery };
|
package/dist/app/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as isRecord, 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 { n as memoryLimitStore, t as limits } from "../limits-CAhpRrhk.js";
|
|
4
|
-
import { t as APP } from "../app-
|
|
4
|
+
import { t as APP } from "../app-J9PE1LNm.js";
|
|
5
5
|
import { i as memoryApprovalStore } from "../store-DXO0aVgf.js";
|
|
6
6
|
import { t as instanceOptions } from "../instance-options-URVwqpMW.js";
|
|
7
|
-
import { t as versionSources } from "../version-sources-
|
|
7
|
+
import { t as versionSources } from "../version-sources-BRb9ZteH.js";
|
|
8
8
|
import { r as mapClaimsToSubject } from "../map-claims-CAa_bQt9.js";
|
|
9
|
-
import { c as subjectFromApiKey } from "../credentials-
|
|
9
|
+
import { c as subjectFromApiKey } from "../credentials-BZU7Twpt.js";
|
|
10
10
|
//#region src/app/define-permdock.ts
|
|
11
11
|
function grantsOf(policy) {
|
|
12
12
|
return [...policy.index.grantsByKey.values()].flat();
|
|
@@ -40,52 +40,75 @@ function devDefaults(policy, options) {
|
|
|
40
40
|
*/
|
|
41
41
|
function definePermDock(policy, options = {}) {
|
|
42
42
|
const profile = options.profile ?? "prod";
|
|
43
|
-
const
|
|
44
|
-
|
|
43
|
+
const given = options;
|
|
44
|
+
const definition = profile === "dev" ? devDefaults(policy, given) : {
|
|
45
|
+
...given,
|
|
45
46
|
profile
|
|
46
47
|
};
|
|
47
48
|
if (profile === "prod") assertProduction(policy, definition);
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
...
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
49
|
+
const perClient = /* @__PURE__ */ new WeakMap();
|
|
50
|
+
const sourcesOfClient = (client) => {
|
|
51
|
+
if (definition.sources === void 0) throw new TypeError("PermDock: forClient needs the sources option of definePermDock");
|
|
52
|
+
if (typeof client !== "object" && typeof client !== "function") throw new TypeError("PermDock: forClient takes an object client");
|
|
53
|
+
const cached = perClient.get(client);
|
|
54
|
+
if (cached !== void 0) return cached;
|
|
55
|
+
const made = definition.sources(client);
|
|
56
|
+
perClient.set(client, made);
|
|
57
|
+
return made;
|
|
58
|
+
};
|
|
59
|
+
const bind = (bound) => {
|
|
60
|
+
const prototype = Object.getPrototypeOf(policy);
|
|
61
|
+
const app = Object.create(prototype, Object.getOwnPropertyDescriptors(policy));
|
|
62
|
+
Object.defineProperty(app, APP, { value: Object.freeze(bound) });
|
|
63
|
+
const { memberships: _m, instances: _i, ...sourcesOf } = instanceOptions(bound);
|
|
64
|
+
const sources = versionSources({
|
|
65
|
+
...bound.memberships === void 0 ? {} : { memberships: bound.memberships },
|
|
66
|
+
...bound.instances === void 0 ? {} : { instances: bound.instances },
|
|
67
|
+
...bound.versions === void 0 ? {} : { versions: bound.versions },
|
|
68
|
+
options: {
|
|
69
|
+
...sourcesOf,
|
|
70
|
+
...bound.settings === void 0 ? {} : { settings: bound.settings }
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
const build = (user, query) => getPermDock(app, user, {
|
|
74
|
+
...sources(),
|
|
75
|
+
...query
|
|
76
|
+
});
|
|
77
|
+
const mapClaims = (claims) => mapClaimsToSubject(claims, compact({ claims: bound.claims })).subject;
|
|
78
|
+
const members = {
|
|
79
|
+
getPermDock: build,
|
|
80
|
+
fromClaims: (claims, query) => build(isRecord(claims) ? mapClaims(claims) : null, query),
|
|
81
|
+
async fromApiKey(key, query) {
|
|
82
|
+
const credentials = bound.credentials;
|
|
83
|
+
if (credentials === void 0) throw new TypeError("PermDock: fromApiKey needs the credentials option of definePermDock");
|
|
84
|
+
const tenant = query?.tenant ?? credentials.tenant;
|
|
85
|
+
const subject = await subjectFromApiKey(key, {
|
|
86
|
+
...credentials,
|
|
87
|
+
permissions: policy.permissions,
|
|
88
|
+
...tenant === void 0 ? {} : { tenant }
|
|
89
|
+
});
|
|
90
|
+
return build(subject, query);
|
|
91
|
+
},
|
|
92
|
+
sources,
|
|
93
|
+
async evict(principal) {
|
|
94
|
+
bound.versions?.evict(principal);
|
|
95
|
+
bound.instances?.evict(principal);
|
|
96
|
+
await bound.subjects?.evict(principal);
|
|
97
|
+
},
|
|
98
|
+
forClient(client) {
|
|
99
|
+
const { memberships, customRoles, subjects } = sourcesOfClient(client);
|
|
100
|
+
return bind({
|
|
101
|
+
...definition,
|
|
102
|
+
...memberships === void 0 ? {} : { memberships },
|
|
103
|
+
...customRoles === void 0 ? {} : { customRoles },
|
|
104
|
+
...subjects === void 0 ? {} : { subjects }
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
for (const [name, value] of Object.entries(members)) Object.defineProperty(app, name, { value });
|
|
109
|
+
return Object.freeze(app);
|
|
86
110
|
};
|
|
87
|
-
|
|
88
|
-
return Object.freeze(app);
|
|
111
|
+
return bind(definition);
|
|
89
112
|
}
|
|
90
113
|
//#endregion
|
|
91
114
|
export { definePermDock };
|
|
@@ -15,7 +15,7 @@ function appOf(policy) {
|
|
|
15
15
|
function withApp(policy, options) {
|
|
16
16
|
const app = appOf(policy);
|
|
17
17
|
if (app === void 0) return options;
|
|
18
|
-
const { profile: _profile, claims: _claims, credentials: _credentials, ...values } = app;
|
|
18
|
+
const { profile: _profile, sources: _sources, claims: _claims, credentials: _credentials, ...values } = app;
|
|
19
19
|
const merged = { ...values };
|
|
20
20
|
for (const [key, value] of Object.entries(options)) if (value !== void 0) merged[key] = value;
|
|
21
21
|
return merged;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as Policy,
|
|
1
|
+
import { Cn as Scope, D as Policy, Dr as Condition, Sr as Subject, _ as Grant, cn as AuthEvent, o as ApprovalOption } from "./policy-types-DU389Elz.js";
|
|
2
2
|
import { i as OperationEffect, s as OperationMeta, u as OperationRisk } from "./operations-BMPx7HyO.js";
|
|
3
3
|
//#region src/core/approval-policies.d.ts
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as OperationMeta, t as Operation } from "./operations-BMPx7HyO.js";
|
|
2
|
-
import { u as ApprovalRequest } from "./types-
|
|
2
|
+
import { u as ApprovalRequest } from "./types-X40XNxRP.js";
|
|
3
3
|
//#region src/delivery/approval-prompt.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* What an email or chat prompt shows an approver, wire format v1. It carries no
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as DEFAULT_APPROVAL_TTL, a as ApprovalDelegationSource, b as escalationOpenAt, c as ApprovalListQuery, d as ApprovalResumeFailureCause, f as ApprovalSignature, g as ApprovalVerdict, h as ApprovalSubjectSummary, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, n as ApprovalApprovers, o as ApprovalInspectResult, p as ApprovalStatus, r as ApprovalCancelMeta, s as ApprovalListFilter, t as APPROVAL_HEADER, u as ApprovalRequest, v as approvalQuorum, y as approverRelationKey } from "../types-
|
|
1
|
+
import { _ as DEFAULT_APPROVAL_TTL, a as ApprovalDelegationSource, b as escalationOpenAt, c as ApprovalListQuery, d as ApprovalResumeFailureCause, f as ApprovalSignature, g as ApprovalVerdict, h as ApprovalSubjectSummary, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, n as ApprovalApprovers, o as ApprovalInspectResult, p as ApprovalStatus, r as ApprovalCancelMeta, s as ApprovalListFilter, t as APPROVAL_HEADER, u as ApprovalRequest, v as approvalQuorum, y as approverRelationKey } from "../types-X40XNxRP.js";
|
|
2
2
|
import { n as ApprovalErrorCode, r as isApprovalError, t as ApprovalError } from "../errors-CHwoRRpB.js";
|
|
3
|
-
import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, o as AccessReviewItemStatus, r as AccessReviewItem, s as AccessReviewStatus, t as AccessReview } from "../types-
|
|
4
|
-
import { $ as pageAccessReviewItems, A as SignApprovalOptions, B as IdempotentResponse, C as ApproverRelationsOptions, D as approvalView, E as approvalEntityTag, F as ApprovalsHandlerOptions, G as ApproverDirectory, H as idempotencyRecordKey, I as approvalsHandler, J as matchDelegation, K as ApprovalDelegationMatch, L as IdempotencyRecord, M as signApproval, N as APPROVAL_REQUEST_SCHEMA, O as ApprovalSignatureClaims, P as parseApprovalRequest, Q as memoryAccessReviewStore, R as IdempotencyStore, S as vouchApproval, T as ApprovalView, U as matchesIdempotencyRecord, V as idempotencyRecord, W as memoryIdempotencyStore, X as parseApprovalDelegation, Y as memoryApprovalDelegationSource, Z as MemoryAccessReviewStore, _ as resolveApproval, a as approverPermissions, at as AccessReviewErrorCode, b as storedApprovalToken, c as decodeApprovalCursor, ct as accessReviewerEligible, d as pageApprovals, dt as accessReviewsHandler, et as AccessReviewHolder, f as cancelApprovals, g as requestApproval, h as readApprovalHeader, i as memoryApprovalStore, it as AccessReviewError, j as approvalSignatureClaims, k as ApprovalSignatureEntry, l as encodeApprovalCursor, lt as decideAccessReviewItem, m as inspectApproval, n as applyApprovalVerdict, nt as StartAccessReviewInput, o as ApprovalCursorPosition, ot as isAccessReviewError, p as consumeApproval, q as MatchDelegationOptions, r as assertApprover, rt as startAccessReview, s as approvalPageSize, st as AccessReviewVerdict, t as MemoryApprovalStore, tt as AccessReviewOptions, u as listAllApprovals, ut as AccessReviewsHandlerOptions, v as resumeDecision, w as approverRelations, x as summarizeSubject, y as resumeFromHeader, z as IdempotentCall } from "../index-
|
|
3
|
+
import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, o as AccessReviewItemStatus, r as AccessReviewItem, s as AccessReviewStatus, t as AccessReview } from "../types-BsqLNNvG.js";
|
|
4
|
+
import { $ as pageAccessReviewItems, A as SignApprovalOptions, B as IdempotentResponse, C as ApproverRelationsOptions, D as approvalView, E as approvalEntityTag, F as ApprovalsHandlerOptions, G as ApproverDirectory, H as idempotencyRecordKey, I as approvalsHandler, J as matchDelegation, K as ApprovalDelegationMatch, L as IdempotencyRecord, M as signApproval, N as APPROVAL_REQUEST_SCHEMA, O as ApprovalSignatureClaims, P as parseApprovalRequest, Q as memoryAccessReviewStore, R as IdempotencyStore, S as vouchApproval, T as ApprovalView, U as matchesIdempotencyRecord, V as idempotencyRecord, W as memoryIdempotencyStore, X as parseApprovalDelegation, Y as memoryApprovalDelegationSource, Z as MemoryAccessReviewStore, _ as resolveApproval, a as approverPermissions, at as AccessReviewErrorCode, b as storedApprovalToken, c as decodeApprovalCursor, ct as accessReviewerEligible, d as pageApprovals, dt as accessReviewsHandler, et as AccessReviewHolder, f as cancelApprovals, g as requestApproval, h as readApprovalHeader, i as memoryApprovalStore, it as AccessReviewError, j as approvalSignatureClaims, k as ApprovalSignatureEntry, l as encodeApprovalCursor, lt as decideAccessReviewItem, m as inspectApproval, n as applyApprovalVerdict, nt as StartAccessReviewInput, o as ApprovalCursorPosition, ot as isAccessReviewError, p as consumeApproval, q as MatchDelegationOptions, r as assertApprover, rt as startAccessReview, s as approvalPageSize, st as AccessReviewVerdict, t as MemoryApprovalStore, tt as AccessReviewOptions, u as listAllApprovals, ut as AccessReviewsHandlerOptions, v as resumeDecision, w as approverRelations, x as summarizeSubject, y as resumeFromHeader, z as IdempotentCall } from "../index-D7sMtTf6.js";
|
|
5
5
|
import { t as approvalFingerprint } from "../token-D6pWn8Uj.js";
|
|
6
6
|
export { APPROVAL_HEADER, APPROVAL_REQUEST_SCHEMA, type AccessReview, type AccessReviewDecision, AccessReviewError, type AccessReviewErrorCode, type AccessReviewHolder, type AccessReviewItem, type AccessReviewItemPage, type AccessReviewItemQuery, type AccessReviewItemStatus, type AccessReviewOptions, type AccessReviewStatus, type AccessReviewStore, type AccessReviewVerdict, type AccessReviewsHandlerOptions, type ApprovalApprovers, type ApprovalCancelMeta, type ApprovalCursorPosition, type ApprovalDelegation, type ApprovalDelegationMatch, type ApprovalDelegationSource, ApprovalError, type ApprovalErrorCode, type ApprovalInspectResult, type ApprovalListFilter, type ApprovalListQuery, type ApprovalPage, type ApprovalRequest, type ApprovalResumeFailureCause, type ApprovalSignature, type ApprovalSignatureClaims, type ApprovalSignatureEntry, type ApprovalStatus, type ApprovalStore, type ApprovalSubjectSummary, type ApprovalVerdict, type ApprovalView, type ApprovalsHandlerOptions, type ApproverDirectory, type ApproverRelationsOptions, DEFAULT_APPROVAL_TTL, type IdempotencyRecord, type IdempotencyStore, type IdempotentCall, type IdempotentResponse, type MatchDelegationOptions, type MemoryAccessReviewStore, type MemoryApprovalStore, type SignApprovalOptions, type StartAccessReviewInput, accessReviewerEligible, accessReviewsHandler, applyApprovalVerdict, approvalEntityTag, approvalFingerprint, approvalPageSize, approvalQuorum, approvalSignatureClaims, approvalView, approvalsHandler, approverPermissions, approverRelationKey, approverRelations, assertApprover, cancelApprovals, consumeApproval, decideAccessReviewItem, decodeApprovalCursor, encodeApprovalCursor, escalationOpenAt, idempotencyRecord, idempotencyRecordKey, inspectApproval, isAccessReviewError, isApprovalError, listAllApprovals, matchDelegation, matchesIdempotencyRecord, memoryAccessReviewStore, memoryApprovalDelegationSource, memoryApprovalStore, memoryIdempotencyStore, pageAccessReviewItems, pageApprovals, parseApprovalDelegation, parseApprovalRequest, readApprovalHeader, requestApproval, resolveApproval, resumeDecision, resumeFromHeader, signApproval, startAccessReview, storedApprovalToken, summarizeSubject, vouchApproval };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as arazzoFindings } from "./src-
|
|
1
|
+
import { g as arazzoFindings } from "./src-ieIv22BA.js";
|
|
2
2
|
import { c as missingInput } from "./errors-BhRkoNS7.js";
|
|
3
3
|
import { i as readJsonFile } from "./files-BSjrtIHw.js";
|
|
4
4
|
import { t as ARAZZO_REPORT_SCHEMA } from "./version-DMQ0dnN5.js";
|
|
5
5
|
import { a as loadModule, s as pickNamed, t as asPermissionTree } from "./load-C4p4VgwR.js";
|
|
6
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
6
|
+
import { t as DOCS_BASE } from "./manifest-9KSrH_1h.js";
|
|
7
7
|
import { existsSync } from "node:fs";
|
|
8
8
|
import { resolve } from "node:path";
|
|
9
9
|
//#region src/cli/arazzo.ts
|
|
@@ -21,7 +21,7 @@ const check = defineLeaf({
|
|
|
21
21
|
...permissionsFlag
|
|
22
22
|
},
|
|
23
23
|
async run(ctx, { flags }) {
|
|
24
|
-
return (await import("./arazzo-
|
|
24
|
+
return (await import("./arazzo-2_9pOddr.js")).runArazzo({
|
|
25
25
|
cwd: ctx.cwd,
|
|
26
26
|
config: ctx.config,
|
|
27
27
|
doc: given(flags.doc),
|
package/dist/astro/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary,
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, br as Principal, en as Snapshot } from "../policy-types-DU389Elz.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
3
|
import { a as OperationInput, t as Operation } from "../operations-BMPx7HyO.js";
|
|
4
|
-
import { a as PermDock } from "../permdock-
|
|
5
|
-
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-
|
|
6
|
-
import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-
|
|
4
|
+
import { a as PermDock } from "../permdock-DV3opaI3.js";
|
|
5
|
+
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-C4q8_8MM.js";
|
|
6
|
+
import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-BJ76IZZg.js";
|
|
7
7
|
import { APIContext, MiddlewareHandler } from "astro";
|
|
8
8
|
//#region src/astro/create.d.ts
|
|
9
9
|
type AstroPermDockOptions<TUser = unknown> = FetchAdapterOptions<APIContext, TUser>;
|
package/dist/astro/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 { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-
|
|
2
|
+
import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-CXeBg4CH.js";
|
|
3
3
|
//#region src/astro/create.ts
|
|
4
4
|
const route = {
|
|
5
5
|
context: (context) => context,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as whoCan } from "./who-can-
|
|
1
|
+
import { t as whoCan } from "./who-can-Yh9WdiwK.js";
|
|
2
2
|
//#region src/delivery/audience.ts
|
|
3
3
|
async function granted(permdock, ids, permission, row) {
|
|
4
4
|
const unique = [...new Set(ids.filter((id) => typeof id === "string" && id !== ""))];
|
package/dist/authzen/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as Policy,
|
|
2
|
-
import { m as ApprovalStore } from "../types-
|
|
3
|
-
import { a as ProblemDetails } from "../errors-
|
|
4
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
5
|
-
import { a as evaluationsSemantic, n as EvaluationsSemantic, r as evaluateBatch, t as EVALUATIONS_SEMANTICS } from "../evaluations-
|
|
1
|
+
import { D as Policy, br as Principal, gr as Delegation, ur as Actor } from "../policy-types-DU389Elz.js";
|
|
2
|
+
import { m as ApprovalStore } from "../types-X40XNxRP.js";
|
|
3
|
+
import { a as ProblemDetails } from "../errors-D_SnqcRn.js";
|
|
4
|
+
import { t as InstanceOptions } from "../instance-options-DhQVCuhT.js";
|
|
5
|
+
import { a as evaluationsSemantic, n as EvaluationsSemantic, r as evaluateBatch, t as EVALUATIONS_SEMANTICS } from "../evaluations-BVtY66lF.js";
|
|
6
6
|
//#region src/authzen/map.d.ts
|
|
7
7
|
type AuthzenEntity = {
|
|
8
8
|
readonly type?: unknown;
|
package/dist/authzen/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { a as problemType, o as statusProblem } from "../problem-details-CLDgX1K
|
|
|
4
4
|
import { a as getResource, c as listPermissions } from "../permission-registry-B8tYxPIt.js";
|
|
5
5
|
import { n as resourceRef } from "../resource-ref-CaS9yVPi.js";
|
|
6
6
|
import { t as fromWireDelegation } from "../wire-delegation-Cv3W2eaM.js";
|
|
7
|
-
import { n as resolveOrNull, t as buildInstance } from "../build-instance-
|
|
7
|
+
import { n as resolveOrNull, t as buildInstance } from "../build-instance-Bq8wkJ4i.js";
|
|
8
8
|
import { d as unauthenticatedProblem, l as problemResponse, o as methodNotAllowed } from "../problem-CPB8kqk7.js";
|
|
9
9
|
import { a as evaluationReasons, c as withRequestId, d as wireResourceId, i as evaluateBatch, l as itemResourceData, n as applyApprovalResume, r as authzenMetadata, s as evaluationsSemantic, t as EVALUATIONS_SEMANTICS, u as permissionLookup } from "../evaluations-Bj5xw0EM.js";
|
|
10
10
|
import { n as readBodyText, t as MAX_BODY_BYTES } from "../body-text-DQhcmqdY.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Kt as InstanceHandle,
|
|
1
|
+
import { Kt as InstanceHandle, Zn as Denial, qt as Instant } from "./policy-types-DU389Elz.js";
|
|
2
2
|
import { w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
3
|
import { t as Operation } from "./operations-BMPx7HyO.js";
|
|
4
4
|
//#region src/core/automation.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as RoleBinding,
|
|
1
|
+
import { F as RoleBinding, Sr as Subject, X as DecisionSink, br as Principal, q as CustomRoleSource } from "../policy-types-DU389Elz.js";
|
|
2
2
|
import { E as PermissionTree } from "../vocabulary-DeZvUaTw.js";
|
|
3
3
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
4
4
|
//#region src/better-auth/types.d.ts
|