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
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
import { c as instantOf } from "./time-nR1JesoH.js";
|
|
2
|
+
//#region src/core/expiry.ts
|
|
3
|
+
/**
|
|
4
|
+
* `expiresAt` is Unix seconds; a membership with none never expires. One that
|
|
5
|
+
* is not a number below infinity (`NaN`) has already expired: fail closed.
|
|
6
|
+
*/
|
|
7
|
+
function expiredAt(item, now) {
|
|
8
|
+
return item.expiresAt !== void 0 && !(item.expiresAt > now);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Unix seconds of a stored expiry: finite Unix seconds, an RFC 3339 string (the
|
|
12
|
+
* Postgres `timestamptz` JSON form), a `Date` or an `Instant`. `undefined` for
|
|
13
|
+
* anything else, which the caller treats as already expired.
|
|
14
|
+
*/
|
|
15
|
+
function expirySeconds(value) {
|
|
16
|
+
if (typeof value === "number") return Number.isFinite(value) ? value : void 0;
|
|
17
|
+
if (value instanceof Date) {
|
|
18
|
+
const millis = value.getTime();
|
|
19
|
+
return Number.isFinite(millis) ? Math.floor(millis / 1e3) : void 0;
|
|
20
|
+
}
|
|
21
|
+
return instantOf(value);
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
2
24
|
//#region src/core/ids.ts
|
|
3
25
|
/**
|
|
4
26
|
* The canonical text of a scope or object id: a non-empty string as is, a
|
|
@@ -30,26 +52,4 @@ function sameId(left, right) {
|
|
|
30
52
|
return text !== void 0 && text === idText(right);
|
|
31
53
|
}
|
|
32
54
|
//#endregion
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* `expiresAt` is Unix seconds; a membership with none never expires. One that
|
|
36
|
-
* is not a number below infinity (`NaN`) has already expired: fail closed.
|
|
37
|
-
*/
|
|
38
|
-
function expiredAt(item, now) {
|
|
39
|
-
return item.expiresAt !== void 0 && !(item.expiresAt > now);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Unix seconds of a stored expiry: finite Unix seconds, an RFC 3339 string (the
|
|
43
|
-
* Postgres `timestamptz` JSON form), a `Date` or an `Instant`. `undefined` for
|
|
44
|
-
* anything else, which the caller treats as already expired.
|
|
45
|
-
*/
|
|
46
|
-
function expirySeconds(value) {
|
|
47
|
-
if (typeof value === "number") return Number.isFinite(value) ? value : void 0;
|
|
48
|
-
if (value instanceof Date) {
|
|
49
|
-
const millis = value.getTime();
|
|
50
|
-
return Number.isFinite(millis) ? Math.floor(millis / 1e3) : void 0;
|
|
51
|
-
}
|
|
52
|
-
return instantOf(value);
|
|
53
|
-
}
|
|
54
|
-
//#endregion
|
|
55
|
-
export { isId as a, idText as i, expirySeconds as n, sameId as o, idList as r, expiredAt as t };
|
|
55
|
+
export { expiredAt as a, sameId as i, idText as n, expirySeconds as o, isId as r, idList as t };
|
|
@@ -4,8 +4,8 @@ import { i as configError, u as usageResult } from "./errors-BhRkoNS7.js";
|
|
|
4
4
|
import { s as writeFileEnsuringDir } from "./files-BSjrtIHw.js";
|
|
5
5
|
import { r as escapeSqlIdent, s as quoteSqlLiteral } from "./sql-0WjxIp9g.js";
|
|
6
6
|
import { n as pgConnector } from "./pg-Ddxsd5ZB.js";
|
|
7
|
-
import { C as parseMembershipsFlag, r as HELPERS } from "./shared-
|
|
8
|
-
import { t as FIELD_VIEWS } from "./fields-
|
|
7
|
+
import { C as parseMembershipsFlag, r as HELPERS } from "./shared-DfaIWvIJ.js";
|
|
8
|
+
import { t as FIELD_VIEWS } from "./fields-CVyOk-f1.js";
|
|
9
9
|
import { n as emptySchema, r as isSchemaKind, t as emitPermissionsModule } from "./generate-CezbCaTI.js";
|
|
10
10
|
import { existsSync, readFileSync } from "node:fs";
|
|
11
11
|
import { resolve } from "node:path";
|
|
@@ -2,9 +2,9 @@ import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
|
2
2
|
import { t as byCodePoint } from "./compare-DTfyUunF.js";
|
|
3
3
|
import { i as readJsonFile } from "./files-BSjrtIHw.js";
|
|
4
4
|
import { t as applyFiles } from "./files-CfiRtQ-m.js";
|
|
5
|
-
import { n as httpRequest } from "./http-
|
|
5
|
+
import { n as httpRequest } from "./http-dptLQzPP.js";
|
|
6
6
|
import { i as schemaExpression, t as emitPermissionsModule } from "./generate-CezbCaTI.js";
|
|
7
|
-
import { t as validateOpenapi } from "./schema-
|
|
7
|
+
import { t as validateOpenapi } from "./schema-B_HsJKm2.js";
|
|
8
8
|
import { existsSync, readFileSync } from "node:fs";
|
|
9
9
|
import { resolve } from "node:path";
|
|
10
10
|
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, Tt as SupportSession, Yn as Decision, _t as TokenSigner, gt as TokenFailureCause, sn as AuthEvent, vt as TokenVerifier, xr as Subject, yr as Principal } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { E as PermissionTree, w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
+
import { _ as PrincipalSource } from "./permdock-BaB-KQqn.js";
|
|
4
|
+
import { a as ProblemDetails, s as Disclosure, t as ApprovalHint } from "./errors-D_JIQJYb.js";
|
|
5
|
+
import { c as ServerPermDock, l as ServerPermDockOptions } from "./server-types--_Hann81.js";
|
|
6
|
+
//#region src/server/create.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* The Fetch factory behind every HTTP adapter. The subject and actor are
|
|
9
|
+
* resolved once per `Request`; one instance is cached per `(Request, tenant)`,
|
|
10
|
+
* so a global middleware and a later tenant-scoped `protect` never share a
|
|
11
|
+
* tenant.
|
|
12
|
+
*/
|
|
13
|
+
declare function createPermDock<TUser, TPrincipal extends Principal = Principal, V extends PolicyVocabulary = PolicyVocabulary>(policy: Policy<TUser, TPrincipal, V>, given: ServerPermDockOptions<TUser>): ServerPermDock<V>;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/server/map-error.d.ts
|
|
16
|
+
type ProblemFromErrorOptions = {
|
|
17
|
+
readonly instance?: string;
|
|
18
|
+
/** Whether the request carried credentials, which picks the `401` challenge. */
|
|
19
|
+
readonly credentials?: boolean;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Turns a thrown PermDock error into its Problem Details response, with the
|
|
23
|
+
* status, `WWW-Authenticate` and rate-limit fields `protect` sends for the same
|
|
24
|
+
* decision. Returns `undefined` for anything else so the framework's own error
|
|
25
|
+
* path takes over.
|
|
26
|
+
*/
|
|
27
|
+
declare function problemFromError(error: unknown, options?: ProblemFromErrorOptions): Response | undefined;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/server/support-session.d.ts
|
|
30
|
+
/** `on('auth')` causes: a verification failure, or one of the session checks. */
|
|
31
|
+
type SupportSessionFailureCause = TokenFailureCause | "invalid-claims" | "session-ended" | "principal-unavailable" | "actor-unavailable";
|
|
32
|
+
/** The live state of each support session, so one can end before it expires. */
|
|
33
|
+
type SupportSessionSource = {
|
|
34
|
+
/** The session as of now, or `null` for an unknown one. A throw ends it. */
|
|
35
|
+
session: (id: string) => {
|
|
36
|
+
readonly id: string;
|
|
37
|
+
readonly ended?: boolean;
|
|
38
|
+
} | null | Promise<{
|
|
39
|
+
readonly id: string;
|
|
40
|
+
readonly ended?: boolean;
|
|
41
|
+
} | null>;
|
|
42
|
+
};
|
|
43
|
+
type SupportSessionSubjectOptions = {
|
|
44
|
+
readonly verifier: TokenVerifier;
|
|
45
|
+
/** Loads the viewed principal and the support actor, live, on every request. */
|
|
46
|
+
readonly principals: PrincipalSource;
|
|
47
|
+
/** The permission tree the session's keys name. */
|
|
48
|
+
readonly permissions: PermissionTree;
|
|
49
|
+
/** Checked on every request when set; an unknown or ended session denies. */
|
|
50
|
+
readonly sessions?: SupportSessionSource;
|
|
51
|
+
readonly audience?: string | readonly string[];
|
|
52
|
+
readonly issuer?: string;
|
|
53
|
+
readonly clockTolerance?: number;
|
|
54
|
+
readonly onAuth?: (event: AuthEvent) => void;
|
|
55
|
+
readonly requestId?: string;
|
|
56
|
+
};
|
|
57
|
+
/** `subject.context.supportSession` of a subject resolved from a session token. */
|
|
58
|
+
type SupportSessionContext = {
|
|
59
|
+
readonly id: string;
|
|
60
|
+
readonly reason: string;
|
|
61
|
+
readonly approvedBy?: string;
|
|
62
|
+
readonly reference?: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Signs a granted `SupportSession` as a `vnd.permdock.support-session+jwt`
|
|
66
|
+
* (`sub` the viewed principal, `act` the support actor, `jti` the session id)
|
|
67
|
+
* that expires with the session. Throws a `TypeError` for a record
|
|
68
|
+
* `parseSupportSession` refuses.
|
|
69
|
+
*/
|
|
70
|
+
declare function signSupportSession(session: SupportSession, signer: TokenSigner, options?: {
|
|
71
|
+
readonly audience?: string | readonly string[];
|
|
72
|
+
}): Promise<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Resolves a `vnd.permdock.support-session+jwt` into the subject each request
|
|
75
|
+
* of the session acts as: the viewed principal loaded live, a `support` actor,
|
|
76
|
+
* the session's permissions as the delegation and `context.supportSession`. The
|
|
77
|
+
* actor must still exist. Every failure is the anonymous subject, never a
|
|
78
|
+
* throw.
|
|
79
|
+
*/
|
|
80
|
+
declare function subjectFromSupportSession(token: string | undefined | null, options: SupportSessionSubjectOptions): Promise<Subject>;
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/server/problem.d.ts
|
|
83
|
+
declare function wwwAuthenticate(decision: Decision, permission: Permission | undefined, credentials?: boolean): string | undefined;
|
|
84
|
+
declare function problemResponse(details: ProblemDetails, permission?: Permission, decision?: Decision, extra?: Readonly<Record<string, string>>, credentials?: boolean): Response;
|
|
85
|
+
declare function validationProblem(detail: string): Response;
|
|
86
|
+
type DecisionProblemOptions = {
|
|
87
|
+
readonly instance?: string;
|
|
88
|
+
readonly approval?: ApprovalHint;
|
|
89
|
+
/** `'hide'` on a loaded row: a denial answers as `404` `/not-found`. */
|
|
90
|
+
readonly disclosure?: Disclosure;
|
|
91
|
+
/** Whether the request carried credentials, which picks the `401` challenge. */
|
|
92
|
+
readonly credentials?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* The scope an `insufficient_scope` challenge names; the permission's own
|
|
95
|
+
* scope when absent.
|
|
96
|
+
*/
|
|
97
|
+
readonly scope?: string;
|
|
98
|
+
};
|
|
99
|
+
declare function problemFromDecision(decision: Decision, permission: Permission, _subject: Subject | undefined, options?: DecisionProblemOptions): Response;
|
|
100
|
+
//#endregion
|
|
101
|
+
export { SupportSessionContext as a, SupportSessionSubjectOptions as c, ProblemFromErrorOptions as d, problemFromError as f, wwwAuthenticate as i, signSupportSession as l, problemResponse as n, SupportSessionFailureCause as o, createPermDock as p, validationProblem as r, SupportSessionSource as s, problemFromDecision as t, subjectFromSupportSession as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as Policy, _t as TokenSigner, yr as Principal } from "./policy-types-
|
|
2
|
-
import { E as SsfPermDockOptions, O as SsfStreamConfiguration, T as SsfPermDock, _ as SetSubject, c as PushSetOptions, d as SetDelivery, g as SetQueue, h as SetPollHandlerOptions, k as SsfStreamStatus, m as SetEvent, p as SetError, t as CaepCommon, v as SignSetOptions } from "./types-
|
|
1
|
+
import { D as Policy, _t as TokenSigner, yr as Principal } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { E as SsfPermDockOptions, O as SsfStreamConfiguration, T as SsfPermDock, _ as SetSubject, c as PushSetOptions, d as SetDelivery, g as SetQueue, h as SetPollHandlerOptions, k as SsfStreamStatus, m as SetEvent, p as SetError, t as CaepCommon, v as SignSetOptions } from "./types-Cq2rvv-C.js";
|
|
3
3
|
//#region src/ssf/create.d.ts
|
|
4
4
|
declare function createPermDock<TUser, TPrincipal extends Principal = Principal>(policy: Policy<TUser, TPrincipal>, options: SsfPermDockOptions): SsfPermDock;
|
|
5
5
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { X as DecisionSink, it as MembershipSource, vt as TokenVerifier } from "./policy-types-
|
|
2
|
-
import {
|
|
3
|
-
import { n as RevocationFeed } from "./revocations-BaUXHM1N.js";
|
|
1
|
+
import { X as DecisionSink, it as MembershipSource, vt as TokenVerifier } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { K as AppData } from "./vocabulary-DeZvUaTw.js";
|
|
4
3
|
import { t as ClaimsMap } from "./claims-map-D1Pb5oRq.js";
|
|
4
|
+
import { n as RevocationFeed } from "./revocations-BaUXHM1N.js";
|
|
5
5
|
import { t as SqlQuery } from "./sql-B80DFdpG.js";
|
|
6
6
|
//#region src/scim/types.d.ts
|
|
7
7
|
declare const SCIM_CONTENT_TYPE = "application/scim+json";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as Policy, En as Approver, Yn as Decision, _t as TokenSigner, ct as RelationSource, dr as AuthorizationDetail, it as MembershipSource, qt as Instant, vr as Membership, xr as Subject } from "./policy-types-
|
|
2
|
-
import {
|
|
3
|
-
import { a as PermDock } from "./permdock-
|
|
4
|
-
import { a as ApprovalDelegationSource, c as ApprovalListQuery, g as ApprovalVerdict, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, o as ApprovalInspectResult, r as ApprovalCancelMeta, s as ApprovalListFilter, u as ApprovalRequest } from "./types-
|
|
5
|
-
import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, r as AccessReviewItem, t as AccessReview } from "./types-
|
|
1
|
+
import { D as Policy, En as Approver, Yn as Decision, _t as TokenSigner, ct as RelationSource, dr as AuthorizationDetail, it as MembershipSource, qt as Instant, vr as Membership, xr as Subject } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { E as PermissionTree, K as AppData, w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
+
import { a as PermDock } from "./permdock-BaB-KQqn.js";
|
|
4
|
+
import { a as ApprovalDelegationSource, c as ApprovalListQuery, g as ApprovalVerdict, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, o as ApprovalInspectResult, r as ApprovalCancelMeta, s as ApprovalListFilter, u as ApprovalRequest } from "./types-ZfjQB0KC.js";
|
|
5
|
+
import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, r as AccessReviewItem, t as AccessReview } from "./types-BSNZMp5b.js";
|
|
6
6
|
import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
|
|
7
7
|
//#region src/approvals/access-reviews/handler.d.ts
|
|
8
8
|
type AccessReviewsHandlerOptions = {
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { $ as JwtClaims, B as SupportAccessOptions, D as Policy, Dr as ConditionRef, F as RoleBinding, Fr as SqlFunctionArg, I as RoleOptions, Ir as SqlFunctionCondition, Kt as InstanceHandle, N as PolicyVocabulary, Qn as DenialReason, Qt as LocalSnapshotManifest, R as SeparationConflict, Sn as Scope, T as MembershipFixture, U as VocabularyFromInput, Xn as Denial, Yn as Decision, Z as EntitlementSource, _ as Grant, _n as SinkEvent, _t as TokenSigner, an as SnapshotTenants, ct as RelationSource, en as Snapshot, fn as DeliveryEvent, hr as Delegation, ht as TenantSettings, it as MembershipSource, j as PolicyOptions, jr as OpaqueCondition, k as PolicyDelegation, l as AssuranceRequirement, lt as SettingsSource, o as ApprovalOption, on as AccessEvent, ot as RelationGroup, pr as CustomRole, q as CustomRoleSource, qt as Instant, u as BreakGlassOptions, un as DecisionEvent, ut as SnapshotSource, v as GrantCondition, vr as Membership, xn as PolicyScopesInput, xr as Subject, yr as Principal } from "./policy-types-
|
|
2
|
-
import {
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as InstanceOptions } from "./instance-options-Cq66kEeR.js";
|
|
8
|
-
import { n as PermDockWrap } from "./wrap-EQ6Or2Hi.js";
|
|
1
|
+
import { $ as JwtClaims, B as SupportAccessOptions, D as Policy, Dr as ConditionRef, F as RoleBinding, Fr as SqlFunctionArg, I as RoleOptions, Ir as SqlFunctionCondition, Kt as InstanceHandle, N as PolicyVocabulary, Qn as DenialReason, Qt as LocalSnapshotManifest, R as SeparationConflict, Sn as Scope, T as MembershipFixture, U as VocabularyFromInput, Xn as Denial, Yn as Decision, Z as EntitlementSource, _ as Grant, _n as SinkEvent, _t as TokenSigner, an as SnapshotTenants, ct as RelationSource, en as Snapshot, fn as DeliveryEvent, hr as Delegation, ht as TenantSettings, it as MembershipSource, j as PolicyOptions, jr as OpaqueCondition, k as PolicyDelegation, l as AssuranceRequirement, lt as SettingsSource, o as ApprovalOption, on as AccessEvent, ot as RelationGroup, pr as CustomRole, q as CustomRoleSource, qt as Instant, u as BreakGlassOptions, un as DecisionEvent, ut as SnapshotSource, v as GrantCondition, vr as Membership, xn as PolicyScopesInput, xr as Subject, yr as Principal } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { A as ResourceInit, B as ResourceXTree, D as PermissionsOf, E as PermissionTree, F as ResourceOptions, I as ResourceParent, N as ResourceMeta, O as PermissionsOptions, P as ResourceNode, R as ResourceRelationInput, T as PermissionKind, a as RoleTree, g as ActionMeta, h as ActionList, r as Role, w as Permission, z as ResourceRestricted } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
+
import { a as PermDock } from "./permdock-BaB-KQqn.js";
|
|
4
|
+
import { o as PolicyDocument } from "./hosted-DXq1plaP.js";
|
|
5
|
+
import { n as PermDockWrap } from "./wrap-B-k2qHJx.js";
|
|
6
|
+
import { s as VersionCache } from "./subject-cache-d_Z4KAnm.js";
|
|
9
7
|
import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
|
|
10
|
-
import {
|
|
11
|
-
import { i as CatalogEventData, s as CloudEvent } from "./sink-RwmP7ZHs.js";
|
|
8
|
+
import { i as CatalogEventData, s as CloudEvent } from "./sink-Cs6z34AX.js";
|
|
12
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
13
10
|
//#region src/conditions/refs.d.ts
|
|
14
11
|
type KnownRefField = "id" | "issuer" | "kind" | "tenant" | "team" | "roles" | "plans" | "memberships" | "assurance" | "binding" | "session" | "claims";
|
|
@@ -179,6 +176,19 @@ declare function sqlFunction(name: string, options: {
|
|
|
179
176
|
readonly twin: unknown;
|
|
180
177
|
}): SqlFunctionCondition;
|
|
181
178
|
//#endregion
|
|
179
|
+
//#region src/core/access-outcome.d.ts
|
|
180
|
+
/**
|
|
181
|
+
* The outcome a screen branches on: a `Decision` with the three denials an app
|
|
182
|
+
* answers differently (sign in, pick an organisation, ask for access) named.
|
|
183
|
+
*/
|
|
184
|
+
type AccessOutcome = "granted" | "approval-required" | "anonymous" | "no-tenant" | "no-membership" | "denied";
|
|
185
|
+
/**
|
|
186
|
+
* `decision` as an `AccessOutcome`. A denied decision is `anonymous`,
|
|
187
|
+
* `no-tenant` or `no-membership` when one of its denials has that reason, in
|
|
188
|
+
* that order, unless a `deny` is among them; every other denial is `denied`.
|
|
189
|
+
*/
|
|
190
|
+
declare function accessOutcome(decision: Decision): AccessOutcome;
|
|
191
|
+
//#endregion
|
|
182
192
|
//#region src/core/memory-sources.d.ts
|
|
183
193
|
declare function memoryEntitlementSource(entries: Readonly<Record<string, readonly string[]>>): EntitlementSource;
|
|
184
194
|
declare function memorySettingsSource(settings: Readonly<Record<string, TenantSettings>>): SettingsSource;
|
|
@@ -472,35 +482,6 @@ declare function simulateArazzo(permdock: PermDock, input: ArazzoSimulateInput):
|
|
|
472
482
|
*/
|
|
473
483
|
declare function localSnapshotManifest(policy: Policy): LocalSnapshotManifest;
|
|
474
484
|
//#endregion
|
|
475
|
-
//#region src/core/app.d.ts
|
|
476
|
-
/**
|
|
477
|
-
* How strict `defineApp` is about the services the policy needs. `dev` fills in
|
|
478
|
-
* in-process defaults (a memory approval store and a memory limit store) so a
|
|
479
|
-
* new app runs before any infrastructure exists. `prod` throws at startup when
|
|
480
|
-
* a grant needs a service the app does not configure, instead of denying at run
|
|
481
|
-
* time.
|
|
482
|
-
*/
|
|
483
|
-
type AppProfile = "dev" | "prod";
|
|
484
|
-
/**
|
|
485
|
-
* Everything an app wires once and every adapter reads: the data sources, the
|
|
486
|
-
* opt-in features and the services. An adapter's own options win over these,
|
|
487
|
-
* key by key.
|
|
488
|
-
*/
|
|
489
|
-
type AppOptions = InstanceOptions & Pick<PermDockOptions, "settings"> & {
|
|
490
|
-
/** Where approval requests open and resume, for every adapter. */
|
|
491
|
-
readonly store?: ApprovalStore;
|
|
492
|
-
readonly profile?: AppProfile;
|
|
493
|
-
};
|
|
494
|
-
//#endregion
|
|
495
|
-
//#region src/app/define-app.d.ts
|
|
496
|
-
/**
|
|
497
|
-
* Binds the app's sources, features and services to `policy`. The result is a
|
|
498
|
-
* policy: pass it wherever a policy goes (`createPermDock`, every adapter, the
|
|
499
|
-
* CLI) and each picks up the app definition, with its own options taking
|
|
500
|
-
* precedence. The profile defaults to `prod`.
|
|
501
|
-
*/
|
|
502
|
-
declare function defineApp<TUser, TPrincipal extends Principal, V extends PolicyVocabulary>(policy: Policy<TUser, TPrincipal, V>, options?: AppOptions): Policy<TUser, TPrincipal, V>;
|
|
503
|
-
//#endregion
|
|
504
485
|
//#region src/core/shadow.d.ts
|
|
505
486
|
/** The application's existing check, asked the same question PermDock is. */
|
|
506
487
|
type LegacyCheck = (input: {
|
|
@@ -1166,4 +1147,4 @@ declare function coveredByDelegation(permission: DelegatedPermission, delegation
|
|
|
1166
1147
|
*/
|
|
1167
1148
|
declare function delegatedPermissions(delegations: readonly PolicyDelegation[] | undefined, subject: Subject, heldRoles: ReadonlySet<string>, now: number): ReadonlySet<string> | undefined;
|
|
1168
1149
|
//#endregion
|
|
1169
|
-
export { resource as $,
|
|
1150
|
+
export { resource as $, listPermissions as $t, RoleChangeCheckInput as A, MemoryEdge as At, ActivateInput as B, memoryCustomRoleSource as Bt, parseCatalogEventData as C, snapshotFromClaims as Ct, parseSinkEvents as D, HoldingVia as Dt, parseSinkEvent as E, Holder as Et, checkRoleChange as F, claimsFirst as Ft, allow as G, subjectMembershipSource as Gt, breakGlass as H, memoryMembershipSource as Ht, decideRoleChange as I, composeMemberships as It, role as J, sqlFunction as Jt, deny as K, AccessOutcome as Kt, normalizeMembership as L, countHolders as Lt, RoleChangeOptions as M, memoryRelationSource as Mt, RoleChangeTarget as N, StripeEntitlementsClient as Nt, RoleChange as O, WhoCan as Ot, RoleRules as P, stripeEntitlementSource as Pt, formerKeys as Q, isPermission as Qt, normalizeMemberships as R, isExternallyManaged as Rt, SINK_EVENT_SCHEMAS as S, principal as Sn, snapshotClaims as St, parseCloudEventBatch as T, signPolicyDocument as Tt, supportAccess as U, memorySettingsSource as Ut, activate as V, memoryEntitlementSource as Vt, normalizeApproval as W, memorySnapshotSource as Wt, readable as X, findPermission as Xt, crud as Y, opaque as Yt, writable as Z, getResource as Zt, DECISION_EVENT_SCHEMA as _, parseCustomRoleEntry as _n, simulateArazzo as _t, catalogFingerprint as a, requiresApproval as an, customRoleSource as at, EVENT_SCHEMA_IDS as b, claim as bn, SnapshotClaims as bt, OCSF_VERSION as c, parseSnapshot as cn, ShadowMismatch as ct, accessToOcsf as d, CustomRoleEntry as dn, localSnapshotManifest as dt, mergePermissions as en, definePermissions as et, toOcsf as f, CustomRoleRename as fn, ArazzoFinding as ft, CREDENTIAL_EVENT_SCHEMA as g, customRoleClaim as gn, arazzoFindings as gt, CATALOG_EVENT_SCHEMA as h, ValidateCustomRoleOptions as hn, ArazzoStepResult as ht, canonicalJson as i, separationConflicts as in, CustomRoleSourceOptions as it, RoleChangeDecision as j, MemoryRelationSourceData as jt, RoleChangeCheck as k, whoCan as kt, OcsfAuthorizeSession as l, CustomRoleDrop as ln, ShadowOptions as lt, AUTOMATION_EVENT_SCHEMA as m, ResolvedCustomRole as mn, ArazzoSimulateInput as mt, delegatedPermissions as n, definePolicy as nn, snapshotFor as nt, CSV_COLUMNS as o, emptySnapshot as on, mayAccess as ot, ACCESS_EVENT_SCHEMA as p, CustomRoleValidation as pn, ArazzoPlan as pt, normalizeAssurance as q, accessOutcome as qt, sha256Digest as r, isRoleName as rn, CustomRoleReader as rt, toCsvRow as s, fromSnapshot as sn, LegacyCheck as st, coveredByDelegation as t, RoleNameOf as tn, SnapshotForOptions as tt, OcsfUserManagement as u, CustomRoleDropReason as un, shadowMode as ut, DELIVERY_EVENT_SCHEMA as v, resolveCustomRole as vn, deliveryEvent as vt, parseCloudEvent as w, SignPolicyDocumentOptions as wt, MEMBERSHIP_EVENT_SCHEMA as x, context as xn, signSnapshot as xt, DIRECTORY_EVENT_SCHEMA as y, validateCustomRole as yn, SignSnapshotOptions as yt, resolveScope as z, APPROVAL_POLICY_UNAVAILABLE as zt };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, X as DecisionSink, dn as DeliveryChannel, yr as Principal } from "./policy-types-
|
|
2
|
-
import {
|
|
3
|
-
import { t as Operation } from "./operations-
|
|
4
|
-
import { _ as PrincipalSource, a as PermDock } from "./permdock-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, X as DecisionSink, dn as DeliveryChannel, yr as Principal } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
+
import { t as Operation } from "./operations-BMPx7HyO.js";
|
|
4
|
+
import { _ as PrincipalSource, a as PermDock } from "./permdock-BaB-KQqn.js";
|
|
5
5
|
import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
|
|
6
|
-
import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, g as TransportMessages, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, o as DeliveryResult, r as DeliverOptions, s as DeliveryTarget, y as WebhookTransport } from "./types-
|
|
7
|
-
import { l as WebhookSigner } from "./standard-webhooks-
|
|
6
|
+
import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, g as TransportMessages, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, o as DeliveryResult, r as DeliverOptions, s as DeliveryTarget, y as WebhookTransport } from "./types-B9F0EZAF.js";
|
|
7
|
+
import { l as WebhookSigner } from "./standard-webhooks-CJBgfl7y.js";
|
|
8
8
|
//#region src/delivery/audience.d.ts
|
|
9
9
|
type Audience = {
|
|
10
10
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import { $n as DeniedDecision, $t as LocalSnapshotRows, A as PolicyOAuthScope, An as UserApprover, Ar as MemberOfParent, At as parseSupportSession, B as SupportAccessOptions, Bn as actor, Br as isConditionRef, Bt as DecideCredentialOptions, C as GrantValidity, Cn as ScopeDeclaration, Cr as ActorKind, Ct as WhereCompiler, D as Policy, Dn as ApproverInput, Dr as ConditionRef, Dt as SupportSessionPolicy, E as ObligationInput, En as Approver, Er as Condition, Et as SupportSessionDecision, F as RoleBinding, Fn as user, Fr as SqlFunctionArg, Ft as CredentialPermission, G as CredentialVerifier, Gn as plan, Gt as parseCredential, H as ValidateMode, Hn as assurance, Ht as credentialPolicyViolation, I as RoleOptions, In as Grantee, Ir as SqlFunctionCondition, It as CredentialPermissionInput, J as CustomRoleSourceFactory, Jn as ApprovalRequiredDecision, Jt as LocalCustomRoleTable, K as CustomRoleContext, Kn as relation, L as RoleScope, Ln as GranteeInput, Lr as hasConditionOp, Lt as CredentialPolicy, M as PolicyScopes, Mn as anyOf, Mr as RelatedCondition, Mt as Credential, Nn as holder, Nr as RelatedHop, Nt as CredentialDecision, O as PolicyAppDataSchemas, On as ManagerApprover, Or as ConditionValue, Ot as SupportSessionRequest, P as PrincipalOf, Pn as manager, Pr as RestrictedAncestors, Pt as CredentialKind, Q as Intent, Qn as DenialReason, Qt as LocalSnapshotManifest, R as SeparationConflict, Rn as InheritGrantee, Rr as isCondition, Rt as CredentialPolicyViolation, S as GrantScope, Sn as Scope, Sr as VerifiedClaims, St as VersionQuery, T as MembershipFixture, Tn as AnyOfApprover, Tr as MembershipVia, Tt as SupportSession, Un as authenticated, Ut as decideCredential, V as SupportConsent, Vn as anyone, Vr as isSqlFunctionField, Vt as credentialDelegation, W as WireValidity, Wn as inherit, Wt as isFeedId, X as DecisionSink, Xn as Denial, Xt as LocalRowColumn, Y as DecisionProvider, Yn as Decision, Yt as LocalMembershipRows, Z as EntitlementSource, Zn as DenialDetails, Zt as LocalRowValue, _ as Grant, _n as SinkEvent, _t as TokenSigner, a as ApprovalMode, an as SnapshotTenants, ar as Quota, at as RelationChain, b as GrantMeta, br as SharedCustomRole, bt as VerifiedToken, c as ApprovalStage, cn as AutomationEvent, cr as TraceSkipReason, ct as RelationSource, d as BreakGlassRequirements, dn as DeliveryChannel, dr as AuthorizationDetail, dt as SourceCall, en as Snapshot, er as ExplainedDecision, et as LimitConsumeInput, f as BreakGlassSpec, fn as DeliveryEvent, fr as Binding, ft as SourceContext, g as DelegationTarget, gn as MembershipEvent, gr as GnapAccess, gt as TokenFailureCause, h as DelegationInput, hn as EmailCategory, hr as Delegation, ht as TenantSettings, i as ApprovalFallback, in as SnapshotScope, ir as Obligation, it as MembershipSource, jn as allOf, jt as ApiKeyPrincipal, k as PolicyDelegation, kn as PermissionApprover, kr as MemberOfCondition, kt as decideSupportSession, l as AssuranceRequirement, ln as CredentialEvent, lr as Actor, lt as SettingsSource, m as ClosureGrantFn, mn as DirectoryEvent, mr as CustomRoleGrant, mt as SubjectResolver, n as ApprovalCombine, nn as SnapshotGrant, nr as LimitDetail, nt as LimitStore, o as ApprovalOption, on as AccessEvent, or as Trace, ot as RelationGroup, p as ClosureContext, pn as DeliveryFailureCause, pr as CustomRole, pt as SourceMemo, q as CustomRoleSource, qn as AppObligation, r as ApprovalEscalation, rn as SnapshotNotEntitled, rr as MatchedGrant, rt as MemberEntry, s as ApprovalRequirement, sn as AuthEvent, sr as TraceSkip, st as RelationHolder, t as ActivationOption, tn as SnapshotAssignable, tr as GrantedDecision, tt as LimitRemaining, u as BreakGlassOptions, un as DecisionEvent, ur as Assurance, ut as SnapshotSource, v as GrantCondition, vn as WireDecision, vr as Membership, vt as TokenVerifier, w as HostedGrantRef, wn as ScopeNames, wr as AdapterId, wt as DecideSupportSessionOptions, x as GrantOptions, xn as PolicyScopesInput, xr as Subject, xt as VersionContext, y as GrantLimit, yn as WireDenial, yr as Principal, yt as VerificationFailure, z as SubjectOf, zn as RelationGrantee, zr as isConditionDate, zt as CredentialRequest } from "./policy-types-
|
|
2
|
-
import { A as
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
5
|
-
import { a as
|
|
6
|
-
import { a as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { n as
|
|
10
|
-
import {
|
|
11
|
-
import { t as InstanceOptions } from "./instance-options-Cq66kEeR.js";
|
|
1
|
+
import { $n as DeniedDecision, $t as LocalSnapshotRows, A as PolicyOAuthScope, An as UserApprover, Ar as MemberOfParent, At as parseSupportSession, B as SupportAccessOptions, Bn as actor, Br as isConditionRef, Bt as DecideCredentialOptions, C as GrantValidity, Cn as ScopeDeclaration, Cr as ActorKind, Ct as WhereCompiler, D as Policy, Dn as ApproverInput, Dr as ConditionRef, Dt as SupportSessionPolicy, E as ObligationInput, En as Approver, Er as Condition, Et as SupportSessionDecision, F as RoleBinding, Fn as user, Fr as SqlFunctionArg, Ft as CredentialPermission, G as CredentialVerifier, Gn as plan, Gt as parseCredential, H as ValidateMode, Hn as assurance, Ht as credentialPolicyViolation, I as RoleOptions, In as Grantee, Ir as SqlFunctionCondition, It as CredentialPermissionInput, J as CustomRoleSourceFactory, Jn as ApprovalRequiredDecision, Jt as LocalCustomRoleTable, K as CustomRoleContext, Kn as relation, L as RoleScope, Ln as GranteeInput, Lr as hasConditionOp, Lt as CredentialPolicy, M as PolicyScopes, Mn as anyOf, Mr as RelatedCondition, Mt as Credential, Nn as holder, Nr as RelatedHop, Nt as CredentialDecision, O as PolicyAppDataSchemas, On as ManagerApprover, Or as ConditionValue, Ot as SupportSessionRequest, P as PrincipalOf, Pn as manager, Pr as RestrictedAncestors, Pt as CredentialKind, Q as Intent, Qn as DenialReason, Qt as LocalSnapshotManifest, R as SeparationConflict, Rn as InheritGrantee, Rr as isCondition, Rt as CredentialPolicyViolation, S as GrantScope, Sn as Scope, Sr as VerifiedClaims, St as VersionQuery, T as MembershipFixture, Tn as AnyOfApprover, Tr as MembershipVia, Tt as SupportSession, Un as authenticated, Ut as decideCredential, V as SupportConsent, Vn as anyone, Vr as isSqlFunctionField, Vt as credentialDelegation, W as WireValidity, Wn as inherit, Wt as isFeedId, X as DecisionSink, Xn as Denial, Xt as LocalRowColumn, Y as DecisionProvider, Yn as Decision, Yt as LocalMembershipRows, Z as EntitlementSource, Zn as DenialDetails, Zt as LocalRowValue, _ as Grant, _n as SinkEvent, _t as TokenSigner, a as ApprovalMode, an as SnapshotTenants, ar as Quota, at as RelationChain, b as GrantMeta, br as SharedCustomRole, bt as VerifiedToken, c as ApprovalStage, cn as AutomationEvent, cr as TraceSkipReason, ct as RelationSource, d as BreakGlassRequirements, dn as DeliveryChannel, dr as AuthorizationDetail, dt as SourceCall, en as Snapshot, er as ExplainedDecision, et as LimitConsumeInput, f as BreakGlassSpec, fn as DeliveryEvent, fr as Binding, ft as SourceContext, g as DelegationTarget, gn as MembershipEvent, gr as GnapAccess, gt as TokenFailureCause, h as DelegationInput, hn as EmailCategory, hr as Delegation, ht as TenantSettings, i as ApprovalFallback, in as SnapshotScope, ir as Obligation, it as MembershipSource, jn as allOf, jt as ApiKeyPrincipal, k as PolicyDelegation, kn as PermissionApprover, kr as MemberOfCondition, kt as decideSupportSession, l as AssuranceRequirement, ln as CredentialEvent, lr as Actor, lt as SettingsSource, m as ClosureGrantFn, mn as DirectoryEvent, mr as CustomRoleGrant, mt as SubjectResolver, n as ApprovalCombine, nn as SnapshotGrant, nr as LimitDetail, nt as LimitStore, o as ApprovalOption, on as AccessEvent, or as Trace, ot as RelationGroup, p as ClosureContext, pn as DeliveryFailureCause, pr as CustomRole, pt as SourceMemo, q as CustomRoleSource, qn as AppObligation, r as ApprovalEscalation, rn as SnapshotNotEntitled, rr as MatchedGrant, rt as MemberEntry, s as ApprovalRequirement, sn as AuthEvent, sr as TraceSkip, st as RelationHolder, t as ActivationOption, tn as SnapshotAssignable, tr as GrantedDecision, tt as LimitRemaining, u as BreakGlassOptions, un as DecisionEvent, ur as Assurance, ut as SnapshotSource, v as GrantCondition, vn as WireDecision, vr as Membership, vt as TokenVerifier, w as HostedGrantRef, wn as ScopeNames, wr as AdapterId, wt as DecideSupportSessionOptions, x as GrantOptions, xn as PolicyScopesInput, xr as Subject, xt as VersionContext, y as GrantLimit, yn as WireDenial, yr as Principal, yt as VerificationFailure, z as SubjectOf, zn as RelationGrantee, zr as isConditionDate, zt as CredentialRequest } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { A as ResourceInit, B as ResourceXTree, D as PermissionsOf, E as PermissionTree, F as ResourceOptions, G as RESOURCE_X, H as PERMISSION_ROW, I as ResourceParent, J as MetaValue, K as AppData, L as ResourceRelation, M as ResourceLink, N as ResourceMeta, O as PermissionsOptions, P as ResourceNode, R as ResourceRelationInput, S as FieldRelation, T as PermissionKind, U as POLICY_SCOPES, V as RowOf, W as RESOURCE_NAME, _ as ComputedRelation, a as RoleTree, b as EdgeMatch, c as definePlans, d as isPlan, f as isRole, g as ActionMeta, i as RoleMeta, j as ResourceLevel, k as PrincipalRelation, l as defineRoles, m as listRoles, n as PlanTree, o as Vocabulary, p as listPlans, q as AppDataSchema, r as Role, s as VocabularyOptions, t as Plan, u as findRole, v as EdgeGroup, w as Permission, x as EdgeRelation, y as EdgeGroups, z as ResourceRestricted } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
+
import { $ as resource, $t as listPermissions, A as RoleChangeCheckInput, At as MemoryEdge, B as ActivateInput, Bt as memoryCustomRoleSource, C as parseCatalogEventData, Ct as snapshotFromClaims, D as parseSinkEvents, Dt as HoldingVia, E as parseSinkEvent, Et as Holder, F as checkRoleChange, Ft as claimsFirst, G as allow, Gt as subjectMembershipSource, H as breakGlass, Ht as memoryMembershipSource, I as decideRoleChange, It as composeMemberships, J as role, Jt as sqlFunction, K as deny, Kt as AccessOutcome, L as normalizeMembership, Lt as countHolders, M as RoleChangeOptions, Mt as memoryRelationSource, N as RoleChangeTarget, Nt as StripeEntitlementsClient, O as RoleChange, Ot as WhoCan, P as RoleRules, Pt as stripeEntitlementSource, Q as formerKeys, Qt as isPermission, R as normalizeMemberships, Rt as isExternallyManaged, S as SINK_EVENT_SCHEMAS, Sn as principal, St as snapshotClaims, T as parseCloudEventBatch, Tt as signPolicyDocument, U as supportAccess, Ut as memorySettingsSource, V as activate, Vt as memoryEntitlementSource, W as normalizeApproval, Wt as memorySnapshotSource, X as readable, Xt as findPermission, Y as crud, Yt as opaque, Z as writable, Zt as getResource, _ as DECISION_EVENT_SCHEMA, _n as parseCustomRoleEntry, _t as simulateArazzo, a as catalogFingerprint, an as requiresApproval, at as customRoleSource, b as EVENT_SCHEMA_IDS, bn as claim, bt as SnapshotClaims, c as OCSF_VERSION, cn as parseSnapshot, ct as ShadowMismatch, d as accessToOcsf, dn as CustomRoleEntry, dt as localSnapshotManifest, en as mergePermissions, et as definePermissions, f as toOcsf, fn as CustomRoleRename, ft as ArazzoFinding, g as CREDENTIAL_EVENT_SCHEMA, gn as customRoleClaim, gt as arazzoFindings, h as CATALOG_EVENT_SCHEMA, hn as ValidateCustomRoleOptions, ht as ArazzoStepResult, i as canonicalJson, in as separationConflicts, it as CustomRoleSourceOptions, j as RoleChangeDecision, jt as MemoryRelationSourceData, k as RoleChangeCheck, kt as whoCan, l as OcsfAuthorizeSession, ln as CustomRoleDrop, lt as ShadowOptions, m as AUTOMATION_EVENT_SCHEMA, mn as ResolvedCustomRole, mt as ArazzoSimulateInput, n as delegatedPermissions, nn as definePolicy, nt as snapshotFor, o as CSV_COLUMNS, on as emptySnapshot, ot as mayAccess, p as ACCESS_EVENT_SCHEMA, pn as CustomRoleValidation, pt as ArazzoPlan, q as normalizeAssurance, qt as accessOutcome, r as sha256Digest, rn as isRoleName, rt as CustomRoleReader, s as toCsvRow, sn as fromSnapshot, st as LegacyCheck, t as coveredByDelegation, tn as RoleNameOf, tt as SnapshotForOptions, u as OcsfUserManagement, un as CustomRoleDropReason, ut as shadowMode, v as DELIVERY_EVENT_SCHEMA, vn as resolveCustomRole, vt as deliveryEvent, w as parseCloudEvent, wt as SignPolicyDocumentOptions, x as MEMBERSHIP_EVENT_SCHEMA, xn as context, xt as signSnapshot, y as DIRECTORY_EVENT_SCHEMA, yn as validateCustomRole, yt as SignSnapshotOptions, z as resolveScope, zt as APPROVAL_POLICY_UNAVAILABLE } from "./index-Cjfa1Uwr.js";
|
|
4
|
+
import { a as OperationInput, c as defineOperations, d as isOperationRisk, i as OperationEffect, l as OPERATION_RISKS, n as OperationData, o as OperationMap, r as OperationDefinition, s as OperationMeta, t as Operation, u as OperationRisk } from "./operations-BMPx7HyO.js";
|
|
5
|
+
import { a as ApprovalPolicyValidation, c as validateApprovalPolicy, i as ApprovalPolicySource, n as ApprovalPolicy, o as approvalPolicies, r as ApprovalPolicyProblem, s as memoryApprovalPolicySource, t as ApprovalPolicies } from "./approval-policies-UnDSxT__.js";
|
|
6
|
+
import { A as GrantedPermissionsOptions, C as memoryLimitStore, D as InstanceCacheOptions, E as InstanceCacheKey, M as PermissionCheck, N as PermissionState, O as InstanceCacheStats, S as limits, T as InstanceCache, _ as PrincipalSource, a as PermDock, b as PermittedIdsOptions, c as RowPair, d as UncheckedData, f as WhereResult, g as PrincipalIdentityLink, h as PrincipalIdentity, i as LoadedRows, j as isGlobalPermission, k as instanceCache, l as SimulateOptions, m as getPermDockSync, n as DecideOptions, o as PermDockOptions, p as getPermDock, r as DeriveOptions, s as RowData, t as DecideIdsOptions, u as SnapshotOptions, v as memoryPrincipalSource, w as CustomRoleOwner, x as Limits, y as MembershipFilter } from "./permdock-BaB-KQqn.js";
|
|
7
|
+
import { d as memoryPolicySource, f as mergeHostedGrants, i as HostedGrantDropped, l as hostedPolicies, m as policyDocumentFromClaims, o as PolicyDocument, p as parsePolicyDocument, r as HostedGrantDropReason, s as PolicySource, t as HostedGrant, u as isPortableCondition } from "./hosted-DXq1plaP.js";
|
|
8
|
+
import { n as PermDockValidationError } from "./validation-error-DLAYFlkr.js";
|
|
9
|
+
import { a as ProblemDetails, c as requiredPlans, i as PermDockRevokedError, n as PermDockApprovalRequiredError, o as RevokedCode, r as PermDockDeniedError } from "./errors-D_JIQJYb.js";
|
|
10
|
+
import { t as InstanceOptions } from "./instance-options-C6gEDOts.js";
|
|
12
11
|
import { t as RequestContext } from "./request-context-C2_1lchh.js";
|
|
13
|
-
import { n as PermDockWrap, r as wrapPermDock, t as PermDockOverrides } from "./wrap-
|
|
12
|
+
import { n as PermDockWrap, r as wrapPermDock, t as PermDockOverrides } from "./wrap-B-k2qHJx.js";
|
|
13
|
+
import { c as VersionCacheStats, i as memorySubjectCache, l as VersionStore, n as SubjectCache, o as MemoryVersionCacheOptions, r as SubjectRecord, s as VersionCache, t as MemorySubjectCacheOptions, u as memoryVersionCache } from "./subject-cache-d_Z4KAnm.js";
|
|
14
14
|
import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
|
|
15
15
|
import { t as approvalFingerprint } from "./token-D6pWn8Uj.js";
|
|
16
16
|
import { i as memoryRevocationFeed, n as RevocationFeed, r as RevocationListener, t as RevocationEvent } from "./revocations-BaUXHM1N.js";
|
|
17
|
-
import { i as memoryVersionCache, n as VersionCache, r as VersionCacheStats, t as MemoryVersionCacheOptions } from "./version-cache-q5cpaDSt.js";
|
|
18
17
|
import { t as ClientNames } from "./clients-C_NOET3z.js";
|
|
19
|
-
import { a as CapabilityOptions, c as LinkPolicy, d as linkPolicyViolation, f as parseCapability, i as CapabilityInput, l as LinkPolicyViolation, m as signCapability, n as CapabilityClaim, o as CapabilityPrincipal, p as parseCapabilityClaim, r as CapabilityConfirmation, s as CapabilityRedeemer, t as Capability, u as capabilityFromClaims } from "./capability-
|
|
20
|
-
import { a as AutomationSource, c as decideAutomation, i as AutomationRequest, l as memoryAutomationSource, n as AutomationDecision, o as DecideAutomationOptions, r as AutomationMode, s as MemoryAutomationSource, t as Automation, u as parseAutomation } from "./automation-
|
|
21
|
-
import { S as toCloudEvent, _ as credentialEvent, a as CatalogFinding, b as signDecisionBatch, c as CloudEventOptions, d as MemoryDecisionSinkOptions, f as RESERVED_CLOUD_EVENT_TYPES, g as cloudEventType, h as automationEvent, i as CatalogEventData, l as CloudEventType, m as accessEvent, n as CLOUDEVENTS_CONTENT_TYPE, o as CatalogFindingCode, p as SignDecisionBatchOptions, r as CLOUD_EVENT_TYPES, s as CloudEvent, t as CLOUDEVENTS_BATCH_CONTENT_TYPE, u as MemoryDecisionSink, v as membershipEvent, x as supportSessionEvent, y as memoryDecisionSink } from "./sink-
|
|
22
|
-
import { a as PlanNameOf, c as VocabularyOf, i as PermissionOf, n as OperationNameOf, s as ScopeNameOf } from "./type-helpers-
|
|
23
|
-
import { i as describe, n as DescribeMessages, r as DescribeOptions, t as DecisionDescription } from "./describe-
|
|
18
|
+
import { a as CapabilityOptions, c as LinkPolicy, d as linkPolicyViolation, f as parseCapability, i as CapabilityInput, l as LinkPolicyViolation, m as signCapability, n as CapabilityClaim, o as CapabilityPrincipal, p as parseCapabilityClaim, r as CapabilityConfirmation, s as CapabilityRedeemer, t as Capability, u as capabilityFromClaims } from "./capability-YkRMUAsF.js";
|
|
19
|
+
import { a as AutomationSource, c as decideAutomation, i as AutomationRequest, l as memoryAutomationSource, n as AutomationDecision, o as DecideAutomationOptions, r as AutomationMode, s as MemoryAutomationSource, t as Automation, u as parseAutomation } from "./automation-B20_8UoT.js";
|
|
20
|
+
import { S as toCloudEvent, _ as credentialEvent, a as CatalogFinding, b as signDecisionBatch, c as CloudEventOptions, d as MemoryDecisionSinkOptions, f as RESERVED_CLOUD_EVENT_TYPES, g as cloudEventType, h as automationEvent, i as CatalogEventData, l as CloudEventType, m as accessEvent, n as CLOUDEVENTS_CONTENT_TYPE, o as CatalogFindingCode, p as SignDecisionBatchOptions, r as CLOUD_EVENT_TYPES, s as CloudEvent, t as CLOUDEVENTS_BATCH_CONTENT_TYPE, u as MemoryDecisionSink, v as membershipEvent, x as supportSessionEvent, y as memoryDecisionSink } from "./sink-Cs6z34AX.js";
|
|
21
|
+
import { a as PlanNameOf, c as VocabularyOf, i as PermissionOf, n as OperationNameOf, s as ScopeNameOf } from "./type-helpers-iXJEIDe7.js";
|
|
22
|
+
import { i as describe, n as DescribeMessages, r as DescribeOptions, t as DecisionDescription } from "./describe-DVobr5FX.js";
|
|
24
23
|
import { n as parsePermDockDigest, t as PermDockDigest } from "./digest-8Yx2CchM.js";
|
|
25
|
-
import { t as parseLocalSnapshotManifest } from "./parse-local-manifest-
|
|
26
|
-
export { ACCESS_EVENT_SCHEMA, APPROVAL_POLICY_UNAVAILABLE, AUTOMATION_EVENT_SCHEMA, type AccessEvent, type ActionMeta, type ActivateInput, type ActivationOption, type Actor, type ActorKind, type AdapterId, type AnyOfApprover, type ApiKeyPrincipal, type AppData, type AppDataSchema, type AppObligation, type AppOptions, type AppProfile, type ApprovalCombine, type ApprovalEscalation, type ApprovalFallback, type ApprovalMode, type ApprovalOption, type ApprovalPolicies, type ApprovalPolicy, type ApprovalPolicyProblem, type ApprovalPolicySource, type ApprovalPolicyValidation, type ApprovalRequiredDecision, type ApprovalRequirement, type ApprovalStage, type Approver, type ApproverInput, type ArazzoFinding, type ArazzoPlan, type ArazzoSimulateInput, type ArazzoStepResult, type Assurance, type AssuranceRequirement, type AuthEvent, type AuthorizationDetail, type Automation, type AutomationDecision, type AutomationEvent, type AutomationMode, type AutomationRequest, type AutomationSource, type Binding, type BreakGlassOptions, type BreakGlassRequirements, type BreakGlassSpec, CATALOG_EVENT_SCHEMA, CLOUDEVENTS_BATCH_CONTENT_TYPE, CLOUDEVENTS_CONTENT_TYPE, CLOUD_EVENT_TYPES, CREDENTIAL_EVENT_SCHEMA, CSV_COLUMNS, type Capability, type CapabilityClaim, type CapabilityConfirmation, type CapabilityInput, type CapabilityOptions, type CapabilityPrincipal, type CapabilityRedeemer, type CatalogEventData, type CatalogFinding, type CatalogFindingCode, type ClientNames, type ClosureContext, type ClosureGrantFn, type CloudEvent, type CloudEventOptions, type CloudEventType, type ComputedRelation, type Condition, type ConditionRef, type ConditionValue, type Credential, type CredentialDecision, type CredentialEvent, type CredentialKind, type CredentialPermission, type CredentialPermissionInput, type CredentialPolicy, type CredentialPolicyViolation, type CredentialRequest, type CredentialVerifier, type CustomRole, type CustomRoleContext, type CustomRoleDrop, type CustomRoleDropReason, type CustomRoleEntry, type CustomRoleGrant, type CustomRoleOwner, type CustomRoleReader, type CustomRoleRename, type CustomRoleSource, type CustomRoleSourceFactory, type CustomRoleSourceOptions, type CustomRoleValidation, DECISION_EVENT_SCHEMA, DELIVERY_EVENT_SCHEMA, DIRECTORY_EVENT_SCHEMA, type DecideAutomationOptions, type DecideCredentialOptions, type DecideIdsOptions, type DecideOptions, type DecideSupportSessionOptions, type Decision, type DecisionDescription, type DecisionEvent, type DecisionProvider, type DecisionSink, type Delegation, type DelegationInput, type DelegationTarget, type DeliveryChannel, type DeliveryEvent, type DeliveryFailureCause, type Denial, type DenialDetails, type DenialReason, type DeniedDecision, type DeriveOptions, type DescribeMessages, type DescribeOptions, type DirectoryEvent, EVENT_SCHEMA_IDS, type EdgeGroup, type EdgeGroups, type EdgeMatch, type EdgeRelation, type EmailCategory, type EntitlementSource, type ExplainedDecision, type FieldRelation, type GnapAccess, type Grant, type GrantCondition, type GrantLimit, type GrantMeta, type GrantOptions, type GrantScope, type GrantValidity, type GrantedDecision, type Grantee, type GranteeInput, type Holder, type HoldingVia, type HostedGrant, type HostedGrantDropReason, type HostedGrantDropped, type HostedGrantRef, type InheritGrantee, type InstanceCache, type InstanceCacheKey, type InstanceCacheOptions, type InstanceCacheStats, type InstanceOptions, type Intent, type JsonSchemaNode, type LegacyCheck, type LimitConsumeInput, type LimitDetail, type LimitRemaining, type LimitStore, type Limits, type LinkPolicy, type LinkPolicyViolation, type LoadedRows, type LocalCustomRoleTable, type LocalMembershipRows, type LocalRowColumn, type LocalRowValue, type LocalSnapshotManifest, type LocalSnapshotRows, MEMBERSHIP_EVENT_SCHEMA, type ManagerApprover, type MatchedGrant, type MemberEntry, type MemberOfCondition, type MemberOfParent, type Membership, type MembershipEvent, type MembershipFixture, type MembershipSource, type MembershipVia, type MemoryAutomationSource, type MemoryDecisionSink, type MemoryDecisionSinkOptions, type MemoryEdge, type MemoryRelationSourceData, type MemoryVersionCacheOptions, type MetaValue, OCSF_VERSION, OPERATION_RISKS, type Obligation, type ObligationInput, type OcsfAuthorizeSession, type OcsfUserManagement, type Operation, type OperationData, type OperationDefinition, type OperationEffect, type OperationInput, type OperationMap, type OperationMeta, type OperationNameOf, type OperationRisk, type PERMISSION_ROW, type POLICY_SCOPES, type PermDock, PermDockApprovalRequiredError, PermDockDeniedError, type PermDockDigest, type PermDockOptions, type PermDockOverrides, PermDockRevokedError, PermDockValidationError, type PermDockWrap, type Permission, type PermissionApprover, type PermissionCheck, type PermissionKind, type PermissionOf, type PermissionState, type PermissionTree, type PermissionsOf, type PermissionsOptions, type PermittedIdsOptions, type Plan, type PlanNameOf, type PlanTree, type Policy, type PolicyAppDataSchemas, type PolicyDelegation, type PolicyDocument, type PolicyOAuthScope, type PolicyScopes, type PolicyScopesInput, type PolicySource, type Principal, type PrincipalIdentity, type PrincipalIdentityLink, type PrincipalOf, type PrincipalRelation, type PrincipalSource, type ProblemDetails, type Quota, RESERVED_CLOUD_EVENT_TYPES, type RESOURCE_NAME, type RESOURCE_X, type RelatedCondition, type RelatedHop, type RelationChain, type RelationGrantee, type RelationGroup, type RelationHolder, type RelationSource, type RequestContext, type ResolvedCustomRole, type ResourceInit, type ResourceLevel, type ResourceLink, type ResourceMeta, type ResourceNode, type ResourceOptions, type ResourceParent, type ResourceRelation, type ResourceRelationInput, type ResourceRestricted, type ResourceXTree, type RestrictedAncestors, type RevocationEvent, type RevocationFeed, type RevocationListener, type RevokedCode, type Role, type RoleBinding, type RoleChange, type RoleChangeCheck, type RoleChangeCheckInput, type RoleChangeDecision, type RoleChangeOptions, type RoleChangeTarget, type RoleMeta, type RoleNameOf, type RoleOptions, type RoleRules, type RoleScope, type RoleTree, type RowData, type RowOf, type RowPair, SINK_EVENT_SCHEMAS, type Scope, type ScopeDeclaration, type ScopeNameOf, type ScopeNames, type SeparationConflict, type SettingsSource, type ShadowMismatch, type ShadowOptions, type SharedCustomRole, type SignDecisionBatchOptions, type SignPolicyDocumentOptions, type SignSnapshotOptions, type SimulateOptions, type SinkEvent, type Snapshot, type SnapshotAssignable, type SnapshotClaims, type SnapshotForOptions, type SnapshotGrant, type SnapshotNotEntitled, type SnapshotOptions, type SnapshotScope, type SnapshotSource, type SnapshotTenants, type SourceCall, type SourceContext, type SourceMemo, type SqlFunctionArg, type SqlFunctionCondition, type StripeEntitlementsClient, type Subject, type SubjectOf, type SubjectResolver, type SupportAccessOptions, type SupportConsent, type SupportSession, type SupportSessionDecision, type SupportSessionPolicy, type SupportSessionRequest, type TenantSettings, type TokenFailureCause, type TokenSigner, type TokenVerifier, type Trace, type TraceSkip, type TraceSkipReason, type UncheckedData, type UserApprover, type ValidateCustomRoleOptions, type ValidateMode, type VerificationFailure, type VerifiedClaims, type VerifiedToken, type VersionCache, type VersionCacheStats, type VersionContext, type VersionQuery, type Vocabulary, type VocabularyOf, type VocabularyOptions, type WhereCompiler, type WhereResult, type WhoCan, type WireDecision, type WireDenial, type WireValidity, accessEvent, accessToOcsf, activate, actor, allOf, allow, anyOf, anyone, approvalFingerprint, approvalPolicies, arazzoFindings, assurance, authenticated, automationEvent, breakGlass, canonicalJson, capabilityFromClaims, catalogFingerprint, checkRoleChange, claim, claimsFirst, cloudEventType, composeMemberships, context, countHolders, coveredByDelegation, credentialDelegation, credentialEvent, credentialPolicyViolation, crud, customRoleClaim, customRoleSource, decideAutomation, decideCredential, decideRoleChange, decideSupportSession, defineApp, defineOperations, definePermissions, definePlans, definePolicy, defineRoles, delegatedPermissions, deliveryEvent, deny, describe, emptySnapshot, findPermission, findRole, formerKeys, fromSnapshot, getPermDock, getPermDockSync, getResource, hasConditionOp, holder, hostedPolicies, inherit, instanceCache, isCondition, isConditionDate, isConditionRef, isExternallyManaged, isFeedId, isOperationRisk, isPermission, isPlan, isPortableCondition, isRole, isRoleName, isSqlFunctionField, limits, linkPolicyViolation, listPermissions, listPlans, listRoles, localSnapshotManifest, manager, mayAccess, membershipEvent, memoryApprovalPolicySource, memoryAutomationSource, memoryCustomRoleSource, memoryDecisionSink, memoryEntitlementSource, memoryLimitStore, memoryMembershipSource, memoryPolicySource, memoryPrincipalSource, memoryRelationSource, memoryRevocationFeed, memorySettingsSource, memorySnapshotSource, memoryVersionCache, mergeHostedGrants, mergePermissions, normalizeApproval, normalizeAssurance, normalizeMembership, normalizeMemberships, opaque, parseAutomation, parseCapability, parseCapabilityClaim, parseCatalogEventData, parseCloudEvent, parseCloudEventBatch, parseCredential, parseCustomRoleEntry, parseLocalSnapshotManifest, parsePermDockDigest, parsePolicyDocument, parseSinkEvent, parseSinkEvents, parseSnapshot, parseSupportSession, plan, policyDocumentFromClaims, principal, readable, relation, requiredPlans, requiresApproval, resolveCustomRole, resolveScope, resource, role, separationConflicts, sha256Digest, shadowMode, signCapability, signDecisionBatch, signPolicyDocument, signSnapshot, simulateArazzo, snapshotClaims, snapshotFor, snapshotFromClaims, sqlFunction, stripeEntitlementSource, subjectMembershipSource, supportAccess, supportSessionEvent, toCloudEvent, toCsvRow, toOcsf, user, validateApprovalPolicy, validateCustomRole, whoCan, wrapPermDock, writable };
|
|
24
|
+
import { t as parseLocalSnapshotManifest } from "./parse-local-manifest-BaCqsqwC.js";
|
|
25
|
+
export { ACCESS_EVENT_SCHEMA, APPROVAL_POLICY_UNAVAILABLE, AUTOMATION_EVENT_SCHEMA, type AccessEvent, type AccessOutcome, type ActionMeta, type ActivateInput, type ActivationOption, type Actor, type ActorKind, type AdapterId, type AnyOfApprover, type ApiKeyPrincipal, type AppData, type AppDataSchema, type AppObligation, type ApprovalCombine, type ApprovalEscalation, type ApprovalFallback, type ApprovalMode, type ApprovalOption, type ApprovalPolicies, type ApprovalPolicy, type ApprovalPolicyProblem, type ApprovalPolicySource, type ApprovalPolicyValidation, type ApprovalRequiredDecision, type ApprovalRequirement, type ApprovalStage, type Approver, type ApproverInput, type ArazzoFinding, type ArazzoPlan, type ArazzoSimulateInput, type ArazzoStepResult, type Assurance, type AssuranceRequirement, type AuthEvent, type AuthorizationDetail, type Automation, type AutomationDecision, type AutomationEvent, type AutomationMode, type AutomationRequest, type AutomationSource, type Binding, type BreakGlassOptions, type BreakGlassRequirements, type BreakGlassSpec, CATALOG_EVENT_SCHEMA, CLOUDEVENTS_BATCH_CONTENT_TYPE, CLOUDEVENTS_CONTENT_TYPE, CLOUD_EVENT_TYPES, CREDENTIAL_EVENT_SCHEMA, CSV_COLUMNS, type Capability, type CapabilityClaim, type CapabilityConfirmation, type CapabilityInput, type CapabilityOptions, type CapabilityPrincipal, type CapabilityRedeemer, type CatalogEventData, type CatalogFinding, type CatalogFindingCode, type ClientNames, type ClosureContext, type ClosureGrantFn, type CloudEvent, type CloudEventOptions, type CloudEventType, type ComputedRelation, type Condition, type ConditionRef, type ConditionValue, type Credential, type CredentialDecision, type CredentialEvent, type CredentialKind, type CredentialPermission, type CredentialPermissionInput, type CredentialPolicy, type CredentialPolicyViolation, type CredentialRequest, type CredentialVerifier, type CustomRole, type CustomRoleContext, type CustomRoleDrop, type CustomRoleDropReason, type CustomRoleEntry, type CustomRoleGrant, type CustomRoleOwner, type CustomRoleReader, type CustomRoleRename, type CustomRoleSource, type CustomRoleSourceFactory, type CustomRoleSourceOptions, type CustomRoleValidation, DECISION_EVENT_SCHEMA, DELIVERY_EVENT_SCHEMA, DIRECTORY_EVENT_SCHEMA, type DecideAutomationOptions, type DecideCredentialOptions, type DecideIdsOptions, type DecideOptions, type DecideSupportSessionOptions, type Decision, type DecisionDescription, type DecisionEvent, type DecisionProvider, type DecisionSink, type Delegation, type DelegationInput, type DelegationTarget, type DeliveryChannel, type DeliveryEvent, type DeliveryFailureCause, type Denial, type DenialDetails, type DenialReason, type DeniedDecision, type DeriveOptions, type DescribeMessages, type DescribeOptions, type DirectoryEvent, EVENT_SCHEMA_IDS, type EdgeGroup, type EdgeGroups, type EdgeMatch, type EdgeRelation, type EmailCategory, type EntitlementSource, type ExplainedDecision, type FieldRelation, type GnapAccess, type Grant, type GrantCondition, type GrantLimit, type GrantMeta, type GrantOptions, type GrantScope, type GrantValidity, type GrantedDecision, type GrantedPermissionsOptions, type Grantee, type GranteeInput, type Holder, type HoldingVia, type HostedGrant, type HostedGrantDropReason, type HostedGrantDropped, type HostedGrantRef, type InheritGrantee, type InstanceCache, type InstanceCacheKey, type InstanceCacheOptions, type InstanceCacheStats, type InstanceOptions, type Intent, type JsonSchemaNode, type LegacyCheck, type LimitConsumeInput, type LimitDetail, type LimitRemaining, type LimitStore, type Limits, type LinkPolicy, type LinkPolicyViolation, type LoadedRows, type LocalCustomRoleTable, type LocalMembershipRows, type LocalRowColumn, type LocalRowValue, type LocalSnapshotManifest, type LocalSnapshotRows, MEMBERSHIP_EVENT_SCHEMA, type ManagerApprover, type MatchedGrant, type MemberEntry, type MemberOfCondition, type MemberOfParent, type Membership, type MembershipEvent, type MembershipFilter, type MembershipFixture, type MembershipSource, type MembershipVia, type MemoryAutomationSource, type MemoryDecisionSink, type MemoryDecisionSinkOptions, type MemoryEdge, type MemoryRelationSourceData, type MemorySubjectCacheOptions, type MemoryVersionCacheOptions, type MetaValue, OCSF_VERSION, OPERATION_RISKS, type Obligation, type ObligationInput, type OcsfAuthorizeSession, type OcsfUserManagement, type Operation, type OperationData, type OperationDefinition, type OperationEffect, type OperationInput, type OperationMap, type OperationMeta, type OperationNameOf, type OperationRisk, type PERMISSION_ROW, type POLICY_SCOPES, type PermDock, PermDockApprovalRequiredError, PermDockDeniedError, type PermDockDigest, type PermDockOptions, type PermDockOverrides, PermDockRevokedError, PermDockValidationError, type PermDockWrap, type Permission, type PermissionApprover, type PermissionCheck, type PermissionKind, type PermissionOf, type PermissionState, type PermissionTree, type PermissionsOf, type PermissionsOptions, type PermittedIdsOptions, type Plan, type PlanNameOf, type PlanTree, type Policy, type PolicyAppDataSchemas, type PolicyDelegation, type PolicyDocument, type PolicyOAuthScope, type PolicyScopes, type PolicyScopesInput, type PolicySource, type Principal, type PrincipalIdentity, type PrincipalIdentityLink, type PrincipalOf, type PrincipalRelation, type PrincipalSource, type ProblemDetails, type Quota, RESERVED_CLOUD_EVENT_TYPES, type RESOURCE_NAME, type RESOURCE_X, type RelatedCondition, type RelatedHop, type RelationChain, type RelationGrantee, type RelationGroup, type RelationHolder, type RelationSource, type RequestContext, type ResolvedCustomRole, type ResourceInit, type ResourceLevel, type ResourceLink, type ResourceMeta, type ResourceNode, type ResourceOptions, type ResourceParent, type ResourceRelation, type ResourceRelationInput, type ResourceRestricted, type ResourceXTree, type RestrictedAncestors, type RevocationEvent, type RevocationFeed, type RevocationListener, type RevokedCode, type Role, type RoleBinding, type RoleChange, type RoleChangeCheck, type RoleChangeCheckInput, type RoleChangeDecision, type RoleChangeOptions, type RoleChangeTarget, type RoleMeta, type RoleNameOf, type RoleOptions, type RoleRules, type RoleScope, type RoleTree, type RowData, type RowOf, type RowPair, SINK_EVENT_SCHEMAS, type Scope, type ScopeDeclaration, type ScopeNameOf, type ScopeNames, type SeparationConflict, type SettingsSource, type ShadowMismatch, type ShadowOptions, type SharedCustomRole, type SignDecisionBatchOptions, type SignPolicyDocumentOptions, type SignSnapshotOptions, type SimulateOptions, type SinkEvent, type Snapshot, type SnapshotAssignable, type SnapshotClaims, type SnapshotForOptions, type SnapshotGrant, type SnapshotNotEntitled, type SnapshotOptions, type SnapshotScope, type SnapshotSource, type SnapshotTenants, type SourceCall, type SourceContext, type SourceMemo, type SqlFunctionArg, type SqlFunctionCondition, type StripeEntitlementsClient, type Subject, type SubjectCache, type SubjectOf, type SubjectRecord, type SubjectResolver, type SupportAccessOptions, type SupportConsent, type SupportSession, type SupportSessionDecision, type SupportSessionPolicy, type SupportSessionRequest, type TenantSettings, type TokenFailureCause, type TokenSigner, type TokenVerifier, type Trace, type TraceSkip, type TraceSkipReason, type UncheckedData, type UserApprover, type ValidateCustomRoleOptions, type ValidateMode, type VerificationFailure, type VerifiedClaims, type VerifiedToken, type VersionCache, type VersionCacheStats, type VersionContext, type VersionQuery, type VersionStore, type Vocabulary, type VocabularyOf, type VocabularyOptions, type WhereCompiler, type WhereResult, type WhoCan, type WireDecision, type WireDenial, type WireValidity, accessEvent, accessOutcome, accessToOcsf, activate, actor, allOf, allow, anyOf, anyone, approvalFingerprint, approvalPolicies, arazzoFindings, assurance, authenticated, automationEvent, breakGlass, canonicalJson, capabilityFromClaims, catalogFingerprint, checkRoleChange, claim, claimsFirst, cloudEventType, composeMemberships, context, countHolders, coveredByDelegation, credentialDelegation, credentialEvent, credentialPolicyViolation, crud, customRoleClaim, customRoleSource, decideAutomation, decideCredential, decideRoleChange, decideSupportSession, defineOperations, definePermissions, definePlans, definePolicy, defineRoles, delegatedPermissions, deliveryEvent, deny, describe, emptySnapshot, findPermission, findRole, formerKeys, fromSnapshot, getPermDock, getPermDockSync, getResource, hasConditionOp, holder, hostedPolicies, inherit, instanceCache, isCondition, isConditionDate, isConditionRef, isExternallyManaged, isFeedId, isGlobalPermission, isOperationRisk, isPermission, isPlan, isPortableCondition, isRole, isRoleName, isSqlFunctionField, limits, linkPolicyViolation, listPermissions, listPlans, listRoles, localSnapshotManifest, manager, mayAccess, membershipEvent, memoryApprovalPolicySource, memoryAutomationSource, memoryCustomRoleSource, memoryDecisionSink, memoryEntitlementSource, memoryLimitStore, memoryMembershipSource, memoryPolicySource, memoryPrincipalSource, memoryRelationSource, memoryRevocationFeed, memorySettingsSource, memorySnapshotSource, memorySubjectCache, memoryVersionCache, mergeHostedGrants, mergePermissions, normalizeApproval, normalizeAssurance, normalizeMembership, normalizeMemberships, opaque, parseAutomation, parseCapability, parseCapabilityClaim, parseCatalogEventData, parseCloudEvent, parseCloudEventBatch, parseCredential, parseCustomRoleEntry, parseLocalSnapshotManifest, parsePermDockDigest, parsePolicyDocument, parseSinkEvent, parseSinkEvents, parseSnapshot, parseSupportSession, plan, policyDocumentFromClaims, principal, readable, relation, requiredPlans, requiresApproval, resolveCustomRole, resolveScope, resource, role, separationConflicts, sha256Digest, shadowMode, signCapability, signDecisionBatch, signPolicyDocument, signSnapshot, simulateArazzo, snapshotClaims, snapshotFor, snapshotFromClaims, sqlFunction, stripeEntitlementSource, subjectMembershipSource, supportAccess, supportSessionEvent, toCloudEvent, toCsvRow, toOcsf, user, validateApprovalPolicy, validateCustomRole, whoCan, wrapPermDock, writable };
|
package/dist/index.js
CHANGED
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
import { c as isConditionDate, i as principal, l as isConditionRef, n as context, o as hasConditionOp, s as isCondition, t as claim, u as isSqlFunctionField } from "./refs-C8BKxc_e.js";
|
|
2
|
-
import { a as deny, m as opaque, n as role, r as allow, t as normalizeAssurance } from "./role-builder-
|
|
3
|
-
import { A as
|
|
2
|
+
import { a as deny, m as opaque, n as role, r as allow, t as normalizeAssurance } from "./role-builder-boQiUvfo.js";
|
|
3
|
+
import { A as memorySettingsSource, C as approvalPolicies, D as memoryCustomRoleSource, E as validateApprovalPolicy, M as subjectMembershipSource, N as accessOutcome, O as memoryEntitlementSource, P as sqlFunction, S as stripeEntitlementSource, T as memoryApprovalPolicySource, _ as simulateArazzo, a as normalizeMembership, b as signPolicyDocument, c as crud, d as snapshotFor, f as customRoleSource, g as arazzoFindings, h as localSnapshotManifest, i as decideRoleChange, j as memorySnapshotSource, k as memoryMembershipSource, l as readable, m as shadowMode, n as toCsvRow, o as normalizeMemberships, p as mayAccess, r as checkRoleChange, s as resolveScope, t as CSV_COLUMNS, u as writable, v as memoryVersionCache, x as memoryRelationSource, y as instanceCache } from "./src-BG9YJM3Q.js";
|
|
4
4
|
import { d as manager, f as user, n as anyOf, o as holder, t as allOf } from "./approvers-BaNwKYgd.js";
|
|
5
5
|
import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
|
|
6
6
|
import { r as requiredPlans } from "./problem-details-CLDgX1KV.js";
|
|
7
7
|
import { n as describe } from "./describe-BZAlPHxT.js";
|
|
8
|
+
import { r as memoryPrincipalSource } from "./principal-source-C6N60GtM.js";
|
|
9
|
+
import { i as signSnapshot, n as fromSnapshot, o as snapshotClaims, s as snapshotFromClaims, t as emptySnapshot } from "./from-snapshot-oR_N97dM.js";
|
|
8
10
|
import { r as parsePermDockDigest } from "./digest-BI-6aa6d.js";
|
|
9
11
|
import { n as PermDockDeniedError, r as PermDockRevokedError, t as PermDockApprovalRequiredError } from "./errors-ynga1EQy.js";
|
|
10
|
-
import { t as memoryRevocationFeed } from "./revocations-Bhr0aMIC.js";
|
|
11
|
-
import { r as memoryPrincipalSource } from "./principal-source-C6N60GtM.js";
|
|
12
12
|
import { a as getResource, c as listPermissions, h as formerKeys, l as mergePermissions, n as findPermission, o as isPermission, v as resource } from "./permission-registry-B8tYxPIt.js";
|
|
13
|
-
import { n as memoryAutomationSource, r as parseAutomation, t as decideAutomation } from "./automation-x3KEUusw.js";
|
|
14
|
-
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
15
|
-
import { r as sha256Digest } from "./sha256-C-4WXKIu.js";
|
|
16
|
-
import { n as parseSupportSession, t as decideSupportSession } from "./support-session-BsmPCbz8.js";
|
|
17
|
-
import { i as delegatedPermissions, n as coveredByDelegation } from "./delegation-aK4T_5WU.js";
|
|
18
13
|
import { _ as listPlans, a as authenticated, c as plan, f as definePlans, g as isRole, h as isPlan, i as assurance, l as relation, m as findRole, n as anyone, p as defineRoles, s as inherit, t as actor, v as listRoles } from "./grantee-Dke-9rd1.js";
|
|
19
|
-
import {
|
|
20
|
-
import { o as isRoleName, r as definePolicy, u as separationConflicts } from "./policy-CaAME-Rh.js";
|
|
14
|
+
import { c as delegatedPermissions, o as coveredByDelegation } from "./condition-evaluate-bVVRSdzq.js";
|
|
21
15
|
import { t as requiresApproval } from "./approval-required-TzNB9oQA.js";
|
|
22
|
-
import {
|
|
16
|
+
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
17
|
+
import { r as sha256Digest } from "./sha256-C-4WXKIu.js";
|
|
18
|
+
import { t as approvalFingerprint } from "./token-DaMnIU9O.js";
|
|
19
|
+
import { n as parseSnapshot } from "./snapshot-C2j96x97.js";
|
|
20
|
+
import { c as isGlobalPermission, n as getPermDockSync, t as getPermDock } from "./permdock-B5LyNVgn.js";
|
|
21
|
+
import { t as memoryRevocationFeed } from "./revocations-Bhr0aMIC.js";
|
|
22
|
+
import { n as memoryAutomationSource, r as parseAutomation, t as decideAutomation } from "./automation-BueW05db.js";
|
|
23
|
+
import { n as parseSupportSession, t as decideSupportSession } from "./support-session-BGeEYDSq.js";
|
|
24
|
+
import { a as normalizeApproval } from "./approval-normalize-DNLW0zOM.js";
|
|
25
|
+
import { o as isRoleName, r as definePolicy, u as separationConflicts } from "./policy-wGzbAPQF.js";
|
|
26
|
+
import { a as hostedPolicies, c as mergeHostedGrants, l as parsePolicyDocument, o as isPortableCondition, s as memoryPolicySource, u as policyDocumentFromClaims } from "./hosted-C5I2TSXm.js";
|
|
23
27
|
import { n as isOperationRisk, t as OPERATION_RISKS } from "./operation-risks-BKOcTv8J.js";
|
|
24
28
|
import { t as defineOperations } from "./operations-Bm9HFecz.js";
|
|
25
|
-
import { A as breakGlass, F as APPROVAL_POLICY_UNAVAILABLE, T as validateCustomRole, b as parseCustomRoleEntry, d as customRoleClaim, j as supportAccess, k as activate, x as resolveCustomRole } from "./evaluate-
|
|
26
|
-
import { _ as claimsFirst, b as isExternallyManaged, v as composeMemberships, y as countHolders } from "./instance-snapshot-
|
|
27
|
-
import { t as
|
|
28
|
-
import { t as whoCan } from "./who-can-
|
|
29
|
-
import {
|
|
30
|
-
import { l as snapshotClaims, s as signSnapshot, u as snapshotFromClaims } from "./where-scope-BAyOsPQW.js";
|
|
29
|
+
import { A as breakGlass, F as APPROVAL_POLICY_UNAVAILABLE, T as validateCustomRole, b as parseCustomRoleEntry, d as customRoleClaim, j as supportAccess, k as activate, x as resolveCustomRole } from "./evaluate-B5yZHmts.js";
|
|
30
|
+
import { _ as claimsFirst, b as isExternallyManaged, v as composeMemberships, y as countHolders } from "./instance-snapshot-D_dGTq--.js";
|
|
31
|
+
import { n as memoryLimitStore, t as limits } from "./limits-CAhpRrhk.js";
|
|
32
|
+
import { t as whoCan } from "./who-can-CjfMP9a4.js";
|
|
33
|
+
import { t as memorySubjectCache } from "./subject-cache-BT1fGuea.js";
|
|
31
34
|
import { t as deliveryEvent } from "./delivery-event-JioK5YbS.js";
|
|
32
|
-
import { n as fromSnapshot, t as emptySnapshot } from "./from-snapshot-DHnb8Fh4.js";
|
|
33
35
|
import { t as parseLocalSnapshotManifest } from "./parse-local-manifest-Ce2N-Opr.js";
|
|
34
|
-
import { n as
|
|
35
|
-
import { n as wrapPermDock } from "./wrap-C5PWzgkq.js";
|
|
36
|
+
import { n as wrapPermDock } from "./wrap-BKU5Arsu.js";
|
|
36
37
|
import { t as definePermissions } from "./permissions-BaoLxy66.js";
|
|
37
38
|
import { C as EVENT_SCHEMA_IDS, S as DIRECTORY_EVENT_SCHEMA, T as SINK_EVENT_SCHEMAS, _ as AUTOMATION_EVENT_SCHEMA, a as accessEvent, b as DECISION_EVENT_SCHEMA, c as credentialEvent, d as membershipEvent, f as memoryDecisionSink, g as ACCESS_EVENT_SCHEMA, h as toCloudEvent, i as RESERVED_CLOUD_EVENT_TYPES, m as supportSessionEvent, n as CLOUDEVENTS_CONTENT_TYPE, o as automationEvent, p as signDecisionBatch, r as CLOUD_EVENT_TYPES, s as cloudEventType, t as CLOUDEVENTS_BATCH_CONTENT_TYPE, v as CATALOG_EVENT_SCHEMA, w as MEMBERSHIP_EVENT_SCHEMA, x as DELIVERY_EVENT_SCHEMA, y as CREDENTIAL_EVENT_SCHEMA } from "./sink-D9_vh372.js";
|
|
38
39
|
import { a as parseSinkEvent, i as parseCloudEventBatch, n as parseCatalogEventData, o as parseSinkEvents, r as parseCloudEvent, t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
|
|
39
40
|
import { i as toOcsf, n as accessToOcsf, t as OCSF_VERSION } from "./ocsf-TcjRBgIs.js";
|
|
40
|
-
import { a as parseCapability, c as signCapability, i as linkPolicyViolation, o as parseCapabilityClaim, t as capabilityFromClaims } from "./capability-
|
|
41
|
-
import { a as decideCredential, n as credentialPolicyViolation, o as isFeedId, s as parseCredential, t as credentialDelegation } from "./credential-
|
|
42
|
-
export { ACCESS_EVENT_SCHEMA, APPROVAL_POLICY_UNAVAILABLE, AUTOMATION_EVENT_SCHEMA, CATALOG_EVENT_SCHEMA, CLOUDEVENTS_BATCH_CONTENT_TYPE, CLOUDEVENTS_CONTENT_TYPE, CLOUD_EVENT_TYPES, CREDENTIAL_EVENT_SCHEMA, CSV_COLUMNS, DECISION_EVENT_SCHEMA, DELIVERY_EVENT_SCHEMA, DIRECTORY_EVENT_SCHEMA, EVENT_SCHEMA_IDS, MEMBERSHIP_EVENT_SCHEMA, OCSF_VERSION, OPERATION_RISKS, PermDockApprovalRequiredError, PermDockDeniedError, PermDockRevokedError, PermDockValidationError, RESERVED_CLOUD_EVENT_TYPES, SINK_EVENT_SCHEMAS, accessEvent, accessToOcsf, activate, actor, allOf, allow, anyOf, anyone, approvalFingerprint, approvalPolicies, arazzoFindings, assurance, authenticated, automationEvent, breakGlass, canonicalJson, capabilityFromClaims, catalogFingerprint, checkRoleChange, claim, claimsFirst, cloudEventType, composeMemberships, context, countHolders, coveredByDelegation, credentialDelegation, credentialEvent, credentialPolicyViolation, crud, customRoleClaim, customRoleSource, decideAutomation, decideCredential, decideRoleChange, decideSupportSession,
|
|
41
|
+
import { a as parseCapability, c as signCapability, i as linkPolicyViolation, o as parseCapabilityClaim, t as capabilityFromClaims } from "./capability-CenWwTMR.js";
|
|
42
|
+
import { a as decideCredential, n as credentialPolicyViolation, o as isFeedId, s as parseCredential, t as credentialDelegation } from "./credential-Bap3HClV.js";
|
|
43
|
+
export { ACCESS_EVENT_SCHEMA, APPROVAL_POLICY_UNAVAILABLE, AUTOMATION_EVENT_SCHEMA, CATALOG_EVENT_SCHEMA, CLOUDEVENTS_BATCH_CONTENT_TYPE, CLOUDEVENTS_CONTENT_TYPE, CLOUD_EVENT_TYPES, CREDENTIAL_EVENT_SCHEMA, CSV_COLUMNS, DECISION_EVENT_SCHEMA, DELIVERY_EVENT_SCHEMA, DIRECTORY_EVENT_SCHEMA, EVENT_SCHEMA_IDS, MEMBERSHIP_EVENT_SCHEMA, OCSF_VERSION, OPERATION_RISKS, PermDockApprovalRequiredError, PermDockDeniedError, PermDockRevokedError, PermDockValidationError, RESERVED_CLOUD_EVENT_TYPES, SINK_EVENT_SCHEMAS, accessEvent, accessOutcome, accessToOcsf, activate, actor, allOf, allow, anyOf, anyone, approvalFingerprint, approvalPolicies, arazzoFindings, assurance, authenticated, automationEvent, breakGlass, canonicalJson, capabilityFromClaims, catalogFingerprint, checkRoleChange, claim, claimsFirst, cloudEventType, composeMemberships, context, countHolders, coveredByDelegation, credentialDelegation, credentialEvent, credentialPolicyViolation, crud, customRoleClaim, customRoleSource, decideAutomation, decideCredential, decideRoleChange, decideSupportSession, defineOperations, definePermissions, definePlans, definePolicy, defineRoles, delegatedPermissions, deliveryEvent, deny, describe, emptySnapshot, findPermission, findRole, formerKeys, fromSnapshot, getPermDock, getPermDockSync, getResource, hasConditionOp, holder, hostedPolicies, inherit, instanceCache, isCondition, isConditionDate, isConditionRef, isExternallyManaged, isFeedId, isGlobalPermission, isOperationRisk, isPermission, isPlan, isPortableCondition, isRole, isRoleName, isSqlFunctionField, limits, linkPolicyViolation, listPermissions, listPlans, listRoles, localSnapshotManifest, manager, mayAccess, membershipEvent, memoryApprovalPolicySource, memoryAutomationSource, memoryCustomRoleSource, memoryDecisionSink, memoryEntitlementSource, memoryLimitStore, memoryMembershipSource, memoryPolicySource, memoryPrincipalSource, memoryRelationSource, memoryRevocationFeed, memorySettingsSource, memorySnapshotSource, memorySubjectCache, memoryVersionCache, mergeHostedGrants, mergePermissions, normalizeApproval, normalizeAssurance, normalizeMembership, normalizeMemberships, opaque, parseAutomation, parseCapability, parseCapabilityClaim, parseCatalogEventData, parseCloudEvent, parseCloudEventBatch, parseCredential, parseCustomRoleEntry, parseLocalSnapshotManifest, parsePermDockDigest, parsePolicyDocument, parseSinkEvent, parseSinkEvents, parseSnapshot, parseSupportSession, plan, policyDocumentFromClaims, principal, readable, relation, requiredPlans, requiresApproval, resolveCustomRole, resolveScope, resource, role, separationConflicts, sha256Digest, shadowMode, signCapability, signDecisionBatch, signPolicyDocument, signSnapshot, simulateArazzo, snapshotClaims, snapshotFor, snapshotFromClaims, sqlFunction, stripeEntitlementSource, subjectMembershipSource, supportAccess, supportSessionEvent, toCloudEvent, toCsvRow, toOcsf, user, validateApprovalPolicy, validateCustomRole, whoCan, wrapPermDock, writable };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-BhRkoNS7.js";
|
|
2
|
-
import { a as decodePreset, g as resolvePreset, i as presetFlags, n as generatePreset, o as encodePreset } from "./preset-pPrVyGU5.js";
|
|
3
|
-
import { a as nonEmptyOr } from "./output-KT0a3B3H.js";
|
|
4
2
|
import { t as addLine } from "./peer-BuK9F53f.js";
|
|
3
|
+
import { a as decodePreset, g as resolvePreset, i as presetFlags, n as generatePreset, o as encodePreset } from "./preset-Bn5Z54cH.js";
|
|
4
|
+
import { a as nonEmptyOr } from "./output-RIUEs3_S.js";
|
|
5
5
|
import { t as applyFiles } from "./files-CfiRtQ-m.js";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
7
7
|
import { join } from "node:path";
|