permdock 0.21.0 → 0.22.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/README.md +2 -1
- package/dist/a2a/index.d.ts +5 -5
- package/dist/a2a/index.js +5 -4
- package/dist/{adoption-scan-UkQisAqe.js → adoption-scan-_bHLMnVQ.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 +4 -4
- package/dist/ai-sdk/index.js +3 -3
- package/dist/app/index.d.ts +85 -0
- package/dist/app/index.js +91 -0
- package/dist/app-DIvM65Mv.js +24 -0
- package/dist/{approval-policies-CKlByf5o.d.ts → approval-policies-UnDSxT__.d.ts} +2 -2
- package/dist/{approval-prompt-CQFiO1KE.d.ts → approval-prompt-2hTqo6IM.d.ts} +2 -2
- package/dist/approvals/index.d.ts +3 -3
- package/dist/approvals/index.js +3 -3
- package/dist/{approvals-CuXILe52.js → approvals-B_sn4Wrn.js} +6 -6
- package/dist/{arazzo-CUthH61H.js → arazzo-BXD-VJU_.js} +1 -1
- package/dist/{arazzo-BC3uLIZy.js → arazzo-Ct0PGblq.js} +3 -3
- package/dist/astro/index.d.ts +6 -6
- package/dist/astro/index.js +2 -2
- package/dist/{audience-BUonniPx.js → audience-5Xx1hdIv.js} +1 -1
- package/dist/{auth-j3Eu-j4h.js → auth-BxXHxWRy.js} +1 -1
- package/dist/authzen/index.d.ts +5 -5
- package/dist/authzen/index.js +4 -4
- package/dist/{automation-CpOk7Tlu.d.ts → automation-B20_8UoT.d.ts} +3 -3
- package/dist/{automation-x3KEUusw.js → automation-BueW05db.js} +2 -2
- package/dist/better-auth/index.d.ts +2 -2
- package/dist/better-auth/index.js +1 -1
- package/dist/better-supabase/index.d.ts +113 -56
- package/dist/better-supabase/index.js +200 -62
- package/dist/better-supabase-DF8f8oly.js +194 -0
- package/dist/{bind-CJf7S-Jd.js → bind-B4Z0U2Gr.js} +5 -5
- package/dist/{bind-XvnD_SUz.d.ts → bind-CnOMjazH.d.ts} +7 -7
- package/dist/{build-instance-CkRKgjSj.js → build-instance-B0vsViF5.js} +3 -25
- package/dist/{capability-zN6T9fxe.js → capability-CenWwTMR.js} +1 -1
- package/dist/{capability-v2xZB7us.d.ts → capability-YkRMUAsF.d.ts} +2 -2
- package/dist/{casbin-BOZN1P2Y.js → casbin-D5evU3lX.js} +1 -1
- package/dist/{casbin-v9Xo_XPa.js → casbin-imBS3UIf.js} +1 -1
- package/dist/catalog/index.d.ts +5 -5
- package/dist/catalog/index.js +5 -5
- package/dist/catalog-C462QC3A.js +1 -0
- package/dist/{catalog-DjDc87R2.js → catalog-CoyKnU5c.js} +1 -1
- package/dist/{catalog-s0waIrfY.js → catalog-Y4CjN8NA.js} +4 -4
- package/dist/{catalog-operations-BD22drQf.js → catalog-operations-Do1eD-Rt.js} +1 -1
- package/dist/{challenge-DbkpCx_v.js → challenge-B__LcNve.js} +3 -3
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +3 -2
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +2 -2
- package/dist/clerk/index.d.ts +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/index.d.ts +8 -7
- package/dist/cli/index.js +3 -3
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +3 -3
- package/dist/{cloud-CB0btByh.js → cloud-DWCeStPH.js} +2 -2
- package/dist/{codemod-C3a3Iz_w.js → codemod-B7QKJ_ak.js} +2 -2
- package/dist/{codemod-B-duJDFD.js → codemod-BaPmaCYQ.js} +13 -6
- package/dist/{collect-DN_x7hvV.js → collect-Cr71JA7z.js} +8 -7
- package/dist/{collect-DMQ6Sxr6.js → collect-ScSG05VJ.js} +2 -2
- package/dist/collect-W9i7REKT.js +1 -0
- package/dist/compile/index.d.ts +1 -1
- package/dist/compile/index.js +1 -1
- package/dist/{compile-B_oJqmIg.js → compile-Cvru58id.js} +2 -2
- package/dist/{compile-DonvwG9x.d.ts → compile-DC-BrhH1.d.ts} +3 -3
- package/dist/{completion-6IshPaPd.js → completion-DOUMyCwa.js} +1 -1
- package/dist/{delegation-aK4T_5WU.js → condition-evaluate-bVVRSdzq.js} +159 -159
- package/dist/{config-C45X7mpm.js → config-DRp-E8Ly.js} +1 -1
- package/dist/{config-D2oXUwos.js → config-DyNanTjZ.js} +10 -8
- package/dist/{config-report-Bmo62RRr.js → config-report-Bh_nLdAE.js} +2 -2
- package/dist/{config-shape-D9paLhEX.js → config-shape-C4zqzG2K.js} +9 -2
- package/dist/{context-YhyXyqBI.js → context-Cem4QafV.js} +2 -2
- package/dist/convex/index.d.ts +5 -5
- package/dist/convex/index.js +2 -2
- package/dist/{core-Dxkwz4xR.js → core-CUjhfz0W.js} +6 -6
- package/dist/{core-9KbhurkH.d.ts → core-D2JNg5jA.d.ts} +3 -3
- package/dist/coverage-D8jBJdgD.d.ts +114 -0
- package/dist/coverage-Dh2W_DmF.js +211 -0
- package/dist/{create-DH4ZD0A7.d.ts → create-B2tdOygC.d.ts} +7 -7
- package/dist/{create-Q0wF9Elt.js → create-BJ2_8NDO.js} +5 -5
- package/dist/{create-BRiRVNUO.js → create-BsL5lCWR.js} +8 -7
- package/dist/{create-BzgDDamI.d.ts → create-CPDSbK1a.d.ts} +5 -5
- package/dist/{create-BQOQkYYg.d.ts → create-oMCcZV4X.d.ts} +9 -9
- package/dist/{credential-B3Hj4puZ.js → credential-Bap3HClV.js} +4 -4
- package/dist/{server-D0PW6ZCw.js → credentials-BXV0oz56.js} +3 -146
- package/dist/credentials-DPX140fN.d.ts +125 -0
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-De8cw3MW.d.ts → denied-text-BXQkWU7d.d.ts} +2 -2
- package/dist/{describe-DibQM6g-.d.ts → describe-DVobr5FX.d.ts} +2 -2
- package/dist/{diff-BJv7I3GR.js → diff-BR9JArxz.js} +6 -6
- package/dist/{diff-3fpwo3UD.js → diff-Jc_kbDz-.js} +1 -1
- package/dist/{doctor-Bz7s3JYD.js → doctor-BBMW5ZT_.js} +310 -36
- package/dist/{doctor-keoa9DpH.js → doctor-DhqSiPkq.js} +3 -3
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/drizzle/index.js +1 -1
- package/dist/elysia/index.d.ts +5 -5
- package/dist/elysia/index.js +3 -3
- package/dist/{errors-OTE9u4Wk.d.ts → errors-D_JIQJYb.d.ts} +1 -1
- package/dist/{evaluate-Dcq_U2TV.js → evaluate-B5yZHmts.js} +16 -16
- package/dist/{evaluations-CNMVJVD6.js → evaluations-BzTDWO4m.js} +57 -57
- package/dist/{evaluations-OCm_Z-8V.d.ts → evaluations-DQYfh4Jh.d.ts} +3 -3
- package/dist/eve/index.d.ts +5 -5
- package/dist/eve/index.js +3 -3
- package/dist/express/index.d.ts +5 -5
- package/dist/express/index.js +3 -3
- package/dist/fastify/index.d.ts +5 -5
- package/dist/fastify/index.js +3 -3
- package/dist/{fetch-adapter-BlL-ZhHq.d.ts → fetch-adapter-DxqsIXSO.d.ts} +4 -4
- package/dist/{fetch-adapter-4EB3cLgB.js → fetch-adapter-MoYZ-vF5.js} +3 -3
- package/dist/{fields-D_TfExiI.js → fields-CVyOk-f1.js} +2 -2
- package/dist/{fixtures-Cemqurt8.js → fixtures-BVZc7OCF.js} +1 -1
- package/dist/{from-snapshot-DHnb8Fh4.js → from-snapshot-oR_N97dM.js} +346 -14
- package/dist/{gen-DYF4LKUP.js → gen-DXXoFjyf.js} +1 -1
- package/dist/{gen-Cf7nQsOb.js → gen-WdycZ_-b.js} +5 -5
- package/dist/{grantee-conditions-DX4K_gGI.js → grantee-conditions-Dzprappv.js} +1 -1
- package/dist/{grantee-match-BP-k4vRJ.js → grantee-match-8J2y60MF.js} +3 -3
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +3 -3
- package/dist/{helpers-D-MXwkOF.js → helpers-DzBIfL1N.js} +25 -25
- package/dist/hono/index.d.ts +5 -5
- package/dist/hono/index.js +3 -3
- package/dist/{hosted-C2Pmhy2x.js → hosted-C5I2TSXm.js} +4 -4
- package/dist/{hosted-yhyAuQkL.d.ts → hosted-DXq1plaP.d.ts} +1 -1
- package/dist/{http-DhMWeB_h.js → http-dptLQzPP.js} +1 -1
- package/dist/{expiry-6XByK0dm.js → ids-DzhJaCUj.js} +23 -23
- package/dist/{import-CQ_kH_Ny.js → import-BE5sDazm.js} +2 -2
- package/dist/{import-C2ExjVvv.js → import-CvXswHDy.js} +2 -2
- package/dist/index-BcS8c_2S.d.ts +101 -0
- package/dist/{index--AwSBzJC.d.ts → index-BdZpqhJK.d.ts} +2 -2
- package/dist/{index-CLbGOPBr.d.ts → index-C-R8lBPb.d.ts} +3 -3
- package/dist/{index-Do7FqHEr.d.ts → index-C_8uxAlv.d.ts} +5 -5
- package/dist/{index-tuR-kZoJ.d.ts → index-Cjfa1Uwr.d.ts} +21 -40
- package/dist/{index-BqzpT-90.d.ts → index-iIsqXFVu.d.ts} +6 -6
- package/dist/index.d.ts +19 -20
- package/dist/index.js +25 -24
- package/dist/{init-kTFkEu8S.js → init-B_S8Xdz1.js} +4 -4
- package/dist/{init-DvkvbvZ_.js → init-CqGHcvyR.js} +2 -2
- package/dist/{instance-options-Cq66kEeR.d.ts → instance-options-C6gEDOts.d.ts} +1 -1
- package/dist/instance-options-URVwqpMW.js +24 -0
- package/dist/{instance-snapshot-Bi4-dJk0.js → instance-snapshot-D_dGTq--.js} +9 -9
- package/dist/jwt/index.d.ts +4 -4
- package/dist/jwt/index.js +2 -2
- package/dist/{kernel-CLEzDmbv.js → kernel-NmxiWII2.js} +8 -8
- package/dist/kysely/index.d.ts +3 -3
- package/dist/kysely/index.js +1 -1
- package/dist/limits-CAhpRrhk.js +167 -0
- package/dist/{load-BaEamml-.js → load-C4p4VgwR.js} +2 -2
- package/dist/load-DiBUJx77.js +1 -0
- package/dist/{login-9ycIcJZH.js → login-CzwlsBEO.js} +4 -4
- package/dist/{login-CM_etiLM.js → login-DoLxv1s5.js} +3 -3
- package/dist/{manifest-CCd-xrM3.js → manifest-BAf7cgRx.js} +35 -35
- package/dist/{map-claims-PQwHynxV.js → map-claims-CAa_bQt9.js} +1 -1
- package/dist/{map-error-EOhahOVA.js → map-error-p4ROJ_26.js} +1 -1
- package/dist/mcp/index.d.ts +9 -9
- package/dist/mcp/index.js +9 -8
- package/dist/{migrate-CkLHdwuH.js → migrate-DVsxeE0y.js} +1 -1
- package/dist/{module-values-BYuNtdK5.js → module-values-BLiVlO1X.js} +3 -3
- package/dist/nest/index.d.ts +5 -5
- package/dist/nest/index.js +3 -3
- package/dist/next/index.d.ts +43 -17
- package/dist/next/index.js +54 -21
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +1 -1
- package/dist/node/index.d.ts +5 -5
- package/dist/node/index.js +2 -2
- package/dist/openai/index.d.ts +5 -5
- package/dist/openai/index.js +3 -3
- package/dist/openapi/index.d.ts +5 -59
- package/dist/openapi/index.js +3 -2
- package/dist/{openapi-BOsx0xn9.js → openapi-Cc-aS9xC.js} +6 -135
- package/dist/{openapi-QnnU2A1c.js → openapi-DroBcLJZ.js} +2 -2
- package/dist/{openapi-DA7FVG2F.js → openapi-EmvKwuWj.js} +4 -4
- package/dist/{operations-Ci_rT6Uo.d.ts → operations-BMPx7HyO.d.ts} +1 -1
- package/dist/optional-8TKc-0j4.js +47 -0
- package/dist/orpc/index.d.ts +7 -7
- package/dist/orpc/index.js +4 -4
- package/dist/otel/index.d.ts +3 -3
- package/dist/otel/index.js +1 -1
- package/dist/{output-KT0a3B3H.js → output-CYgfpT6o.js} +1 -1
- package/dist/{ownership-CeNOtQMV.js → ownership-adPAsUwY.js} +15 -13
- package/dist/{parse-CXTT7hBq.js → parse-CORUNcCo.js} +1 -1
- package/dist/{parse-local-manifest-CE4tgFsj.d.ts → parse-local-manifest-BaCqsqwC.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +4 -3
- package/dist/{permdock-DbAq8_Fp.js → permdock-B5LyNVgn.js} +70 -34
- package/dist/{permdock-CsrvbzHk.d.ts → permdock-BaB-KQqn.d.ts} +46 -9
- package/dist/{permissions-Dz79qsFw.js → permissions-COpRGKt7.js} +1 -1
- package/dist/{permissions-Bx6UI8n1.d.ts → permissions-DriWkV7q.d.ts} +1 -2
- package/dist/{policy-from-catalog-BtqfxytV.js → policy-from-catalog-Cy103lsm.js} +8 -8
- package/dist/{policy-types-BI9C5Sp5.d.ts → policy-types-rNfz7t0M.d.ts} +9 -3
- package/dist/{policy-CaAME-Rh.js → policy-wGzbAPQF.js} +7 -7
- package/dist/{policy-Dh9WVSVz.d.ts → policy-x8RBKW8d.d.ts} +2 -2
- package/dist/{postgrest-CWCCbaxm.d.ts → postgrest-Cn0Res25.d.ts} +9 -21
- package/dist/powersync-BdoR7nwS.js +1 -0
- package/dist/{powersync-CWsN-QaK.js → powersync-BeI0VmEK.js} +2 -2
- package/dist/{powersync-DiqY3VBG.js → powersync-Dpa5AnnN.js} +11 -11
- package/dist/preset/index.js +1 -1
- package/dist/{preset-pPrVyGU5.js → preset-Bn5Z54cH.js} +5 -6
- package/dist/prisma/index.d.ts +2 -2
- package/dist/prisma/index.js +1 -1
- package/dist/{protected-action-CuG0xz4P.d.ts → protected-action-C4aj1KjO.d.ts} +6 -7
- package/dist/{protected-action-CD1HXwQK.js → protected-action-E7Sdt_Dt.js} +1 -1
- package/dist/{provider-ihxuJbMi.d.ts → provider-B-1DlOGM.d.ts} +1 -1
- package/dist/{provider-qESIf_C0.js → provider-DKO9KHua.js} +2 -2
- package/dist/{provider-store-BTHGJH9j.js → provider-store-D4PU1my_.js} +2 -2
- package/dist/{pull-B4EhSqOG.js → pull-3tkn25ll.js} +5 -5
- package/dist/pull-D90HqWNP.js +1 -0
- package/dist/{push-DYOI4bPf.js → push-dMyKdlEm.js} +6 -6
- package/dist/{pushed-policy-Dszouliu.js → pushed-policy-Bi5-il4C.js} +2 -2
- package/dist/{pushed-policy-P0hgyLBh.d.ts → pushed-policy-P55cJNx5.d.ts} +1 -1
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +3 -3
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +9 -9
- package/dist/react-native/index.js +7 -7
- package/dist/{relation-walk-DK_gkgL7.js → relation-walk-BDTaTKTM.js} +1 -1
- package/dist/{relations-BxvRvDHK.js → relations-CMsJ1ARY.js} +1 -1
- package/dist/{replay-DYXI4gRN.d.ts → replay-DKhFvt0L.d.ts} +1 -1
- package/dist/{request-context-VjeXst1z.js → request-context-5gl_oxO1.js} +2 -2
- package/dist/resend/index.d.ts +4 -4
- package/dist/resend/index.js +2 -2
- package/dist/{resolve-names-BIHnWL_L.js → resolve-names-BnGJU88N.js} +4 -4
- package/dist/{rls-C7qXye9M.js → rls-DIYSRnDZ.js} +1 -1
- package/dist/{rls-CMFZWosz.js → rls-qrehUPf_.js} +45 -18
- package/dist/{role-builder-C5AgaC1x.js → role-builder-boQiUvfo.js} +3 -3
- package/dist/{rpc-CYXICjM1.d.ts → rpc-BqRiVpbP.d.ts} +2 -2
- package/dist/{rpc-BNIQwEB6.js → rpc-Dhi55Whd.js} +2 -2
- package/dist/run-elFdnSZx.js +1 -0
- package/dist/{run-CMJX9x7b.js → run-oNqBe0gc.js} +3 -3
- package/dist/{run-ticket-CjvXr6wj.js → run-ticket-Ddxt9OuU.js} +2 -2
- package/dist/{run-ticket-BXYqQ9dy.d.ts → run-ticket-Dulj4RQk.d.ts} +2 -2
- package/dist/{saas-DHFfthXv.js → saas-DABv6vjy.js} +6 -5
- package/dist/{scan-CSOkcNdl.js → scan-BYXqcgON.js} +1 -1
- package/dist/{schema-7pXCaRYB.js → schema-Wf-SvlHG.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/scim/index.js +1 -1
- package/dist/{scopes-BSdYaGHs.js → scopes-gdH__vDZ.js} +1 -1
- package/dist/server/index.d.ts +11 -10
- package/dist/server/index.js +7 -6
- package/dist/server-CKjFooaJ.js +147 -0
- package/dist/{server-types-Bfl-IrzZ.d.ts → server-types--_Hann81.d.ts} +9 -9
- package/dist/{shared-sW3VYchq.js → shared-DfaIWvIJ.js} +11 -2
- package/dist/{sink-RwmP7ZHs.d.ts → sink-Cs6z34AX.d.ts} +4 -4
- package/dist/{skills-DAjg-rgF.js → skills-417bOj4o.js} +1 -1
- package/dist/{skills-DrX83QBK.js → skills-B9U465B7.js} +2 -2
- package/dist/{snapshot-DHPih65J.js → snapshot-C2j96x97.js} +4 -4
- package/dist/{snapshot-cache-MPinwwgZ.d.ts → snapshot-cache-Cc7VNabe.d.ts} +1 -1
- package/dist/solid/index.d.ts +6 -7
- package/dist/solid/index.js +2 -2
- package/dist/solid-start/index.d.ts +6 -6
- package/dist/solid-start/index.js +3 -3
- package/dist/{sources-sgQlMfmz.d.ts → sources-BfTza0zT.d.ts} +1 -1
- package/dist/{src-Cop53_X1.js → src-BG9YJM3Q.js} +96 -247
- package/dist/ssf/index.d.ts +3 -3
- package/dist/ssf/index.js +3 -3
- package/dist/{standard-webhooks-CFZIYtBF.d.ts → standard-webhooks-CJBgfl7y.d.ts} +2 -2
- package/dist/{store-CSOsXd5s.js → store-BpKH-pLm.js} +2 -2
- package/dist/{store-CRQ5VrWR.d.ts → store-DSyjHD5-.d.ts} +5 -5
- package/dist/{store-options-CDvoX52-.js → store-options-CXv6BHH6.js} +5 -6
- package/dist/{stores-PpYVQ5yF.js → stores-BuqAHjp_.js} +1 -1
- package/dist/{stores-pEBMy94l.d.ts → stores-C6-7TPTV.d.ts} +6 -7
- package/dist/{postgrest-BrjrckDG.js → subject-BqFwS6l3.js} +214 -319
- package/dist/subject-cache-BT1fGuea.js +193 -0
- package/dist/subject-cache-d_Z4KAnm.d.ts +144 -0
- package/dist/supabase/index.d.ts +6 -5
- package/dist/supabase/index.js +3 -2
- package/dist/supabase/middleware.d.ts +6 -6
- package/dist/supabase/middleware.js +6 -6
- package/dist/{supabase-Cbl2orB2.js → supabase-D0J99yqL.js} +2 -2
- package/dist/{supabase-CVZuytCC.js → supabase-DnazO6W4.js} +3 -3
- package/dist/{supabase-hook-BUcu3vPM.js → supabase-hook-Bh5syR9N.js} +174 -62
- package/dist/supabase-hook-CVAenq-w.js +1 -0
- package/dist/{supautils-a_253u1X.js → supautils-ChXR-4Or.js} +302 -43
- package/dist/{support-session-BsmPCbz8.js → support-session-BGeEYDSq.js} +2 -2
- 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 +6 -6
- package/dist/sveltekit/index.js +2 -2
- package/dist/{tables-XrvffTMj.js → tables-CbEOy2Ma.js} +137 -55
- package/dist/tanstack-start/index.d.ts +6 -6
- package/dist/tanstack-start/index.js +2 -2
- package/dist/{tenancy-DvOHHk3-.js → tenancy-BlxY5T0q.js} +2 -2
- package/dist/terminal/index.d.ts +6 -6
- package/dist/terminal/index.js +6 -6
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.d.ts +35 -2
- package/dist/testing/fixtures/index.js +39 -2
- package/dist/testing/index.d.ts +41 -25
- package/dist/testing/index.js +114 -26
- package/dist/testing/saas/index.d.ts +5 -5
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.d.ts +1 -1
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +6 -6
- package/dist/trpc/index.js +4 -4
- package/dist/{type-helpers-BjOLGVy1.d.ts → type-helpers-iXJEIDe7.d.ts} +3 -4
- package/dist/{types-p8mhWTcR.d.ts → types-B9F0EZAF.d.ts} +3 -3
- package/dist/{types-DZwEOsK1.d.ts → types-BSNZMp5b.d.ts} +1 -1
- package/dist/{types-MixnvXQ5.d.ts → types-BpxdxaRD.d.ts} +5 -5
- package/dist/{types-C3C9ien9.d.ts → types-CD1qmxdx.d.ts} +4 -4
- package/dist/{types-D1NjjwI4.d.ts → types-CS1DI_Ke.d.ts} +40 -9
- package/dist/{types-zh4WGQcP.d.ts → types-C_a44wSr.d.ts} +3 -3
- package/dist/{types-DBVSljAx.d.ts → types-Cq2rvv-C.d.ts} +3 -3
- package/dist/{types--_lpWUGV.d.ts → types-CuDXvyIT.d.ts} +5 -5
- package/dist/{types-7Vlz1Wi2.d.ts → types-DAyp592k.d.ts} +2 -2
- package/dist/{types-DjGZAU64.d.ts → types-NikV1pND.d.ts} +4 -4
- package/dist/{types-BzxA2OAD.d.ts → types-ZfjQB0KC.d.ts} +2 -2
- package/dist/{types-DotXrris.d.ts → types-_pi9kxS2.d.ts} +2 -2
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-DPbdI3Vi.js → usage-0wsl83uw.js} +10 -10
- package/dist/{usage-DHsqp4lN.js → usage-Bl-BkXEq.js} +1 -1
- package/dist/usage-CmyGbo4e.js +1 -0
- package/dist/{validation-error-DkOK9zUE.d.ts → validation-error-DLAYFlkr.d.ts} +1 -1
- package/dist/{verify-C0jGJrmb.js → verify-BSLotSa0.js} +41 -24
- package/dist/version-sources-BC3hf2ME.js +34 -0
- package/dist/{permission-types-CAY-GU7e.d.ts → vocabulary-DeZvUaTw.d.ts} +69 -1
- package/dist/vue/index.d.ts +6 -7
- package/dist/vue/index.js +2 -2
- package/dist/{waiter-BjVI_Byg.d.ts → waiter-cbK1CBhT.d.ts} +2 -2
- package/dist/{watch-Dz2LNM1R.js → watch-BigZ260i.js} +2 -2
- package/dist/watch-CHURMgrv.js +1 -0
- package/dist/webmcp/index.d.ts +2 -2
- package/dist/{who-can-CZeAwQZD.js → who-can-CjfMP9a4.js} +8 -8
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +6 -5
- package/dist/workflow-sdk/index.d.ts +5 -5
- package/dist/{wrap-EQ6Or2Hi.d.ts → wrap-B-k2qHJx.d.ts} +2 -2
- package/package.json +16 -4
- package/skills/permdock-wire/references/presets-and-recipes.md +2 -2
- package/dist/better-supabase-ayun1IKE.js +0 -122
- package/dist/catalog-BTPySmbp.js +0 -1
- package/dist/collect-eSTXOZDC.js +0 -1
- package/dist/index-DuOF7OqS.d.ts +0 -222
- package/dist/load-CjnlPxpL.js +0 -1
- package/dist/powersync-CWCirKAJ.js +0 -1
- package/dist/pull-VzcECZ-R.js +0 -1
- package/dist/run-D2e1tybu.js +0 -1
- package/dist/supabase-hook-QWphWBnG.js +0 -1
- package/dist/usage-dmSjKx-Z.js +0 -1
- package/dist/version-cache-q5cpaDSt.d.ts +0 -57
- package/dist/vocabulary-DEJ5j4mR.d.ts +0 -70
- package/dist/watch-CS69ftMP.js +0 -1
- package/dist/where-scope-BAyOsPQW.js +0 -332
- package/dist/{approval-normalize-hlfO9BJv.js → approval-normalize-DNLW0zOM.js} +1 -1
- package/dist/{body-C9JbIoqb.js → body-B3ylkmmE.js} +1 -1
- package/dist/{catalog-doc-nrgfbh8I.js → catalog-doc-Zi0jRpyH.js} +2 -2
- package/dist/{device-BwbJNmb2.js → device-BkSynWdg.js} +1 -1
- package/dist/{prompt-BYc6drYW.js → prompt-D1Gj1W4Y.js} +1 -1
- package/dist/{scim-C30QBBoF.js → scim-BG6uPUeW.js} +1 -1
- package/dist/{wrap-C5PWzgkq.js → wrap-BKU5Arsu.js} +1 -1
|
@@ -1,44 +1,71 @@
|
|
|
1
1
|
import { n as isReadonlyArray, r as isRecord, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep, t as freezeCopy } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
|
|
4
|
+
import { i as decideAllWith, n as canAllWith } from "./checks-fyDOhcz0.js";
|
|
5
|
+
import { c as whereFromGrants, d as mayUse, f as permittedIds, i as signSnapshot, l as filterMemberships, m as deniedFor, n as fromSnapshot, p as decideForTarget } from "./from-snapshot-oR_N97dM.js";
|
|
4
6
|
import { a as deniedMessage, i as approvalMessage, n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "./errors-ynga1EQy.js";
|
|
5
|
-
import {
|
|
6
|
-
import { _ as keyToScope, a as getResource, c as listPermissions, g as formerScopes } from "./permission-registry-B8tYxPIt.js";
|
|
7
|
+
import { o as pickVisible, s as sanitizeContext } from "./validity-Buc7w8E9.js";
|
|
8
|
+
import { _ as keyToScope, a as getResource, c as listPermissions, g as formerScopes, n as findPermission } from "./permission-registry-B8tYxPIt.js";
|
|
7
9
|
import { n as isThenable } from "./thenable-BNSM1U2R.js";
|
|
8
10
|
import { i as readAppData } from "./app-data-UNNm07jV.js";
|
|
9
|
-
import {
|
|
10
|
-
import { o as
|
|
11
|
+
import { o as flattenGrantee } from "./grantee-Dke-9rd1.js";
|
|
12
|
+
import { d as scopeList, o as normalizeMemberships, p as tenantOf } from "./scopes-gdH__vDZ.js";
|
|
13
|
+
import { c as nowSeconds, d as resolveActiveTenant, m as tenantsOf, p as scopeField, t as heldRoleNamesIn, u as relatesTo } from "./tenancy-BlxY5T0q.js";
|
|
14
|
+
import { i as snapshotGrant } from "./snapshot-C2j96x97.js";
|
|
15
|
+
import { t as attachInternals } from "./internals-B3IgHrvo.js";
|
|
11
16
|
import { t as byCodePoint } from "./compare-DTfyUunF.js";
|
|
12
|
-
import {
|
|
13
|
-
import { d as policyX } from "./policy-CaAME-Rh.js";
|
|
17
|
+
import { d as policyX } from "./policy-wGzbAPQF.js";
|
|
14
18
|
import { r as isSubject, t as anonymousSubject } from "./subject-C7RddW0G.js";
|
|
15
|
-
import { D as emptyListeners, E as emitSafe, N as contactMemberships, O as finish, P as isContact, i as customRolesFor, o as roleSourceFor, r as assignableNamesFor, s as sourceName, t as evaluate, u as customGrantsFor, w as unknownLevelsFor } from "./evaluate-
|
|
16
|
-
import { c as heldRoleNames, d as audiencesOf, g as asMembershipSource, i as assignableIn, l as roleLeaf, o as collectSnapshotGrants, s as whereGrant, t as snapshotOf, u as applyRoleKinds } from "./instance-snapshot-
|
|
17
|
-
import { r as relationReader, t as pendingRelations } from "./relations-
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
import { i as decideAllWith, n as canAllWith } from "./checks-fyDOhcz0.js";
|
|
21
|
-
//#region src/core/app.ts
|
|
22
|
-
const APP = Symbol.for("permdock.app");
|
|
19
|
+
import { D as emptyListeners, E as emitSafe, N as contactMemberships, O as finish, P as isContact, i as customRolesFor, o as roleSourceFor, r as assignableNamesFor, s as sourceName, t as evaluate, u as customGrantsFor, w as unknownLevelsFor } from "./evaluate-B5yZHmts.js";
|
|
20
|
+
import { c as heldRoleNames, d as audiencesOf, g as asMembershipSource, i as assignableIn, l as roleLeaf, o as collectSnapshotGrants, s as whereGrant, t as snapshotOf, u as applyRoleKinds } from "./instance-snapshot-D_dGTq--.js";
|
|
21
|
+
import { r as relationReader, t as pendingRelations } from "./relations-CMsJ1ARY.js";
|
|
22
|
+
import { r as withApp } from "./app-DIvM65Mv.js";
|
|
23
|
+
//#region src/core/granted-permissions.ts
|
|
23
24
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
25
|
+
* Whether only global roles allow `permission`: it has at least one allow, and
|
|
26
|
+
* every allow is granted to a role with no `on`. Read from the policy's
|
|
27
|
+
* declared grants, never from the key; a custom role the policy does not
|
|
28
|
+
* declare is not counted.
|
|
26
29
|
*/
|
|
27
|
-
function
|
|
28
|
-
const
|
|
29
|
-
return
|
|
30
|
+
function isGlobalPermission(policy, permission) {
|
|
31
|
+
const allows = (policy.index.grantsByKey.get(permission.key) ?? []).filter((grant) => grant.effect === "allow");
|
|
32
|
+
return allows.length > 0 && allows.every((grant) => grant.scope === "global" && flattenGrantee(grant.to).every((item) => item.kind === "role" && item.scope === "global"));
|
|
33
|
+
}
|
|
34
|
+
function onInstance(entry, options) {
|
|
35
|
+
const { membership } = entry;
|
|
36
|
+
if (membership === void 0) return true;
|
|
37
|
+
if (options.scope !== void 0 && (membership.scope ?? membership.on?.resource) !== options.scope) return false;
|
|
38
|
+
return options.id === void 0 || (membership.id ?? membership.on?.id) === options.id;
|
|
30
39
|
}
|
|
31
40
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
41
|
+
* Every permission a type-level check (`can(permission)` with no row) grants in
|
|
42
|
+
* one tenant, listed in one pass over the grants `snapshot()` builds. A listing
|
|
43
|
+
* to render and filter with, never a decision: a permission granted only
|
|
44
|
+
* through the relationship graph or a time-bounded relation is left out, as in
|
|
45
|
+
* a snapshot.
|
|
34
46
|
*/
|
|
35
|
-
function
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
47
|
+
function grantedPermissionsOf(policy, snapshot, options = {}) {
|
|
48
|
+
const grants = snapshot.grants.filter((entry) => onInstance(entry, options));
|
|
49
|
+
const keys = new Set(grants.filter((entry) => entry.effect === "allow").map((entry) => entry.permission));
|
|
50
|
+
const team = teamOf(policy, options);
|
|
51
|
+
const scoped = fromSnapshot({
|
|
52
|
+
...snapshot,
|
|
53
|
+
grants
|
|
54
|
+
}, {
|
|
55
|
+
...options.tenant === void 0 ? {} : { tenant: options.tenant },
|
|
56
|
+
...team === void 0 ? {} : { team }
|
|
57
|
+
});
|
|
58
|
+
const listed = [];
|
|
59
|
+
for (const key of keys) {
|
|
60
|
+
const permission = findPermission(policy.permissions, key);
|
|
61
|
+
if (permission !== void 0 && scoped.can(permission)) listed.push(permission);
|
|
62
|
+
}
|
|
63
|
+
return listed;
|
|
64
|
+
}
|
|
65
|
+
/** `id` names the second scope's instance when `scope` is that scope. */
|
|
66
|
+
function teamOf(policy, options) {
|
|
67
|
+
const second = scopeList(policy.scopes)[1];
|
|
68
|
+
return second !== void 0 && options.scope === second.name ? options.id : void 0;
|
|
42
69
|
}
|
|
43
70
|
//#endregion
|
|
44
71
|
//#region src/core/freshness.ts
|
|
@@ -631,8 +658,16 @@ function buildInstance(policy, subject, envBase, team) {
|
|
|
631
658
|
relationCache
|
|
632
659
|
}, id);
|
|
633
660
|
},
|
|
634
|
-
memberships() {
|
|
635
|
-
return subject.principal?.memberships ?? [];
|
|
661
|
+
memberships(filter) {
|
|
662
|
+
return filterMemberships(subject.principal?.memberships ?? [], filter);
|
|
663
|
+
},
|
|
664
|
+
grantedPermissions(options) {
|
|
665
|
+
return grantedPermissionsOf(policy, snapshotOf(policy, subject, {
|
|
666
|
+
customRoles: envBase.customRoles,
|
|
667
|
+
customGrants,
|
|
668
|
+
omitAssignable: true,
|
|
669
|
+
...envBase.simulated === void 0 ? {} : { simulated: envBase.simulated }
|
|
670
|
+
}), options);
|
|
636
671
|
},
|
|
637
672
|
tenants() {
|
|
638
673
|
return tenantsOf(subject.principal, scopeList(policy.scopes));
|
|
@@ -782,14 +817,15 @@ function hasScope(granted, scopes) {
|
|
|
782
817
|
* One memo per `getPermDock` call. A read that throws is not kept, so the next
|
|
783
818
|
* caller tries again.
|
|
784
819
|
*/
|
|
785
|
-
function sourceMemo() {
|
|
820
|
+
function sourceMemo(version) {
|
|
786
821
|
const answers = /* @__PURE__ */ new Map();
|
|
787
|
-
|
|
822
|
+
const memo = (key, read) => {
|
|
788
823
|
if (answers.has(key)) return answers.get(key);
|
|
789
824
|
const answer = read();
|
|
790
825
|
answers.set(key, answer);
|
|
791
826
|
return answer;
|
|
792
827
|
};
|
|
828
|
+
return typeof version === "number" && Number.isSafeInteger(version) && version >= 0 ? Object.assign(memo, { version }) : memo;
|
|
793
829
|
}
|
|
794
830
|
//#endregion
|
|
795
831
|
//#region src/core/resolve-subject.ts
|
|
@@ -1129,7 +1165,7 @@ function instantiate(codePolicy, subject, options, auth, memo) {
|
|
|
1129
1165
|
function create(policy, user, given) {
|
|
1130
1166
|
const options = withApp(policy, given);
|
|
1131
1167
|
const auth = [];
|
|
1132
|
-
const memo = sourceMemo();
|
|
1168
|
+
const memo = sourceMemo(options.version?.known);
|
|
1133
1169
|
const subject = resolveSubject(policy, user, options, auth, memo);
|
|
1134
1170
|
if (isThenable(subject)) return subject.then((resolved) => instantiate(policy, resolved, options, auth, memo));
|
|
1135
1171
|
return instantiate(policy, subject, options, auth, memo);
|
|
@@ -1157,4 +1193,4 @@ function getPermDock(policy, user, options = {}) {
|
|
|
1157
1193
|
return Promise.resolve().then(() => instances === void 0 ? create(policy, user, rest) : cachedInstance(policy, user, rest, instances, (cached) => create(policy, user, cached)));
|
|
1158
1194
|
}
|
|
1159
1195
|
//#endregion
|
|
1160
|
-
export { delegatedScopeMap as a,
|
|
1196
|
+
export { delegatedScopeMap as a, isGlobalPermission as c, challengeScope as i, getPermDockSync as n, hasScope as o, resolveSubject as r, scopesReaching as s, getPermDock as t };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { D as Policy, Er as Condition, J as CustomRoleSourceFactory, N as PolicyVocabulary, Q as Intent, Sn as Scope, X as DecisionSink, Yn as Decision, Z as EntitlementSource, _t as TokenSigner, an as SnapshotTenants, ar as Quota, ct as RelationSource, en as Snapshot, er as ExplainedDecision, hr as Delegation, ir as Obligation, it as MembershipSource, lr as Actor, lt as SettingsSource, nr as LimitDetail, nt as LimitStore, q as CustomRoleSource, qt as Instant, un as DecisionEvent, vr as Membership, wr as AdapterId, xr as Subject, y as GrantLimit, yr as Principal } from "./policy-types-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import { a as HostedPolicies } from "./hosted-yhyAuQkL.js";
|
|
1
|
+
import { D as Policy, Er as Condition, J as CustomRoleSourceFactory, N as PolicyVocabulary, Q as Intent, Sn as Scope, X as DecisionSink, Yn as Decision, Z as EntitlementSource, _t as TokenSigner, an as SnapshotTenants, ar as Quota, ct as RelationSource, en as Snapshot, er as ExplainedDecision, hr as Delegation, ir as Obligation, it as MembershipSource, lr as Actor, lt as SettingsSource, nr as LimitDetail, nt as LimitStore, q as CustomRoleSource, qt as Instant, un as DecisionEvent, vr as Membership, wr as AdapterId, xr as Subject, y as GrantLimit, yr as Principal } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { K as AppData, P as ResourceNode, V as RowOf, a as RoleTree, n as PlanTree, r as Role, w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
+
import { t as Operation } from "./operations-BMPx7HyO.js";
|
|
4
|
+
import { t as ApprovalPolicies } from "./approval-policies-UnDSxT__.js";
|
|
5
|
+
import { a as HostedPolicies } from "./hosted-DXq1plaP.js";
|
|
7
6
|
//#region src/core/checks.d.ts
|
|
8
7
|
/**
|
|
9
8
|
* One check of `canAll` or `decideAll`: a permission alone, or with the row it
|
|
@@ -18,6 +17,24 @@ type PermissionState = {
|
|
|
18
17
|
readonly reason?: string;
|
|
19
18
|
};
|
|
20
19
|
//#endregion
|
|
20
|
+
//#region src/core/granted-permissions.d.ts
|
|
21
|
+
/** What `permdock.grantedPermissions()` lists permissions for. */
|
|
22
|
+
type GrantedPermissionsOptions = {
|
|
23
|
+
/** Default the active tenant. */
|
|
24
|
+
readonly tenant?: string;
|
|
25
|
+
/** Only memberships of this declared scope, or of this resource. */
|
|
26
|
+
readonly scope?: string;
|
|
27
|
+
/** Only the membership on this scope or resource instance. */
|
|
28
|
+
readonly id?: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Whether only global roles allow `permission`: it has at least one allow, and
|
|
32
|
+
* every allow is granted to a role with no `on`. Read from the policy's
|
|
33
|
+
* declared grants, never from the key; a custom role the policy does not
|
|
34
|
+
* declare is not counted.
|
|
35
|
+
*/
|
|
36
|
+
declare function isGlobalPermission(policy: Policy, permission: Permission): boolean;
|
|
37
|
+
//#endregion
|
|
21
38
|
//#region src/core/instance-cache.d.ts
|
|
22
39
|
type InstanceCacheStats = {
|
|
23
40
|
/** Instances and source answers built or read. */
|
|
@@ -81,7 +98,7 @@ type InstanceCacheOptions = {
|
|
|
81
98
|
readonly maxEntries?: number;
|
|
82
99
|
/**
|
|
83
100
|
* Milliseconds an entry is reused: the longest a custom-role or entitlement
|
|
84
|
-
* change waits to reach an instance. Default
|
|
101
|
+
* change waits to reach an instance. Default 30,000; clamped to 0 to 60,000.
|
|
85
102
|
*/
|
|
86
103
|
readonly maxAgeMs?: number;
|
|
87
104
|
/** Epoch milliseconds. */
|
|
@@ -141,6 +158,15 @@ type PermittedIdsOptions = {
|
|
|
141
158
|
readonly conditioned?: boolean;
|
|
142
159
|
};
|
|
143
160
|
//#endregion
|
|
161
|
+
//#region src/core/membership-filter.d.ts
|
|
162
|
+
/** What `permdock.memberships()` narrows to. */
|
|
163
|
+
type MembershipFilter = {
|
|
164
|
+
/** An open `MembershipVia`: `"staff"` matches the memberships written with it. */
|
|
165
|
+
readonly via?: Membership["via"];
|
|
166
|
+
/** A declared scope name, or the resource of an `{ on }` membership. */
|
|
167
|
+
readonly scope?: string;
|
|
168
|
+
};
|
|
169
|
+
//#endregion
|
|
144
170
|
//#region src/core/principal-source.d.ts
|
|
145
171
|
/**
|
|
146
172
|
* An identity the application has linked to one of its principals: an email
|
|
@@ -471,7 +497,11 @@ type PermDock<V extends PolicyVocabulary = PolicyVocabulary> = {
|
|
|
471
497
|
readonly on: (event: "decision" | "denied" | "approval" | "auth" | "error", handler: (payload: unknown) => void) => () => void;
|
|
472
498
|
readonly tenant: (id: string) => PermDock<V>;
|
|
473
499
|
readonly team: (id: string) => PermDock<V>;
|
|
474
|
-
|
|
500
|
+
/**
|
|
501
|
+
* The subject's memberships, narrowed by `via` (an open `MembershipVia`, so
|
|
502
|
+
* `"staff"` matches) and by `scope`.
|
|
503
|
+
*/
|
|
504
|
+
readonly memberships: (filter?: MembershipFilter) => readonly Membership[];
|
|
475
505
|
readonly tenants: () => readonly string[];
|
|
476
506
|
/**
|
|
477
507
|
* Roles held in a tenant (the active one by default), or only on the
|
|
@@ -483,6 +513,13 @@ type PermDock<V extends PolicyVocabulary = PolicyVocabulary> = {
|
|
|
483
513
|
readonly scope?: string;
|
|
484
514
|
readonly id?: string;
|
|
485
515
|
}) => readonly Role[];
|
|
516
|
+
/**
|
|
517
|
+
* Every permission a type-level check grants in a tenant (the active one by
|
|
518
|
+
* default), optionally on one `scope` instance: a listing to render with in
|
|
519
|
+
* one pass over the snapshot's grants, never a decision. A snapshot-built
|
|
520
|
+
* instance lists nothing.
|
|
521
|
+
*/
|
|
522
|
+
readonly grantedPermissions: (options?: GrantedPermissionsOptions) => readonly Permission[];
|
|
486
523
|
/**
|
|
487
524
|
* The distinct `meta.audience` values of the roles held in the active tenant,
|
|
488
525
|
* in rank order.
|
|
@@ -634,4 +671,4 @@ declare function getPermDockSync<TUser, TPrincipal extends Principal = Principal
|
|
|
634
671
|
*/
|
|
635
672
|
declare function getPermDock<TUser, TPrincipal extends Principal = Principal, V extends PolicyVocabulary = PolicyVocabulary>(policy: Policy<TUser, TPrincipal, V>, user: TUser | Subject | null, options?: PermDockOptions): Promise<PermDock<V>>;
|
|
636
673
|
//#endregion
|
|
637
|
-
export {
|
|
674
|
+
export { GrantedPermissionsOptions as A, memoryLimitStore as C, InstanceCacheOptions as D, InstanceCacheKey as E, PermissionCheck as M, PermissionState as N, InstanceCacheStats as O, limits as S, InstanceCache as T, PrincipalSource as _, PermDock as a, PermittedIdsOptions as b, RowPair as c, UncheckedData as d, WhereResult as f, PrincipalIdentityLink as g, PrincipalIdentity as h, LoadedRows as i, isGlobalPermission as j, instanceCache as k, SimulateOptions as l, getPermDockSync as m, DecideOptions as n, PermDockOptions as o, getPermDock as p, DeriveOptions as r, RowData as s, DecideIdsOptions as t, SnapshotOptions as u, memoryPrincipalSource as v, CustomRoleOwner as w, Limits as x, MembershipFilter as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as crud } from "./src-
|
|
1
|
+
import { c as crud } from "./src-BG9YJM3Q.js";
|
|
2
2
|
import { v as resource } from "./permission-registry-B8tYxPIt.js";
|
|
3
3
|
import { f as definePlans, p as defineRoles } from "./grantee-Dke-9rd1.js";
|
|
4
4
|
import { t as definePermissions } from "./permissions-BaoLxy66.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as Role, t as Plan } from "./vocabulary-DEJ5j4mR.js";
|
|
1
|
+
import { A as ResourceInit, C as InferPermissionTree, r as Role, t as Plan } from "./vocabulary-DeZvUaTw.js";
|
|
3
2
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
4
3
|
//#region src/testing/saas/permissions.d.ts
|
|
5
4
|
declare const SaasProjectSchema: StandardSchemaV1<SaasProject>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
|
-
import { l as normalizeWhere } from "./role-builder-
|
|
3
|
+
import { l as normalizeWhere } from "./role-builder-boQiUvfo.js";
|
|
4
4
|
import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
|
|
5
|
+
import { r as readWireValidity } from "./validity-Buc7w8E9.js";
|
|
5
6
|
import { i as getRegistry, n as findPermission, v as resource } from "./permission-registry-B8tYxPIt.js";
|
|
6
|
-
import { n as defineScopes } from "./scopes-BSdYaGHs.js";
|
|
7
7
|
import { f as definePlans, p as defineRoles } from "./grantee-Dke-9rd1.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { a as indexPolicy, f as normalizeDelegation } from "./policy-
|
|
11
|
-
import { o as isPortableCondition } from "./hosted-
|
|
8
|
+
import { n as defineScopes } from "./scopes-gdH__vDZ.js";
|
|
9
|
+
import { o as readWireApproval } from "./approval-normalize-DNLW0zOM.js";
|
|
10
|
+
import { a as indexPolicy, f as normalizeDelegation } from "./policy-wGzbAPQF.js";
|
|
11
|
+
import { o as isPortableCondition } from "./hosted-C5I2TSXm.js";
|
|
12
12
|
import { t as definePermissions } from "./permissions-BaoLxy66.js";
|
|
13
13
|
import { n as copyJson, t as checkSchema } from "./json-schema-BPGa-RjQ.js";
|
|
14
|
-
import { t as parseCatalog } from "./parse-
|
|
15
|
-
import { n as parsePushedPolicy } from "./pushed-policy-
|
|
14
|
+
import { t as parseCatalog } from "./parse-CORUNcCo.js";
|
|
15
|
+
import { n as parsePushedPolicy } from "./pushed-policy-Bi5-il4C.js";
|
|
16
16
|
//#region src/catalog/json-schema-validator.ts
|
|
17
17
|
const ANNOTATIONS = /* @__PURE__ */ new Set([
|
|
18
18
|
"$schema",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as RoleTree, i as RoleMeta, n as PlanTree, r as Role, t as Plan } from "./vocabulary-DEJ5j4mR.js";
|
|
1
|
+
import { E as PermissionTree, J as MetaValue, K as AppData, P as ResourceNode, T as PermissionKind, U as POLICY_SCOPES, a as RoleTree, i as RoleMeta, n as PlanTree, q as AppDataSchema, r as Role, t as Plan, w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
2
|
//#region src/conditions/ast.d.ts
|
|
4
3
|
type ConditionRef = {
|
|
5
4
|
readonly ref: string;
|
|
@@ -1770,7 +1769,14 @@ type DecisionProvider = {
|
|
|
1770
1769
|
* once at module scope uses it so the reads of one instance share a single
|
|
1771
1770
|
* query and no answer outlives the instance.
|
|
1772
1771
|
*/
|
|
1773
|
-
type SourceMemo = <T>(key: string, read: () => T) => T
|
|
1772
|
+
type SourceMemo = (<T>(key: string, read: () => T) => T) & {
|
|
1773
|
+
/**
|
|
1774
|
+
* The authorization version the instance was told it already holds
|
|
1775
|
+
* (`version.known`). A source that caches records by version answers from it
|
|
1776
|
+
* without reading the version.
|
|
1777
|
+
*/
|
|
1778
|
+
readonly version?: number;
|
|
1779
|
+
};
|
|
1774
1780
|
/**
|
|
1775
1781
|
* One read a source made, for an `onSourceCall` hook: `cached` is `true` when
|
|
1776
1782
|
* the instance's `SourceMemo` answered it without a query.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
|
-
import { c as withGrantSchema, i as completeGrant, l as normalizeWhere, o as flattenGrants, s as flattenPermissions } from "./role-builder-
|
|
3
|
+
import { c as withGrantSchema, i as completeGrant, l as normalizeWhere, o as flattenGrants, s as flattenPermissions } from "./role-builder-boQiUvfo.js";
|
|
4
|
+
import { n as normalizeValidity } from "./validity-Buc7w8E9.js";
|
|
4
5
|
import { c as listPermissions, i as getRegistry, m as annotationsFor, n as findPermission, s as isRegistryTree } from "./permission-registry-B8tYxPIt.js";
|
|
5
6
|
import { d as isSelfParented, l as isFieldRelation } from "./resource-relations-8-pCScBO.js";
|
|
7
|
+
import { o as flattenGrantee, r as asGrantee, v as listRoles } from "./grantee-Dke-9rd1.js";
|
|
8
|
+
import { n as defineScopes, s as resolveScope } from "./scopes-gdH__vDZ.js";
|
|
9
|
+
import { a as relationStart, i as relationHops, n as isGraphRelation, t as inheritCondition } from "./grantee-conditions-Dzprappv.js";
|
|
10
|
+
import { a as memberOfFields, p as scopeField, u as relatesTo } from "./tenancy-BlxY5T0q.js";
|
|
6
11
|
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
7
12
|
import { r as sha256Digest } from "./sha256-C-4WXKIu.js";
|
|
8
|
-
import {
|
|
9
|
-
import { o as flattenGrantee, r as asGrantee, v as listRoles } from "./grantee-Dke-9rd1.js";
|
|
10
|
-
import { i as assertApprovalVersions, r as assertApprovalRelations } from "./approval-normalize-hlfO9BJv.js";
|
|
11
|
-
import { n as normalizeValidity } from "./validity-Buc7w8E9.js";
|
|
13
|
+
import { i as assertApprovalVersions, r as assertApprovalRelations } from "./approval-normalize-DNLW0zOM.js";
|
|
12
14
|
import { t as byCodePoint } from "./compare-DTfyUunF.js";
|
|
13
|
-
import { a as relationStart, i as relationHops, n as isGraphRelation, t as inheritCondition } from "./grantee-conditions-DX4K_gGI.js";
|
|
14
|
-
import { a as memberOfFields, p as scopeField, u as relatesTo } from "./tenancy-DvOHHk3-.js";
|
|
15
15
|
//#region src/core/policy-assertions.ts
|
|
16
16
|
function assertParentGraph(resources) {
|
|
17
17
|
for (const node of resources.values()) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as Policy, xr as Subject, yr as Principal } from "./policy-types-
|
|
2
|
-
import { c as saasPlans, l as saasRoles, s as saasPermissions } from "./permissions-
|
|
1
|
+
import { D as Policy, xr as Subject, yr as Principal } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { c as saasPlans, l as saasRoles, s as saasPermissions } from "./permissions-DriWkV7q.js";
|
|
3
3
|
//#region src/testing/saas/policy.d.ts
|
|
4
4
|
/** Daily API-key quota per subject; the bucket should be per tenant too. */
|
|
5
5
|
declare const SAAS_API_KEY_LIMIT = 5;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { D as Policy, dt as SourceCall, it as MembershipSource,
|
|
1
|
+
import { D as Policy, dt as SourceCall, it as MembershipSource, q as CustomRoleSource, rt as MemberEntry, xr as Subject, yr as Principal } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { n as SubjectCache, r as SubjectRecord } from "./subject-cache-d_Z4KAnm.js";
|
|
2
3
|
//#region src/supabase/postgrest.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* What a supabase-js `rpc` call resolves to: `data` or an `error` with a
|
|
@@ -62,21 +63,13 @@ type PostgrestSourcesOptions = {
|
|
|
62
63
|
* instance's memo answered it. A hook that throws is ignored.
|
|
63
64
|
*/
|
|
64
65
|
readonly onSourceCall?: (call: SourceCall) => void;
|
|
65
|
-
};
|
|
66
|
-
/** One user as `subject_for(p_user)` returns it. */
|
|
67
|
-
type SubjectRecord = {
|
|
68
|
-
readonly id: string;
|
|
69
|
-
/** `false` for a suspended user, who holds no roles or memberships. */
|
|
70
|
-
readonly active: boolean;
|
|
71
|
-
readonly roles: readonly string[];
|
|
72
|
-
readonly memberships: readonly Membership[];
|
|
73
|
-
readonly customRoles: readonly CustomRole[];
|
|
74
|
-
readonly authzVersion?: number;
|
|
75
66
|
/**
|
|
76
|
-
*
|
|
77
|
-
* `
|
|
67
|
+
* Subject records shared across instances. `record()` reads it before
|
|
68
|
+
* `subject_for`, at the authorization version the instance resolved, and
|
|
69
|
+
* seeds it with every record it reads. Without it every instance reads
|
|
70
|
+
* `subject_for` itself.
|
|
78
71
|
*/
|
|
79
|
-
readonly
|
|
72
|
+
readonly subjects?: SubjectCache;
|
|
80
73
|
};
|
|
81
74
|
type PostgrestSources = {
|
|
82
75
|
/**
|
|
@@ -113,11 +106,6 @@ type PostgrestSources = {
|
|
|
113
106
|
/** The raw record, `undefined` for an unknown user. */
|
|
114
107
|
record: (userId: string) => Promise<SubjectRecord | undefined>;
|
|
115
108
|
};
|
|
116
|
-
/**
|
|
117
|
-
* Reads `subject_for`'s JSON; anything it cannot read is left out, and a
|
|
118
|
-
* malformed record is no record.
|
|
119
|
-
*/
|
|
120
|
-
declare function readSubjectRecord(value: unknown): SubjectRecord | undefined;
|
|
121
109
|
/**
|
|
122
110
|
* Membership, custom-role and subject sources over the `subject_for(p_user)`,
|
|
123
111
|
* `authz_version_for(p_user)` and `members_of(p_scope, p_id)` functions
|
|
@@ -131,6 +119,6 @@ declare function readSubjectRecord(value: unknown): SubjectRecord | undefined;
|
|
|
131
119
|
* and `getPermDock` shares each read within one instance. Pass `claimsFirst(…,
|
|
132
120
|
* { versions })` to share version reads across instances.
|
|
133
121
|
*/
|
|
134
|
-
declare function postgrestSources(client: SupabaseRpcCaller,
|
|
122
|
+
declare function postgrestSources(client: SupabaseRpcCaller, given?: PostgrestSourcesOptions): PostgrestSources;
|
|
135
123
|
//#endregion
|
|
136
|
-
export {
|
|
124
|
+
export { SupabaseRpcResult as a, SupabaseRpcClient as i, PostgrestSourcesOptions as n, postgrestSources as o, SupabaseRpcCaller as r, PostgrestSources as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as runPowerSync } from "./powersync-Dpa5AnnN.js";
|
|
@@ -14,7 +14,7 @@ const generate = defineLeaf({
|
|
|
14
14
|
async run(ctx, { flags }) {
|
|
15
15
|
const out = fileOut("powersync", flags.out);
|
|
16
16
|
const from = given(flags.policy);
|
|
17
|
-
const { runPowerSync } = await import("./powersync-
|
|
17
|
+
const { runPowerSync } = await import("./powersync-BdoR7nwS.js");
|
|
18
18
|
return runPowerSync({
|
|
19
19
|
cwd: ctx.cwd,
|
|
20
20
|
config: ctx.config,
|
|
@@ -45,7 +45,7 @@ const verify = defineLeaf({
|
|
|
45
45
|
const db = await dbUrl(ctx, flags, { required: true });
|
|
46
46
|
const fixtures = given(flags.fixtures);
|
|
47
47
|
const from = given(flags.policy);
|
|
48
|
-
const { runPowerSync } = await import("./powersync-
|
|
48
|
+
const { runPowerSync } = await import("./powersync-BdoR7nwS.js");
|
|
49
49
|
return runPowerSync({
|
|
50
50
|
cwd: ctx.cwd,
|
|
51
51
|
config: ctx.config,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { c as isConditionDate, l as isConditionRef, o as hasConditionOp } from "./refs-C8BKxc_e.js";
|
|
3
|
-
import {
|
|
3
|
+
import { D as memoryCustomRoleSource, h as localSnapshotManifest } from "./src-BG9YJM3Q.js";
|
|
4
4
|
import { n as findPermission } from "./permission-registry-B8tYxPIt.js";
|
|
5
|
-
import { d as scopeList, s as resolveScope } from "./scopes-
|
|
6
|
-
import { l as policyLevels } from "./policy-CaAME-Rh.js";
|
|
5
|
+
import { d as scopeList, s as resolveScope } from "./scopes-gdH__vDZ.js";
|
|
7
6
|
import { t as requiresApproval } from "./approval-required-TzNB9oQA.js";
|
|
8
|
-
import { t as getPermDock } from "./permdock-
|
|
7
|
+
import { t as getPermDock } from "./permdock-B5LyNVgn.js";
|
|
8
|
+
import { l as policyLevels } from "./policy-wGzbAPQF.js";
|
|
9
9
|
import { u as usageResult } from "./errors-BhRkoNS7.js";
|
|
10
|
-
import { c as requirePolicy } from "./load-
|
|
10
|
+
import { c as requirePolicy } from "./load-C4p4VgwR.js";
|
|
11
11
|
import { s as quoteSqlLiteral, t as SQL_IDENT } from "./sql-0WjxIp9g.js";
|
|
12
|
-
import { a as scopeMembershipTable, i as scopeColumn } from "./compile-
|
|
12
|
+
import { a as scopeMembershipTable, i as scopeColumn } from "./compile-Cvru58id.js";
|
|
13
13
|
import { d as keptKeys, t as AUTHZ_VERSION_TABLE } from "./sources-C4vkzZJV.js";
|
|
14
14
|
import { t as applyFiles } from "./files-CfiRtQ-m.js";
|
|
15
15
|
import { i as fileDrift } from "./output-files-CM0BnH05.js";
|
|
16
|
-
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-
|
|
16
|
+
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-BVZc7OCF.js";
|
|
17
17
|
import { n as pgConnector } from "./pg-Ddxsd5ZB.js";
|
|
18
|
-
import { A as quoteQualified, O as quoteIdent, a as customRolesOn, t as CUSTOM_ROLES } from "./shared-
|
|
19
|
-
import {
|
|
20
|
-
import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, t as ownershipRules, u as roleNames } from "./ownership-
|
|
18
|
+
import { A as quoteQualified, O as quoteIdent, a as customRolesOn, t as CUSTOM_ROLES } from "./shared-DfaIWvIJ.js";
|
|
19
|
+
import { i as tableNames, r as tableNameOf } from "./tables-CbEOy2Ma.js";
|
|
20
|
+
import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, t as ownershipRules, u as roleNames } from "./ownership-adPAsUwY.js";
|
|
21
21
|
import { t as membershipSourcesOf } from "./sources-qoIJQrJv.js";
|
|
22
|
-
import {
|
|
22
|
+
import { h as tableFor, t as canFixture } from "./verify-BSLotSa0.js";
|
|
23
23
|
import { resolve } from "node:path";
|
|
24
24
|
//#region src/cli/powersync/claims.ts
|
|
25
25
|
/** The `/docs` section that explains why a claim stream needs a reconnect. */
|
package/dist/preset/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as ARCHETYPES, c as AUTH, l as BACKENDS, u as FEATURES, d as FRAMEWORKS, f as INTEGRATIONS, p as PRESET_DEFAULTS, r as PRESET_FLAGS, m as SERVICES, a as decodePreset, o as encodePreset, n as generatePreset, h as integrationsOf, i as presetFlags, t as presetMatrix, g as resolvePreset } from "../preset-
|
|
1
|
+
export { s as ARCHETYPES, c as AUTH, l as BACKENDS, u as FEATURES, d as FRAMEWORKS, f as INTEGRATIONS, p as PRESET_DEFAULTS, r as PRESET_FLAGS, m as SERVICES, a as decodePreset, o as encodePreset, n as generatePreset, h as integrationsOf, i as presetFlags, t as presetMatrix, g as resolvePreset } from "../preset-Bn5Z54cH.js";
|
|
@@ -1292,7 +1292,7 @@ function backendFiles(ctx) {
|
|
|
1292
1292
|
}
|
|
1293
1293
|
/**
|
|
1294
1294
|
* What `permdock.ts` adds for the backend: imports, statements before
|
|
1295
|
-
* `
|
|
1295
|
+
* `definePermDock`, and its options.
|
|
1296
1296
|
*/
|
|
1297
1297
|
function backendApp(ctx) {
|
|
1298
1298
|
if (ctx.preset.backend !== "supabase") return {
|
|
@@ -1444,9 +1444,9 @@ export const demoUser: User = { ${demo.join(", ")} };
|
|
|
1444
1444
|
`;
|
|
1445
1445
|
}
|
|
1446
1446
|
function appFile(ctx) {
|
|
1447
|
-
const valueImports = /* @__PURE__ */ new Set(
|
|
1447
|
+
const valueImports = /* @__PURE__ */ new Set();
|
|
1448
1448
|
const lines = [];
|
|
1449
|
-
const preamble = [];
|
|
1449
|
+
const preamble = [`import { definePermDock } from "permdock/app";`];
|
|
1450
1450
|
const services = ctx.preset.services;
|
|
1451
1451
|
const cloudServices = services.length > 0;
|
|
1452
1452
|
if (cloudServices) preamble.push(`import { cloud } from "permdock/cloud";`);
|
|
@@ -1476,15 +1476,14 @@ function appFile(ctx) {
|
|
|
1476
1476
|
preamble.push(...backend.imports);
|
|
1477
1477
|
lines.unshift(...backend.options);
|
|
1478
1478
|
const sources = backend.preamble.length === 0 ? "" : `\n${backend.preamble.join("\n")}\n`;
|
|
1479
|
-
return `import { ${[...valueImports].toSorted().join(", ")} } from "permdock"
|
|
1480
|
-
${preamble.length === 0 ? "" : `${preamble.join("\n")}\n`}
|
|
1479
|
+
return `${valueImports.size === 0 ? "" : `import { ${[...valueImports].toSorted().join(", ")} } from "permdock";\n`}${preamble.length === 0 ? "" : `${preamble.join("\n")}\n`}
|
|
1481
1480
|
import { policy } from "./policy";
|
|
1482
1481
|
${cloudLine}${sources}
|
|
1483
1482
|
/**
|
|
1484
1483
|
* The app definition every adapter reads. Your own code: change sources,
|
|
1485
1484
|
* features and services here; the rules stay in the permdock package.
|
|
1486
1485
|
*/
|
|
1487
|
-
export const app =
|
|
1486
|
+
export const app = definePermDock(policy, {
|
|
1488
1487
|
profile: ${env("NODE_ENV")} === "production" ? "prod" : "dev",
|
|
1489
1488
|
${lines.join("\n")}${lines.length === 0 ? "" : "\n"}});
|
|
1490
1489
|
`;
|
package/dist/prisma/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Er as Condition, qt as Instant, xr as Subject } from "../policy-types-
|
|
2
|
-
import { f as WhereResult } from "../permdock-
|
|
1
|
+
import { Er as Condition, qt as Instant, xr as Subject } from "../policy-types-rNfz7t0M.js";
|
|
2
|
+
import { f as WhereResult } from "../permdock-BaB-KQqn.js";
|
|
3
3
|
import { r as RelationsMapping } from "../graph-sql-BwFC4Qjs.js";
|
|
4
4
|
import { n as RowCheck, t as WithSubjectOptions } from "../subject-settings-vNW8qmUH.js";
|
|
5
5
|
//#region src/prisma/model-fields.d.ts
|
package/dist/prisma/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { t as compact } from "../compact-CAf557ZB.js";
|
|
|
2
2
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
3
3
|
import { t as assertSafeKey } from "../paths-CUvURzHp.js";
|
|
4
4
|
import { n as PermDockValidationError } from "../validation-error-CYg2kJEw.js";
|
|
5
|
-
import { c as relatedTargetsSql, d as restrictedRowsSql, n as compileWhere, o as relatedRowGuard, r as escapeLike, u as renderGraphSql } from "../compile-
|
|
5
|
+
import { c as relatedTargetsSql, d as restrictedRowsSql, n as compileWhere, o as relatedRowGuard, r as escapeLike, u as renderGraphSql } from "../compile-Cvru58id.js";
|
|
6
6
|
import { n as statementText, o as rowCheckOf, r as subjectStatements, s as loadPeer } from "../subject-settings-8sH5HlII.js";
|
|
7
7
|
//#region src/prisma/to-where.ts
|
|
8
8
|
function fieldTests(options) {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { N as PolicyVocabulary, Yn as Decision, vr as Membership } from "./policy-types-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { r as
|
|
6
|
-
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, f as ProtectedActionHandle, g as SubjectView, h as RolesOptions, l as GateView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, y as ProtectedAction } from "./store-CRQ5VrWR.js";
|
|
1
|
+
import { N as PolicyVocabulary, Yn as Decision, vr as Membership } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { r as Role, w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
+
import { d as UncheckedData, s as RowData } from "./permdock-BaB-KQqn.js";
|
|
4
|
+
import { r as DescribeOptions, t as DecisionDescription } from "./describe-DVobr5FX.js";
|
|
5
|
+
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, f as ProtectedActionHandle, g as SubjectView, h as RolesOptions, l as GateView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, y as ProtectedAction } from "./store-DSyjHD5-.js";
|
|
7
6
|
import { r as RefreshTrigger } from "./refresh-on-L9UOwATg.js";
|
|
8
|
-
import { r as ProtectedProps } from "./types-
|
|
7
|
+
import { r as ProtectedProps } from "./types-BpxdxaRD.js";
|
|
9
8
|
import { ReactNode } from "react";
|
|
10
9
|
//#region src/react/hooks.d.ts
|
|
11
10
|
declare function usePermDock<V extends PolicyVocabulary = PolicyVocabulary>(): ClientPermDock<V>;
|
|
@@ -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-CXv6BHH6.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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PermDockProviderProps } from "./types-
|
|
1
|
+
import { n as PermDockProviderProps } from "./types-BpxdxaRD.js";
|
|
2
2
|
import { ReactElement } from "react";
|
|
3
3
|
//#region src/react/provider.d.ts
|
|
4
4
|
declare function PermDockProvider(props: PermDockProviderProps): ReactElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { t as emptySnapshot } from "./from-snapshot-
|
|
3
|
-
import { t as adapterStore } from "./store-options-
|
|
2
|
+
import { t as emptySnapshot } from "./from-snapshot-oR_N97dM.js";
|
|
3
|
+
import { t as adapterStore } from "./store-options-CXv6BHH6.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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { t as emptySnapshot } from "./from-snapshot-
|
|
3
|
-
import { l as isPromiseLike, t as adapterStore } from "./store-options-
|
|
2
|
+
import { t as emptySnapshot } from "./from-snapshot-oR_N97dM.js";
|
|
3
|
+
import { l as isPromiseLike, t as adapterStore } from "./store-options-CXv6BHH6.js";
|
|
4
4
|
//#region src/client/provider-store.ts
|
|
5
5
|
/**
|
|
6
6
|
* Store options that read `read()` on every request, so a rotated token, a new
|
|
@@ -3,14 +3,14 @@ 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-Zi0jRpyH.js";
|
|
7
7
|
import { t as catalogPath } from "./catalog-path-CnI0XTFK.js";
|
|
8
8
|
import { n as parseSupabaseManifest } from "./manifest-BdzBobNK.js";
|
|
9
|
-
import { t as parseCatalog } from "./parse-
|
|
10
|
-
import { a as nonEmptyOr } from "./output-
|
|
9
|
+
import { t as parseCatalog } from "./parse-CORUNcCo.js";
|
|
10
|
+
import { a as nonEmptyOr } from "./output-CYgfpT6o.js";
|
|
11
11
|
import { t as POLICY_NOT_PUBLISHED } from "./problem-types-DSsRfONQ.js";
|
|
12
|
-
import { n as httpRequest, t as authFailure } from "./http-
|
|
13
|
-
import { l as cloudUrl, n as cliRuntime, o as readAuth } from "./auth-
|
|
12
|
+
import { n as httpRequest, t as authFailure } from "./http-dptLQzPP.js";
|
|
13
|
+
import { l as cloudUrl, n as cliRuntime, o as readAuth } from "./auth-BxXHxWRy.js";
|
|
14
14
|
import { n as formatManifestJson } from "./manifest-json-CAGzls-C.js";
|
|
15
15
|
import { existsSync, readFileSync, rmSync } from "node:fs";
|
|
16
16
|
import { relative, resolve } from "node:path";
|