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,332 +0,0 @@
|
|
|
1
|
-
import { a as sole, r as isRecord, t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
|
-
import { t as loadPrincipal } from "./principal-source-C6N60GtM.js";
|
|
4
|
-
import { g as secondsOf, m as rfc3339 } from "./time-nR1JesoH.js";
|
|
5
|
-
import { d as scopeList, l as scopeChain, p as tenantOf, r as findScope, s as resolveScope, t as activeFor, u as scopeIdOf } from "./scopes-BSdYaGHs.js";
|
|
6
|
-
import { a as readOnlyActorRefuses, n as coveredByDelegation } from "./delegation-aK4T_5WU.js";
|
|
7
|
-
import { r as readWireValidity, t as isActive } from "./validity-Buc7w8E9.js";
|
|
8
|
-
import { o as resourceRoleCondition } from "./grantee-conditions-DX4K_gGI.js";
|
|
9
|
-
import { c as nowSeconds, n as inTeam, o as membershipField, r as isMembershipExpired } from "./tenancy-DvOHHk3-.js";
|
|
10
|
-
import { a as bindConditionRefs, n as parseSnapshot } from "./snapshot-DHPih65J.js";
|
|
11
|
-
//#region src/core/snapshot-sign.ts
|
|
12
|
-
/**
|
|
13
|
-
* The claims `signSnapshot` signs for `snapshot`. `issuedAt` and `expiresAt`
|
|
14
|
-
* become `iat` and `exp` and leave the `snapshot` claim, so the registered
|
|
15
|
-
* claims are the only times a verifier reads.
|
|
16
|
-
*/
|
|
17
|
-
function snapshotClaims(snapshot) {
|
|
18
|
-
const { issuedAt, expiresAt, ...claim } = snapshot;
|
|
19
|
-
const iat = secondsOf(issuedAt);
|
|
20
|
-
return compact({
|
|
21
|
-
snapshot: claim,
|
|
22
|
-
sub: snapshot.subject.principal?.id,
|
|
23
|
-
iat: iat === void 0 || iat <= 0 ? void 0 : iat,
|
|
24
|
-
exp: secondsOf(expiresAt)
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Signs `snapshot` as a `vnd.permdock.snapshot+jwt` with the claims
|
|
29
|
-
* `snapshotClaims` answers.
|
|
30
|
-
*/
|
|
31
|
-
function signSnapshot(snapshot, signer, options = {}) {
|
|
32
|
-
const { iat, exp, ...payload } = snapshotClaims(snapshot);
|
|
33
|
-
return signer.sign(payload, compact({
|
|
34
|
-
typ: "vnd.permdock.snapshot+jwt",
|
|
35
|
-
audience: options.audience,
|
|
36
|
-
issuedAt: iat,
|
|
37
|
-
expiresAt: exp
|
|
38
|
-
}));
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* The `snapshot` claim of verified claims with `issuedAt` and `expiresAt` taken
|
|
42
|
-
* from `iat` and `exp`; `undefined` when the claim is not an object.
|
|
43
|
-
*/
|
|
44
|
-
function snapshotClaim(claims) {
|
|
45
|
-
const claim = claims["snapshot"];
|
|
46
|
-
if (!isRecord(claim)) return;
|
|
47
|
-
const { issuedAt: _issuedAt, expiresAt: _expiresAt, ...rest } = claim;
|
|
48
|
-
return compact({
|
|
49
|
-
...rest,
|
|
50
|
-
issuedAt: rfc3339(typeof claims.iat === "number" ? claims.iat : 0),
|
|
51
|
-
expiresAt: typeof claims.exp === "number" ? rfc3339(claims.exp) : void 0
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* The snapshot a verified `vnd.permdock.snapshot+jwt` carries, parsed as
|
|
56
|
-
* `parseSnapshot` parses it, with `issuedAt` and `expiresAt` from `iat` and
|
|
57
|
-
* `exp`. `null` when the claim is missing or not a valid snapshot.
|
|
58
|
-
*/
|
|
59
|
-
function snapshotFromClaims(claims) {
|
|
60
|
-
const claim = snapshotClaim(claims);
|
|
61
|
-
if (claim === void 0) return null;
|
|
62
|
-
try {
|
|
63
|
-
return parseSnapshot(claim);
|
|
64
|
-
} catch {
|
|
65
|
-
return null;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region src/core/decide-for.ts
|
|
70
|
-
function deniedFor(permission, reason) {
|
|
71
|
-
return freezeDeep({
|
|
72
|
-
outcome: "denied",
|
|
73
|
-
permission: permission.key,
|
|
74
|
-
denials: [{
|
|
75
|
-
role: null,
|
|
76
|
-
reason
|
|
77
|
-
}],
|
|
78
|
-
alternatives: []
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
/** Rows are checked like `decide`; `call: 'can'` keeps every limit unconsumed. */
|
|
82
|
-
const PEEK = Object.freeze({ call: "can" });
|
|
83
|
-
/**
|
|
84
|
-
* What `permission` on `row` decides for the principal `principalId` in the
|
|
85
|
-
* caller's active tenant. Never throws, never consumes a limit, and grants the
|
|
86
|
-
* caller nothing: the target is a separate instance with its own caches.
|
|
87
|
-
*/
|
|
88
|
-
async function decideForTarget(caller, principals, create, principalId, permission, row) {
|
|
89
|
-
if (caller.principal === null) return deniedFor(permission, "anonymous");
|
|
90
|
-
const tenant = caller.principal.tenant;
|
|
91
|
-
try {
|
|
92
|
-
const principal = await loadPrincipal(principals, principalId, tenant);
|
|
93
|
-
if (principal === null) return deniedFor(permission, "anonymous");
|
|
94
|
-
const target = await create(principal, tenant);
|
|
95
|
-
if (tenant !== void 0 && target.subject.principal?.tenant !== tenant && (principal.kind !== "contact" || target.tenants().length > 0)) return deniedFor(permission, "tenant-mismatch");
|
|
96
|
-
if (row !== void 0) await target.prefetchRelations(permission, [row]);
|
|
97
|
-
return target.decide(permission, row, PEEK);
|
|
98
|
-
} catch {
|
|
99
|
-
return deniedFor(permission, "anonymous");
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
//#endregion
|
|
103
|
-
//#region src/core/may-use.ts
|
|
104
|
-
function delegationMayCover(permission, delegation, hasActor) {
|
|
105
|
-
return [void 0, ...[...delegation?.access ?? [], ...delegation?.authorizationDetails ?? []].flatMap((entry) => typeof entry === "object" && entry !== null && typeof entry["identifier"] === "string" ? [entry["identifier"]] : [])].some((id) => coveredByDelegation(permission, delegation, id, hasActor) === void 0);
|
|
106
|
-
}
|
|
107
|
-
function blocksEveryRow(grant) {
|
|
108
|
-
return grant.effect === "deny" && grant.where === void 0 && grant.check === void 0 && grant.portable !== false && grant.fields === void 0 && (grant.scope === void 0 || grant.scope === "tenant");
|
|
109
|
-
}
|
|
110
|
-
function withinDelegation(permdock, permission, ceiling) {
|
|
111
|
-
return (ceiling === void 0 || ceiling.includes(permission.key)) && !readOnlyActorRefuses(permdock.subject.actor, permission) && delegationMayCover(permission, permdock.subject.delegation, permdock.subject.actor !== void 0 && ceiling === void 0);
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Whether the subject's delegation, its delegated ceiling and a read-only actor
|
|
115
|
-
* leave `permission` within reach, whatever the grants say. A hint, never a
|
|
116
|
-
* decision.
|
|
117
|
-
*/
|
|
118
|
-
function delegationAllows(permdock, permission) {
|
|
119
|
-
try {
|
|
120
|
-
const snapshot = permdock.snapshot();
|
|
121
|
-
return "grants" in snapshot && withinDelegation(permdock, permission, snapshot.delegated);
|
|
122
|
-
} catch {
|
|
123
|
-
return false;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Whether `permission` could be granted to this instance's subject for some
|
|
128
|
-
* row: the grants its snapshot carries for the active tenant, minus an
|
|
129
|
-
* unconditional deny, within its delegation. A listing hint for tools and
|
|
130
|
-
* skills, never a decision; the call itself is decided in full.
|
|
131
|
-
*/
|
|
132
|
-
function mayUse(permdock, permission) {
|
|
133
|
-
try {
|
|
134
|
-
const snapshot = permdock.snapshot();
|
|
135
|
-
if (!("grants" in snapshot) || !withinDelegation(permdock, permission, snapshot.delegated)) return false;
|
|
136
|
-
const tenant = permdock.subject.principal?.tenant;
|
|
137
|
-
const scopes = scopeList(snapshot.scopes);
|
|
138
|
-
const grants = snapshot.grants.filter((grant) => {
|
|
139
|
-
if (grant.permission !== permission.key) return false;
|
|
140
|
-
const owner = grant.membership === void 0 ? void 0 : tenantOf(grant.membership, scopes);
|
|
141
|
-
return owner === void 0 || owner === tenant;
|
|
142
|
-
});
|
|
143
|
-
if (grants.some(blocksEveryRow)) return false;
|
|
144
|
-
return grants.some((grant) => grant.effect === "allow");
|
|
145
|
-
} catch {
|
|
146
|
-
return false;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
function isConditioned(grant) {
|
|
150
|
-
return grant.where !== void 0 || grant.check !== void 0 || grant.validity !== void 0 || grant.portable === false;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* The instances of `scope` in which the subject holds `permission`, from its
|
|
154
|
-
* live memberships of exactly that scope, within its delegation: by default
|
|
155
|
-
* those with an allow that carries no row condition (`where`, `check`, a
|
|
156
|
-
* validity window or a non-portable test; a `fields` limit is not a row
|
|
157
|
-
* condition), minus the instances any deny of the permission reaches. The
|
|
158
|
-
* in-process mirror of the SQL `permitted_<scope>_ids_by_permission`. With
|
|
159
|
-
* `conditioned: true` it also lists the instances where a conditioned allow
|
|
160
|
-
* applies, minus only unconditional denies, as
|
|
161
|
-
* `permitted_<scope>_ids_by_permission(p_permission, true)` does. A listing,
|
|
162
|
-
* never a decision: a row's own check still runs `can`.
|
|
163
|
-
*/
|
|
164
|
-
function permittedIds(permdock, permission, scope, options = {}) {
|
|
165
|
-
try {
|
|
166
|
-
const snapshot = permdock.snapshot({ tenants: "all" });
|
|
167
|
-
if (!("grants" in snapshot)) return [];
|
|
168
|
-
const scopes = scopeList(snapshot.scopes);
|
|
169
|
-
const name = resolveScope(scopes, scope);
|
|
170
|
-
if (name === void 0 || !withinDelegation(permdock, permission, snapshot.delegated)) return [];
|
|
171
|
-
const conditioned = options.conditioned === true;
|
|
172
|
-
const now = nowSeconds();
|
|
173
|
-
const allowed = /* @__PURE__ */ new Set();
|
|
174
|
-
const denied = /* @__PURE__ */ new Set();
|
|
175
|
-
for (const grant of snapshot.grants) {
|
|
176
|
-
const membership = grant.membership;
|
|
177
|
-
if (grant.permission !== permission.key || grant.scope !== name || membership?.scope !== name || membership.id === void 0 || isMembershipExpired(membership, now) || options.within !== void 0 && tenantOf(membership, scopes) !== options.within) continue;
|
|
178
|
-
if (grant.effect === "deny") {
|
|
179
|
-
if (!conditioned || !isConditioned(grant)) denied.add(membership.id);
|
|
180
|
-
} else if ((conditioned || !isConditioned(grant)) && isActive(readWireValidity(grant.validity), now)) allowed.add(membership.id);
|
|
181
|
-
}
|
|
182
|
-
return [...allowed].filter((id) => !denied.has(id)).toSorted();
|
|
183
|
-
} catch {
|
|
184
|
-
return [];
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
//#endregion
|
|
188
|
-
//#region src/core/where-scope.ts
|
|
189
|
-
const ALWAYS = freezeDeep({
|
|
190
|
-
op: "eq",
|
|
191
|
-
field: "_",
|
|
192
|
-
value: true
|
|
193
|
-
});
|
|
194
|
-
function eq(field, value) {
|
|
195
|
-
return value === void 0 ? {
|
|
196
|
-
op: "or",
|
|
197
|
-
conditions: []
|
|
198
|
-
} : {
|
|
199
|
-
op: "eq",
|
|
200
|
-
field,
|
|
201
|
-
value
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* One equality per partitioning scope key on the membership's chain, outermost
|
|
206
|
-
* first.
|
|
207
|
-
*/
|
|
208
|
-
function namedFilters(membership, scope) {
|
|
209
|
-
if (findScope(scope.scopes, membership.scope ?? "") === void 0 || !inTeam(membership, scope.scopes, scope.team) || !activeFor(membership, scope.scopes, scope.tenant) || membership.scope === void 0) return null;
|
|
210
|
-
const filters = [];
|
|
211
|
-
for (const name of scopeChain(scope.scopes, membership.scope).toReversed()) {
|
|
212
|
-
const key = scope.fieldOf(name);
|
|
213
|
-
if (key !== void 0 && scope.partitioned(name, key)) filters.push(eq(key, scopeIdOf(membership, name)));
|
|
214
|
-
}
|
|
215
|
-
return filters;
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* The row filters a grant's membership implies, or `null` when the grant
|
|
219
|
-
* reaches no row in this scope (another tenant, no active tenant, expired).
|
|
220
|
-
*/
|
|
221
|
-
function scopeFilters(grant, scope) {
|
|
222
|
-
if (grant.scope === void 0) return [];
|
|
223
|
-
const membership = grant.membership;
|
|
224
|
-
if (membership === void 0 || isMembershipExpired(membership, scope.now)) return null;
|
|
225
|
-
if (typeof grant.scope === "string") return membership.scope === grant.scope ? namedFilters(membership, scope) : null;
|
|
226
|
-
const on = membership.on;
|
|
227
|
-
if (on === void 0) return null;
|
|
228
|
-
if (scope.resources === void 0) return on.resource === grant.scope.resource && on.resource === scope.resource ? [eq("id", on.id)] : null;
|
|
229
|
-
const roleResource = scope.resources.get(grant.scope.resource);
|
|
230
|
-
if (on.resource !== grant.scope.resource && membershipField(roleResource, on.resource, scope.resources) === void 0) return null;
|
|
231
|
-
const walked = scope.graph === true ? resourceRoleCondition(scope.resources.get(scope.resource), on.resource, [on.id], scope.resources) : void 0;
|
|
232
|
-
if (walked !== void 0) return [walked];
|
|
233
|
-
const field = membershipField(scope.resources.get(scope.resource), on.resource, scope.resources);
|
|
234
|
-
return field === void 0 ? null : [eq(field, on.id)];
|
|
235
|
-
}
|
|
236
|
-
function all(conditions) {
|
|
237
|
-
if (conditions.length === 0) return ALWAYS;
|
|
238
|
-
return sole(conditions) ?? {
|
|
239
|
-
op: "and",
|
|
240
|
-
conditions: [...conditions]
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
function scopedCondition(grant, scope) {
|
|
244
|
-
const filters = scopeFilters(grant, scope);
|
|
245
|
-
if (filters === null) return null;
|
|
246
|
-
const parts = grant.where === void 0 ? filters : [...filters, grant.where];
|
|
247
|
-
return parts.length === 0 ? "always" : all(parts);
|
|
248
|
-
}
|
|
249
|
-
/** Whether an unconditional `deny` removes every row `allow` could reach. */
|
|
250
|
-
function covers(deny, allow, scopes) {
|
|
251
|
-
if (deny.where !== void 0) return false;
|
|
252
|
-
const denied = deny.membership;
|
|
253
|
-
if (deny.scope === void 0 || denied === void 0) return deny.scope === void 0;
|
|
254
|
-
const allowed = allow.membership;
|
|
255
|
-
if (allowed === void 0) return false;
|
|
256
|
-
if (typeof deny.scope === "object") return typeof allow.scope === "object" && denied.on?.resource === allowed.on?.resource && denied.on?.id === allowed.on?.id;
|
|
257
|
-
if (typeof allow.scope !== "string" || allowed.scope === void 0) return false;
|
|
258
|
-
const chain = scopeChain(scopes, deny.scope);
|
|
259
|
-
return scopeChain(scopes, allowed.scope).includes(deny.scope) && chain.every((name) => scopeIdOf(allowed, name) === scopeIdOf(denied, name));
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* The portable filter for one permission's grants: allows OR together, each
|
|
263
|
-
* narrowed to its membership's tenant, team or resource; any applicable
|
|
264
|
-
* portable deny is subtracted, and an unconditional one empties the result.
|
|
265
|
-
*/
|
|
266
|
-
function collect(grants, scope) {
|
|
267
|
-
const none = {
|
|
268
|
-
op: "or",
|
|
269
|
-
conditions: []
|
|
270
|
-
};
|
|
271
|
-
const partial = grants.some((grant) => grant.portable === false);
|
|
272
|
-
const denies = [];
|
|
273
|
-
for (const grant of grants) {
|
|
274
|
-
if (grant.effect !== "deny" || grant.portable === false || !isActive(readWireValidity(grant.validity, "deny"), scope.now)) continue;
|
|
275
|
-
const condition = scopedCondition(grant, scope);
|
|
276
|
-
if (condition === "always") return {
|
|
277
|
-
condition: none,
|
|
278
|
-
partial
|
|
279
|
-
};
|
|
280
|
-
if (condition !== null) denies.push({
|
|
281
|
-
grant,
|
|
282
|
-
condition
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
const parts = [];
|
|
286
|
-
for (const grant of grants) {
|
|
287
|
-
if (grant.effect !== "allow" || grant.portable === false || !isActive(readWireValidity(grant.validity), scope.now)) continue;
|
|
288
|
-
const condition = scopedCondition(grant, scope);
|
|
289
|
-
if (condition === null || denies.some((deny) => covers(deny.grant, grant, scope.scopes))) continue;
|
|
290
|
-
parts.push(all([...condition === "always" ? [] : [condition], ...denies.map((deny) => ({
|
|
291
|
-
op: "not",
|
|
292
|
-
condition: deny.condition
|
|
293
|
-
}))]));
|
|
294
|
-
}
|
|
295
|
-
if (parts.length === 0) return {
|
|
296
|
-
condition: none,
|
|
297
|
-
partial
|
|
298
|
-
};
|
|
299
|
-
return {
|
|
300
|
-
condition: sole(parts) ?? {
|
|
301
|
-
op: "or",
|
|
302
|
-
conditions: parts
|
|
303
|
-
},
|
|
304
|
-
partial
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
* `collect`, with every subject ref bound to `scope.subject` and the subject
|
|
309
|
-
* attached (not enumerable) for `memberOf`, which needs its memberships.
|
|
310
|
-
*/
|
|
311
|
-
function whereFromGrants(grants, scope) {
|
|
312
|
-
const { condition, partial } = collect(grants, scope);
|
|
313
|
-
const result = {
|
|
314
|
-
condition: bindConditionRefs(condition, scope.subject),
|
|
315
|
-
partial
|
|
316
|
-
};
|
|
317
|
-
Object.defineProperty(result, "subject", {
|
|
318
|
-
value: scope.subject,
|
|
319
|
-
enumerable: false
|
|
320
|
-
});
|
|
321
|
-
Object.defineProperty(result, "scopes", {
|
|
322
|
-
value: scope.scopes,
|
|
323
|
-
enumerable: false
|
|
324
|
-
});
|
|
325
|
-
if (scope.resources !== void 0) Object.defineProperty(result, "resources", {
|
|
326
|
-
value: scope.resources,
|
|
327
|
-
enumerable: false
|
|
328
|
-
});
|
|
329
|
-
return freezeDeep(result);
|
|
330
|
-
}
|
|
331
|
-
//#endregion
|
|
332
|
-
export { decideForTarget as a, snapshotClaim as c, permittedIds as i, snapshotClaims as l, delegationAllows as n, deniedFor as o, mayUse as r, signSnapshot as s, whereFromGrants as t, snapshotFromClaims as u };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as isReadonlyArray, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { a as flattenApprovers, c as isManagerApprover, d as manager, f as user, l as isPermissionApprover, r as approverLeaves, s as isAnyOfInput, u as isUserApprover } from "./approvers-BaNwKYgd.js";
|
|
3
3
|
import { d as isSelfParented } from "./resource-relations-8-pCScBO.js";
|
|
4
|
-
import { r as assertDuration } from "./time-nR1JesoH.js";
|
|
5
4
|
import { a as authenticated, r as asGrantee } from "./grantee-Dke-9rd1.js";
|
|
5
|
+
import { r as assertDuration } from "./time-nR1JesoH.js";
|
|
6
6
|
//#region src/core/approval-normalize.ts
|
|
7
7
|
/**
|
|
8
8
|
* Every approver a requirement names: `by`, each stage and its escalation, and
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as statusProblem } from "./problem-details-CLDgX1KV.js";
|
|
2
|
-
import { t as MAX_BODY_BYTES } from "./body-text-DQhcmqdY.js";
|
|
3
2
|
import { l as problemResponse } from "./problem-BWP1l86g.js";
|
|
3
|
+
import { t as MAX_BODY_BYTES } from "./body-text-DQhcmqdY.js";
|
|
4
4
|
//#region src/server/body.ts
|
|
5
5
|
/** The 413 Problem Details for a body over `maxBytes`. */
|
|
6
6
|
function bodyTooLarge(maxBytes = MAX_BODY_BYTES) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
|
+
import { i as wireValidity } from "./validity-Buc7w8E9.js";
|
|
2
3
|
import { a as getResource, c as listPermissions, h as formerKeys } from "./permission-registry-B8tYxPIt.js";
|
|
3
|
-
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
4
4
|
import { m as findRole, v as listRoles } from "./grantee-Dke-9rd1.js";
|
|
5
|
-
import {
|
|
5
|
+
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
6
6
|
import { t as byCodePoint } from "./compare-DTfyUunF.js";
|
|
7
7
|
import { t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
|
|
8
8
|
import { t as catalogSchema } from "./schema-BlnU_TzE.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { h as secondsAt } from "./time-nR1JesoH.js";
|
|
3
|
-
import { n as readBodyText } from "./body-text-DQhcmqdY.js";
|
|
4
3
|
import { t as timeoutSignal } from "./timeout-D51niuQP.js";
|
|
4
|
+
import { n as readBodyText } from "./body-text-DQhcmqdY.js";
|
|
5
5
|
//#region src/terminal/device.ts
|
|
6
6
|
/** Milliseconds an authorization server request may take. */
|
|
7
7
|
const TERMINAL_TIMEOUT_MS = 1e4;
|
|
@@ -2,8 +2,8 @@ import { t as __commonJSMin } from "./rolldown-runtime-C3I60J0A.js";
|
|
|
2
2
|
import { styleText } from "node:util";
|
|
3
3
|
import "node:fs";
|
|
4
4
|
import "node:path";
|
|
5
|
-
import l__default from "node:readline";
|
|
6
5
|
import process$1, { stdin, stdout } from "node:process";
|
|
6
|
+
import l__default from "node:readline";
|
|
7
7
|
import "node:tty";
|
|
8
8
|
//#region ../../node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/utils.js
|
|
9
9
|
const getCodePointsLength = (() => {
|
|
@@ -4,8 +4,8 @@ import { d as isoNow } from "./time-nR1JesoH.js";
|
|
|
4
4
|
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
5
5
|
import { n as sha256, r as sha256Digest } from "./sha256-C-4WXKIu.js";
|
|
6
6
|
import { d as membershipEvent, f as memoryDecisionSink } from "./sink-D9_vh372.js";
|
|
7
|
-
import { n as readBodyText, t as MAX_BODY_BYTES } from "./body-text-DQhcmqdY.js";
|
|
8
7
|
import { t as readClaim } from "./claims-map-CKkoAAYF.js";
|
|
8
|
+
import { n as readBodyText, t as MAX_BODY_BYTES } from "./body-text-DQhcmqdY.js";
|
|
9
9
|
import { _ as SCIM_CONTENT_TYPE, b as isDirectoryUniquenessError, c as parseScimFilter, f as ERROR_SCHEMA, g as ROLES_EXTENSION, l as APP_DATA_EXTENSION, m as LIST_SCHEMA, o as filterSupported, p as GROUP_SCHEMA, v as USER_SCHEMA, y as isDirectoryNotFoundError } from "./postgres-store-DcyrPS-r.js";
|
|
10
10
|
//#region src/scim/auth.ts
|
|
11
11
|
function hexToBytes(hex) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as internalsOf, t as attachInternals } from "./internals-B3IgHrvo.js";
|
|
2
1
|
import { i as decideAllWith, n as canAllWith } from "./checks-fyDOhcz0.js";
|
|
2
|
+
import { n as internalsOf, t as attachInternals } from "./internals-B3IgHrvo.js";
|
|
3
3
|
//#region src/core/wrap.ts
|
|
4
4
|
/**
|
|
5
5
|
* A frozen copy of `permdock` with the members `overrides` returns replaced.
|