permdock 0.22.1 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a2a/index.d.ts +4 -4
- package/dist/a2a/index.js +4 -4
- package/dist/{adoption-scan-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 +35 -10
- package/dist/better-supabase/index.js +58 -15
- 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-CdqR2-E2.js} +80 -12
- package/dist/{protected-action-C4aj1KjO.d.ts → protected-action-DGuJNiMA.d.ts} +20 -8
- package/dist/{provider-DKO9KHua.js → provider-6mpRZO1E.js} +21 -3
- package/dist/{provider-store-D4PU1my_.js → provider-store-BLd4UEmg.js} +4 -3
- package/dist/{provider-B-1DlOGM.d.ts → provider-yIM04TwN.d.ts} +1 -1
- package/dist/{pull-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/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-ZfjQB0KC.d.ts → types-CAp7UGiB.d.ts} +1 -1
- package/dist/{types-CD1qmxdx.d.ts → types-CErg7ft6.d.ts} +3 -3
- package/dist/{types-_pi9kxS2.d.ts → types-CXUwgZ3d.d.ts} +2 -2
- package/dist/{types-C_a44wSr.d.ts → types-Cc68_zqR.d.ts} +2 -2
- package/dist/{types-Cq2rvv-C.d.ts → types-CdXM6qPc.d.ts} +2 -2
- package/dist/{types-BSNZMp5b.d.ts → types-ChYCRn7Y.d.ts} +1 -1
- package/dist/{types-CuDXvyIT.d.ts → types-DDlaFDM3.d.ts} +4 -4
- package/dist/{types-NikV1pND.d.ts → types-DM0o1YyJ.d.ts} +4 -4
- package/dist/{types-B9F0EZAF.d.ts → types-DyA4Loy4.d.ts} +3 -3
- package/dist/{types-cNZhj0UF.d.ts → types-JmB6unT6.d.ts} +1 -1
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-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 +1 -1
- 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
package/dist/a2a/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as Policy, dr as AuthorizationDetail, yr as Principal } from "../policy-types-
|
|
1
|
+
import { D as Policy, dr as AuthorizationDetail, yr as Principal } from "../policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { m as ApprovalStore } from "../types-
|
|
4
|
-
import { a as ProblemDetails } from "../errors-
|
|
5
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
3
|
+
import { m as ApprovalStore } from "../types-CAp7UGiB.js";
|
|
4
|
+
import { a as ProblemDetails } from "../errors-CXxQwtbZ.js";
|
|
5
|
+
import { t as InstanceOptions } from "../instance-options-BDHB3qBG.js";
|
|
6
6
|
//#region src/a2a/types.d.ts
|
|
7
7
|
type A2aAuth = {
|
|
8
8
|
readonly clientId?: string;
|
package/dist/a2a/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
3
3
|
import { o as statusProblem } from "../problem-details-CLDgX1KV.js";
|
|
4
|
-
import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-ynga1EQy.js";
|
|
5
4
|
import { n as resourceRef } from "../resource-ref-CaS9yVPi.js";
|
|
6
5
|
import { t as canonicalJson } from "../canonical-json-DwilZ1iB.js";
|
|
7
6
|
import { t as bytesToBase64Url } from "../sha256-C-4WXKIu.js";
|
|
8
|
-
import { i as challengeScope, o as hasScope, s as scopesReaching } from "../permdock-
|
|
7
|
+
import { i as challengeScope, o as hasScope, s as scopesReaching } from "../permdock-HfTF99xX.js";
|
|
8
|
+
import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-ynga1EQy.js";
|
|
9
9
|
import { r as withApp } from "../app-DIvM65Mv.js";
|
|
10
10
|
import { t as instanceOptions } from "../instance-options-URVwqpMW.js";
|
|
11
|
-
import { p as wwwAuthenticate, r as bearerChallenge } from "../problem-
|
|
12
|
-
import { n as createAgentKernel } from "../kernel-
|
|
11
|
+
import { p as wwwAuthenticate, r as bearerChallenge } from "../problem-CPB8kqk7.js";
|
|
12
|
+
import { n as createAgentKernel } from "../kernel-BY3rVRs2.js";
|
|
13
13
|
import { n as delegationFrom } from "../delegation-input-DcXhiMkf.js";
|
|
14
14
|
//#region src/a2a/create.ts
|
|
15
15
|
function firstScheme(options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as listSourceFiles } from "./files-BSjrtIHw.js";
|
|
2
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
2
|
+
import { t as DOCS_BASE } from "./manifest-CIlVL-QT.js";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { relative } from "node:path";
|
|
5
5
|
//#region src/cli/adoption-scan.ts
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-
|
|
2
|
-
import { a as createPermDock, c as ModelMap, d as StepUp, i as OperationVerdict, l as ToolBinding, n as AgentPermDockOptions, o as AgentAdapterOptions, r as GatewayOptions, s as DecideToolOptions, t as AgentPermDock, u as ToolMap } from "../create-
|
|
1
|
+
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-BTMxIn5W.js";
|
|
2
|
+
import { a as createPermDock, c as ModelMap, d as StepUp, i as OperationVerdict, l as ToolBinding, n as AgentPermDockOptions, o as AgentAdapterOptions, r as GatewayOptions, s as DecideToolOptions, t as AgentPermDock, u as ToolMap } from "../create-ChK8bpCK.js";
|
|
3
3
|
export { type AgentAdapterOptions, type AgentPermDock, type AgentPermDockOptions, type DecideToolOptions, type DeniedText, type DeniedTextEvent, type GatewayOptions, type ModelMap, type OperationVerdict, type StepUp, type ToolBinding, type ToolMap, createPermDock };
|
package/dist/agent/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as createPermDock } from "../create-
|
|
1
|
+
export { n as createPermDock } from "../create-bYkJ4-tg.js";
|
package/dist/ai-sdk/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 { n as DeniedTextEvent, t as DeniedText } from "../denied-text-
|
|
4
|
-
import { d as StepUp, o as AgentAdapterOptions, t as AgentPermDock } from "../create-
|
|
3
|
+
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-BTMxIn5W.js";
|
|
4
|
+
import { d as StepUp, o as AgentAdapterOptions, t as AgentPermDock } from "../create-ChK8bpCK.js";
|
|
5
5
|
//#region src/ai-sdk/create.d.ts
|
|
6
6
|
type AiSdkContext = {
|
|
7
7
|
readonly runtimeContext?: unknown;
|
package/dist/ai-sdk/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-ynga1EQy.js";
|
|
3
3
|
import { r as withApp } from "../app-DIvM65Mv.js";
|
|
4
|
-
import { r as stepUpText, t as approvalTokenOf } from "../kernel-
|
|
5
|
-
import { t as agentRuntime } from "../create-
|
|
4
|
+
import { r as stepUpText, t as approvalTokenOf } from "../kernel-BY3rVRs2.js";
|
|
5
|
+
import { t as agentRuntime } from "../create-bYkJ4-tg.js";
|
|
6
6
|
//#region src/ai-sdk/create.ts
|
|
7
7
|
const APPROVAL_STATUSES = /* @__PURE__ */ new Set([
|
|
8
8
|
"approved",
|
package/dist/app/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-
|
|
2
|
-
import { a as PermDock, o as PermDockOptions } from "../permdock-
|
|
3
|
-
import { m as ApprovalStore } from "../types-
|
|
4
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
5
|
-
import { r as ApiKeySubjectOptions } from "../credentials-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-CCBrL7me.js";
|
|
2
|
+
import { a as PermDock, o as PermDockOptions } from "../permdock-vD3mwLSm.js";
|
|
3
|
+
import { m as ApprovalStore } from "../types-CAp7UGiB.js";
|
|
4
|
+
import { t as InstanceOptions } from "../instance-options-BDHB3qBG.js";
|
|
5
|
+
import { r as ApiKeySubjectOptions } from "../credentials-fqa_Xzzh.js";
|
|
6
6
|
import { t as ClaimsMap } from "../claims-map-D1Pb5oRq.js";
|
|
7
|
-
import { n as SubjectCache, s as VersionCache } from "../subject-cache-
|
|
7
|
+
import { n as SubjectCache, s as VersionCache } from "../subject-cache-DrJGnRiV.js";
|
|
8
8
|
//#region src/core/app.d.ts
|
|
9
9
|
/**
|
|
10
10
|
* How strict `definePermDock` is about the services the policy needs. `dev`
|
package/dist/app/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
|
|
2
|
-
import { t as getPermDock } from "../permdock-
|
|
2
|
+
import { t as getPermDock } from "../permdock-HfTF99xX.js";
|
|
3
3
|
import { n as memoryLimitStore, t as limits } from "../limits-CAhpRrhk.js";
|
|
4
4
|
import { t as APP } from "../app-DIvM65Mv.js";
|
|
5
|
-
import { i as memoryApprovalStore } from "../store-
|
|
5
|
+
import { i as memoryApprovalStore } from "../store-DXO0aVgf.js";
|
|
6
6
|
import { t as instanceOptions } from "../instance-options-URVwqpMW.js";
|
|
7
|
-
import { t as versionSources } from "../version-sources-
|
|
7
|
+
import { t as versionSources } from "../version-sources-BZ7V6Z8Z.js";
|
|
8
8
|
import { r as mapClaimsToSubject } from "../map-claims-CAa_bQt9.js";
|
|
9
|
-
import { c as subjectFromApiKey } from "../credentials-
|
|
9
|
+
import { c as subjectFromApiKey } from "../credentials-UwTE2wCW.js";
|
|
10
10
|
//#region src/app/define-permdock.ts
|
|
11
11
|
function grantsOf(policy) {
|
|
12
12
|
return [...policy.index.grantsByKey.values()].flat();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as isReadonlyArray, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { a as flattenApprovers, c as isManagerApprover, d as manager, f as user, l as isPermissionApprover, r as approverLeaves, s as isAnyOfInput, u as isUserApprover } from "./approvers-BaNwKYgd.js";
|
|
3
3
|
import { d as isSelfParented } from "./resource-relations-8-pCScBO.js";
|
|
4
|
-
import { a as authenticated, r as asGrantee } from "./grantee-
|
|
4
|
+
import { a as authenticated, r as asGrantee } from "./grantee-OG4klcNr.js";
|
|
5
5
|
import { r as assertDuration } from "./time-nR1JesoH.js";
|
|
6
6
|
//#region src/core/approval-normalize.ts
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as Policy, Er as Condition, Sn as Scope, _ as Grant, o as ApprovalOption, sn as AuthEvent, xr as Subject } from "./policy-types-
|
|
1
|
+
import { D as Policy, Er as Condition, Sn as Scope, _ as Grant, o as ApprovalOption, sn as AuthEvent, xr as Subject } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { i as OperationEffect, s as OperationMeta, u as OperationRisk } from "./operations-BMPx7HyO.js";
|
|
3
3
|
//#region src/core/approval-policies.d.ts
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as OperationMeta, t as Operation } from "./operations-BMPx7HyO.js";
|
|
2
|
-
import { u as ApprovalRequest } from "./types-
|
|
2
|
+
import { u as ApprovalRequest } from "./types-CAp7UGiB.js";
|
|
3
3
|
//#region src/delivery/approval-prompt.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* What an email or chat prompt shows an approver, wire format v1. It carries no
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as DEFAULT_APPROVAL_TTL, a as ApprovalDelegationSource, b as escalationOpenAt, c as ApprovalListQuery, d as ApprovalResumeFailureCause, f as ApprovalSignature, g as ApprovalVerdict, h as ApprovalSubjectSummary, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, n as ApprovalApprovers, o as ApprovalInspectResult, p as ApprovalStatus, r as ApprovalCancelMeta, s as ApprovalListFilter, t as APPROVAL_HEADER, u as ApprovalRequest, v as approvalQuorum, y as approverRelationKey } from "../types-
|
|
1
|
+
import { _ as DEFAULT_APPROVAL_TTL, a as ApprovalDelegationSource, b as escalationOpenAt, c as ApprovalListQuery, d as ApprovalResumeFailureCause, f as ApprovalSignature, g as ApprovalVerdict, h as ApprovalSubjectSummary, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, n as ApprovalApprovers, o as ApprovalInspectResult, p as ApprovalStatus, r as ApprovalCancelMeta, s as ApprovalListFilter, t as APPROVAL_HEADER, u as ApprovalRequest, v as approvalQuorum, y as approverRelationKey } from "../types-CAp7UGiB.js";
|
|
2
2
|
import { n as ApprovalErrorCode, r as isApprovalError, t as ApprovalError } from "../errors-CHwoRRpB.js";
|
|
3
|
-
import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, o as AccessReviewItemStatus, r as AccessReviewItem, s as AccessReviewStatus, t as AccessReview } from "../types-
|
|
4
|
-
import { $ as pageAccessReviewItems, A as SignApprovalOptions, B as IdempotentResponse, C as ApproverRelationsOptions, D as approvalView, E as approvalEntityTag, F as ApprovalsHandlerOptions, G as ApproverDirectory, H as idempotencyRecordKey, I as approvalsHandler, J as matchDelegation, K as ApprovalDelegationMatch, L as IdempotencyRecord, M as signApproval, N as APPROVAL_REQUEST_SCHEMA, O as ApprovalSignatureClaims, P as parseApprovalRequest, Q as memoryAccessReviewStore, R as IdempotencyStore, S as vouchApproval, T as ApprovalView, U as matchesIdempotencyRecord, V as idempotencyRecord, W as memoryIdempotencyStore, X as parseApprovalDelegation, Y as memoryApprovalDelegationSource, Z as MemoryAccessReviewStore, _ as resolveApproval, a as approverPermissions, at as AccessReviewErrorCode, b as storedApprovalToken, c as decodeApprovalCursor, ct as accessReviewerEligible, d as pageApprovals, dt as accessReviewsHandler, et as AccessReviewHolder, f as cancelApprovals, g as requestApproval, h as readApprovalHeader, i as memoryApprovalStore, it as AccessReviewError, j as approvalSignatureClaims, k as ApprovalSignatureEntry, l as encodeApprovalCursor, lt as decideAccessReviewItem, m as inspectApproval, n as applyApprovalVerdict, nt as StartAccessReviewInput, o as ApprovalCursorPosition, ot as isAccessReviewError, p as consumeApproval, q as MatchDelegationOptions, r as assertApprover, rt as startAccessReview, s as approvalPageSize, st as AccessReviewVerdict, t as MemoryApprovalStore, tt as AccessReviewOptions, u as listAllApprovals, ut as AccessReviewsHandlerOptions, v as resumeDecision, w as approverRelations, x as summarizeSubject, y as resumeFromHeader, z as IdempotentCall } from "../index-
|
|
3
|
+
import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, o as AccessReviewItemStatus, r as AccessReviewItem, s as AccessReviewStatus, t as AccessReview } from "../types-ChYCRn7Y.js";
|
|
4
|
+
import { $ as pageAccessReviewItems, A as SignApprovalOptions, B as IdempotentResponse, C as ApproverRelationsOptions, D as approvalView, E as approvalEntityTag, F as ApprovalsHandlerOptions, G as ApproverDirectory, H as idempotencyRecordKey, I as approvalsHandler, J as matchDelegation, K as ApprovalDelegationMatch, L as IdempotencyRecord, M as signApproval, N as APPROVAL_REQUEST_SCHEMA, O as ApprovalSignatureClaims, P as parseApprovalRequest, Q as memoryAccessReviewStore, R as IdempotencyStore, S as vouchApproval, T as ApprovalView, U as matchesIdempotencyRecord, V as idempotencyRecord, W as memoryIdempotencyStore, X as parseApprovalDelegation, Y as memoryApprovalDelegationSource, Z as MemoryAccessReviewStore, _ as resolveApproval, a as approverPermissions, at as AccessReviewErrorCode, b as storedApprovalToken, c as decodeApprovalCursor, ct as accessReviewerEligible, d as pageApprovals, dt as accessReviewsHandler, et as AccessReviewHolder, f as cancelApprovals, g as requestApproval, h as readApprovalHeader, i as memoryApprovalStore, it as AccessReviewError, j as approvalSignatureClaims, k as ApprovalSignatureEntry, l as encodeApprovalCursor, lt as decideAccessReviewItem, m as inspectApproval, n as applyApprovalVerdict, nt as StartAccessReviewInput, o as ApprovalCursorPosition, ot as isAccessReviewError, p as consumeApproval, q as MatchDelegationOptions, r as assertApprover, rt as startAccessReview, s as approvalPageSize, st as AccessReviewVerdict, t as MemoryApprovalStore, tt as AccessReviewOptions, u as listAllApprovals, ut as AccessReviewsHandlerOptions, v as resumeDecision, w as approverRelations, x as summarizeSubject, y as resumeFromHeader, z as IdempotentCall } from "../index-DYAJ9JX1.js";
|
|
5
5
|
import { t as approvalFingerprint } from "../token-D6pWn8Uj.js";
|
|
6
6
|
export { APPROVAL_HEADER, APPROVAL_REQUEST_SCHEMA, type AccessReview, type AccessReviewDecision, AccessReviewError, type AccessReviewErrorCode, type AccessReviewHolder, type AccessReviewItem, type AccessReviewItemPage, type AccessReviewItemQuery, type AccessReviewItemStatus, type AccessReviewOptions, type AccessReviewStatus, type AccessReviewStore, type AccessReviewVerdict, type AccessReviewsHandlerOptions, type ApprovalApprovers, type ApprovalCancelMeta, type ApprovalCursorPosition, type ApprovalDelegation, type ApprovalDelegationMatch, type ApprovalDelegationSource, ApprovalError, type ApprovalErrorCode, type ApprovalInspectResult, type ApprovalListFilter, type ApprovalListQuery, type ApprovalPage, type ApprovalRequest, type ApprovalResumeFailureCause, type ApprovalSignature, type ApprovalSignatureClaims, type ApprovalSignatureEntry, type ApprovalStatus, type ApprovalStore, type ApprovalSubjectSummary, type ApprovalVerdict, type ApprovalView, type ApprovalsHandlerOptions, type ApproverDirectory, type ApproverRelationsOptions, DEFAULT_APPROVAL_TTL, type IdempotencyRecord, type IdempotencyStore, type IdempotentCall, type IdempotentResponse, type MatchDelegationOptions, type MemoryAccessReviewStore, type MemoryApprovalStore, type SignApprovalOptions, type StartAccessReviewInput, accessReviewerEligible, accessReviewsHandler, applyApprovalVerdict, approvalEntityTag, approvalFingerprint, approvalPageSize, approvalQuorum, approvalSignatureClaims, approvalView, approvalsHandler, approverPermissions, approverRelationKey, approverRelations, assertApprover, cancelApprovals, consumeApproval, decideAccessReviewItem, decodeApprovalCursor, encodeApprovalCursor, escalationOpenAt, idempotencyRecord, idempotencyRecordKey, inspectApproval, isAccessReviewError, isApprovalError, listAllApprovals, matchDelegation, matchesIdempotencyRecord, memoryAccessReviewStore, memoryApprovalDelegationSource, memoryApprovalStore, memoryIdempotencyStore, pageAccessReviewItems, pageApprovals, parseApprovalDelegation, parseApprovalRequest, readApprovalHeader, requestApproval, resolveApproval, resumeDecision, resumeFromHeader, signApproval, startAccessReview, storedApprovalToken, summarizeSubject, vouchApproval };
|
package/dist/approvals/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as approvalFingerprint } from "../token-DaMnIU9O.js";
|
|
2
2
|
import { a as escalationOpenAt, c as isApprovalError, i as approverRelationKey, n as DEFAULT_APPROVAL_TTL, r as approvalQuorum, s as ApprovalError, t as APPROVAL_HEADER } from "../types-CcUXciSj.js";
|
|
3
|
-
import { c as decodeApprovalCursor, d as pageApprovals, i as memoryApprovalStore, l as encodeApprovalCursor, n as assertApprover, s as approvalPageSize, t as applyApprovalVerdict, u as listAllApprovals } from "../store-
|
|
4
|
-
import { a as requestApproval, c as resumeFromHeader, d as vouchApproval, f as approverPermissions, i as readApprovalHeader, l as storedApprovalToken, m as approverRelations, n as consumeApproval, o as resolveApproval, r as inspectApproval, s as resumeDecision, t as cancelApprovals, u as summarizeSubject } from "../helpers-
|
|
3
|
+
import { c as decodeApprovalCursor, d as pageApprovals, i as memoryApprovalStore, l as encodeApprovalCursor, n as assertApprover, s as approvalPageSize, t as applyApprovalVerdict, u as listAllApprovals } from "../store-DXO0aVgf.js";
|
|
4
|
+
import { a as requestApproval, c as resumeFromHeader, d as vouchApproval, f as approverPermissions, i as readApprovalHeader, l as storedApprovalToken, m as approverRelations, n as consumeApproval, o as resolveApproval, r as inspectApproval, s as resumeDecision, t as cancelApprovals, u as summarizeSubject } from "../helpers-CO2hDpBU.js";
|
|
5
5
|
import { n as isAccessReviewError, t as AccessReviewError } from "../errors-BDUwg2qC.js";
|
|
6
|
-
import { _ as accessReviewerEligible, a as idempotencyRecordKey, c as approvalEntityTag, d as memoryApprovalDelegationSource, f as parseApprovalDelegation, g as accessReviewsHandler, h as startAccessReview, i as idempotencyRecord, l as approvalView, m as pageAccessReviewItems, n as approvalSignatureClaims, o as matchesIdempotencyRecord, p as memoryAccessReviewStore, r as signApproval, s as memoryIdempotencyStore, t as approvalsHandler, u as matchDelegation, v as decideAccessReviewItem } from "../approvals-
|
|
6
|
+
import { _ as accessReviewerEligible, a as idempotencyRecordKey, c as approvalEntityTag, d as memoryApprovalDelegationSource, f as parseApprovalDelegation, g as accessReviewsHandler, h as startAccessReview, i as idempotencyRecord, l as approvalView, m as pageAccessReviewItems, n as approvalSignatureClaims, o as matchesIdempotencyRecord, p as memoryAccessReviewStore, r as signApproval, s as memoryIdempotencyStore, t as approvalsHandler, u as matchDelegation, v as decideAccessReviewItem } from "../approvals-BfzI8Foe.js";
|
|
7
7
|
import { t as APPROVAL_REQUEST_SCHEMA } from "../request-schema-CMP8Cmxd.js";
|
|
8
8
|
import { t as parseApprovalRequest } from "../parse-request-DOBVaeiQ.js";
|
|
9
9
|
export { APPROVAL_HEADER, APPROVAL_REQUEST_SCHEMA, AccessReviewError, ApprovalError, DEFAULT_APPROVAL_TTL, accessReviewerEligible, accessReviewsHandler, applyApprovalVerdict, approvalEntityTag, approvalFingerprint, approvalPageSize, approvalQuorum, approvalSignatureClaims, approvalView, approvalsHandler, approverPermissions, approverRelationKey, approverRelations, assertApprover, cancelApprovals, consumeApproval, decideAccessReviewItem, decodeApprovalCursor, encodeApprovalCursor, escalationOpenAt, idempotencyRecord, idempotencyRecordKey, inspectApproval, isAccessReviewError, isApprovalError, listAllApprovals, matchDelegation, matchesIdempotencyRecord, memoryAccessReviewStore, memoryApprovalDelegationSource, memoryApprovalStore, memoryIdempotencyStore, pageAccessReviewItems, pageApprovals, parseApprovalDelegation, parseApprovalRequest, readApprovalHeader, requestApproval, resolveApproval, resumeDecision, resumeFromHeader, signApproval, startAccessReview, storedApprovalToken, summarizeSubject, vouchApproval };
|
|
@@ -2,18 +2,18 @@ import { 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 { a as problemType, o as statusProblem } from "./problem-details-CLDgX1KV.js";
|
|
5
|
-
import { o as flattenGrantee } from "./grantee-
|
|
5
|
+
import { o as flattenGrantee } from "./grantee-OG4klcNr.js";
|
|
6
6
|
import { d as isoNow, f as nowMillis, g as secondsOf, i as dateAt } from "./time-nR1JesoH.js";
|
|
7
7
|
import { r as isId } from "./ids-DzhJaCUj.js";
|
|
8
8
|
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
9
9
|
import { r as sha256Digest } from "./sha256-C-4WXKIu.js";
|
|
10
10
|
import { i as rootMembershipId } from "./subject-C7RddW0G.js";
|
|
11
11
|
import { c as isApprovalError, s as ApprovalError } from "./types-CcUXciSj.js";
|
|
12
|
-
import { a as belongsToTenant, c as decodeApprovalCursor, n as assertApprover, o as membershipTenants, r as matchesApprovers, s as approvalPageSize, u as listAllApprovals } from "./store-
|
|
13
|
-
import { d as unauthenticatedProblem, f as validationProblem, l as problemResponse, o as methodNotAllowed } from "./problem-
|
|
14
|
-
import { f as approverPermissions, g as countOtherApprovers, m as approverRelations, p as heldPermissions } from "./helpers-
|
|
12
|
+
import { a as belongsToTenant, c as decodeApprovalCursor, n as assertApprover, o as membershipTenants, r as matchesApprovers, s as approvalPageSize, u as listAllApprovals } from "./store-DXO0aVgf.js";
|
|
13
|
+
import { d as unauthenticatedProblem, f as validationProblem, l as problemResponse, o as methodNotAllowed } from "./problem-CPB8kqk7.js";
|
|
14
|
+
import { f as approverPermissions, g as countOtherApprovers, m as approverRelations, p as heldPermissions } from "./helpers-CO2hDpBU.js";
|
|
15
15
|
import { n as readBodyText } from "./body-text-DQhcmqdY.js";
|
|
16
|
-
import { t as bodyTooLarge } from "./body-
|
|
16
|
+
import { t as bodyTooLarge } from "./body-Cy9S8zhw.js";
|
|
17
17
|
import { r as hasCredentials } from "./http-DKLXrFGk.js";
|
|
18
18
|
import { n as isAccessReviewError, t as AccessReviewError } from "./errors-BDUwg2qC.js";
|
|
19
19
|
//#region src/approvals/access-reviews/decide.ts
|
|
@@ -21,7 +21,7 @@ const check = defineLeaf({
|
|
|
21
21
|
...permissionsFlag
|
|
22
22
|
},
|
|
23
23
|
async run(ctx, { flags }) {
|
|
24
|
-
return (await import("./arazzo-
|
|
24
|
+
return (await import("./arazzo-rsYPFgga.js")).runArazzo({
|
|
25
25
|
cwd: ctx.cwd,
|
|
26
26
|
config: ctx.config,
|
|
27
27
|
doc: given(flags.doc),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as arazzoFindings } from "./src-
|
|
1
|
+
import { g as arazzoFindings } from "./src-BZKQe1lr.js";
|
|
2
2
|
import { c as missingInput } from "./errors-BhRkoNS7.js";
|
|
3
3
|
import { i as readJsonFile } from "./files-BSjrtIHw.js";
|
|
4
4
|
import { t as ARAZZO_REPORT_SCHEMA } from "./version-DMQ0dnN5.js";
|
|
5
5
|
import { a as loadModule, s as pickNamed, t as asPermissionTree } from "./load-C4p4VgwR.js";
|
|
6
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
6
|
+
import { t as DOCS_BASE } from "./manifest-CIlVL-QT.js";
|
|
7
7
|
import { existsSync } from "node:fs";
|
|
8
8
|
import { resolve } from "node:path";
|
|
9
9
|
//#region src/cli/arazzo.ts
|
package/dist/astro/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, en as Snapshot, yr as Principal } from "../policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, en as Snapshot, yr as Principal } from "../policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
3
|
import { a as OperationInput, t as Operation } from "../operations-BMPx7HyO.js";
|
|
4
|
-
import { a as PermDock } from "../permdock-
|
|
5
|
-
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types
|
|
6
|
-
import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-
|
|
4
|
+
import { a as PermDock } from "../permdock-vD3mwLSm.js";
|
|
5
|
+
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-CtJSDhOv.js";
|
|
6
|
+
import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-eQ-mdk8n.js";
|
|
7
7
|
import { APIContext, MiddlewareHandler } from "astro";
|
|
8
8
|
//#region src/astro/create.d.ts
|
|
9
9
|
type AstroPermDockOptions<TUser = unknown> = FetchAdapterOptions<APIContext, TUser>;
|
package/dist/astro/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-
|
|
2
|
-
import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-
|
|
1
|
+
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-Bj5xw0EM.js";
|
|
2
|
+
import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-CAA3VJMX.js";
|
|
3
3
|
//#region src/astro/create.ts
|
|
4
4
|
const route = {
|
|
5
5
|
context: (context) => context,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as whoCan } from "./who-can-
|
|
1
|
+
import { t as whoCan } from "./who-can-DcrHB6ya.js";
|
|
2
2
|
//#region src/delivery/audience.ts
|
|
3
3
|
async function granted(permdock, ids, permission, row) {
|
|
4
4
|
const unique = [...new Set(ids.filter((id) => typeof id === "string" && id !== ""))];
|
package/dist/authzen/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as Policy, hr as Delegation, lr as Actor, yr as Principal } from "../policy-types-
|
|
2
|
-
import { m as ApprovalStore } from "../types-
|
|
3
|
-
import { a as ProblemDetails } from "../errors-
|
|
4
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
5
|
-
import { a as evaluationsSemantic, n as EvaluationsSemantic, r as evaluateBatch, t as EVALUATIONS_SEMANTICS } from "../evaluations-
|
|
1
|
+
import { D as Policy, hr as Delegation, lr as Actor, yr as Principal } from "../policy-types-CCBrL7me.js";
|
|
2
|
+
import { m as ApprovalStore } from "../types-CAp7UGiB.js";
|
|
3
|
+
import { a as ProblemDetails } from "../errors-CXxQwtbZ.js";
|
|
4
|
+
import { t as InstanceOptions } from "../instance-options-BDHB3qBG.js";
|
|
5
|
+
import { a as evaluationsSemantic, n as EvaluationsSemantic, r as evaluateBatch, t as EVALUATIONS_SEMANTICS } from "../evaluations-DcUW5VkX.js";
|
|
6
6
|
//#region src/authzen/map.d.ts
|
|
7
7
|
type AuthzenEntity = {
|
|
8
8
|
readonly type?: unknown;
|
package/dist/authzen/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import { a as problemType, o as statusProblem } from "../problem-details-CLDgX1K
|
|
|
4
4
|
import { a as getResource, c as listPermissions } from "../permission-registry-B8tYxPIt.js";
|
|
5
5
|
import { n as resourceRef } from "../resource-ref-CaS9yVPi.js";
|
|
6
6
|
import { t as fromWireDelegation } from "../wire-delegation-Cv3W2eaM.js";
|
|
7
|
-
import { n as resolveOrNull, t as buildInstance } from "../build-instance-
|
|
8
|
-
import { d as unauthenticatedProblem, l as problemResponse, o as methodNotAllowed } from "../problem-
|
|
9
|
-
import { a as evaluationReasons, c as withRequestId, d as wireResourceId, i as evaluateBatch, l as itemResourceData, n as applyApprovalResume, r as authzenMetadata, s as evaluationsSemantic, t as EVALUATIONS_SEMANTICS, u as permissionLookup } from "../evaluations-
|
|
7
|
+
import { n as resolveOrNull, t as buildInstance } from "../build-instance-BDGzsGcn.js";
|
|
8
|
+
import { d as unauthenticatedProblem, l as problemResponse, o as methodNotAllowed } from "../problem-CPB8kqk7.js";
|
|
9
|
+
import { a as evaluationReasons, c as withRequestId, d as wireResourceId, i as evaluateBatch, l as itemResourceData, n as applyApprovalResume, r as authzenMetadata, s as evaluationsSemantic, t as EVALUATIONS_SEMANTICS, u as permissionLookup } from "../evaluations-Bj5xw0EM.js";
|
|
10
10
|
import { n as readBodyText, t as MAX_BODY_BYTES } from "../body-text-DQhcmqdY.js";
|
|
11
11
|
import { r as hasCredentials } from "../http-DKLXrFGk.js";
|
|
12
12
|
//#region src/authzen/map.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Kt as InstanceHandle, Xn as Denial, qt as Instant } from "./policy-types-
|
|
1
|
+
import { Kt as InstanceHandle, Xn as Denial, qt as Instant } 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
4
|
//#region src/core/automation.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as RoleBinding, X as DecisionSink, q as CustomRoleSource, xr as Subject, yr as Principal } from "../policy-types-
|
|
1
|
+
import { F as RoleBinding, X as DecisionSink, q as CustomRoleSource, xr as Subject, yr as Principal } from "../policy-types-CCBrL7me.js";
|
|
2
2
|
import { E as PermissionTree } from "../vocabulary-DeZvUaTw.js";
|
|
3
3
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
4
4
|
//#region src/better-auth/types.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as isReadonlyArray, r as isRecord, t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
3
|
-
import { n as role, r as allow } from "../role-builder-
|
|
3
|
+
import { n as role, r as allow } from "../role-builder-BXdhhQcB.js";
|
|
4
4
|
import { c as listPermissions } from "../permission-registry-B8tYxPIt.js";
|
|
5
5
|
import { r as validateRecord } from "../thenable-BNSM1U2R.js";
|
|
6
6
|
import { i as rootMembershipId, t as anonymousSubject } from "../subject-C7RddW0G.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { $n as DeniedDecision, D as Policy, Dn as ApproverInput, G as CredentialVerifier, N as PolicyVocabulary, Q as Intent, Tt as SupportSession, it as MembershipSource, jt as ApiKeyPrincipal, qt as Instant, sn as AuthEvent, xr as Subject, yr as Principal } from "../policy-types-
|
|
1
|
+
import { $n as DeniedDecision, D as Policy, Dn as ApproverInput, G as CredentialVerifier, N as PolicyVocabulary, Q as Intent, Tt as SupportSession, it as MembershipSource, jt as ApiKeyPrincipal, qt as Instant, sn as AuthEvent, 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
3
|
import { i as OperationEffect } from "../operations-BMPx7HyO.js";
|
|
4
|
-
import { i as ApprovalPolicySource } from "../approval-policies-
|
|
5
|
-
import { M as PermissionCheck, N as PermissionState, T as InstanceCache, _ as PrincipalSource, a as PermDock, h as PrincipalIdentity, o as PermDockOptions } from "../permdock-
|
|
6
|
-
import { m as ApprovalStore } from "../types-
|
|
7
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
8
|
-
import { n as SubjectCache, s as VersionCache } from "../subject-cache-
|
|
9
|
-
import { c as AccessReviewStore } from "../types-
|
|
10
|
-
import { r as SupabaseRpcCaller } from "../postgrest-
|
|
4
|
+
import { i as ApprovalPolicySource } from "../approval-policies-D7moEfTM.js";
|
|
5
|
+
import { M as PermissionCheck, N as PermissionState, T as InstanceCache, _ as PrincipalSource, a as PermDock, h as PrincipalIdentity, o as PermDockOptions } from "../permdock-vD3mwLSm.js";
|
|
6
|
+
import { m as ApprovalStore } from "../types-CAp7UGiB.js";
|
|
7
|
+
import { t as InstanceOptions } from "../instance-options-BDHB3qBG.js";
|
|
8
|
+
import { n as SubjectCache, s as VersionCache } from "../subject-cache-DrJGnRiV.js";
|
|
9
|
+
import { c as AccessReviewStore } from "../types-ChYCRn7Y.js";
|
|
10
|
+
import { r as SupabaseRpcCaller } from "../postgrest-5WOO47Ud.js";
|
|
11
11
|
import { a as CatalogDocument } from "../types-DAyp592k.js";
|
|
12
|
-
import { A as SupabaseSubjectOptions, C as SupabasePrincipal, N as SupabaseSuspension, O as SupabaseSessionLike, s as SqlMembershipSource } from "../sources-
|
|
12
|
+
import { A as SupabaseSubjectOptions, C as SupabasePrincipal, N as SupabaseSuspension, O as SupabaseSessionLike, s as SqlMembershipSource } from "../sources-DhCtO9G8.js";
|
|
13
13
|
import { t as SqlQuery } from "../sql-B80DFdpG.js";
|
|
14
|
-
import { c as LinkPolicy, o as CapabilityPrincipal, t as Capability } from "../capability-
|
|
14
|
+
import { c as LinkPolicy, o as CapabilityPrincipal, t as Capability } from "../capability-mLbd3KZ0.js";
|
|
15
15
|
import { AccessBucketPolicy, AccessTopicPolicy, AuthorizationHooks, AuthorizationProvider, AuthorizationRequest, Authorizer, BlockTables, CredentialProvider, SupportAuthorize, SupportAuthorizeInput, ToolDecision, ToolRef } from "better-supabase/contract";
|
|
16
16
|
import { EntitlementClaimOptions } from "better-supabase/blocks/entitlements";
|
|
17
17
|
import { AuthSession } from "better-supabase/server";
|
|
@@ -715,6 +715,31 @@ type AuthorizationProviderOptions = {
|
|
|
715
715
|
* rows the caller holds a permission on.
|
|
716
716
|
*/
|
|
717
717
|
readonly rowHelpers?: boolean;
|
|
718
|
+
/**
|
|
719
|
+
* Users better-supabase's access matrix signs in as, one pgTAP file each
|
|
720
|
+
* (`providerPersonaTests`). `setup` creates the memberships and roles with
|
|
721
|
+
* `{user}` and `{tenant}`; `permissions` are the keys the persona holds in
|
|
722
|
+
* the tenant, and every other `sqlComplete` key is asserted denied.
|
|
723
|
+
*/
|
|
724
|
+
readonly personas?: readonly ProviderPersona[];
|
|
725
|
+
/**
|
|
726
|
+
* Names `permdock_subject()` as `functions.subject`, so a bootstrap seeds the
|
|
727
|
+
* provider subject. Needs a better-supabase release that knows the field (see
|
|
728
|
+
* the compatibility table); older conformance kits reject it.
|
|
729
|
+
*/
|
|
730
|
+
readonly subject?: boolean;
|
|
731
|
+
/**
|
|
732
|
+
* Fills `platformRoles` from `rls.roles`. Needs a better-supabase release
|
|
733
|
+
* whose config schema knows the field; older ones reject it.
|
|
734
|
+
*/
|
|
735
|
+
readonly platformRoles?: boolean;
|
|
736
|
+
};
|
|
737
|
+
/** One `personas` entry of better-supabase's `AuthorizationProvider`. */
|
|
738
|
+
type ProviderPersona = {
|
|
739
|
+
readonly name: string;
|
|
740
|
+
readonly setup: string;
|
|
741
|
+
readonly claims?: Readonly<Record<string, unknown>>;
|
|
742
|
+
readonly permissions: readonly string[];
|
|
718
743
|
};
|
|
719
744
|
/**
|
|
720
745
|
* better-supabase's `authorization` config value, built from PermDock's
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
3
3
|
import { a as flattenApprovers, i as approverManagerKey, o as holder, r as approverLeaves } from "../approvers-BaNwKYgd.js";
|
|
4
|
-
import { a as permissionStates } from "../checks-fyDOhcz0.js";
|
|
5
|
-
import { t as loadPrincipal } from "../principal-source-C6N60GtM.js";
|
|
6
4
|
import { c as listPermissions, n as findPermission, o as isPermission } from "../permission-registry-B8tYxPIt.js";
|
|
7
|
-
import { o as flattenGrantee } from "../grantee-
|
|
5
|
+
import { o as flattenGrantee } from "../grantee-OG4klcNr.js";
|
|
8
6
|
import { i as dateAt, m as rfc3339, p as nowSeconds, u as isoAt } from "../time-nR1JesoH.js";
|
|
9
7
|
import { r as isId, t as idList } from "../ids-DzhJaCUj.js";
|
|
10
8
|
import { d as scopeList } from "../scopes-gdH__vDZ.js";
|
|
11
9
|
import { t as canonicalJson } from "../canonical-json-DwilZ1iB.js";
|
|
12
10
|
import { r as sha256Digest } from "../sha256-C-4WXKIu.js";
|
|
13
|
-
import { a as delegatedScopeMap, s as scopesReaching } from "../permdock-
|
|
11
|
+
import { a as delegatedScopeMap, s as scopesReaching } from "../permdock-HfTF99xX.js";
|
|
12
|
+
import { t as loadPrincipal } from "../principal-source-C6N60GtM.js";
|
|
14
13
|
import { t as decideSupportSession } from "../support-session-BGeEYDSq.js";
|
|
15
|
-
import { n as asApprover } from "../approval-normalize-
|
|
14
|
+
import { n as asApprover } from "../approval-normalize-KfhzpD93.js";
|
|
16
15
|
import { n as isOperationEffect } from "../operations-Bm9HFecz.js";
|
|
17
16
|
import { r as isSubject, t as anonymousSubject } from "../subject-C7RddW0G.js";
|
|
18
|
-
import { I as decisionTenant } from "../evaluate-
|
|
17
|
+
import { I as decisionTenant } from "../evaluate-_JdlbJ32.js";
|
|
19
18
|
import { n as readSubjectRecord } from "../subject-cache-BT1fGuea.js";
|
|
19
|
+
import { a as permissionStates } from "../checks-fyDOhcz0.js";
|
|
20
20
|
import { n as appOf } from "../app-DIvM65Mv.js";
|
|
21
21
|
import { i as linkPolicyViolation, n as capabilityOf, r as capabilitySubject } from "../capability-CenWwTMR.js";
|
|
22
|
-
import { r as credentialSubject, s as parseCredential } from "../credential-
|
|
22
|
+
import { r as credentialSubject, s as parseCredential } from "../credential-DrVrRL7z.js";
|
|
23
23
|
import { s as ApprovalError } from "../types-CcUXciSj.js";
|
|
24
|
-
import { t as applyApprovalVerdict } from "../store-
|
|
24
|
+
import { t as applyApprovalVerdict } from "../store-DXO0aVgf.js";
|
|
25
25
|
import { t as instanceOptions } from "../instance-options-URVwqpMW.js";
|
|
26
|
-
import { t as versionSources } from "../version-sources-
|
|
27
|
-
import { t as buildInstance } from "../build-instance-
|
|
26
|
+
import { t as versionSources } from "../version-sources-BZ7V6Z8Z.js";
|
|
27
|
+
import { t as buildInstance } from "../build-instance-BDGzsGcn.js";
|
|
28
28
|
import { n as NO_GRANT } from "../decision-CaG5_eNJ.js";
|
|
29
29
|
import { n as parseApprovalHeader } from "../approval-header-8QV6MU4H.js";
|
|
30
|
-
import { h as managerKeys, s as resumeDecision } from "../helpers-
|
|
30
|
+
import { h as managerKeys, s as resumeDecision } from "../helpers-CO2hDpBU.js";
|
|
31
31
|
import { t as AccessReviewError } from "../errors-BDUwg2qC.js";
|
|
32
32
|
import { t as parseApprovalRequest } from "../parse-request-DOBVaeiQ.js";
|
|
33
33
|
import { i as snapshotTag } from "../snapshot-cache-B66h7FBK.js";
|
|
34
34
|
import { t as policyRowConditionKeys } from "../row-conditions-BAGHOmVq.js";
|
|
35
|
-
import { n as subscribersFor } from "../audience-
|
|
35
|
+
import { n as subscribersFor } from "../audience-N2BqOvES.js";
|
|
36
36
|
import { i as qualifySqlTable, l as sqlIdent, s as quoteSqlLiteral } from "../sql-0WjxIp9g.js";
|
|
37
37
|
import { o as junctionMembershipSource } from "../sources-C4vkzZJV.js";
|
|
38
38
|
import { a as callRpc, i as subjectFromSupabaseSession } from "../subject-BqFwS6l3.js";
|
|
39
|
-
import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-
|
|
39
|
+
import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-BoCYBbQL.js";
|
|
40
40
|
import { t as parseCatalog } from "../parse-CORUNcCo.js";
|
|
41
41
|
import { n as activeTenantMismatch, t as activeOrganizationFrom } from "../active-tenant-DVee32-T.js";
|
|
42
42
|
import { AsyncResult, dbError } from "better-supabase";
|
|
@@ -1372,6 +1372,11 @@ function isApproverTemplate(input) {
|
|
|
1372
1372
|
//#endregion
|
|
1373
1373
|
//#region src/better-supabase/provider.ts
|
|
1374
1374
|
/**
|
|
1375
|
+
* `subject_for` for the signed-in user, from the hook (`supabase hook
|
|
1376
|
+
* generate`).
|
|
1377
|
+
*/
|
|
1378
|
+
const OWN_SUBJECT = "permdock_subject";
|
|
1379
|
+
/**
|
|
1375
1380
|
* The helper each template calls (with `{scope}` unfilled), its default
|
|
1376
1381
|
* argument types and the role that calls it: `postgres` for the templates
|
|
1377
1382
|
* better-supabase runs inside its own `security definer` functions.
|
|
@@ -1523,6 +1528,7 @@ function membershipOf(source, scope, problems) {
|
|
|
1523
1528
|
userColumn: source.user.column,
|
|
1524
1529
|
scope: "column" in source.scope ? { column: source.scope.column } : { value: scope },
|
|
1525
1530
|
idColumn: source.id.column,
|
|
1531
|
+
...source.disabledAt === void 0 ? {} : { disabledAt: source.disabledAt.column },
|
|
1526
1532
|
...rolesTableOf(source)
|
|
1527
1533
|
};
|
|
1528
1534
|
}
|
|
@@ -1564,6 +1570,30 @@ function disabledRow(row) {
|
|
|
1564
1570
|
}
|
|
1565
1571
|
};
|
|
1566
1572
|
}
|
|
1573
|
+
/**
|
|
1574
|
+
* `rls.roles` as better-supabase's `platformRoles`: the global-roles table with
|
|
1575
|
+
* its roles table, and the assignment helpers that answer without a tenant.
|
|
1576
|
+
*/
|
|
1577
|
+
function platformRolesOf(manifest, schema, scope, assignAny) {
|
|
1578
|
+
const roles = manifest.rls.roles;
|
|
1579
|
+
if (roles === void 0 || isRoleList(roles.role) || !("column" in roles.role)) return;
|
|
1580
|
+
const through = "through" in roles.role ? roles.role.through : void 0;
|
|
1581
|
+
const literal = quoteSqlLiteral(scope);
|
|
1582
|
+
return {
|
|
1583
|
+
table: roles.table,
|
|
1584
|
+
user: roles.user.column,
|
|
1585
|
+
role: roles.role.column,
|
|
1586
|
+
...through === void 0 || through.on !== void 0 ? {} : { through: {
|
|
1587
|
+
table: through.table,
|
|
1588
|
+
id: through.id,
|
|
1589
|
+
column: through.column
|
|
1590
|
+
} },
|
|
1591
|
+
...assignAny ? {
|
|
1592
|
+
canAssign: `${schema}.${ASSIGN_ANY.canAssign.helper}({role}, null::uuid, ${literal}, null::text)`,
|
|
1593
|
+
canAssignFor: `${schema}.${ASSIGN_ANY.canAssignFor.helper}({user}, {role}, null::uuid, ${literal}, null::text)`
|
|
1594
|
+
} : {}
|
|
1595
|
+
};
|
|
1596
|
+
}
|
|
1567
1597
|
function permissionsOf(catalog, scopes) {
|
|
1568
1598
|
return catalog.permissions.map((permission) => {
|
|
1569
1599
|
const granted = /* @__PURE__ */ new Set();
|
|
@@ -1830,8 +1860,14 @@ function authorizationProvider(options) {
|
|
|
1830
1860
|
});
|
|
1831
1861
|
}
|
|
1832
1862
|
const permitted = listed("idsWith", tenantScope) ? permittedTemplate(schema, scopeNames.filter((scope) => listed("idsWith", scope)), tenantScope, catalog) : void 0;
|
|
1863
|
+
const rowTemplates = options.rowHelpers === true ? rowTemplatesOf(schema, manifest, requires, problems) : {};
|
|
1864
|
+
const ownSubject = options.subject === true && helpers.has(OWN_SUBJECT) ? `${schema}.${sqlIdent(OWN_SUBJECT)}()` : void 0;
|
|
1865
|
+
if (ownSubject !== void 0) requires.push({
|
|
1866
|
+
function: `${schema}.${sqlIdent(OWN_SUBJECT)}`,
|
|
1867
|
+
role: "authenticated"
|
|
1868
|
+
});
|
|
1833
1869
|
const functions = {
|
|
1834
|
-
...
|
|
1870
|
+
...rowTemplates,
|
|
1835
1871
|
...optional,
|
|
1836
1872
|
idsWith: `${schema}.${TEMPLATES.idsWith.sql}`,
|
|
1837
1873
|
isPlatform: `${schema}.${TEMPLATES.isPlatform.sql}`,
|
|
@@ -1839,7 +1875,13 @@ function authorizationProvider(options) {
|
|
|
1839
1875
|
...teamIdsOf === void 0 ? {} : { teamIdsOf },
|
|
1840
1876
|
...actorMayWrite === void 0 ? {} : { actorMayWrite },
|
|
1841
1877
|
...isApprover === void 0 ? {} : { isApprover },
|
|
1842
|
-
...permitted === void 0 ? {} : { permitted }
|
|
1878
|
+
...permitted === void 0 ? {} : { permitted },
|
|
1879
|
+
...ownSubject === void 0 ? {} : { subject: ownSubject }
|
|
1880
|
+
};
|
|
1881
|
+
const platformRoles = options.platformRoles === true ? platformRolesOf(manifest, schema, tenantScope, assignAny && listed("canAssign", tenantScope)) : void 0;
|
|
1882
|
+
const extras = {
|
|
1883
|
+
...platformRoles === void 0 ? {} : { platformRoles },
|
|
1884
|
+
...options.personas === void 0 || options.personas.length === 0 ? {} : { personas: options.personas }
|
|
1843
1885
|
};
|
|
1844
1886
|
const operations = catalog === void 0 ? {} : operationsOf(catalog);
|
|
1845
1887
|
const delegated = delegatedScopes(catalog);
|
|
@@ -1869,6 +1911,7 @@ function authorizationProvider(options) {
|
|
|
1869
1911
|
...tenants ? { tenant: disabledRow(tenants) } : {}
|
|
1870
1912
|
} } : {},
|
|
1871
1913
|
...roleSources.length > 0 ? { roleSources } : {},
|
|
1914
|
+
...extras,
|
|
1872
1915
|
...Object.keys(operations).length > 0 ? { operations } : {},
|
|
1873
1916
|
...Object.keys(delegated).length > 0 ? { delegation: { scopes: delegated } } : {},
|
|
1874
1917
|
decidingColumns: manifest.decidingColumns,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { r as withApp } from "./app-DIvM65Mv.js";
|
|
3
|
-
import { t as composeWraps } from "./wrap-
|
|
3
|
+
import { t as composeWraps } from "./wrap-C5PWzgkq.js";
|
|
4
4
|
import { t as instanceOptions } from "./instance-options-URVwqpMW.js";
|
|
5
5
|
import { n as tenantScope } from "./adapter-context-OHikyRqV.js";
|
|
6
|
-
import { t as createPermDock } from "./create-
|
|
7
|
-
import { h as invalidSignatureResponse } from "./evaluations-
|
|
6
|
+
import { t as createPermDock } from "./create-BRr7Gu7N.js";
|
|
7
|
+
import { h as invalidSignatureResponse } from "./evaluations-Bj5xw0EM.js";
|
|
8
8
|
//#region src/server/bind.ts
|
|
9
9
|
/**
|
|
10
10
|
* The server kernel with the subject and actor callbacks reading the context
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Q as Intent, xr as Subject } from "./policy-types-
|
|
2
|
-
import { m as ApprovalStore } from "./types-
|
|
3
|
-
import { t as InstanceOptions } from "./instance-options-
|
|
1
|
+
import { Q as Intent, xr as Subject } from "./policy-types-CCBrL7me.js";
|
|
2
|
+
import { m as ApprovalStore } from "./types-CAp7UGiB.js";
|
|
3
|
+
import { t as InstanceOptions } from "./instance-options-BDHB3qBG.js";
|
|
4
4
|
import { t as RequestContext } from "./request-context-C2_1lchh.js";
|
|
5
|
-
import { n as PermDockWrap } from "./wrap-
|
|
6
|
-
import { o as OtelWrap } from "./types-
|
|
7
|
-
import { r as PdpFactory } from "./types-
|
|
8
|
-
import { S as TenantOption, _ as WebBotAuthVerifier, t as DeniedResponse } from "./server-types
|
|
5
|
+
import { n as PermDockWrap } from "./wrap-CVBPIuEs.js";
|
|
6
|
+
import { o as OtelWrap } from "./types-CXUwgZ3d.js";
|
|
7
|
+
import { r as PdpFactory } from "./types-Cc68_zqR.js";
|
|
8
|
+
import { S as TenantOption, _ as WebBotAuthVerifier, t as DeniedResponse } from "./server-types-CtJSDhOv.js";
|
|
9
9
|
//#region src/server/bind.d.ts
|
|
10
10
|
/**
|
|
11
11
|
* The options of every framework adapter; `TContext` is what its callbacks
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as statusProblem } from "./problem-details-CLDgX1KV.js";
|
|
2
|
-
import { l as problemResponse } from "./problem-
|
|
2
|
+
import { l as problemResponse } from "./problem-CPB8kqk7.js";
|
|
3
3
|
import { t as MAX_BODY_BYTES } from "./body-text-DQhcmqdY.js";
|
|
4
4
|
//#region src/server/body.ts
|
|
5
5
|
/** The 413 Problem Details for a body over `maxBytes`. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { t as getPermDock } from "./permdock-
|
|
2
|
+
import { t as getPermDock } from "./permdock-HfTF99xX.js";
|
|
3
3
|
import { t as instanceOptions } from "./instance-options-URVwqpMW.js";
|
|
4
4
|
//#region src/core/build-instance.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _t as TokenSigner, qt as Instant, yr as Principal } from "./policy-types-
|
|
1
|
+
import { _t as TokenSigner, qt as Instant, yr as Principal } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { E as PermissionTree, w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
3
|
//#region src/core/capability.d.ts
|
|
4
4
|
/**
|
|
@@ -16,7 +16,7 @@ const casbinImport = defineLeaf({
|
|
|
16
16
|
...outFlag
|
|
17
17
|
},
|
|
18
18
|
async run(ctx, { flags }) {
|
|
19
|
-
const { runCasbinImport } = await import("./casbin-
|
|
19
|
+
const { runCasbinImport } = await import("./casbin-Dg5N0Gfa.js");
|
|
20
20
|
return runCasbinImport({
|
|
21
21
|
cwd: ctx.cwd,
|
|
22
22
|
model: given(flags.model),
|