permdock 0.22.0 → 0.23.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-_bHLMnVQ.js → adoption-scan-CNoE5yBA.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 +2 -2
- package/dist/app/index.d.ts +6 -6
- package/dist/app/index.js +4 -4
- package/dist/{approval-normalize-DNLW0zOM.js → approval-normalize-KfhzpD93.js} +1 -1
- package/dist/{approval-policies-UnDSxT__.d.ts → approval-policies-D7moEfTM.d.ts} +1 -1
- package/dist/{approval-prompt-2hTqo6IM.d.ts → approval-prompt-DtfKSH-8.d.ts} +1 -1
- package/dist/approvals/index.d.ts +3 -3
- package/dist/approvals/index.js +3 -3
- package/dist/{approvals-B_sn4Wrn.js → approvals-BfzI8Foe.js} +5 -5
- package/dist/{arazzo-BXD-VJU_.js → arazzo-4rMFOHbu.js} +1 -1
- package/dist/{arazzo-Ct0PGblq.js → arazzo-rsYPFgga.js} +2 -2
- package/dist/astro/index.d.ts +4 -4
- package/dist/astro/index.js +2 -2
- package/dist/{audience-5Xx1hdIv.js → audience-N2BqOvES.js} +1 -1
- package/dist/authzen/index.d.ts +5 -5
- package/dist/authzen/index.js +3 -3
- package/dist/{automation-B20_8UoT.d.ts → automation-CrGcfIZn.d.ts} +1 -1
- package/dist/better-auth/index.d.ts +1 -1
- package/dist/better-auth/index.js +1 -1
- package/dist/better-supabase/index.d.ts +35 -10
- package/dist/better-supabase/index.js +70 -21
- package/dist/{bind-B4Z0U2Gr.js → bind-Cx10JuJ-.js} +3 -3
- package/dist/{bind-CnOMjazH.d.ts → bind-N5jf6kjk.d.ts} +7 -7
- package/dist/{body-B3ylkmmE.js → body-Cy9S8zhw.js} +1 -1
- package/dist/{build-instance-B0vsViF5.js → build-instance-BDGzsGcn.js} +1 -1
- package/dist/{capability-YkRMUAsF.d.ts → capability-mLbd3KZ0.d.ts} +1 -1
- package/dist/{casbin-imBS3UIf.js → casbin-CjUT-wqV.js} +1 -1
- package/dist/{casbin-D5evU3lX.js → casbin-Dg5N0Gfa.js} +1 -1
- package/dist/catalog/index.d.ts +4 -4
- package/dist/catalog/index.js +5 -5
- package/dist/{catalog-Y4CjN8NA.js → catalog-BJu0A15r.js} +2 -2
- package/dist/{catalog-CoyKnU5c.js → catalog-CgA6-DQA.js} +1 -1
- package/dist/catalog-DqYnQz8U.js +1 -0
- package/dist/{catalog-doc-Zi0jRpyH.js → catalog-doc-BoSOQRXT.js} +2 -2
- package/dist/{challenge-B__LcNve.js → challenge-DVw1SrH9.js} +1 -1
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +3 -3
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +1 -1
- 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 +2 -2
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +2 -2
- package/dist/{cloud-DWCeStPH.js → cloud-Blw4AaQv.js} +2 -2
- package/dist/{codemod-BaPmaCYQ.js → codemod-BFFXaS-S.js} +1 -1
- package/dist/{codemod-B7QKJ_ak.js → codemod-ByRUKVp-.js} +2 -2
- package/dist/{collect-ScSG05VJ.js → collect-COqPRz6O.js} +2 -2
- package/dist/collect-CjFczu8a.js +1 -0
- package/dist/{collect-Cr71JA7z.js → collect-D3ToPa6Z.js} +1 -1
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-DC-BrhH1.d.ts → compile-DSwZUJmL.d.ts} +2 -2
- package/dist/{completion-DOUMyCwa.js → completion-BW53byZN.js} +1 -1
- package/dist/{config-DRp-E8Ly.js → config-B0qti4jI.js} +1 -1
- package/dist/{config-report-Bh_nLdAE.js → config-report-DgMqeeK6.js} +2 -2
- package/dist/{context-Cem4QafV.js → context-KrAhRY22.js} +2 -2
- package/dist/convex/index.d.ts +4 -4
- package/dist/convex/index.js +1 -1
- package/dist/{core-CUjhfz0W.js → core-DMQsq2Gv.js} +5 -5
- package/dist/{core-D2JNg5jA.d.ts → core-KsoqXWhf.d.ts} +2 -2
- package/dist/{create-BsL5lCWR.js → create-BRr7Gu7N.js} +6 -6
- package/dist/{create-oMCcZV4X.d.ts → create-ChK8bpCK.d.ts} +7 -7
- package/dist/{create-CPDSbK1a.d.ts → create-DGFv7Dje.d.ts} +4 -4
- package/dist/{create-BJ2_8NDO.js → create-bYkJ4-tg.js} +3 -3
- package/dist/{create-B2tdOygC.d.ts → create-goT32QIN.d.ts} +6 -6
- package/dist/{credential-Bap3HClV.js → credential-DrVrRL7z.js} +2 -2
- package/dist/{credentials-BXV0oz56.js → credentials-UwTE2wCW.js} +1 -1
- package/dist/{credentials-DPX140fN.d.ts → credentials-fqa_Xzzh.d.ts} +2 -2
- package/dist/{condition-evaluate-bVVRSdzq.js → delegation-CrdqnesZ.js} +123 -156
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-BXQkWU7d.d.ts → denied-text-BTMxIn5W.d.ts} +1 -1
- package/dist/{describe-DVobr5FX.d.ts → describe-CazEjtOH.d.ts} +1 -1
- package/dist/{diff-Jc_kbDz-.js → diff-BkuW_5dK.js} +1 -1
- package/dist/{diff-BR9JArxz.js → diff-DLcsCeVo.js} +3 -3
- package/dist/{doctor-DhqSiPkq.js → doctor-Jk2Ifezw.js} +2 -2
- package/dist/{doctor-BBMW5ZT_.js → doctor-oD08zL1e.js} +37 -19
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/elysia/index.d.ts +4 -4
- package/dist/elysia/index.js +3 -3
- package/dist/{errors-D_JIQJYb.d.ts → errors-CXxQwtbZ.d.ts} +1 -1
- package/dist/{evaluate-B5yZHmts.js → evaluate-_JdlbJ32.js} +11 -8
- package/dist/{evaluations-BzTDWO4m.js → evaluations-Bj5xw0EM.js} +3 -3
- package/dist/{evaluations-DQYfh4Jh.d.ts → evaluations-DcUW5VkX.d.ts} +3 -3
- package/dist/evaluator-BvRk9kiK.js +0 -0
- package/dist/evaluator-eager-DvmrpdZt.js +9 -0
- package/dist/evaluator-mHAoYEkk.js +2 -0
- 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 +3 -3
- package/dist/fastify/index.d.ts +4 -4
- package/dist/fastify/index.js +3 -3
- package/dist/{fetch-adapter-MoYZ-vF5.js → fetch-adapter-CAA3VJMX.js} +3 -3
- package/dist/{fetch-adapter-DxqsIXSO.d.ts → fetch-adapter-eQ-mdk8n.d.ts} +2 -2
- package/dist/{fields-CVyOk-f1.js → fields-B17OWcPx.js} +1 -1
- package/dist/fields-DlKwZYiy.js +26 -0
- package/dist/from-snapshot-CdGYjHUg.js +153 -0
- package/dist/{gen-WdycZ_-b.js → gen-BwcwwLok.js} +3 -3
- package/dist/{gen-DXXoFjyf.js → gen-D4ulqsYR.js} +1 -1
- package/dist/grantee-OG4klcNr.js +110 -0
- package/dist/{grantee-match-8J2y60MF.js → grantee-match-CPQ9zV-H.js} +1 -1
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +3 -3
- package/dist/{helpers-DzBIfL1N.js → helpers-CO2hDpBU.js} +1 -1
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +3 -3
- package/dist/{hosted-DXq1plaP.d.ts → hosted-BUCpV8-u.d.ts} +1 -1
- package/dist/{hosted-C5I2TSXm.js → hosted-cPDyrlsQ.js} +5 -4
- package/dist/{import-CvXswHDy.js → import-B2jgnNS0.js} +1 -1
- package/dist/{import-BE5sDazm.js → import-BsrnU4BF.js} +1 -1
- package/dist/{index-C-R8lBPb.d.ts → index-BXS29UnX.d.ts} +1 -1
- package/dist/{index-BcS8c_2S.d.ts → index-CvKGALWb.d.ts} +4 -4
- package/dist/{index-BdZpqhJK.d.ts → index-CxA-ygwc.d.ts} +2 -2
- package/dist/{index-Cjfa1Uwr.d.ts → index-DD2FBFdm.d.ts} +10 -8
- package/dist/{index-iIsqXFVu.d.ts → index-DQCBzEhO.d.ts} +4 -4
- package/dist/{index-C_8uxAlv.d.ts → index-DYAJ9JX1.d.ts} +4 -4
- package/dist/index.d.ts +16 -16
- package/dist/index.js +21 -18
- package/dist/{init-CqGHcvyR.js → init-Baq0yYfu.js} +1 -1
- package/dist/{init-B_S8Xdz1.js → init-Cik6ITgM.js} +3 -3
- package/dist/{instance-options-C6gEDOts.d.ts → instance-options-BDHB3qBG.d.ts} +1 -1
- package/dist/{instance-snapshot-D_dGTq--.js → instance-snapshot-LPNBG9np.js} +67 -8
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-NmxiWII2.js → kernel-BY3rVRs2.js} +8 -8
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{login-DoLxv1s5.js → login-CUboKh0f.js} +3 -3
- package/dist/{login-CzwlsBEO.js → login-CcBS1xkU.js} +1 -1
- package/dist/{manifest-BdzBobNK.js → manifest-BoCYBbQL.js} +1 -1
- package/dist/{manifest-B5yF3CIq.d.ts → manifest-C6eFl3Vo.d.ts} +1 -0
- package/dist/{manifest-BAf7cgRx.js → manifest-CIlVL-QT.js} +35 -35
- package/dist/{manifest-schema-CsFsYLF-.js → manifest-schema-svAkgqMc.js} +5 -1
- package/dist/{map-error-p4ROJ_26.js → map-error-BCdb2Nrp.js} +2 -2
- package/dist/may-use-D0_wNcgB.js +126 -0
- package/dist/mcp/index.d.ts +8 -8
- package/dist/mcp/index.js +5 -5
- package/dist/membership-filter-CfLdP_F9.js +68 -0
- package/dist/nest/index.d.ts +4 -4
- package/dist/nest/index.js +3 -3
- package/dist/next/index.d.ts +10 -10
- package/dist/next/index.js +6 -6
- 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 +2 -2
- package/dist/openai/index.d.ts +4 -4
- package/dist/openai/index.js +2 -2
- package/dist/openapi/index.d.ts +2 -2
- package/dist/{openapi-EmvKwuWj.js → openapi-DglIpD53.js} +2 -2
- package/dist/{openapi-DroBcLJZ.js → openapi-DobvXTF6.js} +2 -2
- package/dist/orpc/index.d.ts +5 -5
- package/dist/orpc/index.js +3 -3
- package/dist/otel/index.d.ts +3 -3
- package/dist/otel/index.js +1 -1
- package/dist/{output-CYgfpT6o.js → output-B81GJ6u6.js} +1 -1
- package/dist/{ownership-adPAsUwY.js → ownership-B7Ea-hUY.js} +3 -3
- package/dist/{parse-local-manifest-BaCqsqwC.d.ts → parse-local-manifest-DzZOzDsK.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +3 -3
- package/dist/{permdock-B5LyNVgn.js → permdock-HfTF99xX.js} +26 -15
- package/dist/{permdock-BaB-KQqn.d.ts → permdock-vD3mwLSm.d.ts} +3 -3
- package/dist/{permissions-COpRGKt7.js → permissions-CGYZqYsY.js} +2 -2
- package/dist/{policy-x8RBKW8d.d.ts → policy-B_cqFLHu.d.ts} +1 -1
- package/dist/{policy-wGzbAPQF.js → policy-BovcTojN.js} +5 -4
- package/dist/{policy-from-catalog-Cy103lsm.js → policy-from-catalog-lKL280I8.js} +7 -7
- package/dist/{policy-types-rNfz7t0M.d.ts → policy-types-CCBrL7me.d.ts} +14 -0
- package/dist/{postgrest-Cn0Res25.d.ts → postgrest-5WOO47Ud.d.ts} +2 -2
- package/dist/{powersync-BeI0VmEK.js → powersync-B6f4l8C1.js} +2 -2
- package/dist/{powersync-Dpa5AnnN.js → powersync-BUUqJfH2.js} +6 -6
- package/dist/powersync-D12Q6Chj.js +1 -0
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{protected-action-E7Sdt_Dt.js → protected-action-CdqR2-E2.js} +80 -12
- package/dist/{protected-action-C4aj1KjO.d.ts → protected-action-DGuJNiMA.d.ts} +20 -8
- package/dist/{provider-DKO9KHua.js → provider-6mpRZO1E.js} +21 -3
- package/dist/{provider-store-D4PU1my_.js → provider-store-BLd4UEmg.js} +4 -3
- package/dist/{provider-B-1DlOGM.d.ts → provider-yIM04TwN.d.ts} +1 -1
- package/dist/{pull-3tkn25ll.js → pull-4Yi8zYeU.js} +3 -3
- package/dist/pull-Dr6Bq5Jo.js +1 -0
- package/dist/{push-dMyKdlEm.js → push-Dv1nfFPr.js} +3 -3
- package/dist/{pushed-policy-P55cJNx5.d.ts → pushed-policy-B2ZSpnRY.d.ts} +1 -1
- package/dist/{pushed-policy-Bi5-il4C.js → pushed-policy-DJoyBZsd.js} +2 -2
- package/dist/react/index.d.ts +7 -7
- package/dist/react/index.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 -6
- package/dist/{replay-DKhFvt0L.d.ts → replay-CsErjiHt.d.ts} +1 -1
- package/dist/{request-context-5gl_oxO1.js → request-context-B_L4ev8L.js} +2 -2
- package/dist/resend/index.d.ts +4 -4
- package/dist/resend/index.js +2 -2
- package/dist/{resolve-names-BnGJU88N.js → resolve-names-SGcLjtFc.js} +10 -5
- package/dist/{rls-DIYSRnDZ.js → rls-Df9NEWD3.js} +1 -1
- package/dist/{rls-qrehUPf_.js → rls-hmwRIS3-.js} +11 -11
- package/dist/{role-builder-boQiUvfo.js → role-builder-BXdhhQcB.js} +5 -3
- package/dist/row-pair-DglMdRFh.js +34 -0
- package/dist/{rpc-BqRiVpbP.d.ts → rpc-D3St8vPO.d.ts} +1 -1
- package/dist/{rpc-Dhi55Whd.js → rpc-DFtputZ1.js} +1 -1
- package/dist/{run-oNqBe0gc.js → run-BXmJIjRA.js} +2 -2
- package/dist/run-DnzrDgU-.js +1 -0
- package/dist/{run-ticket-Dulj4RQk.d.ts → run-ticket-zfABczfh.d.ts} +2 -2
- package/dist/{saas-DABv6vjy.js → saas-DIThcxbn.js} +5 -5
- package/dist/{scan-BYXqcgON.js → scan-BrTSlc_5.js} +1 -1
- package/dist/{schema-Wf-SvlHG.js → schema-UOeI_LTB.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/server/index.d.ts +11 -11
- package/dist/server/index.js +5 -5
- package/dist/{server-types--_Hann81.d.ts → server-types-CtJSDhOv.d.ts} +8 -8
- package/dist/{sink-Cs6z34AX.d.ts → sink-BskpqwLl.d.ts} +2 -2
- package/dist/{skills-B9U465B7.js → skills-BTVeFptV.js} +1 -1
- package/dist/{skills-417bOj4o.js → skills-CAgWKbDR.js} +1 -1
- package/dist/{snapshot-C2j96x97.js → snapshot-BcHYtUIg.js} +57 -7
- package/dist/{snapshot-cache-Cc7VNabe.d.ts → snapshot-cache-BnXMcJbK.d.ts} +1 -1
- package/dist/snapshot-empty-BoPBFoB8.js +17 -0
- package/dist/snapshot-evaluate-CwYVSUgO.js +501 -0
- package/dist/snapshot-reads-DOsTYC82.js +66 -0
- 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 +3 -3
- package/dist/{sources-BfTza0zT.d.ts → sources-DhCtO9G8.d.ts} +2 -2
- package/dist/{src-BG9YJM3Q.js → src-BZKQe1lr.js} +13 -12
- package/dist/ssf/index.d.ts +3 -3
- package/dist/ssf/index.js +2 -2
- package/dist/{standard-webhooks-CJBgfl7y.d.ts → standard-webhooks-kQDkIPj3.d.ts} +2 -2
- package/dist/{store-BpKH-pLm.js → store-DXO0aVgf.js} +2 -2
- package/dist/{store-DSyjHD5-.d.ts → store-core-CDabEiO9.d.ts} +27 -6
- package/dist/{store-options-CXv6BHH6.js → store-options-COLWAd1K.js} +92 -12
- package/dist/{stores-BuqAHjp_.js → stores-DYxx75fk.js} +1 -1
- package/dist/{stores-C6-7TPTV.d.ts → stores-Mw_VAJ3B.d.ts} +5 -5
- package/dist/{subject-cache-d_Z4KAnm.d.ts → subject-cache-DrJGnRiV.d.ts} +1 -1
- package/dist/supabase/index.d.ts +7 -7
- package/dist/supabase/index.js +2 -2
- package/dist/supabase/middleware.d.ts +5 -5
- package/dist/supabase/middleware.js +5 -5
- package/dist/{supabase-DnazO6W4.js → supabase-BDr-fIHp.js} +1 -1
- package/dist/{supabase-D0J99yqL.js → supabase-Bt8rb-ah.js} +2 -2
- package/dist/{supabase-hook-Bh5syR9N.js → supabase-hook-Cb3UZpGC.js} +6 -5
- package/dist/supabase-hook-D1pwHu87.js +1 -0
- package/dist/{supautils-ChXR-4Or.js → supautils-CuR9rPsi.js} +8 -8
- 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 +2 -2
- package/dist/{tables-CbEOy2Ma.js → tables-Bl_ozD0k.js} +35 -13
- package/dist/tanstack-start/index.d.ts +4 -4
- package/dist/tanstack-start/index.js +2 -2
- package/dist/terminal/index.d.ts +5 -5
- package/dist/terminal/index.js +3 -3
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.d.ts +4 -4
- package/dist/testing/fixtures/index.js +7 -1
- package/dist/testing/index.d.ts +24 -24
- package/dist/testing/index.js +47 -41
- 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 +3 -3
- package/dist/{type-helpers-iXJEIDe7.d.ts → type-helpers-fQdBvtU0.d.ts} +1 -1
- package/dist/{types-BpxdxaRD.d.ts → types-BSGrzDPi.d.ts} +4 -4
- package/dist/{types-ZfjQB0KC.d.ts → types-CAp7UGiB.d.ts} +1 -1
- package/dist/{types-CD1qmxdx.d.ts → types-CErg7ft6.d.ts} +3 -3
- package/dist/{types-_pi9kxS2.d.ts → types-CXUwgZ3d.d.ts} +2 -2
- package/dist/{types-C_a44wSr.d.ts → types-Cc68_zqR.d.ts} +2 -2
- package/dist/{types-Cq2rvv-C.d.ts → types-CdXM6qPc.d.ts} +2 -2
- package/dist/{types-BSNZMp5b.d.ts → types-ChYCRn7Y.d.ts} +1 -1
- package/dist/{types-CuDXvyIT.d.ts → types-DDlaFDM3.d.ts} +4 -4
- package/dist/{types-NikV1pND.d.ts → types-DM0o1YyJ.d.ts} +4 -4
- package/dist/{types-B9F0EZAF.d.ts → types-DyA4Loy4.d.ts} +3 -3
- package/dist/{types-CS1DI_Ke.d.ts → types-JmB6unT6.d.ts} +1 -1
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-0wsl83uw.js → usage-B6sQwycY.js} +4 -4
- package/dist/{usage-Bl-BkXEq.js → usage-CNkKk27O.js} +1 -1
- package/dist/usage-Cem1FOeJ.js +1 -0
- package/dist/{validation-error-DLAYFlkr.d.ts → validation-error-BE8bpmhR.d.ts} +1 -1
- package/dist/{validity-Buc7w8E9.js → validity-IcjQSR7I.js} +1 -26
- package/dist/{verify-BSLotSa0.js → verify-OtU4yCzg.js} +11 -11
- package/dist/{version-sources-BC3hf2ME.js → version-sources-BZ7V6Z8Z.js} +1 -1
- package/dist/{grantee-Dke-9rd1.js → vocabulary-BuYFWeCU.js} +1 -107
- package/dist/vue/index.d.ts +5 -5
- package/dist/vue/index.js +2 -2
- package/dist/{waiter-cbK1CBhT.d.ts → waiter-LdnPaBJE.d.ts} +2 -2
- package/dist/watch-B8F7Wgdy.js +1 -0
- package/dist/{watch-BigZ260i.js → watch-CR2ZIT_5.js} +1 -1
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/{who-can-CjfMP9a4.js → who-can-DcrHB6ya.js} +2 -2
- 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-B-k2qHJx.d.ts → wrap-CVBPIuEs.d.ts} +2 -2
- package/package.json +1 -1
- package/schemas/supabase-manifest-v1.json +7 -1
- package/skills/permdock-wire/references/adapters.md +2 -0
- package/dist/catalog-C462QC3A.js +0 -1
- package/dist/collect-W9i7REKT.js +0 -1
- package/dist/from-snapshot-oR_N97dM.js +0 -927
- package/dist/powersync-BdoR7nwS.js +0 -1
- package/dist/pull-D90HqWNP.js +0 -1
- package/dist/run-elFdnSZx.js +0 -1
- package/dist/supabase-hook-CVAenq-w.js +0 -1
- package/dist/usage-CmyGbo4e.js +0 -1
- package/dist/watch-CHURMgrv.js +0 -1
- package/dist/{connection-QFsv-kbh.js → connection-zoAgwdsD.js} +1 -1
- package/dist/{problem-BWP1l86g.js → problem-CPB8kqk7.js} +1 -1
- package/dist/{wrap-BKU5Arsu.js → wrap-C5PWzgkq.js} +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { $ as JwtClaims, B as SupportAccessOptions, D as Policy, Dr as ConditionRef, F as RoleBinding, Fr as SqlFunctionArg, I as RoleOptions, Ir as SqlFunctionCondition, Kt as InstanceHandle, N as PolicyVocabulary, Qn as DenialReason, Qt as LocalSnapshotManifest, R as SeparationConflict, Sn as Scope, T as MembershipFixture, U as VocabularyFromInput, Xn as Denial, Yn as Decision, Z as EntitlementSource, _ as Grant, _n as SinkEvent, _t as TokenSigner, an as SnapshotTenants, ct as RelationSource, en as Snapshot, fn as DeliveryEvent, hr as Delegation, ht as TenantSettings, it as MembershipSource, j as PolicyOptions, jr as OpaqueCondition, k as PolicyDelegation, l as AssuranceRequirement, lt as SettingsSource, o as ApprovalOption, on as AccessEvent, ot as RelationGroup, pr as CustomRole, q as CustomRoleSource, qt as Instant, u as BreakGlassOptions, un as DecisionEvent, ut as SnapshotSource, v as GrantCondition, vr as Membership, xn as PolicyScopesInput, xr as Subject, yr as Principal } from "./policy-types-
|
|
1
|
+
import { $ as JwtClaims, B as SupportAccessOptions, D as Policy, Dr as ConditionRef, F as RoleBinding, Fr as SqlFunctionArg, I as RoleOptions, Ir as SqlFunctionCondition, Kt as InstanceHandle, N as PolicyVocabulary, Qn as DenialReason, Qt as LocalSnapshotManifest, R as SeparationConflict, Sn as Scope, T as MembershipFixture, U as VocabularyFromInput, Xn as Denial, Yn as Decision, Z as EntitlementSource, _ as Grant, _n as SinkEvent, _t as TokenSigner, an as SnapshotTenants, ct as RelationSource, en as Snapshot, fn as DeliveryEvent, hr as Delegation, ht as TenantSettings, it as MembershipSource, j as PolicyOptions, jr as OpaqueCondition, k as PolicyDelegation, l as AssuranceRequirement, lt as SettingsSource, o as ApprovalOption, on as AccessEvent, ot as RelationGroup, pr as CustomRole, q as CustomRoleSource, qt as Instant, u as BreakGlassOptions, un as DecisionEvent, ut as SnapshotSource, v as GrantCondition, vr as Membership, xn as PolicyScopesInput, xr as Subject, yr as Principal } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { A as ResourceInit, B as ResourceXTree, D as PermissionsOf, E as PermissionTree, F as ResourceOptions, I as ResourceParent, N as ResourceMeta, O as PermissionsOptions, P as ResourceNode, R as ResourceRelationInput, T as PermissionKind, a as RoleTree, g as ActionMeta, h as ActionList, r as Role, w as Permission, z as ResourceRestricted } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { a as PermDock } from "./permdock-
|
|
4
|
-
import { o as PolicyDocument } from "./hosted-
|
|
5
|
-
import { n as PermDockWrap } from "./wrap-
|
|
6
|
-
import { s as VersionCache } from "./subject-cache-
|
|
3
|
+
import { a as PermDock } from "./permdock-vD3mwLSm.js";
|
|
4
|
+
import { o as PolicyDocument } from "./hosted-BUCpV8-u.js";
|
|
5
|
+
import { n as PermDockWrap } from "./wrap-CVBPIuEs.js";
|
|
6
|
+
import { s as VersionCache } from "./subject-cache-DrJGnRiV.js";
|
|
7
7
|
import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
|
|
8
|
-
import { i as CatalogEventData, s as CloudEvent } from "./sink-
|
|
8
|
+
import { i as CatalogEventData, s as CloudEvent } from "./sink-BskpqwLl.js";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
10
10
|
//#region src/conditions/refs.d.ts
|
|
11
11
|
type KnownRefField = "id" | "issuer" | "kind" | "tenant" | "team" | "roles" | "plans" | "memberships" | "assurance" | "binding" | "session" | "claims";
|
|
@@ -111,12 +111,14 @@ declare function customRoleClaim(roles: readonly CustomRole[], policy?: Policy):
|
|
|
111
111
|
//#region src/core/snapshot.d.ts
|
|
112
112
|
declare function parseSnapshot(json: unknown): Snapshot;
|
|
113
113
|
//#endregion
|
|
114
|
+
//#region src/core/snapshot-empty.d.ts
|
|
115
|
+
declare function emptySnapshot(): Snapshot;
|
|
116
|
+
//#endregion
|
|
114
117
|
//#region src/core/from-snapshot.d.ts
|
|
115
118
|
declare function fromSnapshot(snapshot: Snapshot, options?: {
|
|
116
119
|
readonly tenant?: string;
|
|
117
120
|
readonly team?: string;
|
|
118
121
|
}): PermDock;
|
|
119
|
-
declare function emptySnapshot(): Snapshot;
|
|
120
122
|
//#endregion
|
|
121
123
|
//#region src/core/approval-required.d.ts
|
|
122
124
|
declare function requiresApproval(approval: Grant["approval"] | undefined): boolean;
|
|
@@ -1147,4 +1149,4 @@ declare function coveredByDelegation(permission: DelegatedPermission, delegation
|
|
|
1147
1149
|
*/
|
|
1148
1150
|
declare function delegatedPermissions(delegations: readonly PolicyDelegation[] | undefined, subject: Subject, heldRoles: ReadonlySet<string>, now: number): ReadonlySet<string> | undefined;
|
|
1149
1151
|
//#endregion
|
|
1150
|
-
export { resource as $, listPermissions as $t, RoleChangeCheckInput as A, MemoryEdge as At, ActivateInput as B, memoryCustomRoleSource as Bt, parseCatalogEventData as C, snapshotFromClaims as Ct, parseSinkEvents as D, HoldingVia as Dt, parseSinkEvent as E, Holder as Et, checkRoleChange as F, claimsFirst as Ft, allow as G, subjectMembershipSource as Gt, breakGlass as H, memoryMembershipSource as Ht, decideRoleChange as I, composeMemberships as It, role as J, sqlFunction as Jt, deny as K, AccessOutcome as Kt, normalizeMembership as L, countHolders as Lt, RoleChangeOptions as M, memoryRelationSource as Mt, RoleChangeTarget as N, StripeEntitlementsClient as Nt, RoleChange as O, WhoCan as Ot, RoleRules as P, stripeEntitlementSource as Pt, formerKeys as Q, isPermission as Qt, normalizeMemberships as R, isExternallyManaged as Rt, SINK_EVENT_SCHEMAS as S, principal as Sn, snapshotClaims as St, parseCloudEventBatch as T, signPolicyDocument as Tt, supportAccess as U, memorySettingsSource as Ut, activate as V, memoryEntitlementSource as Vt, normalizeApproval as W, memorySnapshotSource as Wt, readable as X, findPermission as Xt, crud as Y, opaque as Yt, writable as Z, getResource as Zt, DECISION_EVENT_SCHEMA as _, parseCustomRoleEntry as _n, simulateArazzo as _t, catalogFingerprint as a, requiresApproval as an, customRoleSource as at, EVENT_SCHEMA_IDS as b, claim as bn, SnapshotClaims as bt, OCSF_VERSION as c, parseSnapshot as cn, ShadowMismatch as ct, accessToOcsf as d, CustomRoleEntry as dn, localSnapshotManifest as dt, mergePermissions as en, definePermissions as et, toOcsf as f, CustomRoleRename as fn, ArazzoFinding as ft, CREDENTIAL_EVENT_SCHEMA as g, customRoleClaim as gn, arazzoFindings as gt, CATALOG_EVENT_SCHEMA as h, ValidateCustomRoleOptions as hn, ArazzoStepResult as ht, canonicalJson as i, separationConflicts as in, CustomRoleSourceOptions as it, RoleChangeDecision as j, MemoryRelationSourceData as jt, RoleChangeCheck as k, whoCan as kt, OcsfAuthorizeSession as l, CustomRoleDrop as ln, ShadowOptions as lt, AUTOMATION_EVENT_SCHEMA as m, ResolvedCustomRole as mn, ArazzoSimulateInput as mt, delegatedPermissions as n, definePolicy as nn, snapshotFor as nt, CSV_COLUMNS as o,
|
|
1152
|
+
export { resource as $, listPermissions as $t, RoleChangeCheckInput as A, MemoryEdge as At, ActivateInput as B, memoryCustomRoleSource as Bt, parseCatalogEventData as C, snapshotFromClaims as Ct, parseSinkEvents as D, HoldingVia as Dt, parseSinkEvent as E, Holder as Et, checkRoleChange as F, claimsFirst as Ft, allow as G, subjectMembershipSource as Gt, breakGlass as H, memoryMembershipSource as Ht, decideRoleChange as I, composeMemberships as It, role as J, sqlFunction as Jt, deny as K, AccessOutcome as Kt, normalizeMembership as L, countHolders as Lt, RoleChangeOptions as M, memoryRelationSource as Mt, RoleChangeTarget as N, StripeEntitlementsClient as Nt, RoleChange as O, WhoCan as Ot, RoleRules as P, stripeEntitlementSource as Pt, formerKeys as Q, isPermission as Qt, normalizeMemberships as R, isExternallyManaged as Rt, SINK_EVENT_SCHEMAS as S, principal as Sn, snapshotClaims as St, parseCloudEventBatch as T, signPolicyDocument as Tt, supportAccess as U, memorySettingsSource as Ut, activate as V, memoryEntitlementSource as Vt, normalizeApproval as W, memorySnapshotSource as Wt, readable as X, findPermission as Xt, crud as Y, opaque as Yt, writable as Z, getResource as Zt, DECISION_EVENT_SCHEMA as _, parseCustomRoleEntry as _n, simulateArazzo as _t, catalogFingerprint as a, requiresApproval as an, customRoleSource as at, EVENT_SCHEMA_IDS as b, claim as bn, SnapshotClaims as bt, OCSF_VERSION as c, parseSnapshot as cn, ShadowMismatch as ct, accessToOcsf as d, CustomRoleEntry as dn, localSnapshotManifest as dt, mergePermissions as en, definePermissions as et, toOcsf as f, CustomRoleRename as fn, ArazzoFinding as ft, CREDENTIAL_EVENT_SCHEMA as g, customRoleClaim as gn, arazzoFindings as gt, CATALOG_EVENT_SCHEMA as h, ValidateCustomRoleOptions as hn, ArazzoStepResult as ht, canonicalJson as i, separationConflicts as in, CustomRoleSourceOptions as it, RoleChangeDecision as j, MemoryRelationSourceData as jt, RoleChangeCheck as k, whoCan as kt, OcsfAuthorizeSession as l, CustomRoleDrop as ln, ShadowOptions as lt, AUTOMATION_EVENT_SCHEMA as m, ResolvedCustomRole as mn, ArazzoSimulateInput as mt, delegatedPermissions as n, definePolicy as nn, snapshotFor as nt, CSV_COLUMNS as o, fromSnapshot as on, mayAccess as ot, ACCESS_EVENT_SCHEMA as p, CustomRoleValidation as pn, ArazzoPlan as pt, normalizeAssurance as q, accessOutcome as qt, sha256Digest as r, isRoleName as rn, CustomRoleReader as rt, toCsvRow as s, emptySnapshot as sn, LegacyCheck as st, coveredByDelegation as t, RoleNameOf as tn, SnapshotForOptions as tt, OcsfUserManagement as u, CustomRoleDropReason as un, shadowMode as ut, DELIVERY_EVENT_SCHEMA as v, resolveCustomRole as vn, deliveryEvent as vt, parseCloudEvent as w, SignPolicyDocumentOptions as wt, MEMBERSHIP_EVENT_SCHEMA as x, context as xn, signSnapshot as xt, DIRECTORY_EVENT_SCHEMA as y, validateCustomRole as yn, SignSnapshotOptions as yt, resolveScope as z, APPROVAL_POLICY_UNAVAILABLE as zt };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, X as DecisionSink, dn as DeliveryChannel, yr as Principal } from "./policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, X as DecisionSink, dn as DeliveryChannel, yr as Principal } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
3
|
import { t as Operation } from "./operations-BMPx7HyO.js";
|
|
4
|
-
import { _ as PrincipalSource, a as PermDock } from "./permdock-
|
|
4
|
+
import { _ as PrincipalSource, a as PermDock } from "./permdock-vD3mwLSm.js";
|
|
5
5
|
import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
|
|
6
|
-
import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, g as TransportMessages, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, o as DeliveryResult, r as DeliverOptions, s as DeliveryTarget, y as WebhookTransport } from "./types-
|
|
7
|
-
import { l as WebhookSigner } from "./standard-webhooks-
|
|
6
|
+
import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, g as TransportMessages, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, o as DeliveryResult, r as DeliverOptions, s as DeliveryTarget, y as WebhookTransport } from "./types-DyA4Loy4.js";
|
|
7
|
+
import { l as WebhookSigner } from "./standard-webhooks-kQDkIPj3.js";
|
|
8
8
|
//#region src/delivery/audience.d.ts
|
|
9
9
|
type Audience = {
|
|
10
10
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as Policy, En as Approver, Yn as Decision, _t as TokenSigner, ct as RelationSource, dr as AuthorizationDetail, it as MembershipSource, qt as Instant, vr as Membership, xr as Subject } from "./policy-types-
|
|
1
|
+
import { D as Policy, En as Approver, Yn as Decision, _t as TokenSigner, ct as RelationSource, dr as AuthorizationDetail, it as MembershipSource, qt as Instant, vr as Membership, xr as Subject } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { E as PermissionTree, K as AppData, w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { a as PermDock } from "./permdock-
|
|
4
|
-
import { a as ApprovalDelegationSource, c as ApprovalListQuery, g as ApprovalVerdict, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, o as ApprovalInspectResult, r as ApprovalCancelMeta, s as ApprovalListFilter, u as ApprovalRequest } from "./types-
|
|
5
|
-
import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, r as AccessReviewItem, t as AccessReview } from "./types-
|
|
3
|
+
import { a as PermDock } from "./permdock-vD3mwLSm.js";
|
|
4
|
+
import { a as ApprovalDelegationSource, c as ApprovalListQuery, g as ApprovalVerdict, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, o as ApprovalInspectResult, r as ApprovalCancelMeta, s as ApprovalListFilter, u as ApprovalRequest } from "./types-CAp7UGiB.js";
|
|
5
|
+
import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, r as AccessReviewItem, t as AccessReview } from "./types-ChYCRn7Y.js";
|
|
6
6
|
import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
|
|
7
7
|
//#region src/approvals/access-reviews/handler.d.ts
|
|
8
8
|
type AccessReviewsHandlerOptions = {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { $n as DeniedDecision, $t as LocalSnapshotRows, A as PolicyOAuthScope, An as UserApprover, Ar as MemberOfParent, At as parseSupportSession, B as SupportAccessOptions, Bn as actor, Br as isConditionRef, Bt as DecideCredentialOptions, C as GrantValidity, Cn as ScopeDeclaration, Cr as ActorKind, Ct as WhereCompiler, D as Policy, Dn as ApproverInput, Dr as ConditionRef, Dt as SupportSessionPolicy, E as ObligationInput, En as Approver, Er as Condition, Et as SupportSessionDecision, F as RoleBinding, Fn as user, Fr as SqlFunctionArg, Ft as CredentialPermission, G as CredentialVerifier, Gn as plan, Gt as parseCredential, H as ValidateMode, Hn as assurance, Ht as credentialPolicyViolation, I as RoleOptions, In as Grantee, Ir as SqlFunctionCondition, It as CredentialPermissionInput, J as CustomRoleSourceFactory, Jn as ApprovalRequiredDecision, Jt as LocalCustomRoleTable, K as CustomRoleContext, Kn as relation, L as RoleScope, Ln as GranteeInput, Lr as hasConditionOp, Lt as CredentialPolicy, M as PolicyScopes, Mn as anyOf, Mr as RelatedCondition, Mt as Credential, Nn as holder, Nr as RelatedHop, Nt as CredentialDecision, O as PolicyAppDataSchemas, On as ManagerApprover, Or as ConditionValue, Ot as SupportSessionRequest, P as PrincipalOf, Pn as manager, Pr as RestrictedAncestors, Pt as CredentialKind, Q as Intent, Qn as DenialReason, Qt as LocalSnapshotManifest, R as SeparationConflict, Rn as InheritGrantee, Rr as isCondition, Rt as CredentialPolicyViolation, S as GrantScope, Sn as Scope, Sr as VerifiedClaims, St as VersionQuery, T as MembershipFixture, Tn as AnyOfApprover, Tr as MembershipVia, Tt as SupportSession, Un as authenticated, Ut as decideCredential, V as SupportConsent, Vn as anyone, Vr as isSqlFunctionField, Vt as credentialDelegation, W as WireValidity, Wn as inherit, Wt as isFeedId, X as DecisionSink, Xn as Denial, Xt as LocalRowColumn, Y as DecisionProvider, Yn as Decision, Yt as LocalMembershipRows, Z as EntitlementSource, Zn as DenialDetails, Zt as LocalRowValue, _ as Grant, _n as SinkEvent, _t as TokenSigner, a as ApprovalMode, an as SnapshotTenants, ar as Quota, at as RelationChain, b as GrantMeta, br as SharedCustomRole, bt as VerifiedToken, c as ApprovalStage, cn as AutomationEvent, cr as TraceSkipReason, ct as RelationSource, d as BreakGlassRequirements, dn as DeliveryChannel, dr as AuthorizationDetail, dt as SourceCall, en as Snapshot, er as ExplainedDecision, et as LimitConsumeInput, f as BreakGlassSpec, fn as DeliveryEvent, fr as Binding, ft as SourceContext, g as DelegationTarget, gn as MembershipEvent, gr as GnapAccess, gt as TokenFailureCause, h as DelegationInput, hn as EmailCategory, hr as Delegation, ht as TenantSettings, i as ApprovalFallback, in as SnapshotScope, ir as Obligation, it as MembershipSource, jn as allOf, jt as ApiKeyPrincipal, k as PolicyDelegation, kn as PermissionApprover, kr as MemberOfCondition, kt as decideSupportSession, l as AssuranceRequirement, ln as CredentialEvent, lr as Actor, lt as SettingsSource, m as ClosureGrantFn, mn as DirectoryEvent, mr as CustomRoleGrant, mt as SubjectResolver, n as ApprovalCombine, nn as SnapshotGrant, nr as LimitDetail, nt as LimitStore, o as ApprovalOption, on as AccessEvent, or as Trace, ot as RelationGroup, p as ClosureContext, pn as DeliveryFailureCause, pr as CustomRole, pt as SourceMemo, q as CustomRoleSource, qn as AppObligation, r as ApprovalEscalation, rn as SnapshotNotEntitled, rr as MatchedGrant, rt as MemberEntry, s as ApprovalRequirement, sn as AuthEvent, sr as TraceSkip, st as RelationHolder, t as ActivationOption, tn as SnapshotAssignable, tr as GrantedDecision, tt as LimitRemaining, u as BreakGlassOptions, un as DecisionEvent, ur as Assurance, ut as SnapshotSource, v as GrantCondition, vn as WireDecision, vr as Membership, vt as TokenVerifier, w as HostedGrantRef, wn as ScopeNames, wr as AdapterId, wt as DecideSupportSessionOptions, x as GrantOptions, xn as PolicyScopesInput, xr as Subject, xt as VersionContext, y as GrantLimit, yn as WireDenial, yr as Principal, yt as VerificationFailure, z as SubjectOf, zn as RelationGrantee, zr as isConditionDate, zt as CredentialRequest } from "./policy-types-
|
|
1
|
+
import { $n as DeniedDecision, $t as LocalSnapshotRows, A as PolicyOAuthScope, An as UserApprover, Ar as MemberOfParent, At as parseSupportSession, B as SupportAccessOptions, Bn as actor, Br as isConditionRef, Bt as DecideCredentialOptions, C as GrantValidity, Cn as ScopeDeclaration, Cr as ActorKind, Ct as WhereCompiler, D as Policy, Dn as ApproverInput, Dr as ConditionRef, Dt as SupportSessionPolicy, E as ObligationInput, En as Approver, Er as Condition, Et as SupportSessionDecision, F as RoleBinding, Fn as user, Fr as SqlFunctionArg, Ft as CredentialPermission, G as CredentialVerifier, Gn as plan, Gt as parseCredential, H as ValidateMode, Hn as assurance, Ht as credentialPolicyViolation, I as RoleOptions, In as Grantee, Ir as SqlFunctionCondition, It as CredentialPermissionInput, J as CustomRoleSourceFactory, Jn as ApprovalRequiredDecision, Jt as LocalCustomRoleTable, K as CustomRoleContext, Kn as relation, L as RoleScope, Ln as GranteeInput, Lr as hasConditionOp, Lt as CredentialPolicy, M as PolicyScopes, Mn as anyOf, Mr as RelatedCondition, Mt as Credential, Nn as holder, Nr as RelatedHop, Nt as CredentialDecision, O as PolicyAppDataSchemas, On as ManagerApprover, Or as ConditionValue, Ot as SupportSessionRequest, P as PrincipalOf, Pn as manager, Pr as RestrictedAncestors, Pt as CredentialKind, Q as Intent, Qn as DenialReason, Qt as LocalSnapshotManifest, R as SeparationConflict, Rn as InheritGrantee, Rr as isCondition, Rt as CredentialPolicyViolation, S as GrantScope, Sn as Scope, Sr as VerifiedClaims, St as VersionQuery, T as MembershipFixture, Tn as AnyOfApprover, Tr as MembershipVia, Tt as SupportSession, Un as authenticated, Ut as decideCredential, V as SupportConsent, Vn as anyone, Vr as isSqlFunctionField, Vt as credentialDelegation, W as WireValidity, Wn as inherit, Wt as isFeedId, X as DecisionSink, Xn as Denial, Xt as LocalRowColumn, Y as DecisionProvider, Yn as Decision, Yt as LocalMembershipRows, Z as EntitlementSource, Zn as DenialDetails, Zt as LocalRowValue, _ as Grant, _n as SinkEvent, _t as TokenSigner, a as ApprovalMode, an as SnapshotTenants, ar as Quota, at as RelationChain, b as GrantMeta, br as SharedCustomRole, bt as VerifiedToken, c as ApprovalStage, cn as AutomationEvent, cr as TraceSkipReason, ct as RelationSource, d as BreakGlassRequirements, dn as DeliveryChannel, dr as AuthorizationDetail, dt as SourceCall, en as Snapshot, er as ExplainedDecision, et as LimitConsumeInput, f as BreakGlassSpec, fn as DeliveryEvent, fr as Binding, ft as SourceContext, g as DelegationTarget, gn as MembershipEvent, gr as GnapAccess, gt as TokenFailureCause, h as DelegationInput, hn as EmailCategory, hr as Delegation, ht as TenantSettings, i as ApprovalFallback, in as SnapshotScope, ir as Obligation, it as MembershipSource, jn as allOf, jt as ApiKeyPrincipal, k as PolicyDelegation, kn as PermissionApprover, kr as MemberOfCondition, kt as decideSupportSession, l as AssuranceRequirement, ln as CredentialEvent, lr as Actor, lt as SettingsSource, m as ClosureGrantFn, mn as DirectoryEvent, mr as CustomRoleGrant, mt as SubjectResolver, n as ApprovalCombine, nn as SnapshotGrant, nr as LimitDetail, nt as LimitStore, o as ApprovalOption, on as AccessEvent, or as Trace, ot as RelationGroup, p as ClosureContext, pn as DeliveryFailureCause, pr as CustomRole, pt as SourceMemo, q as CustomRoleSource, qn as AppObligation, r as ApprovalEscalation, rn as SnapshotNotEntitled, rr as MatchedGrant, rt as MemberEntry, s as ApprovalRequirement, sn as AuthEvent, sr as TraceSkip, st as RelationHolder, t as ActivationOption, tn as SnapshotAssignable, tr as GrantedDecision, tt as LimitRemaining, u as BreakGlassOptions, un as DecisionEvent, ur as Assurance, ut as SnapshotSource, v as GrantCondition, vn as WireDecision, vr as Membership, vt as TokenVerifier, w as HostedGrantRef, wn as ScopeNames, wr as AdapterId, wt as DecideSupportSessionOptions, x as GrantOptions, xn as PolicyScopesInput, xr as Subject, xt as VersionContext, y as GrantLimit, yn as WireDenial, yr as Principal, yt as VerificationFailure, z as SubjectOf, zn as RelationGrantee, zr as isConditionDate, zt as CredentialRequest } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { A as ResourceInit, B as ResourceXTree, D as PermissionsOf, E as PermissionTree, F as ResourceOptions, G as RESOURCE_X, H as PERMISSION_ROW, I as ResourceParent, J as MetaValue, K as AppData, L as ResourceRelation, M as ResourceLink, N as ResourceMeta, O as PermissionsOptions, P as ResourceNode, R as ResourceRelationInput, S as FieldRelation, T as PermissionKind, U as POLICY_SCOPES, V as RowOf, W as RESOURCE_NAME, _ as ComputedRelation, a as RoleTree, b as EdgeMatch, c as definePlans, d as isPlan, f as isRole, g as ActionMeta, i as RoleMeta, j as ResourceLevel, k as PrincipalRelation, l as defineRoles, m as listRoles, n as PlanTree, o as Vocabulary, p as listPlans, q as AppDataSchema, r as Role, s as VocabularyOptions, t as Plan, u as findRole, v as EdgeGroup, w as Permission, x as EdgeRelation, y as EdgeGroups, z as ResourceRestricted } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { $ as resource, $t as listPermissions, A as RoleChangeCheckInput, At as MemoryEdge, B as ActivateInput, Bt as memoryCustomRoleSource, C as parseCatalogEventData, Ct as snapshotFromClaims, D as parseSinkEvents, Dt as HoldingVia, E as parseSinkEvent, Et as Holder, F as checkRoleChange, Ft as claimsFirst, G as allow, Gt as subjectMembershipSource, H as breakGlass, Ht as memoryMembershipSource, I as decideRoleChange, It as composeMemberships, J as role, Jt as sqlFunction, K as deny, Kt as AccessOutcome, L as normalizeMembership, Lt as countHolders, M as RoleChangeOptions, Mt as memoryRelationSource, N as RoleChangeTarget, Nt as StripeEntitlementsClient, O as RoleChange, Ot as WhoCan, P as RoleRules, Pt as stripeEntitlementSource, Q as formerKeys, Qt as isPermission, R as normalizeMemberships, Rt as isExternallyManaged, S as SINK_EVENT_SCHEMAS, Sn as principal, St as snapshotClaims, T as parseCloudEventBatch, Tt as signPolicyDocument, U as supportAccess, Ut as memorySettingsSource, V as activate, Vt as memoryEntitlementSource, W as normalizeApproval, Wt as memorySnapshotSource, X as readable, Xt as findPermission, Y as crud, Yt as opaque, Z as writable, Zt as getResource, _ as DECISION_EVENT_SCHEMA, _n as parseCustomRoleEntry, _t as simulateArazzo, a as catalogFingerprint, an as requiresApproval, at as customRoleSource, b as EVENT_SCHEMA_IDS, bn as claim, bt as SnapshotClaims, c as OCSF_VERSION, cn as parseSnapshot, ct as ShadowMismatch, d as accessToOcsf, dn as CustomRoleEntry, dt as localSnapshotManifest, en as mergePermissions, et as definePermissions, f as toOcsf, fn as CustomRoleRename, ft as ArazzoFinding, g as CREDENTIAL_EVENT_SCHEMA, gn as customRoleClaim, gt as arazzoFindings, h as CATALOG_EVENT_SCHEMA, hn as ValidateCustomRoleOptions, ht as ArazzoStepResult, i as canonicalJson, in as separationConflicts, it as CustomRoleSourceOptions, j as RoleChangeDecision, jt as MemoryRelationSourceData, k as RoleChangeCheck, kt as whoCan, l as OcsfAuthorizeSession, ln as CustomRoleDrop, lt as ShadowOptions, m as AUTOMATION_EVENT_SCHEMA, mn as ResolvedCustomRole, mt as ArazzoSimulateInput, n as delegatedPermissions, nn as definePolicy, nt as snapshotFor, o as CSV_COLUMNS, on as
|
|
3
|
+
import { $ as resource, $t as listPermissions, A as RoleChangeCheckInput, At as MemoryEdge, B as ActivateInput, Bt as memoryCustomRoleSource, C as parseCatalogEventData, Ct as snapshotFromClaims, D as parseSinkEvents, Dt as HoldingVia, E as parseSinkEvent, Et as Holder, F as checkRoleChange, Ft as claimsFirst, G as allow, Gt as subjectMembershipSource, H as breakGlass, Ht as memoryMembershipSource, I as decideRoleChange, It as composeMemberships, J as role, Jt as sqlFunction, K as deny, Kt as AccessOutcome, L as normalizeMembership, Lt as countHolders, M as RoleChangeOptions, Mt as memoryRelationSource, N as RoleChangeTarget, Nt as StripeEntitlementsClient, O as RoleChange, Ot as WhoCan, P as RoleRules, Pt as stripeEntitlementSource, Q as formerKeys, Qt as isPermission, R as normalizeMemberships, Rt as isExternallyManaged, S as SINK_EVENT_SCHEMAS, Sn as principal, St as snapshotClaims, T as parseCloudEventBatch, Tt as signPolicyDocument, U as supportAccess, Ut as memorySettingsSource, V as activate, Vt as memoryEntitlementSource, W as normalizeApproval, Wt as memorySnapshotSource, X as readable, Xt as findPermission, Y as crud, Yt as opaque, Z as writable, Zt as getResource, _ as DECISION_EVENT_SCHEMA, _n as parseCustomRoleEntry, _t as simulateArazzo, a as catalogFingerprint, an as requiresApproval, at as customRoleSource, b as EVENT_SCHEMA_IDS, bn as claim, bt as SnapshotClaims, c as OCSF_VERSION, cn as parseSnapshot, ct as ShadowMismatch, d as accessToOcsf, dn as CustomRoleEntry, dt as localSnapshotManifest, en as mergePermissions, et as definePermissions, f as toOcsf, fn as CustomRoleRename, ft as ArazzoFinding, g as CREDENTIAL_EVENT_SCHEMA, gn as customRoleClaim, gt as arazzoFindings, h as CATALOG_EVENT_SCHEMA, hn as ValidateCustomRoleOptions, ht as ArazzoStepResult, i as canonicalJson, in as separationConflicts, it as CustomRoleSourceOptions, j as RoleChangeDecision, jt as MemoryRelationSourceData, k as RoleChangeCheck, kt as whoCan, l as OcsfAuthorizeSession, ln as CustomRoleDrop, lt as ShadowOptions, m as AUTOMATION_EVENT_SCHEMA, mn as ResolvedCustomRole, mt as ArazzoSimulateInput, n as delegatedPermissions, nn as definePolicy, nt as snapshotFor, o as CSV_COLUMNS, on as fromSnapshot, ot as mayAccess, p as ACCESS_EVENT_SCHEMA, pn as CustomRoleValidation, pt as ArazzoPlan, q as normalizeAssurance, qt as accessOutcome, r as sha256Digest, rn as isRoleName, rt as CustomRoleReader, s as toCsvRow, sn as emptySnapshot, st as LegacyCheck, t as coveredByDelegation, tn as RoleNameOf, tt as SnapshotForOptions, u as OcsfUserManagement, un as CustomRoleDropReason, ut as shadowMode, v as DELIVERY_EVENT_SCHEMA, vn as resolveCustomRole, vt as deliveryEvent, w as parseCloudEvent, wt as SignPolicyDocumentOptions, x as MEMBERSHIP_EVENT_SCHEMA, xn as context, xt as signSnapshot, y as DIRECTORY_EVENT_SCHEMA, yn as validateCustomRole, yt as SignSnapshotOptions, z as resolveScope, zt as APPROVAL_POLICY_UNAVAILABLE } from "./index-DD2FBFdm.js";
|
|
4
4
|
import { a as OperationInput, c as defineOperations, d as isOperationRisk, i as OperationEffect, l as OPERATION_RISKS, n as OperationData, o as OperationMap, r as OperationDefinition, s as OperationMeta, t as Operation, u as OperationRisk } from "./operations-BMPx7HyO.js";
|
|
5
|
-
import { a as ApprovalPolicyValidation, c as validateApprovalPolicy, i as ApprovalPolicySource, n as ApprovalPolicy, o as approvalPolicies, r as ApprovalPolicyProblem, s as memoryApprovalPolicySource, t as ApprovalPolicies } from "./approval-policies-
|
|
6
|
-
import { A as GrantedPermissionsOptions, C as memoryLimitStore, D as InstanceCacheOptions, E as InstanceCacheKey, M as PermissionCheck, N as PermissionState, O as InstanceCacheStats, S as limits, T as InstanceCache, _ as PrincipalSource, a as PermDock, b as PermittedIdsOptions, c as RowPair, d as UncheckedData, f as WhereResult, g as PrincipalIdentityLink, h as PrincipalIdentity, i as LoadedRows, j as isGlobalPermission, k as instanceCache, l as SimulateOptions, m as getPermDockSync, n as DecideOptions, o as PermDockOptions, p as getPermDock, r as DeriveOptions, s as RowData, t as DecideIdsOptions, u as SnapshotOptions, v as memoryPrincipalSource, w as CustomRoleOwner, x as Limits, y as MembershipFilter } from "./permdock-
|
|
7
|
-
import { d as memoryPolicySource, f as mergeHostedGrants, i as HostedGrantDropped, l as hostedPolicies, m as policyDocumentFromClaims, o as PolicyDocument, p as parsePolicyDocument, r as HostedGrantDropReason, s as PolicySource, t as HostedGrant, u as isPortableCondition } from "./hosted-
|
|
8
|
-
import { n as PermDockValidationError } from "./validation-error-
|
|
9
|
-
import { a as ProblemDetails, c as requiredPlans, i as PermDockRevokedError, n as PermDockApprovalRequiredError, o as RevokedCode, r as PermDockDeniedError } from "./errors-
|
|
10
|
-
import { t as InstanceOptions } from "./instance-options-
|
|
5
|
+
import { a as ApprovalPolicyValidation, c as validateApprovalPolicy, i as ApprovalPolicySource, n as ApprovalPolicy, o as approvalPolicies, r as ApprovalPolicyProblem, s as memoryApprovalPolicySource, t as ApprovalPolicies } from "./approval-policies-D7moEfTM.js";
|
|
6
|
+
import { A as GrantedPermissionsOptions, C as memoryLimitStore, D as InstanceCacheOptions, E as InstanceCacheKey, M as PermissionCheck, N as PermissionState, O as InstanceCacheStats, S as limits, T as InstanceCache, _ as PrincipalSource, a as PermDock, b as PermittedIdsOptions, c as RowPair, d as UncheckedData, f as WhereResult, g as PrincipalIdentityLink, h as PrincipalIdentity, i as LoadedRows, j as isGlobalPermission, k as instanceCache, l as SimulateOptions, m as getPermDockSync, n as DecideOptions, o as PermDockOptions, p as getPermDock, r as DeriveOptions, s as RowData, t as DecideIdsOptions, u as SnapshotOptions, v as memoryPrincipalSource, w as CustomRoleOwner, x as Limits, y as MembershipFilter } from "./permdock-vD3mwLSm.js";
|
|
7
|
+
import { d as memoryPolicySource, f as mergeHostedGrants, i as HostedGrantDropped, l as hostedPolicies, m as policyDocumentFromClaims, o as PolicyDocument, p as parsePolicyDocument, r as HostedGrantDropReason, s as PolicySource, t as HostedGrant, u as isPortableCondition } from "./hosted-BUCpV8-u.js";
|
|
8
|
+
import { n as PermDockValidationError } from "./validation-error-BE8bpmhR.js";
|
|
9
|
+
import { a as ProblemDetails, c as requiredPlans, i as PermDockRevokedError, n as PermDockApprovalRequiredError, o as RevokedCode, r as PermDockDeniedError } from "./errors-CXxQwtbZ.js";
|
|
10
|
+
import { t as InstanceOptions } from "./instance-options-BDHB3qBG.js";
|
|
11
11
|
import { t as RequestContext } from "./request-context-C2_1lchh.js";
|
|
12
|
-
import { n as PermDockWrap, r as wrapPermDock, t as PermDockOverrides } from "./wrap-
|
|
13
|
-
import { c as VersionCacheStats, i as memorySubjectCache, l as VersionStore, n as SubjectCache, o as MemoryVersionCacheOptions, r as SubjectRecord, s as VersionCache, t as MemorySubjectCacheOptions, u as memoryVersionCache } from "./subject-cache-
|
|
12
|
+
import { n as PermDockWrap, r as wrapPermDock, t as PermDockOverrides } from "./wrap-CVBPIuEs.js";
|
|
13
|
+
import { c as VersionCacheStats, i as memorySubjectCache, l as VersionStore, n as SubjectCache, o as MemoryVersionCacheOptions, r as SubjectRecord, s as VersionCache, t as MemorySubjectCacheOptions, u as memoryVersionCache } from "./subject-cache-DrJGnRiV.js";
|
|
14
14
|
import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
|
|
15
15
|
import { t as approvalFingerprint } from "./token-D6pWn8Uj.js";
|
|
16
16
|
import { i as memoryRevocationFeed, n as RevocationFeed, r as RevocationListener, t as RevocationEvent } from "./revocations-BaUXHM1N.js";
|
|
17
17
|
import { t as ClientNames } from "./clients-C_NOET3z.js";
|
|
18
|
-
import { a as CapabilityOptions, c as LinkPolicy, d as linkPolicyViolation, f as parseCapability, i as CapabilityInput, l as LinkPolicyViolation, m as signCapability, n as CapabilityClaim, o as CapabilityPrincipal, p as parseCapabilityClaim, r as CapabilityConfirmation, s as CapabilityRedeemer, t as Capability, u as capabilityFromClaims } from "./capability-
|
|
19
|
-
import { a as AutomationSource, c as decideAutomation, i as AutomationRequest, l as memoryAutomationSource, n as AutomationDecision, o as DecideAutomationOptions, r as AutomationMode, s as MemoryAutomationSource, t as Automation, u as parseAutomation } from "./automation-
|
|
20
|
-
import { S as toCloudEvent, _ as credentialEvent, a as CatalogFinding, b as signDecisionBatch, c as CloudEventOptions, d as MemoryDecisionSinkOptions, f as RESERVED_CLOUD_EVENT_TYPES, g as cloudEventType, h as automationEvent, i as CatalogEventData, l as CloudEventType, m as accessEvent, n as CLOUDEVENTS_CONTENT_TYPE, o as CatalogFindingCode, p as SignDecisionBatchOptions, r as CLOUD_EVENT_TYPES, s as CloudEvent, t as CLOUDEVENTS_BATCH_CONTENT_TYPE, u as MemoryDecisionSink, v as membershipEvent, x as supportSessionEvent, y as memoryDecisionSink } from "./sink-
|
|
21
|
-
import { a as PlanNameOf, c as VocabularyOf, i as PermissionOf, n as OperationNameOf, s as ScopeNameOf } from "./type-helpers-
|
|
22
|
-
import { i as describe, n as DescribeMessages, r as DescribeOptions, t as DecisionDescription } from "./describe-
|
|
18
|
+
import { a as CapabilityOptions, c as LinkPolicy, d as linkPolicyViolation, f as parseCapability, i as CapabilityInput, l as LinkPolicyViolation, m as signCapability, n as CapabilityClaim, o as CapabilityPrincipal, p as parseCapabilityClaim, r as CapabilityConfirmation, s as CapabilityRedeemer, t as Capability, u as capabilityFromClaims } from "./capability-mLbd3KZ0.js";
|
|
19
|
+
import { a as AutomationSource, c as decideAutomation, i as AutomationRequest, l as memoryAutomationSource, n as AutomationDecision, o as DecideAutomationOptions, r as AutomationMode, s as MemoryAutomationSource, t as Automation, u as parseAutomation } from "./automation-CrGcfIZn.js";
|
|
20
|
+
import { S as toCloudEvent, _ as credentialEvent, a as CatalogFinding, b as signDecisionBatch, c as CloudEventOptions, d as MemoryDecisionSinkOptions, f as RESERVED_CLOUD_EVENT_TYPES, g as cloudEventType, h as automationEvent, i as CatalogEventData, l as CloudEventType, m as accessEvent, n as CLOUDEVENTS_CONTENT_TYPE, o as CatalogFindingCode, p as SignDecisionBatchOptions, r as CLOUD_EVENT_TYPES, s as CloudEvent, t as CLOUDEVENTS_BATCH_CONTENT_TYPE, u as MemoryDecisionSink, v as membershipEvent, x as supportSessionEvent, y as memoryDecisionSink } from "./sink-BskpqwLl.js";
|
|
21
|
+
import { a as PlanNameOf, c as VocabularyOf, i as PermissionOf, n as OperationNameOf, s as ScopeNameOf } from "./type-helpers-fQdBvtU0.js";
|
|
22
|
+
import { i as describe, n as DescribeMessages, r as DescribeOptions, t as DecisionDescription } from "./describe-CazEjtOH.js";
|
|
23
23
|
import { n as parsePermDockDigest, t as PermDockDigest } from "./digest-8Yx2CchM.js";
|
|
24
|
-
import { t as parseLocalSnapshotManifest } from "./parse-local-manifest-
|
|
24
|
+
import { t as parseLocalSnapshotManifest } from "./parse-local-manifest-DzZOzDsK.js";
|
|
25
25
|
export { ACCESS_EVENT_SCHEMA, APPROVAL_POLICY_UNAVAILABLE, AUTOMATION_EVENT_SCHEMA, type AccessEvent, type AccessOutcome, type ActionMeta, type ActivateInput, type ActivationOption, type Actor, type ActorKind, type AdapterId, type AnyOfApprover, type ApiKeyPrincipal, type AppData, type AppDataSchema, type AppObligation, type ApprovalCombine, type ApprovalEscalation, type ApprovalFallback, type ApprovalMode, type ApprovalOption, type ApprovalPolicies, type ApprovalPolicy, type ApprovalPolicyProblem, type ApprovalPolicySource, type ApprovalPolicyValidation, type ApprovalRequiredDecision, type ApprovalRequirement, type ApprovalStage, type Approver, type ApproverInput, type ArazzoFinding, type ArazzoPlan, type ArazzoSimulateInput, type ArazzoStepResult, type Assurance, type AssuranceRequirement, type AuthEvent, type AuthorizationDetail, type Automation, type AutomationDecision, type AutomationEvent, type AutomationMode, type AutomationRequest, type AutomationSource, type Binding, type BreakGlassOptions, type BreakGlassRequirements, type BreakGlassSpec, CATALOG_EVENT_SCHEMA, CLOUDEVENTS_BATCH_CONTENT_TYPE, CLOUDEVENTS_CONTENT_TYPE, CLOUD_EVENT_TYPES, CREDENTIAL_EVENT_SCHEMA, CSV_COLUMNS, type Capability, type CapabilityClaim, type CapabilityConfirmation, type CapabilityInput, type CapabilityOptions, type CapabilityPrincipal, type CapabilityRedeemer, type CatalogEventData, type CatalogFinding, type CatalogFindingCode, type ClientNames, type ClosureContext, type ClosureGrantFn, type CloudEvent, type CloudEventOptions, type CloudEventType, type ComputedRelation, type Condition, type ConditionRef, type ConditionValue, type Credential, type CredentialDecision, type CredentialEvent, type CredentialKind, type CredentialPermission, type CredentialPermissionInput, type CredentialPolicy, type CredentialPolicyViolation, type CredentialRequest, type CredentialVerifier, type CustomRole, type CustomRoleContext, type CustomRoleDrop, type CustomRoleDropReason, type CustomRoleEntry, type CustomRoleGrant, type CustomRoleOwner, type CustomRoleReader, type CustomRoleRename, type CustomRoleSource, type CustomRoleSourceFactory, type CustomRoleSourceOptions, type CustomRoleValidation, DECISION_EVENT_SCHEMA, DELIVERY_EVENT_SCHEMA, DIRECTORY_EVENT_SCHEMA, type DecideAutomationOptions, type DecideCredentialOptions, type DecideIdsOptions, type DecideOptions, type DecideSupportSessionOptions, type Decision, type DecisionDescription, type DecisionEvent, type DecisionProvider, type DecisionSink, type Delegation, type DelegationInput, type DelegationTarget, type DeliveryChannel, type DeliveryEvent, type DeliveryFailureCause, type Denial, type DenialDetails, type DenialReason, type DeniedDecision, type DeriveOptions, type DescribeMessages, type DescribeOptions, type DirectoryEvent, EVENT_SCHEMA_IDS, type EdgeGroup, type EdgeGroups, type EdgeMatch, type EdgeRelation, type EmailCategory, type EntitlementSource, type ExplainedDecision, type FieldRelation, type GnapAccess, type Grant, type GrantCondition, type GrantLimit, type GrantMeta, type GrantOptions, type GrantScope, type GrantValidity, type GrantedDecision, type GrantedPermissionsOptions, type Grantee, type GranteeInput, type Holder, type HoldingVia, type HostedGrant, type HostedGrantDropReason, type HostedGrantDropped, type HostedGrantRef, type InheritGrantee, type InstanceCache, type InstanceCacheKey, type InstanceCacheOptions, type InstanceCacheStats, type InstanceOptions, type Intent, type JsonSchemaNode, type LegacyCheck, type LimitConsumeInput, type LimitDetail, type LimitRemaining, type LimitStore, type Limits, type LinkPolicy, type LinkPolicyViolation, type LoadedRows, type LocalCustomRoleTable, type LocalMembershipRows, type LocalRowColumn, type LocalRowValue, type LocalSnapshotManifest, type LocalSnapshotRows, MEMBERSHIP_EVENT_SCHEMA, type ManagerApprover, type MatchedGrant, type MemberEntry, type MemberOfCondition, type MemberOfParent, type Membership, type MembershipEvent, type MembershipFilter, type MembershipFixture, type MembershipSource, type MembershipVia, type MemoryAutomationSource, type MemoryDecisionSink, type MemoryDecisionSinkOptions, type MemoryEdge, type MemoryRelationSourceData, type MemorySubjectCacheOptions, type MemoryVersionCacheOptions, type MetaValue, OCSF_VERSION, OPERATION_RISKS, type Obligation, type ObligationInput, type OcsfAuthorizeSession, type OcsfUserManagement, type Operation, type OperationData, type OperationDefinition, type OperationEffect, type OperationInput, type OperationMap, type OperationMeta, type OperationNameOf, type OperationRisk, type PERMISSION_ROW, type POLICY_SCOPES, type PermDock, PermDockApprovalRequiredError, PermDockDeniedError, type PermDockDigest, type PermDockOptions, type PermDockOverrides, PermDockRevokedError, PermDockValidationError, type PermDockWrap, type Permission, type PermissionApprover, type PermissionCheck, type PermissionKind, type PermissionOf, type PermissionState, type PermissionTree, type PermissionsOf, type PermissionsOptions, type PermittedIdsOptions, type Plan, type PlanNameOf, type PlanTree, type Policy, type PolicyAppDataSchemas, type PolicyDelegation, type PolicyDocument, type PolicyOAuthScope, type PolicyScopes, type PolicyScopesInput, type PolicySource, type Principal, type PrincipalIdentity, type PrincipalIdentityLink, type PrincipalOf, type PrincipalRelation, type PrincipalSource, type ProblemDetails, type Quota, RESERVED_CLOUD_EVENT_TYPES, type RESOURCE_NAME, type RESOURCE_X, type RelatedCondition, type RelatedHop, type RelationChain, type RelationGrantee, type RelationGroup, type RelationHolder, type RelationSource, type RequestContext, type ResolvedCustomRole, type ResourceInit, type ResourceLevel, type ResourceLink, type ResourceMeta, type ResourceNode, type ResourceOptions, type ResourceParent, type ResourceRelation, type ResourceRelationInput, type ResourceRestricted, type ResourceXTree, type RestrictedAncestors, type RevocationEvent, type RevocationFeed, type RevocationListener, type RevokedCode, type Role, type RoleBinding, type RoleChange, type RoleChangeCheck, type RoleChangeCheckInput, type RoleChangeDecision, type RoleChangeOptions, type RoleChangeTarget, type RoleMeta, type RoleNameOf, type RoleOptions, type RoleRules, type RoleScope, type RoleTree, type RowData, type RowOf, type RowPair, SINK_EVENT_SCHEMAS, type Scope, type ScopeDeclaration, type ScopeNameOf, type ScopeNames, type SeparationConflict, type SettingsSource, type ShadowMismatch, type ShadowOptions, type SharedCustomRole, type SignDecisionBatchOptions, type SignPolicyDocumentOptions, type SignSnapshotOptions, type SimulateOptions, type SinkEvent, type Snapshot, type SnapshotAssignable, type SnapshotClaims, type SnapshotForOptions, type SnapshotGrant, type SnapshotNotEntitled, type SnapshotOptions, type SnapshotScope, type SnapshotSource, type SnapshotTenants, type SourceCall, type SourceContext, type SourceMemo, type SqlFunctionArg, type SqlFunctionCondition, type StripeEntitlementsClient, type Subject, type SubjectCache, type SubjectOf, type SubjectRecord, type SubjectResolver, type SupportAccessOptions, type SupportConsent, type SupportSession, type SupportSessionDecision, type SupportSessionPolicy, type SupportSessionRequest, type TenantSettings, type TokenFailureCause, type TokenSigner, type TokenVerifier, type Trace, type TraceSkip, type TraceSkipReason, type UncheckedData, type UserApprover, type ValidateCustomRoleOptions, type ValidateMode, type VerificationFailure, type VerifiedClaims, type VerifiedToken, type VersionCache, type VersionCacheStats, type VersionContext, type VersionQuery, type VersionStore, type Vocabulary, type VocabularyOf, type VocabularyOptions, type WhereCompiler, type WhereResult, type WhoCan, type WireDecision, type WireDenial, type WireValidity, accessEvent, accessOutcome, accessToOcsf, activate, actor, allOf, allow, anyOf, anyone, approvalFingerprint, approvalPolicies, arazzoFindings, assurance, authenticated, automationEvent, breakGlass, canonicalJson, capabilityFromClaims, catalogFingerprint, checkRoleChange, claim, claimsFirst, cloudEventType, composeMemberships, context, countHolders, coveredByDelegation, credentialDelegation, credentialEvent, credentialPolicyViolation, crud, customRoleClaim, customRoleSource, decideAutomation, decideCredential, decideRoleChange, decideSupportSession, defineOperations, definePermissions, definePlans, definePolicy, defineRoles, delegatedPermissions, deliveryEvent, deny, describe, emptySnapshot, findPermission, findRole, formerKeys, fromSnapshot, getPermDock, getPermDockSync, getResource, hasConditionOp, holder, hostedPolicies, inherit, instanceCache, isCondition, isConditionDate, isConditionRef, isExternallyManaged, isFeedId, isGlobalPermission, isOperationRisk, isPermission, isPlan, isPortableCondition, isRole, isRoleName, isSqlFunctionField, limits, linkPolicyViolation, listPermissions, listPlans, listRoles, localSnapshotManifest, manager, mayAccess, membershipEvent, memoryApprovalPolicySource, memoryAutomationSource, memoryCustomRoleSource, memoryDecisionSink, memoryEntitlementSource, memoryLimitStore, memoryMembershipSource, memoryPolicySource, memoryPrincipalSource, memoryRelationSource, memoryRevocationFeed, memorySettingsSource, memorySnapshotSource, memorySubjectCache, memoryVersionCache, mergeHostedGrants, mergePermissions, normalizeApproval, normalizeAssurance, normalizeMembership, normalizeMemberships, opaque, parseAutomation, parseCapability, parseCapabilityClaim, parseCatalogEventData, parseCloudEvent, parseCloudEventBatch, parseCredential, parseCustomRoleEntry, parseLocalSnapshotManifest, parsePermDockDigest, parsePolicyDocument, parseSinkEvent, parseSinkEvents, parseSnapshot, parseSupportSession, plan, policyDocumentFromClaims, principal, readable, relation, requiredPlans, requiresApproval, resolveCustomRole, resolveScope, resource, role, separationConflicts, sha256Digest, shadowMode, signCapability, signDecisionBatch, signPolicyDocument, signSnapshot, simulateArazzo, snapshotClaims, snapshotFor, snapshotFromClaims, sqlFunction, stripeEntitlementSource, subjectMembershipSource, supportAccess, supportSessionEvent, toCloudEvent, toCsvRow, toOcsf, user, validateApprovalPolicy, validateCustomRole, whoCan, wrapPermDock, writable };
|
package/dist/index.js
CHANGED
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
import { c as isConditionDate, i as principal, l as isConditionRef, n as context, o as hasConditionOp, s as isCondition, t as claim, u as isSqlFunctionField } from "./refs-C8BKxc_e.js";
|
|
2
|
-
import { a as deny, m as opaque, n as role, r as allow, t as normalizeAssurance } from "./role-builder-
|
|
3
|
-
import { A as memorySettingsSource, C as approvalPolicies, D as memoryCustomRoleSource, E as validateApprovalPolicy, M as subjectMembershipSource, N as accessOutcome, O as memoryEntitlementSource, P as sqlFunction, S as stripeEntitlementSource, T as memoryApprovalPolicySource, _ as simulateArazzo, a as normalizeMembership, b as signPolicyDocument, c as crud, d as snapshotFor, f as customRoleSource, g as arazzoFindings, h as localSnapshotManifest, i as decideRoleChange, j as memorySnapshotSource, k as memoryMembershipSource, l as readable, m as shadowMode, n as toCsvRow, o as normalizeMemberships, p as mayAccess, r as checkRoleChange, s as resolveScope, t as CSV_COLUMNS, u as writable, v as memoryVersionCache, x as memoryRelationSource, y as instanceCache } from "./src-
|
|
2
|
+
import { a as deny, m as opaque, n as role, r as allow, t as normalizeAssurance } from "./role-builder-BXdhhQcB.js";
|
|
3
|
+
import { A as memorySettingsSource, C as approvalPolicies, D as memoryCustomRoleSource, E as validateApprovalPolicy, M as subjectMembershipSource, N as accessOutcome, O as memoryEntitlementSource, P as sqlFunction, S as stripeEntitlementSource, T as memoryApprovalPolicySource, _ as simulateArazzo, a as normalizeMembership, b as signPolicyDocument, c as crud, d as snapshotFor, f as customRoleSource, g as arazzoFindings, h as localSnapshotManifest, i as decideRoleChange, j as memorySnapshotSource, k as memoryMembershipSource, l as readable, m as shadowMode, n as toCsvRow, o as normalizeMemberships, p as mayAccess, r as checkRoleChange, s as resolveScope, t as CSV_COLUMNS, u as writable, v as memoryVersionCache, x as memoryRelationSource, y as instanceCache } from "./src-BZKQe1lr.js";
|
|
4
4
|
import { d as manager, f as user, n as anyOf, o as holder, t as allOf } from "./approvers-BaNwKYgd.js";
|
|
5
5
|
import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
|
|
6
6
|
import { r as requiredPlans } from "./problem-details-CLDgX1KV.js";
|
|
7
7
|
import { n as describe } from "./describe-BZAlPHxT.js";
|
|
8
|
-
import { r as memoryPrincipalSource } from "./principal-source-C6N60GtM.js";
|
|
9
|
-
import { i as signSnapshot, n as fromSnapshot, o as snapshotClaims, s as snapshotFromClaims, t as emptySnapshot } from "./from-snapshot-oR_N97dM.js";
|
|
10
|
-
import { r as parsePermDockDigest } from "./digest-BI-6aa6d.js";
|
|
11
|
-
import { n as PermDockDeniedError, r as PermDockRevokedError, t as PermDockApprovalRequiredError } from "./errors-ynga1EQy.js";
|
|
12
8
|
import { a as getResource, c as listPermissions, h as formerKeys, l as mergePermissions, n as findPermission, o as isPermission, v as resource } from "./permission-registry-B8tYxPIt.js";
|
|
13
|
-
import {
|
|
14
|
-
import { c as
|
|
9
|
+
import { a as isRole, i as isPlan, n as defineRoles, o as listPlans, r as findRole, s as listRoles, t as definePlans } from "./vocabulary-BuYFWeCU.js";
|
|
10
|
+
import { a as authenticated, c as plan, i as assurance, l as relation, n as anyone, s as inherit, t as actor } from "./grantee-OG4klcNr.js";
|
|
11
|
+
import { i as delegatedPermissions, n as coveredByDelegation } from "./delegation-CrdqnesZ.js";
|
|
15
12
|
import { t as requiresApproval } from "./approval-required-TzNB9oQA.js";
|
|
16
13
|
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
17
14
|
import { r as sha256Digest } from "./sha256-C-4WXKIu.js";
|
|
18
15
|
import { t as approvalFingerprint } from "./token-DaMnIU9O.js";
|
|
19
|
-
import { n as parseSnapshot } from "./snapshot-
|
|
20
|
-
import { c as isGlobalPermission, n as getPermDockSync, t as getPermDock } from "./permdock-
|
|
16
|
+
import { n as parseSnapshot } from "./snapshot-BcHYtUIg.js";
|
|
17
|
+
import { c as isGlobalPermission, n as getPermDockSync, t as getPermDock } from "./permdock-HfTF99xX.js";
|
|
18
|
+
import { r as parsePermDockDigest } from "./digest-BI-6aa6d.js";
|
|
19
|
+
import { n as PermDockDeniedError, r as PermDockRevokedError, t as PermDockApprovalRequiredError } from "./errors-ynga1EQy.js";
|
|
21
20
|
import { t as memoryRevocationFeed } from "./revocations-Bhr0aMIC.js";
|
|
21
|
+
import { r as memoryPrincipalSource } from "./principal-source-C6N60GtM.js";
|
|
22
22
|
import { n as memoryAutomationSource, r as parseAutomation, t as decideAutomation } from "./automation-BueW05db.js";
|
|
23
23
|
import { n as parseSupportSession, t as decideSupportSession } from "./support-session-BGeEYDSq.js";
|
|
24
|
-
import { a as normalizeApproval } from "./approval-normalize-
|
|
25
|
-
import { o as isRoleName, r as definePolicy, u as separationConflicts } from "./policy-
|
|
26
|
-
import { a as hostedPolicies, c as mergeHostedGrants, l as parsePolicyDocument, o as isPortableCondition, s as memoryPolicySource, u as policyDocumentFromClaims } from "./hosted-
|
|
24
|
+
import { a as normalizeApproval } from "./approval-normalize-KfhzpD93.js";
|
|
25
|
+
import { o as isRoleName, r as definePolicy, u as separationConflicts } from "./policy-BovcTojN.js";
|
|
26
|
+
import { a as hostedPolicies, c as mergeHostedGrants, l as parsePolicyDocument, o as isPortableCondition, s as memoryPolicySource, u as policyDocumentFromClaims } from "./hosted-cPDyrlsQ.js";
|
|
27
27
|
import { n as isOperationRisk, t as OPERATION_RISKS } from "./operation-risks-BKOcTv8J.js";
|
|
28
28
|
import { t as defineOperations } from "./operations-Bm9HFecz.js";
|
|
29
|
-
import { A as breakGlass, F as APPROVAL_POLICY_UNAVAILABLE, T as validateCustomRole, b as parseCustomRoleEntry, d as customRoleClaim, j as supportAccess, k as activate, x as resolveCustomRole } from "./evaluate-
|
|
30
|
-
import { _ as claimsFirst, b as isExternallyManaged, v as composeMemberships, y as countHolders } from "./instance-snapshot-
|
|
29
|
+
import { A as breakGlass, F as APPROVAL_POLICY_UNAVAILABLE, T as validateCustomRole, b as parseCustomRoleEntry, d as customRoleClaim, j as supportAccess, k as activate, x as resolveCustomRole } from "./evaluate-_JdlbJ32.js";
|
|
30
|
+
import { _ as claimsFirst, b as isExternallyManaged, v as composeMemberships, y as countHolders } from "./instance-snapshot-LPNBG9np.js";
|
|
31
31
|
import { n as memoryLimitStore, t as limits } from "./limits-CAhpRrhk.js";
|
|
32
|
-
import { t as whoCan } from "./who-can-
|
|
32
|
+
import { t as whoCan } from "./who-can-DcrHB6ya.js";
|
|
33
|
+
import { a as snapshotFromClaims, i as snapshotClaims, n as signSnapshot } from "./membership-filter-CfLdP_F9.js";
|
|
33
34
|
import { t as memorySubjectCache } from "./subject-cache-BT1fGuea.js";
|
|
34
35
|
import { t as deliveryEvent } from "./delivery-event-JioK5YbS.js";
|
|
36
|
+
import { t as emptySnapshot } from "./snapshot-empty-BoPBFoB8.js";
|
|
37
|
+
import { t as fromSnapshot } from "./from-snapshot-CdGYjHUg.js";
|
|
35
38
|
import { t as parseLocalSnapshotManifest } from "./parse-local-manifest-Ce2N-Opr.js";
|
|
36
|
-
import { n as wrapPermDock } from "./wrap-
|
|
39
|
+
import { n as wrapPermDock } from "./wrap-C5PWzgkq.js";
|
|
37
40
|
import { t as definePermissions } from "./permissions-BaoLxy66.js";
|
|
38
41
|
import { C as EVENT_SCHEMA_IDS, S as DIRECTORY_EVENT_SCHEMA, T as SINK_EVENT_SCHEMAS, _ as AUTOMATION_EVENT_SCHEMA, a as accessEvent, b as DECISION_EVENT_SCHEMA, c as credentialEvent, d as membershipEvent, f as memoryDecisionSink, g as ACCESS_EVENT_SCHEMA, h as toCloudEvent, i as RESERVED_CLOUD_EVENT_TYPES, m as supportSessionEvent, n as CLOUDEVENTS_CONTENT_TYPE, o as automationEvent, p as signDecisionBatch, r as CLOUD_EVENT_TYPES, s as cloudEventType, t as CLOUDEVENTS_BATCH_CONTENT_TYPE, v as CATALOG_EVENT_SCHEMA, w as MEMBERSHIP_EVENT_SCHEMA, x as DELIVERY_EVENT_SCHEMA, y as CREDENTIAL_EVENT_SCHEMA } from "./sink-D9_vh372.js";
|
|
39
42
|
import { a as parseSinkEvent, i as parseCloudEventBatch, n as parseCatalogEventData, o as parseSinkEvents, r as parseCloudEvent, t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
|
|
40
43
|
import { i as toOcsf, n as accessToOcsf, t as OCSF_VERSION } from "./ocsf-TcjRBgIs.js";
|
|
41
44
|
import { a as parseCapability, c as signCapability, i as linkPolicyViolation, o as parseCapabilityClaim, t as capabilityFromClaims } from "./capability-CenWwTMR.js";
|
|
42
|
-
import { a as decideCredential, n as credentialPolicyViolation, o as isFeedId, s as parseCredential, t as credentialDelegation } from "./credential-
|
|
45
|
+
import { a as decideCredential, n as credentialPolicyViolation, o as isFeedId, s as parseCredential, t as credentialDelegation } from "./credential-DrVrRL7z.js";
|
|
43
46
|
export { ACCESS_EVENT_SCHEMA, APPROVAL_POLICY_UNAVAILABLE, AUTOMATION_EVENT_SCHEMA, CATALOG_EVENT_SCHEMA, CLOUDEVENTS_BATCH_CONTENT_TYPE, CLOUDEVENTS_CONTENT_TYPE, CLOUD_EVENT_TYPES, CREDENTIAL_EVENT_SCHEMA, CSV_COLUMNS, DECISION_EVENT_SCHEMA, DELIVERY_EVENT_SCHEMA, DIRECTORY_EVENT_SCHEMA, EVENT_SCHEMA_IDS, MEMBERSHIP_EVENT_SCHEMA, OCSF_VERSION, OPERATION_RISKS, PermDockApprovalRequiredError, PermDockDeniedError, PermDockRevokedError, PermDockValidationError, RESERVED_CLOUD_EVENT_TYPES, SINK_EVENT_SCHEMAS, accessEvent, accessOutcome, accessToOcsf, activate, actor, allOf, allow, anyOf, anyone, approvalFingerprint, approvalPolicies, arazzoFindings, assurance, authenticated, automationEvent, breakGlass, canonicalJson, capabilityFromClaims, catalogFingerprint, checkRoleChange, claim, claimsFirst, cloudEventType, composeMemberships, context, countHolders, coveredByDelegation, credentialDelegation, credentialEvent, credentialPolicyViolation, crud, customRoleClaim, customRoleSource, decideAutomation, decideCredential, decideRoleChange, decideSupportSession, defineOperations, definePermissions, definePlans, definePolicy, defineRoles, delegatedPermissions, deliveryEvent, deny, describe, emptySnapshot, findPermission, findRole, formerKeys, fromSnapshot, getPermDock, getPermDockSync, getResource, hasConditionOp, holder, hostedPolicies, inherit, instanceCache, isCondition, isConditionDate, isConditionRef, isExternallyManaged, isFeedId, isGlobalPermission, isOperationRisk, isPermission, isPlan, isPortableCondition, isRole, isRoleName, isSqlFunctionField, limits, linkPolicyViolation, listPermissions, listPlans, listRoles, localSnapshotManifest, manager, mayAccess, membershipEvent, memoryApprovalPolicySource, memoryAutomationSource, memoryCustomRoleSource, memoryDecisionSink, memoryEntitlementSource, memoryLimitStore, memoryMembershipSource, memoryPolicySource, memoryPrincipalSource, memoryRelationSource, memoryRevocationFeed, memorySettingsSource, memorySnapshotSource, memorySubjectCache, memoryVersionCache, mergeHostedGrants, mergePermissions, normalizeApproval, normalizeAssurance, normalizeMembership, normalizeMemberships, opaque, parseAutomation, parseCapability, parseCapabilityClaim, parseCatalogEventData, parseCloudEvent, parseCloudEventBatch, parseCredential, parseCustomRoleEntry, parseLocalSnapshotManifest, parsePermDockDigest, parsePolicyDocument, parseSinkEvent, parseSinkEvents, parseSnapshot, parseSupportSession, plan, policyDocumentFromClaims, principal, readable, relation, requiredPlans, requiresApproval, resolveCustomRole, resolveScope, resource, role, separationConflicts, sha256Digest, shadowMode, signCapability, signDecisionBatch, signPolicyDocument, signSnapshot, simulateArazzo, snapshotClaims, snapshotFor, snapshotFromClaims, sqlFunction, stripeEntitlementSource, subjectMembershipSource, supportAccess, supportSessionEvent, toCloudEvent, toCsvRow, toOcsf, user, validateApprovalPolicy, validateCustomRole, whoCan, wrapPermDock, writable };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-BhRkoNS7.js";
|
|
2
2
|
import { t as addLine } from "./peer-BuK9F53f.js";
|
|
3
3
|
import { a as decodePreset, g as resolvePreset, i as presetFlags, n as generatePreset, o as encodePreset } from "./preset-Bn5Z54cH.js";
|
|
4
|
-
import { a as nonEmptyOr } from "./output-
|
|
4
|
+
import { a as nonEmptyOr } from "./output-B81GJ6u6.js";
|
|
5
5
|
import { t as applyFiles } from "./files-CfiRtQ-m.js";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
7
7
|
import { join } from "node:path";
|
|
@@ -48,7 +48,7 @@ const init = defineLeaf({
|
|
|
48
48
|
...forceFlag
|
|
49
49
|
},
|
|
50
50
|
async run(ctx, { flags }) {
|
|
51
|
-
const [{ runInit }, { packageManagerOf }] = await Promise.all([import("./init-
|
|
51
|
+
const [{ runInit }, { packageManagerOf }] = await Promise.all([import("./init-Baq0yYfu.js"), import("./peer-n-swIV4H.js")]);
|
|
52
52
|
const agent = await packageManagerOf(ctx.cwd);
|
|
53
53
|
const selection = {
|
|
54
54
|
archetype: flags.archetype,
|
|
@@ -79,7 +79,7 @@ const presetDecode = defineLeaf({
|
|
|
79
79
|
positionals: presetCode,
|
|
80
80
|
flags: {},
|
|
81
81
|
async run(_ctx, { args }) {
|
|
82
|
-
const { runPreset } = await import("./init-
|
|
82
|
+
const { runPreset } = await import("./init-Baq0yYfu.js");
|
|
83
83
|
return runPreset("decode", args["code"] ?? "");
|
|
84
84
|
}
|
|
85
85
|
});
|
|
@@ -87,7 +87,7 @@ const presetUrl = defineLeaf({
|
|
|
87
87
|
positionals: presetCode,
|
|
88
88
|
flags: {},
|
|
89
89
|
async run(_ctx, { args }) {
|
|
90
|
-
const { runPreset } = await import("./init-
|
|
90
|
+
const { runPreset } = await import("./init-Baq0yYfu.js");
|
|
91
91
|
return runPreset("url", args["code"] ?? "");
|
|
92
92
|
}
|
|
93
93
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as PermDockOptions } from "./permdock-
|
|
1
|
+
import { o as PermDockOptions } from "./permdock-vD3mwLSm.js";
|
|
2
2
|
//#region src/core/instance-options.d.ts
|
|
3
3
|
type InstanceKey = "memberships" | "relations" | "entitlements" | "customRoles" | "policies" | "approvalPolicies" | "sink" | "limits" | "principals" | "instances";
|
|
4
4
|
/**
|
|
@@ -1,21 +1,23 @@
|
|
|
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 hasConditionOp } from "./refs-C8BKxc_e.js";
|
|
4
|
-
import { a as getResource, c as listPermissions } from "./permission-registry-B8tYxPIt.js";
|
|
4
|
+
import { a as getResource, c as listPermissions, n as findPermission } from "./permission-registry-B8tYxPIt.js";
|
|
5
5
|
import { n as isThenable } from "./thenable-BNSM1U2R.js";
|
|
6
6
|
import { u as isPrincipalRelation } from "./resource-relations-8-pCScBO.js";
|
|
7
|
-
import {
|
|
7
|
+
import { c as sourceRoleMeta, l as synthesiseRole, r as findRole, s as listRoles, u as treeXSchema } from "./vocabulary-BuYFWeCU.js";
|
|
8
|
+
import { o as flattenGrantee } from "./grantee-OG4klcNr.js";
|
|
8
9
|
import { p as nowSeconds, s as instantAt } from "./time-nR1JesoH.js";
|
|
9
10
|
import { i as sameId } from "./ids-DzhJaCUj.js";
|
|
10
11
|
import { c as rootScope, d as scopeList, i as keepsPermission, p as tenantOf, s as resolveScope } from "./scopes-gdH__vDZ.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
12
|
+
import { a as readOnlyActorRefuses, i as delegatedPermissions, r as coversRequirements } from "./delegation-CrdqnesZ.js";
|
|
13
|
+
import { n as matchGrantee, t as combineWhere } from "./grantee-match-CPQ9zV-H.js";
|
|
13
14
|
import { c as nowSeconds$1, d as resolveActiveTenant, l as partitionsOf, p as scopeField, r as isMembershipExpired } from "./tenancy-BlxY5T0q.js";
|
|
14
15
|
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
15
|
-
import { t as buildSnapshot } from "./snapshot-
|
|
16
|
+
import { o as subjectFromSnapshot, t as buildSnapshot } from "./snapshot-BcHYtUIg.js";
|
|
17
|
+
import { t as evaluateSnapshot } from "./snapshot-evaluate-CwYVSUgO.js";
|
|
16
18
|
import { t as byCodePoint } from "./compare-DTfyUunF.js";
|
|
17
|
-
import { c as levelNames, i as grantList, n as declaredRoleNames, s as levelCondition, t as coveredLevels } from "./policy-
|
|
18
|
-
import { C as tenantCustomRoles, D as emptyListeners, M as contactMayUse, S as roleAllowKeys, _ as isSharedCustomRole, a as expandRoleNames, g as holdsGlobalCustomRole, h as holdsCustomRole, l as ceilingGrants, m as customRoleScope, n as requirementCondition, p as customRoleOf, t as evaluate, u as customGrantsFor, x as resolveCustomRole } from "./evaluate-
|
|
19
|
+
import { c as levelNames, i as grantList, n as declaredRoleNames, s as levelCondition, t as coveredLevels } from "./policy-BovcTojN.js";
|
|
20
|
+
import { C as tenantCustomRoles, D as emptyListeners, M as contactMayUse, S as roleAllowKeys, _ as isSharedCustomRole, a as expandRoleNames, g as holdsGlobalCustomRole, h as holdsCustomRole, l as ceilingGrants, m as customRoleScope, n as requirementCondition, p as customRoleOf, t as evaluate, u as customGrantsFor, x as resolveCustomRole } from "./evaluate-_JdlbJ32.js";
|
|
19
21
|
//#region src/core/memberships.ts
|
|
20
22
|
/** Two memberships are the same row when everything but `roles` matches. */
|
|
21
23
|
function identity(membership) {
|
|
@@ -568,6 +570,58 @@ function assignableCustomRoles(policy, customRoles, tenant, declared, mayHandOut
|
|
|
568
570
|
};
|
|
569
571
|
}
|
|
570
572
|
//#endregion
|
|
573
|
+
//#region src/core/type-level.ts
|
|
574
|
+
/**
|
|
575
|
+
* Whether a rowless answer could change without a new snapshot: a grant with a
|
|
576
|
+
* `validity` or a membership with `expiresAt` flips with the clock.
|
|
577
|
+
*/
|
|
578
|
+
function clockDependent(snapshot) {
|
|
579
|
+
return snapshot.grants.some((entry) => entry.validity !== void 0) || (snapshot.subject.principal?.memberships ?? []).some((membership) => membership.expiresAt !== void 0);
|
|
580
|
+
}
|
|
581
|
+
function rowless(snapshot, permission) {
|
|
582
|
+
try {
|
|
583
|
+
return evaluateSnapshot(snapshot, subjectFromSnapshot(snapshot, void 0), permission, void 0, void 0, {});
|
|
584
|
+
} catch {
|
|
585
|
+
/* v8 ignore next */
|
|
586
|
+
return null;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
/**
|
|
590
|
+
* The `typeLevel` table of `snapshot`: the answer of every permission it holds
|
|
591
|
+
* an allow for, computed by the evaluator the client would run. A throw is a
|
|
592
|
+
* denial, as in `can()`.
|
|
593
|
+
*/
|
|
594
|
+
function typeLevelOf(policy, snapshot) {
|
|
595
|
+
if (clockDependent(snapshot)) return;
|
|
596
|
+
const granted = [];
|
|
597
|
+
const approval = [];
|
|
598
|
+
const endpoint = [];
|
|
599
|
+
const keys = new Set(snapshot.grants.filter((entry) => entry.effect === "allow").map((entry) => entry.permission));
|
|
600
|
+
for (const key of [...keys].toSorted()) {
|
|
601
|
+
const permission = findPermission(policy.permissions, key);
|
|
602
|
+
const decision = permission === void 0 ? null : rowless(snapshot, permission);
|
|
603
|
+
if (decision === null) continue;
|
|
604
|
+
switch (decision.outcome) {
|
|
605
|
+
case "granted":
|
|
606
|
+
granted.push(key);
|
|
607
|
+
break;
|
|
608
|
+
case "approval-required":
|
|
609
|
+
approval.push(key);
|
|
610
|
+
break;
|
|
611
|
+
case "denied":
|
|
612
|
+
if (decision.denials.some((denial) => denial.reason === "opaque-condition")) endpoint.push(key);
|
|
613
|
+
break;
|
|
614
|
+
/* v8 ignore next 4 */
|
|
615
|
+
default: return decision;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
return compact({
|
|
619
|
+
granted,
|
|
620
|
+
approval: approval.length === 0 ? void 0 : approval,
|
|
621
|
+
endpoint: endpoint.length === 0 ? void 0 : endpoint
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
//#endregion
|
|
571
625
|
//#region src/core/instance-snapshot.ts
|
|
572
626
|
/**
|
|
573
627
|
* The one path from a resolved subject to a `Snapshot`; pure apart from the
|
|
@@ -579,7 +633,7 @@ function snapshotOf(policy, subject, options) {
|
|
|
579
633
|
const roles = heldRoleNames(policy, subject, subject.principal?.tenant, void 0, now);
|
|
580
634
|
const audiences = audiencesOf(policy, roles);
|
|
581
635
|
const delegated = delegatedPermissions(policy.delegations, subject, new Set(roles), now);
|
|
582
|
-
|
|
636
|
+
const built = buildSnapshot(compact({
|
|
583
637
|
subject,
|
|
584
638
|
roles,
|
|
585
639
|
audiences: audiences.length === 0 ? void 0 : audiences,
|
|
@@ -606,6 +660,11 @@ function snapshotOf(policy, subject, options) {
|
|
|
606
660
|
});
|
|
607
661
|
}
|
|
608
662
|
}));
|
|
663
|
+
const typeLevel = typeLevelOf(policy, built);
|
|
664
|
+
return typeLevel === void 0 ? built : freezeDeep({
|
|
665
|
+
...built,
|
|
666
|
+
typeLevel
|
|
667
|
+
});
|
|
609
668
|
}
|
|
610
669
|
/**
|
|
611
670
|
* The policy's scopes as snapshots and `permdock cloud push` carry them, with
|
package/dist/jwt/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as JwtClaims, _t as TokenSigner, bt as VerifiedToken, gt as TokenFailureCause, sn as AuthEvent, vt as TokenVerifier, xr as Subject, yr as Principal } from "../policy-types-
|
|
2
|
-
import { c as LinkPolicy, o as CapabilityPrincipal, t as Capability } from "../capability-
|
|
3
|
-
import { B as JwtAlgorithm, F as DpopProofResult, H as JwtPrincipal, I as IntrospectionPrincipal, L as JoseTokenSignerOptions, P as DiscoveryInput, R as JoseTokenVerifierOptions, U as JwtSubjectOptions, V as JwtJwks, W as MappedSubject, l as ReplayStore, z as JsonWebKeySet } from "../types-
|
|
4
|
-
import { t as memoryReplayStore } from "../replay-
|
|
1
|
+
import { $ as JwtClaims, _t as TokenSigner, bt as VerifiedToken, gt as TokenFailureCause, sn as AuthEvent, vt as TokenVerifier, xr as Subject, yr as Principal } from "../policy-types-CCBrL7me.js";
|
|
2
|
+
import { c as LinkPolicy, o as CapabilityPrincipal, t as Capability } from "../capability-mLbd3KZ0.js";
|
|
3
|
+
import { B as JwtAlgorithm, F as DpopProofResult, H as JwtPrincipal, I as IntrospectionPrincipal, L as JoseTokenSignerOptions, P as DiscoveryInput, R as JoseTokenVerifierOptions, U as JwtSubjectOptions, V as JwtJwks, W as MappedSubject, l as ReplayStore, z as JsonWebKeySet } from "../types-CdXM6qPc.js";
|
|
4
|
+
import { t as memoryReplayStore } from "../replay-CsErjiHt.js";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
//#region src/jwt/capability.d.ts
|
|
7
7
|
/**
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { i as stepUpOf } from "./problem-details-CLDgX1KV.js";
|
|
3
3
|
import { n as describe } from "./describe-BZAlPHxT.js";
|
|
4
|
-
import {
|
|
5
|
-
import { a as deniedMessage } from "./errors-ynga1EQy.js";
|
|
6
|
-
import { a as actorMayCallTool } from "./condition-evaluate-bVVRSdzq.js";
|
|
7
|
-
import { c as nowSeconds, r as isMembershipExpired } from "./tenancy-BlxY5T0q.js";
|
|
4
|
+
import { t as actorMayCallTool } from "./delegation-CrdqnesZ.js";
|
|
8
5
|
import { n as resourceRef } from "./resource-ref-CaS9yVPi.js";
|
|
9
|
-
import {
|
|
6
|
+
import { c as nowSeconds, r as isMembershipExpired } from "./tenancy-BlxY5T0q.js";
|
|
7
|
+
import { a as deniedMessage } from "./errors-ynga1EQy.js";
|
|
8
|
+
import { k as activate } from "./evaluate-_JdlbJ32.js";
|
|
9
|
+
import { t as delegationAllows } from "./may-use-D0_wNcgB.js";
|
|
10
10
|
import { r as withApp } from "./app-DIvM65Mv.js";
|
|
11
11
|
import { n as tenantScope, t as actorFrom } from "./adapter-context-OHikyRqV.js";
|
|
12
|
-
import { n as resolveOrNull } from "./build-instance-
|
|
13
|
-
import { n as requestContext, t as buildReportingInstance } from "./request-context-
|
|
14
|
-
import { l as storedApprovalToken, s as resumeDecision } from "./helpers-
|
|
12
|
+
import { n as resolveOrNull } from "./build-instance-BDGzsGcn.js";
|
|
13
|
+
import { n as requestContext, t as buildReportingInstance } from "./request-context-B_L4ev8L.js";
|
|
14
|
+
import { l as storedApprovalToken, s as resumeDecision } from "./helpers-CO2hDpBU.js";
|
|
15
15
|
//#region src/agent/denied-text.ts
|
|
16
16
|
/**
|
|
17
17
|
* The hook's text, or `event.text` when there is no hook or it throws or
|
package/dist/kysely/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Er as Condition, qt as Instant, xr as Subject } from "../policy-types-
|
|
2
|
-
import { f as WhereResult } from "../permdock-
|
|
1
|
+
import { Er as Condition, qt as Instant, xr as Subject } from "../policy-types-CCBrL7me.js";
|
|
2
|
+
import { f as WhereResult } from "../permdock-vD3mwLSm.js";
|
|
3
3
|
import { r as RelationsMapping } from "../graph-sql-BwFC4Qjs.js";
|
|
4
|
-
import { s as MembershipsMapping } from "../compile-
|
|
4
|
+
import { s as MembershipsMapping } from "../compile-DSwZUJmL.js";
|
|
5
5
|
import { n as RowCheck, t as WithSubjectOptions } from "../subject-settings-vNW8qmUH.js";
|
|
6
6
|
//#region src/kysely/types.d.ts
|
|
7
7
|
type KyselySelectQuery = {
|
|
@@ -27,7 +27,7 @@ const login = defineLeaf({
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
async run(ctx, { flags }) {
|
|
30
|
-
const { runLogin } = await import("./login-
|
|
30
|
+
const { runLogin } = await import("./login-CcBS1xkU.js");
|
|
31
31
|
return runLogin({
|
|
32
32
|
cwd: ctx.cwd,
|
|
33
33
|
url: given(flags.url),
|
|
@@ -43,7 +43,7 @@ const login = defineLeaf({
|
|
|
43
43
|
const logout = defineLeaf({
|
|
44
44
|
flags: { ...urlFlag },
|
|
45
45
|
async run(ctx, { flags }) {
|
|
46
|
-
const { runLogout } = await import("./login-
|
|
46
|
+
const { runLogout } = await import("./login-CcBS1xkU.js");
|
|
47
47
|
return runLogout({
|
|
48
48
|
url: given(flags.url),
|
|
49
49
|
json: ctx.json,
|
|
@@ -55,7 +55,7 @@ const logout = defineLeaf({
|
|
|
55
55
|
const whoami = defineLeaf({
|
|
56
56
|
flags: { ...urlFlag },
|
|
57
57
|
async run(ctx, { flags }) {
|
|
58
|
-
const { runWhoami } = await import("./login-
|
|
58
|
+
const { runWhoami } = await import("./login-CcBS1xkU.js");
|
|
59
59
|
return runWhoami({
|
|
60
60
|
url: given(flags.url),
|
|
61
61
|
json: ctx.json,
|
|
@@ -3,7 +3,7 @@ import { n as CliError } from "./errors-BhRkoNS7.js";
|
|
|
3
3
|
import { i as postForm, r as parseToken, s as runDeviceFlow } from "./device-BkSynWdg.js";
|
|
4
4
|
import { i as writeCredentials, n as deleteCredentials, r as readCredentials, t as credentialsPath } from "./storage-C2bWdvJH.js";
|
|
5
5
|
import { n as randomToken, t as pkce } from "./pkce-CnmmYqUZ.js";
|
|
6
|
-
import { a as nonEmptyOr } from "./output-
|
|
6
|
+
import { a as nonEmptyOr } from "./output-B81GJ6u6.js";
|
|
7
7
|
import { n as httpRequest } from "./http-dptLQzPP.js";
|
|
8
8
|
import { c as READ_SCOPES, d as issuerMetadata, i as credentialsInsideRepository, l as cloudUrl, n as cliRuntime, r as credentialStorage, s as CLI_CLIENT_ID, t as CREDENTIAL_SERVICE } from "./auth-BxXHxWRy.js";
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
2
2
|
import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
|
|
3
3
|
import { n as copyJson, t as checkSchema } from "./json-schema-BPGa-RjQ.js";
|
|
4
|
-
import { t as supabaseManifestSchema } from "./manifest-schema-
|
|
4
|
+
import { t as supabaseManifestSchema } from "./manifest-schema-svAkgqMc.js";
|
|
5
5
|
//#region src/supabase/manifest.ts
|
|
6
6
|
/** Whether the manifest describes a token hook. */
|
|
7
7
|
function hasTokenHook(manifest) {
|
|
@@ -120,6 +120,7 @@ type SupabaseManifestResourceNames = {
|
|
|
120
120
|
/** With `rls.rowHelpers` naming the resource. */
|
|
121
121
|
readonly rows?: string;
|
|
122
122
|
readonly row?: string;
|
|
123
|
+
readonly idType?: string;
|
|
123
124
|
/** With `rls.fields` and a mapped table. */
|
|
124
125
|
readonly visible?: string;
|
|
125
126
|
readonly visibleFields?: string;
|