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,32 +1,31 @@
|
|
|
1
1
|
import { n as isReadonlyArray, r as isRecord, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { r as ownGet } from "./paths-CUvURzHp.js";
|
|
4
|
-
import { d as assertSqlFunctionArg, f as assertSqlFunctionName, l as normalizeWhere, p as assertSqlFunctionSet, u as assertPortableTwin } from "./role-builder-
|
|
4
|
+
import { d as assertSqlFunctionArg, f as assertSqlFunctionName, l as normalizeWhere, p as assertSqlFunctionSet, u as assertPortableTwin } from "./role-builder-boQiUvfo.js";
|
|
5
5
|
import { n as PermDockDeniedError } from "./errors-ynga1EQy.js";
|
|
6
|
-
import { o as sameId } from "./expiry-6XByK0dm.js";
|
|
7
|
-
import { n as internalsOf } from "./internals-B3IgHrvo.js";
|
|
8
6
|
import { c as listPermissions, i as getRegistry, n as findPermission } from "./permission-registry-B8tYxPIt.js";
|
|
9
|
-
import { n as isThenable
|
|
7
|
+
import { n as isThenable } from "./thenable-BNSM1U2R.js";
|
|
10
8
|
import { c as isEdgeRelation, m as restrictedStops, o as groupEntries, s as isComputedRelation, u as isPrincipalRelation } from "./resource-relations-8-pCScBO.js";
|
|
11
|
-
import { a as durationOf, f as nowMillis, g as secondsOf, m as rfc3339, p as nowSeconds } from "./time-nR1JesoH.js";
|
|
12
|
-
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
13
|
-
import { a as normalizeMembership$1, c as rootScope, d as scopeList, l as scopeChain, o as normalizeMemberships$1, p as tenantOf, s as resolveScope$1, u as scopeIdOf } from "./scopes-BSdYaGHs.js";
|
|
14
|
-
import { u as evaluateCondition } from "./delegation-aK4T_5WU.js";
|
|
15
9
|
import { _ as listPlans, a as authenticated, m as findRole, o as flattenGrantee } from "./grantee-Dke-9rd1.js";
|
|
16
|
-
import { a as
|
|
17
|
-
import {
|
|
18
|
-
import { c as
|
|
19
|
-
import {
|
|
10
|
+
import { a as durationOf, f as nowMillis, g as secondsOf, p as nowSeconds } from "./time-nR1JesoH.js";
|
|
11
|
+
import { i as sameId } from "./ids-DzhJaCUj.js";
|
|
12
|
+
import { a as normalizeMembership$1, c as rootScope, d as scopeList, l as scopeChain, o as normalizeMemberships$1, p as tenantOf, s as resolveScope$1, u as scopeIdOf } from "./scopes-gdH__vDZ.js";
|
|
13
|
+
import { t as evaluateCondition } from "./condition-evaluate-bVVRSdzq.js";
|
|
14
|
+
import { m as tenantsOf, r as isMembershipExpired } from "./tenancy-BlxY5T0q.js";
|
|
15
|
+
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
16
|
+
import { i as snapshotGrant, r as plainPermission, t as buildSnapshot } from "./snapshot-C2j96x97.js";
|
|
17
|
+
import { r as resolveSubject } from "./permdock-B5LyNVgn.js";
|
|
18
|
+
import { n as internalsOf } from "./internals-B3IgHrvo.js";
|
|
19
|
+
import { a as normalizeApproval, r as assertApprovalRelations } from "./approval-normalize-DNLW0zOM.js";
|
|
20
|
+
import { c as levelNames, i as grantList, n as declaredRoleNames } from "./policy-wGzbAPQF.js";
|
|
21
|
+
import { o as isPortableCondition } from "./hosted-C5I2TSXm.js";
|
|
20
22
|
import { n as isOperationRisk } from "./operation-risks-BKOcTv8J.js";
|
|
21
23
|
import { n as isOperationEffect } from "./operations-Bm9HFecz.js";
|
|
22
|
-
import { C as tenantCustomRoles, S as roleAllowKeys, f as customRoleId, l as ceilingGrants, m as customRoleScope, p as customRoleOf, x as resolveCustomRole } from "./evaluate-
|
|
23
|
-
import { a as heldLevels, f as bindingOf, h as usesAssigns, m as roleMeta, n as snapshotScopes, o as collectSnapshotGrants, p as rankRoles, r as assignableCandidates, t as snapshotOf } from "./instance-snapshot-
|
|
24
|
-
import { n as relationId } from "./relations-
|
|
25
|
-
import { i as snapshotGrant, r as plainPermission, t as buildSnapshot } from "./snapshot-DHPih65J.js";
|
|
24
|
+
import { C as tenantCustomRoles, S as roleAllowKeys, f as customRoleId, l as ceilingGrants, m as customRoleScope, p as customRoleOf, x as resolveCustomRole } from "./evaluate-B5yZHmts.js";
|
|
25
|
+
import { a as heldLevels, f as bindingOf, h as usesAssigns, m as roleMeta, n as snapshotScopes, o as collectSnapshotGrants, p as rankRoles, r as assignableCandidates, t as snapshotOf } from "./instance-snapshot-D_dGTq--.js";
|
|
26
|
+
import { n as relationId } from "./relations-CMsJ1ARY.js";
|
|
26
27
|
import { n as LOCAL_CUSTOM_ROLE } from "./parse-local-manifest-Ce2N-Opr.js";
|
|
27
|
-
import {
|
|
28
|
-
import { i as memoryApprovalStore } from "./store-CSOsXd5s.js";
|
|
29
|
-
import { n as wrapPermDock } from "./wrap-C5PWzgkq.js";
|
|
28
|
+
import { n as wrapPermDock } from "./wrap-BKU5Arsu.js";
|
|
30
29
|
//#region src/conditions/sql-function.ts
|
|
31
30
|
function sqlFunction(name, options) {
|
|
32
31
|
assertSqlFunctionName(name);
|
|
@@ -44,6 +43,28 @@ function sqlFunction(name, options) {
|
|
|
44
43
|
});
|
|
45
44
|
}
|
|
46
45
|
//#endregion
|
|
46
|
+
//#region src/core/access-outcome.ts
|
|
47
|
+
/**
|
|
48
|
+
* `decision` as an `AccessOutcome`. A denied decision is `anonymous`,
|
|
49
|
+
* `no-tenant` or `no-membership` when one of its denials has that reason, in
|
|
50
|
+
* that order, unless a `deny` is among them; every other denial is `denied`.
|
|
51
|
+
*/
|
|
52
|
+
function accessOutcome(decision) {
|
|
53
|
+
switch (decision.outcome) {
|
|
54
|
+
case "granted": return "granted";
|
|
55
|
+
case "approval-required": return "approval-required";
|
|
56
|
+
case "denied": {
|
|
57
|
+
const reasons = new Set(decision.denials.map((entry) => entry.reason));
|
|
58
|
+
if (reasons.has("deny")) return "denied";
|
|
59
|
+
if (reasons.has("anonymous")) return "anonymous";
|
|
60
|
+
if (reasons.has("no-tenant")) return "no-tenant";
|
|
61
|
+
if (reasons.has("no-membership")) return "no-membership";
|
|
62
|
+
return "denied";
|
|
63
|
+
}
|
|
64
|
+
default: return decision;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
47
68
|
//#region src/core/memory-sources.ts
|
|
48
69
|
function memoryEntitlementSource(entries) {
|
|
49
70
|
return { entitlementsFor(_principal, options) {
|
|
@@ -278,7 +299,7 @@ function approvalPoliciesFor(policy, source, tenants, auth) {
|
|
|
278
299
|
} catch {
|
|
279
300
|
return threw();
|
|
280
301
|
}
|
|
281
|
-
if (isThenable
|
|
302
|
+
if (isThenable(raw)) return Promise.resolve(raw).then((value) => loadAll(policy, value), threw);
|
|
282
303
|
return loadAll(policy, raw);
|
|
283
304
|
}
|
|
284
305
|
function metaMatches(entry, operation) {
|
|
@@ -405,171 +426,6 @@ function stripeEntitlementSource(options) {
|
|
|
405
426
|
} };
|
|
406
427
|
}
|
|
407
428
|
//#endregion
|
|
408
|
-
//#region src/core/limits.ts
|
|
409
|
-
function isThenable(value) {
|
|
410
|
-
return value !== null && typeof value === "object" && "then" in value && typeof value.then === "function";
|
|
411
|
-
}
|
|
412
|
-
function limitWindowId(per, now) {
|
|
413
|
-
const seconds = durationOf(per);
|
|
414
|
-
return seconds === void 0 ? void 0 : String(Math.floor(now / seconds));
|
|
415
|
-
}
|
|
416
|
-
function limitCacheKey(input, now) {
|
|
417
|
-
const window = limitWindowId(input.per, now);
|
|
418
|
-
return window === void 0 ? void 0 : JSON.stringify([
|
|
419
|
-
input.tenant ?? null,
|
|
420
|
-
input.subjectId,
|
|
421
|
-
input.key,
|
|
422
|
-
input.per,
|
|
423
|
-
window
|
|
424
|
-
]);
|
|
425
|
-
}
|
|
426
|
-
function locate$1(input) {
|
|
427
|
-
const now = nowSeconds(input.now);
|
|
428
|
-
const seconds = durationOf(input.per);
|
|
429
|
-
const id = limitCacheKey(input, now);
|
|
430
|
-
if (seconds === void 0 || id === void 0) return;
|
|
431
|
-
return {
|
|
432
|
-
id,
|
|
433
|
-
until: (Math.floor(now / seconds) + 1) * seconds,
|
|
434
|
-
now
|
|
435
|
-
};
|
|
436
|
-
}
|
|
437
|
-
function memoryLimitStore() {
|
|
438
|
-
const used = /* @__PURE__ */ new Map();
|
|
439
|
-
let earliest = Number.POSITIVE_INFINITY;
|
|
440
|
-
const sweep = (now) => {
|
|
441
|
-
if (now < earliest) return;
|
|
442
|
-
earliest = Number.POSITIVE_INFINITY;
|
|
443
|
-
for (const [id, entry] of used) if (entry.until <= now) used.delete(id);
|
|
444
|
-
else earliest = Math.min(earliest, entry.until);
|
|
445
|
-
};
|
|
446
|
-
return {
|
|
447
|
-
remaining(input) {
|
|
448
|
-
const cap = input.count;
|
|
449
|
-
const slot = locate$1(input);
|
|
450
|
-
if (!Number.isFinite(cap) || cap <= 0 || slot === void 0) return { remaining: -1 };
|
|
451
|
-
return { remaining: cap - (used.get(slot.id)?.count ?? 0) };
|
|
452
|
-
},
|
|
453
|
-
consume(input) {
|
|
454
|
-
const cap = input.count;
|
|
455
|
-
const slot = locate$1(input);
|
|
456
|
-
if (!Number.isFinite(cap) || cap <= 0 || slot === void 0) return { remaining: -1 };
|
|
457
|
-
sweep(slot.now);
|
|
458
|
-
const seen = used.get(slot.id)?.count ?? 0;
|
|
459
|
-
if (seen >= cap) return { remaining: -1 };
|
|
460
|
-
used.set(slot.id, {
|
|
461
|
-
count: seen + 1,
|
|
462
|
-
until: slot.until
|
|
463
|
-
});
|
|
464
|
-
earliest = Math.min(earliest, slot.until);
|
|
465
|
-
return { remaining: cap - seen - 1 };
|
|
466
|
-
},
|
|
467
|
-
size() {
|
|
468
|
-
return used.size;
|
|
469
|
-
}
|
|
470
|
-
};
|
|
471
|
-
}
|
|
472
|
-
/**
|
|
473
|
-
* `left` is what remains once this call counts: the store's answer after
|
|
474
|
-
* `consume`, or one less than `remaining` when only peeking. Below zero the
|
|
475
|
-
* call is past the count.
|
|
476
|
-
*/
|
|
477
|
-
function verdictFor(limit, left, now) {
|
|
478
|
-
const seconds = durationOf(limit.per);
|
|
479
|
-
if (seconds === void 0) return {
|
|
480
|
-
ok: false,
|
|
481
|
-
reason: "limit-unavailable"
|
|
482
|
-
};
|
|
483
|
-
const resetsAt = rfc3339((Math.floor(now / seconds) + 1) * seconds);
|
|
484
|
-
if (left < 0) return limit.mode === "soft" ? {
|
|
485
|
-
ok: true,
|
|
486
|
-
quota: {
|
|
487
|
-
remaining: 0,
|
|
488
|
-
resetsAt
|
|
489
|
-
},
|
|
490
|
-
obligations: [{ kind: "over-limit" }]
|
|
491
|
-
} : {
|
|
492
|
-
ok: false,
|
|
493
|
-
reason: "limit",
|
|
494
|
-
detail: {
|
|
495
|
-
count: limit.count,
|
|
496
|
-
per: seconds,
|
|
497
|
-
resetsAt
|
|
498
|
-
}
|
|
499
|
-
};
|
|
500
|
-
return limit.alertAt !== void 0 && (limit.count - left) / limit.count >= limit.alertAt ? {
|
|
501
|
-
ok: true,
|
|
502
|
-
quota: {
|
|
503
|
-
remaining: left,
|
|
504
|
-
resetsAt
|
|
505
|
-
},
|
|
506
|
-
obligations: [{ kind: "near-limit" }]
|
|
507
|
-
} : {
|
|
508
|
-
ok: true,
|
|
509
|
-
quota: {
|
|
510
|
-
remaining: left,
|
|
511
|
-
resetsAt
|
|
512
|
-
}
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
function limits(store) {
|
|
516
|
-
return Object.freeze({
|
|
517
|
-
feature: "limits",
|
|
518
|
-
quota: (input) => applyQuota(store, input)
|
|
519
|
-
});
|
|
520
|
-
}
|
|
521
|
-
function applyQuota(store, input) {
|
|
522
|
-
const limit = input.limit;
|
|
523
|
-
const payload = {
|
|
524
|
-
key: input.permissionKey,
|
|
525
|
-
subjectId: input.subjectId,
|
|
526
|
-
count: limit.count,
|
|
527
|
-
per: limit.per,
|
|
528
|
-
now: { epochMilliseconds: input.now * 1e3 },
|
|
529
|
-
...input.tenant === void 0 ? {} : { tenant: input.tenant }
|
|
530
|
-
};
|
|
531
|
-
const cacheKey = limitCacheKey(payload, input.now);
|
|
532
|
-
if (cacheKey === void 0) return {
|
|
533
|
-
ok: false,
|
|
534
|
-
reason: "limit-unavailable"
|
|
535
|
-
};
|
|
536
|
-
if (!input.consume) {
|
|
537
|
-
try {
|
|
538
|
-
const peeked = store.remaining(payload);
|
|
539
|
-
if (isThenable(peeked)) return {
|
|
540
|
-
ok: false,
|
|
541
|
-
reason: "limit-unavailable"
|
|
542
|
-
};
|
|
543
|
-
if (peeked !== void 0) return verdictFor(limit, peeked.remaining - 1, input.now);
|
|
544
|
-
} catch {
|
|
545
|
-
return {
|
|
546
|
-
ok: false,
|
|
547
|
-
reason: "limit-unavailable"
|
|
548
|
-
};
|
|
549
|
-
}
|
|
550
|
-
const cached = input.cache.get(cacheKey);
|
|
551
|
-
if (cached === void 0) return {
|
|
552
|
-
ok: false,
|
|
553
|
-
reason: "limit-unavailable"
|
|
554
|
-
};
|
|
555
|
-
return verdictFor(limit, cached - 1, input.now);
|
|
556
|
-
}
|
|
557
|
-
try {
|
|
558
|
-
const consumed = store.consume(payload);
|
|
559
|
-
if (isThenable(consumed)) return {
|
|
560
|
-
ok: false,
|
|
561
|
-
reason: "limit-unavailable"
|
|
562
|
-
};
|
|
563
|
-
input.cache.set(cacheKey, consumed.remaining);
|
|
564
|
-
return verdictFor(limit, consumed.remaining, input.now);
|
|
565
|
-
} catch {
|
|
566
|
-
return {
|
|
567
|
-
ok: false,
|
|
568
|
-
reason: "limit-unavailable"
|
|
569
|
-
};
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
//#endregion
|
|
573
429
|
//#region src/core/memory-relations.ts
|
|
574
430
|
/**
|
|
575
431
|
* The holders one edge-table row names for `spec`: none when the row does not
|
|
@@ -756,7 +612,7 @@ function signPolicyDocument(document, signer, options) {
|
|
|
756
612
|
//#endregion
|
|
757
613
|
//#region src/core/instance-cache.ts
|
|
758
614
|
const MAX_AGE_CEILING_MS = 6e4;
|
|
759
|
-
const DEFAULT_MAX_AGE_MS =
|
|
615
|
+
const DEFAULT_MAX_AGE_MS = 3e4;
|
|
760
616
|
const DEFAULT_MAX_ENTRIES$1 = 1e4;
|
|
761
617
|
function roleKey(method, args) {
|
|
762
618
|
return `roles:${canonicalJson([method, ...args])}`;
|
|
@@ -828,7 +684,7 @@ function instanceCache(options = {}) {
|
|
|
828
684
|
}
|
|
829
685
|
counts.builds += 1;
|
|
830
686
|
const answer = build();
|
|
831
|
-
if (!isThenable
|
|
687
|
+
if (!isThenable(answer)) {
|
|
832
688
|
if (maxAgeMs > 0) store(id, {
|
|
833
689
|
value: answer,
|
|
834
690
|
at,
|
|
@@ -903,23 +759,26 @@ function instanceCache(options = {}) {
|
|
|
903
759
|
//#endregion
|
|
904
760
|
//#region src/core/version-cache.ts
|
|
905
761
|
const MAX_STALE_CEILING_MS = 6e4;
|
|
762
|
+
const DEFAULT_MAX_STALE_MS = 3e4;
|
|
906
763
|
const DEFAULT_MAX_ENTRIES = 1e4;
|
|
907
764
|
/**
|
|
908
765
|
* An in-process `VersionCache`: a bounded LRU keyed by principal id that keeps
|
|
909
766
|
* resolved versions and shares reads in flight. Create it once at module
|
|
910
767
|
* scope.
|
|
911
768
|
*/
|
|
912
|
-
function memoryVersionCache(options) {
|
|
913
|
-
const maxStaleMs = Math.min(Math.max(Math.floor(options.maxStaleMs), 0), MAX_STALE_CEILING_MS);
|
|
769
|
+
function memoryVersionCache(options = {}) {
|
|
770
|
+
const maxStaleMs = Math.min(Math.max(Math.floor(options.maxStaleMs ?? DEFAULT_MAX_STALE_MS), 0), MAX_STALE_CEILING_MS);
|
|
914
771
|
const maxEntries = Math.max(Math.floor(options.maxEntries ?? DEFAULT_MAX_ENTRIES), 1);
|
|
915
772
|
const entries = /* @__PURE__ */ new Map();
|
|
916
773
|
const inFlight = /* @__PURE__ */ new Map();
|
|
917
774
|
const counts = {
|
|
918
775
|
reads: 0,
|
|
919
776
|
shared: 0,
|
|
777
|
+
storeHits: 0,
|
|
920
778
|
hits: 0,
|
|
921
779
|
evictions: 0
|
|
922
780
|
};
|
|
781
|
+
const { shared: remote } = options;
|
|
923
782
|
const now = () => nowMillis(options.now?.());
|
|
924
783
|
const store = (id, entry) => {
|
|
925
784
|
entries.delete(id);
|
|
@@ -929,20 +788,43 @@ function memoryVersionCache(options) {
|
|
|
929
788
|
if (oldest.done !== true) entries.delete(oldest.value);
|
|
930
789
|
}
|
|
931
790
|
};
|
|
932
|
-
const
|
|
791
|
+
const remember = (id, version) => {
|
|
792
|
+
if (remote === void 0) return;
|
|
793
|
+
try {
|
|
794
|
+
Promise.resolve(remote.set(id, version)).catch(() => void 0);
|
|
795
|
+
} catch {}
|
|
796
|
+
};
|
|
797
|
+
const fromStore = async (id, read) => {
|
|
798
|
+
try {
|
|
799
|
+
const known = await remote?.get(id);
|
|
800
|
+
if (typeof known === "number" && Number.isFinite(known)) {
|
|
801
|
+
counts.storeHits += 1;
|
|
802
|
+
return known;
|
|
803
|
+
}
|
|
804
|
+
} catch {}
|
|
933
805
|
counts.reads += 1;
|
|
806
|
+
return read();
|
|
807
|
+
};
|
|
808
|
+
const start = (id, read, at, useStore) => {
|
|
934
809
|
const keep = (version) => {
|
|
935
810
|
if (typeof version === "number" && Number.isFinite(version)) {
|
|
936
811
|
const entry = entries.get(id);
|
|
812
|
+
const highest = Math.max(version, entry?.version ?? version);
|
|
937
813
|
store(id, {
|
|
938
|
-
version:
|
|
814
|
+
version: highest,
|
|
939
815
|
at
|
|
940
816
|
});
|
|
817
|
+
remember(id, highest);
|
|
941
818
|
}
|
|
942
819
|
return version;
|
|
943
820
|
};
|
|
821
|
+
if (useStore && remote !== void 0) return settled(id, fromStore(id, read), keep);
|
|
822
|
+
counts.reads += 1;
|
|
944
823
|
const answer = read();
|
|
945
|
-
if (!isThenable
|
|
824
|
+
if (!isThenable(answer)) return keep(answer);
|
|
825
|
+
return settled(id, answer, keep);
|
|
826
|
+
};
|
|
827
|
+
const settled = (id, answer, keep) => {
|
|
946
828
|
const pending = Promise.resolve(answer).then((version) => inFlight.get(id) === pending ? keep(version) : version);
|
|
947
829
|
inFlight.set(id, pending);
|
|
948
830
|
const settle = () => {
|
|
@@ -956,7 +838,7 @@ function memoryVersionCache(options) {
|
|
|
956
838
|
maxStaleMs,
|
|
957
839
|
current(principal, read, { live }) {
|
|
958
840
|
const at = now();
|
|
959
|
-
if (live) return start(principal.id, read, at);
|
|
841
|
+
if (live) return start(principal.id, read, at, false);
|
|
960
842
|
const entry = entries.get(principal.id);
|
|
961
843
|
if (entry !== void 0 && at - entry.at <= maxStaleMs) {
|
|
962
844
|
counts.hits += 1;
|
|
@@ -968,7 +850,7 @@ function memoryVersionCache(options) {
|
|
|
968
850
|
counts.shared += 1;
|
|
969
851
|
return pending;
|
|
970
852
|
}
|
|
971
|
-
return start(principal.id, read, at);
|
|
853
|
+
return start(principal.id, read, at, true);
|
|
972
854
|
},
|
|
973
855
|
seed(principal, version, at) {
|
|
974
856
|
if (!Number.isFinite(version)) return;
|
|
@@ -977,21 +859,30 @@ function memoryVersionCache(options) {
|
|
|
977
859
|
if (dated > current) return;
|
|
978
860
|
const entry = entries.get(principal);
|
|
979
861
|
if (entry === void 0) {
|
|
980
|
-
if (current - dated <= maxStaleMs)
|
|
862
|
+
if (current - dated <= maxStaleMs) {
|
|
863
|
+
store(principal, {
|
|
864
|
+
version,
|
|
865
|
+
at: dated
|
|
866
|
+
});
|
|
867
|
+
remember(principal, version);
|
|
868
|
+
}
|
|
869
|
+
return;
|
|
870
|
+
}
|
|
871
|
+
if (version > entry.version || version === entry.version && dated > entry.at) {
|
|
872
|
+
store(principal, {
|
|
981
873
|
version,
|
|
982
|
-
at: dated
|
|
874
|
+
at: Math.max(entry.at, dated)
|
|
983
875
|
});
|
|
984
|
-
|
|
876
|
+
remember(principal, version);
|
|
985
877
|
}
|
|
986
|
-
if (version > entry.version || version === entry.version && dated > entry.at) store(principal, {
|
|
987
|
-
version,
|
|
988
|
-
at: Math.max(entry.at, dated)
|
|
989
|
-
});
|
|
990
878
|
},
|
|
991
879
|
evict(principal) {
|
|
992
880
|
counts.evictions += 1;
|
|
993
881
|
entries.delete(principal);
|
|
994
882
|
inFlight.delete(principal);
|
|
883
|
+
if (remote !== void 0) try {
|
|
884
|
+
Promise.resolve(remote.delete(principal)).catch(() => void 0);
|
|
885
|
+
} catch {}
|
|
995
886
|
},
|
|
996
887
|
stats() {
|
|
997
888
|
return {
|
|
@@ -1546,48 +1437,6 @@ function localSnapshotManifest(policy) {
|
|
|
1546
1437
|
}));
|
|
1547
1438
|
}
|
|
1548
1439
|
//#endregion
|
|
1549
|
-
//#region src/app/define-app.ts
|
|
1550
|
-
function grantsOf(policy) {
|
|
1551
|
-
return [...policy.index.grantsByKey.values()].flat();
|
|
1552
|
-
}
|
|
1553
|
-
function assertProduction(policy, options) {
|
|
1554
|
-
const grants = grantsOf(policy);
|
|
1555
|
-
if (options.store === void 0 && grants.some((grant) => grant.approval !== void 0)) throw new Error("PermDock: profile 'prod' needs a store: a grant requires approval and approvals cannot complete without an ApprovalStore");
|
|
1556
|
-
if (options.limits === void 0 && grants.some((grant) => grant.limit !== void 0)) throw new Error("PermDock: profile 'prod' needs limits: a grant has a limit and every call would deny with limit-unavailable; pass limits: limits(store)");
|
|
1557
|
-
}
|
|
1558
|
-
/**
|
|
1559
|
-
* The in-process services `dev` fills in: one memory approval store that every
|
|
1560
|
-
* adapter of the app shares, and memory limits when a grant has a `limit`. They
|
|
1561
|
-
* live here, not in the adapters, so an adapter ships no store and an app
|
|
1562
|
-
* without `defineApp` ships neither.
|
|
1563
|
-
*/
|
|
1564
|
-
function devDefaults(policy, options) {
|
|
1565
|
-
return {
|
|
1566
|
-
...options,
|
|
1567
|
-
profile: "dev",
|
|
1568
|
-
...options.store === void 0 ? { store: memoryApprovalStore() } : {},
|
|
1569
|
-
...options.limits === void 0 && grantsOf(policy).some((grant) => grant.limit !== void 0) ? { limits: limits(memoryLimitStore()) } : {}
|
|
1570
|
-
};
|
|
1571
|
-
}
|
|
1572
|
-
/**
|
|
1573
|
-
* Binds the app's sources, features and services to `policy`. The result is a
|
|
1574
|
-
* policy: pass it wherever a policy goes (`createPermDock`, every adapter, the
|
|
1575
|
-
* CLI) and each picks up the app definition, with its own options taking
|
|
1576
|
-
* precedence. The profile defaults to `prod`.
|
|
1577
|
-
*/
|
|
1578
|
-
function defineApp(policy, options = {}) {
|
|
1579
|
-
const profile = options.profile ?? "prod";
|
|
1580
|
-
const definition = profile === "dev" ? devDefaults(policy, options) : {
|
|
1581
|
-
...options,
|
|
1582
|
-
profile
|
|
1583
|
-
};
|
|
1584
|
-
if (profile === "prod") assertProduction(policy, definition);
|
|
1585
|
-
const prototype = Object.getPrototypeOf(policy);
|
|
1586
|
-
const app = Object.create(prototype, Object.getOwnPropertyDescriptors(policy));
|
|
1587
|
-
Object.defineProperty(app, APP, { value: Object.freeze(definition) });
|
|
1588
|
-
return Object.freeze(app);
|
|
1589
|
-
}
|
|
1590
|
-
//#endregion
|
|
1591
1440
|
//#region src/core/shadow.ts
|
|
1592
1441
|
function legacyAnswer(legacy, permission, data, subject) {
|
|
1593
1442
|
try {
|
|
@@ -1698,7 +1547,7 @@ function heldRoleNames(principal) {
|
|
|
1698
1547
|
function mayAccess(policy, user, permission, options = {}) {
|
|
1699
1548
|
try {
|
|
1700
1549
|
const resolved = resolveSubject(policy, user, compact({ tenant: options.tenant }), []);
|
|
1701
|
-
if (isThenable
|
|
1550
|
+
if (isThenable(resolved)) return true;
|
|
1702
1551
|
const principal = resolved.principal;
|
|
1703
1552
|
const relevant = policy.index.grantsByKey.get(permission.key) ?? [];
|
|
1704
1553
|
if (principal !== null) {
|
|
@@ -1742,7 +1591,7 @@ function customRoleSource(reader, options = {}) {
|
|
|
1742
1591
|
rolesFor(tenant, context) {
|
|
1743
1592
|
if (declared !== void 0 && context?.held.every((name) => declared.has(name)) === true) return [];
|
|
1744
1593
|
const roles = reader.rolesFor(tenant);
|
|
1745
|
-
return isThenable
|
|
1594
|
+
return isThenable(roles) ? roles.then((list) => ofTenant(tenant, list)) : ofTenant(tenant, roles);
|
|
1746
1595
|
},
|
|
1747
1596
|
...reader.assignable === void 0 ? {} : { assignable: (tenant) => reader.assignable?.(tenant) ?? [] },
|
|
1748
1597
|
...reader.globalRoles === void 0 ? {} : { globalRoles: (context) => declared !== void 0 && context?.held.every((name) => declared.has(name)) === true ? [] : reader.globalRoles?.() ?? [] },
|
|
@@ -1774,7 +1623,7 @@ function snapshotFor(policy, user, options = {}) {
|
|
|
1774
1623
|
tenant: options.tenant,
|
|
1775
1624
|
memberships: memberships === void 0 ? void 0 : { membershipsFor: () => [...memberships] }
|
|
1776
1625
|
}), auth);
|
|
1777
|
-
if (isThenable
|
|
1626
|
+
if (isThenable(resolved)) throw new TypeError("PermDock: snapshotFor() needs synchronous subject and context mappers. Resolve async data first and pass it as a Subject, or use (await getPermDock(...)).snapshot().");
|
|
1778
1627
|
const subject = withPlans(resolved, options.plans);
|
|
1779
1628
|
const tenants = new Set(tenantsOf(subject.principal, scopeList(policy.scopes)));
|
|
1780
1629
|
const customRoles = (options.customRoles ?? []).filter((item) => item.scope === "global" || item.shared === true && tenants.size > 0 || item.tenant !== void 0 && tenants.has(item.tenant));
|
|
@@ -2223,4 +2072,4 @@ function toCsvRow(event) {
|
|
|
2223
2072
|
].map(field).join(",");
|
|
2224
2073
|
}
|
|
2225
2074
|
//#endregion
|
|
2226
|
-
export {
|
|
2075
|
+
export { memorySettingsSource as A, approvalPolicies as C, memoryCustomRoleSource as D, validateApprovalPolicy as E, subjectMembershipSource as M, accessOutcome as N, memoryEntitlementSource as O, sqlFunction as P, stripeEntitlementSource as S, memoryApprovalPolicySource as T, simulateArazzo as _, normalizeMembership as a, signPolicyDocument as b, crud as c, snapshotFor as d, customRoleSource as f, arazzoFindings as g, localSnapshotManifest as h, decideRoleChange as i, memorySnapshotSource as j, memoryMembershipSource as k, readable as l, shadowMode as m, toCsvRow as n, normalizeMemberships as o, mayAccess as p, checkRoleChange as r, resolveScope as s, CSV_COLUMNS as t, writable as u, memoryVersionCache as v, approvalPoliciesFor as w, memoryRelationSource as x, instanceCache as y };
|
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-Cq2rvv-C.js";
|
|
2
|
+
import { t as memoryReplayStore } from "../replay-DKhFvt0L.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-BdZpqhJK.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,12 +1,12 @@
|
|
|
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 { n as readBodyText } from "../body-text-DQhcmqdY.js";
|
|
5
4
|
import { f as validationProblem, l as problemResponse, o as methodNotAllowed, s as notFoundProblem } from "../problem-BWP1l86g.js";
|
|
6
|
-
import { t as
|
|
5
|
+
import { t as timeoutSignal } from "../timeout-D51niuQP.js";
|
|
6
|
+
import { t as cancelApprovals } from "../helpers-DzBIfL1N.js";
|
|
7
|
+
import { n as readBodyText } from "../body-text-DQhcmqdY.js";
|
|
7
8
|
import { i as issuerFromDiscovery, t as joseTokenVerifier } from "../verifier-DUV6pLqZ.js";
|
|
8
9
|
import { t as memoryReplayStore } from "../replay-BU09ad4L.js";
|
|
9
|
-
import { t as timeoutSignal } from "../timeout-D51niuQP.js";
|
|
10
10
|
//#region src/ssf/claims.ts
|
|
11
11
|
function asSubject(mapped, session, issuer) {
|
|
12
12
|
if (typeof mapped === "string") return compact({
|
|
@@ -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-rNfz7t0M.js";
|
|
2
|
+
import { l as ReplayStore } from "./types-Cq2rvv-C.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,9 +2,9 @@ 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 {
|
|
5
|
+
import { n as matchGrantee } from "./grantee-match-8J2y60MF.js";
|
|
6
|
+
import { o as readWireApproval } from "./approval-normalize-DNLW0zOM.js";
|
|
6
7
|
import { i as rootMembershipId } from "./subject-C7RddW0G.js";
|
|
7
|
-
import { n as matchGrantee } from "./grantee-match-BP-k4vRJ.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
|
|
10
10
|
const DEFAULT_PAGE_SIZE = 50;
|
|
@@ -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-
|
|
2
|
-
import {
|
|
3
|
-
import { a as PermDock } from "./permdock-
|
|
4
|
-
import { a as ProblemDetails } from "./errors-
|
|
5
|
-
import { n as DescribeMessages, t as DecisionDescription } from "./describe-
|
|
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-rNfz7t0M.js";
|
|
2
|
+
import { w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
+
import { a as PermDock } from "./permdock-BaB-KQqn.js";
|
|
4
|
+
import { a as ProblemDetails } from "./errors-D_JIQJYb.js";
|
|
5
|
+
import { n as DescribeMessages, t as DecisionDescription } from "./describe-DVobr5FX.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. */
|
|
@@ -1,11 +1,10 @@
|
|
|
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";
|
|
2
3
|
import { g as secondsOf } from "./time-nR1JesoH.js";
|
|
3
|
-
import {
|
|
4
|
-
import { c as nowSeconds } from "./tenancy-
|
|
4
|
+
import { r as rowIdOf } from "./condition-evaluate-bVVRSdzq.js";
|
|
5
|
+
import { c as nowSeconds } from "./tenancy-BlxY5T0q.js";
|
|
5
6
|
import { r as payloadDigest } from "./token-DaMnIU9O.js";
|
|
6
|
-
import { n as parseSnapshot } from "./snapshot-
|
|
7
|
-
import { c as snapshotClaim } from "./where-scope-BAyOsPQW.js";
|
|
8
|
-
import { n as fromSnapshot, t as emptySnapshot } from "./from-snapshot-DHnb8Fh4.js";
|
|
7
|
+
import { n as parseSnapshot } from "./snapshot-C2j96x97.js";
|
|
9
8
|
import { t as timeoutSignal } from "./timeout-D51niuQP.js";
|
|
10
9
|
//#region src/client/source.ts
|
|
11
10
|
/** A compact JWS: three non-empty dot-separated parts. */
|
|
@@ -401,7 +400,7 @@ function refKey(ref) {
|
|
|
401
400
|
return "";
|
|
402
401
|
}
|
|
403
402
|
const CURRENT = Symbol.for("permdock.current");
|
|
404
|
-
const STORE = Symbol("permdock.store");
|
|
403
|
+
const STORE = Symbol.for("permdock.store");
|
|
405
404
|
const VALIDATION = {
|
|
406
405
|
outcome: "denied",
|
|
407
406
|
denials: [{
|
|
@@ -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-Cem4QafV.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,10 +1,9 @@
|
|
|
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 {
|
|
7
|
-
import { n as ProtectedActionReadable, r as SveltePermDockOptions } from "./types-C3C9ien9.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, 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";
|
|
6
|
+
import { n as ProtectedActionReadable, r as SveltePermDockOptions } from "./types-CD1qmxdx.js";
|
|
8
7
|
import { Readable } from "svelte/store";
|
|
9
8
|
//#region src/svelte/stores.d.ts
|
|
10
9
|
declare function setPermDock(options: SveltePermDockOptions): ClientPermDock;
|