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/ssf/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as SsfSubject, C as SsfEventName, D as SsfReceiver, E as SsfPermDockOptions, M as SsfTransmitterConfiguration, N as SsfVerification, O as SsfStreamConfiguration, S as SsfEventListener, T as SsfPermDock, _ as SetSubject, a as PollHandle, b as SsfEventHandler, c as PushSetOptions, d as SetDelivery, f as SetDeliveryFailureCause, g as SetQueue, h as SetPollHandlerOptions, i as CaepReason, j as SsfSubjectResolver, k as SsfStreamStatus, l as ReplayStore, m as SetEvent, n as CaepEventName, o as PollOptions, p as SetError, r as CaepInitiatingEntity, s as PollResult, t as CaepCommon, u as RiscEventName, v as SignSetOptions, w as SsfOnEvent, x as SsfEventInput, y as SsfAuditEvent } from "../types-
|
|
2
|
-
import { t as memoryReplayStore } from "../replay-
|
|
3
|
-
import { A as createPermDock, C as memorySsfStreamStore, D as PollSetsResult, E as PollSetsOptions, O as PolledSet, S as SsfStreamStore, T as setPollHandler, _ as SsfFanOut, a as CaepTokenClaimsChange, b as ssfTransmitter, c as RiscEvents, d as caepEvents, f as pushSet, g as FanOutSetOptions, h as streamVerificationEvent, i as CaepEvents, k as pollSets, l as SSF_POLL_DELIVERY, m as signSet, n as CaepCredentialChange, o as RiscAccountDisabled, p as riscEvents, r as CaepDeviceComplianceChange, s as RiscCredentialCompromise, t as CaepAssuranceLevelChange, u as SSF_PUSH_DELIVERY, v as SsfTransmitterOptions, w as memorySetQueue, x as SsfStream, y as fanOutSet } from "../index-
|
|
1
|
+
import { A as SsfSubject, C as SsfEventName, D as SsfReceiver, E as SsfPermDockOptions, M as SsfTransmitterConfiguration, N as SsfVerification, O as SsfStreamConfiguration, S as SsfEventListener, T as SsfPermDock, _ as SetSubject, a as PollHandle, b as SsfEventHandler, c as PushSetOptions, d as SetDelivery, f as SetDeliveryFailureCause, g as SetQueue, h as SetPollHandlerOptions, i as CaepReason, j as SsfSubjectResolver, k as SsfStreamStatus, l as ReplayStore, m as SetEvent, n as CaepEventName, o as PollOptions, p as SetError, r as CaepInitiatingEntity, s as PollResult, t as CaepCommon, u as RiscEventName, v as SignSetOptions, w as SsfOnEvent, x as SsfEventInput, y as SsfAuditEvent } from "../types-CdXM6qPc.js";
|
|
2
|
+
import { t as memoryReplayStore } from "../replay-CsErjiHt.js";
|
|
3
|
+
import { A as createPermDock, C as memorySsfStreamStore, D as PollSetsResult, E as PollSetsOptions, O as PolledSet, S as SsfStreamStore, T as setPollHandler, _ as SsfFanOut, a as CaepTokenClaimsChange, b as ssfTransmitter, c as RiscEvents, d as caepEvents, f as pushSet, g as FanOutSetOptions, h as streamVerificationEvent, i as CaepEvents, k as pollSets, l as SSF_POLL_DELIVERY, m as signSet, n as CaepCredentialChange, o as RiscAccountDisabled, p as riscEvents, r as CaepDeviceComplianceChange, s as RiscCredentialCompromise, t as CaepAssuranceLevelChange, u as SSF_PUSH_DELIVERY, v as SsfTransmitterOptions, w as memorySetQueue, x as SsfStream, y as fanOutSet } from "../index-CxA-ygwc.js";
|
|
4
4
|
export { type CaepAssuranceLevelChange, type CaepCommon, type CaepCredentialChange, type CaepDeviceComplianceChange, type CaepEventName, type CaepEvents, type CaepInitiatingEntity, type CaepReason, type CaepTokenClaimsChange, type FanOutSetOptions, type PollHandle, type PollOptions, type PollResult, type PollSetsOptions, type PollSetsResult, type PolledSet, type PushSetOptions, type ReplayStore, type RiscAccountDisabled, type RiscCredentialCompromise, type RiscEventName, type RiscEvents, SSF_POLL_DELIVERY, SSF_PUSH_DELIVERY, type SetDelivery, type SetDeliveryFailureCause, type SetError, type SetEvent, type SetPollHandlerOptions, type SetQueue, type SetSubject, type SignSetOptions, type SsfAuditEvent, type SsfEventHandler, type SsfEventInput, type SsfEventListener, type SsfEventName, type SsfFanOut, type SsfOnEvent, type SsfPermDock, type SsfPermDockOptions, type SsfReceiver, type SsfStream, type SsfStreamConfiguration, type SsfStreamStatus, type SsfStreamStore, type SsfSubject, type SsfSubjectResolver, type SsfTransmitterConfiguration, type SsfTransmitterOptions, type SsfVerification, caepEvents, createPermDock, fanOutSet, memoryReplayStore, memorySetQueue, memorySsfStreamStore, pollSets, pushSet, riscEvents, setPollHandler, signSet, ssfTransmitter, streamVerificationEvent };
|
package/dist/ssf/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { o as statusProblem } from "../problem-details-CLDgX1KV.js";
|
|
3
3
|
import { o as epochSeconds } from "../time-nR1JesoH.js";
|
|
4
|
-
import { f as validationProblem, l as problemResponse, o as methodNotAllowed, s as notFoundProblem } from "../problem-
|
|
4
|
+
import { f as validationProblem, l as problemResponse, o as methodNotAllowed, s as notFoundProblem } from "../problem-CPB8kqk7.js";
|
|
5
5
|
import { t as timeoutSignal } from "../timeout-D51niuQP.js";
|
|
6
|
-
import { t as cancelApprovals } from "../helpers-
|
|
6
|
+
import { t as cancelApprovals } from "../helpers-CO2hDpBU.js";
|
|
7
7
|
import { n as readBodyText } from "../body-text-DQhcmqdY.js";
|
|
8
8
|
import { i as issuerFromDiscovery, t as joseTokenVerifier } from "../verifier-DUV6pLqZ.js";
|
|
9
9
|
import { t as memoryReplayStore } from "../replay-BU09ad4L.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _r as JsonWebKeyLike, qt as Instant } from "./policy-types-
|
|
2
|
-
import { l as ReplayStore } from "./types-
|
|
1
|
+
import { _r as JsonWebKeyLike, qt as Instant } from "./policy-types-CCBrL7me.js";
|
|
2
|
+
import { l as ReplayStore } from "./types-CdXM6qPc.js";
|
|
3
3
|
//#region src/server/standard-webhooks.d.ts
|
|
4
4
|
/** The three Standard Webhooks headers a delivery carries. */
|
|
5
5
|
type WebhookHeaders = {
|
|
@@ -2,8 +2,8 @@ import { 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 } from "./approvers-BaNwKYgd.js";
|
|
4
4
|
import { a as durationOf, i as dateAt } from "./time-nR1JesoH.js";
|
|
5
|
-
import { n as matchGrantee } from "./grantee-match-
|
|
6
|
-
import { o as readWireApproval } from "./approval-normalize-
|
|
5
|
+
import { n as matchGrantee } from "./grantee-match-CPQ9zV-H.js";
|
|
6
|
+
import { o as readWireApproval } from "./approval-normalize-KfhzpD93.js";
|
|
7
7
|
import { i as rootMembershipId } from "./subject-C7RddW0G.js";
|
|
8
8
|
import { a as escalationOpenAt, i as approverRelationKey, o as stageEscalationOpenAt, r as approvalQuorum, s as ApprovalError } from "./types-CcUXciSj.js";
|
|
9
9
|
//#region src/approvals/page.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { N as PolicyVocabulary, Yn as Decision, en as Snapshot, hr as Delegation, lr as Actor, vt as TokenVerifier, yr as Principal } from "./policy-types-
|
|
1
|
+
import { N as PolicyVocabulary, Yn as Decision, en as Snapshot, hr as Delegation, lr as Actor, vt as TokenVerifier, yr as Principal } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { a as PermDock } from "./permdock-
|
|
4
|
-
import { a as ProblemDetails } from "./errors-
|
|
5
|
-
import { n as DescribeMessages, t as DecisionDescription } from "./describe-
|
|
3
|
+
import { a as PermDock } from "./permdock-vD3mwLSm.js";
|
|
4
|
+
import { a as ProblemDetails } from "./errors-CXxQwtbZ.js";
|
|
5
|
+
import { n as DescribeMessages, t as DecisionDescription } from "./describe-CazEjtOH.js";
|
|
6
6
|
import { r as RefreshTrigger } from "./refresh-on-L9UOwATg.js";
|
|
7
7
|
//#region src/core/action-result.d.ts
|
|
8
8
|
/** What a `protectAction` action resolves to; both members cross to the client. */
|
|
@@ -39,6 +39,16 @@ type PermissionState = {
|
|
|
39
39
|
readonly status: ClientStatus;
|
|
40
40
|
readonly decision: Decision;
|
|
41
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* What a check with no row answers from the snapshot alone: no `Decision`, so a
|
|
44
|
+
* client renders it without the evaluator. `useDecision` returns the
|
|
45
|
+
* `PermissionState` that carries one.
|
|
46
|
+
*/
|
|
47
|
+
type PermissionOutcome = {
|
|
48
|
+
readonly allowed: boolean;
|
|
49
|
+
readonly status: ClientStatus;
|
|
50
|
+
readonly outcome: Decision["outcome"];
|
|
51
|
+
};
|
|
42
52
|
type PermissionSet = {
|
|
43
53
|
readonly granted: readonly Permission[];
|
|
44
54
|
get: (permission: Permission) => PermissionState | undefined;
|
|
@@ -170,7 +180,7 @@ type GateView = {
|
|
|
170
180
|
readonly decision: Decision;
|
|
171
181
|
};
|
|
172
182
|
//#endregion
|
|
173
|
-
//#region src/client/store.d.ts
|
|
183
|
+
//#region src/client/store-core.d.ts
|
|
174
184
|
type ClientStoreOptions = {
|
|
175
185
|
readonly snapshot: Snapshot | string;
|
|
176
186
|
readonly endpoint?: string;
|
|
@@ -235,6 +245,17 @@ type ClientStore = {
|
|
|
235
245
|
get: () => ClientPermDock;
|
|
236
246
|
subscribe: (listener: () => void) => () => void;
|
|
237
247
|
permissionState: (permission: Permission, data?: unknown) => PermissionState;
|
|
248
|
+
/**
|
|
249
|
+
* The answer of a check with no row from the snapshot's `typeLevel` table;
|
|
250
|
+
* `undefined` when the table cannot answer and `permissionState` must run the
|
|
251
|
+
* evaluator.
|
|
252
|
+
*/
|
|
253
|
+
quick: (permission: Permission) => PermissionOutcome | undefined;
|
|
254
|
+
/**
|
|
255
|
+
* `undefined` once the evaluator has loaded; otherwise the load in flight,
|
|
256
|
+
* which a render reads with `use()`.
|
|
257
|
+
*/
|
|
258
|
+
loading: () => PromiseLike<void> | undefined;
|
|
238
259
|
requestApproval: (decision: Decision, note?: string) => Promise<void>;
|
|
239
260
|
/** Hydrate from a pushed snapshot; a compact JWS goes through the verifier. */
|
|
240
261
|
replace: (value: unknown) => void;
|
|
@@ -287,4 +308,4 @@ type ClientStore = {
|
|
|
287
308
|
dispose: () => void;
|
|
288
309
|
};
|
|
289
310
|
//#endregion
|
|
290
|
-
export {
|
|
311
|
+
export { SubjectView as _, ClientPermDock as a, ProtectedAction as b, GateMode as c, PermissionSet as d, PermissionState as f, RolesOptions as g, ProviderOptionsBase as h, ApprovalState as i, GateView as l, ProtectedActionView as m, ClientStoreOptions as n, ClientStatus as o, ProtectedActionHandle as p, ApprovalHandle as r, FilterResult as s, ClientStore as t, PermissionOutcome as u, TenantView as v, ActionResult as y };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { a as snapshotClaim, n as fromSnapshot, t as emptySnapshot } from "./from-snapshot-oR_N97dM.js";
|
|
3
2
|
import { g as secondsOf } from "./time-nR1JesoH.js";
|
|
4
|
-
import {
|
|
3
|
+
import { n as rowIdOf } from "./row-pair-DglMdRFh.js";
|
|
5
4
|
import { c as nowSeconds } from "./tenancy-BlxY5T0q.js";
|
|
6
5
|
import { r as payloadDigest } from "./token-DaMnIU9O.js";
|
|
7
|
-
import { n as parseSnapshot } from "./snapshot-
|
|
6
|
+
import { n as parseSnapshot, o as subjectFromSnapshot } from "./snapshot-BcHYtUIg.js";
|
|
7
|
+
import { r as snapshotClaim } from "./membership-filter-CfLdP_F9.js";
|
|
8
|
+
import { t as snapshotReads } from "./snapshot-reads-DOsTYC82.js";
|
|
9
|
+
import { t as emptySnapshot } from "./snapshot-empty-BoPBFoB8.js";
|
|
8
10
|
import { t as timeoutSignal } from "./timeout-D51niuQP.js";
|
|
9
11
|
//#region src/client/source.ts
|
|
10
12
|
/** A compact JWS: three non-empty dot-separated parts. */
|
|
@@ -235,6 +237,35 @@ function createBatch(options) {
|
|
|
235
237
|
};
|
|
236
238
|
}
|
|
237
239
|
//#endregion
|
|
240
|
+
//#region src/client/light-instance.ts
|
|
241
|
+
const NOT_LOADED = {
|
|
242
|
+
outcome: "denied",
|
|
243
|
+
denials: [{
|
|
244
|
+
role: null,
|
|
245
|
+
reason: "no-grant"
|
|
246
|
+
}],
|
|
247
|
+
alternatives: []
|
|
248
|
+
};
|
|
249
|
+
/**
|
|
250
|
+
* What a store holds until its evaluator loads: the reads a snapshot answers
|
|
251
|
+
* alone, and a denial for every check. `usePermDock` suspends until the
|
|
252
|
+
* evaluator replaces it, so no render sees the denials.
|
|
253
|
+
*/
|
|
254
|
+
function lightInstance(snapshot, options) {
|
|
255
|
+
const subject = subjectFromSnapshot(snapshot, options.tenant);
|
|
256
|
+
return {
|
|
257
|
+
...snapshotReads(snapshot, subject),
|
|
258
|
+
subject,
|
|
259
|
+
roles: snapshot.vocabulary?.roles ?? {},
|
|
260
|
+
plans: snapshot.vocabulary?.plans ?? {},
|
|
261
|
+
permissions: {},
|
|
262
|
+
can: () => false,
|
|
263
|
+
decide: () => NOT_LOADED,
|
|
264
|
+
snapshot: () => snapshot,
|
|
265
|
+
tenant: (id) => lightInstance(snapshot, { tenant: id })
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
//#endregion
|
|
238
269
|
//#region src/client/refresh-on.ts
|
|
239
270
|
const DEFAULT_TYPES = ["com.permdock.membership.*", "com.permdock.catalog.*"];
|
|
240
271
|
const REFRESH_DELAY = 250;
|
|
@@ -383,7 +414,7 @@ function storeRequest(fetchImpl, headers) {
|
|
|
383
414
|
});
|
|
384
415
|
}
|
|
385
416
|
//#endregion
|
|
386
|
-
//#region src/client/store.ts
|
|
417
|
+
//#region src/client/store-core.ts
|
|
387
418
|
function withTenant(source, tenant) {
|
|
388
419
|
if (tenant === void 0) return source;
|
|
389
420
|
const hashAt = source.indexOf("#");
|
|
@@ -424,7 +455,7 @@ function storeOf(permdock) {
|
|
|
424
455
|
function needsEndpoint(decision) {
|
|
425
456
|
return decision.outcome === "denied" && decision.denials.some((denial) => denial.reason === "opaque-condition");
|
|
426
457
|
}
|
|
427
|
-
function
|
|
458
|
+
function createStore(options, evaluator) {
|
|
428
459
|
const fetchImpl = options.fetch ?? globalThis.fetch.bind(globalThis);
|
|
429
460
|
const server = options.server ?? globalThis.window === void 0;
|
|
430
461
|
const listeners = /* @__PURE__ */ new Set();
|
|
@@ -433,7 +464,8 @@ function createClientStore(options) {
|
|
|
433
464
|
let snapshot = emptySnapshot();
|
|
434
465
|
let tenant = options.tenant;
|
|
435
466
|
let base = "server-only";
|
|
436
|
-
|
|
467
|
+
const build = () => (evaluator.build() ?? lightInstance)(snapshot, compact({ tenant }));
|
|
468
|
+
let instance = build();
|
|
437
469
|
let cached;
|
|
438
470
|
let verifying = false;
|
|
439
471
|
let refreshing = 0;
|
|
@@ -500,7 +532,7 @@ function createClientStore(options) {
|
|
|
500
532
|
if ((snapshot.subject.principal?.id ?? null) !== (next.subject.principal?.id ?? null)) approvals.forget();
|
|
501
533
|
snapshot = next;
|
|
502
534
|
cleared = false;
|
|
503
|
-
instance =
|
|
535
|
+
instance = build();
|
|
504
536
|
base = "ready";
|
|
505
537
|
if (staleNext && next.subject.principal !== null) {
|
|
506
538
|
staleNext = false;
|
|
@@ -598,6 +630,52 @@ function createClientStore(options) {
|
|
|
598
630
|
}
|
|
599
631
|
return decision;
|
|
600
632
|
};
|
|
633
|
+
const localStatus = () => verifying || following > 0 ? "pending" : base === "stale" || isStale() ? "stale" : "ready";
|
|
634
|
+
let tableFor;
|
|
635
|
+
let tableSets;
|
|
636
|
+
const quick = (permission) => {
|
|
637
|
+
if (tenant !== void 0 && tenant !== snapshot.subject.principal?.tenant) return;
|
|
638
|
+
const table = snapshot.typeLevel;
|
|
639
|
+
if (table === void 0) return snapshot.grants.length === 0 ? {
|
|
640
|
+
allowed: false,
|
|
641
|
+
status: localStatus(),
|
|
642
|
+
outcome: "denied"
|
|
643
|
+
} : void 0;
|
|
644
|
+
if (tableFor !== snapshot) {
|
|
645
|
+
tableFor = snapshot;
|
|
646
|
+
tableSets = {
|
|
647
|
+
granted: new Set(table.granted),
|
|
648
|
+
approval: new Set(table.approval),
|
|
649
|
+
endpoint: new Set(table.endpoint)
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
if (tableSets === void 0 || tableSets.endpoint.has(permission.key)) return;
|
|
653
|
+
const outcome = tableSets.granted.has(permission.key) ? "granted" : tableSets.approval.has(permission.key) ? "approval-required" : "denied";
|
|
654
|
+
return {
|
|
655
|
+
allowed: outcome === "granted",
|
|
656
|
+
status: localStatus(),
|
|
657
|
+
outcome
|
|
658
|
+
};
|
|
659
|
+
};
|
|
660
|
+
let evaluated = evaluator.build() !== void 0;
|
|
661
|
+
let loadingNow;
|
|
662
|
+
const loading = () => {
|
|
663
|
+
if (evaluated) return;
|
|
664
|
+
loadingNow ??= (async () => {
|
|
665
|
+
try {
|
|
666
|
+
await evaluator.load();
|
|
667
|
+
} catch (error) {
|
|
668
|
+
loadingNow = void 0;
|
|
669
|
+
throw error;
|
|
670
|
+
}
|
|
671
|
+
evaluated = true;
|
|
672
|
+
decided.clear();
|
|
673
|
+
instance = build();
|
|
674
|
+
serverView = void 0;
|
|
675
|
+
emit();
|
|
676
|
+
})();
|
|
677
|
+
return loadingNow;
|
|
678
|
+
};
|
|
601
679
|
const permissionState = (permission, data) => {
|
|
602
680
|
const decision = decideLocal(permission, data);
|
|
603
681
|
if (decision === VALIDATION) return {
|
|
@@ -643,7 +721,7 @@ function createClientStore(options) {
|
|
|
643
721
|
}
|
|
644
722
|
return {
|
|
645
723
|
allowed: decision.outcome === "granted",
|
|
646
|
-
status:
|
|
724
|
+
status: localStatus(),
|
|
647
725
|
decision
|
|
648
726
|
};
|
|
649
727
|
};
|
|
@@ -749,7 +827,7 @@ function createClientStore(options) {
|
|
|
749
827
|
tenant = options.tenant;
|
|
750
828
|
snapshot = emptySnapshot();
|
|
751
829
|
cleared = true;
|
|
752
|
-
instance =
|
|
830
|
+
instance = build();
|
|
753
831
|
base = "server-only";
|
|
754
832
|
approvals.forget();
|
|
755
833
|
if (!disposed) options.onClear?.();
|
|
@@ -838,6 +916,8 @@ function createClientStore(options) {
|
|
|
838
916
|
snapshot() {
|
|
839
917
|
return snapshot;
|
|
840
918
|
},
|
|
919
|
+
quick,
|
|
920
|
+
loading,
|
|
841
921
|
tenant() {
|
|
842
922
|
return tenant;
|
|
843
923
|
},
|
|
@@ -884,8 +964,8 @@ function both(first, second) {
|
|
|
884
964
|
second(...args);
|
|
885
965
|
};
|
|
886
966
|
}
|
|
887
|
-
function adapterStore(options, snapshot, native) {
|
|
888
|
-
return
|
|
967
|
+
function adapterStore(options, snapshot, evaluator, native) {
|
|
968
|
+
return createStore(compact({
|
|
889
969
|
snapshot,
|
|
890
970
|
endpoint: options.endpoint === false ? void 0 : options.endpoint,
|
|
891
971
|
onServerOnly: options.endpoint === false ? hintOnce() : void 0,
|
|
@@ -905,7 +985,7 @@ function adapterStore(options, snapshot, native) {
|
|
|
905
985
|
onClear: both(native?.onClear, options.onClear),
|
|
906
986
|
approvalInterval: options.approvalInterval,
|
|
907
987
|
refreshOn: options.refreshOn
|
|
908
|
-
}));
|
|
988
|
+
}), evaluator);
|
|
909
989
|
}
|
|
910
990
|
//#endregion
|
|
911
991
|
export { eventSourceRefresh as a, isJws as c, broadcastChannelRefresh as i, isPromiseLike as l, storeOf as n, focusRefresh as o, authzChangeRefresh as r, visibilityRefresh as s, adapterStore as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as actionRunner, t as actionApproval } from "./protected-action-OpOxtTsN.js";
|
|
2
2
|
import { a as livePermDock, c as rolesView, d as subjectView, f as tenantView, i as gateView, n as describeWith, o as permissionSet, r as filterResult, t as approvalHandle } from "./views-MWmJ6Y4P.js";
|
|
3
|
-
import { n as getUi, r as providePermDock, t as getStore } from "./context-
|
|
3
|
+
import { n as getUi, r as providePermDock, t as getStore } from "./context-KrAhRY22.js";
|
|
4
4
|
import { derived, readable, toStore, writable } from "svelte/store";
|
|
5
5
|
//#region src/svelte/stores.ts
|
|
6
6
|
function fromStore(store, compute) {
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
6
|
-
import { n as ProtectedActionReadable, r as SveltePermDockOptions } from "./types-
|
|
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, r as ApprovalHandle, s as FilterResult, v as TenantView } from "./store-core-CDabEiO9.js";
|
|
6
|
+
import { n as ProtectedActionReadable, r as SveltePermDockOptions } from "./types-CErg7ft6.js";
|
|
7
7
|
import { Readable } from "svelte/store";
|
|
8
8
|
//#region src/svelte/stores.d.ts
|
|
9
9
|
declare function setPermDock(options: SveltePermDockOptions): ClientPermDock;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { St as VersionQuery, pr as CustomRole, qt as Instant, vr as Membership } from "./policy-types-
|
|
1
|
+
import { St as VersionQuery, pr as CustomRole, qt as Instant, vr as Membership } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
//#region src/core/version-cache.d.ts
|
|
3
3
|
type VersionCacheStats = {
|
|
4
4
|
/** Version reads the cache started. */
|
package/dist/supabase/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { qt as Instant, xr as Subject } from "../policy-types-
|
|
2
|
-
import { i as ApprovalPolicySource } from "../approval-policies-
|
|
3
|
-
import { a as ApprovalDelegationSource, m as ApprovalStore, u as ApprovalRequest } from "../types-
|
|
4
|
-
import { a as readSubjectRecord, r as SubjectRecord } from "../subject-cache-
|
|
5
|
-
import { a as SupabaseRpcResult, i as SupabaseRpcClient, n as PostgrestSourcesOptions, o as postgrestSources, r as SupabaseRpcCaller, t as PostgrestSources } from "../postgrest-
|
|
6
|
-
import { A as SupabaseSubjectOptions, B as supabaseClaims, C as SupabasePrincipal, D as SupabaseRlsOptions, E as SupabaseRlsMembershipTable, F as SupabaseClaims, I as SupabaseClaimsOptions, L as SupabaseClaimsSchema, M as SupabaseSuspendedScope, N as SupabaseSuspension, O as SupabaseSessionLike, P as SupabaseActClaim, R as SupabaseMembershipClaim, S as SupabasePermissionRef, T as SupabaseRlsConfig, _ as SupabaseActor, a as MembershipStream, b as SupabaseInclude, c as SupabasePostgres, d as supabasePostgresQuery, f as tableMembershipSource, g as SupabaseActiveRow, h as RoleThrough, i as MembershipSql, j as SupabaseSuspendedMembership, k as SupabaseStorage, l as authzVersion, n as MembershipHolders, o as MembershipTableOptions, p as AuthorizeSqlOptions, r as MembershipJunctionOptions, s as SqlMembershipSource, t as AUTHZ_VERSION_TABLE, u as junctionMembershipSource, v as SupabaseActorResult, w as SupabaseRealtime, x as SupabaseMembershipTable, y as SupabaseDelegation, z as SupabasePermDockClaims } from "../sources-
|
|
1
|
+
import { qt as Instant, xr as Subject } from "../policy-types-CCBrL7me.js";
|
|
2
|
+
import { i as ApprovalPolicySource } from "../approval-policies-D7moEfTM.js";
|
|
3
|
+
import { a as ApprovalDelegationSource, m as ApprovalStore, u as ApprovalRequest } from "../types-CAp7UGiB.js";
|
|
4
|
+
import { a as readSubjectRecord, r as SubjectRecord } from "../subject-cache-DrJGnRiV.js";
|
|
5
|
+
import { a as SupabaseRpcResult, i as SupabaseRpcClient, n as PostgrestSourcesOptions, o as postgrestSources, r as SupabaseRpcCaller, t as PostgrestSources } from "../postgrest-5WOO47Ud.js";
|
|
6
|
+
import { A as SupabaseSubjectOptions, B as supabaseClaims, C as SupabasePrincipal, D as SupabaseRlsOptions, E as SupabaseRlsMembershipTable, F as SupabaseClaims, I as SupabaseClaimsOptions, L as SupabaseClaimsSchema, M as SupabaseSuspendedScope, N as SupabaseSuspension, O as SupabaseSessionLike, P as SupabaseActClaim, R as SupabaseMembershipClaim, S as SupabasePermissionRef, T as SupabaseRlsConfig, _ as SupabaseActor, a as MembershipStream, b as SupabaseInclude, c as SupabasePostgres, d as supabasePostgresQuery, f as tableMembershipSource, g as SupabaseActiveRow, h as RoleThrough, i as MembershipSql, j as SupabaseSuspendedMembership, k as SupabaseStorage, l as authzVersion, n as MembershipHolders, o as MembershipTableOptions, p as AuthorizeSqlOptions, r as MembershipJunctionOptions, s as SqlMembershipSource, t as AUTHZ_VERSION_TABLE, u as junctionMembershipSource, v as SupabaseActorResult, w as SupabaseRealtime, x as SupabaseMembershipTable, y as SupabaseDelegation, z as SupabasePermDockClaims } from "../sources-DhCtO9G8.js";
|
|
7
7
|
import { _ as hasTokenHook, a as SupabaseManifestActiveRow, c as SupabaseManifestMembership, d as SupabaseManifestResourceNames, f as SupabaseManifestRls, g as SupabaseManifestValue, h as SupabaseManifestThrough, i as SupabaseManifest, l as SupabaseManifestNames, m as SupabaseManifestScopeNames, n as SupabaseHookClaim, o as SupabaseManifestColumn, p as SupabaseManifestRole, r as SupabaseHookManifest, s as SupabaseManifestHelper, t as SupabaseDatabaseManifest, u as SupabaseManifestRequires, v as parseSupabaseManifest } from "../manifest-C6eFl3Vo.js";
|
|
8
8
|
import { t as SqlQuery } from "../sql-B80DFdpG.js";
|
|
9
9
|
import { n as supabaseTenantClaim, t as supabaseMembershipsBudget } from "../budget-CNLsV2SL.js";
|
package/dist/supabase/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as readSubjectRecord } from "../subject-cache-BT1fGuea.js";
|
|
2
2
|
import { n as AUTHZ_TOPIC, r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-Dbc-HDOS.js";
|
|
3
3
|
import { n as supabaseTenantClaim, t as supabaseMembershipsBudget } from "../budget-BBCPDOGP.js";
|
|
4
|
-
import { a as supabaseApprovalStore, i as tableApprovalPolicySource, n as supabaseRls, o as supabaseClaims, r as tableApprovalDelegationSource, s as exchangeCapability, t as authorizeSql } from "../supabase-
|
|
4
|
+
import { a as supabaseApprovalStore, i as tableApprovalPolicySource, n as supabaseRls, o as supabaseClaims, r as tableApprovalDelegationSource, s as exchangeCapability, t as authorizeSql } from "../supabase-BDr-fIHp.js";
|
|
5
5
|
import { c as tableMembershipSource, i as authzVersion, o as junctionMembershipSource, s as supabasePostgresQuery, t as AUTHZ_VERSION_TABLE } from "../sources-C4vkzZJV.js";
|
|
6
6
|
import { i as subjectFromSupabaseSession, n as delegationOf, o as postgrestSources, r as subjectFromSupabase, t as actorOf } from "../subject-BqFwS6l3.js";
|
|
7
|
-
import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-
|
|
7
|
+
import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-BoCYBbQL.js";
|
|
8
8
|
export { AUTHZ_EVENT, AUTHZ_TOPIC, AUTHZ_VERSION_TABLE, actorOf, authorizeSql, authzUserTopic, authzVersion, delegationOf, exchangeCapability, hasTokenHook, junctionMembershipSource, parseSupabaseManifest, postgrestSources, readSubjectRecord, subjectFromSupabase, subjectFromSupabaseSession, supabaseApprovalStore, supabaseClaims, supabaseMembershipsBudget, supabasePostgresQuery, supabaseRls, supabaseTenantClaim, tableApprovalDelegationSource, tableApprovalPolicySource, tableMembershipSource };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, xr as Subject, yr as Principal } from "../policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, xr as Subject, yr as Principal } from "../policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
4
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
3
|
+
import { a as PermDock } from "../permdock-vD3mwLSm.js";
|
|
4
|
+
import { t as InstanceOptions } from "../instance-options-BDHB3qBG.js";
|
|
5
5
|
import { t as RequestContext } from "../request-context-C2_1lchh.js";
|
|
6
|
-
import { i as OpenApiHooks } from "../server-types
|
|
7
|
-
import { n as ServerAdapterServices } from "../bind-
|
|
6
|
+
import { i as OpenApiHooks } from "../server-types-CtJSDhOv.js";
|
|
7
|
+
import { n as ServerAdapterServices } from "../bind-N5jf6kjk.js";
|
|
8
8
|
import { FetchHandler, Middleware } from "@supabase/middleware";
|
|
9
9
|
//#region src/supabase/middleware.d.ts
|
|
10
10
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
4
|
-
import { r as credentialSubject } from "../credential-
|
|
3
|
+
import { t as composeWraps } from "../wrap-C5PWzgkq.js";
|
|
4
|
+
import { r as credentialSubject } from "../credential-DrVrRL7z.js";
|
|
5
5
|
import { t as instanceOptions } from "../instance-options-URVwqpMW.js";
|
|
6
|
-
import { o as methodNotAllowed } from "../problem-
|
|
7
|
-
import { t as createPermDock$1 } from "../create-
|
|
8
|
-
import { n as attached } from "../bind-
|
|
6
|
+
import { o as methodNotAllowed } from "../problem-CPB8kqk7.js";
|
|
7
|
+
import { t as createPermDock$1 } from "../create-BRr7Gu7N.js";
|
|
8
|
+
import { n as attached } from "../bind-Cx10JuJ-.js";
|
|
9
9
|
import { defineMiddleware } from "@supabase/middleware";
|
|
10
10
|
//#region src/supabase/middleware.ts
|
|
11
11
|
const SECRET_KEY_NAME = /^[A-Za-z0-9_-]+$/u;
|
|
@@ -3,7 +3,7 @@ import { d as isoNow, i as dateAt, p as nowSeconds, u as isoAt } from "./time-nR
|
|
|
3
3
|
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
4
4
|
import { a as parseCapability } from "./capability-CenWwTMR.js";
|
|
5
5
|
import { s as ApprovalError } from "./types-CcUXciSj.js";
|
|
6
|
-
import { c as decodeApprovalCursor, l as encodeApprovalCursor, s as approvalPageSize, t as applyApprovalVerdict } from "./store-
|
|
6
|
+
import { c as decodeApprovalCursor, l as encodeApprovalCursor, s as approvalPageSize, t as applyApprovalVerdict } from "./store-DXO0aVgf.js";
|
|
7
7
|
import { t as loadJose } from "./load-jose-DZ4dnjri.js";
|
|
8
8
|
import "./budget-BBCPDOGP.js";
|
|
9
9
|
import { a as quoteQualifiedTable, c as quoteSqlTable, d as sqlTextArray, i as qualifySqlTable, o as quoteSqlIdent, s as quoteSqlLiteral } from "./sql-0WjxIp9g.js";
|
|
@@ -47,7 +47,7 @@ const hookGenerate = defineLeaf({
|
|
|
47
47
|
const budget = given(flags.budget);
|
|
48
48
|
const schema = given(flags.schema);
|
|
49
49
|
const grantsOut = given(flags["grants-out"]);
|
|
50
|
-
const { runSupabase } = await import("./supabase-hook-
|
|
50
|
+
const { runSupabase } = await import("./supabase-hook-D1pwHu87.js");
|
|
51
51
|
return runSupabase({
|
|
52
52
|
cwd: ctx.cwd,
|
|
53
53
|
config: ctx.config,
|
|
@@ -76,7 +76,7 @@ const inspect = defineLeaf({
|
|
|
76
76
|
},
|
|
77
77
|
async run(ctx, { flags }) {
|
|
78
78
|
const out = flags.out === "" ? true : flags.out === "-" ? void 0 : flags.out;
|
|
79
|
-
const { runSupabase } = await import("./supabase-hook-
|
|
79
|
+
const { runSupabase } = await import("./supabase-hook-D1pwHu87.js");
|
|
80
80
|
return runSupabase({
|
|
81
81
|
cwd: ctx.cwd,
|
|
82
82
|
config: ctx.config,
|
|
@@ -11,7 +11,7 @@ import { c as requirePolicy } from "./load-C4p4VgwR.js";
|
|
|
11
11
|
import "./budget-BBCPDOGP.js";
|
|
12
12
|
import { i as qualifySqlTable } from "./sql-0WjxIp9g.js";
|
|
13
13
|
import { i as scopeColumn } from "./compile-Cvru58id.js";
|
|
14
|
-
import { t as authorizeSql } from "./supabase-
|
|
14
|
+
import { t as authorizeSql } from "./supabase-BDr-fIHp.js";
|
|
15
15
|
import { a as hookApiNames, d as keptKeys, t as AUTHZ_VERSION_TABLE, u as roleManifest } from "./sources-C4vkzZJV.js";
|
|
16
16
|
import { t as beforeFirst } from "./text-BMFRfBqc.js";
|
|
17
17
|
import { n as GRANTS_MARKER, r as HOOK_MARKER, s as hookMarkerFields } from "./markers-BeHZ4x9Q.js";
|
|
@@ -20,12 +20,12 @@ import { n as MIGRATION_DIRS } from "./constants-DcJABbLW.js";
|
|
|
20
20
|
import { f as writeOutputFiles, l as partPath, r as driftOf, u as pgDeltaPath } from "./output-files-CM0BnH05.js";
|
|
21
21
|
import { n as pgConnector } from "./pg-Ddxsd5ZB.js";
|
|
22
22
|
import { A as quoteQualified, D as qualified$1, F as firstScopeType, L as scopeTypeOf, O as quoteIdent, a as customRolesOn, j as quoteTable, k as quoteLiteral, l as USER_ID_HELPER, r as HELPERS, y as subjectIdSql, z as tenantTypeOf } from "./shared-DfaIWvIJ.js";
|
|
23
|
-
import { C as permittedByPermissionHelper, Et as activeRowSql, K as globalRoleSource, Ot as checkSuspension, S as permissionKeysForHelper, _ as ASSIGNMENTS, _t as memberOfHelper, b as checkName, bt as permittedIdsHelper, ct as hasMemberFor, dt as isTeamScope, et as API_KEY_ALLOWS, gt as memberIdsHelper, ht as memberForTable, k as TOKEN_SCOPE_ALLOWS, lt as hasPermittedUsers, mt as memberForSources, nt as apiKeyFields, pt as memberForHelper, v as OWNERSHIP, vt as memberRoleOf, y as PERMISSION_HELPERS, yt as permittedForHelper } from "./tables-
|
|
24
|
-
import { a as guardedTables, t as ownershipRules, u as roleNames } from "./ownership-
|
|
23
|
+
import { C as permittedByPermissionHelper, Et as activeRowSql, K as globalRoleSource, Ot as checkSuspension, S as permissionKeysForHelper, _ as ASSIGNMENTS, _t as memberOfHelper, b as checkName, bt as permittedIdsHelper, ct as hasMemberFor, dt as isTeamScope, et as API_KEY_ALLOWS, gt as memberIdsHelper, ht as memberForTable, k as TOKEN_SCOPE_ALLOWS, lt as hasPermittedUsers, mt as memberForSources, nt as apiKeyFields, pt as memberForHelper, v as OWNERSHIP, vt as memberRoleOf, y as PERMISSION_HELPERS, yt as permittedForHelper } from "./tables-Bl_ozD0k.js";
|
|
24
|
+
import { a as guardedTables, t as ownershipRules, u as roleNames } from "./ownership-B7Ea-hUY.js";
|
|
25
25
|
import { t as membershipSourcesOf } from "./sources-qoIJQrJv.js";
|
|
26
26
|
import { a as splitUndiffed, r as tableKey, t as decidingColumns } from "./deciding-columns-NB4wcyBf.js";
|
|
27
|
-
import { c as ACTOR_MAY_WRITE, f as readOnlyActorKinds } from "./fields-
|
|
28
|
-
import { r as permittedUsersHelper, t as resolveNames } from "./resolve-names-
|
|
27
|
+
import { c as ACTOR_MAY_WRITE, f as readOnlyActorKinds } from "./fields-B17OWcPx.js";
|
|
28
|
+
import { r as permittedUsersHelper, t as resolveNames } from "./resolve-names-SGcLjtFc.js";
|
|
29
29
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
30
30
|
import { dirname, join, posix, resolve } from "node:path";
|
|
31
31
|
//#region ../../node_modules/.pnpm/smol-toml@1.9.1/node_modules/smol-toml/dist/error.js
|
|
@@ -3789,6 +3789,7 @@ function trustedHelpers(parts, config, types, tenantType, policy) {
|
|
|
3789
3789
|
] : [];
|
|
3790
3790
|
const keyed = [
|
|
3791
3791
|
helperEntry(USER_ID_HELPER, "", "uuid", client),
|
|
3792
|
+
helperEntry(PERMDOCK_SUBJECT, "", "jsonb", client),
|
|
3792
3793
|
...config.rls?.apiKeys === void 0 ? [] : [helperEntry(API_KEY_ALLOWS, "p_grant text", "boolean", client)],
|
|
3793
3794
|
...config.rls?.tokenScopes === true ? [helperEntry(TOKEN_SCOPE_ALLOWS, "p_grant text", "boolean", client)] : [],
|
|
3794
3795
|
...readOnlyActorKinds(config.rls?.readOnlyActors) === void 0 ? [] : [helperEntry(ACTOR_MAY_WRITE, "", "boolean", client)],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { i as runSupabase } from "./supabase-hook-Cb3UZpGC.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as listPermissions, u as renamedKeys } from "./permission-registry-B8tYxPIt.js";
|
|
2
|
-
import { o as flattenGrantee } from "./grantee-
|
|
2
|
+
import { o as flattenGrantee } from "./grantee-OG4klcNr.js";
|
|
3
3
|
import { c as rootScope, d as scopeList, l as scopeChain, s as resolveScope } from "./scopes-gdH__vDZ.js";
|
|
4
|
-
import { l as policyLevels } from "./policy-
|
|
4
|
+
import { l as policyLevels } from "./policy-BovcTojN.js";
|
|
5
5
|
import { a as describeError, i as configError } from "./errors-BhRkoNS7.js";
|
|
6
6
|
import "./budget-BBCPDOGP.js";
|
|
7
7
|
import { d as sqlTextArray, i as qualifySqlTable } from "./sql-0WjxIp9g.js";
|
|
@@ -9,15 +9,15 @@ import { a as scopeMembershipTable, i as scopeColumn } from "./compile-Cvru58id.
|
|
|
9
9
|
import { l as roleColumn } from "./sources-C4vkzZJV.js";
|
|
10
10
|
import { t as beforeFirst } from "./text-BMFRfBqc.js";
|
|
11
11
|
import { c as parseSplit } from "./output-files-CM0BnH05.js";
|
|
12
|
-
import { x as resolveAuthorize } from "./supabase-hook-
|
|
12
|
+
import { x as resolveAuthorize } from "./supabase-hook-Cb3UZpGC.js";
|
|
13
13
|
import { A as quoteQualified, C as parseMembershipsFlag, D as qualified, E as helperSchema, F as firstScopeType, I as idTypeOf, L as scopeTypeOf, O as quoteIdent, a as customRolesOn, j as quoteTable, k as quoteLiteral, l as USER_ID_HELPER, r as HELPERS, s as signedIn, t as CUSTOM_ROLES, y as subjectIdSql, z as tenantTypeOf } from "./shared-DfaIWvIJ.js";
|
|
14
|
-
import { $ as byKey, B as memoizes, C as permittedByPermissionHelper, D as memoReadsSql, L as memoDiscriminatorSql, M as memoReadTriggersSql, Ot as checkSuspension, Q as byCodeUnit, R as memoReadSql, X as rolesTableScope, Y as raiseSql, a as tablelessResources, at as graphHelper, bt as permittedIdsHelper, c as graphPlan, et as API_KEY_ALLOWS, gt as memberIdsHelper, i as tableNames, j as tokenScopesPlan, k as TOKEN_SCOPE_ALLOWS, n as resolveVias, o as closureDepths, ot as graphSqlName, q as currentKeyExpr, rt as apiKeysPlan, s as graphIdsSql, t as checkSharedTables, y as PERMISSION_HELPERS, z as memoWriteSql } from "./tables-
|
|
15
|
-
import { o as assignableRoles, r as unsatisfiedKinds, t as ownershipRules, u as roleNames } from "./ownership-
|
|
14
|
+
import { $ as byKey, B as memoizes, C as permittedByPermissionHelper, D as memoReadsSql, L as memoDiscriminatorSql, M as memoReadTriggersSql, Ot as checkSuspension, Q as byCodeUnit, R as memoReadSql, X as rolesTableScope, Y as raiseSql, a as tablelessResources, at as graphHelper, bt as permittedIdsHelper, c as graphPlan, et as API_KEY_ALLOWS, gt as memberIdsHelper, i as tableNames, j as tokenScopesPlan, k as TOKEN_SCOPE_ALLOWS, n as resolveVias, o as closureDepths, ot as graphSqlName, q as currentKeyExpr, rt as apiKeysPlan, s as graphIdsSql, t as checkSharedTables, y as PERMISSION_HELPERS, z as memoWriteSql } from "./tables-Bl_ozD0k.js";
|
|
15
|
+
import { o as assignableRoles, r as unsatisfiedKinds, t as ownershipRules, u as roleNames } from "./ownership-B7Ea-hUY.js";
|
|
16
16
|
import { t as membershipSourcesOf } from "./sources-qoIJQrJv.js";
|
|
17
17
|
import { i as group, o as sqlStatements } from "./deciding-columns-NB4wcyBf.js";
|
|
18
|
-
import { d as orSql, h as branchClauses } from "./fields-
|
|
19
|
-
import { t as resolveNames } from "./resolve-names-
|
|
20
|
-
import { h as tableFor } from "./verify-
|
|
18
|
+
import { d as orSql, h as branchClauses } from "./fields-B17OWcPx.js";
|
|
19
|
+
import { t as resolveNames } from "./resolve-names-SGcLjtFc.js";
|
|
20
|
+
import { h as tableFor } from "./verify-OtU4yCzg.js";
|
|
21
21
|
//#region src/cli/rls/custom-role-rebuild.ts
|
|
22
22
|
const PREFIX = "PermDock CLI";
|
|
23
23
|
/** A column of the roles-table row `r`. */
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as requiredPlans } from "../errors-
|
|
2
|
-
import { i as describe } from "../describe-
|
|
1
|
+
import { c as requiredPlans } from "../errors-CXxQwtbZ.js";
|
|
2
|
+
import { i as describe } from "../describe-CazEjtOH.js";
|
|
3
3
|
import { t as PermissionBoundaryState } from "../boundary-C9ck-3uK.js";
|
|
4
|
-
import { _ as
|
|
4
|
+
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, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-CDabEiO9.js";
|
|
5
5
|
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";
|
|
6
6
|
import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
|
|
7
|
-
import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-
|
|
8
|
-
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-
|
|
7
|
+
import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-CErg7ft6.js";
|
|
8
|
+
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-Mw_VAJ3B.js";
|
|
9
9
|
import { Component } from "svelte";
|
|
10
10
|
//#region src/svelte/index.d.ts
|
|
11
11
|
export declare const Protected: Component<ProtectedProps>;
|
package/dist/svelte/index.js
CHANGED
|
@@ -3,10 +3,10 @@ import { n as describe } from "../describe-BZAlPHxT.js";
|
|
|
3
3
|
import { n as boundaryFallback, t as boundaryDigest } from "../boundary-BV3O1eud.js";
|
|
4
4
|
import { r as approvalHeaders } from "../protected-action-OpOxtTsN.js";
|
|
5
5
|
import { u as slotContent } from "../views-MWmJ6Y4P.js";
|
|
6
|
-
import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-
|
|
7
|
-
import { n as getUi, t as getStore } from "../context-
|
|
6
|
+
import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-COLWAd1K.js";
|
|
7
|
+
import { n as getUi, t as getStore } from "../context-KrAhRY22.js";
|
|
8
8
|
import { n as viewFor, t as scopedFor } from "../runtime-rf0ZuyF3.js";
|
|
9
|
-
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-
|
|
9
|
+
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-DYxx75fk.js";
|
|
10
10
|
import "svelte/internal/disclose-version";
|
|
11
11
|
import * as $ from "svelte/internal/client";
|
|
12
12
|
import { onDestroy } from "svelte";
|
package/dist/svelte/runtime.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as DescribeMessages } from "../describe-
|
|
1
|
+
import { n as DescribeMessages } from "../describe-CazEjtOH.js";
|
|
2
2
|
import { n as boundaryDigest, r as boundaryFallback, t as PermissionBoundaryState } from "../boundary-C9ck-3uK.js";
|
|
3
|
-
import { t as ClientStore } from "../store-
|
|
4
|
-
import { a as scopedFor, c as slotContent, i as ProtectedProps, o as viewFor, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-
|
|
3
|
+
import { t as ClientStore } from "../store-core-CDabEiO9.js";
|
|
4
|
+
import { a as scopedFor, c as slotContent, i as ProtectedProps, o as viewFor, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-CErg7ft6.js";
|
|
5
5
|
//#region src/svelte/context.d.ts
|
|
6
6
|
/** The provider's `defaults` and `messages`. */
|
|
7
7
|
type PermDockUi = {
|
package/dist/svelte/runtime.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as boundaryFallback, t as boundaryDigest } from "../boundary-BV3O1eud.js";
|
|
2
2
|
import { u as slotContent } from "../views-MWmJ6Y4P.js";
|
|
3
|
-
import { n as getUi, t as getStore } from "../context-
|
|
3
|
+
import { n as getUi, t as getStore } from "../context-KrAhRY22.js";
|
|
4
4
|
import { n as viewFor, t as scopedFor } from "../runtime-rf0ZuyF3.js";
|
|
5
5
|
export { boundaryDigest, boundaryFallback, getStore, getUi, scopedFor, slotContent, viewFor };
|
package/dist/svelte/source.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as requiredPlans } from "../errors-
|
|
2
|
-
import { i as describe } from "../describe-
|
|
1
|
+
import { c as requiredPlans } from "../errors-CXxQwtbZ.js";
|
|
2
|
+
import { i as describe } from "../describe-CazEjtOH.js";
|
|
3
3
|
import { t as PermissionBoundaryState } from "../boundary-C9ck-3uK.js";
|
|
4
|
-
import { _ as
|
|
4
|
+
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, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-CDabEiO9.js";
|
|
5
5
|
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";
|
|
6
6
|
import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
|
|
7
|
-
import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-
|
|
8
|
-
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-
|
|
7
|
+
import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-CErg7ft6.js";
|
|
8
|
+
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-Mw_VAJ3B.js";
|
|
9
9
|
import { Component } from "svelte";
|
|
10
10
|
//#region src/svelte/source.d.ts
|
|
11
11
|
export declare const Protected: Component<ProtectedProps>;
|
package/dist/svelte/source.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as requiredPlans } from "../problem-details-CLDgX1KV.js";
|
|
2
2
|
import { n as describe } from "../describe-BZAlPHxT.js";
|
|
3
3
|
import { r as approvalHeaders } from "../protected-action-OpOxtTsN.js";
|
|
4
|
-
import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-
|
|
5
|
-
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-
|
|
4
|
+
import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-COLWAd1K.js";
|
|
5
|
+
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-DYxx75fk.js";
|
|
6
6
|
import PermissionBoundaryComponent from "./PermissionBoundary.svelte";
|
|
7
7
|
import ProtectedComponent from "./Protected.svelte";
|
|
8
8
|
//#region src/svelte/source.ts
|
|
@@ -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 { RequestEvent } from "@sveltejs/kit";
|
|
8
8
|
//#region src/sveltekit/create.d.ts
|
|
9
9
|
/**
|