permdock 0.22.1 → 0.24.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-DzX5Gqcg.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-BkjyGVF0.js → arazzo-4rMFOHbu.js} +1 -1
- package/dist/{arazzo-CTx11zFc.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 +61 -23
- package/dist/better-supabase/index.js +87 -35
- 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-BFOuRptJ.js → casbin-CjUT-wqV.js} +1 -1
- package/dist/{casbin-BpS9ABSO.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-DXcQXWDi.js → cloud-Blw4AaQv.js} +2 -2
- package/dist/{codemod-CxyKuniX.js → codemod-BFFXaS-S.js} +1 -1
- package/dist/{codemod-DJ0WqXWk.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-BHVvAJ6Q.js → completion-BW53byZN.js} +1 -1
- package/dist/{config-2grt3oll.js → config-B0qti4jI.js} +1 -1
- package/dist/{config-report-Cg5Y5j0h.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-iIbdUK8F.js → doctor-Jk2Ifezw.js} +2 -2
- package/dist/{doctor-DaRoSPT0.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-Cw8goef4.js → gen-BwcwwLok.js} +3 -3
- package/dist/{gen-DFpWGJWF.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-DDegvwDI.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-D_T_zgFg.js → init-Baq0yYfu.js} +1 -1
- package/dist/{init-Dz552ZPp.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-DIVe6QdP.js → login-CUboKh0f.js} +3 -3
- package/dist/{login-B2usNw0X.js → login-CcBS1xkU.js} +1 -1
- package/dist/{manifest-D44OkoLk.js → manifest-BoCYBbQL.js} +1 -1
- package/dist/{manifest-CbHnl4I_.js → manifest-CIlVL-QT.js} +35 -35
- package/dist/{manifest-schema-DUheHWcp.js → manifest-schema-svAkgqMc.js} +1 -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-5moP9sTG.js → openapi-DglIpD53.js} +2 -2
- package/dist/{openapi-DcvNnLFa.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-RIUEs3_S.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-C5_aFFaU.js → powersync-B6f4l8C1.js} +2 -2
- package/dist/{powersync-BUO5uQve.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-BWvZjjyt.js} +83 -12
- package/dist/{protected-action-C4aj1KjO.d.ts → protected-action-DGuJNiMA.d.ts} +20 -8
- package/dist/provider-B085HEOf.js +12 -0
- package/dist/{provider-store-D4PU1my_.js → provider-store-BLd4UEmg.js} +4 -3
- package/dist/{provider-DKO9KHua.js → provider-with-DobrMx1N.js} +6 -6
- package/dist/{provider-B-1DlOGM.d.ts → provider-yIM04TwN.d.ts} +1 -1
- package/dist/{pull-BkT7tTKb.js → pull-4Yi8zYeU.js} +3 -3
- package/dist/pull-Dr6Bq5Jo.js +1 -0
- package/dist/{push-CEPcWdTJ.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/lazy.d.ts +12 -0
- package/dist/react/lazy.js +36 -0
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +8 -8
- package/dist/react-native/index.js +7 -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-bzYlAXRt.js → resolve-names-SGcLjtFc.js} +2 -2
- package/dist/{rls-v6V75yf_.js → rls-Df9NEWD3.js} +1 -1
- package/dist/{rls-DTf8X__h.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-CgSQS9RF.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-BY3Pp1PS.js → scan-BrTSlc_5.js} +1 -1
- package/dist/{schema-B_HsJKm2.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-Bj2wk38p.js → skills-BTVeFptV.js} +1 -1
- package/dist/{skills-Clo4qYLn.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-CdYZBVcW.d.ts → sources-DhCtO9G8.d.ts} +1 -1
- 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 +6 -6
- 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-CJv6K3iz.js → supabase-Bt8rb-ah.js} +2 -2
- package/dist/{supabase-hook-DLQMugW8.js → supabase-hook-Cb3UZpGC.js} +6 -5
- package/dist/supabase-hook-D1pwHu87.js +1 -0
- package/dist/{supautils-BHKsP7l-.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 +3 -3
- package/dist/testing/fixtures/index.js +7 -1
- package/dist/testing/index.d.ts +23 -23
- 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-cNZhj0UF.d.ts → types-B_s1oQaF.d.ts} +2 -2
- 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/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-DlOllyPi.js → usage-B6sQwycY.js} +4 -4
- package/dist/{usage-BUUXeKwk.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-CfmvQjVw.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 +8 -4
- package/schemas/supabase-manifest-v1.json +1 -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-DhspazC8.js +0 -1
- package/dist/pull-COPm1W-l.js +0 -1
- package/dist/run-ItR_bQGz.js +0 -1
- package/dist/supabase-hook-vZADjjfN.js +0 -1
- package/dist/usage-NmH5QXKC.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,6 +1,6 @@
|
|
|
1
1
|
import { a as describeError, n as CliError } from "./errors-BhRkoNS7.js";
|
|
2
2
|
import { a as rel, r as listSourceFiles, s as writeFileEnsuringDir, t as defaultSrcPath } from "./files-BSjrtIHw.js";
|
|
3
|
-
import { n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, t as buildCatalog } from "./catalog-doc-
|
|
3
|
+
import { n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, t as buildCatalog } from "./catalog-doc-BoSOQRXT.js";
|
|
4
4
|
import { i as visitorKeyTypes, r as parseSync, t as createVisitor } from "./optional-8TKc-0j4.js";
|
|
5
5
|
import { a as loadModule, i as loadConfiguredPolicy, r as leavesOf, s as pickNamed, t as asPermissionTree } from "./load-C4p4VgwR.js";
|
|
6
6
|
import { t as loadConfiguredOperations } from "./catalog-operations-Do1eD-Rt.js";
|
package/dist/compile/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as GraphSqlPart, r as RelationsMapping, t as GraphSql } from "../graph-sql-BwFC4Qjs.js";
|
|
2
|
-
import { a as CompiledWhere, c as compileWhere, i as CompiledSql, l as escapeLike, n as CompiledCompare, o as MembershipTable, r as CompiledExists, s as MembershipsMapping, t as CompileWhereOptions } from "../compile-
|
|
2
|
+
import { a as CompiledWhere, c as compileWhere, i as CompiledSql, l as escapeLike, n as CompiledCompare, o as MembershipTable, r as CompiledExists, s as MembershipsMapping, t as CompileWhereOptions } from "../compile-DSwZUJmL.js";
|
|
3
3
|
export { type CompileWhereOptions, type CompiledCompare, type CompiledExists, type CompiledSql, type CompiledWhere, type GraphSql, type GraphSqlPart, type MembershipTable, type MembershipsMapping, type RelationsMapping, compileWhere, escapeLike };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Er as Condition, Sn as Scope, qt as Instant, xr as Subject } from "./policy-types-
|
|
1
|
+
import { Er as Condition, Sn as Scope, qt as Instant, xr as Subject } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { P as ResourceNode } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { f as WhereResult } from "./permdock-
|
|
3
|
+
import { f as WhereResult } from "./permdock-vD3mwLSm.js";
|
|
4
4
|
import { r as RelationsMapping, t as GraphSql } from "./graph-sql-BwFC4Qjs.js";
|
|
5
5
|
//#region src/conditions/compile.d.ts
|
|
6
6
|
type MembershipTable = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-BhRkoNS7.js";
|
|
2
2
|
import { a as GLOBAL_FLAGS, i as suggestion } from "./args-iafbHiXn.js";
|
|
3
|
-
import { a as resolve } from "./manifest-
|
|
3
|
+
import { a as resolve } from "./manifest-CIlVL-QT.js";
|
|
4
4
|
import { t as defineLeaf } from "./command-L8EstFNm.js";
|
|
5
5
|
//#region src/cli/core/completion.ts
|
|
6
6
|
const SHELLS = [
|
|
@@ -10,7 +10,7 @@ const config = defineLeaf({
|
|
|
10
10
|
...failOnFlag
|
|
11
11
|
},
|
|
12
12
|
async run(ctx, { flags }) {
|
|
13
|
-
const { runConfig } = await import("./config-report-
|
|
13
|
+
const { runConfig } = await import("./config-report-DgMqeeK6.js");
|
|
14
14
|
return runConfig({
|
|
15
15
|
cwd: ctx.cwd,
|
|
16
16
|
config: ctx.config,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as rel, t as defaultSrcPath } from "./files-BSjrtIHw.js";
|
|
2
2
|
import { r as CONFIG_REPORT_SCHEMA } from "./version-DMQ0dnN5.js";
|
|
3
3
|
import { t as catalogPath } from "./catalog-path-CnI0XTFK.js";
|
|
4
|
-
import { n as guessPermissions, t as barrelFile } from "./collect-
|
|
4
|
+
import { n as guessPermissions, t as barrelFile } from "./collect-D3ToPa6Z.js";
|
|
5
5
|
import "./sources-C4vkzZJV.js";
|
|
6
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
6
|
+
import { t as DOCS_BASE } from "./manifest-CIlVL-QT.js";
|
|
7
7
|
import { n as MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-DcJABbLW.js";
|
|
8
8
|
//#region src/cli/config-report.ts
|
|
9
9
|
function configReport(input) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { l as isPromiseLike } from "./store-options-
|
|
3
|
-
import { n as switchTenant, t as providerStore } from "./provider-store-
|
|
2
|
+
import { l as isPromiseLike } from "./store-options-COLWAd1K.js";
|
|
3
|
+
import { n as switchTenant, t as providerStore } from "./provider-store-BLd4UEmg.js";
|
|
4
4
|
import { getContext, onDestroy, setContext } from "svelte";
|
|
5
5
|
import { toStore } from "svelte/store";
|
|
6
6
|
//#region src/svelte/context.ts
|
package/dist/convex/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
4
|
-
import { a as ProblemDetails, r as PermDockDeniedError } from "../errors-
|
|
5
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
3
|
+
import { a as PermDock } from "../permdock-vD3mwLSm.js";
|
|
4
|
+
import { a as ProblemDetails, r as PermDockDeniedError } from "../errors-CXxQwtbZ.js";
|
|
5
|
+
import { t as InstanceOptions } from "../instance-options-BDHB3qBG.js";
|
|
6
6
|
//#region src/convex/types.d.ts
|
|
7
7
|
type ConvexContextLike = {
|
|
8
8
|
readonly auth?: {
|
package/dist/convex/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { n as PermDockValidationError } from "../validation-error-CYg2kJEw.js";
|
|
|
3
3
|
import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-ynga1EQy.js";
|
|
4
4
|
import { r as withApp } from "../app-DIvM65Mv.js";
|
|
5
5
|
import { n as tenantScope, t as actorFrom } from "../adapter-context-OHikyRqV.js";
|
|
6
|
-
import { n as resolveOrNull, t as buildInstance } from "../build-instance-
|
|
6
|
+
import { n as resolveOrNull, t as buildInstance } from "../build-instance-BDGzsGcn.js";
|
|
7
7
|
//#region src/convex/create.ts
|
|
8
8
|
/**
|
|
9
9
|
* Convex's runtime sends `data` to the client only for an error carrying this
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as memoryCustomRoleSource } from "./src-
|
|
2
|
-
import { n as fromSnapshot } from "./from-snapshot-oR_N97dM.js";
|
|
1
|
+
import { D as memoryCustomRoleSource } from "./src-BZKQe1lr.js";
|
|
3
2
|
import { c as listPermissions } from "./permission-registry-B8tYxPIt.js";
|
|
4
3
|
import { d as scopeList } from "./scopes-gdH__vDZ.js";
|
|
5
|
-
import { n as parseSnapshot } from "./snapshot-
|
|
6
|
-
import { t as getPermDock } from "./permdock-
|
|
7
|
-
import { y as membershipsClaim } from "./evaluate-
|
|
4
|
+
import { n as parseSnapshot } from "./snapshot-BcHYtUIg.js";
|
|
5
|
+
import { t as getPermDock } from "./permdock-HfTF99xX.js";
|
|
6
|
+
import { y as membershipsClaim } from "./evaluate-_JdlbJ32.js";
|
|
7
|
+
import { t as fromSnapshot } from "./from-snapshot-CdGYjHUg.js";
|
|
8
8
|
import "./budget-BBCPDOGP.js";
|
|
9
9
|
import { c as quoteSqlTable, n as defaultSqlCommand, o as quoteSqlIdent, t as SQL_IDENT } from "./sql-0WjxIp9g.js";
|
|
10
10
|
//#region src/testing/policy-matrix.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as Policy, Yn as Decision, pr as CustomRole, vr as Membership } from "./policy-types-
|
|
1
|
+
import { D as Policy, Yn as Decision, pr as CustomRole, vr as Membership } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { f as WhereResult, o as PermDockOptions } from "./permdock-
|
|
3
|
+
import { f as WhereResult, o as PermDockOptions } from "./permdock-vD3mwLSm.js";
|
|
4
4
|
//#region src/testing/policy-matrix.d.ts
|
|
5
5
|
type MatrixOutcome = "granted" | "denied" | "approval-required";
|
|
6
6
|
type MatrixCell = MatrixOutcome | {
|
|
@@ -3,14 +3,14 @@ import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
|
3
3
|
import { n as problemDetails } from "./problem-details-CLDgX1KV.js";
|
|
4
4
|
import { c as listPermissions } from "./permission-registry-B8tYxPIt.js";
|
|
5
5
|
import { n as resourceRef } from "./resource-ref-CaS9yVPi.js";
|
|
6
|
-
import { i as challengeScope } from "./permdock-
|
|
6
|
+
import { i as challengeScope } from "./permdock-HfTF99xX.js";
|
|
7
7
|
import { r as withApp } from "./app-DIvM65Mv.js";
|
|
8
8
|
import { n as tenantScope, t as actorFrom } from "./adapter-context-OHikyRqV.js";
|
|
9
|
-
import { n as resolveOrNull } from "./build-instance-
|
|
9
|
+
import { n as resolveOrNull } from "./build-instance-BDGzsGcn.js";
|
|
10
10
|
import { t as LOAD_FAILED } from "./decision-CaG5_eNJ.js";
|
|
11
|
-
import { a as decisionResponse, c as problemFromDecision, d as unauthenticatedProblem, s as notFoundProblem, t as ANONYMOUS } from "./problem-
|
|
12
|
-
import { f as InvalidSignatureError, n as applyApprovalResume, o as evaluationsHandler } from "./evaluations-
|
|
13
|
-
import { n as requestContext, t as buildReportingInstance } from "./request-context-
|
|
11
|
+
import { a as decisionResponse, c as problemFromDecision, d as unauthenticatedProblem, s as notFoundProblem, t as ANONYMOUS } from "./problem-CPB8kqk7.js";
|
|
12
|
+
import { f as InvalidSignatureError, n as applyApprovalResume, o as evaluationsHandler } from "./evaluations-Bj5xw0EM.js";
|
|
13
|
+
import { n as requestContext, t as buildReportingInstance } from "./request-context-B_L4ev8L.js";
|
|
14
14
|
import { n as decideSet, r as permissionList } from "./decide-set-DXEPepY1.js";
|
|
15
15
|
import { r as hasCredentials } from "./http-DKLXrFGk.js";
|
|
16
16
|
//#region src/server/kernel-problems.ts
|
|
@@ -292,7 +292,7 @@ function createPermDock(policy, given) {
|
|
|
292
292
|
};
|
|
293
293
|
const connection = async (request, connectionOptions = {}, scope) => {
|
|
294
294
|
const { tenant } = scope ?? await tenantScope(options.tenant, request);
|
|
295
|
-
return (await import("./connection-
|
|
295
|
+
return (await import("./connection-zoAgwdsD.js")).openConnection({
|
|
296
296
|
open: async () => (await build(request, { tenant })).permdock,
|
|
297
297
|
rebuild: async () => (await instanceFor(await freshSubject(request), tenant, "write")).permdock,
|
|
298
298
|
tenant,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, Yn as Decision, hr as Delegation, xr as Subject, yr as Principal } from "./policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, Yn as Decision, hr as Delegation, xr as Subject, 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 { a as PermDock } from "./permdock-
|
|
5
|
-
import { m as ApprovalStore } from "./types-
|
|
6
|
-
import { t as InstanceOptions } from "./instance-options-
|
|
4
|
+
import { a as PermDock } from "./permdock-vD3mwLSm.js";
|
|
5
|
+
import { m as ApprovalStore } from "./types-CAp7UGiB.js";
|
|
6
|
+
import { t as InstanceOptions } from "./instance-options-BDHB3qBG.js";
|
|
7
7
|
import { t as RequestContext } from "./request-context-C2_1lchh.js";
|
|
8
|
-
import { n as PermDockWrap } from "./wrap-
|
|
9
|
-
import { o as OtelWrap } from "./types-
|
|
10
|
-
import { t as DeniedText } from "./denied-text-
|
|
8
|
+
import { n as PermDockWrap } from "./wrap-CVBPIuEs.js";
|
|
9
|
+
import { o as OtelWrap } from "./types-CXUwgZ3d.js";
|
|
10
|
+
import { t as DeniedText } from "./denied-text-BTMxIn5W.js";
|
|
11
11
|
//#region src/agent/step-up.d.ts
|
|
12
12
|
/**
|
|
13
13
|
* What the user can do to lift a denial: authenticate again with the `acr` and
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $n as DeniedDecision, D as Policy, Jn as ApprovalRequiredDecision, N as PolicyVocabulary, tr as GrantedDecision, xr as Subject, yr as Principal } from "./policy-types-
|
|
1
|
+
import { $n as DeniedDecision, D as Policy, Jn as ApprovalRequiredDecision, N as PolicyVocabulary, tr as GrantedDecision, xr as Subject, yr as Principal } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { t as Operation } from "./operations-BMPx7HyO.js";
|
|
3
|
-
import { _ as PrincipalSource, a as PermDock, o as PermDockOptions } from "./permdock-
|
|
4
|
-
import { m as ApprovalStore, p as ApprovalStatus } from "./types-
|
|
3
|
+
import { _ as PrincipalSource, a as PermDock, o as PermDockOptions } from "./permdock-vD3mwLSm.js";
|
|
4
|
+
import { m as ApprovalStore, p as ApprovalStatus } from "./types-CAp7UGiB.js";
|
|
5
5
|
import { n as ApprovalErrorCode } from "./errors-CHwoRRpB.js";
|
|
6
|
-
import { t as ApprovalPrompt } from "./approval-prompt-
|
|
6
|
+
import { t as ApprovalPrompt } from "./approval-prompt-DtfKSH-8.js";
|
|
7
7
|
//#region src/chat/subject.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* The platform user behind a chat message or action. Fill it only from an event
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as deniedFor } from "./may-use-D0_wNcgB.js";
|
|
4
4
|
import { r as withApp } from "./app-DIvM65Mv.js";
|
|
5
|
-
import { t as composeWraps } from "./wrap-
|
|
5
|
+
import { t as composeWraps } from "./wrap-C5PWzgkq.js";
|
|
6
6
|
import { t as instanceOptions } from "./instance-options-URVwqpMW.js";
|
|
7
|
-
import { n as createAgentKernel } from "./kernel-
|
|
7
|
+
import { n as createAgentKernel } from "./kernel-BY3rVRs2.js";
|
|
8
8
|
//#region src/agent/create.ts
|
|
9
9
|
function modelRow(modelId) {
|
|
10
10
|
return { id: modelId };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, Xn as Denial, Yn as Decision, _t as TokenSigner, qt as Instant, sn as AuthEvent, vt as TokenVerifier, yr as Principal } from "./policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, Xn as Denial, Yn as Decision, _t as TokenSigner, qt as Instant, sn as AuthEvent, vt as TokenVerifier, yr as Principal } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { _ as PrincipalSource, a as PermDock, n as DecideOptions, o as PermDockOptions } from "./permdock-
|
|
4
|
-
import { m as ApprovalStore } from "./types-
|
|
5
|
-
import { a as AutomationSource } from "./automation-
|
|
6
|
-
import { n as ApprovalWaiter } from "./waiter-
|
|
7
|
-
import { c as RunResource, i as RunBinding, r as RunAutomation } from "./run-ticket-
|
|
3
|
+
import { _ as PrincipalSource, a as PermDock, n as DecideOptions, o as PermDockOptions } from "./permdock-vD3mwLSm.js";
|
|
4
|
+
import { m as ApprovalStore } from "./types-CAp7UGiB.js";
|
|
5
|
+
import { a as AutomationSource } from "./automation-CrGcfIZn.js";
|
|
6
|
+
import { n as ApprovalWaiter } from "./waiter-LdnPaBJE.js";
|
|
7
|
+
import { c as RunResource, i as RunBinding, r as RunAutomation } from "./run-ticket-zfABczfh.js";
|
|
8
8
|
//#region src/workflow/create.d.ts
|
|
9
9
|
type WorkflowPermDockOptions = PermDockOptions & {
|
|
10
10
|
/** Signs the run tickets `start` mints. */
|
|
@@ -2,10 +2,10 @@ import { n as isReadonlyArray, t as compact } from "./compact-CAf557ZB.js";
|
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { a as ownRecord } from "./paths-CUvURzHp.js";
|
|
4
4
|
import { c as listPermissions, h as formerKeys } from "./permission-registry-B8tYxPIt.js";
|
|
5
|
-
import { o as flattenGrantee } from "./grantee-
|
|
5
|
+
import { o as flattenGrantee } from "./grantee-OG4klcNr.js";
|
|
6
6
|
import { g as secondsOf, l as isRfc3339, m as rfc3339, p as nowSeconds } from "./time-nR1JesoH.js";
|
|
7
7
|
import { r as isId, t as idList } from "./ids-DzhJaCUj.js";
|
|
8
|
-
import {
|
|
8
|
+
import { n as coveredByDelegation } from "./delegation-CrdqnesZ.js";
|
|
9
9
|
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
10
10
|
import { r as sha256Digest } from "./sha256-C-4WXKIu.js";
|
|
11
11
|
import { n as internalsOf } from "./internals-B3IgHrvo.js";
|
|
@@ -4,7 +4,7 @@ import { f as nowMillis, u as isoAt } from "./time-nR1JesoH.js";
|
|
|
4
4
|
import { t as bytesToBase64Url } from "./sha256-C-4WXKIu.js";
|
|
5
5
|
import { t as anonymousSubject } from "./subject-C7RddW0G.js";
|
|
6
6
|
import { c as credentialEvent } from "./sink-D9_vh372.js";
|
|
7
|
-
import { i as credentialTenant, n as credentialPolicyViolation, o as isFeedId, r as credentialSubject, s as parseCredential } from "./credential-
|
|
7
|
+
import { i as credentialTenant, n as credentialPolicyViolation, o as isFeedId, r as credentialSubject, s as parseCredential } from "./credential-DrVrRL7z.js";
|
|
8
8
|
//#region src/server/credentials.ts
|
|
9
9
|
const PREFIX = "pdk_";
|
|
10
10
|
const ID = /^[\w-]{1,128}$/u;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { G as CredentialVerifier, Mt as Credential, Pt as CredentialKind, X as DecisionSink, jt as ApiKeyPrincipal, lt as SettingsSource, sn as AuthEvent, xr as Subject } from "./policy-types-
|
|
1
|
+
import { G as CredentialVerifier, Mt as Credential, Pt as CredentialKind, X as DecisionSink, jt as ApiKeyPrincipal, lt as SettingsSource, sn as AuthEvent, xr as Subject } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { E as PermissionTree } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { _ as PrincipalSource } from "./permdock-
|
|
3
|
+
import { _ as PrincipalSource } from "./permdock-vD3mwLSm.js";
|
|
4
4
|
//#region src/server/credentials.d.ts
|
|
5
5
|
/** `on('auth')` causes for an API key that resolves to the anonymous subject. */
|
|
6
6
|
type ApiKeyFailureCause = "malformed" | "unknown-credential" | "invalid-claims" | "expired" | "credential-policy" | "credential-revoked" | "owner-unavailable";
|
|
@@ -1,166 +1,14 @@
|
|
|
1
1
|
import { n as isReadonlyArray } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { r as ownGet } from "./paths-CUvURzHp.js";
|
|
3
3
|
import { a as resolveConditionRef, c as isConditionDate, d as parentHop, l as isConditionRef } from "./refs-C8BKxc_e.js";
|
|
4
|
-
import { t as isActive } from "./validity-Buc7w8E9.js";
|
|
5
4
|
import { g as formerScopes, m as annotationsFor, n as findPermission } from "./permission-registry-B8tYxPIt.js";
|
|
6
|
-
import { o as flattenGrantee } from "./grantee-
|
|
5
|
+
import { o as flattenGrantee } from "./grantee-OG4klcNr.js";
|
|
7
6
|
import { o as epochSeconds } from "./time-nR1JesoH.js";
|
|
8
7
|
import { a as expiredAt, i as sameId } from "./ids-DzhJaCUj.js";
|
|
9
8
|
import { d as scopeList, p as tenantOf, s as resolveScope } from "./scopes-gdH__vDZ.js";
|
|
10
|
-
import { n as matchGrantee } from "./grantee-match-8J2y60MF.js";
|
|
11
9
|
import { t as isoInstant } from "./instant-DK3Iz83e.js";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
* The permission's scope and any scope it was renamed from: tokens issued
|
|
15
|
-
* before a rename keep working.
|
|
16
|
-
*/
|
|
17
|
-
function scopeNames(permission) {
|
|
18
|
-
return [permission.scope, ...formerScopes(permission)];
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Whether a delegated caller may use a permission its principal holds, through
|
|
22
|
-
* OAuth `scopes`, RFC 9396 `authorizationDetails` or GNAP `access`. `undefined`
|
|
23
|
-
* means covered; otherwise the denial reason `decide` would add.
|
|
24
|
-
*/
|
|
25
|
-
function coveredByDelegation(permission, delegation, resourceId, hasActor = false) {
|
|
26
|
-
const unscoped = hasActor ? "no-delegation" : void 0;
|
|
27
|
-
if (delegation === void 0) return unscoped;
|
|
28
|
-
const hasScopes = delegation.scopes !== void 0;
|
|
29
|
-
const hasDetails = delegation.authorizationDetails !== void 0;
|
|
30
|
-
const hasAccess = delegation.access !== void 0;
|
|
31
|
-
if (!hasScopes && !hasDetails && !hasAccess) return unscoped;
|
|
32
|
-
const emptyScopes = hasScopes && (delegation.scopes?.length ?? 0) === 0;
|
|
33
|
-
const emptyAccess = hasAccess && (delegation.access?.length ?? 0) === 0;
|
|
34
|
-
if (emptyScopes && !hasDetails && !hasAccess) return "no-delegation";
|
|
35
|
-
if (emptyAccess && !hasScopes && !hasDetails) return "no-delegation";
|
|
36
|
-
if (emptyScopes && emptyAccess && !hasDetails) return "no-delegation";
|
|
37
|
-
const scopes = scopeNames(permission);
|
|
38
|
-
const scopeOk = delegation.scopes?.some((scope) => scopes.includes(scope)) ?? false;
|
|
39
|
-
const detailOk = delegation.authorizationDetails?.some((detail) => {
|
|
40
|
-
if (detail.type !== permission.resource) return false;
|
|
41
|
-
const identifier = detail["identifier"];
|
|
42
|
-
if (identifier !== void 0 && (typeof identifier !== "string" || identifier !== resourceId)) return false;
|
|
43
|
-
const actions = detail.actions;
|
|
44
|
-
if (actions === void 0) return true;
|
|
45
|
-
return Array.isArray(actions) && actions.includes(permission.action);
|
|
46
|
-
}) ?? false;
|
|
47
|
-
const accessOk = accessCovers(permission, delegation.access, resourceId);
|
|
48
|
-
if (scopeOk || detailOk || accessOk) return;
|
|
49
|
-
return "not-delegated";
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* A `readOnly` actor never uses a permission without `readOnlyHint`, delegated
|
|
53
|
-
* or not.
|
|
54
|
-
*/
|
|
55
|
-
function readOnlyActorRefuses(actor, permission) {
|
|
56
|
-
return actor?.readOnly === true && !annotationsFor(permission).readOnlyHint;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Whether an `agent` actor may call the tool `name`: its `tools` list names it.
|
|
60
|
-
* An agent without a `tools` list and any other actor kind are not restricted
|
|
61
|
-
* here; a `tools` value that is not a list of strings refuses every tool.
|
|
62
|
-
*/
|
|
63
|
-
function actorMayCallTool(actor, name) {
|
|
64
|
-
if (actor?.kind !== "agent" || !Object.hasOwn(actor, "tools")) return true;
|
|
65
|
-
const tools = actor["tools"];
|
|
66
|
-
return Array.isArray(tools) && tools.some((tool) => typeof tool === "string" && tool === name);
|
|
67
|
-
}
|
|
68
|
-
function coversRequirements(tree, requires, delegation, resourceId, hasActor = false) {
|
|
69
|
-
return (requires ?? []).every((key) => {
|
|
70
|
-
const leaf = findPermission(tree, key);
|
|
71
|
-
return leaf !== void 0 && coveredByDelegation(leaf, delegation, resourceId, hasActor) === void 0;
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
function requiresStandIn(grant) {
|
|
75
|
-
return (grant.requires ?? []).length > 0 && annotationsFor(grant.permission).readOnlyHint && !flattenGrantee(grant.to).some((item) => item.kind === "role");
|
|
76
|
-
}
|
|
77
|
-
function accessCovers(permission, access, resourceId) {
|
|
78
|
-
if (access === void 0) return false;
|
|
79
|
-
return access.some((entry) => {
|
|
80
|
-
if (typeof entry === "string") return scopeNames(permission).includes(entry);
|
|
81
|
-
if (entry === null || typeof entry !== "object") return false;
|
|
82
|
-
const type = entry["type"];
|
|
83
|
-
if (typeof type !== "string" || !typeMatches(type, permission.resource)) return false;
|
|
84
|
-
const actions = entry["actions"];
|
|
85
|
-
if (actions !== void 0 && (!Array.isArray(actions) || !actions.includes(permission.action))) return false;
|
|
86
|
-
const identifier = entry["identifier"];
|
|
87
|
-
if (identifier !== void 0 && (typeof identifier !== "string" || identifier !== resourceId)) return false;
|
|
88
|
-
return true;
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
function typeMatches(type, resource) {
|
|
92
|
-
if (type === resource) return true;
|
|
93
|
-
return type.endsWith(`/${resource}`);
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Whether the subject's principal is a `from` of the delegation: every item
|
|
97
|
-
* matches, with roles checked against the roles the principal holds here
|
|
98
|
-
* (`matchGrantee` leaves role holding to the caller) and nothing that needs a
|
|
99
|
-
* row.
|
|
100
|
-
*/
|
|
101
|
-
function handsOver(delegation, subject, heldRoles, now) {
|
|
102
|
-
const items = flattenGrantee(delegation.from);
|
|
103
|
-
if (items.length === 0 || subject.principal === null) return false;
|
|
104
|
-
return items.every((item) => {
|
|
105
|
-
if (item.kind === "role") return heldRoles.has(item.role);
|
|
106
|
-
if (item.kind === "relation") return false;
|
|
107
|
-
const match = matchGrantee(item, subject, now, void 0);
|
|
108
|
-
return match.matched && match.where === void 0;
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* The permission keys the policy's delegations let `subject.actor` use for
|
|
113
|
-
* `subject.principal` right now: the union over every active delegation whose
|
|
114
|
-
* `to` matches the actor and whose `from` the principal holds. `undefined` when
|
|
115
|
-
* none applies, so the call falls back to the token delegation alone. An actor
|
|
116
|
-
* with `readOnly: true` gets only each delegation's read-only keys. Attenuation
|
|
117
|
-
* only: a key here still needs a matching allow and no deny.
|
|
118
|
-
*/
|
|
119
|
-
function delegatedPermissions(delegations, subject, heldRoles, now) {
|
|
120
|
-
const actor = subject.actor;
|
|
121
|
-
if (actor === void 0 || delegations === void 0) return;
|
|
122
|
-
let keys;
|
|
123
|
-
for (const delegation of delegations) {
|
|
124
|
-
if (delegation.to.kind !== actor.kind || delegation.to.id !== void 0 && delegation.to.id !== actor.id || delegation.to.client !== void 0 && delegation.to.client !== actor.client || !isActive(delegation.validity, now) || !handsOver(delegation, subject, heldRoles, now)) continue;
|
|
125
|
-
keys ??= /* @__PURE__ */ new Set();
|
|
126
|
-
for (const key of actor.readOnly === true ? delegation.readOnly : delegation.permissions) keys.add(key);
|
|
127
|
-
}
|
|
128
|
-
return keys;
|
|
129
|
-
}
|
|
130
|
-
//#endregion
|
|
131
|
-
//#region src/core/row-pair.ts
|
|
132
|
-
function isRowPair(value) {
|
|
133
|
-
return value !== null && typeof value === "object" && "current" in value && "next" in value;
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* The row a `where` reads and the row a `check` reads. An instance check takes
|
|
137
|
-
* a `{ current, next }` pair or one row for both; a collection check has no
|
|
138
|
-
* current row, only the input it creates.
|
|
139
|
-
*/
|
|
140
|
-
function rowValues(permission, data) {
|
|
141
|
-
if (permission.kind === "collection") return {
|
|
142
|
-
current: void 0,
|
|
143
|
-
next: data
|
|
144
|
-
};
|
|
145
|
-
if (permission.kind === "instance" && isRowPair(data)) return {
|
|
146
|
-
current: data.current,
|
|
147
|
-
next: data.next
|
|
148
|
-
};
|
|
149
|
-
return {
|
|
150
|
-
current: data,
|
|
151
|
-
next: data
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* The row's id under `field` as a string, or `*` when the row has no string or
|
|
156
|
-
* number there.
|
|
157
|
-
*/
|
|
158
|
-
function rowIdOf(row, field = "id") {
|
|
159
|
-
if (row === null || typeof row !== "object" || !Object.hasOwn(row, field)) return "*";
|
|
160
|
-
const id = Reflect.get(row, field);
|
|
161
|
-
return typeof id === "string" || typeof id === "number" ? String(id) : "*";
|
|
162
|
-
}
|
|
163
|
-
//#endregion
|
|
10
|
+
import { n as matchGrantee } from "./grantee-match-CPQ9zV-H.js";
|
|
11
|
+
import { t as isActive } from "./validity-IcjQSR7I.js";
|
|
164
12
|
//#region src/conditions/condition-evaluate.ts
|
|
165
13
|
function resolveRef(ref, subject) {
|
|
166
14
|
return resolveConditionRef(ref, subject);
|
|
@@ -292,4 +140,123 @@ function evaluateCondition(condition, data, subject, now = epochSeconds(), scope
|
|
|
292
140
|
}
|
|
293
141
|
}
|
|
294
142
|
//#endregion
|
|
295
|
-
|
|
143
|
+
//#region src/core/delegation.ts
|
|
144
|
+
/**
|
|
145
|
+
* The permission's scope and any scope it was renamed from: tokens issued
|
|
146
|
+
* before a rename keep working.
|
|
147
|
+
*/
|
|
148
|
+
function scopeNames(permission) {
|
|
149
|
+
return [permission.scope, ...formerScopes(permission)];
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Whether a delegated caller may use a permission its principal holds, through
|
|
153
|
+
* OAuth `scopes`, RFC 9396 `authorizationDetails` or GNAP `access`. `undefined`
|
|
154
|
+
* means covered; otherwise the denial reason `decide` would add.
|
|
155
|
+
*/
|
|
156
|
+
function coveredByDelegation(permission, delegation, resourceId, hasActor = false) {
|
|
157
|
+
const unscoped = hasActor ? "no-delegation" : void 0;
|
|
158
|
+
if (delegation === void 0) return unscoped;
|
|
159
|
+
const hasScopes = delegation.scopes !== void 0;
|
|
160
|
+
const hasDetails = delegation.authorizationDetails !== void 0;
|
|
161
|
+
const hasAccess = delegation.access !== void 0;
|
|
162
|
+
if (!hasScopes && !hasDetails && !hasAccess) return unscoped;
|
|
163
|
+
const emptyScopes = hasScopes && (delegation.scopes?.length ?? 0) === 0;
|
|
164
|
+
const emptyAccess = hasAccess && (delegation.access?.length ?? 0) === 0;
|
|
165
|
+
if (emptyScopes && !hasDetails && !hasAccess) return "no-delegation";
|
|
166
|
+
if (emptyAccess && !hasScopes && !hasDetails) return "no-delegation";
|
|
167
|
+
if (emptyScopes && emptyAccess && !hasDetails) return "no-delegation";
|
|
168
|
+
const scopes = scopeNames(permission);
|
|
169
|
+
const scopeOk = delegation.scopes?.some((scope) => scopes.includes(scope)) ?? false;
|
|
170
|
+
const detailOk = delegation.authorizationDetails?.some((detail) => {
|
|
171
|
+
if (detail.type !== permission.resource) return false;
|
|
172
|
+
const identifier = detail["identifier"];
|
|
173
|
+
if (identifier !== void 0 && (typeof identifier !== "string" || identifier !== resourceId)) return false;
|
|
174
|
+
const actions = detail.actions;
|
|
175
|
+
if (actions === void 0) return true;
|
|
176
|
+
return Array.isArray(actions) && actions.includes(permission.action);
|
|
177
|
+
}) ?? false;
|
|
178
|
+
const accessOk = accessCovers(permission, delegation.access, resourceId);
|
|
179
|
+
if (scopeOk || detailOk || accessOk) return;
|
|
180
|
+
return "not-delegated";
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* A `readOnly` actor never uses a permission without `readOnlyHint`, delegated
|
|
184
|
+
* or not.
|
|
185
|
+
*/
|
|
186
|
+
function readOnlyActorRefuses(actor, permission) {
|
|
187
|
+
return actor?.readOnly === true && !annotationsFor(permission).readOnlyHint;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Whether an `agent` actor may call the tool `name`: its `tools` list names it.
|
|
191
|
+
* An agent without a `tools` list and any other actor kind are not restricted
|
|
192
|
+
* here; a `tools` value that is not a list of strings refuses every tool.
|
|
193
|
+
*/
|
|
194
|
+
function actorMayCallTool(actor, name) {
|
|
195
|
+
if (actor?.kind !== "agent" || !Object.hasOwn(actor, "tools")) return true;
|
|
196
|
+
const tools = actor["tools"];
|
|
197
|
+
return Array.isArray(tools) && tools.some((tool) => typeof tool === "string" && tool === name);
|
|
198
|
+
}
|
|
199
|
+
function coversRequirements(tree, requires, delegation, resourceId, hasActor = false) {
|
|
200
|
+
return (requires ?? []).every((key) => {
|
|
201
|
+
const leaf = findPermission(tree, key);
|
|
202
|
+
return leaf !== void 0 && coveredByDelegation(leaf, delegation, resourceId, hasActor) === void 0;
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
function requiresStandIn(grant) {
|
|
206
|
+
return (grant.requires ?? []).length > 0 && annotationsFor(grant.permission).readOnlyHint && !flattenGrantee(grant.to).some((item) => item.kind === "role");
|
|
207
|
+
}
|
|
208
|
+
function accessCovers(permission, access, resourceId) {
|
|
209
|
+
if (access === void 0) return false;
|
|
210
|
+
return access.some((entry) => {
|
|
211
|
+
if (typeof entry === "string") return scopeNames(permission).includes(entry);
|
|
212
|
+
if (entry === null || typeof entry !== "object") return false;
|
|
213
|
+
const type = entry["type"];
|
|
214
|
+
if (typeof type !== "string" || !typeMatches(type, permission.resource)) return false;
|
|
215
|
+
const actions = entry["actions"];
|
|
216
|
+
if (actions !== void 0 && (!Array.isArray(actions) || !actions.includes(permission.action))) return false;
|
|
217
|
+
const identifier = entry["identifier"];
|
|
218
|
+
if (identifier !== void 0 && (typeof identifier !== "string" || identifier !== resourceId)) return false;
|
|
219
|
+
return true;
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
function typeMatches(type, resource) {
|
|
223
|
+
if (type === resource) return true;
|
|
224
|
+
return type.endsWith(`/${resource}`);
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Whether the subject's principal is a `from` of the delegation: every item
|
|
228
|
+
* matches, with roles checked against the roles the principal holds here
|
|
229
|
+
* (`matchGrantee` leaves role holding to the caller) and nothing that needs a
|
|
230
|
+
* row.
|
|
231
|
+
*/
|
|
232
|
+
function handsOver(delegation, subject, heldRoles, now) {
|
|
233
|
+
const items = flattenGrantee(delegation.from);
|
|
234
|
+
if (items.length === 0 || subject.principal === null) return false;
|
|
235
|
+
return items.every((item) => {
|
|
236
|
+
if (item.kind === "role") return heldRoles.has(item.role);
|
|
237
|
+
if (item.kind === "relation") return false;
|
|
238
|
+
const match = matchGrantee(item, subject, now, void 0);
|
|
239
|
+
return match.matched && match.where === void 0;
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* The permission keys the policy's delegations let `subject.actor` use for
|
|
244
|
+
* `subject.principal` right now: the union over every active delegation whose
|
|
245
|
+
* `to` matches the actor and whose `from` the principal holds. `undefined` when
|
|
246
|
+
* none applies, so the call falls back to the token delegation alone. An actor
|
|
247
|
+
* with `readOnly: true` gets only each delegation's read-only keys. Attenuation
|
|
248
|
+
* only: a key here still needs a matching allow and no deny.
|
|
249
|
+
*/
|
|
250
|
+
function delegatedPermissions(delegations, subject, heldRoles, now) {
|
|
251
|
+
const actor = subject.actor;
|
|
252
|
+
if (actor === void 0 || delegations === void 0) return;
|
|
253
|
+
let keys;
|
|
254
|
+
for (const delegation of delegations) {
|
|
255
|
+
if (delegation.to.kind !== actor.kind || delegation.to.id !== void 0 && delegation.to.id !== actor.id || delegation.to.client !== void 0 && delegation.to.client !== actor.client || !isActive(delegation.validity, now) || !handsOver(delegation, subject, heldRoles, now)) continue;
|
|
256
|
+
keys ??= /* @__PURE__ */ new Set();
|
|
257
|
+
for (const key of actor.readOnly === true ? delegation.readOnly : delegation.permissions) keys.add(key);
|
|
258
|
+
}
|
|
259
|
+
return keys;
|
|
260
|
+
}
|
|
261
|
+
//#endregion
|
|
262
|
+
export { readOnlyActorRefuses as a, delegatedPermissions as i, coveredByDelegation as n, requiresStandIn as o, coversRequirements as r, evaluateCondition as s, actorMayCallTool as t };
|
package/dist/delivery/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { dn as DeliveryChannel, hn as EmailCategory, pn as DeliveryFailureCause } from "../policy-types-
|
|
2
|
-
import { i as approvalUrlFor, n as ApprovalUrl, r as approvalPrompt, t as ApprovalPrompt } from "../approval-prompt-
|
|
3
|
-
import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, d as EmailTransport, f as EmailUnsubscribe, g as TransportMessages, h as TransportItem, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, n as ChatTransport, o as DeliveryResult, p as OutgoingEmail, r as DeliverOptions, s as DeliveryTarget, t as ChatMessage, u as EmailMessage, v as WebhookMessage, y as WebhookTransport } from "../types-
|
|
4
|
-
import { C as audience, S as SubscriberEvent, _ as ParseConnectorResult, a as DeliveryPermDock, b as Audience, c as MemoryDelivery, d as memoryDeliveryTransport, f as CONNECTOR_SCHEMA, g as ConnectorKind, h as ConnectorIssue, i as isDeliveryTarget, l as MemoryDeliveryTransport, m as Connector, n as webhookTransport, o as DeliveryPermDockOptions, p as CONNECTOR_KINDS, r as isAddrSpec, s as createPermDock, t as WebhookTransportOptions, u as MemoryDeliveryTransportOptions, v as SiemDestination, w as subscribersFor, x as AudienceOptions, y as parseConnector } from "../index-
|
|
1
|
+
import { dn as DeliveryChannel, hn as EmailCategory, pn as DeliveryFailureCause } from "../policy-types-CCBrL7me.js";
|
|
2
|
+
import { i as approvalUrlFor, n as ApprovalUrl, r as approvalPrompt, t as ApprovalPrompt } from "../approval-prompt-DtfKSH-8.js";
|
|
3
|
+
import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, d as EmailTransport, f as EmailUnsubscribe, g as TransportMessages, h as TransportItem, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, n as ChatTransport, o as DeliveryResult, p as OutgoingEmail, r as DeliverOptions, s as DeliveryTarget, t as ChatMessage, u as EmailMessage, v as WebhookMessage, y as WebhookTransport } from "../types-DyA4Loy4.js";
|
|
4
|
+
import { C as audience, S as SubscriberEvent, _ as ParseConnectorResult, a as DeliveryPermDock, b as Audience, c as MemoryDelivery, d as memoryDeliveryTransport, f as CONNECTOR_SCHEMA, g as ConnectorKind, h as ConnectorIssue, i as isDeliveryTarget, l as MemoryDeliveryTransport, m as Connector, n as webhookTransport, o as DeliveryPermDockOptions, p as CONNECTOR_KINDS, r as isAddrSpec, s as createPermDock, t as WebhookTransportOptions, u as MemoryDeliveryTransportOptions, v as SiemDestination, w as subscribersFor, x as AudienceOptions, y as parseConnector } from "../index-DQCBzEhO.js";
|
|
5
5
|
export { type ApprovalPrompt, type ApprovalUrl, type Audience, type AudienceOptions, CONNECTOR_KINDS, CONNECTOR_SCHEMA, type ChatMessage, type ChatTransport, type Connector, type ConnectorIssue, type ConnectorKind, type DeliverOptions, type DeliveryChannel, type DeliveryFailureCause, type DeliveryMessages, type DeliveryPermDock, type DeliveryPermDockOptions, type DeliveryReport, type DeliveryResult, type DeliveryTarget, type DeliveryTransport, type DeliveryTransports, type EmailCategory, type EmailMessage, type EmailTransport, type EmailUnsubscribe, type MemoryDelivery, type MemoryDeliveryTransport, type MemoryDeliveryTransportOptions, type OutgoingEmail, type ParseConnectorResult, type Recipient, type SiemDestination, type SubscriberEvent, type TransportItem, type TransportMessages, type TransportOptions, type WebhookMessage, type WebhookTransport, type WebhookTransportOptions, approvalPrompt, approvalUrlFor, audience, createPermDock, isAddrSpec, isDeliveryTarget, memoryDeliveryTransport, parseConnector, subscribersFor, webhookTransport };
|
package/dist/delivery/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as approvalUrlFor, t as approvalPrompt } from "../approval-prompt-B8hQY69x.js";
|
|
2
|
-
import { n as subscribersFor, t as audience } from "../audience-
|
|
2
|
+
import { n as subscribersFor, t as audience } from "../audience-N2BqOvES.js";
|
|
3
3
|
import { t as CONNECTOR_SCHEMA } from "../connector-schema-CYLQNMYq.js";
|
|
4
4
|
import { a as parseConnector, i as CONNECTOR_KINDS, n as createPermDock, r as memoryDeliveryTransport, t as webhookTransport } from "../delivery-BupfvJIV.js";
|
|
5
5
|
import { i as isDeliveryTarget, n as isAddrSpec } from "../target-qdEAnnhU.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as DeniedDecision, Qn as DenialReason, Yn as Decision } from "./policy-types-
|
|
1
|
+
import { $n as DeniedDecision, Qn as DenialReason, Yn as Decision } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
3
|
//#region src/core/describe.d.ts
|
|
4
4
|
type DecisionDescription = {
|
|
@@ -21,7 +21,7 @@ const diff = defineLeaf({
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
async run(ctx, { flags, args }) {
|
|
24
|
-
return (await import("./diff-
|
|
24
|
+
return (await import("./diff-DLcsCeVo.js")).runDiff({
|
|
25
25
|
cwd: ctx.cwd,
|
|
26
26
|
config: ctx.config,
|
|
27
27
|
sources: [args["before"], args["after"]].filter((value) => value !== void 0),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as memoryCustomRoleSource } from "./src-
|
|
1
|
+
import { D as memoryCustomRoleSource } from "./src-BZKQe1lr.js";
|
|
2
2
|
import { n as findPermission } from "./permission-registry-B8tYxPIt.js";
|
|
3
3
|
import { g as secondsOf } from "./time-nR1JesoH.js";
|
|
4
4
|
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
5
|
-
import { t as getPermDock } from "./permdock-
|
|
5
|
+
import { t as getPermDock } from "./permdock-HfTF99xX.js";
|
|
6
6
|
import { i as configError, u as usageResult } from "./errors-BhRkoNS7.js";
|
|
7
|
-
import { t as buildCatalog } from "./catalog-doc-
|
|
7
|
+
import { t as buildCatalog } from "./catalog-doc-BoSOQRXT.js";
|
|
8
8
|
import { a as loadModule, n as asPolicy, s as pickNamed } from "./load-C4p4VgwR.js";
|
|
9
9
|
import { t as parseCatalog } from "./parse-CORUNcCo.js";
|
|
10
10
|
import { t as operationFindings } from "./operation-findings-CVwJHEu_.js";
|