permdock 0.21.0 → 0.22.1
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-DzX5Gqcg.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-BkjyGVF0.js} +1 -1
- package/dist/{arazzo-BC3uLIZy.js → arazzo-CTx11zFc.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 +213 -69
- 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-v9Xo_XPa.js → casbin-BFOuRptJ.js} +1 -1
- package/dist/{casbin-BOZN1P2Y.js → casbin-BpS9ABSO.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-DXcQXWDi.js} +2 -2
- package/dist/{codemod-B-duJDFD.js → codemod-CxyKuniX.js} +13 -6
- package/dist/{codemod-C3a3Iz_w.js → codemod-DJ0WqXWk.js} +2 -2
- 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-BHVvAJ6Q.js} +1 -1
- package/dist/{delegation-aK4T_5WU.js → condition-evaluate-bVVRSdzq.js} +159 -159
- package/dist/{config-C45X7mpm.js → config-2grt3oll.js} +1 -1
- package/dist/{config-D2oXUwos.js → config-DyNanTjZ.js} +10 -8
- package/dist/{config-report-Bmo62RRr.js → config-report-Cg5Y5j0h.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-DaRoSPT0.js} +310 -36
- package/dist/{doctor-keoa9DpH.js → doctor-iIbdUK8F.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-Cf7nQsOb.js → gen-Cw8goef4.js} +5 -5
- package/dist/{gen-DYF4LKUP.js → gen-DFpWGJWF.js} +1 -1
- 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-C2ExjVvv.js → import-CvXswHDy.js} +2 -2
- package/dist/{import-CQ_kH_Ny.js → import-DDegvwDI.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-DvkvbvZ_.js → init-D_T_zgFg.js} +2 -2
- package/dist/{init-kTFkEu8S.js → init-Dz552ZPp.js} +4 -4
- 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-B2usNw0X.js} +4 -4
- package/dist/{login-CM_etiLM.js → login-DIVe6QdP.js} +3 -3
- package/dist/{manifest-B5yF3CIq.d.ts → manifest-C6eFl3Vo.d.ts} +1 -0
- package/dist/{manifest-CCd-xrM3.js → manifest-CbHnl4I_.js} +35 -35
- package/dist/{manifest-BdzBobNK.js → manifest-D44OkoLk.js} +1 -1
- package/dist/{manifest-schema-CsFsYLF-.js → manifest-schema-DUheHWcp.js} +4 -0
- 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-DA7FVG2F.js → openapi-5moP9sTG.js} +4 -4
- package/dist/{openapi-BOsx0xn9.js → openapi-Cc-aS9xC.js} +6 -135
- package/dist/{openapi-QnnU2A1c.js → openapi-DcvNnLFa.js} +2 -2
- 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-RIUEs3_S.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-DiqY3VBG.js → powersync-BUO5uQve.js} +11 -11
- package/dist/{powersync-CWsN-QaK.js → powersync-C5_aFFaU.js} +2 -2
- package/dist/powersync-DhspazC8.js +1 -0
- 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-BkT7tTKb.js} +6 -6
- package/dist/pull-COPm1W-l.js +1 -0
- package/dist/{push-DYOI4bPf.js → push-CEPcWdTJ.js} +7 -7
- 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-bzYlAXRt.js} +11 -6
- package/dist/{rls-CMFZWosz.js → rls-DTf8X__h.js} +45 -18
- package/dist/{rls-C7qXye9M.js → rls-v6V75yf_.js} +1 -1
- 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-CMJX9x7b.js → run-CgSQS9RF.js} +3 -3
- package/dist/run-ItR_bQGz.js +1 -0
- 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-BY3Pp1PS.js} +1 -1
- package/dist/{schema-7pXCaRYB.js → schema-B_HsJKm2.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-DrX83QBK.js → skills-Bj2wk38p.js} +2 -2
- package/dist/{skills-DAjg-rgF.js → skills-Clo4qYLn.js} +1 -1
- 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-CdYZBVcW.d.ts} +2 -2
- 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 +7 -6
- package/dist/supabase/index.js +4 -3
- package/dist/supabase/middleware.d.ts +6 -6
- package/dist/supabase/middleware.js +6 -6
- package/dist/{supabase-Cbl2orB2.js → supabase-CJv6K3iz.js} +2 -2
- package/dist/{supabase-CVZuytCC.js → supabase-DnazO6W4.js} +3 -3
- package/dist/{supabase-hook-BUcu3vPM.js → supabase-hook-DLQMugW8.js} +174 -62
- package/dist/supabase-hook-vZADjjfN.js +1 -0
- package/dist/{supautils-a_253u1X.js → supautils-BHKsP7l-.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 +36 -3
- package/dist/testing/fixtures/index.js +40 -3
- package/dist/testing/index.d.ts +42 -26
- package/dist/testing/index.js +115 -27
- 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-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/{types-D1NjjwI4.d.ts → types-cNZhj0UF.d.ts} +40 -9
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-DHsqp4lN.js → usage-BUUXeKwk.js} +1 -1
- package/dist/{usage-DPbdI3Vi.js → usage-DlOllyPi.js} +10 -10
- package/dist/usage-NmH5QXKC.js +1 -0
- package/dist/{validation-error-DkOK9zUE.d.ts → validation-error-DLAYFlkr.d.ts} +1 -1
- package/dist/{verify-C0jGJrmb.js → verify-CfmvQjVw.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/schemas/supabase-manifest-v1.json +6 -0
- 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
package/README.md
CHANGED
|
@@ -294,6 +294,7 @@ Any Standard Schema validator: Zod, Valibot, ArkType, Effect Schema. One import
|
|
|
294
294
|
| Decision plane | `permdock/authzen` · `permdock/approvals` · `permdock/workflow` · `permdock/workflow-sdk` · `permdock/cloud` · `permdock/scim` · `permdock/ssf` · `permdock/openapi` · `permdock/otel` · `permdock/pdp` |
|
|
295
295
|
| Data | `permdock/drizzle` · `permdock/prisma` · `permdock/kysely` · `permdock rls` · `permdock powersync` |
|
|
296
296
|
| Auth and providers | `permdock/jwt` · `permdock/supabase` · `permdock/supabase/middleware` · `permdock/better-supabase` · `permdock/better-auth` · `permdock/clerk` · `permdock/convex` |
|
|
297
|
+
| App | `permdock/app` |
|
|
297
298
|
| Build | `permdock/next/plugin` · `permdock/unplugin` |
|
|
298
299
|
| Testing | `permdock/testing` |
|
|
299
300
|
|
|
@@ -304,7 +305,7 @@ React Router loaders call `getSnapshot(request)` from `permdock/server` and send
|
|
|
304
305
|
- Fail-closed: an unknown, invalid or thrown check denies, and `can()` never throws.
|
|
305
306
|
- Deny overrides allow, an unknown reference is a type error, and evaluation is prototype-safe with no eval.
|
|
306
307
|
- `service_role` is never emitted, a model-supplied subject is never trusted, and an agent with no delegation is denied.
|
|
307
|
-
- The generated Supabase token hook and the functions it calls for `supabase.hook.claims` and `supabase.hook.before` are revoked from `public`, `anon` and `authenticated`, so no client reads another user's claims.
|
|
308
|
+
- The generated Supabase token hook and the functions it calls for `supabase.hook.claims` and `supabase.hook.before` are revoked from `public`, `anon` and `authenticated`, so no client reads another user's claims. `permdock_subject()` takes no user argument, runs for `authenticated` only and answers `null` for an anonymous or suspended caller.
|
|
308
309
|
- No one approves their own request by default, a delegate is held to the same rule as the person they cover, there is never a default tenant, and data is validated against the resource schema unless the caller marks a row it loaded `trusted: true`.
|
|
309
310
|
- A user or service API key expires unless the tenant sets `allowNoExpiry`. A feed key (`pdfeed_`) does not expire; rotation replaces the secret and keeps the id, and the key is bound to one resource.
|
|
310
311
|
- Authentication stays upstream: PermDock consumes verified sessions, JWKS-verified JWTs (`permdock/jwt`, with `jose` as an optional peer), provider claims and MCP `authInfo`. Core never verifies a token. User-editable fields never become claims: `subjectFromBetterAuth` copies `additionalFields` only through a `schema`. Read [authentication](https://permdock.com/docs/concepts/authentication).
|
package/dist/a2a/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as Policy, dr as AuthorizationDetail, yr as Principal } from "../policy-types-
|
|
2
|
-
import {
|
|
3
|
-
import { m as ApprovalStore } from "../types-
|
|
4
|
-
import { a as ProblemDetails } from "../errors-
|
|
5
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
1
|
+
import { D as Policy, dr as AuthorizationDetail, yr as Principal } from "../policy-types-rNfz7t0M.js";
|
|
2
|
+
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
+
import { m as ApprovalStore } from "../types-ZfjQB0KC.js";
|
|
4
|
+
import { a as ProblemDetails } from "../errors-D_JIQJYb.js";
|
|
5
|
+
import { t as InstanceOptions } from "../instance-options-C6gEDOts.js";
|
|
6
6
|
//#region src/a2a/types.d.ts
|
|
7
7
|
type A2aAuth = {
|
|
8
8
|
readonly clientId?: string;
|
package/dist/a2a/index.js
CHANGED
|
@@ -2,13 +2,14 @@ import { t as compact } from "../compact-CAf557ZB.js";
|
|
|
2
2
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
3
3
|
import { o as statusProblem } from "../problem-details-CLDgX1KV.js";
|
|
4
4
|
import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-ynga1EQy.js";
|
|
5
|
+
import { n as resourceRef } from "../resource-ref-CaS9yVPi.js";
|
|
5
6
|
import { t as canonicalJson } from "../canonical-json-DwilZ1iB.js";
|
|
6
7
|
import { t as bytesToBase64Url } from "../sha256-C-4WXKIu.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
8
|
+
import { i as challengeScope, o as hasScope, s as scopesReaching } from "../permdock-B5LyNVgn.js";
|
|
9
|
+
import { r as withApp } from "../app-DIvM65Mv.js";
|
|
10
|
+
import { t as instanceOptions } from "../instance-options-URVwqpMW.js";
|
|
9
11
|
import { p as wwwAuthenticate, r as bearerChallenge } from "../problem-BWP1l86g.js";
|
|
10
|
-
import {
|
|
11
|
-
import { n as createAgentKernel } from "../kernel-CLEzDmbv.js";
|
|
12
|
+
import { n as createAgentKernel } from "../kernel-NmxiWII2.js";
|
|
12
13
|
import { n as delegationFrom } from "../delegation-input-DcXhiMkf.js";
|
|
13
14
|
//#region src/a2a/create.ts
|
|
14
15
|
function firstScheme(options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as listSourceFiles } from "./files-BSjrtIHw.js";
|
|
2
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
2
|
+
import { t as DOCS_BASE } from "./manifest-CbHnl4I_.js";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { relative } from "node:path";
|
|
5
5
|
//#region src/cli/adoption-scan.ts
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-
|
|
2
|
-
import { a as createPermDock, c as ModelMap, d as StepUp, i as OperationVerdict, l as ToolBinding, n as AgentPermDockOptions, o as AgentAdapterOptions, r as GatewayOptions, s as DecideToolOptions, t as AgentPermDock, u as ToolMap } from "../create-
|
|
1
|
+
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-BXQkWU7d.js";
|
|
2
|
+
import { a as createPermDock, c as ModelMap, d as StepUp, i as OperationVerdict, l as ToolBinding, n as AgentPermDockOptions, o as AgentAdapterOptions, r as GatewayOptions, s as DecideToolOptions, t as AgentPermDock, u as ToolMap } from "../create-oMCcZV4X.js";
|
|
3
3
|
export { type AgentAdapterOptions, type AgentPermDock, type AgentPermDockOptions, type DecideToolOptions, type DeniedText, type DeniedTextEvent, type GatewayOptions, type ModelMap, type OperationVerdict, type StepUp, type ToolBinding, type ToolMap, createPermDock };
|
package/dist/agent/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as createPermDock } from "../create-
|
|
1
|
+
export { n as createPermDock } from "../create-BJ2_8NDO.js";
|
package/dist/ai-sdk/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-
|
|
2
|
-
import {
|
|
3
|
-
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-
|
|
4
|
-
import { d as StepUp, o as AgentAdapterOptions, t as AgentPermDock } from "../create-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-rNfz7t0M.js";
|
|
2
|
+
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
+
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-BXQkWU7d.js";
|
|
4
|
+
import { d as StepUp, o as AgentAdapterOptions, t as AgentPermDock } from "../create-oMCcZV4X.js";
|
|
5
5
|
//#region src/ai-sdk/create.d.ts
|
|
6
6
|
type AiSdkContext = {
|
|
7
7
|
readonly runtimeContext?: unknown;
|
package/dist/ai-sdk/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-ynga1EQy.js";
|
|
3
|
-
import {
|
|
4
|
-
import { r as stepUpText, t as approvalTokenOf } from "../kernel-
|
|
5
|
-
import { t as agentRuntime } from "../create-
|
|
3
|
+
import { r as withApp } from "../app-DIvM65Mv.js";
|
|
4
|
+
import { r as stepUpText, t as approvalTokenOf } from "../kernel-NmxiWII2.js";
|
|
5
|
+
import { t as agentRuntime } from "../create-BJ2_8NDO.js";
|
|
6
6
|
//#region src/ai-sdk/create.ts
|
|
7
7
|
const APPROVAL_STATUSES = /* @__PURE__ */ new Set([
|
|
8
8
|
"approved",
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-rNfz7t0M.js";
|
|
2
|
+
import { a as PermDock, o as PermDockOptions } from "../permdock-BaB-KQqn.js";
|
|
3
|
+
import { m as ApprovalStore } from "../types-ZfjQB0KC.js";
|
|
4
|
+
import { t as InstanceOptions } from "../instance-options-C6gEDOts.js";
|
|
5
|
+
import { r as ApiKeySubjectOptions } from "../credentials-DPX140fN.js";
|
|
6
|
+
import { t as ClaimsMap } from "../claims-map-D1Pb5oRq.js";
|
|
7
|
+
import { n as SubjectCache, s as VersionCache } from "../subject-cache-d_Z4KAnm.js";
|
|
8
|
+
//#region src/core/app.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* How strict `definePermDock` is about the services the policy needs. `dev`
|
|
11
|
+
* fills in in-process defaults (a memory approval store and a memory limit
|
|
12
|
+
* store) so a new app runs before any infrastructure exists. `prod` throws at
|
|
13
|
+
* startup when a grant needs a service the app does not configure, instead of
|
|
14
|
+
* denying at run time.
|
|
15
|
+
*/
|
|
16
|
+
type AppProfile = "dev" | "prod";
|
|
17
|
+
/**
|
|
18
|
+
* Everything an app wires once and every adapter reads: the data sources, the
|
|
19
|
+
* opt-in features and the services. An adapter's own options win over these,
|
|
20
|
+
* key by key.
|
|
21
|
+
*/
|
|
22
|
+
type AppOptions = InstanceOptions & Pick<PermDockOptions, "settings"> & {
|
|
23
|
+
/** Where approval requests open and resume, for every adapter. */
|
|
24
|
+
readonly store?: ApprovalStore;
|
|
25
|
+
readonly profile?: AppProfile;
|
|
26
|
+
/** The process-wide authorization version cache, for every adapter. */
|
|
27
|
+
readonly versions?: VersionCache;
|
|
28
|
+
/** The process-wide `subject_for` record cache, for the Supabase sources. */
|
|
29
|
+
readonly subjects?: SubjectCache;
|
|
30
|
+
/**
|
|
31
|
+
* How verified claims map to a principal, for `fromClaims`. Adapters do not
|
|
32
|
+
* read it: `authorizationHooks` has its own `claims` loader.
|
|
33
|
+
*/
|
|
34
|
+
readonly claims?: ClaimsMap;
|
|
35
|
+
/** The API key verifier options, for `fromApiKey`. */
|
|
36
|
+
readonly credentials?: Omit<ApiKeySubjectOptions, "permissions">;
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/app/define-permdock.d.ts
|
|
40
|
+
/**
|
|
41
|
+
* What `getPermDock` takes beside the user: the tenant and intent of one
|
|
42
|
+
* request.
|
|
43
|
+
*/
|
|
44
|
+
type PermDockQuery = Pick<PermDockOptions, "tenant" | "intent">;
|
|
45
|
+
/** The members `definePermDock` adds to the policy it binds. */
|
|
46
|
+
type PermDockApp<V extends PolicyVocabulary = PolicyVocabulary> = {
|
|
47
|
+
/** The instance for `user`, built with the app's sources and caches. */
|
|
48
|
+
readonly getPermDock: (user: unknown, query?: PermDockQuery) => Promise<PermDock<V>>;
|
|
49
|
+
/**
|
|
50
|
+
* The instance for claims a provider already verified, mapped through the
|
|
51
|
+
* `claims` option. Claims with no usable id are anonymous.
|
|
52
|
+
*/
|
|
53
|
+
readonly fromClaims: (claims: Readonly<Record<string, unknown>>, query?: PermDockQuery) => Promise<PermDock<V>>;
|
|
54
|
+
/**
|
|
55
|
+
* The instance for an opaque API key, verified through the `credentials`
|
|
56
|
+
* option. Any failure is the anonymous subject. Throws a `TypeError` when the
|
|
57
|
+
* app has no `credentials`.
|
|
58
|
+
*/
|
|
59
|
+
readonly fromApiKey: (key: string | null | undefined, query?: PermDockQuery) => Promise<PermDock<V>>;
|
|
60
|
+
/**
|
|
61
|
+
* The instance options for one version cache (default the `versions` option),
|
|
62
|
+
* the same object on every call: pass it to an adapter that takes instance
|
|
63
|
+
* options so they share the `claimsFirst` memberships and `instances`
|
|
64
|
+
* entries.
|
|
65
|
+
*/
|
|
66
|
+
readonly sources: (versions?: VersionCache) => InstanceOptions;
|
|
67
|
+
/** Drops the principal's instances, authorization version and subject record. */
|
|
68
|
+
readonly evict: (principal: string) => Promise<void>;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* A policy that carries the app definition and the `PermDockApp` members. It is
|
|
72
|
+
* a `Policy`: pass it wherever a policy goes.
|
|
73
|
+
*/
|
|
74
|
+
type PermDockDefinition<TUser = unknown, TPrincipal extends Principal = Principal, V extends PolicyVocabulary = PolicyVocabulary> = Policy<TUser, TPrincipal, V> & PermDockApp<V>;
|
|
75
|
+
/**
|
|
76
|
+
* Binds the app's sources, caches, features and services to `policy` and adds
|
|
77
|
+
* `getPermDock`, `fromClaims`, `fromApiKey`, `sources` and `evict`. The result
|
|
78
|
+
* is a policy: pass it wherever a policy goes (`createPermDock`, every adapter,
|
|
79
|
+
* the CLI) and each picks up the app definition, with its own options taking
|
|
80
|
+
* precedence. The profile defaults to `prod`. Server-only: nothing here belongs
|
|
81
|
+
* in a client bundle.
|
|
82
|
+
*/
|
|
83
|
+
export declare function definePermDock<TUser, TPrincipal extends Principal, V extends PolicyVocabulary>(policy: Policy<TUser, TPrincipal, V>, options?: AppOptions): PermDockDefinition<TUser, TPrincipal, V>;
|
|
84
|
+
//#endregion
|
|
85
|
+
export type { AppOptions, AppProfile, PermDockApp, PermDockDefinition, PermDockQuery };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
|
|
2
|
+
import { t as getPermDock } from "../permdock-B5LyNVgn.js";
|
|
3
|
+
import { n as memoryLimitStore, t as limits } from "../limits-CAhpRrhk.js";
|
|
4
|
+
import { t as APP } from "../app-DIvM65Mv.js";
|
|
5
|
+
import { i as memoryApprovalStore } from "../store-BpKH-pLm.js";
|
|
6
|
+
import { t as instanceOptions } from "../instance-options-URVwqpMW.js";
|
|
7
|
+
import { t as versionSources } from "../version-sources-BC3hf2ME.js";
|
|
8
|
+
import { r as mapClaimsToSubject } from "../map-claims-CAa_bQt9.js";
|
|
9
|
+
import { c as subjectFromApiKey } from "../credentials-BXV0oz56.js";
|
|
10
|
+
//#region src/app/define-permdock.ts
|
|
11
|
+
function grantsOf(policy) {
|
|
12
|
+
return [...policy.index.grantsByKey.values()].flat();
|
|
13
|
+
}
|
|
14
|
+
function assertProduction(policy, options) {
|
|
15
|
+
const grants = grantsOf(policy);
|
|
16
|
+
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");
|
|
17
|
+
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)");
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The in-process services `dev` fills in: one memory approval store that every
|
|
21
|
+
* adapter of the app shares, and memory limits when a grant has a `limit`. They
|
|
22
|
+
* live here, not in the adapters, so an adapter ships no store and an app
|
|
23
|
+
* without `definePermDock` ships neither.
|
|
24
|
+
*/
|
|
25
|
+
function devDefaults(policy, options) {
|
|
26
|
+
return {
|
|
27
|
+
...options,
|
|
28
|
+
profile: "dev",
|
|
29
|
+
...options.store === void 0 ? { store: memoryApprovalStore() } : {},
|
|
30
|
+
...options.limits === void 0 && grantsOf(policy).some((grant) => grant.limit !== void 0) ? { limits: limits(memoryLimitStore()) } : {}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Binds the app's sources, caches, features and services to `policy` and adds
|
|
35
|
+
* `getPermDock`, `fromClaims`, `fromApiKey`, `sources` and `evict`. The result
|
|
36
|
+
* is a policy: pass it wherever a policy goes (`createPermDock`, every adapter,
|
|
37
|
+
* the CLI) and each picks up the app definition, with its own options taking
|
|
38
|
+
* precedence. The profile defaults to `prod`. Server-only: nothing here belongs
|
|
39
|
+
* in a client bundle.
|
|
40
|
+
*/
|
|
41
|
+
function definePermDock(policy, options = {}) {
|
|
42
|
+
const profile = options.profile ?? "prod";
|
|
43
|
+
const definition = profile === "dev" ? devDefaults(policy, options) : {
|
|
44
|
+
...options,
|
|
45
|
+
profile
|
|
46
|
+
};
|
|
47
|
+
if (profile === "prod") assertProduction(policy, definition);
|
|
48
|
+
const prototype = Object.getPrototypeOf(policy);
|
|
49
|
+
const app = Object.create(prototype, Object.getOwnPropertyDescriptors(policy));
|
|
50
|
+
Object.defineProperty(app, APP, { value: Object.freeze(definition) });
|
|
51
|
+
const { memberships: _m, instances: _i, ...sourcesOf } = instanceOptions(definition);
|
|
52
|
+
const sources = versionSources({
|
|
53
|
+
...definition.memberships === void 0 ? {} : { memberships: definition.memberships },
|
|
54
|
+
...definition.instances === void 0 ? {} : { instances: definition.instances },
|
|
55
|
+
...definition.versions === void 0 ? {} : { versions: definition.versions },
|
|
56
|
+
options: {
|
|
57
|
+
...sourcesOf,
|
|
58
|
+
...definition.settings === void 0 ? {} : { settings: definition.settings }
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
const build = (user, query) => getPermDock(app, user, {
|
|
62
|
+
...sources(),
|
|
63
|
+
...query
|
|
64
|
+
});
|
|
65
|
+
const mapClaims = (claims) => mapClaimsToSubject(claims, compact({ claims: definition.claims })).subject;
|
|
66
|
+
const members = {
|
|
67
|
+
getPermDock: build,
|
|
68
|
+
fromClaims: (claims, query) => build(isRecord(claims) ? mapClaims(claims) : null, query),
|
|
69
|
+
async fromApiKey(key, query) {
|
|
70
|
+
const credentials = definition.credentials;
|
|
71
|
+
if (credentials === void 0) throw new TypeError("PermDock: fromApiKey needs the credentials option of definePermDock");
|
|
72
|
+
const tenant = query?.tenant ?? credentials.tenant;
|
|
73
|
+
const subject = await subjectFromApiKey(key, {
|
|
74
|
+
...credentials,
|
|
75
|
+
permissions: policy.permissions,
|
|
76
|
+
...tenant === void 0 ? {} : { tenant }
|
|
77
|
+
});
|
|
78
|
+
return build(subject, query);
|
|
79
|
+
},
|
|
80
|
+
sources,
|
|
81
|
+
async evict(principal) {
|
|
82
|
+
definition.versions?.evict(principal);
|
|
83
|
+
definition.instances?.evict(principal);
|
|
84
|
+
await definition.subjects?.evict(principal);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
for (const [name, value] of Object.entries(members)) Object.defineProperty(app, name, { value });
|
|
88
|
+
return Object.freeze(app);
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
export { definePermDock };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/core/app.ts
|
|
2
|
+
const APP = Symbol.for("permdock.app");
|
|
3
|
+
/**
|
|
4
|
+
* The app definition bound to `policy` by `definePermDock`, or `undefined` for
|
|
5
|
+
* a plain policy.
|
|
6
|
+
*/
|
|
7
|
+
function appOf(policy) {
|
|
8
|
+
const value = Reflect.get(policy, APP);
|
|
9
|
+
return value === void 0 ? void 0 : value;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* `options` with the app's values under it, key by key, for an adapter factory
|
|
13
|
+
* to call first: `options = withApp(policy, options)`.
|
|
14
|
+
*/
|
|
15
|
+
function withApp(policy, options) {
|
|
16
|
+
const app = appOf(policy);
|
|
17
|
+
if (app === void 0) return options;
|
|
18
|
+
const { profile: _profile, claims: _claims, credentials: _credentials, ...values } = app;
|
|
19
|
+
const merged = { ...values };
|
|
20
|
+
for (const [key, value] of Object.entries(options)) if (value !== void 0) merged[key] = value;
|
|
21
|
+
return merged;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { appOf as n, withApp as r, APP as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as Policy, Er as Condition, Sn as Scope, _ as Grant, o as ApprovalOption, sn as AuthEvent, xr as Subject } from "./policy-types-
|
|
2
|
-
import { i as OperationEffect, s as OperationMeta, u as OperationRisk } from "./operations-
|
|
1
|
+
import { D as Policy, Er as Condition, Sn as Scope, _ as Grant, o as ApprovalOption, sn as AuthEvent, xr as Subject } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { i as OperationEffect, s as OperationMeta, u as OperationRisk } from "./operations-BMPx7HyO.js";
|
|
3
3
|
//#region src/core/approval-policies.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* One approval requirement kept as data, for a tenant or the whole platform. It
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as OperationMeta, t as Operation } from "./operations-
|
|
2
|
-
import { u as ApprovalRequest } from "./types-
|
|
1
|
+
import { s as OperationMeta, t as Operation } from "./operations-BMPx7HyO.js";
|
|
2
|
+
import { u as ApprovalRequest } from "./types-ZfjQB0KC.js";
|
|
3
3
|
//#region src/delivery/approval-prompt.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* What an email or chat prompt shows an approver, wire format v1. It carries no
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as DEFAULT_APPROVAL_TTL, a as ApprovalDelegationSource, b as escalationOpenAt, c as ApprovalListQuery, d as ApprovalResumeFailureCause, f as ApprovalSignature, g as ApprovalVerdict, h as ApprovalSubjectSummary, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, n as ApprovalApprovers, o as ApprovalInspectResult, p as ApprovalStatus, r as ApprovalCancelMeta, s as ApprovalListFilter, t as APPROVAL_HEADER, u as ApprovalRequest, v as approvalQuorum, y as approverRelationKey } from "../types-
|
|
1
|
+
import { _ as DEFAULT_APPROVAL_TTL, a as ApprovalDelegationSource, b as escalationOpenAt, c as ApprovalListQuery, d as ApprovalResumeFailureCause, f as ApprovalSignature, g as ApprovalVerdict, h as ApprovalSubjectSummary, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, n as ApprovalApprovers, o as ApprovalInspectResult, p as ApprovalStatus, r as ApprovalCancelMeta, s as ApprovalListFilter, t as APPROVAL_HEADER, u as ApprovalRequest, v as approvalQuorum, y as approverRelationKey } from "../types-ZfjQB0KC.js";
|
|
2
2
|
import { n as ApprovalErrorCode, r as isApprovalError, t as ApprovalError } from "../errors-CHwoRRpB.js";
|
|
3
|
-
import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, o as AccessReviewItemStatus, r as AccessReviewItem, s as AccessReviewStatus, t as AccessReview } from "../types-
|
|
4
|
-
import { $ as pageAccessReviewItems, A as SignApprovalOptions, B as IdempotentResponse, C as ApproverRelationsOptions, D as approvalView, E as approvalEntityTag, F as ApprovalsHandlerOptions, G as ApproverDirectory, H as idempotencyRecordKey, I as approvalsHandler, J as matchDelegation, K as ApprovalDelegationMatch, L as IdempotencyRecord, M as signApproval, N as APPROVAL_REQUEST_SCHEMA, O as ApprovalSignatureClaims, P as parseApprovalRequest, Q as memoryAccessReviewStore, R as IdempotencyStore, S as vouchApproval, T as ApprovalView, U as matchesIdempotencyRecord, V as idempotencyRecord, W as memoryIdempotencyStore, X as parseApprovalDelegation, Y as memoryApprovalDelegationSource, Z as MemoryAccessReviewStore, _ as resolveApproval, a as approverPermissions, at as AccessReviewErrorCode, b as storedApprovalToken, c as decodeApprovalCursor, ct as accessReviewerEligible, d as pageApprovals, dt as accessReviewsHandler, et as AccessReviewHolder, f as cancelApprovals, g as requestApproval, h as readApprovalHeader, i as memoryApprovalStore, it as AccessReviewError, j as approvalSignatureClaims, k as ApprovalSignatureEntry, l as encodeApprovalCursor, lt as decideAccessReviewItem, m as inspectApproval, n as applyApprovalVerdict, nt as StartAccessReviewInput, o as ApprovalCursorPosition, ot as isAccessReviewError, p as consumeApproval, q as MatchDelegationOptions, r as assertApprover, rt as startAccessReview, s as approvalPageSize, st as AccessReviewVerdict, t as MemoryApprovalStore, tt as AccessReviewOptions, u as listAllApprovals, ut as AccessReviewsHandlerOptions, v as resumeDecision, w as approverRelations, x as summarizeSubject, y as resumeFromHeader, z as IdempotentCall } from "../index-
|
|
3
|
+
import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, o as AccessReviewItemStatus, r as AccessReviewItem, s as AccessReviewStatus, t as AccessReview } from "../types-BSNZMp5b.js";
|
|
4
|
+
import { $ as pageAccessReviewItems, A as SignApprovalOptions, B as IdempotentResponse, C as ApproverRelationsOptions, D as approvalView, E as approvalEntityTag, F as ApprovalsHandlerOptions, G as ApproverDirectory, H as idempotencyRecordKey, I as approvalsHandler, J as matchDelegation, K as ApprovalDelegationMatch, L as IdempotencyRecord, M as signApproval, N as APPROVAL_REQUEST_SCHEMA, O as ApprovalSignatureClaims, P as parseApprovalRequest, Q as memoryAccessReviewStore, R as IdempotencyStore, S as vouchApproval, T as ApprovalView, U as matchesIdempotencyRecord, V as idempotencyRecord, W as memoryIdempotencyStore, X as parseApprovalDelegation, Y as memoryApprovalDelegationSource, Z as MemoryAccessReviewStore, _ as resolveApproval, a as approverPermissions, at as AccessReviewErrorCode, b as storedApprovalToken, c as decodeApprovalCursor, ct as accessReviewerEligible, d as pageApprovals, dt as accessReviewsHandler, et as AccessReviewHolder, f as cancelApprovals, g as requestApproval, h as readApprovalHeader, i as memoryApprovalStore, it as AccessReviewError, j as approvalSignatureClaims, k as ApprovalSignatureEntry, l as encodeApprovalCursor, lt as decideAccessReviewItem, m as inspectApproval, n as applyApprovalVerdict, nt as StartAccessReviewInput, o as ApprovalCursorPosition, ot as isAccessReviewError, p as consumeApproval, q as MatchDelegationOptions, r as assertApprover, rt as startAccessReview, s as approvalPageSize, st as AccessReviewVerdict, t as MemoryApprovalStore, tt as AccessReviewOptions, u as listAllApprovals, ut as AccessReviewsHandlerOptions, v as resumeDecision, w as approverRelations, x as summarizeSubject, y as resumeFromHeader, z as IdempotentCall } from "../index-C_8uxAlv.js";
|
|
5
5
|
import { t as approvalFingerprint } from "../token-D6pWn8Uj.js";
|
|
6
6
|
export { APPROVAL_HEADER, APPROVAL_REQUEST_SCHEMA, type AccessReview, type AccessReviewDecision, AccessReviewError, type AccessReviewErrorCode, type AccessReviewHolder, type AccessReviewItem, type AccessReviewItemPage, type AccessReviewItemQuery, type AccessReviewItemStatus, type AccessReviewOptions, type AccessReviewStatus, type AccessReviewStore, type AccessReviewVerdict, type AccessReviewsHandlerOptions, type ApprovalApprovers, type ApprovalCancelMeta, type ApprovalCursorPosition, type ApprovalDelegation, type ApprovalDelegationMatch, type ApprovalDelegationSource, ApprovalError, type ApprovalErrorCode, type ApprovalInspectResult, type ApprovalListFilter, type ApprovalListQuery, type ApprovalPage, type ApprovalRequest, type ApprovalResumeFailureCause, type ApprovalSignature, type ApprovalSignatureClaims, type ApprovalSignatureEntry, type ApprovalStatus, type ApprovalStore, type ApprovalSubjectSummary, type ApprovalVerdict, type ApprovalView, type ApprovalsHandlerOptions, type ApproverDirectory, type ApproverRelationsOptions, DEFAULT_APPROVAL_TTL, type IdempotencyRecord, type IdempotencyStore, type IdempotentCall, type IdempotentResponse, type MatchDelegationOptions, type MemoryAccessReviewStore, type MemoryApprovalStore, type SignApprovalOptions, type StartAccessReviewInput, accessReviewerEligible, accessReviewsHandler, applyApprovalVerdict, approvalEntityTag, approvalFingerprint, approvalPageSize, approvalQuorum, approvalSignatureClaims, approvalView, approvalsHandler, approverPermissions, approverRelationKey, approverRelations, assertApprover, cancelApprovals, consumeApproval, decideAccessReviewItem, decodeApprovalCursor, encodeApprovalCursor, escalationOpenAt, idempotencyRecord, idempotencyRecordKey, inspectApproval, isAccessReviewError, isApprovalError, listAllApprovals, matchDelegation, matchesIdempotencyRecord, memoryAccessReviewStore, memoryApprovalDelegationSource, memoryApprovalStore, memoryIdempotencyStore, pageAccessReviewItems, pageApprovals, parseApprovalDelegation, parseApprovalRequest, readApprovalHeader, requestApproval, resolveApproval, resumeDecision, resumeFromHeader, signApproval, startAccessReview, storedApprovalToken, summarizeSubject, vouchApproval };
|
package/dist/approvals/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as approvalFingerprint } from "../token-DaMnIU9O.js";
|
|
2
2
|
import { a as escalationOpenAt, c as isApprovalError, i as approverRelationKey, n as DEFAULT_APPROVAL_TTL, r as approvalQuorum, s as ApprovalError, t as APPROVAL_HEADER } from "../types-CcUXciSj.js";
|
|
3
|
-
import { c as decodeApprovalCursor, d as pageApprovals, i as memoryApprovalStore, l as encodeApprovalCursor, n as assertApprover, s as approvalPageSize, t as applyApprovalVerdict, u as listAllApprovals } from "../store-
|
|
4
|
-
import { a as requestApproval, c as resumeFromHeader, d as vouchApproval,
|
|
3
|
+
import { c as decodeApprovalCursor, d as pageApprovals, i as memoryApprovalStore, l as encodeApprovalCursor, n as assertApprover, s as approvalPageSize, t as applyApprovalVerdict, u as listAllApprovals } from "../store-BpKH-pLm.js";
|
|
4
|
+
import { a as requestApproval, c as resumeFromHeader, d as vouchApproval, f as approverPermissions, i as readApprovalHeader, l as storedApprovalToken, m as approverRelations, n as consumeApproval, o as resolveApproval, r as inspectApproval, s as resumeDecision, t as cancelApprovals, u as summarizeSubject } from "../helpers-DzBIfL1N.js";
|
|
5
5
|
import { n as isAccessReviewError, t as AccessReviewError } from "../errors-BDUwg2qC.js";
|
|
6
|
-
import { _ as accessReviewerEligible, a as idempotencyRecordKey, c as approvalEntityTag, d as memoryApprovalDelegationSource, f as parseApprovalDelegation, g as accessReviewsHandler, h as startAccessReview, i as idempotencyRecord, l as approvalView, m as pageAccessReviewItems, n as approvalSignatureClaims, o as matchesIdempotencyRecord, p as memoryAccessReviewStore, r as signApproval, s as memoryIdempotencyStore, t as approvalsHandler, u as matchDelegation, v as decideAccessReviewItem } from "../approvals-
|
|
6
|
+
import { _ as accessReviewerEligible, a as idempotencyRecordKey, c as approvalEntityTag, d as memoryApprovalDelegationSource, f as parseApprovalDelegation, g as accessReviewsHandler, h as startAccessReview, i as idempotencyRecord, l as approvalView, m as pageAccessReviewItems, n as approvalSignatureClaims, o as matchesIdempotencyRecord, p as memoryAccessReviewStore, r as signApproval, s as memoryIdempotencyStore, t as approvalsHandler, u as matchDelegation, v as decideAccessReviewItem } from "../approvals-B_sn4Wrn.js";
|
|
7
7
|
import { t as APPROVAL_REQUEST_SCHEMA } from "../request-schema-CMP8Cmxd.js";
|
|
8
8
|
import { t as parseApprovalRequest } from "../parse-request-DOBVaeiQ.js";
|
|
9
9
|
export { APPROVAL_HEADER, APPROVAL_REQUEST_SCHEMA, AccessReviewError, ApprovalError, DEFAULT_APPROVAL_TTL, accessReviewerEligible, accessReviewsHandler, applyApprovalVerdict, approvalEntityTag, approvalFingerprint, approvalPageSize, approvalQuorum, approvalSignatureClaims, approvalView, approvalsHandler, approverPermissions, approverRelationKey, approverRelations, assertApprover, cancelApprovals, consumeApproval, decideAccessReviewItem, decodeApprovalCursor, encodeApprovalCursor, escalationOpenAt, idempotencyRecord, idempotencyRecordKey, inspectApproval, isAccessReviewError, isApprovalError, listAllApprovals, matchDelegation, matchesIdempotencyRecord, memoryAccessReviewStore, memoryApprovalDelegationSource, memoryApprovalStore, memoryIdempotencyStore, pageAccessReviewItems, pageApprovals, parseApprovalDelegation, parseApprovalRequest, readApprovalHeader, requestApproval, resolveApproval, resumeDecision, resumeFromHeader, signApproval, startAccessReview, storedApprovalToken, summarizeSubject, vouchApproval };
|
|
@@ -2,20 +2,20 @@ import { t as compact } from "./compact-CAf557ZB.js";
|
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { a as ownRecord } from "./paths-CUvURzHp.js";
|
|
4
4
|
import { a as problemType, o as statusProblem } from "./problem-details-CLDgX1KV.js";
|
|
5
|
-
import {
|
|
5
|
+
import { o as flattenGrantee } from "./grantee-Dke-9rd1.js";
|
|
6
6
|
import { d as isoNow, f as nowMillis, g as secondsOf, i as dateAt } from "./time-nR1JesoH.js";
|
|
7
|
+
import { r as isId } from "./ids-DzhJaCUj.js";
|
|
7
8
|
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
8
9
|
import { r as sha256Digest } from "./sha256-C-4WXKIu.js";
|
|
9
|
-
import { o as flattenGrantee } from "./grantee-Dke-9rd1.js";
|
|
10
10
|
import { i as rootMembershipId } from "./subject-C7RddW0G.js";
|
|
11
11
|
import { c as isApprovalError, s as ApprovalError } from "./types-CcUXciSj.js";
|
|
12
|
-
import { a as belongsToTenant, c as decodeApprovalCursor, n as assertApprover, o as membershipTenants, r as matchesApprovers, s as approvalPageSize, u as listAllApprovals } from "./store-
|
|
12
|
+
import { a as belongsToTenant, c as decodeApprovalCursor, n as assertApprover, o as membershipTenants, r as matchesApprovers, s as approvalPageSize, u as listAllApprovals } from "./store-BpKH-pLm.js";
|
|
13
|
+
import { d as unauthenticatedProblem, f as validationProblem, l as problemResponse, o as methodNotAllowed } from "./problem-BWP1l86g.js";
|
|
14
|
+
import { f as approverPermissions, g as countOtherApprovers, m as approverRelations, p as heldPermissions } from "./helpers-DzBIfL1N.js";
|
|
13
15
|
import { n as readBodyText } from "./body-text-DQhcmqdY.js";
|
|
16
|
+
import { t as bodyTooLarge } from "./body-B3ylkmmE.js";
|
|
14
17
|
import { r as hasCredentials } from "./http-DKLXrFGk.js";
|
|
15
|
-
import { d as unauthenticatedProblem, f as validationProblem, l as problemResponse, o as methodNotAllowed } from "./problem-BWP1l86g.js";
|
|
16
|
-
import { f as countOtherApprovers, h as approverRelations, m as heldPermissions, p as approverPermissions } from "./helpers-D-MXwkOF.js";
|
|
17
18
|
import { n as isAccessReviewError, t as AccessReviewError } from "./errors-BDUwg2qC.js";
|
|
18
|
-
import { t as bodyTooLarge } from "./body-C9JbIoqb.js";
|
|
19
19
|
//#region src/approvals/access-reviews/decide.ts
|
|
20
20
|
/**
|
|
21
21
|
* Whether `by` is named as a reviewer. A link, a feed or a contact is never a
|
|
@@ -21,7 +21,7 @@ const check = defineLeaf({
|
|
|
21
21
|
...permissionsFlag
|
|
22
22
|
},
|
|
23
23
|
async run(ctx, { flags }) {
|
|
24
|
-
return (await import("./arazzo-
|
|
24
|
+
return (await import("./arazzo-CTx11zFc.js")).runArazzo({
|
|
25
25
|
cwd: ctx.cwd,
|
|
26
26
|
config: ctx.config,
|
|
27
27
|
doc: given(flags.doc),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as arazzoFindings } from "./src-BG9YJM3Q.js";
|
|
2
2
|
import { c as missingInput } from "./errors-BhRkoNS7.js";
|
|
3
3
|
import { i as readJsonFile } from "./files-BSjrtIHw.js";
|
|
4
4
|
import { t as ARAZZO_REPORT_SCHEMA } from "./version-DMQ0dnN5.js";
|
|
5
|
-
import { a as loadModule, s as pickNamed, t as asPermissionTree } from "./load-
|
|
6
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
5
|
+
import { a as loadModule, s as pickNamed, t as asPermissionTree } from "./load-C4p4VgwR.js";
|
|
6
|
+
import { t as DOCS_BASE } from "./manifest-CbHnl4I_.js";
|
|
7
7
|
import { existsSync } from "node:fs";
|
|
8
8
|
import { resolve } from "node:path";
|
|
9
9
|
//#region src/cli/arazzo.ts
|
package/dist/astro/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, en as Snapshot, yr as Principal } from "../policy-types-
|
|
2
|
-
import {
|
|
3
|
-
import { a as OperationInput, t as Operation } from "../operations-
|
|
4
|
-
import { a as PermDock } from "../permdock-
|
|
5
|
-
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types
|
|
6
|
-
import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, en as Snapshot, yr as Principal } from "../policy-types-rNfz7t0M.js";
|
|
2
|
+
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
+
import { a as OperationInput, t as Operation } from "../operations-BMPx7HyO.js";
|
|
4
|
+
import { a as PermDock } from "../permdock-BaB-KQqn.js";
|
|
5
|
+
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types--_Hann81.js";
|
|
6
|
+
import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-DxqsIXSO.js";
|
|
7
7
|
import { APIContext, MiddlewareHandler } from "astro";
|
|
8
8
|
//#region src/astro/create.d.ts
|
|
9
9
|
type AstroPermDockOptions<TUser = unknown> = FetchAdapterOptions<APIContext, TUser>;
|
package/dist/astro/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-
|
|
1
|
+
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-BzTDWO4m.js";
|
|
2
|
+
import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-MoYZ-vF5.js";
|
|
3
3
|
//#region src/astro/create.ts
|
|
4
4
|
const route = {
|
|
5
5
|
context: (context) => context,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as whoCan } from "./who-can-
|
|
1
|
+
import { t as whoCan } from "./who-can-CjfMP9a4.js";
|
|
2
2
|
//#region src/delivery/audience.ts
|
|
3
3
|
async function granted(permdock, ids, permission, row) {
|
|
4
4
|
const unique = [...new Set(ids.filter((id) => typeof id === "string" && id !== ""))];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { h as secondsAt } from "./time-nR1JesoH.js";
|
|
3
3
|
import { n as CliError } from "./errors-BhRkoNS7.js";
|
|
4
|
-
import { a as refreshCredential, c as stringField, n as discoverAuthorizationServer } from "./device-
|
|
4
|
+
import { a as refreshCredential, c as stringField, n as discoverAuthorizationServer } from "./device-BkSynWdg.js";
|
|
5
5
|
import { i as writeCredentials, r as readCredentials, t as credentialsPath } from "./storage-C2bWdvJH.js";
|
|
6
6
|
import { t as CLOUD_BASE_URL } from "./base-url-BQbddZO5.js";
|
|
7
7
|
import { existsSync } from "node:fs";
|
package/dist/authzen/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as Policy, hr as Delegation, lr as Actor, yr as Principal } from "../policy-types-
|
|
2
|
-
import { m as ApprovalStore } from "../types-
|
|
3
|
-
import { a as ProblemDetails } from "../errors-
|
|
4
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
5
|
-
import { a as evaluationsSemantic, n as EvaluationsSemantic, r as evaluateBatch, t as EVALUATIONS_SEMANTICS } from "../evaluations-
|
|
1
|
+
import { D as Policy, hr as Delegation, lr as Actor, yr as Principal } from "../policy-types-rNfz7t0M.js";
|
|
2
|
+
import { m as ApprovalStore } from "../types-ZfjQB0KC.js";
|
|
3
|
+
import { a as ProblemDetails } from "../errors-D_JIQJYb.js";
|
|
4
|
+
import { t as InstanceOptions } from "../instance-options-C6gEDOts.js";
|
|
5
|
+
import { a as evaluationsSemantic, n as EvaluationsSemantic, r as evaluateBatch, t as EVALUATIONS_SEMANTICS } from "../evaluations-DQYfh4Jh.js";
|
|
6
6
|
//#region src/authzen/map.d.ts
|
|
7
7
|
type AuthzenEntity = {
|
|
8
8
|
readonly type?: unknown;
|
package/dist/authzen/index.js
CHANGED
|
@@ -2,13 +2,13 @@ import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
|
|
|
2
2
|
import { r as ownGet } from "../paths-CUvURzHp.js";
|
|
3
3
|
import { a as problemType, o as statusProblem } from "../problem-details-CLDgX1KV.js";
|
|
4
4
|
import { a as getResource, c as listPermissions } from "../permission-registry-B8tYxPIt.js";
|
|
5
|
-
import { t as fromWireDelegation } from "../wire-delegation-Cv3W2eaM.js";
|
|
6
5
|
import { n as resourceRef } from "../resource-ref-CaS9yVPi.js";
|
|
6
|
+
import { t as fromWireDelegation } from "../wire-delegation-Cv3W2eaM.js";
|
|
7
|
+
import { n as resolveOrNull, t as buildInstance } from "../build-instance-B0vsViF5.js";
|
|
8
|
+
import { d as unauthenticatedProblem, l as problemResponse, o as methodNotAllowed } from "../problem-BWP1l86g.js";
|
|
9
|
+
import { a as evaluationReasons, c as withRequestId, d as wireResourceId, i as evaluateBatch, l as itemResourceData, n as applyApprovalResume, r as authzenMetadata, s as evaluationsSemantic, t as EVALUATIONS_SEMANTICS, u as permissionLookup } from "../evaluations-BzTDWO4m.js";
|
|
7
10
|
import { n as readBodyText, t as MAX_BODY_BYTES } from "../body-text-DQhcmqdY.js";
|
|
8
11
|
import { r as hasCredentials } from "../http-DKLXrFGk.js";
|
|
9
|
-
import { d as unauthenticatedProblem, l as problemResponse, o as methodNotAllowed } from "../problem-BWP1l86g.js";
|
|
10
|
-
import { n as resolveOrNull, t as buildInstance } from "../build-instance-CkRKgjSj.js";
|
|
11
|
-
import { a as evaluationReasons, c as withRequestId, g as wireResourceId, h as permissionLookup, i as evaluateBatch, m as itemResourceData, n as applyApprovalResume, r as authzenMetadata, s as evaluationsSemantic, t as EVALUATIONS_SEMANTICS } from "../evaluations-CNMVJVD6.js";
|
|
12
12
|
//#region src/authzen/map.ts
|
|
13
13
|
const UNKNOWN = {
|
|
14
14
|
outcome: "denied",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Kt as InstanceHandle, Xn as Denial, qt as Instant } from "./policy-types-
|
|
2
|
-
import {
|
|
3
|
-
import { t as Operation } from "./operations-
|
|
1
|
+
import { Kt as InstanceHandle, Xn as Denial, qt as Instant } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
+
import { t as Operation } from "./operations-BMPx7HyO.js";
|
|
4
4
|
//#region src/core/automation.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Who an automation runs as. `publisher`: the person who published it, with
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as isReadonlyArray, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { a as ownRecord } from "./paths-CUvURzHp.js";
|
|
4
|
-
import { a as isId, r as idList } from "./expiry-6XByK0dm.js";
|
|
5
|
-
import { n as internalsOf } from "./internals-B3IgHrvo.js";
|
|
6
4
|
import { n as findPermission } from "./permission-registry-B8tYxPIt.js";
|
|
7
5
|
import { l as isRfc3339, m as rfc3339, p as nowSeconds } from "./time-nR1JesoH.js";
|
|
6
|
+
import { r as isId, t as idList } from "./ids-DzhJaCUj.js";
|
|
7
|
+
import { n as internalsOf } from "./internals-B3IgHrvo.js";
|
|
8
8
|
//#region src/core/automation.ts
|
|
9
9
|
const MAX_NAME = 256;
|
|
10
10
|
function isVersion(value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as RoleBinding, X as DecisionSink, q as CustomRoleSource, xr as Subject, yr as Principal } from "../policy-types-
|
|
2
|
-
import {
|
|
1
|
+
import { F as RoleBinding, X as DecisionSink, q as CustomRoleSource, xr as Subject, yr as Principal } from "../policy-types-rNfz7t0M.js";
|
|
2
|
+
import { E as PermissionTree } from "../vocabulary-DeZvUaTw.js";
|
|
3
3
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
4
4
|
//#region src/better-auth/types.d.ts
|
|
5
5
|
type BetterAuthPrincipal = Principal & {
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import { n as role, r as allow } from "../role-builder-
|
|
3
|
+
import { n as role, r as allow } from "../role-builder-boQiUvfo.js";
|
|
4
4
|
import { c as listPermissions } from "../permission-registry-B8tYxPIt.js";
|
|
5
5
|
import { r as validateRecord } from "../thenable-BNSM1U2R.js";
|
|
6
6
|
import { i as rootMembershipId, t as anonymousSubject } from "../subject-C7RddW0G.js";
|