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,5 +1,5 @@
|
|
|
1
|
-
import { N as PolicyVocabulary, un as DecisionEvent } from "./policy-types-
|
|
2
|
-
import { a as PermDock } from "./permdock-
|
|
1
|
+
import { N as PolicyVocabulary, un as DecisionEvent } from "./policy-types-CCBrL7me.js";
|
|
2
|
+
import { a as PermDock } from "./permdock-vD3mwLSm.js";
|
|
3
3
|
//#region src/otel/types.d.ts
|
|
4
4
|
declare const GENAI_SEMCONV_PIN = "1.37.0";
|
|
5
5
|
declare const GEN_AI_TOOL_NAME = "gen_ai.tool.name";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, Yn as Decision, er as ExplainedDecision, vr as Membership, xr as Subject, yr as Principal } from "./policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, Yn as Decision, er as ExplainedDecision, vr as Membership, xr as Subject, yr as Principal } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { E as PermissionTree, w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { M as PermissionCheck, a as PermDock, f as WhereResult, l as SimulateOptions, n as DecideOptions, o as PermDockOptions, r as DeriveOptions } from "./permdock-
|
|
3
|
+
import { M as PermissionCheck, a as PermDock, f as WhereResult, l as SimulateOptions, n as DecideOptions, o as PermDockOptions, r as DeriveOptions } from "./permdock-vD3mwLSm.js";
|
|
4
4
|
//#region src/pdp/types.d.ts
|
|
5
5
|
type RemotePdpAuth = {
|
|
6
6
|
readonly bearer: string | (() => string | Promise<string>);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as JwtClaims, gt as TokenFailureCause, it as MembershipSource, lr as Actor, sn as AuthEvent, vt as TokenVerifier, xr as Subject, yr as Principal } from "./policy-types-
|
|
2
|
-
import { m as ApprovalStore } from "./types-
|
|
1
|
+
import { $ as JwtClaims, gt as TokenFailureCause, it as MembershipSource, lr as Actor, sn as AuthEvent, vt as TokenVerifier, xr as Subject, yr as Principal } from "./policy-types-CCBrL7me.js";
|
|
2
|
+
import { m as ApprovalStore } from "./types-CAp7UGiB.js";
|
|
3
3
|
import { t as ClaimsMap } from "./claims-map-D1Pb5oRq.js";
|
|
4
4
|
import { n as RevocationFeed } from "./revocations-BaUXHM1N.js";
|
|
5
5
|
import { t as ClientNames } from "./clients-C_NOET3z.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { En as Approver } from "./policy-types-
|
|
1
|
+
import { En as Approver } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
//#region src/approvals/access-reviews/types.d.ts
|
|
3
3
|
type AccessReviewStatus = "open" | "closed";
|
|
4
4
|
type AccessReviewItemStatus = "pending" | "kept" | "revoked";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { X as DecisionSink, _t as TokenSigner, ut as SnapshotSource, vt as TokenVerifier, xr as Subject } from "./policy-types-
|
|
2
|
-
import { s as PolicySource } from "./hosted-
|
|
3
|
-
import { m as ApprovalStore, u as ApprovalRequest } from "./types-
|
|
1
|
+
import { X as DecisionSink, _t as TokenSigner, ut as SnapshotSource, vt as TokenVerifier, xr as Subject } from "./policy-types-CCBrL7me.js";
|
|
2
|
+
import { s as PolicySource } from "./hosted-BUCpV8-u.js";
|
|
3
|
+
import { m as ApprovalStore, u as ApprovalRequest } from "./types-CAp7UGiB.js";
|
|
4
4
|
import { a as CatalogDocument } from "./types-DAyp592k.js";
|
|
5
|
-
import { a as CatalogFinding } from "./sink-
|
|
5
|
+
import { a as CatalogFinding } from "./sink-BskpqwLl.js";
|
|
6
6
|
//#region src/cloud/types.d.ts
|
|
7
7
|
type CloudEndpointOptions = {
|
|
8
8
|
readonly url?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { en as Snapshot, ut as SnapshotSource, vt as TokenVerifier } from "./policy-types-
|
|
2
|
-
import { n as DescribeMessages } from "./describe-
|
|
3
|
-
import { n as ClientStoreOptions } from "./store-
|
|
4
|
-
import { t as PermDockDefaults } from "./types-
|
|
1
|
+
import { en as Snapshot, ut as SnapshotSource, vt as TokenVerifier } from "./policy-types-CCBrL7me.js";
|
|
2
|
+
import { n as DescribeMessages } from "./describe-CazEjtOH.js";
|
|
3
|
+
import { n as ClientStoreOptions } from "./store-core-CDabEiO9.js";
|
|
4
|
+
import { t as PermDockDefaults } from "./types-BSGrzDPi.js";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
//#region src/react-native/types.d.ts
|
|
7
7
|
type SnapshotStorage = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { dn as DeliveryChannel, fn as DeliveryEvent, hn as EmailCategory, pn as DeliveryFailureCause, tr as GrantedDecision } from "./policy-types-
|
|
2
|
-
import { s as CloudEvent } from "./sink-
|
|
3
|
-
import { t as ApprovalPrompt } from "./approval-prompt-
|
|
1
|
+
import { dn as DeliveryChannel, fn as DeliveryEvent, hn as EmailCategory, pn as DeliveryFailureCause, tr as GrantedDecision } from "./policy-types-CCBrL7me.js";
|
|
2
|
+
import { s as CloudEvent } from "./sink-BskpqwLl.js";
|
|
3
|
+
import { t as ApprovalPrompt } from "./approval-prompt-DtfKSH-8.js";
|
|
4
4
|
//#region src/delivery/types.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Who a delivery goes to. `{ principal }` names an app principal and the
|
package/dist/unplugin/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as PermDockPluginOptions } from "../types-
|
|
1
|
+
import { s as PermDockPluginOptions } from "../types-B_s1oQaF.js";
|
|
2
2
|
import { createUnplugin } from "unplugin";
|
|
3
3
|
//#region src/unplugin/index.d.ts
|
|
4
4
|
type CreateUnplugin = typeof createUnplugin<PermDockPluginOptions | undefined>;
|
package/dist/unplugin/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as peerHint } from "../peer-BuK9F53f.js";
|
|
2
|
-
import { n as createCollectScheduler, r as report } from "../watch-
|
|
2
|
+
import { n as createCollectScheduler, r as report } from "../watch-CR2ZIT_5.js";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
//#region src/unplugin/index.ts
|
|
5
5
|
function loadCreateUnplugin() {
|
|
@@ -2,13 +2,13 @@ import { a as getResource } from "./permission-registry-B8tYxPIt.js";
|
|
|
2
2
|
import { u as usageResult } from "./errors-BhRkoNS7.js";
|
|
3
3
|
import { a as rel, r as listSourceFiles } from "./files-BSjrtIHw.js";
|
|
4
4
|
import { o as USAGE_REPORT_SCHEMA } from "./version-DMQ0dnN5.js";
|
|
5
|
-
import { c as jsonSchemaOf } from "./catalog-doc-
|
|
5
|
+
import { c as jsonSchemaOf } from "./catalog-doc-BoSOQRXT.js";
|
|
6
6
|
import { n as jiti, r as parseSync, t as createVisitor } from "./optional-8TKc-0j4.js";
|
|
7
7
|
import { a as loadModule, n as asPolicy, s as pickNamed } from "./load-C4p4VgwR.js";
|
|
8
|
-
import { r as runCollect } from "./collect-
|
|
8
|
+
import { r as runCollect } from "./collect-D3ToPa6Z.js";
|
|
9
9
|
import { t as beforeFirst } from "./text-BMFRfBqc.js";
|
|
10
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
11
|
-
import { r as findingOf } from "./output-
|
|
10
|
+
import { t as DOCS_BASE } from "./manifest-CIlVL-QT.js";
|
|
11
|
+
import { r as findingOf } from "./output-B81GJ6u6.js";
|
|
12
12
|
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
13
13
|
import { dirname, resolve } from "node:path";
|
|
14
14
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as runUsage } from "./usage-B6sQwycY.js";
|
|
@@ -1,29 +1,4 @@
|
|
|
1
|
-
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
2
|
-
import { i as ownKeys, n as isForbiddenKey, r as ownGet } from "./paths-CUvURzHp.js";
|
|
3
1
|
import { c as instantOf, g as secondsOf, m as rfc3339 } from "./time-nR1JesoH.js";
|
|
4
|
-
//#region src/core/fields.ts
|
|
5
|
-
function sanitizeFields(fields) {
|
|
6
|
-
if (fields === void 0) return;
|
|
7
|
-
return fields.filter((field) => field.length > 0 && !isForbiddenKey(field));
|
|
8
|
-
}
|
|
9
|
-
function grantCoversField(fields, field, effect) {
|
|
10
|
-
if (fields === void 0) return true;
|
|
11
|
-
if (fields.length === 0) return false;
|
|
12
|
-
if (field === void 0) return effect === "allow";
|
|
13
|
-
return fields.includes(field);
|
|
14
|
-
}
|
|
15
|
-
function pickVisible(row, canField) {
|
|
16
|
-
const out = {};
|
|
17
|
-
for (const key of ownKeys(row)) if (canField(key)) out[key] = ownGet(row, key);
|
|
18
|
-
return freezeDeep(out);
|
|
19
|
-
}
|
|
20
|
-
function sanitizeContext(value) {
|
|
21
|
-
if (value === null || typeof value !== "object" || Array.isArray(value)) return {};
|
|
22
|
-
const out = {};
|
|
23
|
-
for (const key of ownKeys(value)) out[key] = ownGet(value, key);
|
|
24
|
-
return out;
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
2
|
//#region src/core/validity.ts
|
|
28
3
|
/**
|
|
29
4
|
* The normalised validity of a grant, or `undefined` when neither bound is set.
|
|
@@ -79,4 +54,4 @@ function readWireValidity(value, effect = "allow") {
|
|
|
79
54
|
}
|
|
80
55
|
const NEVER = Object.freeze({ from: Number.POSITIVE_INFINITY });
|
|
81
56
|
//#endregion
|
|
82
|
-
export {
|
|
57
|
+
export { wireValidity as i, normalizeValidity as n, readWireValidity as r, isActive as t };
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { a as sole, r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { l as isConditionRef, o as hasConditionOp } from "./refs-C8BKxc_e.js";
|
|
3
|
-
import { D as memoryCustomRoleSource, x as memoryRelationSource } from "./src-
|
|
3
|
+
import { D as memoryCustomRoleSource, x as memoryRelationSource } from "./src-BZKQe1lr.js";
|
|
4
4
|
import { c as listPermissions, h as formerKeys, n as findPermission } from "./permission-registry-B8tYxPIt.js";
|
|
5
5
|
import { c as isEdgeRelation, l as isFieldRelation, u as isPrincipalRelation } from "./resource-relations-8-pCScBO.js";
|
|
6
6
|
import { f as nowMillis, u as isoAt } from "./time-nR1JesoH.js";
|
|
7
7
|
import { c as rootScope, d as scopeList, o as normalizeMemberships } from "./scopes-gdH__vDZ.js";
|
|
8
|
-
import {
|
|
9
|
-
import { p as scopeField } from "./tenancy-BlxY5T0q.js";
|
|
8
|
+
import { o as requiresStandIn } from "./delegation-CrdqnesZ.js";
|
|
10
9
|
import { t as requiresApproval } from "./approval-required-TzNB9oQA.js";
|
|
10
|
+
import { p as scopeField } from "./tenancy-BlxY5T0q.js";
|
|
11
11
|
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
12
|
-
import { t as getPermDock } from "./permdock-
|
|
13
|
-
import { l as policyLevels, t as coveredLevels } from "./policy-
|
|
14
|
-
import { c as andWhere, m as customRoleScope, v as leveled, y as membershipsClaim } from "./evaluate-
|
|
12
|
+
import { t as getPermDock } from "./permdock-HfTF99xX.js";
|
|
13
|
+
import { l as policyLevels, t as coveredLevels } from "./policy-BovcTojN.js";
|
|
14
|
+
import { c as andWhere, m as customRoleScope, v as leveled, y as membershipsClaim } from "./evaluate-_JdlbJ32.js";
|
|
15
15
|
import { a as describeError, i as configError, u as usageResult } from "./errors-BhRkoNS7.js";
|
|
16
16
|
import { t as policyRowConditionKeys } from "./row-conditions-BAGHOmVq.js";
|
|
17
17
|
import { s as writeFileEnsuringDir } from "./files-BSjrtIHw.js";
|
|
18
|
-
import { c as jsonSchemaOf } from "./catalog-doc-
|
|
18
|
+
import { c as jsonSchemaOf } from "./catalog-doc-BoSOQRXT.js";
|
|
19
19
|
import { o as loadPolicyAt } from "./load-C4p4VgwR.js";
|
|
20
20
|
import "./budget-BBCPDOGP.js";
|
|
21
21
|
import { i as qualifySqlTable, n as defaultSqlCommand, t as SQL_IDENT } from "./sql-0WjxIp9g.js";
|
|
22
22
|
import { a as scopeMembershipTable, i as scopeColumn } from "./compile-Cvru58id.js";
|
|
23
23
|
import "./sources-C4vkzZJV.js";
|
|
24
24
|
import { t as beforeFirst } from "./text-BMFRfBqc.js";
|
|
25
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
25
|
+
import { t as DOCS_BASE } from "./manifest-CIlVL-QT.js";
|
|
26
26
|
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-BVZc7OCF.js";
|
|
27
27
|
import { n as pgConnector, t as connectPgPool } from "./pg-Ddxsd5ZB.js";
|
|
28
28
|
import { A as quoteQualified, N as arrayColumnsOf, O as quoteIdent, P as columnTypesOf, _ as subjectClaimJsonSql, a as customRolesOn, j as quoteTable, k as quoteLiteral, r as HELPERS, v as subjectClaimSql } from "./shared-DfaIWvIJ.js";
|
|
29
|
-
import { A as tokenScopeAllowsCall, Ct as scopeTable, N as capabilityAccessSql, T as accessSql, c as graphPlan, i as tableNames, r as tableNameOf, tt as apiKeyAllowsCall, w as requiresSql } from "./tables-
|
|
30
|
-
import { c as breakGlassKey, f as compileConditionSql, l as collectGrants, m as sqlFunctionNames, p as contextRefs, s as breakGlassHolder } from "./ownership-
|
|
29
|
+
import { A as tokenScopeAllowsCall, Ct as scopeTable, N as capabilityAccessSql, T as accessSql, c as graphPlan, i as tableNames, r as tableNameOf, tt as apiKeyAllowsCall, w as requiresSql } from "./tables-Bl_ozD0k.js";
|
|
30
|
+
import { c as breakGlassKey, f as compileConditionSql, l as collectGrants, m as sqlFunctionNames, p as contextRefs, s as breakGlassHolder } from "./ownership-B7Ea-hUY.js";
|
|
31
31
|
import { t as membershipSourcesOf } from "./sources-qoIJQrJv.js";
|
|
32
|
-
import { _ as wrapSql, g as validitySql, m as andSql, s as viewName, t as FIELD_VIEWS } from "./fields-
|
|
32
|
+
import { _ as wrapSql, g as validitySql, m as andSql, s as viewName, t as FIELD_VIEWS } from "./fields-B17OWcPx.js";
|
|
33
33
|
import { resolve } from "node:path";
|
|
34
34
|
import { createHash, randomUUID } from "node:crypto";
|
|
35
35
|
//#region src/cli/core/ignores.ts
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
1
|
import { n as freezeDeep, t as freezeCopy } from "./freeze-jjan0lCv.js";
|
|
3
2
|
import { i as ownKeys, n as isForbiddenKey, t as assertSafeKey } from "./paths-CUvURzHp.js";
|
|
4
|
-
import { c as listPermissions, o as isPermission } from "./permission-registry-B8tYxPIt.js";
|
|
5
3
|
import { i as readAppData, r as parseAppData, t as assertAppData } from "./app-data-UNNm07jV.js";
|
|
6
4
|
//#region src/core/vocabulary.ts
|
|
7
5
|
const ROLE_KIND = "role";
|
|
@@ -156,109 +154,5 @@ function synthesiseRole(key, options) {
|
|
|
156
154
|
});
|
|
157
155
|
return Object.freeze(shared);
|
|
158
156
|
}
|
|
159
|
-
function isGrantee(value) {
|
|
160
|
-
return value !== null && typeof value === "object" && "kind" in value && typeof value.kind === "string";
|
|
161
|
-
}
|
|
162
|
-
function anyone() {
|
|
163
|
-
return freezeDeep({ kind: "anyone" });
|
|
164
|
-
}
|
|
165
|
-
function authenticated() {
|
|
166
|
-
return freezeDeep({ kind: "authenticated" });
|
|
167
|
-
}
|
|
168
|
-
function relation(resource, name, options) {
|
|
169
|
-
const resourceName = listPermissions(resource)[0]?.resource;
|
|
170
|
-
if (resourceName === void 0) throw new Error("PermDock: relation() requires a resource tree");
|
|
171
|
-
const through = options?.through;
|
|
172
|
-
if (Array.isArray(through)) {
|
|
173
|
-
if (through.length === 0) throw new Error("PermDock: relation() through needs at least one link");
|
|
174
|
-
for (const link of through) if (typeof link !== "string" || link === "" || link === "parent") throw new Error("PermDock: relation() through lists link names; walk parents with through: 'parent' or depth");
|
|
175
|
-
} else if (through !== void 0 && through !== "parent") throw new Error(`PermDock: relation() through must be 'parent' or a list of link names (got '${String(through)}')`);
|
|
176
|
-
const depth = options?.depth;
|
|
177
|
-
if (depth !== void 0) {
|
|
178
|
-
if (through === void 0) throw new Error("PermDock: relation() depth needs through: 'parent' or a link list");
|
|
179
|
-
const hops = Array.isArray(through) ? through.length : 0;
|
|
180
|
-
if (!Number.isInteger(depth) || depth < 0 || depth + hops > 32) throw new Error(`PermDock: relation() depth must be an integer from 0 to 32, counting each link`);
|
|
181
|
-
}
|
|
182
|
-
return freezeDeep(compact({
|
|
183
|
-
kind: "relation",
|
|
184
|
-
resource: resourceName,
|
|
185
|
-
relation: name,
|
|
186
|
-
through: through === void 0 || through === "parent" ? through : [...through],
|
|
187
|
-
depth
|
|
188
|
-
}));
|
|
189
|
-
}
|
|
190
|
-
function inherit(permission, options) {
|
|
191
|
-
if (!isPermission(permission) || permission.kind === "collection") throw new Error("PermDock: inherit() takes an instance permission leaf");
|
|
192
|
-
const through = options.through;
|
|
193
|
-
const links = Array.isArray(through) ? through : void 0;
|
|
194
|
-
if (through !== "parent" && (links === void 0 || links.length === 0 || !links.every((link) => typeof link === "string" && link !== "" && link !== "parent"))) throw new Error("PermDock: inherit() through must be 'parent' or a non-empty list of link names");
|
|
195
|
-
return freezeDeep({
|
|
196
|
-
kind: "inherit",
|
|
197
|
-
permission: permission.key,
|
|
198
|
-
resource: permission.resource,
|
|
199
|
-
through: links === void 0 ? "parent" : links.map(String)
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
function plan(name) {
|
|
203
|
-
return freezeDeep({
|
|
204
|
-
kind: "plan",
|
|
205
|
-
plan: typeof name === "string" ? name : name.key
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
function actor(kind) {
|
|
209
|
-
return freezeDeep({
|
|
210
|
-
kind: "actor",
|
|
211
|
-
actor: kind
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
function assurance(options) {
|
|
215
|
-
const acr = options.acr === void 0 ? void 0 : typeof options.acr === "string" ? [options.acr] : options.acr;
|
|
216
|
-
const amr = options.amr === void 0 ? void 0 : typeof options.amr === "string" ? [options.amr] : options.amr;
|
|
217
|
-
return freezeDeep(compact({
|
|
218
|
-
kind: "assurance",
|
|
219
|
-
acr,
|
|
220
|
-
amr,
|
|
221
|
-
maxAge: options.maxAge
|
|
222
|
-
}));
|
|
223
|
-
}
|
|
224
|
-
function resolveRoleScope(on) {
|
|
225
|
-
return typeof on === "string" ? on : "global";
|
|
226
|
-
}
|
|
227
|
-
function asGrantee(input) {
|
|
228
|
-
if (Array.isArray(input)) {
|
|
229
|
-
const items = [];
|
|
230
|
-
for (const item of input) items.push(...flattenGrantee(asGrantee(item)));
|
|
231
|
-
return items;
|
|
232
|
-
}
|
|
233
|
-
if (typeof input === "string") return freezeDeep({
|
|
234
|
-
kind: "role",
|
|
235
|
-
role: input,
|
|
236
|
-
scope: "global"
|
|
237
|
-
});
|
|
238
|
-
if (isRole(input)) return freezeDeep({
|
|
239
|
-
kind: "role",
|
|
240
|
-
role: input.key,
|
|
241
|
-
scope: resolveRoleScope(input.on)
|
|
242
|
-
});
|
|
243
|
-
if (isPlan(input)) return freezeDeep({
|
|
244
|
-
kind: "plan",
|
|
245
|
-
plan: input.key
|
|
246
|
-
});
|
|
247
|
-
if (isGrantee(input)) return input;
|
|
248
|
-
throw new Error("PermDock: invalid grantee");
|
|
249
|
-
}
|
|
250
|
-
function flattenGrantee(input) {
|
|
251
|
-
if (input === void 0) return [];
|
|
252
|
-
if (Array.isArray(input)) return input;
|
|
253
|
-
return [input];
|
|
254
|
-
}
|
|
255
|
-
function roleNameOf(to) {
|
|
256
|
-
for (const item of flattenGrantee(to)) if (item.kind === "role") return item.role;
|
|
257
|
-
return null;
|
|
258
|
-
}
|
|
259
|
-
function roleScopeOf(to, fallback = "global") {
|
|
260
|
-
for (const item of flattenGrantee(to)) if (item.kind === "role") return item.scope;
|
|
261
|
-
return fallback;
|
|
262
|
-
}
|
|
263
157
|
//#endregion
|
|
264
|
-
export {
|
|
158
|
+
export { isRole as a, sourceRoleMeta as c, isPlan as i, synthesiseRole as l, defineRoles as n, listPlans as o, findRole as r, listRoles as s, definePlans as t, treeXSchema as u };
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Jn as ApprovalRequiredDecision, N as PolicyVocabulary, Yn as Decision, en as Snapshot, vr as Membership, vt as TokenVerifier } from "../policy-types-
|
|
1
|
+
import { Jn as ApprovalRequiredDecision, N as PolicyVocabulary, Yn as Decision, en as Snapshot, vr as Membership, vt as TokenVerifier } from "../policy-types-CCBrL7me.js";
|
|
2
2
|
import { r as Role, w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { d as UncheckedData, s as RowData } from "../permdock-
|
|
4
|
-
import { c as requiredPlans } from "../errors-
|
|
5
|
-
import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-
|
|
3
|
+
import { d as UncheckedData, s as RowData } from "../permdock-vD3mwLSm.js";
|
|
4
|
+
import { c as requiredPlans } from "../errors-CXxQwtbZ.js";
|
|
5
|
+
import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-CazEjtOH.js";
|
|
6
6
|
import { t as PermissionBoundaryState } from "../boundary-C9ck-3uK.js";
|
|
7
|
-
import { _ as
|
|
7
|
+
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, h as ProviderOptionsBase, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-CDabEiO9.js";
|
|
8
8
|
import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-L9UOwATg.js";
|
|
9
9
|
import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
|
|
10
10
|
import { ComputedRef, DefineComponent, MaybeRefOrGetter, Plugin, VNode } from "vue";
|
package/dist/vue/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import { n as describe } from "../describe-BZAlPHxT.js";
|
|
|
3
3
|
import { n as boundaryFallback, t as boundaryDigest } from "../boundary-BV3O1eud.js";
|
|
4
4
|
import { n as actionRunner, r as approvalHeaders, t as actionApproval } from "../protected-action-OpOxtTsN.js";
|
|
5
5
|
import { a as livePermDock, c as rolesView, d as subjectView, f as tenantView, i as gateView, l as scopedTenant, n as describeWith, o as permissionSet, r as filterResult, s as protectedView, t as approvalHandle, u as slotContent } from "../views-MWmJ6Y4P.js";
|
|
6
|
-
import { a as eventSourceRefresh, i as broadcastChannelRefresh, l as isPromiseLike, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-
|
|
7
|
-
import { n as switchTenant, t as providerStore } from "../provider-store-
|
|
6
|
+
import { a as eventSourceRefresh, i as broadcastChannelRefresh, l as isPromiseLike, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-COLWAd1K.js";
|
|
7
|
+
import { n as switchTenant, t as providerStore } from "../provider-store-BLd4UEmg.js";
|
|
8
8
|
import { computed, defineComponent, effectScope, getCurrentScope, inject, isRef, onErrorCaptured, onScopeDispose, provide, shallowRef, toValue, watch } from "vue";
|
|
9
9
|
//#region src/vue/context.ts
|
|
10
10
|
const permDockKey = Symbol("permdock");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { qt as Instant } from "./policy-types-
|
|
2
|
-
import { m as ApprovalStore } from "./types-
|
|
1
|
+
import { qt as Instant } from "./policy-types-CCBrL7me.js";
|
|
2
|
+
import { m as ApprovalStore } from "./types-CAp7UGiB.js";
|
|
3
3
|
//#region src/workflow/waiter.d.ts
|
|
4
4
|
type ApprovalWaitOptions = {
|
|
5
5
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { i as watchCollect } from "./watch-CR2ZIT_5.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as dateAt } from "./time-nR1JesoH.js";
|
|
2
2
|
import { a as describeError } from "./errors-BhRkoNS7.js";
|
|
3
3
|
import { t as defaultSrcPath } from "./files-BSjrtIHw.js";
|
|
4
|
-
import { r as runCollect } from "./collect-
|
|
4
|
+
import { r as runCollect } from "./collect-D3ToPa6Z.js";
|
|
5
5
|
import { n as isConfigFile, r as loadConfig } from "./config-DyNanTjZ.js";
|
|
6
6
|
import { watch } from "node:fs";
|
|
7
7
|
import { basename, dirname, relative, resolve, sep } from "node:path";
|
package/dist/webmcp/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Yn as Decision, en as Snapshot } from "../policy-types-
|
|
1
|
+
import { Yn as Decision, en as Snapshot } from "../policy-types-CCBrL7me.js";
|
|
2
2
|
import { E as PermissionTree, w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
3
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
4
4
|
//#region src/webmcp/types.d.ts
|
|
@@ -3,14 +3,14 @@ import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
|
3
3
|
import { r as ownGet } from "./paths-CUvURzHp.js";
|
|
4
4
|
import { a as getResource } from "./permission-registry-B8tYxPIt.js";
|
|
5
5
|
import { a as expandRelation, c as isEdgeRelation, l as isFieldRelation, u as isPrincipalRelation } from "./resource-relations-8-pCScBO.js";
|
|
6
|
-
import { o as flattenGrantee } from "./grantee-
|
|
6
|
+
import { o as flattenGrantee } from "./grantee-OG4klcNr.js";
|
|
7
7
|
import { s as instantAt } from "./time-nR1JesoH.js";
|
|
8
8
|
import { c as rootScope, d as scopeList, o as normalizeMemberships, s as resolveScope } from "./scopes-gdH__vDZ.js";
|
|
9
9
|
import { r as relationCondition } from "./grantee-conditions-Dzprappv.js";
|
|
10
10
|
import { c as nowSeconds, p as scopeField } from "./tenancy-BlxY5T0q.js";
|
|
11
11
|
import { n as internalsOf } from "./internals-B3IgHrvo.js";
|
|
12
12
|
import { t as byCodePoint } from "./compare-DTfyUunF.js";
|
|
13
|
-
import { D as emptyListeners, t as evaluate } from "./evaluate-
|
|
13
|
+
import { D as emptyListeners, t as evaluate } from "./evaluate-_JdlbJ32.js";
|
|
14
14
|
import { n as relationId, t as pendingRelations } from "./relations-CMsJ1ARY.js";
|
|
15
15
|
import { t as relationWalk } from "./relation-walk-BDTaTKTM.js";
|
|
16
16
|
//#region src/core/who-can.ts
|
package/dist/workflow/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AutomationSource, i as AutomationRequest, l as memoryAutomationSource, n as AutomationDecision, r as AutomationMode, s as MemoryAutomationSource, t as Automation, u as parseAutomation } from "../automation-
|
|
2
|
-
import { i as pollingApprovalWaiter, n as ApprovalWaiter, r as PollingApprovalWaiterOptions, t as ApprovalWaitOptions } from "../waiter-
|
|
3
|
-
import { a as WorkflowPermDockOptions, i as WorkflowPermDock, n as AwaitApprovalOptions, o as createPermDock, r as StartAutomationResult, t as AutomationOptions } from "../create-
|
|
1
|
+
import { a as AutomationSource, i as AutomationRequest, l as memoryAutomationSource, n as AutomationDecision, r as AutomationMode, s as MemoryAutomationSource, t as Automation, u as parseAutomation } from "../automation-CrGcfIZn.js";
|
|
2
|
+
import { i as pollingApprovalWaiter, n as ApprovalWaiter, r as PollingApprovalWaiterOptions, t as ApprovalWaitOptions } from "../waiter-LdnPaBJE.js";
|
|
3
|
+
import { a as WorkflowPermDockOptions, i as WorkflowPermDock, n as AwaitApprovalOptions, o as createPermDock, r as StartAutomationResult, t as AutomationOptions } from "../create-goT32QIN.js";
|
|
4
4
|
import "../index-CaxrMD1A.js";
|
|
5
5
|
export { type ApprovalWaitOptions, type ApprovalWaiter, type Automation, type AutomationDecision, type AutomationMode, type AutomationOptions, type AutomationRequest, type AutomationSource, type AwaitApprovalOptions, type MemoryAutomationSource, type PollingApprovalWaiterOptions, type StartAutomationResult, type WorkflowPermDock, type WorkflowPermDockOptions, createPermDock, memoryAutomationSource, parseAutomation, pollingApprovalWaiter };
|
package/dist/workflow/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
|
3
3
|
import { n as findPermission } from "../permission-registry-B8tYxPIt.js";
|
|
4
4
|
import { n as isThenable } from "../thenable-BNSM1U2R.js";
|
|
5
5
|
import { r as isId } from "../ids-DzhJaCUj.js";
|
|
6
|
-
import { t as getPermDock } from "../permdock-
|
|
6
|
+
import { t as getPermDock } from "../permdock-HfTF99xX.js";
|
|
7
7
|
import { n as memoryAutomationSource, r as parseAutomation } from "../automation-BueW05db.js";
|
|
8
8
|
import { r as withApp } from "../app-DIvM65Mv.js";
|
|
9
9
|
import { o as automationEvent } from "../sink-D9_vh372.js";
|
|
10
|
-
import { a as requestApproval, s as resumeDecision } from "../helpers-
|
|
10
|
+
import { a as requestApproval, s as resumeDecision } from "../helpers-CO2hDpBU.js";
|
|
11
11
|
import { i as subjectFromRunTicket, r as signRunTicket } from "../run-ticket-Ddxt9OuU.js";
|
|
12
12
|
import { t as pollingApprovalWaiter } from "../waiter-aBLM63_f.js";
|
|
13
13
|
//#region src/workflow/create.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Yn as Decision } from "../policy-types-
|
|
1
|
+
import { Yn as Decision } from "../policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
4
|
-
import { n as ApprovalWaiter } from "../waiter-
|
|
5
|
-
import { i as WorkflowPermDock, r as StartAutomationResult, t as AutomationOptions } from "../create-
|
|
3
|
+
import { a as PermDock } from "../permdock-vD3mwLSm.js";
|
|
4
|
+
import { n as ApprovalWaiter } from "../waiter-LdnPaBJE.js";
|
|
5
|
+
import { i as WorkflowPermDock, r as StartAutomationResult, t as AutomationOptions } from "../create-goT32QIN.js";
|
|
6
6
|
//#region src/workflow-sdk/index.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* The part of a Workflow SDK `Hook` the waiter reads: awaiting it suspends the
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as PolicyVocabulary } from "./policy-types-
|
|
2
|
-
import { a as PermDock } from "./permdock-
|
|
1
|
+
import { N as PolicyVocabulary } from "./policy-types-CCBrL7me.js";
|
|
2
|
+
import { a as PermDock } from "./permdock-vD3mwLSm.js";
|
|
3
3
|
//#region src/core/wrap.d.ts
|
|
4
4
|
/** A wrapper an adapter applies to each instance it builds, as `withOtel` does. */
|
|
5
5
|
type PermDockWrap = <V extends PolicyVocabulary>(permdock: PermDock<V>) => PermDock<V>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "permdock",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "Typed permissions for TypeScript apps, APIs, databases, and AI agents, with the permdock CLI and test runners.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
|
@@ -62,6 +62,10 @@
|
|
|
62
62
|
"types": "./dist/react/index.d.ts",
|
|
63
63
|
"default": "./dist/react/index.js"
|
|
64
64
|
},
|
|
65
|
+
"./react/lazy": {
|
|
66
|
+
"types": "./dist/react/lazy.d.ts",
|
|
67
|
+
"default": "./dist/react/lazy.js"
|
|
68
|
+
},
|
|
65
69
|
"./react-native": {
|
|
66
70
|
"types": "./dist/react-native/index.d.ts",
|
|
67
71
|
"default": "./dist/react-native/index.js"
|
|
@@ -358,8 +362,8 @@
|
|
|
358
362
|
"ajv": "8.20.0",
|
|
359
363
|
"astro": "7.4.0",
|
|
360
364
|
"babel-plugin-react-compiler": "1.0.0",
|
|
361
|
-
"better-supabase": "0.
|
|
362
|
-
"better-supabase-floor": "npm:better-supabase@0.
|
|
365
|
+
"better-supabase": "0.53.0",
|
|
366
|
+
"better-supabase-floor": "npm:better-supabase@0.53.0",
|
|
363
367
|
"chat": "4.42.0",
|
|
364
368
|
"diff": "9.0.0",
|
|
365
369
|
"drizzle-orm": "1.0.0-rc.5-5935859",
|
|
@@ -418,7 +422,7 @@
|
|
|
418
422
|
"@trpc/server": ">=11",
|
|
419
423
|
"ai": ">=5",
|
|
420
424
|
"astro": ">=5",
|
|
421
|
-
"better-supabase": ">=0.
|
|
425
|
+
"better-supabase": ">=0.53.0",
|
|
422
426
|
"chat": ">=4",
|
|
423
427
|
"drizzle-orm": ">=0.40 || >=1.0.0-rc.0",
|
|
424
428
|
"elysia": ">=1",
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
},
|
|
517
517
|
"helperName": {
|
|
518
518
|
"type": "string",
|
|
519
|
-
"pattern": "^(permdock_has(_for)?|permitted_[a-z][a-z0-9_]*_(ids|permission_keys)(_for)?|permitted_[a-z][a-z0-9_]*_users|member_[a-z][a-z0-9_]*_ids(_for|_of)?|permdock_can_assign(_any|_custom_role)?(_for)?|permdock_api_key_allows|permdock_token_scope_allows|permdock_actor_may_write|permdock_is_approver|permdock_manages|permdock_user_id)$"
|
|
519
|
+
"pattern": "^(permdock_has(_for)?|permitted_[a-z][a-z0-9_]*_(ids|permission_keys)(_for)?|permitted_[a-z][a-z0-9_]*_users|member_[a-z][a-z0-9_]*_ids(_for|_of)?|permdock_can_assign(_any|_custom_role)?(_for)?|permdock_api_key_allows|permdock_token_scope_allows|permdock_actor_may_write|permdock_is_approver|permdock_manages|permdock_user_id|permdock_subject)$"
|
|
520
520
|
},
|
|
521
521
|
"column": {
|
|
522
522
|
"type": "object",
|
|
@@ -95,6 +95,8 @@ import { PermDockProvider, Protected, usePermission } from "permdock/react";
|
|
|
95
95
|
|
|
96
96
|
`permissions.ts` may be imported on the client. `policy.ts` may not.
|
|
97
97
|
|
|
98
|
+
To ship less client JavaScript, check in a Server Component with `getPermission` (no provider). `permdock/react` answers `usePermission(permission)` and `<Protected permission>` from the snapshot's `typeLevel` table; the evaluator loads as a separate chunk when a hook needs a `Decision` or row data (`usePermission(permission, data)`, `useDecision`, `useGate`, `usePermDock`). Those hooks suspend, so wrap them in `<Suspense>`.
|
|
99
|
+
|
|
98
100
|
## AuthZEN — `permdock/authzen`
|
|
99
101
|
|
|
100
102
|
```ts
|
package/dist/catalog-C462QC3A.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as catalogFile, n as runCatalog } from "./catalog-Y4CjN8NA.js";
|
package/dist/collect-W9i7REKT.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { r as runCollect } from "./collect-Cr71JA7z.js";
|