permdock 0.24.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 +31 -19
- package/dist/better-supabase/index.js +26 -18
- 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-BWvZjjyt.js → protected-action-D41o5LvP.js} +1 -1
- package/dist/{provider-B085HEOf.js → provider-Bzzux0TR.js} +2 -2
- 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-with-DobrMx1N.js → provider-with-Do28DhxP.js} +2 -2
- 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 +5 -5
- package/dist/react/lazy.js +4 -4
- 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-B_s1oQaF.d.ts → types-61f3KMtI.d.ts} +6 -1
- 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 +1 -1
- 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,15 +1,15 @@
|
|
|
1
|
-
import { $t as LocalSnapshotRows, Qt as LocalSnapshotManifest, Xt as LocalRowColumn, Yt as LocalMembershipRows, Zt as LocalRowValue, en as Snapshot,
|
|
1
|
+
import { $t as LocalSnapshotRows, Qt as LocalSnapshotManifest, Xt as LocalRowColumn, Yt as LocalMembershipRows, Zt as LocalRowValue, en as Snapshot, mr as CustomRole, qt as Instant, ut as SnapshotSource, yr as Membership } from "../policy-types-DU389Elz.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { c as requiredPlans } from "../errors-
|
|
4
|
-
import { i as describe } from "../describe-
|
|
5
|
-
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-
|
|
6
|
-
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, t as ClientStore, v as TenantView, y as ActionResult } from "../store-core-
|
|
3
|
+
import { c as requiredPlans } from "../errors-D_SnqcRn.js";
|
|
4
|
+
import { i as describe } from "../describe-DwcoWMLB.js";
|
|
5
|
+
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-w_ksIkB9.js";
|
|
6
|
+
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, t as ClientStore, v as TenantView, y as ActionResult } from "../store-core-BI-9ZU-5.js";
|
|
7
7
|
import { i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, t as AuthzChangeRefresh } from "../refresh-on-L9UOwATg.js";
|
|
8
|
-
import { r as ProtectedProps, t as PermDockDefaults } from "../types-
|
|
8
|
+
import { r as ProtectedProps, t as PermDockDefaults } from "../types-DEDocm4c.js";
|
|
9
9
|
import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
|
|
10
|
-
import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-
|
|
10
|
+
import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-CjSUoPGx.js";
|
|
11
11
|
import { n as RealtimeRefreshClient, t as RealtimeRefreshChannel } from "../client-JK504UCq.js";
|
|
12
|
-
import { a as SubscribeOnline, i as SubscribeForeground, n as ReactNativePermDockProviderProps, r as SnapshotStorage, t as NativeRevalidate } from "../types-
|
|
12
|
+
import { a as SubscribeOnline, i as SubscribeForeground, n as ReactNativePermDockProviderProps, r as SnapshotStorage, t as NativeRevalidate } from "../types-DdeivUBP.js";
|
|
13
13
|
import { ReactElement } from "react";
|
|
14
14
|
//#region src/react-native/guards.d.ts
|
|
15
15
|
/**
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
|
|
3
|
-
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
4
3
|
import { r as requiredPlans } from "../problem-details-CLDgX1KV.js";
|
|
5
4
|
import { n as describe } from "../describe-BZAlPHxT.js";
|
|
6
5
|
import { n as isThenable } from "../thenable-BNSM1U2R.js";
|
|
7
6
|
import { o as flattenGrantee } from "../grantee-OG4klcNr.js";
|
|
8
7
|
import { h as secondsAt, m as rfc3339 } from "../time-nR1JesoH.js";
|
|
9
8
|
import { d as scopeList, o as normalizeMemberships, p as tenantOf$1, s as resolveScope } from "../scopes-gdH__vDZ.js";
|
|
9
|
+
import { t as compactSnapshot } from "../snapshot-compact-CUtXsx6i.js";
|
|
10
10
|
import { d as resolveActiveTenant, r as isMembershipExpired } from "../tenancy-BlxY5T0q.js";
|
|
11
|
-
import { a as heldRoleNames, n as parseSnapshot, s as bindConditionRefs } from "../snapshot-
|
|
11
|
+
import { a as heldRoleNames, n as parseSnapshot, s as bindConditionRefs } from "../snapshot-D0VOanxQ.js";
|
|
12
12
|
import { t as byCodePoint } from "../compare-DTfyUunF.js";
|
|
13
|
-
import { t as emptySnapshot } from "../snapshot-empty-
|
|
13
|
+
import { t as emptySnapshot } from "../snapshot-empty-F7d5BRlc.js";
|
|
14
14
|
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-Ce2N-Opr.js";
|
|
15
15
|
import { r as approvalHeaders } from "../protected-action-OpOxtTsN.js";
|
|
16
|
-
import { t as eagerEvaluator } from "../evaluator-eager-
|
|
17
|
-
import { a as eventSourceRefresh, c as isJws, n as storeOf, r as authzChangeRefresh, t as adapterStore } from "../store-options-
|
|
16
|
+
import { t as eagerEvaluator } from "../evaluator-eager-CULtQ8t6.js";
|
|
17
|
+
import { a as eventSourceRefresh, c as isJws, n as storeOf, r as authzChangeRefresh, t as adapterStore } from "../store-options-BYKNX_JG.js";
|
|
18
18
|
import { a as PermDockUiContext, i as PermDockStoreContext, n as useKeyed, t as useLiveOptions } from "../live-options-BBIT68le.js";
|
|
19
|
-
import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-
|
|
19
|
+
import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-D41o5LvP.js";
|
|
20
20
|
import { r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-Dbc-HDOS.js";
|
|
21
21
|
import { useEffect, useMemo, useRef } from "react";
|
|
22
22
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -299,7 +299,7 @@ function buildLocalSnapshot(manifest, data, at) {
|
|
|
299
299
|
}
|
|
300
300
|
const roles = subject.principal === null ? [] : heldRoleNames(subject, tenant, scopes, { rank: manifest.rank ?? [] }, now);
|
|
301
301
|
const rules = manifest.assignable;
|
|
302
|
-
return
|
|
302
|
+
return compactSnapshot(compact({
|
|
303
303
|
v: 1,
|
|
304
304
|
issuedAt: rfc3339(now),
|
|
305
305
|
subject: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as assertAppData } from "./app-data-UNNm07jV.js";
|
|
2
2
|
import { n as wrapPermDock } from "./wrap-C5PWzgkq.js";
|
|
3
|
-
import { t as buildInstance } from "./build-instance-
|
|
3
|
+
import { t as buildInstance } from "./build-instance-Bq8wkJ4i.js";
|
|
4
4
|
//#region src/core/request-context.ts
|
|
5
5
|
/**
|
|
6
6
|
* Errors an adapter raises around one instance (a `context` hook that threw, an
|
package/dist/resend/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { X as DecisionSink } from "../policy-types-
|
|
2
|
-
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-
|
|
3
|
-
import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-
|
|
4
|
-
import { l as ReplayStore } from "../types-
|
|
1
|
+
import { X as DecisionSink } from "../policy-types-DU389Elz.js";
|
|
2
|
+
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-j5PTItiy.js";
|
|
3
|
+
import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-BIvkpVoc.js";
|
|
4
|
+
import { l as ReplayStore } from "../types-BDgMzK1i.js";
|
|
5
5
|
//#region src/resend/approval-email.d.ts
|
|
6
6
|
type ApprovalEmailOptions = {
|
|
7
7
|
/**
|
|
@@ -5,8 +5,8 @@ import { i as configError } from "./errors-BhRkoNS7.js";
|
|
|
5
5
|
import "./budget-BBCPDOGP.js";
|
|
6
6
|
import "./sources-C4vkzZJV.js";
|
|
7
7
|
import { A as quoteQualified, D as qualified, I as idTypeOf, L as scopeTypeOf, O as quoteIdent } from "./shared-DfaIWvIJ.js";
|
|
8
|
-
import { C as permittedByPermissionHelper, Ct as scopeTable, U as globalRoleRows, _t as memberOfHelper, at as graphHelper, b as checkName, bt as permittedIdsHelper, c as graphPlan, dt as isTeamScope, gt as memberIdsHelper, i as tableNames, lt as hasPermittedUsers, ot as graphSqlName, pt as memberForHelper, u as holderSources, ut as inheritedRowsHelper, xt as restrictedHelper, y as PERMISSION_HELPERS, yt as permittedForHelper } from "./tables-
|
|
9
|
-
import { t as FIELD_VIEWS } from "./fields-
|
|
8
|
+
import { C as permittedByPermissionHelper, Ct as scopeTable, U as globalRoleRows, _t as memberOfHelper, at as graphHelper, b as checkName, bt as permittedIdsHelper, c as graphPlan, dt as isTeamScope, gt as memberIdsHelper, i as tableNames, lt as hasPermittedUsers, ot as graphSqlName, pt as memberForHelper, u as holderSources, ut as inheritedRowsHelper, xt as restrictedHelper, y as PERMISSION_HELPERS, yt as permittedForHelper } from "./tables-B3w3EtUF.js";
|
|
9
|
+
import { t as FIELD_VIEWS } from "./fields-D9PIYlJy.js";
|
|
10
10
|
//#region src/cli/rls/permission-holders.ts
|
|
11
11
|
/**
|
|
12
12
|
* `permitted_<scope>_users(p_permission, p_id)`. Names are part of the SQL
|
|
@@ -9,24 +9,24 @@ import { i as requirePeer, n as packageManagerOf, t as addLine } from "./peer-Bu
|
|
|
9
9
|
import { c as requirePolicy } from "./load-C4p4VgwR.js";
|
|
10
10
|
import { i as qualifySqlTable, r as escapeSqlIdent } from "./sql-0WjxIp9g.js";
|
|
11
11
|
import "./sources-C4vkzZJV.js";
|
|
12
|
-
import { t as policyFromCatalog } from "./policy-from-catalog-
|
|
12
|
+
import { t as policyFromCatalog } from "./policy-from-catalog-Z0hvSffr.js";
|
|
13
13
|
import { t as beforeFirst } from "./text-BMFRfBqc.js";
|
|
14
14
|
import { i as INDEXES_MARKER, n as GRANTS_MARKER, o as SEEDS_MARKER, t as BACKFILL_MARKER } from "./markers-BeHZ4x9Q.js";
|
|
15
|
-
import { a as nonEmptyOr } from "./output-
|
|
15
|
+
import { a as nonEmptyOr } from "./output-CuJfGWo6.js";
|
|
16
16
|
import { t as POLICY_NOT_PUBLISHED } from "./problem-types-DSsRfONQ.js";
|
|
17
|
-
import { t as fetchProjectPolicy } from "./pull-
|
|
17
|
+
import { t as fetchProjectPolicy } from "./pull-DLkaZBwH.js";
|
|
18
18
|
import { n as MIGRATION_DIRS } from "./constants-DcJABbLW.js";
|
|
19
19
|
import { a as isSeedsDirectory, c as parseSplit, d as seedsMigration, f as writeOutputFiles, l as partPath, n as dataMigrationFile, r as driftOf, u as pgDeltaPath } from "./output-files-CM0BnH05.js";
|
|
20
20
|
import { t as connectPgPool } from "./pg-Ddxsd5ZB.js";
|
|
21
|
-
import { b as rbacScaffold, d as resolveSchemas, f as schemasRefusal, o as supabaseHookSql, p as declarativeSql, s as approvalsSql, t as grantsLabel, u as isSupabaseSchemas, y as parseRbacAuthorize } from "./supabase-hook-
|
|
21
|
+
import { b as rbacScaffold, d as resolveSchemas, f as schemasRefusal, o as supabaseHookSql, p as declarativeSql, s as approvalsSql, t as grantsLabel, u as isSupabaseSchemas, y as parseRbacAuthorize } from "./supabase-hook-DJA8AJYz.js";
|
|
22
22
|
import { A as quoteQualified, D as qualified$1, L as scopeTypeOf, O as quoteIdent$1, _ as subjectClaimJsonSql, c as SESSION_LIVE_HELPER, g as sessionLiveHelperSql, j as quoteTable, k as quoteLiteral, r as HELPERS, t as CUSTOM_ROLES, y as subjectIdSql } from "./shared-DfaIWvIJ.js";
|
|
23
|
-
import { $ as byKey, C as permittedByPermissionHelper, Ct as scopeTable, E as helpersSql, O as seedSql, St as scopeSources, T as accessSql, at as graphHelper, bt as permittedIdsHelper, gt as memberIdsHelper, i as tableNames, l as graphSql, x as permissionHelpersSql } from "./tables-
|
|
24
|
-
import { c as breakGlassKey, i as assignmentSql, l as collectGrants, n as ownershipSql, s as breakGlassHolder } from "./ownership-
|
|
23
|
+
import { $ as byKey, C as permittedByPermissionHelper, Ct as scopeTable, E as helpersSql, O as seedSql, St as scopeSources, T as accessSql, at as graphHelper, bt as permittedIdsHelper, gt as memberIdsHelper, i as tableNames, l as graphSql, x as permissionHelpersSql } from "./tables-B3w3EtUF.js";
|
|
24
|
+
import { c as breakGlassKey, i as assignmentSql, l as collectGrants, n as ownershipSql, s as breakGlassHolder } from "./ownership-C_5eZ6N2.js";
|
|
25
25
|
import { a as splitUndiffed } from "./deciding-columns-NB4wcyBf.js";
|
|
26
|
-
import { a as fieldViewsSql, c as ACTOR_MAY_WRITE,
|
|
27
|
-
import { n as permissionHoldersSql } from "./resolve-names-
|
|
28
|
-
import { _ as INDEX_COLUMNS_SQL, a as verifyResult, b as pruneIndexTargets, c as callsHelper, g as COLUMNS_SQL, h as tableFor, i as verifyIgnores, l as helperCallKeys, m as inferredCommand, n as runRlsVerify, o as HELPER_TABLES, p as compileGrants, r as rlsFinding, v as indexTargets, x as readTableIndexFacts, y as indexesSql } from "./verify-
|
|
29
|
-
import { a as buildContext, c as levelKeys, d as rebuildPlan, i as splitsPart, l as rowHelpersSql, n as generateOptions, o as CANDIDATES, r as isRefusal, s as inheritTargets, t as supautilsRejections, u as DROPPED_LIST } from "./supautils-
|
|
26
|
+
import { a as fieldViewsSql, c as ACTOR_MAY_WRITE, d as assemblePolicies, i as fieldViews, l as actorMayWriteCall, m as readOnlyActorPolicies, n as columnGrantSql, o as rowBranches, p as readOnlyActorKinds, r as columnRevokeSql, u as actorMayWriteSql } from "./fields-D9PIYlJy.js";
|
|
27
|
+
import { n as permissionHoldersSql } from "./resolve-names-DHDedxk0.js";
|
|
28
|
+
import { _ as INDEX_COLUMNS_SQL, a as verifyResult, b as pruneIndexTargets, c as callsHelper, g as COLUMNS_SQL, h as tableFor, i as verifyIgnores, l as helperCallKeys, m as inferredCommand, n as runRlsVerify, o as HELPER_TABLES, p as compileGrants, r as rlsFinding, v as indexTargets, x as readTableIndexFacts, y as indexesSql } from "./verify-lgYu1Twv.js";
|
|
29
|
+
import { a as buildContext, c as levelKeys, d as rebuildPlan, i as splitsPart, l as rowHelpersSql, n as generateOptions, o as CANDIDATES, r as isRefusal, s as inheritTargets, t as supautilsRejections, u as DROPPED_LIST } from "./supautils-DuwkBqKm.js";
|
|
30
30
|
import { readFileSync } from "node:fs";
|
|
31
31
|
import { basename, delimiter, join } from "node:path";
|
|
32
32
|
import { spawn } from "node:child_process";
|
|
@@ -1123,8 +1123,8 @@ function generatePolicies(input, policy, options, built, warnings) {
|
|
|
1123
1123
|
...policyName === void 0 ? {} : { name: policyName }
|
|
1124
1124
|
});
|
|
1125
1125
|
const actorKinds = readOnlyActorKinds(rls?.readOnlyActors);
|
|
1126
|
-
const actorGuards = actorKinds === void 0 || !helpersOnly ? [] : helpersOnlyActorGuards(readOnlyActorPolicies(assembled,
|
|
1127
|
-
const withActors = (items) => actorKinds === void 0 ? items : [...items, ...readOnlyActorPolicies(items,
|
|
1126
|
+
const actorGuards = actorKinds === void 0 || !helpersOnly ? [] : helpersOnlyActorGuards(readOnlyActorPolicies(assembled, actorMayWriteCall(ctx)), rls?.tables, qualified$1(ctx, ACTOR_MAY_WRITE), warnings);
|
|
1127
|
+
const withActors = (items) => actorKinds === void 0 ? items : [...items, ...readOnlyActorPolicies(items, actorMayWriteCall(ctx))];
|
|
1128
1128
|
let tablePolicies;
|
|
1129
1129
|
try {
|
|
1130
1130
|
tablePolicies = realtimeStoragePolicies(ctx, {
|
|
@@ -2645,7 +2645,7 @@ async function runRls(input) {
|
|
|
2645
2645
|
}
|
|
2646
2646
|
case "import": {
|
|
2647
2647
|
await requirePeer(() => import("pgsql-parser"), "pgsql-parser", "permdock rls import", input.cwd, PGSQL_PARSER_MAJOR);
|
|
2648
|
-
const { runRlsImport } = await import("./import-
|
|
2648
|
+
const { runRlsImport } = await import("./import-BYYXmHvP.js");
|
|
2649
2649
|
return runRlsImport({
|
|
2650
2650
|
cwd: input.cwd,
|
|
2651
2651
|
config: input.config,
|
|
@@ -192,7 +192,7 @@ async function rlsInput(ctx, verb, shape, options) {
|
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
194
|
async function runRls(input) {
|
|
195
|
-
return (await import("./rls-
|
|
195
|
+
return (await import("./rls-B3-tGA4r.js")).runRls(input);
|
|
196
196
|
}
|
|
197
197
|
const generate = defineLeaf({
|
|
198
198
|
flags: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as tenantScope } from "./adapter-context-OHikyRqV.js";
|
|
3
3
|
import { s as requestFromContext } from "./http-DKLXrFGk.js";
|
|
4
|
-
import { t as adapterKernel } from "./bind-
|
|
4
|
+
import { t as adapterKernel } from "./bind-LQ6zbARV.js";
|
|
5
5
|
import { r as guardIterable } from "./stream-DQ3rbO3J.js";
|
|
6
6
|
//#region src/server/rpc.ts
|
|
7
7
|
/** The tRPC and oRPC error code for a Problem Details status. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
2
|
-
import { o as ProtectOptions } from "./server-types-
|
|
2
|
+
import { o as ProtectOptions } from "./server-types-C4q8_8MM.js";
|
|
3
3
|
//#region src/server/stream.d.ts
|
|
4
4
|
type StreamProtectOptions = ProtectOptions & {
|
|
5
5
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { i as dateAt } from "./time-nR1JesoH.js";
|
|
2
2
|
import { a as describeError, l as problemOf, n as CliError, r as cliProblem, s as kindOfCode } from "./errors-BhRkoNS7.js";
|
|
3
3
|
import { s as cliVersion } from "./version-DMQ0dnN5.js";
|
|
4
|
-
import { a as resolveCwd, i as readConfig } from "./config-
|
|
4
|
+
import { a as resolveCwd, i as readConfig } from "./config-DC7aiuhP.js";
|
|
5
5
|
import { t as beforeFirst } from "./text-BMFRfBqc.js";
|
|
6
6
|
import { a as GLOBAL_FLAGS, i as suggestion, n as parseFlags, r as parseLeaf } from "./args-iafbHiXn.js";
|
|
7
7
|
import { r as progressReporter, t as redact } from "./credentials-dkycUsY3.js";
|
|
8
|
-
import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-
|
|
8
|
+
import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-9KSrH_1h.js";
|
|
9
9
|
import { t as createStyle } from "./style-Ds11Hmk4.js";
|
|
10
|
-
import { i as githubAnnotations, n as envelope, o as sarifLog, t as dataOf } from "./output-
|
|
10
|
+
import { i as githubAnnotations, n as envelope, o as sarifLog, t as dataOf } from "./output-CuJfGWo6.js";
|
|
11
11
|
import { stripVTControlCharacters } from "node:util";
|
|
12
12
|
import { existsSync, statSync } from "node:fs";
|
|
13
13
|
import { createHash } from "node:crypto";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as run } from "./run-2GwcSago.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as PrincipalSource } from "./permdock-
|
|
1
|
+
import { Sr as Subject, _t as TokenSigner, br as Principal, cn as AuthEvent, fr as AuthorizationDetail, gr as Delegation, gt as TokenFailureCause, qt as Instant, ur as Actor, vt as TokenVerifier } from "./policy-types-DU389Elz.js";
|
|
2
|
+
import { _ as PrincipalSource } from "./permdock-DV3opaI3.js";
|
|
3
3
|
//#region src/server/run-ticket.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* What started the run: a saved automation, a background job, or a caller's own
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { i as principal } from "./refs-C8BKxc_e.js";
|
|
3
3
|
import { a as deny, n as role, r as allow } from "./role-builder-BXdhhQcB.js";
|
|
4
|
-
import { D as memoryCustomRoleSource, x as memoryRelationSource } from "./src-
|
|
4
|
+
import { D as memoryCustomRoleSource, x as memoryRelationSource } from "./src-ieIv22BA.js";
|
|
5
5
|
import { l as relation, n as anyone } from "./grantee-OG4klcNr.js";
|
|
6
6
|
import { h as secondsAt } from "./time-nR1JesoH.js";
|
|
7
|
-
import { r as definePolicy } from "./policy-
|
|
7
|
+
import { r as definePolicy } from "./policy-DnNOTENd.js";
|
|
8
8
|
import { n as memoryLimitStore, t as limits } from "./limits-CAhpRrhk.js";
|
|
9
9
|
import { s as quoteSqlLiteral } from "./sql-0WjxIp9g.js";
|
|
10
|
-
import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-
|
|
10
|
+
import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-D-M48hW-.js";
|
|
11
11
|
//#region src/testing/saas/policy.ts
|
|
12
12
|
function isSubject(user) {
|
|
13
13
|
return user !== null && "context" in user && "principal" in user;
|
|
@@ -16,7 +16,7 @@ const scan = defineLeaf({
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
async run(ctx, { flags }) {
|
|
19
|
-
const { runAdoptionScan } = await import("./adoption-scan-
|
|
19
|
+
const { runAdoptionScan } = await import("./adoption-scan-DhZejKH8.js");
|
|
20
20
|
return runAdoptionScan({
|
|
21
21
|
cwd: ctx.cwd,
|
|
22
22
|
srcPath: flags.src.length > 0 ? flags.src : ctx.config.collect?.srcPath ?? ["src"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { l as packageRoot } from "./version-DMQ0dnN5.js";
|
|
3
3
|
import { t as DRAFT_PINS } from "./pins-nqarl3oE.js";
|
|
4
|
-
import { a as nonEmptyOr } from "./output-
|
|
4
|
+
import { a as nonEmptyOr } from "./output-CuJfGWo6.js";
|
|
5
5
|
import { t as require__2020 } from "./2020-CJbO8Bvz.js";
|
|
6
6
|
import { readFileSync } from "node:fs";
|
|
7
7
|
import { join } from "node:path";
|
package/dist/scim/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as SqlQuery } from "../sql-B80DFdpG.js";
|
|
2
|
-
import { A as ScimFilter, C as DirectoryUser, D as PATCH_SCHEMA, E as LIST_SCHEMA, F as ScimTokenOptions, I as USER_SCHEMA, L as isDirectoryNotFoundError, M as ScimPage, N as ScimPageResult, O as ROLES_EXTENSION, P as ScimPatchOp, R as isDirectoryUniquenessError, S as DirectoryUniquenessError, T as GROUP_SCHEMA, _ as DirectoryChange, a as normalizePatchOps, b as DirectoryNotFoundError, c as filterSupported, d as resourceTypes, f as schemas, g as APP_DATA_EXTENSION, h as sha256Hex, i as directoryMembershipSource, j as ScimHandlerOptions, k as SCIM_CONTENT_TYPE, l as matchFilter, m as authenticateScim, n as postgresDirectoryStore, o as tenantFromPath, p as serviceProviderConfig, r as memoryDirectoryStore, s as scimHandler, t as PostgresDirectoryStoreOptions, u as parseScimFilter, v as DirectoryGroup, w as ERROR_SCHEMA, x as DirectoryStore, y as DirectoryMembershipSourceOptions } from "../index-
|
|
2
|
+
import { A as ScimFilter, C as DirectoryUser, D as PATCH_SCHEMA, E as LIST_SCHEMA, F as ScimTokenOptions, I as USER_SCHEMA, L as isDirectoryNotFoundError, M as ScimPage, N as ScimPageResult, O as ROLES_EXTENSION, P as ScimPatchOp, R as isDirectoryUniquenessError, S as DirectoryUniquenessError, T as GROUP_SCHEMA, _ as DirectoryChange, a as normalizePatchOps, b as DirectoryNotFoundError, c as filterSupported, d as resourceTypes, f as schemas, g as APP_DATA_EXTENSION, h as sha256Hex, i as directoryMembershipSource, j as ScimHandlerOptions, k as SCIM_CONTENT_TYPE, l as matchFilter, m as authenticateScim, n as postgresDirectoryStore, o as tenantFromPath, p as serviceProviderConfig, r as memoryDirectoryStore, s as scimHandler, t as PostgresDirectoryStoreOptions, u as parseScimFilter, v as DirectoryGroup, w as ERROR_SCHEMA, x as DirectoryStore, y as DirectoryMembershipSourceOptions } from "../index-CvcE9mYP.js";
|
|
3
3
|
export { APP_DATA_EXTENSION, type DirectoryChange, type DirectoryGroup, type DirectoryMembershipSourceOptions, DirectoryNotFoundError, type DirectoryStore, DirectoryUniquenessError, type DirectoryUser, ERROR_SCHEMA, GROUP_SCHEMA, LIST_SCHEMA, PATCH_SCHEMA, type PostgresDirectoryStoreOptions, ROLES_EXTENSION, SCIM_CONTENT_TYPE, type ScimFilter, type ScimHandlerOptions, type ScimPage, type ScimPageResult, type ScimPatchOp, type ScimTokenOptions, type SqlQuery, USER_SCHEMA, authenticateScim, directoryMembershipSource, filterSupported, isDirectoryNotFoundError, isDirectoryUniquenessError, matchFilter, memoryDirectoryStore, normalizePatchOps, parseScimFilter, postgresDirectoryStore, resourceTypes, schemas, scimHandler, serviceProviderConfig, sha256Hex, tenantFromPath };
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as PermDockValidationError, t as PROBLEM_BASE } from "../validation-error-
|
|
2
|
-
import { i as PermDockRevokedError, n as PermDockApprovalRequiredError, r as PermDockDeniedError, t as ApprovalHint } from "../errors-
|
|
1
|
+
import { n as PermDockValidationError, t as PROBLEM_BASE } from "../validation-error-CV0nV6_L.js";
|
|
2
|
+
import { i as PermDockRevokedError, n as PermDockApprovalRequiredError, r as PermDockDeniedError, t as ApprovalHint } from "../errors-D_SnqcRn.js";
|
|
3
3
|
import { t as RequestContext } from "../request-context-C2_1lchh.js";
|
|
4
|
-
import { a as StoredCredential, c as generateFeedKey, d as parseApiKey, f as parseFeedKey, i as MemoryCredentialStore, l as hashApiKey, n as ApiKeyParts, o as apiKeyVerifier, p as subjectFromApiKey, r as ApiKeySubjectOptions, s as generateApiKey, t as ApiKeyFailureCause, u as memoryCredentialStore } from "../credentials-
|
|
4
|
+
import { a as StoredCredential, c as generateFeedKey, d as parseApiKey, f as parseFeedKey, i as MemoryCredentialStore, l as hashApiKey, n as ApiKeyParts, o as apiKeyVerifier, p as subjectFromApiKey, r as ApiKeySubjectOptions, s as generateApiKey, t as ApiKeyFailureCause, u as memoryCredentialStore } from "../credentials-Bq-Xa7Vq.js";
|
|
5
5
|
import { i as memoryRevocationFeed, n as RevocationFeed, t as RevocationEvent } from "../revocations-BaUXHM1N.js";
|
|
6
|
-
import { C as TenantScope, D as ConnectionOptions, E as ConnectionData, S as TenantOption, T as Connection, _ as WebBotAuthVerifier, a as OperationScopes, b as invalidSignatureResponse, c as ServerPermDock, d as DiscoverViaSignatureAgentOptions, f as InvalidSignatureError, g as WebBotAuthOptions, h as WebBotAuthKeys, i as OpenApiHooks, l as ServerPermDockOptions, m as WebBotAuthKeyLookup, n as DeniedResponseEvent, o as ProtectOptions, p as WebBotAuthJwk, r as Guard, s as ScopeGuard, t as DeniedResponse, u as SnapshotQuery, v as discoverViaSignatureAgent, w as tenantScope, x as webBotAuthVerifier, y as invalidSignatureProblem } from "../server-types-
|
|
7
|
-
import { i as evaluationsHandler } from "../evaluations-
|
|
8
|
-
import { a as SupportSessionContext, c as SupportSessionSubjectOptions, d as ProblemFromErrorOptions, f as problemFromError, i as wwwAuthenticate, l as signSupportSession, n as problemResponse, o as SupportSessionFailureCause, p as createPermDock, r as validationProblem, s as SupportSessionSource, t as problemFromDecision, u as subjectFromSupportSession } from "../index-
|
|
9
|
-
import { l as ReplayStore } from "../types-
|
|
10
|
-
import { a as WebhookInput, c as WebhookMessage, d as WebhookSigningKey, f as WebhookVerifier, h as webhookVerifier, i as WebhookHeaders, l as WebhookSigner, m as webhookSigner, n as WebhookAlgorithm, o as WebhookJwk, p as WebhookVerifierOptions, r as WebhookFailureCause, s as WebhookJwks, t as VerifiedWebhookMessage, u as WebhookSignerOptions } from "../standard-webhooks-
|
|
11
|
-
import { t as memoryReplayStore } from "../replay-
|
|
12
|
-
import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotKey, r as SnapshotHeadersOptions, s as snapshotTag, t as CacheLifeForOptions } from "../snapshot-cache-
|
|
13
|
-
import { _ as subjectFromRunTicket, a as RunContext, c as RunResource, d as RunTicketFailureCause, f as RunTicketInput, g as signRunTicket, h as parseRunTicket, i as RunBinding, l as RunTicket, m as RunTicketSubjectOptions, n as RunActClaim, o as RunKind, p as RunTicketOptions, r as RunAutomation, s as RunPrincipal, t as RUN_TICKET_CLAIMS, u as RunTicketAutomations } from "../run-ticket-
|
|
6
|
+
import { C as TenantScope, D as ConnectionOptions, E as ConnectionData, S as TenantOption, T as Connection, _ as WebBotAuthVerifier, a as OperationScopes, b as invalidSignatureResponse, c as ServerPermDock, d as DiscoverViaSignatureAgentOptions, f as InvalidSignatureError, g as WebBotAuthOptions, h as WebBotAuthKeys, i as OpenApiHooks, l as ServerPermDockOptions, m as WebBotAuthKeyLookup, n as DeniedResponseEvent, o as ProtectOptions, p as WebBotAuthJwk, r as Guard, s as ScopeGuard, t as DeniedResponse, u as SnapshotQuery, v as discoverViaSignatureAgent, w as tenantScope, x as webBotAuthVerifier, y as invalidSignatureProblem } from "../server-types-C4q8_8MM.js";
|
|
7
|
+
import { i as evaluationsHandler } from "../evaluations-BVtY66lF.js";
|
|
8
|
+
import { a as SupportSessionContext, c as SupportSessionSubjectOptions, d as ProblemFromErrorOptions, f as problemFromError, i as wwwAuthenticate, l as signSupportSession, n as problemResponse, o as SupportSessionFailureCause, p as createPermDock, r as validationProblem, s as SupportSessionSource, t as problemFromDecision, u as subjectFromSupportSession } from "../index-CB_eM-qx.js";
|
|
9
|
+
import { l as ReplayStore } from "../types-BDgMzK1i.js";
|
|
10
|
+
import { a as WebhookInput, c as WebhookMessage, d as WebhookSigningKey, f as WebhookVerifier, h as webhookVerifier, i as WebhookHeaders, l as WebhookSigner, m as webhookSigner, n as WebhookAlgorithm, o as WebhookJwk, p as WebhookVerifierOptions, r as WebhookFailureCause, s as WebhookJwks, t as VerifiedWebhookMessage, u as WebhookSignerOptions } from "../standard-webhooks-B2g_yWK8.js";
|
|
11
|
+
import { t as memoryReplayStore } from "../replay-BpmpY2ev.js";
|
|
12
|
+
import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotKey, r as SnapshotHeadersOptions, s as snapshotTag, t as CacheLifeForOptions } from "../snapshot-cache-C1mN0pXe.js";
|
|
13
|
+
import { _ as subjectFromRunTicket, a as RunContext, c as RunResource, d as RunTicketFailureCause, f as RunTicketInput, g as signRunTicket, h as parseRunTicket, i as RunBinding, l as RunTicket, m as RunTicketSubjectOptions, n as RunActClaim, o as RunKind, p as RunTicketOptions, r as RunAutomation, s as RunPrincipal, t as RUN_TICKET_CLAIMS, u as RunTicketAutomations } from "../run-ticket-o4RxoaEN.js";
|
|
14
14
|
export { type ApiKeyFailureCause, type ApiKeyParts, type ApiKeySubjectOptions, type ApprovalHint, type CacheLifeForOptions, type Connection, type ConnectionData, type ConnectionOptions, type DeniedResponse, type DeniedResponseEvent, type DiscoverViaSignatureAgentOptions, type Guard, InvalidSignatureError, type MemoryCredentialStore, type OpenApiHooks, type OperationScopes, PROBLEM_BASE, PermDockApprovalRequiredError, PermDockDeniedError, PermDockRevokedError, PermDockValidationError, type ProblemFromErrorOptions, type ProtectOptions, RUN_TICKET_CLAIMS, type ReplayStore, type RequestContext, type RevocationEvent, type RevocationFeed, type RunActClaim, type RunAutomation, type RunBinding, type RunContext, type RunKind, type RunPrincipal, type RunResource, type RunTicket, type RunTicketAutomations, type RunTicketFailureCause, type RunTicketInput, type RunTicketOptions, type RunTicketSubjectOptions, type ScopeGuard, type ServerPermDock, type ServerPermDockOptions, type SnapshotHeaders, type SnapshotHeadersOptions, type SnapshotQuery, type StoredCredential, type SupportSessionContext, type SupportSessionFailureCause, type SupportSessionSource, type SupportSessionSubjectOptions, type TenantOption, type TenantScope, type VerifiedWebhookMessage, type WebBotAuthJwk, type WebBotAuthKeyLookup, type WebBotAuthKeys, type WebBotAuthOptions, type WebBotAuthVerifier, type WebhookAlgorithm, type WebhookFailureCause, type WebhookHeaders, type WebhookInput, type WebhookJwk, type WebhookJwks, type WebhookMessage, type WebhookSigner, type WebhookSignerOptions, type WebhookSigningKey, type WebhookVerifier, type WebhookVerifierOptions, apiKeyVerifier, cacheLifeFor, createPermDock, discoverViaSignatureAgent, evaluationsHandler, generateApiKey, generateFeedKey, hashApiKey, invalidSignatureProblem, invalidSignatureResponse, memoryCredentialStore, memoryReplayStore, memoryRevocationFeed, parseApiKey, parseFeedKey, parseRunTicket, problemFromDecision, problemFromError, problemResponse, signRunTicket, signSupportSession, snapshotHeaders, snapshotKey, snapshotTag, subjectFromApiKey, subjectFromRunTicket, subjectFromSupportSession, tenantScope, validationProblem, webBotAuthVerifier, webhookSigner, webhookVerifier, wwwAuthenticate };
|
package/dist/server/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import { n as PermDockDeniedError, r as PermDockRevokedError, t as PermDockAppro
|
|
|
3
3
|
import { t as memoryRevocationFeed } from "../revocations-Bhr0aMIC.js";
|
|
4
4
|
import { n as tenantScope } from "../adapter-context-OHikyRqV.js";
|
|
5
5
|
import { c as problemFromDecision, f as validationProblem, l as problemResponse, p as wwwAuthenticate } from "../problem-CPB8kqk7.js";
|
|
6
|
-
import { t as createPermDock } from "../create-
|
|
6
|
+
import { t as createPermDock } from "../create-D7D94oNh.js";
|
|
7
7
|
import { f as InvalidSignatureError, g as webBotAuthVerifier, h as invalidSignatureResponse, m as invalidSignatureProblem, o as evaluationsHandler, p as discoverViaSignatureAgent } from "../evaluations-Bj5xw0EM.js";
|
|
8
|
-
import { a as memoryCredentialStore, c as subjectFromApiKey, i as hashApiKey, n as generateApiKey, o as parseApiKey, r as generateFeedKey, s as parseFeedKey, t as apiKeyVerifier } from "../credentials-
|
|
8
|
+
import { a as memoryCredentialStore, c as subjectFromApiKey, i as hashApiKey, n as generateApiKey, o as parseApiKey, r as generateFeedKey, s as parseFeedKey, t as apiKeyVerifier } from "../credentials-BZU7Twpt.js";
|
|
9
9
|
import { t as problemFromError } from "../map-error-BCdb2Nrp.js";
|
|
10
10
|
import { t as memoryReplayStore } from "../replay-BU09ad4L.js";
|
|
11
11
|
import { i as snapshotTag, n as snapshotHeaders, r as snapshotKey, t as cacheLifeFor } from "../snapshot-cache-B66h7FBK.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { N as PolicyVocabulary, Q as Intent,
|
|
1
|
+
import { N as PolicyVocabulary, Q as Intent, Sr as Subject, Xn as Decision, en as Snapshot, on as SnapshotTenants, qt as Instant, ur as Actor, vr as JsonWebKeyLike } from "./policy-types-DU389Elz.js";
|
|
2
2
|
import { w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { a as PermDock, u as SnapshotOptions } from "./permdock-
|
|
4
|
-
import { m as ApprovalStore } from "./types-
|
|
5
|
-
import { a as ProblemDetails, t as ApprovalHint } from "./errors-
|
|
6
|
-
import { t as InstanceOptions } from "./instance-options-
|
|
3
|
+
import { a as PermDock, u as SnapshotOptions } from "./permdock-DV3opaI3.js";
|
|
4
|
+
import { m as ApprovalStore } from "./types-X40XNxRP.js";
|
|
5
|
+
import { a as ProblemDetails, t as ApprovalHint } from "./errors-D_SnqcRn.js";
|
|
6
|
+
import { t as InstanceOptions } from "./instance-options-DhQVCuhT.js";
|
|
7
7
|
import { t as RequestContext } from "./request-context-C2_1lchh.js";
|
|
8
|
-
import { n as PermDockWrap } from "./wrap-
|
|
8
|
+
import { n as PermDockWrap } from "./wrap-Bq9fHwuT.js";
|
|
9
9
|
import { n as RevocationFeed } from "./revocations-BaUXHM1N.js";
|
|
10
|
-
import { r as PdpFactory } from "./types-
|
|
11
|
-
import { i as evaluationsHandler } from "./evaluations-
|
|
10
|
+
import { r as PdpFactory } from "./types-CH67RMvL.js";
|
|
11
|
+
import { i as evaluationsHandler } from "./evaluations-BVtY66lF.js";
|
|
12
12
|
//#region src/server/connection.d.ts
|
|
13
13
|
type ConnectionData<T> = T | (() => T | null | undefined | Promise<T | null | undefined>);
|
|
14
14
|
type ConnectionOptions<T = unknown> = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Mt as Credential, Tt as SupportSession, X as DecisionSink, _n as
|
|
1
|
+
import { Mt as Credential, Tt as SupportSession, X as DecisionSink, _n as MembershipEvent, _t as TokenSigner, ln as AutomationEvent, sn as AccessEvent, un as CredentialEvent, vn as SinkEvent } from "./policy-types-DU389Elz.js";
|
|
2
2
|
import { K as AppData } from "./vocabulary-DeZvUaTw.js";
|
|
3
3
|
import { u as OperationRisk } from "./operations-BMPx7HyO.js";
|
|
4
|
-
import { t as Automation } from "./automation-
|
|
4
|
+
import { t as Automation } from "./automation-_iGeP54L.js";
|
|
5
5
|
//#region src/core/sink.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* The closed list of CloudEvents `type` values, `com.permdock.<family>` or
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as defineLeaf } from "./command-L8EstFNm.js";
|
|
2
2
|
import { t as checkFlag } from "./flags-BlmpmXoY.js";
|
|
3
3
|
import { r as pick, t as CANCELLED } from "./prompt-D1Gj1W4Y.js";
|
|
4
|
-
import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-
|
|
4
|
+
import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-C-9wjNaE.js";
|
|
5
5
|
//#region src/cli/commands/skills.ts
|
|
6
6
|
const forFlag = { for: {
|
|
7
7
|
type: "string",
|
|
@@ -2,7 +2,7 @@ import { t as byCodePoint } from "./compare-DTfyUunF.js";
|
|
|
2
2
|
import { i as readJsonFile } from "./files-BSjrtIHw.js";
|
|
3
3
|
import { l as packageRoot } from "./version-DMQ0dnN5.js";
|
|
4
4
|
import { t as didYouMean } from "./args-iafbHiXn.js";
|
|
5
|
-
import { a as nonEmptyOr } from "./output-
|
|
5
|
+
import { a as nonEmptyOr } from "./output-CuJfGWo6.js";
|
|
6
6
|
import { cpSync, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, readlinkSync, realpathSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { basename, dirname, join, relative, resolve } from "node:path";
|
|
8
8
|
import { pathToFileURL } from "node:url";
|
|
@@ -6,6 +6,7 @@ import { o as listPlans, s as listRoles } from "./vocabulary-BuYFWeCU.js";
|
|
|
6
6
|
import { g as secondsOf, l as isRfc3339, m as rfc3339, p as nowSeconds } from "./time-nR1JesoH.js";
|
|
7
7
|
import { i as sameId } from "./ids-DzhJaCUj.js";
|
|
8
8
|
import { d as scopeList, p as tenantOf, s as resolveScope } from "./scopes-gdH__vDZ.js";
|
|
9
|
+
import { n as expandGrants } from "./snapshot-compact-CUtXsx6i.js";
|
|
9
10
|
import { i as wireValidity } from "./validity-IcjQSR7I.js";
|
|
10
11
|
import { d as resolveActiveTenant, m as tenantsOf, r as isMembershipExpired } from "./tenancy-BlxY5T0q.js";
|
|
11
12
|
import { n as toWireDelegation, t as fromWireDelegation } from "./wire-delegation-Cv3W2eaM.js";
|
|
@@ -309,6 +310,11 @@ function validTypeLevel(value) {
|
|
|
309
310
|
const record = value;
|
|
310
311
|
return isKeyList(record["granted"]) && (record["approval"] === void 0 || isKeyList(record["approval"])) && (record["endpoint"] === void 0 || isKeyList(record["endpoint"]));
|
|
311
312
|
}
|
|
313
|
+
/**
|
|
314
|
+
* Validates a snapshot document, from JSON text or a value, and returns it
|
|
315
|
+
* frozen. Throws on an unsupported `v`, a malformed time, `typeLevel` or grant
|
|
316
|
+
* index, and on a key that would reach a prototype.
|
|
317
|
+
*/
|
|
312
318
|
function parseSnapshot(json) {
|
|
313
319
|
const input = typeof json === "string" ? JSON.parse(json) : json;
|
|
314
320
|
if (input === null || typeof input !== "object" || Array.isArray(input)) throw new Error("PermDock: snapshot must be an object");
|
|
@@ -321,6 +327,7 @@ function parseSnapshot(json) {
|
|
|
321
327
|
const authzVersion = record["authzVersion"];
|
|
322
328
|
if (authzVersion !== void 0 && (typeof authzVersion !== "number" || !Number.isSafeInteger(authzVersion) || authzVersion < 0) || record["sessionId"] !== void 0 && typeof record["sessionId"] !== "string") throw new Error("PermDock: snapshot authzVersion must be a non-negative integer and sessionId a string");
|
|
323
329
|
if (!validTypeLevel(record["typeLevel"])) throw new Error("PermDock: snapshot typeLevel must list permission keys under granted, approval and endpoint");
|
|
330
|
+
expandGrants(record);
|
|
324
331
|
return freezeDeep(value);
|
|
325
332
|
}
|
|
326
333
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { en as Snapshot, qt as Instant } from "./policy-types-
|
|
1
|
+
import { en as Snapshot, qt as Instant } from "./policy-types-DU389Elz.js";
|
|
2
2
|
//#region src/core/snapshot-cache.d.ts
|
|
3
3
|
type CacheLifeForOptions = {
|
|
4
4
|
/**
|
|
@@ -38,7 +38,7 @@ declare function cacheLifeFor(value: {
|
|
|
38
38
|
* for a missing version or tenant. It carries no claims, so a refreshed token
|
|
39
39
|
* at the same version keeps the key.
|
|
40
40
|
*/
|
|
41
|
-
declare function snapshotKey(snapshot: Snapshot): string;
|
|
41
|
+
declare function snapshotKey(snapshot: Pick<Snapshot, "authzVersion" | "subject">): string;
|
|
42
42
|
/**
|
|
43
43
|
* The `cacheTag` for one subject's cached snapshots: `permdock:<sub>`, or
|
|
44
44
|
* `permdock:anon` without a subject. Tag the private cache with it and pass it
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
|
+
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
|
+
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
4
|
+
//#region src/core/snapshot-compact.ts
|
|
5
|
+
/**
|
|
6
|
+
* The wire form of an expanded snapshot: each distinct set of grant terms is
|
|
7
|
+
* written once, in order of first use, so the same policy always serialises to
|
|
8
|
+
* the same bytes.
|
|
9
|
+
*/
|
|
10
|
+
function compactSnapshot(snapshot) {
|
|
11
|
+
const { grants, ...rest } = snapshot;
|
|
12
|
+
const indexes = /* @__PURE__ */ new Map();
|
|
13
|
+
const conditions = [];
|
|
14
|
+
const compacted = [];
|
|
15
|
+
for (const { permission, ...terms } of grants) {
|
|
16
|
+
const key = canonicalJson(terms);
|
|
17
|
+
let cond = indexes.get(key);
|
|
18
|
+
if (cond === void 0) {
|
|
19
|
+
cond = conditions.length;
|
|
20
|
+
indexes.set(key, cond);
|
|
21
|
+
conditions.push(terms);
|
|
22
|
+
}
|
|
23
|
+
const last = compacted.at(-1);
|
|
24
|
+
if (last?.permission !== permission) compacted.push({
|
|
25
|
+
permission,
|
|
26
|
+
cond
|
|
27
|
+
});
|
|
28
|
+
else if (typeof last.cond === "number") last.cond = [last.cond, cond];
|
|
29
|
+
else last.cond.push(cond);
|
|
30
|
+
}
|
|
31
|
+
return freezeDeep({
|
|
32
|
+
...rest,
|
|
33
|
+
conditions,
|
|
34
|
+
grants: compacted
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function bad(detail) {
|
|
38
|
+
return /* @__PURE__ */ new Error(`PermDock: snapshot ${detail}`);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The grants of a wire document as the `Snapshot` model holds them. Throws on a
|
|
42
|
+
* `conditions` that is not a list of objects or a grant whose `cond` is not an
|
|
43
|
+
* index into it, so a malformed document never reads as a narrower grant.
|
|
44
|
+
*/
|
|
45
|
+
function expandGrants(record) {
|
|
46
|
+
const conditions = record["conditions"];
|
|
47
|
+
const grants = record["grants"];
|
|
48
|
+
if (!Array.isArray(conditions) || !conditions.every(isRecord)) throw bad("conditions must be a list of objects");
|
|
49
|
+
if (!Array.isArray(grants)) throw bad("grants must be a list");
|
|
50
|
+
return { grants: grants.flatMap((grant) => {
|
|
51
|
+
if (!isRecord(grant) || typeof grant["permission"] !== "string") throw bad("grants must name a permission");
|
|
52
|
+
const permission = grant["permission"];
|
|
53
|
+
const cond = grant["cond"];
|
|
54
|
+
const indexes = Array.isArray(cond) ? cond : [cond];
|
|
55
|
+
if (indexes.length === 0) throw bad(`grant '${permission}' has an empty cond list`);
|
|
56
|
+
return indexes.map((index) => {
|
|
57
|
+
const terms = typeof index === "number" && Number.isInteger(index) && index >= 0 ? conditions[index] : void 0;
|
|
58
|
+
if (terms === void 0) throw bad(`grant '${permission}' has a cond that is not an index into conditions`);
|
|
59
|
+
return {
|
|
60
|
+
permission,
|
|
61
|
+
...terms
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
}) };
|
|
65
|
+
}
|
|
66
|
+
/** The flat form the evaluator reads, from a validated wire `Snapshot`. */
|
|
67
|
+
function expandSnapshot(snapshot) {
|
|
68
|
+
const { conditions: _conditions, grants: _grants, ...rest } = snapshot;
|
|
69
|
+
return freezeDeep({
|
|
70
|
+
...rest,
|
|
71
|
+
...expandGrants(snapshot)
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
export { expandGrants as n, expandSnapshot as r, compactSnapshot as t };
|
|
@@ -12,7 +12,7 @@ import { t as resourceIdOf } from "./resource-ref-CaS9yVPi.js";
|
|
|
12
12
|
import { n as rowIdOf, r as rowValues } from "./row-pair-DglMdRFh.js";
|
|
13
13
|
import { c as nowSeconds, f as rowInScope, n as inTeam, o as membershipField, r as isMembershipExpired, s as nestedAppliesWithoutRow } from "./tenancy-BlxY5T0q.js";
|
|
14
14
|
import { i as tokenPayload, n as decisionToken } from "./token-DaMnIU9O.js";
|
|
15
|
-
import { s as bindConditionRefs } from "./snapshot-
|
|
15
|
+
import { s as bindConditionRefs } from "./snapshot-D0VOanxQ.js";
|
|
16
16
|
//#region src/core/where-scope.ts
|
|
17
17
|
const ALWAYS = freezeDeep({
|
|
18
18
|
op: "eq",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { l as synthesiseRole, r as findRole, s as listRoles } from "./vocabulary-BuYFWeCU.js";
|
|
3
3
|
import { d as scopeList } from "./scopes-gdH__vDZ.js";
|
|
4
|
-
import { a as heldRoleNames } from "./snapshot-
|
|
5
|
-
import { t as filterMemberships } from "./membership-filter-
|
|
4
|
+
import { a as heldRoleNames } from "./snapshot-D0VOanxQ.js";
|
|
5
|
+
import { t as filterMemberships } from "./membership-filter-BWnfRQzo.js";
|
|
6
6
|
//#region src/core/snapshot-reads.ts
|
|
7
7
|
function assignableEntry(snapshot, tenant) {
|
|
8
8
|
if (tenant === void 0) return;
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { N as PolicyVocabulary, Xn as Decision, Yn as ApprovalRequiredDecision, en as Snapshot, nr as GrantedDecision, vt as TokenVerifier, yr as Membership } from "../policy-types-DU389Elz.js";
|
|
2
2
|
import { r as Role, w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { d as UncheckedData, s as RowData } from "../permdock-
|
|
4
|
-
import { c as requiredPlans } from "../errors-
|
|
5
|
-
import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-
|
|
3
|
+
import { d as UncheckedData, s as RowData } from "../permdock-DV3opaI3.js";
|
|
4
|
+
import { c as requiredPlans } from "../errors-D_SnqcRn.js";
|
|
5
|
+
import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-DwcoWMLB.js";
|
|
6
6
|
import { t as PermissionBoundaryState } from "../boundary-C9ck-3uK.js";
|
|
7
|
-
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, h as ProviderOptionsBase, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-
|
|
7
|
+
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, h as ProviderOptionsBase, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-BI-9ZU-5.js";
|
|
8
8
|
import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-L9UOwATg.js";
|
|
9
9
|
import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
|
|
10
10
|
import { Accessor, Accessor as Accessor$1, JSX } from "solid-js";
|
package/dist/solid/index.js
CHANGED
|
@@ -4,8 +4,8 @@ import { n as describe } from "../describe-BZAlPHxT.js";
|
|
|
4
4
|
import { n as boundaryFallback, t as boundaryDigest } from "../boundary-BV3O1eud.js";
|
|
5
5
|
import { n as actionRunner, r as approvalHeaders, t as actionApproval } from "../protected-action-OpOxtTsN.js";
|
|
6
6
|
import { a as livePermDock, c as rolesView, d as subjectView, f as tenantView, i as gateView, l as scopedTenant, n as describeWith, o as permissionSet, r as filterResult, s as protectedView, t as approvalHandle, u as slotContent } from "../views-MWmJ6Y4P.js";
|
|
7
|
-
import { a as eventSourceRefresh, i as broadcastChannelRefresh, l as isPromiseLike, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-
|
|
8
|
-
import { n as switchTenant, t as providerStore } from "../provider-store-
|
|
7
|
+
import { a as eventSourceRefresh, i as broadcastChannelRefresh, l as isPromiseLike, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-BYKNX_JG.js";
|
|
8
|
+
import { n as switchTenant, t as providerStore } from "../provider-store-tIAwP4aW.js";
|
|
9
9
|
import { ErrorBoundary, createComponent, createComputed, createContext, createMemo, createSignal, getOwner, on, onCleanup, useContext } from "solid-js";
|
|
10
10
|
//#region src/solid/context.ts
|
|
11
11
|
const PermDockContext = createContext(void 0);
|
|
@@ -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, 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, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-BJ76IZZg.js";
|
|
7
7
|
import { APIEvent, FetchEvent } from "@solidjs/start/server";
|
|
8
8
|
//#region src/solid-start/create.d.ts
|
|
9
9
|
/** The h3 event under every SolidStart request; `subject` and `scope` read it. */
|