permdock 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a2a/index.d.ts +4 -4
- package/dist/a2a/index.js +4 -4
- package/dist/{adoption-scan-_bHLMnVQ.js → adoption-scan-CNoE5yBA.js} +1 -1
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +3 -3
- package/dist/ai-sdk/index.js +2 -2
- package/dist/app/index.d.ts +6 -6
- package/dist/app/index.js +4 -4
- package/dist/{approval-normalize-DNLW0zOM.js → approval-normalize-KfhzpD93.js} +1 -1
- package/dist/{approval-policies-UnDSxT__.d.ts → approval-policies-D7moEfTM.d.ts} +1 -1
- package/dist/{approval-prompt-2hTqo6IM.d.ts → approval-prompt-DtfKSH-8.d.ts} +1 -1
- package/dist/approvals/index.d.ts +3 -3
- package/dist/approvals/index.js +3 -3
- package/dist/{approvals-B_sn4Wrn.js → approvals-BfzI8Foe.js} +5 -5
- package/dist/{arazzo-BXD-VJU_.js → arazzo-4rMFOHbu.js} +1 -1
- package/dist/{arazzo-Ct0PGblq.js → arazzo-rsYPFgga.js} +2 -2
- package/dist/astro/index.d.ts +4 -4
- package/dist/astro/index.js +2 -2
- package/dist/{audience-5Xx1hdIv.js → audience-N2BqOvES.js} +1 -1
- package/dist/authzen/index.d.ts +5 -5
- package/dist/authzen/index.js +3 -3
- package/dist/{automation-B20_8UoT.d.ts → automation-CrGcfIZn.d.ts} +1 -1
- package/dist/better-auth/index.d.ts +1 -1
- package/dist/better-auth/index.js +1 -1
- package/dist/better-supabase/index.d.ts +35 -10
- package/dist/better-supabase/index.js +70 -21
- package/dist/{bind-B4Z0U2Gr.js → bind-Cx10JuJ-.js} +3 -3
- package/dist/{bind-CnOMjazH.d.ts → bind-N5jf6kjk.d.ts} +7 -7
- package/dist/{body-B3ylkmmE.js → body-Cy9S8zhw.js} +1 -1
- package/dist/{build-instance-B0vsViF5.js → build-instance-BDGzsGcn.js} +1 -1
- package/dist/{capability-YkRMUAsF.d.ts → capability-mLbd3KZ0.d.ts} +1 -1
- package/dist/{casbin-imBS3UIf.js → casbin-CjUT-wqV.js} +1 -1
- package/dist/{casbin-D5evU3lX.js → casbin-Dg5N0Gfa.js} +1 -1
- package/dist/catalog/index.d.ts +4 -4
- package/dist/catalog/index.js +5 -5
- package/dist/{catalog-Y4CjN8NA.js → catalog-BJu0A15r.js} +2 -2
- package/dist/{catalog-CoyKnU5c.js → catalog-CgA6-DQA.js} +1 -1
- package/dist/catalog-DqYnQz8U.js +1 -0
- package/dist/{catalog-doc-Zi0jRpyH.js → catalog-doc-BoSOQRXT.js} +2 -2
- package/dist/{challenge-B__LcNve.js → challenge-DVw1SrH9.js} +1 -1
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +3 -3
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +1 -1
- package/dist/clerk/index.d.ts +2 -2
- package/dist/cli/bin.js +1 -1
- package/dist/cli/index.d.ts +4 -4
- package/dist/cli/index.js +2 -2
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +2 -2
- package/dist/{cloud-DWCeStPH.js → cloud-Blw4AaQv.js} +2 -2
- package/dist/{codemod-BaPmaCYQ.js → codemod-BFFXaS-S.js} +1 -1
- package/dist/{codemod-B7QKJ_ak.js → codemod-ByRUKVp-.js} +2 -2
- package/dist/{collect-ScSG05VJ.js → collect-COqPRz6O.js} +2 -2
- package/dist/collect-CjFczu8a.js +1 -0
- package/dist/{collect-Cr71JA7z.js → collect-D3ToPa6Z.js} +1 -1
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-DC-BrhH1.d.ts → compile-DSwZUJmL.d.ts} +2 -2
- package/dist/{completion-DOUMyCwa.js → completion-BW53byZN.js} +1 -1
- package/dist/{config-DRp-E8Ly.js → config-B0qti4jI.js} +1 -1
- package/dist/{config-report-Bh_nLdAE.js → config-report-DgMqeeK6.js} +2 -2
- package/dist/{context-Cem4QafV.js → context-KrAhRY22.js} +2 -2
- package/dist/convex/index.d.ts +4 -4
- package/dist/convex/index.js +1 -1
- package/dist/{core-CUjhfz0W.js → core-DMQsq2Gv.js} +5 -5
- package/dist/{core-D2JNg5jA.d.ts → core-KsoqXWhf.d.ts} +2 -2
- package/dist/{create-BsL5lCWR.js → create-BRr7Gu7N.js} +6 -6
- package/dist/{create-oMCcZV4X.d.ts → create-ChK8bpCK.d.ts} +7 -7
- package/dist/{create-CPDSbK1a.d.ts → create-DGFv7Dje.d.ts} +4 -4
- package/dist/{create-BJ2_8NDO.js → create-bYkJ4-tg.js} +3 -3
- package/dist/{create-B2tdOygC.d.ts → create-goT32QIN.d.ts} +6 -6
- package/dist/{credential-Bap3HClV.js → credential-DrVrRL7z.js} +2 -2
- package/dist/{credentials-BXV0oz56.js → credentials-UwTE2wCW.js} +1 -1
- package/dist/{credentials-DPX140fN.d.ts → credentials-fqa_Xzzh.d.ts} +2 -2
- package/dist/{condition-evaluate-bVVRSdzq.js → delegation-CrdqnesZ.js} +123 -156
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-BXQkWU7d.d.ts → denied-text-BTMxIn5W.d.ts} +1 -1
- package/dist/{describe-DVobr5FX.d.ts → describe-CazEjtOH.d.ts} +1 -1
- package/dist/{diff-Jc_kbDz-.js → diff-BkuW_5dK.js} +1 -1
- package/dist/{diff-BR9JArxz.js → diff-DLcsCeVo.js} +3 -3
- package/dist/{doctor-DhqSiPkq.js → doctor-Jk2Ifezw.js} +2 -2
- package/dist/{doctor-BBMW5ZT_.js → doctor-oD08zL1e.js} +37 -19
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/elysia/index.d.ts +4 -4
- package/dist/elysia/index.js +3 -3
- package/dist/{errors-D_JIQJYb.d.ts → errors-CXxQwtbZ.d.ts} +1 -1
- package/dist/{evaluate-B5yZHmts.js → evaluate-_JdlbJ32.js} +11 -8
- package/dist/{evaluations-BzTDWO4m.js → evaluations-Bj5xw0EM.js} +3 -3
- package/dist/{evaluations-DQYfh4Jh.d.ts → evaluations-DcUW5VkX.d.ts} +3 -3
- package/dist/evaluator-BvRk9kiK.js +0 -0
- package/dist/evaluator-eager-DvmrpdZt.js +9 -0
- package/dist/evaluator-mHAoYEkk.js +2 -0
- package/dist/eve/index.d.ts +4 -4
- package/dist/eve/index.js +2 -2
- package/dist/express/index.d.ts +4 -4
- package/dist/express/index.js +3 -3
- package/dist/fastify/index.d.ts +4 -4
- package/dist/fastify/index.js +3 -3
- package/dist/{fetch-adapter-MoYZ-vF5.js → fetch-adapter-CAA3VJMX.js} +3 -3
- package/dist/{fetch-adapter-DxqsIXSO.d.ts → fetch-adapter-eQ-mdk8n.d.ts} +2 -2
- package/dist/{fields-CVyOk-f1.js → fields-B17OWcPx.js} +1 -1
- package/dist/fields-DlKwZYiy.js +26 -0
- package/dist/from-snapshot-CdGYjHUg.js +153 -0
- package/dist/{gen-WdycZ_-b.js → gen-BwcwwLok.js} +3 -3
- package/dist/{gen-DXXoFjyf.js → gen-D4ulqsYR.js} +1 -1
- package/dist/grantee-OG4klcNr.js +110 -0
- package/dist/{grantee-match-8J2y60MF.js → grantee-match-CPQ9zV-H.js} +1 -1
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +3 -3
- package/dist/{helpers-DzBIfL1N.js → helpers-CO2hDpBU.js} +1 -1
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +3 -3
- package/dist/{hosted-DXq1plaP.d.ts → hosted-BUCpV8-u.d.ts} +1 -1
- package/dist/{hosted-C5I2TSXm.js → hosted-cPDyrlsQ.js} +5 -4
- package/dist/{import-CvXswHDy.js → import-B2jgnNS0.js} +1 -1
- package/dist/{import-BE5sDazm.js → import-BsrnU4BF.js} +1 -1
- package/dist/{index-C-R8lBPb.d.ts → index-BXS29UnX.d.ts} +1 -1
- package/dist/{index-BcS8c_2S.d.ts → index-CvKGALWb.d.ts} +4 -4
- package/dist/{index-BdZpqhJK.d.ts → index-CxA-ygwc.d.ts} +2 -2
- package/dist/{index-Cjfa1Uwr.d.ts → index-DD2FBFdm.d.ts} +10 -8
- package/dist/{index-iIsqXFVu.d.ts → index-DQCBzEhO.d.ts} +4 -4
- package/dist/{index-C_8uxAlv.d.ts → index-DYAJ9JX1.d.ts} +4 -4
- package/dist/index.d.ts +16 -16
- package/dist/index.js +21 -18
- package/dist/{init-CqGHcvyR.js → init-Baq0yYfu.js} +1 -1
- package/dist/{init-B_S8Xdz1.js → init-Cik6ITgM.js} +3 -3
- package/dist/{instance-options-C6gEDOts.d.ts → instance-options-BDHB3qBG.d.ts} +1 -1
- package/dist/{instance-snapshot-D_dGTq--.js → instance-snapshot-LPNBG9np.js} +67 -8
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-NmxiWII2.js → kernel-BY3rVRs2.js} +8 -8
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{login-DoLxv1s5.js → login-CUboKh0f.js} +3 -3
- package/dist/{login-CzwlsBEO.js → login-CcBS1xkU.js} +1 -1
- package/dist/{manifest-BdzBobNK.js → manifest-BoCYBbQL.js} +1 -1
- package/dist/{manifest-B5yF3CIq.d.ts → manifest-C6eFl3Vo.d.ts} +1 -0
- package/dist/{manifest-BAf7cgRx.js → manifest-CIlVL-QT.js} +35 -35
- package/dist/{manifest-schema-CsFsYLF-.js → manifest-schema-svAkgqMc.js} +5 -1
- package/dist/{map-error-p4ROJ_26.js → map-error-BCdb2Nrp.js} +2 -2
- package/dist/may-use-D0_wNcgB.js +126 -0
- package/dist/mcp/index.d.ts +8 -8
- package/dist/mcp/index.js +5 -5
- package/dist/membership-filter-CfLdP_F9.js +68 -0
- package/dist/nest/index.d.ts +4 -4
- package/dist/nest/index.js +3 -3
- package/dist/next/index.d.ts +10 -10
- package/dist/next/index.js +6 -6
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +1 -1
- package/dist/node/index.d.ts +4 -4
- package/dist/node/index.js +2 -2
- package/dist/openai/index.d.ts +4 -4
- package/dist/openai/index.js +2 -2
- package/dist/openapi/index.d.ts +2 -2
- package/dist/{openapi-EmvKwuWj.js → openapi-DglIpD53.js} +2 -2
- package/dist/{openapi-DroBcLJZ.js → openapi-DobvXTF6.js} +2 -2
- package/dist/orpc/index.d.ts +5 -5
- package/dist/orpc/index.js +3 -3
- package/dist/otel/index.d.ts +3 -3
- package/dist/otel/index.js +1 -1
- package/dist/{output-CYgfpT6o.js → output-B81GJ6u6.js} +1 -1
- package/dist/{ownership-adPAsUwY.js → ownership-B7Ea-hUY.js} +3 -3
- package/dist/{parse-local-manifest-BaCqsqwC.d.ts → parse-local-manifest-DzZOzDsK.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +3 -3
- package/dist/{permdock-B5LyNVgn.js → permdock-HfTF99xX.js} +26 -15
- package/dist/{permdock-BaB-KQqn.d.ts → permdock-vD3mwLSm.d.ts} +3 -3
- package/dist/{permissions-COpRGKt7.js → permissions-CGYZqYsY.js} +2 -2
- package/dist/{policy-x8RBKW8d.d.ts → policy-B_cqFLHu.d.ts} +1 -1
- package/dist/{policy-wGzbAPQF.js → policy-BovcTojN.js} +5 -4
- package/dist/{policy-from-catalog-Cy103lsm.js → policy-from-catalog-lKL280I8.js} +7 -7
- package/dist/{policy-types-rNfz7t0M.d.ts → policy-types-CCBrL7me.d.ts} +14 -0
- package/dist/{postgrest-Cn0Res25.d.ts → postgrest-5WOO47Ud.d.ts} +2 -2
- package/dist/{powersync-BeI0VmEK.js → powersync-B6f4l8C1.js} +2 -2
- package/dist/{powersync-Dpa5AnnN.js → powersync-BUUqJfH2.js} +6 -6
- package/dist/powersync-D12Q6Chj.js +1 -0
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{protected-action-E7Sdt_Dt.js → protected-action-CdqR2-E2.js} +80 -12
- package/dist/{protected-action-C4aj1KjO.d.ts → protected-action-DGuJNiMA.d.ts} +20 -8
- package/dist/{provider-DKO9KHua.js → provider-6mpRZO1E.js} +21 -3
- package/dist/{provider-store-D4PU1my_.js → provider-store-BLd4UEmg.js} +4 -3
- package/dist/{provider-B-1DlOGM.d.ts → provider-yIM04TwN.d.ts} +1 -1
- package/dist/{pull-3tkn25ll.js → pull-4Yi8zYeU.js} +3 -3
- package/dist/pull-Dr6Bq5Jo.js +1 -0
- package/dist/{push-dMyKdlEm.js → push-Dv1nfFPr.js} +3 -3
- package/dist/{pushed-policy-P55cJNx5.d.ts → pushed-policy-B2ZSpnRY.d.ts} +1 -1
- package/dist/{pushed-policy-Bi5-il4C.js → pushed-policy-DJoyBZsd.js} +2 -2
- package/dist/react/index.d.ts +7 -7
- package/dist/react/index.js +4 -4
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +8 -8
- package/dist/react-native/index.js +7 -6
- package/dist/{replay-DKhFvt0L.d.ts → replay-CsErjiHt.d.ts} +1 -1
- package/dist/{request-context-5gl_oxO1.js → request-context-B_L4ev8L.js} +2 -2
- package/dist/resend/index.d.ts +4 -4
- package/dist/resend/index.js +2 -2
- package/dist/{resolve-names-BnGJU88N.js → resolve-names-SGcLjtFc.js} +10 -5
- package/dist/{rls-DIYSRnDZ.js → rls-Df9NEWD3.js} +1 -1
- package/dist/{rls-qrehUPf_.js → rls-hmwRIS3-.js} +11 -11
- package/dist/{role-builder-boQiUvfo.js → role-builder-BXdhhQcB.js} +5 -3
- package/dist/row-pair-DglMdRFh.js +34 -0
- package/dist/{rpc-BqRiVpbP.d.ts → rpc-D3St8vPO.d.ts} +1 -1
- package/dist/{rpc-Dhi55Whd.js → rpc-DFtputZ1.js} +1 -1
- package/dist/{run-oNqBe0gc.js → run-BXmJIjRA.js} +2 -2
- package/dist/run-DnzrDgU-.js +1 -0
- package/dist/{run-ticket-Dulj4RQk.d.ts → run-ticket-zfABczfh.d.ts} +2 -2
- package/dist/{saas-DABv6vjy.js → saas-DIThcxbn.js} +5 -5
- package/dist/{scan-BYXqcgON.js → scan-BrTSlc_5.js} +1 -1
- package/dist/{schema-Wf-SvlHG.js → schema-UOeI_LTB.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/server/index.d.ts +11 -11
- package/dist/server/index.js +5 -5
- package/dist/{server-types--_Hann81.d.ts → server-types-CtJSDhOv.d.ts} +8 -8
- package/dist/{sink-Cs6z34AX.d.ts → sink-BskpqwLl.d.ts} +2 -2
- package/dist/{skills-B9U465B7.js → skills-BTVeFptV.js} +1 -1
- package/dist/{skills-417bOj4o.js → skills-CAgWKbDR.js} +1 -1
- package/dist/{snapshot-C2j96x97.js → snapshot-BcHYtUIg.js} +57 -7
- package/dist/{snapshot-cache-Cc7VNabe.d.ts → snapshot-cache-BnXMcJbK.d.ts} +1 -1
- package/dist/snapshot-empty-BoPBFoB8.js +17 -0
- package/dist/snapshot-evaluate-CwYVSUgO.js +501 -0
- package/dist/snapshot-reads-DOsTYC82.js +66 -0
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid/index.js +2 -2
- package/dist/solid-start/index.d.ts +4 -4
- package/dist/solid-start/index.js +3 -3
- package/dist/{sources-BfTza0zT.d.ts → sources-DhCtO9G8.d.ts} +2 -2
- package/dist/{src-BG9YJM3Q.js → src-BZKQe1lr.js} +13 -12
- package/dist/ssf/index.d.ts +3 -3
- package/dist/ssf/index.js +2 -2
- package/dist/{standard-webhooks-CJBgfl7y.d.ts → standard-webhooks-kQDkIPj3.d.ts} +2 -2
- package/dist/{store-BpKH-pLm.js → store-DXO0aVgf.js} +2 -2
- package/dist/{store-DSyjHD5-.d.ts → store-core-CDabEiO9.d.ts} +27 -6
- package/dist/{store-options-CXv6BHH6.js → store-options-COLWAd1K.js} +92 -12
- package/dist/{stores-BuqAHjp_.js → stores-DYxx75fk.js} +1 -1
- package/dist/{stores-C6-7TPTV.d.ts → stores-Mw_VAJ3B.d.ts} +5 -5
- package/dist/{subject-cache-d_Z4KAnm.d.ts → subject-cache-DrJGnRiV.d.ts} +1 -1
- package/dist/supabase/index.d.ts +7 -7
- package/dist/supabase/index.js +2 -2
- package/dist/supabase/middleware.d.ts +5 -5
- package/dist/supabase/middleware.js +5 -5
- package/dist/{supabase-DnazO6W4.js → supabase-BDr-fIHp.js} +1 -1
- package/dist/{supabase-D0J99yqL.js → supabase-Bt8rb-ah.js} +2 -2
- package/dist/{supabase-hook-Bh5syR9N.js → supabase-hook-Cb3UZpGC.js} +6 -5
- package/dist/supabase-hook-D1pwHu87.js +1 -0
- package/dist/{supautils-ChXR-4Or.js → supautils-CuR9rPsi.js} +8 -8
- package/dist/svelte/index.d.ts +5 -5
- package/dist/svelte/index.js +3 -3
- package/dist/svelte/runtime.d.ts +3 -3
- package/dist/svelte/runtime.js +1 -1
- package/dist/svelte/source.d.ts +5 -5
- package/dist/svelte/source.js +2 -2
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/sveltekit/index.js +2 -2
- package/dist/{tables-CbEOy2Ma.js → tables-Bl_ozD0k.js} +35 -13
- package/dist/tanstack-start/index.d.ts +4 -4
- package/dist/tanstack-start/index.js +2 -2
- package/dist/terminal/index.d.ts +5 -5
- package/dist/terminal/index.js +3 -3
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.d.ts +4 -4
- package/dist/testing/fixtures/index.js +7 -1
- package/dist/testing/index.d.ts +24 -24
- package/dist/testing/index.js +47 -41
- package/dist/testing/saas/index.d.ts +3 -3
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +5 -5
- package/dist/trpc/index.js +3 -3
- package/dist/{type-helpers-iXJEIDe7.d.ts → type-helpers-fQdBvtU0.d.ts} +1 -1
- package/dist/{types-BpxdxaRD.d.ts → types-BSGrzDPi.d.ts} +4 -4
- package/dist/{types-ZfjQB0KC.d.ts → types-CAp7UGiB.d.ts} +1 -1
- package/dist/{types-CD1qmxdx.d.ts → types-CErg7ft6.d.ts} +3 -3
- package/dist/{types-_pi9kxS2.d.ts → types-CXUwgZ3d.d.ts} +2 -2
- package/dist/{types-C_a44wSr.d.ts → types-Cc68_zqR.d.ts} +2 -2
- package/dist/{types-Cq2rvv-C.d.ts → types-CdXM6qPc.d.ts} +2 -2
- package/dist/{types-BSNZMp5b.d.ts → types-ChYCRn7Y.d.ts} +1 -1
- package/dist/{types-CuDXvyIT.d.ts → types-DDlaFDM3.d.ts} +4 -4
- package/dist/{types-NikV1pND.d.ts → types-DM0o1YyJ.d.ts} +4 -4
- package/dist/{types-B9F0EZAF.d.ts → types-DyA4Loy4.d.ts} +3 -3
- package/dist/{types-CS1DI_Ke.d.ts → types-JmB6unT6.d.ts} +1 -1
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-0wsl83uw.js → usage-B6sQwycY.js} +4 -4
- package/dist/{usage-Bl-BkXEq.js → usage-CNkKk27O.js} +1 -1
- package/dist/usage-Cem1FOeJ.js +1 -0
- package/dist/{validation-error-DLAYFlkr.d.ts → validation-error-BE8bpmhR.d.ts} +1 -1
- package/dist/{validity-Buc7w8E9.js → validity-IcjQSR7I.js} +1 -26
- package/dist/{verify-BSLotSa0.js → verify-OtU4yCzg.js} +11 -11
- package/dist/{version-sources-BC3hf2ME.js → version-sources-BZ7V6Z8Z.js} +1 -1
- package/dist/{grantee-Dke-9rd1.js → vocabulary-BuYFWeCU.js} +1 -107
- package/dist/vue/index.d.ts +5 -5
- package/dist/vue/index.js +2 -2
- package/dist/{waiter-cbK1CBhT.d.ts → waiter-LdnPaBJE.d.ts} +2 -2
- package/dist/watch-B8F7Wgdy.js +1 -0
- package/dist/{watch-BigZ260i.js → watch-CR2ZIT_5.js} +1 -1
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/{who-can-CjfMP9a4.js → who-can-DcrHB6ya.js} +2 -2
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +2 -2
- package/dist/workflow-sdk/index.d.ts +4 -4
- package/dist/{wrap-B-k2qHJx.d.ts → wrap-CVBPIuEs.d.ts} +2 -2
- package/package.json +1 -1
- package/schemas/supabase-manifest-v1.json +7 -1
- package/skills/permdock-wire/references/adapters.md +2 -0
- package/dist/catalog-C462QC3A.js +0 -1
- package/dist/collect-W9i7REKT.js +0 -1
- package/dist/from-snapshot-oR_N97dM.js +0 -927
- package/dist/powersync-BdoR7nwS.js +0 -1
- package/dist/pull-D90HqWNP.js +0 -1
- package/dist/run-elFdnSZx.js +0 -1
- package/dist/supabase-hook-CVAenq-w.js +0 -1
- package/dist/usage-CmyGbo4e.js +0 -1
- package/dist/watch-CHURMgrv.js +0 -1
- package/dist/{connection-QFsv-kbh.js → connection-zoAgwdsD.js} +1 -1
- package/dist/{problem-BWP1l86g.js → problem-CPB8kqk7.js} +1 -1
- package/dist/{wrap-BKU5Arsu.js → wrap-C5PWzgkq.js} +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as actionRunner, t as actionApproval } from "./protected-action-OpOxtTsN.js";
|
|
2
2
|
import { 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";
|
|
3
|
-
import { n as storeOf } from "./store-options-
|
|
3
|
+
import { n as storeOf } from "./store-options-COLWAd1K.js";
|
|
4
4
|
import { a as PermDockUiContext, i as PermDockStoreContext, r as PermDockSnapshotPromiseContext } from "./live-options-BBIT68le.js";
|
|
5
5
|
import { Suspense, use, useEffect, useLayoutEffect, useMemo, useState, useSyncExternalStore } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -12,10 +12,29 @@ function useStore() {
|
|
|
12
12
|
if (pending !== null) store.adopt(use(pending), pending);
|
|
13
13
|
return store;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* The store's current instance without the evaluator: memberships, tenants,
|
|
17
|
+
* roles and the subject read from the snapshot, every check denies until
|
|
18
|
+
* `usePermDock` loads the evaluator.
|
|
19
|
+
*/
|
|
20
|
+
function useSnapshotPermDock() {
|
|
16
21
|
const store = useStore();
|
|
17
22
|
return useSyncExternalStore((listener) => store.subscribe(listener), () => store.get(), () => store.serverGet());
|
|
18
23
|
}
|
|
24
|
+
/** Suspends the nearest boundary until the store's evaluator has loaded. */
|
|
25
|
+
function useEvaluator(store, needed = true) {
|
|
26
|
+
const loading = needed ? store.loading() : void 0;
|
|
27
|
+
if (loading !== void 0) use(loading);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The instance with every check. It loads the evaluator on first use and
|
|
31
|
+
* suspends the nearest boundary while it does.
|
|
32
|
+
*/
|
|
33
|
+
function usePermDock() {
|
|
34
|
+
const permdock = useSnapshotPermDock();
|
|
35
|
+
useEvaluator(storeOf(permdock));
|
|
36
|
+
return permdock;
|
|
37
|
+
}
|
|
19
38
|
/**
|
|
20
39
|
* Adds refresh triggers to the nearest provider while the component is mounted.
|
|
21
40
|
* Use it where the provider's own `refreshOn` cannot be set, such as below
|
|
@@ -27,6 +46,27 @@ function useRefreshOn(triggers) {
|
|
|
27
46
|
useEffect(() => store.refreshOn(triggers), [store, triggers]);
|
|
28
47
|
}
|
|
29
48
|
function usePermission(permission, data) {
|
|
49
|
+
const permdock = useSnapshotPermDock();
|
|
50
|
+
const store = storeOf(permdock);
|
|
51
|
+
useEvaluator(store, data !== void 0 || store.quick(permission) === void 0);
|
|
52
|
+
return useMemo(() => {
|
|
53
|
+
const current = storeOf(permdock);
|
|
54
|
+
if (data !== void 0) return current.permissionState(permission, data);
|
|
55
|
+
const quick = current.quick(permission);
|
|
56
|
+
if (quick !== void 0) return quick;
|
|
57
|
+
const { allowed, status, decision } = current.permissionState(permission);
|
|
58
|
+
return {
|
|
59
|
+
allowed,
|
|
60
|
+
status,
|
|
61
|
+
outcome: decision.outcome
|
|
62
|
+
};
|
|
63
|
+
}, [
|
|
64
|
+
permdock,
|
|
65
|
+
permission,
|
|
66
|
+
data
|
|
67
|
+
]);
|
|
68
|
+
}
|
|
69
|
+
function useDecision(permission, data) {
|
|
30
70
|
const permdock = usePermDock();
|
|
31
71
|
return useMemo(() => storeOf(permdock).permissionState(permission, data), [
|
|
32
72
|
permdock,
|
|
@@ -51,15 +91,15 @@ function useFilter(permission, rows) {
|
|
|
51
91
|
]);
|
|
52
92
|
}
|
|
53
93
|
function useTenant() {
|
|
54
|
-
const permdock =
|
|
94
|
+
const permdock = useSnapshotPermDock();
|
|
55
95
|
return useMemo(() => tenantView(permdock), [permdock]);
|
|
56
96
|
}
|
|
57
97
|
function useMemberships() {
|
|
58
|
-
const permdock =
|
|
98
|
+
const permdock = useSnapshotPermDock();
|
|
59
99
|
return useMemo(() => permdock.memberships(), [permdock]);
|
|
60
100
|
}
|
|
61
101
|
function useRoles(options = {}) {
|
|
62
|
-
const permdock =
|
|
102
|
+
const permdock = useSnapshotPermDock();
|
|
63
103
|
const { tenant, scope, id } = options;
|
|
64
104
|
return useMemo(() => rolesView(permdock, {
|
|
65
105
|
...tenant === void 0 ? {} : { tenant },
|
|
@@ -73,16 +113,16 @@ function useRoles(options = {}) {
|
|
|
73
113
|
]);
|
|
74
114
|
}
|
|
75
115
|
function useAssignableRoles() {
|
|
76
|
-
const permdock =
|
|
116
|
+
const permdock = useSnapshotPermDock();
|
|
77
117
|
return useMemo(() => permdock.assignableRoles(), [permdock]);
|
|
78
118
|
}
|
|
79
119
|
function useAssignablePermissions(options = {}) {
|
|
80
|
-
const permdock =
|
|
120
|
+
const permdock = useSnapshotPermDock();
|
|
81
121
|
const { tenant } = options;
|
|
82
122
|
return useMemo(() => permdock.assignablePermissions(tenant === void 0 ? {} : { tenant }), [permdock, tenant]);
|
|
83
123
|
}
|
|
84
124
|
function useSubject() {
|
|
85
|
-
const permdock =
|
|
125
|
+
const permdock = useSnapshotPermDock();
|
|
86
126
|
return useMemo(() => subjectView(permdock), [permdock]);
|
|
87
127
|
}
|
|
88
128
|
/** `describe` with the provider's `messages`; a call's own `messages` win. */
|
|
@@ -91,10 +131,10 @@ function useDescribe() {
|
|
|
91
131
|
return useMemo(() => describeWith(messages), [messages]);
|
|
92
132
|
}
|
|
93
133
|
function useApproval(decision) {
|
|
94
|
-
return approvalHandle(storeOf(
|
|
134
|
+
return approvalHandle(storeOf(useSnapshotPermDock()), decision);
|
|
95
135
|
}
|
|
96
136
|
function useGate(permission, data, options = {}) {
|
|
97
|
-
const state =
|
|
137
|
+
const state = useDecision(permission, data);
|
|
98
138
|
const describeDecision = useDescribe();
|
|
99
139
|
const mode = options.mode ?? "disable";
|
|
100
140
|
return useMemo(() => gateView(state, (decision) => describeDecision(decision, { permission }), mode), [
|
|
@@ -116,9 +156,37 @@ function Protected(props) {
|
|
|
116
156
|
});
|
|
117
157
|
}
|
|
118
158
|
function Guard(props) {
|
|
159
|
+
const { defaults } = use(PermDockUiContext);
|
|
160
|
+
const store = storeOf(useSnapshotPermDock());
|
|
161
|
+
const quick = props.data === void 0 && props.tenant === void 0 ? store.quick(props.permission) : void 0;
|
|
162
|
+
if (quick !== void 0) {
|
|
163
|
+
const fast = quickContent(quick, props, defaults);
|
|
164
|
+
if (fast !== void 0) return fast;
|
|
165
|
+
}
|
|
166
|
+
return /* @__PURE__ */ jsx(DecidedGuard, { ...props });
|
|
167
|
+
}
|
|
168
|
+
function isRender(value) {
|
|
169
|
+
return typeof value === "function";
|
|
170
|
+
}
|
|
171
|
+
function quickContent(quick, props, defaults) {
|
|
172
|
+
if (quick.status === "pending") return slotContent("pending", props, defaults) ?? null;
|
|
173
|
+
switch (quick.outcome) {
|
|
174
|
+
case "granted": return isRender(props.children) ? void 0 : props.children ?? null;
|
|
175
|
+
case "approval-required": {
|
|
176
|
+
const content = slotContent("approval", props, defaults);
|
|
177
|
+
return isRender(content) ? void 0 : content ?? null;
|
|
178
|
+
}
|
|
179
|
+
case "denied": {
|
|
180
|
+
const content = slotContent("denied", props, defaults);
|
|
181
|
+
return isRender(content) ? void 0 : content ?? null;
|
|
182
|
+
}
|
|
183
|
+
default: return quick.outcome;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
function DecidedGuard(props) {
|
|
119
187
|
const { defaults } = use(PermDockUiContext);
|
|
120
188
|
const root = usePermDock();
|
|
121
|
-
const local =
|
|
189
|
+
const local = useDecision(props.permission, props.data);
|
|
122
190
|
const scoped = useMemo(() => scopedTenant(root, props.tenant), [root, props.tenant]);
|
|
123
191
|
const view = protectedView(local, root, props.permission, props.data, scoped);
|
|
124
192
|
switch (view.slot) {
|
|
@@ -170,4 +238,4 @@ function useProtectedAction(action, permission, data, options = {}) {
|
|
|
170
238
|
]);
|
|
171
239
|
}
|
|
172
240
|
//#endregion
|
|
173
|
-
export { useAssignableRoles as a,
|
|
241
|
+
export { useTenant as _, useAssignableRoles as a, useFilter as c, usePermDock as d, usePermission as f, useSubject as g, useRoles as h, useAssignablePermissions as i, useGate as l, useRefreshOn as m, Protected as n, useDecision as o, usePermissions as p, useApproval as r, useDescribe as s, useProtectedAction as t, useMemberships as u };
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { N as PolicyVocabulary, Yn as Decision, vr as Membership } from "./policy-types-
|
|
1
|
+
import { N as PolicyVocabulary, Yn as Decision, vr as Membership } 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 { r as DescribeOptions, t as DecisionDescription } from "./describe-
|
|
5
|
-
import { _ as
|
|
3
|
+
import { d as UncheckedData, s as RowData } from "./permdock-vD3mwLSm.js";
|
|
4
|
+
import { r as DescribeOptions, t as DecisionDescription } from "./describe-CazEjtOH.js";
|
|
5
|
+
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, l as GateView, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView } from "./store-core-CDabEiO9.js";
|
|
6
6
|
import { r as RefreshTrigger } from "./refresh-on-L9UOwATg.js";
|
|
7
|
-
import { r as ProtectedProps } from "./types-
|
|
7
|
+
import { r as ProtectedProps } from "./types-BSGrzDPi.js";
|
|
8
8
|
import { ReactNode } from "react";
|
|
9
9
|
//#region src/react/hooks.d.ts
|
|
10
|
+
/**
|
|
11
|
+
* The instance with every check. It loads the evaluator on first use and
|
|
12
|
+
* suspends the nearest boundary while it does.
|
|
13
|
+
*/
|
|
10
14
|
declare function usePermDock<V extends PolicyVocabulary = PolicyVocabulary>(): ClientPermDock<V>;
|
|
11
15
|
/**
|
|
12
16
|
* Adds refresh triggers to the nearest provider while the component is mounted.
|
|
@@ -15,8 +19,16 @@ declare function usePermDock<V extends PolicyVocabulary = PolicyVocabulary>(): C
|
|
|
15
19
|
* client. Keep `triggers` stable (module scope); a new array resubscribes.
|
|
16
20
|
*/
|
|
17
21
|
declare function useRefreshOn(triggers: readonly RefreshTrigger[]): void;
|
|
18
|
-
declare function usePermission
|
|
19
|
-
declare function usePermission<
|
|
22
|
+
declare function usePermission(permission: Permission): PermissionOutcome;
|
|
23
|
+
declare function usePermission<D>(permission: Permission, data: UncheckedData<D>): PermissionState;
|
|
24
|
+
declare function usePermission<P extends Permission>(permission: P, data: RowData<P>): PermissionState;
|
|
25
|
+
/**
|
|
26
|
+
* The check with its `Decision`: denial reasons, alternatives and the approval
|
|
27
|
+
* token. Loads the evaluator on first use; `usePermission(permission)` does
|
|
28
|
+
* not.
|
|
29
|
+
*/
|
|
30
|
+
declare function useDecision<D>(permission: Permission, data?: UncheckedData<D>): PermissionState;
|
|
31
|
+
declare function useDecision<P extends Permission>(permission: P, data?: RowData<P>): PermissionState;
|
|
20
32
|
declare function usePermissions(permissions: readonly Permission[], data?: unknown): PermissionSet;
|
|
21
33
|
declare function useFilter<T>(permission: Permission<string, NoInfer<T>, "instance">, rows: readonly T[]): FilterResult<T>;
|
|
22
34
|
declare function useTenant(): TenantView;
|
|
@@ -61,4 +73,4 @@ declare function useProtectedAction<T, P extends Permission>(action: ProtectedAc
|
|
|
61
73
|
readonly mode?: GateMode;
|
|
62
74
|
}): ProtectedActionHandle<T>;
|
|
63
75
|
//#endregion
|
|
64
|
-
export { useAssignableRoles as a,
|
|
76
|
+
export { useTenant as _, useAssignableRoles as a, useFilter as c, usePermDock as d, usePermission as f, useSubject as g, useRoles as h, useAssignablePermissions as i, useGate as l, useRefreshOn as m, Protected as n, useDecision as o, usePermissions as p, useApproval as r, useDescribe as s, useProtectedAction as t, useMemberships as u };
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { t as emptySnapshot } from "./
|
|
3
|
-
import { t as adapterStore } from "./store-options-
|
|
2
|
+
import { t as emptySnapshot } from "./snapshot-empty-BoPBFoB8.js";
|
|
3
|
+
import { t as adapterStore } from "./store-options-COLWAd1K.js";
|
|
4
4
|
import { a as PermDockUiContext, i as PermDockStoreContext, n as useKeyed, r as PermDockSnapshotPromiseContext, t as useLiveOptions } from "./live-options-BBIT68le.js";
|
|
5
5
|
import { useLayoutEffect, useMemo } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
//#region src/client/evaluator-lazy.ts
|
|
8
|
+
const loaded = {};
|
|
9
|
+
/**
|
|
10
|
+
* Fetches the evaluator on first use. The `import()` is a chunk of its own: a
|
|
11
|
+
* page that only reads `typeLevel` answers never downloads it.
|
|
12
|
+
*/
|
|
13
|
+
function lazyEvaluator() {
|
|
14
|
+
return {
|
|
15
|
+
build: () => loaded.build,
|
|
16
|
+
load: () => {
|
|
17
|
+
loaded.promise ??= (async () => {
|
|
18
|
+
loaded.build = (await import("./evaluator-mHAoYEkk.js")).buildInstance;
|
|
19
|
+
})();
|
|
20
|
+
return loaded.promise;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
7
25
|
//#region src/react/provider.tsx
|
|
8
26
|
function PermDockProvider(props) {
|
|
9
27
|
const promise = props.snapshotPromise ?? null;
|
|
@@ -26,7 +44,7 @@ function PermDockProvider(props) {
|
|
|
26
44
|
onClear: live.onClear,
|
|
27
45
|
approvalInterval: props.approvalInterval,
|
|
28
46
|
refreshOn: props.refreshOn
|
|
29
|
-
}), props.snapshot ?? emptySnapshot()), [
|
|
47
|
+
}), props.snapshot ?? emptySnapshot(), lazyEvaluator()), [
|
|
30
48
|
props.snapshot,
|
|
31
49
|
props.endpoint,
|
|
32
50
|
props.snapshotUrl,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { t as emptySnapshot } from "./
|
|
3
|
-
import {
|
|
2
|
+
import { t as emptySnapshot } from "./snapshot-empty-BoPBFoB8.js";
|
|
3
|
+
import { t as eagerEvaluator } from "./evaluator-eager-DvmrpdZt.js";
|
|
4
|
+
import { l as isPromiseLike, t as adapterStore } from "./store-options-COLWAd1K.js";
|
|
4
5
|
//#region src/client/provider-store.ts
|
|
5
6
|
/**
|
|
6
7
|
* Store options that read `read()` on every request, so a rotated token, a new
|
|
@@ -36,7 +37,7 @@ function providerStore(options, read, snapshot) {
|
|
|
36
37
|
approvalInterval: options.approvalInterval,
|
|
37
38
|
refreshOn: options.refreshOn,
|
|
38
39
|
...liveOptions(read)
|
|
39
|
-
}), promised || snapshot === void 0 ? emptySnapshot() : snapshot);
|
|
40
|
+
}), promised || snapshot === void 0 ? emptySnapshot() : snapshot, eagerEvaluator);
|
|
40
41
|
if (promised) store.follow(snapshot);
|
|
41
42
|
return store;
|
|
42
43
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PermDockProviderProps } from "./types-
|
|
1
|
+
import { n as PermDockProviderProps } from "./types-BSGrzDPi.js";
|
|
2
2
|
import { ReactElement } from "react";
|
|
3
3
|
//#region src/react/provider.d.ts
|
|
4
4
|
declare function PermDockProvider(props: PermDockProviderProps): ReactElement;
|
|
@@ -3,11 +3,11 @@ import { t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
|
|
|
3
3
|
import { a as describeError } from "./errors-BhRkoNS7.js";
|
|
4
4
|
import { s as writeFileEnsuringDir } from "./files-BSjrtIHw.js";
|
|
5
5
|
import { s as cliVersion } from "./version-DMQ0dnN5.js";
|
|
6
|
-
import { o as formatCatalogJson } from "./catalog-doc-
|
|
6
|
+
import { o as formatCatalogJson } from "./catalog-doc-BoSOQRXT.js";
|
|
7
7
|
import { t as catalogPath } from "./catalog-path-CnI0XTFK.js";
|
|
8
|
-
import { n as parseSupabaseManifest } from "./manifest-
|
|
8
|
+
import { n as parseSupabaseManifest } from "./manifest-BoCYBbQL.js";
|
|
9
9
|
import { t as parseCatalog } from "./parse-CORUNcCo.js";
|
|
10
|
-
import { a as nonEmptyOr } from "./output-
|
|
10
|
+
import { a as nonEmptyOr } from "./output-B81GJ6u6.js";
|
|
11
11
|
import { t as POLICY_NOT_PUBLISHED } from "./problem-types-DSsRfONQ.js";
|
|
12
12
|
import { n as httpRequest, t as authFailure } from "./http-dptLQzPP.js";
|
|
13
13
|
import { l as cloudUrl, n as cliRuntime, o as readAuth } from "./auth-BxXHxWRy.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as runCloudPull } from "./pull-4Yi8zYeU.js";
|
|
@@ -4,10 +4,10 @@ import { t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
|
|
|
4
4
|
import { a as describeError, n as CliError } from "./errors-BhRkoNS7.js";
|
|
5
5
|
import { s as cliVersion } from "./version-DMQ0dnN5.js";
|
|
6
6
|
import { i as loadConfiguredPolicy } from "./load-C4p4VgwR.js";
|
|
7
|
-
import { n as parseSupabaseManifest } from "./manifest-
|
|
7
|
+
import { n as parseSupabaseManifest } from "./manifest-BoCYBbQL.js";
|
|
8
8
|
import { t as parseCatalog } from "./parse-CORUNcCo.js";
|
|
9
|
-
import { r as pushedPolicy } from "./pushed-policy-
|
|
10
|
-
import { n as runCatalog } from "./catalog-
|
|
9
|
+
import { r as pushedPolicy } from "./pushed-policy-DJoyBZsd.js";
|
|
10
|
+
import { n as runCatalog } from "./catalog-BJu0A15r.js";
|
|
11
11
|
import { n as httpRequest, t as authFailure } from "./http-dptLQzPP.js";
|
|
12
12
|
import { a as pushAuth, l as cloudUrl, n as cliRuntime, u as firstNonEmpty } from "./auth-BxXHxWRy.js";
|
|
13
13
|
import "./manifest-json-CAGzls-C.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as Policy, Er as Condition, In as Grantee, W as WireValidity, b as GrantMeta, f as BreakGlassSpec, in as SnapshotScope, qn as AppObligation, s as ApprovalRequirement, y as GrantLimit } from "./policy-types-
|
|
1
|
+
import { D as Policy, Er as Condition, In as Grantee, W as WireValidity, b as GrantMeta, f as BreakGlassSpec, in as SnapshotScope, qn as AppObligation, s as ApprovalRequirement, y as GrantLimit } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
|
|
3
3
|
//#region src/catalog/pushed-policy.d.ts
|
|
4
4
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
|
|
4
|
-
import { i as wireValidity } from "./validity-Buc7w8E9.js";
|
|
5
4
|
import { n as RFC3339_PATTERN } from "./time-nR1JesoH.js";
|
|
6
|
-
import {
|
|
5
|
+
import { i as wireValidity } from "./validity-IcjQSR7I.js";
|
|
6
|
+
import { n as snapshotScopes } from "./instance-snapshot-LPNBG9np.js";
|
|
7
7
|
import { n as copyJson, r as forbiddenKeyPath, t as checkSchema } from "./json-schema-BPGa-RjQ.js";
|
|
8
8
|
//#region src/catalog/pushed-policy.ts
|
|
9
9
|
const strings = {
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as requiredPlans } from "../errors-
|
|
2
|
-
import { i as describe } from "../describe-
|
|
3
|
-
import { _ as
|
|
1
|
+
import { c as requiredPlans } from "../errors-CXxQwtbZ.js";
|
|
2
|
+
import { i as describe } from "../describe-CazEjtOH.js";
|
|
3
|
+
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView, y as ActionResult } from "../store-core-CDabEiO9.js";
|
|
4
4
|
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";
|
|
5
|
-
import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-
|
|
5
|
+
import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-BSGrzDPi.js";
|
|
6
6
|
import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
|
|
7
|
-
import { a as useAssignableRoles, c as
|
|
8
|
-
import { t as PermDockProvider } from "../provider-
|
|
9
|
-
export { type ActionResult, type ApprovalHandle, type ApprovalState, type AuthzChangeRefresh, type ClientPermDock, type ClientStatus, type EventSourceRefreshOptions, type FilterResult, type GateMode, type GateView, type PermDockDefaults, PermDockProvider, type PermDockProviderProps, type PermissionSet, type PermissionState, Protected, type ProtectedAction, type ProtectedActionHandle, type ProtectedActionView, type ProtectedProps, type RefreshTrigger, type RolesOptions, type SubjectView, type TenantView, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
|
|
7
|
+
import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-DGuJNiMA.js";
|
|
8
|
+
import { t as PermDockProvider } from "../provider-yIM04TwN.js";
|
|
9
|
+
export { type ActionResult, type ApprovalHandle, type ApprovalState, type AuthzChangeRefresh, type ClientPermDock, type ClientStatus, type EventSourceRefreshOptions, type FilterResult, type GateMode, type GateView, type PermDockDefaults, PermDockProvider, type PermDockProviderProps, type PermissionOutcome, type PermissionSet, type PermissionState, Protected, type ProtectedAction, type ProtectedActionHandle, type ProtectedActionView, type ProtectedProps, type RefreshTrigger, type RolesOptions, type SubjectView, type TenantView, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
|
package/dist/react/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { r as requiredPlans } from "../problem-details-CLDgX1KV.js";
|
|
3
3
|
import { n as describe } from "../describe-BZAlPHxT.js";
|
|
4
4
|
import { r as approvalHeaders } from "../protected-action-OpOxtTsN.js";
|
|
5
|
-
import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
export { PermDockProvider, Protected, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
|
|
5
|
+
import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-COLWAd1K.js";
|
|
6
|
+
import { t as PermDockProvider } from "../provider-6mpRZO1E.js";
|
|
7
|
+
import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-CdqR2-E2.js";
|
|
8
|
+
export { PermDockProvider, Protected, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PermDockProvider } from "../provider-
|
|
1
|
+
import { t as PermDockProvider } from "../provider-yIM04TwN.js";
|
|
2
2
|
export { PermDockProvider };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { t as PermDockProvider } from "../provider-
|
|
2
|
+
export { t as PermDockProvider } from "../provider-6mpRZO1E.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { $t as LocalSnapshotRows, Qt as LocalSnapshotManifest, Xt as LocalRowColumn, Yt as LocalMembershipRows, Zt as LocalRowValue, en as Snapshot, pr as CustomRole, qt as Instant, ut as SnapshotSource, vr as Membership } from "../policy-types-
|
|
1
|
+
import { $t as LocalSnapshotRows, Qt as LocalSnapshotManifest, Xt as LocalRowColumn, Yt as LocalMembershipRows, Zt as LocalRowValue, en as Snapshot, pr as CustomRole, qt as Instant, ut as SnapshotSource, vr as Membership } from "../policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { c as requiredPlans } from "../errors-
|
|
4
|
-
import { i as describe } from "../describe-
|
|
5
|
-
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-
|
|
6
|
-
import { _ as
|
|
3
|
+
import { c as requiredPlans } from "../errors-CXxQwtbZ.js";
|
|
4
|
+
import { i as describe } from "../describe-CazEjtOH.js";
|
|
5
|
+
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-DzZOzDsK.js";
|
|
6
|
+
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, t as ClientStore, v as TenantView, y as ActionResult } from "../store-core-CDabEiO9.js";
|
|
7
7
|
import { i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, t as AuthzChangeRefresh } from "../refresh-on-L9UOwATg.js";
|
|
8
|
-
import { r as ProtectedProps, t as PermDockDefaults } from "../types-
|
|
8
|
+
import { r as ProtectedProps, t as PermDockDefaults } from "../types-BSGrzDPi.js";
|
|
9
9
|
import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
|
|
10
|
-
import { a as useAssignableRoles, c as
|
|
10
|
+
import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-DGuJNiMA.js";
|
|
11
11
|
import { n as RealtimeRefreshClient, t as RealtimeRefreshChannel } from "../client-JK504UCq.js";
|
|
12
|
-
import { a as SubscribeOnline, i as SubscribeForeground, n as ReactNativePermDockProviderProps, r as SnapshotStorage, t as NativeRevalidate } from "../types-
|
|
12
|
+
import { a as SubscribeOnline, i as SubscribeForeground, n as ReactNativePermDockProviderProps, r as SnapshotStorage, t as NativeRevalidate } from "../types-DM0o1YyJ.js";
|
|
13
13
|
import { ReactElement } from "react";
|
|
14
14
|
//#region src/react-native/guards.d.ts
|
|
15
15
|
/**
|
|
@@ -3,19 +3,20 @@ import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
|
|
|
3
3
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
4
4
|
import { r as requiredPlans } from "../problem-details-CLDgX1KV.js";
|
|
5
5
|
import { n as describe } from "../describe-BZAlPHxT.js";
|
|
6
|
-
import { r as heldRoleNames, t as emptySnapshot } from "../from-snapshot-oR_N97dM.js";
|
|
7
6
|
import { n as isThenable } from "../thenable-BNSM1U2R.js";
|
|
8
|
-
import { o as flattenGrantee } from "../grantee-
|
|
7
|
+
import { o as flattenGrantee } from "../grantee-OG4klcNr.js";
|
|
9
8
|
import { h as secondsAt, m as rfc3339 } from "../time-nR1JesoH.js";
|
|
10
9
|
import { d as scopeList, o as normalizeMemberships, p as tenantOf$1, s as resolveScope } from "../scopes-gdH__vDZ.js";
|
|
11
10
|
import { d as resolveActiveTenant, r as isMembershipExpired } from "../tenancy-BlxY5T0q.js";
|
|
12
|
-
import { a as
|
|
11
|
+
import { a as heldRoleNames, n as parseSnapshot, s as bindConditionRefs } from "../snapshot-BcHYtUIg.js";
|
|
13
12
|
import { t as byCodePoint } from "../compare-DTfyUunF.js";
|
|
13
|
+
import { t as emptySnapshot } from "../snapshot-empty-BoPBFoB8.js";
|
|
14
14
|
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-Ce2N-Opr.js";
|
|
15
15
|
import { r as approvalHeaders } from "../protected-action-OpOxtTsN.js";
|
|
16
|
-
import {
|
|
16
|
+
import { t as eagerEvaluator } from "../evaluator-eager-DvmrpdZt.js";
|
|
17
|
+
import { a as eventSourceRefresh, c as isJws, n as storeOf, r as authzChangeRefresh, t as adapterStore } from "../store-options-COLWAd1K.js";
|
|
17
18
|
import { a as PermDockUiContext, i as PermDockStoreContext, n as useKeyed, t as useLiveOptions } from "../live-options-BBIT68le.js";
|
|
18
|
-
import { a as useAssignableRoles, c as
|
|
19
|
+
import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-CdqR2-E2.js";
|
|
19
20
|
import { r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-Dbc-HDOS.js";
|
|
20
21
|
import { useEffect, useMemo, useRef } from "react";
|
|
21
22
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1064,7 +1065,7 @@ function nativeStore(options) {
|
|
|
1064
1065
|
onClear: options.onClear,
|
|
1065
1066
|
approvalInterval: options.approvalInterval,
|
|
1066
1067
|
refreshOn: options.refreshOn
|
|
1067
|
-
}), snapshot, {
|
|
1068
|
+
}), snapshot, eagerEvaluator, {
|
|
1068
1069
|
server: false,
|
|
1069
1070
|
stale: revalidates && (fromStorage !== void 0 || waiting),
|
|
1070
1071
|
onSnapshot: (next, nextTenant, raw) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as assertAppData } from "./app-data-UNNm07jV.js";
|
|
2
|
-
import { n as wrapPermDock } from "./wrap-
|
|
3
|
-
import { t as buildInstance } from "./build-instance-
|
|
2
|
+
import { n as wrapPermDock } from "./wrap-C5PWzgkq.js";
|
|
3
|
+
import { t as buildInstance } from "./build-instance-BDGzsGcn.js";
|
|
4
4
|
//#region src/core/request-context.ts
|
|
5
5
|
/**
|
|
6
6
|
* Errors an adapter raises around one instance (a `context` hook that threw, an
|
package/dist/resend/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { X as DecisionSink } from "../policy-types-
|
|
2
|
-
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-
|
|
3
|
-
import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-
|
|
4
|
-
import { l as ReplayStore } from "../types-
|
|
1
|
+
import { X as DecisionSink } from "../policy-types-CCBrL7me.js";
|
|
2
|
+
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-DtfKSH-8.js";
|
|
3
|
+
import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-DyA4Loy4.js";
|
|
4
|
+
import { l as ReplayStore } from "../types-CdXM6qPc.js";
|
|
5
5
|
//#region src/resend/approval-email.d.ts
|
|
6
6
|
type ApprovalEmailOptions = {
|
|
7
7
|
/**
|
package/dist/resend/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import { o as statusProblem } from "../problem-details-CLDgX1KV.js";
|
|
|
4
4
|
import { l as isRfc3339, p as nowSeconds } from "../time-nR1JesoH.js";
|
|
5
5
|
import { n as sha256, t as bytesToBase64Url } from "../sha256-C-4WXKIu.js";
|
|
6
6
|
import { t as deliveryEvent } from "../delivery-event-JioK5YbS.js";
|
|
7
|
-
import { l as problemResponse, o as methodNotAllowed } from "../problem-
|
|
7
|
+
import { l as problemResponse, o as methodNotAllowed } from "../problem-CPB8kqk7.js";
|
|
8
8
|
import { n as readBodyText } from "../body-text-DQhcmqdY.js";
|
|
9
|
-
import { t as bodyTooLarge } from "../body-
|
|
9
|
+
import { t as bodyTooLarge } from "../body-Cy9S8zhw.js";
|
|
10
10
|
import { n as approvalUrlFor } from "../approval-prompt-B8hQY69x.js";
|
|
11
11
|
import { i as isDeliveryTarget } from "../target-qdEAnnhU.js";
|
|
12
12
|
//#region src/resend/approval-email.ts
|
|
@@ -4,9 +4,9 @@ import { d as scopeList } from "./scopes-gdH__vDZ.js";
|
|
|
4
4
|
import { i as configError } from "./errors-BhRkoNS7.js";
|
|
5
5
|
import "./budget-BBCPDOGP.js";
|
|
6
6
|
import "./sources-C4vkzZJV.js";
|
|
7
|
-
import { A as quoteQualified, D as qualified, L as scopeTypeOf, O as quoteIdent } from "./shared-DfaIWvIJ.js";
|
|
8
|
-
import { C as permittedByPermissionHelper, Ct as scopeTable, U as globalRoleRows, _t as memberOfHelper, at as graphHelper, b as checkName, bt as permittedIdsHelper, c as graphPlan, dt as isTeamScope, gt as memberIdsHelper, i as tableNames, lt as hasPermittedUsers, ot as graphSqlName, pt as memberForHelper, u as holderSources, ut as inheritedRowsHelper, xt as restrictedHelper, y as PERMISSION_HELPERS, yt as permittedForHelper } from "./tables-
|
|
9
|
-
import { t as FIELD_VIEWS } from "./fields-
|
|
7
|
+
import { A as quoteQualified, D as qualified, I as idTypeOf, L as scopeTypeOf, O as quoteIdent } from "./shared-DfaIWvIJ.js";
|
|
8
|
+
import { C as permittedByPermissionHelper, Ct as scopeTable, U as globalRoleRows, _t as memberOfHelper, at as graphHelper, b as checkName, bt as permittedIdsHelper, c as graphPlan, dt as isTeamScope, gt as memberIdsHelper, i as tableNames, lt as hasPermittedUsers, ot as graphSqlName, pt as memberForHelper, u as holderSources, ut as inheritedRowsHelper, xt as restrictedHelper, y as PERMISSION_HELPERS, yt as permittedForHelper } from "./tables-Bl_ozD0k.js";
|
|
9
|
+
import { t as FIELD_VIEWS } from "./fields-B17OWcPx.js";
|
|
10
10
|
//#region src/cli/rls/permission-holders.ts
|
|
11
11
|
/**
|
|
12
12
|
* `permitted_<scope>_users(p_permission, p_id)`. Names are part of the SQL
|
|
@@ -134,7 +134,8 @@ function resourceNames(resource, input) {
|
|
|
134
134
|
} : {},
|
|
135
135
|
...input.rows && sql !== void 0 ? {
|
|
136
136
|
rows: inheritedRowsHelper(resource),
|
|
137
|
-
row: `permitted_${sql}_row
|
|
137
|
+
row: `permitted_${sql}_row`,
|
|
138
|
+
idType: input.idType
|
|
138
139
|
} : {},
|
|
139
140
|
...input.fields && table !== void 0 ? {
|
|
140
141
|
visible: `${table}${FIELD_VIEWS.view}`,
|
|
@@ -158,7 +159,7 @@ function checkNames(names) {
|
|
|
158
159
|
};
|
|
159
160
|
for (const [scope, helpers] of Object.entries(names.scopes)) for (const name of Object.values(helpers)) claim(name, `scope '${scope}'`);
|
|
160
161
|
for (const [resource, helpers] of Object.entries(names.resources)) {
|
|
161
|
-
const { table: _table, visible: _visible, ...functions } = helpers;
|
|
162
|
+
const { table: _table, visible: _visible, idType: _idType, ...functions } = helpers;
|
|
162
163
|
for (const name of Object.values(functions)) claim(name, `resource '${resource}'`);
|
|
163
164
|
}
|
|
164
165
|
}
|
|
@@ -189,6 +190,10 @@ function resolveNames(policy, config, options = {}) {
|
|
|
189
190
|
table: tables[resource],
|
|
190
191
|
graph: graph.has(resource),
|
|
191
192
|
rows: rows.has(resource),
|
|
193
|
+
idType: idTypeOf({
|
|
194
|
+
dialect: rls?.dialect ?? "supabase",
|
|
195
|
+
...rls?.idTypes === void 0 ? {} : { idTypes: rls.idTypes }
|
|
196
|
+
}, resource),
|
|
192
197
|
fields: rls?.fields !== void 0
|
|
193
198
|
});
|
|
194
199
|
return Object.keys(entry).length === 0 ? [] : [[resource, entry]];
|
|
@@ -192,7 +192,7 @@ async function rlsInput(ctx, verb, shape, options) {
|
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
194
|
async function runRls(input) {
|
|
195
|
-
return (await import("./rls-
|
|
195
|
+
return (await import("./rls-hmwRIS3-.js")).runRls(input);
|
|
196
196
|
}
|
|
197
197
|
const generate = defineLeaf({
|
|
198
198
|
flags: {
|
|
@@ -9,24 +9,24 @@ import { i as requirePeer, n as packageManagerOf, t as addLine } from "./peer-Bu
|
|
|
9
9
|
import { c as requirePolicy } from "./load-C4p4VgwR.js";
|
|
10
10
|
import { i as qualifySqlTable, r as escapeSqlIdent } from "./sql-0WjxIp9g.js";
|
|
11
11
|
import "./sources-C4vkzZJV.js";
|
|
12
|
-
import { t as policyFromCatalog } from "./policy-from-catalog-
|
|
12
|
+
import { t as policyFromCatalog } from "./policy-from-catalog-lKL280I8.js";
|
|
13
13
|
import { t as beforeFirst } from "./text-BMFRfBqc.js";
|
|
14
14
|
import { i as INDEXES_MARKER, n as GRANTS_MARKER, o as SEEDS_MARKER, t as BACKFILL_MARKER } from "./markers-BeHZ4x9Q.js";
|
|
15
|
-
import { a as nonEmptyOr } from "./output-
|
|
15
|
+
import { a as nonEmptyOr } from "./output-B81GJ6u6.js";
|
|
16
16
|
import { t as POLICY_NOT_PUBLISHED } from "./problem-types-DSsRfONQ.js";
|
|
17
|
-
import { t as fetchProjectPolicy } from "./pull-
|
|
17
|
+
import { t as fetchProjectPolicy } from "./pull-4Yi8zYeU.js";
|
|
18
18
|
import { n as MIGRATION_DIRS } from "./constants-DcJABbLW.js";
|
|
19
19
|
import { a as isSeedsDirectory, c as parseSplit, d as seedsMigration, f as writeOutputFiles, l as partPath, n as dataMigrationFile, r as driftOf, u as pgDeltaPath } from "./output-files-CM0BnH05.js";
|
|
20
20
|
import { t as connectPgPool } from "./pg-Ddxsd5ZB.js";
|
|
21
|
-
import { b as rbacScaffold, d as resolveSchemas, f as schemasRefusal, o as supabaseHookSql, p as declarativeSql, s as approvalsSql, t as grantsLabel, u as isSupabaseSchemas, y as parseRbacAuthorize } from "./supabase-hook-
|
|
21
|
+
import { b as rbacScaffold, d as resolveSchemas, f as schemasRefusal, o as supabaseHookSql, p as declarativeSql, s as approvalsSql, t as grantsLabel, u as isSupabaseSchemas, y as parseRbacAuthorize } from "./supabase-hook-Cb3UZpGC.js";
|
|
22
22
|
import { A as quoteQualified, D as qualified$1, L as scopeTypeOf, O as quoteIdent$1, _ as subjectClaimJsonSql, c as SESSION_LIVE_HELPER, g as sessionLiveHelperSql, j as quoteTable, k as quoteLiteral, r as HELPERS, t as CUSTOM_ROLES, y as subjectIdSql } from "./shared-DfaIWvIJ.js";
|
|
23
|
-
import { $ as byKey, C as permittedByPermissionHelper, Ct as scopeTable, E as helpersSql, O as seedSql, St as scopeSources, T as accessSql, at as graphHelper, bt as permittedIdsHelper, gt as memberIdsHelper, i as tableNames, l as graphSql, x as permissionHelpersSql } from "./tables-
|
|
24
|
-
import { c as breakGlassKey, i as assignmentSql, l as collectGrants, n as ownershipSql, s as breakGlassHolder } from "./ownership-
|
|
23
|
+
import { $ as byKey, C as permittedByPermissionHelper, Ct as scopeTable, E as helpersSql, O as seedSql, St as scopeSources, T as accessSql, at as graphHelper, bt as permittedIdsHelper, gt as memberIdsHelper, i as tableNames, l as graphSql, x as permissionHelpersSql } from "./tables-Bl_ozD0k.js";
|
|
24
|
+
import { c as breakGlassKey, i as assignmentSql, l as collectGrants, n as ownershipSql, s as breakGlassHolder } from "./ownership-B7Ea-hUY.js";
|
|
25
25
|
import { a as splitUndiffed } from "./deciding-columns-NB4wcyBf.js";
|
|
26
|
-
import { a as fieldViewsSql, c as ACTOR_MAY_WRITE, f as readOnlyActorKinds, i as fieldViews, l as actorMayWriteSql, n as columnGrantSql, o as rowBranches, p as readOnlyActorPolicies, r as columnRevokeSql, u as assemblePolicies } from "./fields-
|
|
27
|
-
import { n as permissionHoldersSql } from "./resolve-names-
|
|
28
|
-
import { _ as INDEX_COLUMNS_SQL, a as verifyResult, b as pruneIndexTargets, c as callsHelper, g as COLUMNS_SQL, h as tableFor, i as verifyIgnores, l as helperCallKeys, m as inferredCommand, n as runRlsVerify, o as HELPER_TABLES, p as compileGrants, r as rlsFinding, v as indexTargets, x as readTableIndexFacts, y as indexesSql } from "./verify-
|
|
29
|
-
import { a as buildContext, c as levelKeys, d as rebuildPlan, i as splitsPart, l as rowHelpersSql, n as generateOptions, o as CANDIDATES, r as isRefusal, s as inheritTargets, t as supautilsRejections, u as DROPPED_LIST } from "./supautils-
|
|
26
|
+
import { a as fieldViewsSql, c as ACTOR_MAY_WRITE, f as readOnlyActorKinds, i as fieldViews, l as actorMayWriteSql, n as columnGrantSql, o as rowBranches, p as readOnlyActorPolicies, r as columnRevokeSql, u as assemblePolicies } from "./fields-B17OWcPx.js";
|
|
27
|
+
import { n as permissionHoldersSql } from "./resolve-names-SGcLjtFc.js";
|
|
28
|
+
import { _ as INDEX_COLUMNS_SQL, a as verifyResult, b as pruneIndexTargets, c as callsHelper, g as COLUMNS_SQL, h as tableFor, i as verifyIgnores, l as helperCallKeys, m as inferredCommand, n as runRlsVerify, o as HELPER_TABLES, p as compileGrants, r as rlsFinding, v as indexTargets, x as readTableIndexFacts, y as indexesSql } from "./verify-OtU4yCzg.js";
|
|
29
|
+
import { a as buildContext, c as levelKeys, d as rebuildPlan, i as splitsPart, l as rowHelpersSql, n as generateOptions, o as CANDIDATES, r as isRefusal, s as inheritTargets, t as supautilsRejections, u as DROPPED_LIST } from "./supautils-CuR9rPsi.js";
|
|
30
30
|
import { readFileSync } from "node:fs";
|
|
31
31
|
import { basename, delimiter, join } from "node:path";
|
|
32
32
|
import { spawn } from "node:child_process";
|
|
@@ -2645,7 +2645,7 @@ async function runRls(input) {
|
|
|
2645
2645
|
}
|
|
2646
2646
|
case "import": {
|
|
2647
2647
|
await requirePeer(() => import("pgsql-parser"), "pgsql-parser", "permdock rls import", input.cwd, PGSQL_PARSER_MAJOR);
|
|
2648
|
-
const { runRlsImport } = await import("./import-
|
|
2648
|
+
const { runRlsImport } = await import("./import-B2jgnNS0.js");
|
|
2649
2649
|
return runRlsImport({
|
|
2650
2650
|
cwd: input.cwd,
|
|
2651
2651
|
config: input.config,
|
|
@@ -2,12 +2,14 @@ import { a as sole, n as isReadonlyArray, r as isRecord, t as compact } from "./
|
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { i as ownKeys, n as isForbiddenKey, t as assertSafeKey } from "./paths-CUvURzHp.js";
|
|
4
4
|
import { c as isConditionDate, l as isConditionRef, r as isSubjectRef, s as isCondition, u as isSqlFunctionField } from "./refs-C8BKxc_e.js";
|
|
5
|
-
import { c as sanitizeFields, n as normalizeValidity } from "./validity-Buc7w8E9.js";
|
|
6
5
|
import { c as listPermissions, o as isPermission } from "./permission-registry-B8tYxPIt.js";
|
|
7
6
|
import { n as assertMetaValue, r as parseAppData, t as assertAppData } from "./app-data-UNNm07jV.js";
|
|
8
|
-
import {
|
|
7
|
+
import { a as isRole } from "./vocabulary-BuYFWeCU.js";
|
|
8
|
+
import { d as roleScopeOf, o as flattenGrantee, r as asGrantee, u as roleNameOf } from "./grantee-OG4klcNr.js";
|
|
9
9
|
import { a as durationOf, r as assertDuration } from "./time-nR1JesoH.js";
|
|
10
|
-
import {
|
|
10
|
+
import { n as normalizeValidity } from "./validity-IcjQSR7I.js";
|
|
11
|
+
import { i as sanitizeFields } from "./fields-DlKwZYiy.js";
|
|
12
|
+
import { a as normalizeApproval, t as activationApproval } from "./approval-normalize-KfhzpD93.js";
|
|
11
13
|
//#region src/conditions/opaque.ts
|
|
12
14
|
function opaque(input) {
|
|
13
15
|
return freezeDeep({
|