permdock 0.20.1 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/a2a/index.d.ts +5 -5
- package/dist/a2a/index.js +5 -4
- package/dist/{adoption-scan-BTG9Noyy.js → adoption-scan-_bHLMnVQ.js} +1 -1
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +4 -4
- package/dist/ai-sdk/index.js +3 -3
- package/dist/app/index.d.ts +85 -0
- package/dist/app/index.js +91 -0
- package/dist/app-DIvM65Mv.js +24 -0
- package/dist/{approval-policies-CKlByf5o.d.ts → approval-policies-UnDSxT__.d.ts} +2 -2
- package/dist/{approval-prompt-CQFiO1KE.d.ts → approval-prompt-2hTqo6IM.d.ts} +2 -2
- package/dist/approvals/index.d.ts +3 -3
- package/dist/approvals/index.js +3 -3
- package/dist/{approvals-CuXILe52.js → approvals-B_sn4Wrn.js} +6 -6
- package/dist/{arazzo-CDXfX4u0.js → arazzo-BXD-VJU_.js} +1 -1
- package/dist/{arazzo-D4mKdaWI.js → arazzo-Ct0PGblq.js} +3 -3
- package/dist/astro/index.d.ts +6 -6
- package/dist/astro/index.js +2 -2
- package/dist/{audience-BUonniPx.js → audience-5Xx1hdIv.js} +1 -1
- package/dist/{auth-j3Eu-j4h.js → auth-BxXHxWRy.js} +1 -1
- package/dist/authzen/index.d.ts +5 -5
- package/dist/authzen/index.js +4 -4
- package/dist/{automation-CpOk7Tlu.d.ts → automation-B20_8UoT.d.ts} +3 -3
- package/dist/{automation-x3KEUusw.js → automation-BueW05db.js} +2 -2
- package/dist/better-auth/index.d.ts +2 -2
- package/dist/better-auth/index.js +1 -1
- package/dist/better-supabase/index.d.ts +113 -56
- package/dist/better-supabase/index.js +200 -62
- package/dist/better-supabase-DF8f8oly.js +194 -0
- package/dist/{bind-gwEbe9hL.js → bind-B4Z0U2Gr.js} +5 -5
- package/dist/{bind-CW7nsZ86.d.ts → bind-CnOMjazH.d.ts} +7 -7
- package/dist/{build-instance-DaBdCRiz.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-COUi09Ti.js → casbin-D5evU3lX.js} +1 -1
- package/dist/{casbin-BXlRcCdU.js → casbin-imBS3UIf.js} +1 -1
- package/dist/catalog/index.d.ts +5 -5
- package/dist/catalog/index.js +5 -5
- package/dist/catalog-C462QC3A.js +1 -0
- package/dist/{catalog-DjDc87R2.js → catalog-CoyKnU5c.js} +1 -1
- package/dist/{catalog-s0waIrfY.js → catalog-Y4CjN8NA.js} +4 -4
- package/dist/{catalog-operations-BD22drQf.js → catalog-operations-Do1eD-Rt.js} +1 -1
- package/dist/{challenge-DbkpCx_v.js → challenge-B__LcNve.js} +3 -3
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +3 -2
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +2 -2
- package/dist/clerk/index.d.ts +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/index.d.ts +8 -7
- package/dist/cli/index.js +3 -3
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +3 -3
- package/dist/{cloud-BW7JKfrF.js → cloud-DWCeStPH.js} +2 -2
- package/dist/{codemod-6CBQaT0x.js → codemod-B7QKJ_ak.js} +2 -2
- package/dist/{codemod-CR9EQBVd.js → codemod-BaPmaCYQ.js} +13 -6
- package/dist/{collect-DN_x7hvV.js → collect-Cr71JA7z.js} +8 -7
- package/dist/{collect-DMQ6Sxr6.js → collect-ScSG05VJ.js} +2 -2
- package/dist/collect-W9i7REKT.js +1 -0
- package/dist/compile/index.d.ts +1 -1
- package/dist/compile/index.js +1 -1
- package/dist/{compile-B_oJqmIg.js → compile-Cvru58id.js} +2 -2
- package/dist/{compile-DZftFfXc.d.ts → compile-DC-BrhH1.d.ts} +3 -3
- package/dist/{completion-CYRlOJzv.js → completion-DOUMyCwa.js} +1 -1
- package/dist/{delegation-aK4T_5WU.js → condition-evaluate-bVVRSdzq.js} +159 -159
- package/dist/{config-6iLK155o.js → config-DRp-E8Ly.js} +1 -1
- package/dist/{config-D2oXUwos.js → config-DyNanTjZ.js} +10 -8
- package/dist/{config-report-BLroaWCe.js → config-report-Bh_nLdAE.js} +2 -2
- package/dist/{config-shape-D9paLhEX.js → config-shape-C4zqzG2K.js} +9 -2
- package/dist/{context-YhyXyqBI.js → context-Cem4QafV.js} +2 -2
- package/dist/convex/index.d.ts +5 -5
- package/dist/convex/index.js +2 -2
- package/dist/{core-BwVkrpsi.js → core-CUjhfz0W.js} +6 -6
- package/dist/{core-BOeGWbcR.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-BezeYFcT.d.ts → create-B2tdOygC.d.ts} +7 -7
- package/dist/{create-C0R8omeF.js → create-BJ2_8NDO.js} +5 -5
- package/dist/{create-DDUFG1ul.js → create-BsL5lCWR.js} +10 -8
- package/dist/{create-DYSYYiLr.d.ts → create-CPDSbK1a.d.ts} +5 -5
- package/dist/{create-DMCC5ZOi.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-Bd1-VCe5.js → diff-BR9JArxz.js} +6 -6
- package/dist/{diff-DXRNcjpg.js → diff-Jc_kbDz-.js} +1 -1
- package/dist/{doctor-CJcS0Mrq.js → doctor-BBMW5ZT_.js} +310 -36
- package/dist/{doctor-DYTgibLC.js → doctor-DhqSiPkq.js} +3 -3
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/drizzle/index.js +1 -1
- package/dist/elysia/index.d.ts +5 -5
- package/dist/elysia/index.js +3 -3
- package/dist/{errors-OTE9u4Wk.d.ts → errors-D_JIQJYb.d.ts} +1 -1
- package/dist/{evaluate-Dcq_U2TV.js → evaluate-B5yZHmts.js} +16 -16
- package/dist/{evaluations-CNMVJVD6.js → evaluations-BzTDWO4m.js} +57 -57
- package/dist/{evaluations-BgxEfPL7.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-DCQ4pZxf.d.ts → fetch-adapter-DxqsIXSO.d.ts} +4 -4
- package/dist/{fetch-adapter-acq4dPX3.js → fetch-adapter-MoYZ-vF5.js} +5 -4
- 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-gv_WHBIG.js → gen-DXXoFjyf.js} +1 -1
- package/dist/{gen-CH50v9VI.js → gen-WdycZ_-b.js} +5 -5
- package/dist/{grantee-conditions-DX4K_gGI.js → grantee-conditions-Dzprappv.js} +1 -1
- package/dist/{grantee-match-BP-k4vRJ.js → grantee-match-8J2y60MF.js} +3 -3
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +3 -3
- package/dist/{helpers-D-MXwkOF.js → helpers-DzBIfL1N.js} +25 -25
- package/dist/hono/index.d.ts +5 -5
- package/dist/hono/index.js +3 -3
- package/dist/{hosted-C2Pmhy2x.js → hosted-C5I2TSXm.js} +4 -4
- package/dist/{hosted-yhyAuQkL.d.ts → hosted-DXq1plaP.d.ts} +1 -1
- package/dist/{http-DhMWeB_h.js → http-dptLQzPP.js} +1 -1
- package/dist/{expiry-6XByK0dm.js → ids-DzhJaCUj.js} +23 -23
- package/dist/{import-BlwuuZkr.js → import-BE5sDazm.js} +2 -2
- package/dist/{import-C2ExjVvv.js → import-CvXswHDy.js} +2 -2
- package/dist/index-BcS8c_2S.d.ts +101 -0
- package/dist/{index--AwSBzJC.d.ts → index-BdZpqhJK.d.ts} +2 -2
- package/dist/{index-CLbGOPBr.d.ts → index-C-R8lBPb.d.ts} +3 -3
- package/dist/{index-CruReRkB.d.ts → index-C_8uxAlv.d.ts} +5 -5
- package/dist/{index-D7xGi1LS.d.ts → index-Cjfa1Uwr.d.ts} +22 -40
- package/dist/{index-Bt37QovT.d.ts → index-iIsqXFVu.d.ts} +6 -6
- package/dist/index.d.ts +19 -20
- package/dist/index.js +25 -24
- package/dist/{init-CalppFAI.js → init-B_S8Xdz1.js} +4 -4
- package/dist/{init-B62H9Kyx.js → init-CqGHcvyR.js} +2 -2
- package/dist/{instance-options-VPsNQsTH.d.ts → instance-options-C6gEDOts.d.ts} +1 -1
- package/dist/instance-options-URVwqpMW.js +24 -0
- package/dist/{instance-snapshot-SX8zH_1t.js → instance-snapshot-D_dGTq--.js} +10 -10
- package/dist/jwt/index.d.ts +4 -4
- package/dist/jwt/index.js +2 -2
- package/dist/{kernel-_QEUOSU0.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-dDb_8muO.js → login-CzwlsBEO.js} +4 -4
- package/dist/{login-MxQV1BLh.js → login-DoLxv1s5.js} +3 -3
- package/dist/{manifest-DvDzxhy6.js → manifest-BAf7cgRx.js} +35 -35
- package/dist/{map-claims-PQwHynxV.js → map-claims-CAa_bQt9.js} +1 -1
- package/dist/{map-error-EOhahOVA.js → map-error-p4ROJ_26.js} +1 -1
- package/dist/mcp/index.d.ts +9 -9
- package/dist/mcp/index.js +9 -8
- package/dist/{migrate-CkLHdwuH.js → migrate-DVsxeE0y.js} +1 -1
- package/dist/{module-values-BYuNtdK5.js → module-values-BLiVlO1X.js} +3 -3
- package/dist/nest/index.d.ts +5 -5
- package/dist/nest/index.js +3 -3
- package/dist/next/index.d.ts +46 -17
- package/dist/next/index.js +58 -23
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +1 -1
- package/dist/node/index.d.ts +5 -5
- package/dist/node/index.js +2 -2
- package/dist/openai/index.d.ts +5 -5
- package/dist/openai/index.js +3 -3
- package/dist/openapi/index.d.ts +5 -59
- package/dist/openapi/index.js +3 -2
- package/dist/{openapi-BOsx0xn9.js → openapi-Cc-aS9xC.js} +6 -135
- package/dist/{openapi-BkGtE5kX.js → openapi-DroBcLJZ.js} +2 -2
- package/dist/{openapi-DKePsnln.js → openapi-EmvKwuWj.js} +4 -4
- package/dist/{operations-Ci_rT6Uo.d.ts → operations-BMPx7HyO.d.ts} +1 -1
- package/dist/optional-8TKc-0j4.js +47 -0
- package/dist/orpc/index.d.ts +7 -7
- package/dist/orpc/index.js +4 -4
- package/dist/otel/index.d.ts +3 -3
- package/dist/otel/index.js +1 -1
- package/dist/{output-B2h-2g3F.js → output-CYgfpT6o.js} +1 -1
- package/dist/{ownership-MGHa5vfX.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-C1DN_7a-.js → permdock-B5LyNVgn.js} +71 -34
- package/dist/{permdock-D4F2p5J8.d.ts → permdock-BaB-KQqn.d.ts} +51 -9
- package/dist/{permissions-8N2yFsUM.js → permissions-COpRGKt7.js} +1 -1
- package/dist/{permissions-Bx6UI8n1.d.ts → permissions-DriWkV7q.d.ts} +1 -2
- package/dist/{policy-from-catalog-CUNlpgz0.js → policy-from-catalog-Cy103lsm.js} +8 -8
- package/dist/{policy-types-BI9C5Sp5.d.ts → policy-types-rNfz7t0M.d.ts} +9 -3
- package/dist/{policy-CaAME-Rh.js → policy-wGzbAPQF.js} +7 -7
- package/dist/{policy-Dh9WVSVz.d.ts → policy-x8RBKW8d.d.ts} +2 -2
- package/dist/{postgrest-CWCCbaxm.d.ts → postgrest-Cn0Res25.d.ts} +9 -21
- package/dist/powersync-BdoR7nwS.js +1 -0
- package/dist/{powersync-Deim9O47.js → powersync-BeI0VmEK.js} +2 -2
- package/dist/{powersync-CB8RwcB4.js → powersync-Dpa5AnnN.js} +11 -11
- package/dist/preset/index.js +1 -1
- package/dist/{preset-pPrVyGU5.js → preset-Bn5Z54cH.js} +5 -6
- package/dist/prisma/index.d.ts +2 -2
- package/dist/prisma/index.js +1 -1
- package/dist/{protected-action-ua0cx5cW.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-D_hgjZRa.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-BxqVL4Es.js → pull-3tkn25ll.js} +5 -5
- package/dist/pull-D90HqWNP.js +1 -0
- package/dist/{push-D2SsRW0U.js → push-dMyKdlEm.js} +6 -6
- package/dist/{pushed-policy-BERO0x9O.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-BPTi68z5.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-BZQZRnMH.js → resolve-names-BnGJU88N.js} +4 -4
- package/dist/{rls-DpoJ5gCg.js → rls-DIYSRnDZ.js} +1 -1
- package/dist/{rls-OPorg_2G.js → rls-qrehUPf_.js} +45 -18
- package/dist/{role-builder-C5AgaC1x.js → role-builder-boQiUvfo.js} +3 -3
- package/dist/{rpc-D2LnFELm.d.ts → rpc-BqRiVpbP.d.ts} +2 -2
- package/dist/{rpc-DdkbQVlT.js → rpc-Dhi55Whd.js} +2 -2
- package/dist/run-elFdnSZx.js +1 -0
- package/dist/{run-YCpANf1B.js → run-oNqBe0gc.js} +3 -3
- package/dist/{run-ticket-CjvXr6wj.js → run-ticket-Ddxt9OuU.js} +2 -2
- package/dist/{run-ticket-94DOS9Cd.d.ts → run-ticket-Dulj4RQk.d.ts} +2 -2
- package/dist/{saas-BEXnrH9H.js → saas-DABv6vjy.js} +6 -5
- package/dist/{scan-COvn7ZjN.js → scan-BYXqcgON.js} +1 -1
- package/dist/{schema-BfSDo7Xj.js → schema-Wf-SvlHG.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/scim/index.js +1 -1
- package/dist/{scopes-BSdYaGHs.js → scopes-gdH__vDZ.js} +1 -1
- package/dist/server/index.d.ts +11 -10
- package/dist/server/index.js +7 -6
- package/dist/server-CKjFooaJ.js +147 -0
- package/dist/{server-types-ChzXWU4Y.d.ts → server-types--_Hann81.d.ts} +10 -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-N2Hd8KN8.js → skills-417bOj4o.js} +1 -1
- package/dist/{skills-Ce4C2dq1.js → skills-B9U465B7.js} +2 -2
- package/dist/{snapshot-DHPih65J.js → snapshot-C2j96x97.js} +4 -4
- package/dist/{snapshot-cache-MPinwwgZ.d.ts → snapshot-cache-Cc7VNabe.d.ts} +1 -1
- package/dist/solid/index.d.ts +6 -7
- package/dist/solid/index.js +2 -2
- package/dist/solid-start/index.d.ts +6 -6
- package/dist/solid-start/index.js +3 -3
- package/dist/{sources-sgQlMfmz.d.ts → sources-BfTza0zT.d.ts} +1 -1
- package/dist/{src-B8SQNsvw.js → src-BG9YJM3Q.js} +97 -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-Dpg_fSNQ.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-C2A6KsxE.d.ts → stores-C6-7TPTV.d.ts} +6 -7
- package/dist/{postgrest-BrjrckDG.js → subject-BqFwS6l3.js} +214 -319
- package/dist/subject-cache-BT1fGuea.js +193 -0
- package/dist/subject-cache-d_Z4KAnm.d.ts +144 -0
- package/dist/supabase/index.d.ts +6 -5
- package/dist/supabase/index.js +3 -2
- package/dist/supabase/middleware.d.ts +6 -6
- package/dist/supabase/middleware.js +6 -6
- package/dist/{supabase-zL7PC3RG.js → supabase-D0J99yqL.js} +2 -2
- package/dist/{supabase-CVZuytCC.js → supabase-DnazO6W4.js} +3 -3
- package/dist/{supabase-hook-BCSwK5x-.js → supabase-hook-Bh5syR9N.js} +174 -62
- package/dist/supabase-hook-CVAenq-w.js +1 -0
- package/dist/{supautils-7UES0i4a.js → supautils-ChXR-4Or.js} +302 -43
- package/dist/{support-session-BsmPCbz8.js → support-session-BGeEYDSq.js} +2 -2
- package/dist/svelte/index.d.ts +5 -5
- package/dist/svelte/index.js +3 -3
- package/dist/svelte/runtime.d.ts +3 -3
- package/dist/svelte/runtime.js +1 -1
- package/dist/svelte/source.d.ts +5 -5
- package/dist/svelte/source.js +2 -2
- package/dist/sveltekit/index.d.ts +6 -6
- package/dist/sveltekit/index.js +2 -2
- package/dist/{tables-DSX_Ma_n.js → tables-CbEOy2Ma.js} +137 -55
- package/dist/tanstack-start/index.d.ts +6 -6
- package/dist/tanstack-start/index.js +2 -2
- package/dist/{tenancy-DvOHHk3-.js → tenancy-BlxY5T0q.js} +2 -2
- package/dist/terminal/index.d.ts +6 -6
- package/dist/terminal/index.js +6 -6
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.d.ts +35 -2
- package/dist/testing/fixtures/index.js +39 -2
- package/dist/testing/index.d.ts +41 -25
- package/dist/testing/index.js +114 -26
- package/dist/testing/saas/index.d.ts +5 -5
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.d.ts +1 -1
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +6 -6
- package/dist/trpc/index.js +4 -4
- package/dist/{type-helpers-BjOLGVy1.d.ts → type-helpers-iXJEIDe7.d.ts} +3 -4
- package/dist/{types-p8mhWTcR.d.ts → types-B9F0EZAF.d.ts} +3 -3
- package/dist/{types-DZwEOsK1.d.ts → types-BSNZMp5b.d.ts} +1 -1
- package/dist/{types-DnzRZjEu.d.ts → types-BpxdxaRD.d.ts} +5 -5
- package/dist/{types-C5p2hoBR.d.ts → types-CD1qmxdx.d.ts} +4 -4
- package/dist/{types-D1NjjwI4.d.ts → types-CS1DI_Ke.d.ts} +40 -9
- package/dist/{types-CMclYgSk.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-Drs3OOAy.d.ts → types-NikV1pND.d.ts} +4 -4
- package/dist/{types-BzxA2OAD.d.ts → types-ZfjQB0KC.d.ts} +2 -2
- package/dist/{types-D8JVDWOr.d.ts → types-_pi9kxS2.d.ts} +2 -2
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-CUnw73Y-.js → usage-0wsl83uw.js} +10 -10
- package/dist/{usage-BcAqmjkj.js → usage-Bl-BkXEq.js} +1 -1
- package/dist/usage-CmyGbo4e.js +1 -0
- package/dist/{validation-error-DkOK9zUE.d.ts → validation-error-DLAYFlkr.d.ts} +1 -1
- package/dist/{verify-V08pirDB.js → verify-BSLotSa0.js} +41 -24
- package/dist/version-sources-BC3hf2ME.js +34 -0
- package/dist/{permission-types-CAY-GU7e.d.ts → vocabulary-DeZvUaTw.d.ts} +69 -1
- package/dist/vue/index.d.ts +6 -7
- package/dist/vue/index.js +2 -2
- package/dist/{waiter-BjVI_Byg.d.ts → waiter-cbK1CBhT.d.ts} +2 -2
- package/dist/{watch-Dz2LNM1R.js → watch-BigZ260i.js} +2 -2
- package/dist/watch-CHURMgrv.js +1 -0
- package/dist/webmcp/index.d.ts +2 -2
- package/dist/{who-can-CZeAwQZD.js → who-can-CjfMP9a4.js} +8 -8
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +6 -5
- package/dist/workflow-sdk/index.d.ts +5 -5
- package/dist/{wrap-CE5lxje7.d.ts → wrap-B-k2qHJx.d.ts} +2 -2
- package/package.json +16 -4
- package/skills/permdock-wire/references/presets-and-recipes.md +2 -2
- package/dist/better-supabase-ayun1IKE.js +0 -122
- package/dist/catalog-BTPySmbp.js +0 -1
- package/dist/collect-eSTXOZDC.js +0 -1
- package/dist/index-B_I6N8Ju.d.ts +0 -222
- package/dist/load-CjnlPxpL.js +0 -1
- package/dist/powersync-Cs1E04s6.js +0 -1
- package/dist/pull-BLT25Y5C.js +0 -1
- package/dist/run-CW0QsyA9.js +0 -1
- package/dist/supabase-hook-7XxWGHQF.js +0 -1
- package/dist/usage-BdIS9NfN.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
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
|
+
import { n as findPermission, o as isPermission } from "./permission-registry-B8tYxPIt.js";
|
|
3
|
+
//#region src/openapi/operations.ts
|
|
4
|
+
const HTTP_METHODS = /* @__PURE__ */ new Set([
|
|
5
|
+
"GET",
|
|
6
|
+
"PUT",
|
|
7
|
+
"POST",
|
|
8
|
+
"DELETE",
|
|
9
|
+
"OPTIONS",
|
|
10
|
+
"HEAD",
|
|
11
|
+
"PATCH",
|
|
12
|
+
"TRACE",
|
|
13
|
+
"QUERY"
|
|
14
|
+
]);
|
|
15
|
+
/** Every skip cause, for a table or an exhaustive switch. */
|
|
16
|
+
const OPERATION_SKIP_CAUSES = [
|
|
17
|
+
"no-permission",
|
|
18
|
+
"several-permissions",
|
|
19
|
+
"unknown-permission",
|
|
20
|
+
"invalid-extension"
|
|
21
|
+
];
|
|
22
|
+
function segmentsOf$1(path) {
|
|
23
|
+
return path.split("/").filter((segment) => segment !== "");
|
|
24
|
+
}
|
|
25
|
+
function isParam(segment) {
|
|
26
|
+
return segment.startsWith("{") && segment.endsWith("}");
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The number of literal segments that match, or -1 when the template does not
|
|
30
|
+
* match.
|
|
31
|
+
*/
|
|
32
|
+
function score(route, segments) {
|
|
33
|
+
if (route.segments.length !== segments.length) return -1;
|
|
34
|
+
let literal = 0;
|
|
35
|
+
for (const [index, segment] of route.segments.entries()) {
|
|
36
|
+
if (isParam(segment)) continue;
|
|
37
|
+
if (segment !== segments[index]) return -1;
|
|
38
|
+
literal += 1;
|
|
39
|
+
}
|
|
40
|
+
return literal;
|
|
41
|
+
}
|
|
42
|
+
function isEntryObject(entry) {
|
|
43
|
+
return !isPermission(entry);
|
|
44
|
+
}
|
|
45
|
+
function scopesOf(key, entry) {
|
|
46
|
+
if (!isEntryObject(entry) || entry.oauthScopes === void 0) return;
|
|
47
|
+
const scopes = entry.oauthScopes;
|
|
48
|
+
if (scopes.length === 0 || !scopes.every((scope) => typeof scope === "string" && scope !== "")) throw new TypeError(`PermDock: operation '${key}' sets oauthScopes, which must be a non-empty list of scope names`);
|
|
49
|
+
return Object.freeze([...entry.oauthScopes]);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Operations as `"METHOD /path/{param}"` keys, the OpenAPI path template, to a
|
|
53
|
+
* permission. `base` is a prefix requests carry and the keys do not
|
|
54
|
+
* (`/api/v1`). A key that is not a method and a path throws.
|
|
55
|
+
*/
|
|
56
|
+
function operationPermissions(operations, options = {}) {
|
|
57
|
+
const routes = [];
|
|
58
|
+
const byId = /* @__PURE__ */ new Map();
|
|
59
|
+
for (const [key, entry] of Object.entries(operations)) {
|
|
60
|
+
const space = key.indexOf(" ");
|
|
61
|
+
const method = key.slice(0, space).toUpperCase();
|
|
62
|
+
const path = key.slice(space + 1).trim();
|
|
63
|
+
if (space <= 0 || !HTTP_METHODS.has(method) || !path.startsWith("/")) throw new TypeError(`PermDock: operation '${key}' must be a method and a path, such as 'GET /customers/{id}'`);
|
|
64
|
+
const oauthScopes = scopesOf(key, entry);
|
|
65
|
+
if (isEntryObject(entry) && (entry.permission === void 0 ? oauthScopes === void 0 : !isPermission(entry.permission))) throw new TypeError(`PermDock: operation '${key}' needs a permission, oauthScopes or both`);
|
|
66
|
+
const route = {
|
|
67
|
+
method,
|
|
68
|
+
path,
|
|
69
|
+
...isEntryObject(entry) && entry.operationId !== void 0 ? { operationId: entry.operationId } : {},
|
|
70
|
+
segments: segmentsOf$1(path),
|
|
71
|
+
permission: isEntryObject(entry) ? entry.permission : entry,
|
|
72
|
+
...oauthScopes === void 0 ? {} : { oauthScopes }
|
|
73
|
+
};
|
|
74
|
+
routes.push(route);
|
|
75
|
+
if (isEntryObject(entry) && entry.operationId !== void 0) byId.set(entry.operationId, route);
|
|
76
|
+
}
|
|
77
|
+
const base = segmentsOf$1(options.base ?? "");
|
|
78
|
+
const matchMethod = (upper, path) => {
|
|
79
|
+
const full = segmentsOf$1(path.split("?")[0] ?? "");
|
|
80
|
+
if (base.some((segment, index) => full[index] !== segment)) return;
|
|
81
|
+
const segments = full.slice(base.length);
|
|
82
|
+
let best;
|
|
83
|
+
let bestScore = -1;
|
|
84
|
+
for (const route of routes) {
|
|
85
|
+
if (route.method !== upper) continue;
|
|
86
|
+
const value = score(route, segments);
|
|
87
|
+
if (value > bestScore) {
|
|
88
|
+
best = route;
|
|
89
|
+
bestScore = value;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return best;
|
|
93
|
+
};
|
|
94
|
+
const match = (method, path) => {
|
|
95
|
+
const upper = method.toUpperCase();
|
|
96
|
+
const route = matchMethod(upper, path);
|
|
97
|
+
return route === void 0 && upper === "HEAD" ? matchMethod("GET", path) : route;
|
|
98
|
+
};
|
|
99
|
+
return {
|
|
100
|
+
forRequest(method, path) {
|
|
101
|
+
return match(method, path)?.permission;
|
|
102
|
+
},
|
|
103
|
+
forOperation(id) {
|
|
104
|
+
return byId.get(id)?.permission;
|
|
105
|
+
},
|
|
106
|
+
oauthScopesForRequest(method, path) {
|
|
107
|
+
return match(method, path)?.oauthScopes;
|
|
108
|
+
},
|
|
109
|
+
oauthScopesForOperation(id) {
|
|
110
|
+
return byId.get(id)?.oauthScopes;
|
|
111
|
+
},
|
|
112
|
+
entries() {
|
|
113
|
+
return routes.map((route) => ({
|
|
114
|
+
method: route.method,
|
|
115
|
+
path: route.path,
|
|
116
|
+
...route.permission === void 0 ? {} : { permission: route.permission },
|
|
117
|
+
...route.operationId === void 0 ? {} : { operationId: route.operationId },
|
|
118
|
+
...route.oauthScopes === void 0 ? {} : { oauthScopes: route.oauthScopes }
|
|
119
|
+
}));
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* The operation permissions an OpenAPI document declares: every operation whose
|
|
125
|
+
* `x-permdock-permissions` names exactly one permission of `tree`, keyed by its
|
|
126
|
+
* method, path and `operationId`. An operation naming none, several or an
|
|
127
|
+
* unknown key is left out, so a gate denies it; `onSkip` hears each one with
|
|
128
|
+
* its cause.
|
|
129
|
+
*/
|
|
130
|
+
function operationPermissionsFromOpenApi(document, tree, options = {}) {
|
|
131
|
+
const operations = {};
|
|
132
|
+
const paths = isRecord(document) && isRecord(document["paths"]) ? document["paths"] : {};
|
|
133
|
+
for (const [path, item] of Object.entries(paths)) {
|
|
134
|
+
if (!isRecord(item)) continue;
|
|
135
|
+
for (const [method, operation] of Object.entries(item)) {
|
|
136
|
+
if (!HTTP_METHODS.has(method.toUpperCase()) || !isRecord(operation)) continue;
|
|
137
|
+
const operationId = operation["operationId"];
|
|
138
|
+
const ref = {
|
|
139
|
+
method: method.toUpperCase(),
|
|
140
|
+
path,
|
|
141
|
+
...typeof operationId === "string" ? { operationId } : {}
|
|
142
|
+
};
|
|
143
|
+
const keys = operation["x-permdock-permissions"];
|
|
144
|
+
if (keys === void 0) {
|
|
145
|
+
options.onSkip?.(ref, "no-permission");
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
if (!Array.isArray(keys) || !keys.every((key) => typeof key === "string")) {
|
|
149
|
+
options.onSkip?.(ref, "invalid-extension");
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
152
|
+
const [key] = keys;
|
|
153
|
+
if (key === void 0 || keys.length !== 1) {
|
|
154
|
+
options.onSkip?.(ref, key === void 0 ? "no-permission" : "several-permissions");
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
157
|
+
const permission = findPermission(tree, key);
|
|
158
|
+
if (permission === void 0) {
|
|
159
|
+
options.onSkip?.(ref, "unknown-permission");
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
operations[`${ref.method} ${path}`] = typeof operationId === "string" ? {
|
|
163
|
+
permission,
|
|
164
|
+
operationId
|
|
165
|
+
} : permission;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return operationPermissions(operations, options.base === void 0 ? {} : { base: options.base });
|
|
169
|
+
}
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region src/openapi/coverage.ts
|
|
172
|
+
function segmentsOf(path) {
|
|
173
|
+
return path.split("/").filter((segment) => segment !== "");
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* The template with every `{name}` reduced to `{}`, so parameter names may
|
|
177
|
+
* differ.
|
|
178
|
+
*/
|
|
179
|
+
function shape(path) {
|
|
180
|
+
return segmentsOf(path).map((segment) => segment.startsWith("{") && segment.endsWith("}") ? "{}" : segment).join("/");
|
|
181
|
+
}
|
|
182
|
+
function under(path, prefixes) {
|
|
183
|
+
const segments = shape(path).split("/");
|
|
184
|
+
return prefixes.some((prefix) => {
|
|
185
|
+
return shape(prefix).split("/").every((segment, index) => segments[index] === segment);
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Compares the declared operations with an OpenAPI document: a tenant-path
|
|
190
|
+
* operation with no entry is `undeclared` (a gate denies it), an entry that
|
|
191
|
+
* matches no operation is `stale`. `testOperationCoverage` and `permdock
|
|
192
|
+
* doctor` (PD091) run this one function.
|
|
193
|
+
*/
|
|
194
|
+
function operationCoverage(operations, document, options) {
|
|
195
|
+
const base = shape(options.base ?? "");
|
|
196
|
+
const paths = isRecord(document) && isRecord(document["paths"]) ? document["paths"] : {};
|
|
197
|
+
const inDocument = /* @__PURE__ */ new Map();
|
|
198
|
+
for (const [path, item] of Object.entries(paths)) {
|
|
199
|
+
if (!isRecord(item)) continue;
|
|
200
|
+
const shaped = shape(path);
|
|
201
|
+
const local = base !== "" && shaped.startsWith(`${base}/`) ? shaped.slice(base.length + 1) : shaped;
|
|
202
|
+
for (const method of Object.keys(item)) if (HTTP_METHODS.has(method.toUpperCase())) inDocument.set(`${method.toUpperCase()} ${local}`, `${method.toUpperCase()} ${path}`);
|
|
203
|
+
}
|
|
204
|
+
const declared = new Map(operations.entries().map((entry) => [`${entry.method} ${shape(entry.path)}`, `${entry.method} ${entry.path}`]));
|
|
205
|
+
return {
|
|
206
|
+
undeclared: [...inDocument].filter(([key]) => !declared.has(key) && under(key.slice(key.indexOf(" ") + 1), options.tenantPaths)).map(([, label]) => label),
|
|
207
|
+
stale: [...declared].filter(([key]) => !inDocument.has(key)).map(([, label]) => label)
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
//#endregion
|
|
211
|
+
export { operationPermissionsFromOpenApi as i, OPERATION_SKIP_CAUSES as n, operationPermissions as r, operationCoverage as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, Xn as Denial, Yn as Decision, _t as TokenSigner, qt as Instant, sn as AuthEvent, vt as TokenVerifier, yr as Principal } from "./policy-types-
|
|
2
|
-
import {
|
|
3
|
-
import { _ as PrincipalSource, a as PermDock, n as DecideOptions, o as PermDockOptions } from "./permdock-
|
|
4
|
-
import { m as ApprovalStore } from "./types-
|
|
5
|
-
import { a as AutomationSource } from "./automation-
|
|
6
|
-
import { n as ApprovalWaiter } from "./waiter-
|
|
7
|
-
import { c as RunResource, i as RunBinding, r as RunAutomation } from "./run-ticket-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, Xn as Denial, Yn as Decision, _t as TokenSigner, qt as Instant, sn as AuthEvent, vt as TokenVerifier, yr as Principal } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
+
import { _ as PrincipalSource, a as PermDock, n as DecideOptions, o as PermDockOptions } from "./permdock-BaB-KQqn.js";
|
|
4
|
+
import { m as ApprovalStore } from "./types-ZfjQB0KC.js";
|
|
5
|
+
import { a as AutomationSource } from "./automation-B20_8UoT.js";
|
|
6
|
+
import { n as ApprovalWaiter } from "./waiter-cbK1CBhT.js";
|
|
7
|
+
import { c as RunResource, i as RunBinding, r as RunAutomation } from "./run-ticket-Dulj4RQk.js";
|
|
8
8
|
//#region src/workflow/create.d.ts
|
|
9
9
|
type WorkflowPermDockOptions = PermDockOptions & {
|
|
10
10
|
/** Signs the run tickets `start` mints. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as composeWraps } from "./wrap-
|
|
6
|
-
import {
|
|
7
|
-
import { n as createAgentKernel } from "./kernel-
|
|
3
|
+
import { m as deniedFor } from "./from-snapshot-oR_N97dM.js";
|
|
4
|
+
import { r as withApp } from "./app-DIvM65Mv.js";
|
|
5
|
+
import { t as composeWraps } from "./wrap-BKU5Arsu.js";
|
|
6
|
+
import { t as instanceOptions } from "./instance-options-URVwqpMW.js";
|
|
7
|
+
import { n as createAgentKernel } from "./kernel-NmxiWII2.js";
|
|
8
8
|
//#region src/agent/create.ts
|
|
9
9
|
function modelRow(modelId) {
|
|
10
10
|
return { id: modelId };
|
|
@@ -3,15 +3,16 @@ import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
|
3
3
|
import { n as problemDetails } from "./problem-details-CLDgX1KV.js";
|
|
4
4
|
import { c as listPermissions } from "./permission-registry-B8tYxPIt.js";
|
|
5
5
|
import { n as resourceRef } from "./resource-ref-CaS9yVPi.js";
|
|
6
|
-
import { i as challengeScope
|
|
7
|
-
import { r as
|
|
8
|
-
import { a as decisionResponse, c as problemFromDecision, d as unauthenticatedProblem, s as notFoundProblem, t as ANONYMOUS } from "./problem-BWP1l86g.js";
|
|
9
|
-
import { n as resolveOrNull } from "./build-instance-DaBdCRiz.js";
|
|
10
|
-
import { t as LOAD_FAILED } from "./decision-CaG5_eNJ.js";
|
|
11
|
-
import { l as InvalidSignatureError, n as applyApprovalResume, o as evaluationsHandler } from "./evaluations-CNMVJVD6.js";
|
|
6
|
+
import { i as challengeScope } from "./permdock-B5LyNVgn.js";
|
|
7
|
+
import { r as withApp } from "./app-DIvM65Mv.js";
|
|
12
8
|
import { n as tenantScope, t as actorFrom } from "./adapter-context-OHikyRqV.js";
|
|
13
|
-
import { n as
|
|
9
|
+
import { n as resolveOrNull } from "./build-instance-B0vsViF5.js";
|
|
10
|
+
import { t as LOAD_FAILED } from "./decision-CaG5_eNJ.js";
|
|
11
|
+
import { a as decisionResponse, c as problemFromDecision, d as unauthenticatedProblem, s as notFoundProblem, t as ANONYMOUS } from "./problem-BWP1l86g.js";
|
|
12
|
+
import { f as InvalidSignatureError, n as applyApprovalResume, o as evaluationsHandler } from "./evaluations-BzTDWO4m.js";
|
|
13
|
+
import { n as requestContext, t as buildReportingInstance } from "./request-context-5gl_oxO1.js";
|
|
14
14
|
import { n as decideSet, r as permissionList } from "./decide-set-DXEPepY1.js";
|
|
15
|
+
import { r as hasCredentials } from "./http-DKLXrFGk.js";
|
|
15
16
|
//#region src/server/kernel-problems.ts
|
|
16
17
|
const NOT_DELEGATED = freezeDeep({
|
|
17
18
|
outcome: "denied",
|
|
@@ -304,7 +305,8 @@ function createPermDock(policy, given) {
|
|
|
304
305
|
const getSnapshot = async (request, query = {}) => {
|
|
305
306
|
return (await getPermDock(request, query.tenant === void 0 ? void 0 : { tenant: query.tenant })).snapshot(compact({
|
|
306
307
|
include: query.include,
|
|
307
|
-
tenants: query.tenants
|
|
308
|
+
tenants: query.tenants,
|
|
309
|
+
omitAssignable: query.omitAssignable
|
|
308
310
|
}));
|
|
309
311
|
};
|
|
310
312
|
const deps = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $n as DeniedDecision, D as Policy, Jn as ApprovalRequiredDecision, N as PolicyVocabulary, tr as GrantedDecision, xr as Subject, yr as Principal } from "./policy-types-
|
|
2
|
-
import { t as Operation } from "./operations-
|
|
3
|
-
import { _ as PrincipalSource, a as PermDock, o as PermDockOptions } from "./permdock-
|
|
4
|
-
import { m as ApprovalStore, p as ApprovalStatus } from "./types-
|
|
1
|
+
import { $n as DeniedDecision, D as Policy, Jn as ApprovalRequiredDecision, N as PolicyVocabulary, tr as GrantedDecision, xr as Subject, yr as Principal } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { t as Operation } from "./operations-BMPx7HyO.js";
|
|
3
|
+
import { _ as PrincipalSource, a as PermDock, o as PermDockOptions } from "./permdock-BaB-KQqn.js";
|
|
4
|
+
import { m as ApprovalStore, p as ApprovalStatus } from "./types-ZfjQB0KC.js";
|
|
5
5
|
import { n as ApprovalErrorCode } from "./errors-CHwoRRpB.js";
|
|
6
|
-
import { t as ApprovalPrompt } from "./approval-prompt-
|
|
6
|
+
import { t as ApprovalPrompt } from "./approval-prompt-2hTqo6IM.js";
|
|
7
7
|
//#region src/chat/subject.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* The platform user behind a chat message or action. Fill it only from an event
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, Yn as Decision, hr as Delegation, xr as Subject, yr as Principal } from "./policy-types-
|
|
2
|
-
import {
|
|
3
|
-
import { t as Operation } from "./operations-
|
|
4
|
-
import { a as PermDock } from "./permdock-
|
|
5
|
-
import { m as ApprovalStore } from "./types-
|
|
6
|
-
import { t as InstanceOptions } from "./instance-options-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, Yn as Decision, hr as Delegation, xr as Subject, 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 { a as PermDock } from "./permdock-BaB-KQqn.js";
|
|
5
|
+
import { m as ApprovalStore } from "./types-ZfjQB0KC.js";
|
|
6
|
+
import { t as InstanceOptions } from "./instance-options-C6gEDOts.js";
|
|
7
7
|
import { t as RequestContext } from "./request-context-C2_1lchh.js";
|
|
8
|
-
import { n as PermDockWrap } from "./wrap-
|
|
9
|
-
import { o as OtelWrap } from "./types-
|
|
10
|
-
import { t as DeniedText } from "./denied-text-
|
|
8
|
+
import { n as PermDockWrap } from "./wrap-B-k2qHJx.js";
|
|
9
|
+
import { o as OtelWrap } from "./types-_pi9kxS2.js";
|
|
10
|
+
import { t as DeniedText } from "./denied-text-BXQkWU7d.js";
|
|
11
11
|
//#region src/agent/step-up.d.ts
|
|
12
12
|
/**
|
|
13
13
|
* What the user can do to lift a denial: authenticate again with the `acr` and
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { n as isReadonlyArray, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { a as ownRecord } from "./paths-CUvURzHp.js";
|
|
4
|
-
import { a as isId, r as idList } from "./expiry-6XByK0dm.js";
|
|
5
|
-
import { n as internalsOf } from "./internals-B3IgHrvo.js";
|
|
6
4
|
import { c as listPermissions, h as formerKeys } from "./permission-registry-B8tYxPIt.js";
|
|
5
|
+
import { o as flattenGrantee } from "./grantee-Dke-9rd1.js";
|
|
7
6
|
import { g as secondsOf, l as isRfc3339, m as rfc3339, p as nowSeconds } from "./time-nR1JesoH.js";
|
|
7
|
+
import { r as isId, t as idList } from "./ids-DzhJaCUj.js";
|
|
8
|
+
import { o as coveredByDelegation } from "./condition-evaluate-bVVRSdzq.js";
|
|
8
9
|
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
9
10
|
import { r as sha256Digest } from "./sha256-C-4WXKIu.js";
|
|
10
|
-
import { n as
|
|
11
|
-
import { o as flattenGrantee } from "./grantee-Dke-9rd1.js";
|
|
11
|
+
import { n as internalsOf } from "./internals-B3IgHrvo.js";
|
|
12
12
|
import { t as anonymousSubject } from "./subject-C7RddW0G.js";
|
|
13
13
|
//#region src/core/credential.ts
|
|
14
14
|
/**
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { a as ownRecord } from "./paths-CUvURzHp.js";
|
|
3
|
-
import { m as annotationsFor, n as findPermission } from "./permission-registry-B8tYxPIt.js";
|
|
4
2
|
import { n as isThenable } from "./thenable-BNSM1U2R.js";
|
|
5
|
-
import { f as nowMillis,
|
|
3
|
+
import { f as nowMillis, u as isoAt } from "./time-nR1JesoH.js";
|
|
6
4
|
import { t as bytesToBase64Url } from "./sha256-C-4WXKIu.js";
|
|
7
|
-
import { n as parseSupportSession } from "./support-session-BsmPCbz8.js";
|
|
8
5
|
import { t as anonymousSubject } from "./subject-C7RddW0G.js";
|
|
9
6
|
import { c as credentialEvent } from "./sink-D9_vh372.js";
|
|
10
|
-
import { i as credentialTenant, n as credentialPolicyViolation, o as isFeedId, r as credentialSubject, s as parseCredential } from "./credential-
|
|
7
|
+
import { i as credentialTenant, n as credentialPolicyViolation, o as isFeedId, r as credentialSubject, s as parseCredential } from "./credential-Bap3HClV.js";
|
|
11
8
|
//#region src/server/credentials.ts
|
|
12
9
|
const PREFIX = "pdk_";
|
|
13
10
|
const ID = /^[\w-]{1,128}$/u;
|
|
@@ -310,144 +307,4 @@ async function subjectFromApiKey(key, options) {
|
|
|
310
307
|
return subject;
|
|
311
308
|
}
|
|
312
309
|
//#endregion
|
|
313
|
-
|
|
314
|
-
const SUPPORT_SESSION_TYP = "vnd.permdock.support-session+jwt";
|
|
315
|
-
/**
|
|
316
|
-
* Signs a granted `SupportSession` as a `vnd.permdock.support-session+jwt`
|
|
317
|
-
* (`sub` the viewed principal, `act` the support actor, `jti` the session id)
|
|
318
|
-
* that expires with the session. Throws a `TypeError` for a record
|
|
319
|
-
* `parseSupportSession` refuses.
|
|
320
|
-
*/
|
|
321
|
-
function signSupportSession(session, signer, options = {}) {
|
|
322
|
-
const parsed = parseSupportSession(session);
|
|
323
|
-
if (parsed === void 0) throw new TypeError("PermDock: invalid support session");
|
|
324
|
-
return signer.sign(compact({
|
|
325
|
-
v: 1,
|
|
326
|
-
sub: parsed.principal,
|
|
327
|
-
act: {
|
|
328
|
-
sub: parsed.actor,
|
|
329
|
-
kind: "support"
|
|
330
|
-
},
|
|
331
|
-
tenant: parsed.tenant,
|
|
332
|
-
reason: parsed.reason,
|
|
333
|
-
permissions: parsed.permissions,
|
|
334
|
-
approved_by: parsed.approvedBy,
|
|
335
|
-
reference: parsed.reference
|
|
336
|
-
}), compact({
|
|
337
|
-
typ: SUPPORT_SESSION_TYP,
|
|
338
|
-
audience: options.audience,
|
|
339
|
-
expiresAt: secondsOf(parsed.expiresAt),
|
|
340
|
-
issuedAt: secondsOf(parsed.startedAt),
|
|
341
|
-
jti: parsed.id
|
|
342
|
-
}));
|
|
343
|
-
}
|
|
344
|
-
function sessionOf(claims) {
|
|
345
|
-
const record = ownRecord(claims);
|
|
346
|
-
const act = ownRecord(record?.["act"]);
|
|
347
|
-
const { iat, exp } = record ?? {};
|
|
348
|
-
if (record === void 0 || act === void 0 || act["kind"] !== "support" || act["act"] !== void 0 || typeof iat !== "number" || typeof exp !== "number" || !Number.isSafeInteger(iat) || !Number.isSafeInteger(exp)) return;
|
|
349
|
-
return parseSupportSession({
|
|
350
|
-
v: record["v"],
|
|
351
|
-
id: record["jti"],
|
|
352
|
-
principal: record["sub"],
|
|
353
|
-
actor: act["sub"],
|
|
354
|
-
tenant: record["tenant"],
|
|
355
|
-
reason: record["reason"],
|
|
356
|
-
permissions: record["permissions"],
|
|
357
|
-
startedAt: rfc3339(iat),
|
|
358
|
-
expiresAt: rfc3339(exp),
|
|
359
|
-
approvedBy: record["approved_by"],
|
|
360
|
-
reference: record["reference"]
|
|
361
|
-
});
|
|
362
|
-
}
|
|
363
|
-
async function load(principals, id, tenant) {
|
|
364
|
-
try {
|
|
365
|
-
const loaded = await principals.principal(id, { tenant });
|
|
366
|
-
const record = ownRecord(loaded);
|
|
367
|
-
if (record === void 0 || record["id"] !== id) return;
|
|
368
|
-
return loaded;
|
|
369
|
-
} catch {
|
|
370
|
-
return;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
async function ended(sessions, id) {
|
|
374
|
-
if (sessions === void 0) return false;
|
|
375
|
-
try {
|
|
376
|
-
const live = ownRecord(await sessions.session(id));
|
|
377
|
-
return live === void 0 || live["id"] !== id || live["ended"] === true;
|
|
378
|
-
} catch {
|
|
379
|
-
return true;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
* Resolves a `vnd.permdock.support-session+jwt` into the subject each request
|
|
384
|
-
* of the session acts as: the viewed principal loaded live, a `support` actor,
|
|
385
|
-
* the session's permissions as the delegation and `context.supportSession`. The
|
|
386
|
-
* actor must still exist. Every failure is the anonymous subject, never a
|
|
387
|
-
* throw.
|
|
388
|
-
*/
|
|
389
|
-
async function subjectFromSupportSession(token, options) {
|
|
390
|
-
if (typeof token !== "string" || token.length === 0) return anonymousSubject();
|
|
391
|
-
const deny = (cause) => {
|
|
392
|
-
try {
|
|
393
|
-
options.onAuth?.(compact({
|
|
394
|
-
reason: "invalid-token",
|
|
395
|
-
cause,
|
|
396
|
-
source: "support-session",
|
|
397
|
-
typ: SUPPORT_SESSION_TYP,
|
|
398
|
-
issuer: options.issuer,
|
|
399
|
-
requestId: options.requestId
|
|
400
|
-
}));
|
|
401
|
-
} catch {}
|
|
402
|
-
return anonymousSubject();
|
|
403
|
-
};
|
|
404
|
-
let session;
|
|
405
|
-
try {
|
|
406
|
-
const verified = await options.verifier.verify(token, compact({
|
|
407
|
-
typ: SUPPORT_SESSION_TYP,
|
|
408
|
-
audience: options.audience,
|
|
409
|
-
issuer: options.issuer,
|
|
410
|
-
clockTolerance: options.clockTolerance
|
|
411
|
-
}));
|
|
412
|
-
if (!verified.ok) return deny(verified.cause);
|
|
413
|
-
if (verified.header.typ?.toLowerCase().replace(/^application\//u, "") !== SUPPORT_SESSION_TYP) return deny("wrong-token-type");
|
|
414
|
-
session = sessionOf(verified.claims);
|
|
415
|
-
} catch {
|
|
416
|
-
return deny("malformed");
|
|
417
|
-
}
|
|
418
|
-
if (session === void 0) return deny("invalid-claims");
|
|
419
|
-
if ((secondsOf(session.expiresAt) ?? 0) <= epochSeconds()) return deny("expired");
|
|
420
|
-
if (await ended(options.sessions, session.id)) return deny("session-ended");
|
|
421
|
-
if (await load(options.principals, session.actor, session.tenant) === void 0) return deny("actor-unavailable");
|
|
422
|
-
const principal = await load(options.principals, session.principal, session.tenant);
|
|
423
|
-
if (principal === void 0) return deny("principal-unavailable");
|
|
424
|
-
const scopes = [];
|
|
425
|
-
let readOnly = true;
|
|
426
|
-
for (const key of session.permissions) {
|
|
427
|
-
const leaf = findPermission(options.permissions, key);
|
|
428
|
-
if (leaf === void 0) return deny("invalid-claims");
|
|
429
|
-
scopes.push(leaf.scope);
|
|
430
|
-
readOnly &&= annotationsFor(leaf).readOnlyHint;
|
|
431
|
-
}
|
|
432
|
-
return Object.freeze(compact({
|
|
433
|
-
principal: Object.freeze({
|
|
434
|
-
...principal,
|
|
435
|
-
tenant: session.tenant
|
|
436
|
-
}),
|
|
437
|
-
actor: Object.freeze(compact({
|
|
438
|
-
id: session.actor,
|
|
439
|
-
kind: "support",
|
|
440
|
-
readOnly: readOnly || void 0
|
|
441
|
-
})),
|
|
442
|
-
delegation: Object.freeze({ scopes }),
|
|
443
|
-
context: Object.freeze({ supportSession: Object.freeze(compact({
|
|
444
|
-
id: session.id,
|
|
445
|
-
reason: session.reason,
|
|
446
|
-
approvedBy: session.approvedBy,
|
|
447
|
-
reference: session.reference
|
|
448
|
-
})) }),
|
|
449
|
-
expiresAt: secondsOf(session.expiresAt)
|
|
450
|
-
}));
|
|
451
|
-
}
|
|
452
|
-
//#endregion
|
|
453
|
-
export { generateFeedKey as a, parseApiKey as c, generateApiKey as i, parseFeedKey as l, subjectFromSupportSession as n, hashApiKey as o, apiKeyVerifier as r, memoryCredentialStore as s, signSupportSession as t, subjectFromApiKey as u };
|
|
310
|
+
export { memoryCredentialStore as a, subjectFromApiKey as c, hashApiKey as i, generateApiKey as n, parseApiKey as o, generateFeedKey as r, parseFeedKey as s, apiKeyVerifier as t };
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { G as CredentialVerifier, Mt as Credential, Pt as CredentialKind, X as DecisionSink, jt as ApiKeyPrincipal, lt as SettingsSource, sn as AuthEvent, xr as Subject } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { E as PermissionTree } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
+
import { _ as PrincipalSource } from "./permdock-BaB-KQqn.js";
|
|
4
|
+
//#region src/server/credentials.d.ts
|
|
5
|
+
/** `on('auth')` causes for an API key that resolves to the anonymous subject. */
|
|
6
|
+
type ApiKeyFailureCause = "malformed" | "unknown-credential" | "invalid-claims" | "expired" | "credential-policy" | "credential-revoked" | "owner-unavailable";
|
|
7
|
+
/** An opaque key split at its last `_`: `pdk_<id>_<secret><checksum>`. */
|
|
8
|
+
type ApiKeyParts = {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly secret: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* What an application stores per key: the credential and the key's hash, never
|
|
14
|
+
* the key.
|
|
15
|
+
*/
|
|
16
|
+
type StoredCredential = {
|
|
17
|
+
readonly credential: Credential;
|
|
18
|
+
readonly hash: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Splits `pdk_<id>_<secret><checksum>`: `id` is 1 to 128 of `A-Z a-z 0-9 _ -`,
|
|
22
|
+
* the secret 43 base62 characters and the checksum the 6 base62 characters of
|
|
23
|
+
* the CRC-32 of everything before it. Anything else, including a checksum that
|
|
24
|
+
* does not match, is `undefined`.
|
|
25
|
+
*/
|
|
26
|
+
declare function parseApiKey(key: unknown): ApiKeyParts | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Splits `pdfeed_<id>_<secret><checksum>`. `id` is `isFeedId`, the secret is 26
|
|
29
|
+
* lowercase base32 characters and the checksum is 6 more. A checksum that does
|
|
30
|
+
* not match is `undefined`.
|
|
31
|
+
*/
|
|
32
|
+
declare function parseFeedKey(key: unknown): ApiKeyParts | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* A fresh `pdfeed_<id>_<secret><checksum>`: 26 lowercase base32 characters (130
|
|
35
|
+
* bits) and a 6-character CRC-32 checksum. The whole key is lowercase.
|
|
36
|
+
*/
|
|
37
|
+
declare function generateFeedKey(id: string): string;
|
|
38
|
+
/**
|
|
39
|
+
* A fresh `pdk_<id>_<secret><checksum>`: a 43-character base62 secret (about
|
|
40
|
+
* 256 bits) and a 6-character CRC-32 checksum, so a secret scanner can tell a
|
|
41
|
+
* real key from a lookalike without calling the issuer.
|
|
42
|
+
*/
|
|
43
|
+
declare function generateApiKey(id: string): string;
|
|
44
|
+
/** base64url SHA-256 of the whole key, the value to store and compare. */
|
|
45
|
+
declare function hashApiKey(key: string): Promise<string>;
|
|
46
|
+
/**
|
|
47
|
+
* A `CredentialVerifier` over the application's own table: `find` looks a key
|
|
48
|
+
* up by the id in it, and the key's hash is compared in constant time. A record
|
|
49
|
+
* that is not a valid v1 credential, or whose id is not the key's, verifies to
|
|
50
|
+
* `null`. A throwing `find` propagates, so the resolver denies with
|
|
51
|
+
* `source-threw`.
|
|
52
|
+
*/
|
|
53
|
+
declare function apiKeyVerifier(options: {
|
|
54
|
+
readonly find: (id: string) => StoredCredential | null | undefined | Promise<StoredCredential | null | undefined>;
|
|
55
|
+
/** Passed through as the verifier's `touch`, for a `lastUsedAt` column. */
|
|
56
|
+
readonly touch?: CredentialVerifier["touch"];
|
|
57
|
+
}): CredentialVerifier;
|
|
58
|
+
type MemoryCredentialStore = CredentialVerifier & {
|
|
59
|
+
/** Stores `credential` and returns its key; the key is never stored. */
|
|
60
|
+
issue: (credential: Credential) => Promise<string>;
|
|
61
|
+
/** A new secret for the same id; the old key stops verifying at once. */
|
|
62
|
+
rotate: (id: string) => Promise<string | undefined>;
|
|
63
|
+
/** `true` when a credential was removed. */
|
|
64
|
+
revoke: (id: string) => boolean;
|
|
65
|
+
list: () => readonly Credential[];
|
|
66
|
+
/** When `touch` last recorded a use of `id`, as RFC 3339. */
|
|
67
|
+
lastUsedAt: (id: string) => string | undefined;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* In-process credentials for tests and single-replica apps. `issue`, `rotate`
|
|
71
|
+
* and `revoke` write `credential` events to `sink` when one is given.
|
|
72
|
+
*/
|
|
73
|
+
declare function memoryCredentialStore(options?: {
|
|
74
|
+
readonly sink?: DecisionSink;
|
|
75
|
+
readonly source?: string;
|
|
76
|
+
}): MemoryCredentialStore;
|
|
77
|
+
type ApiKeySubjectOptions = {
|
|
78
|
+
readonly verifier: CredentialVerifier;
|
|
79
|
+
/**
|
|
80
|
+
* The definitions, to turn the credential's permission keys into its
|
|
81
|
+
* delegation.
|
|
82
|
+
*/
|
|
83
|
+
readonly permissions: PermissionTree;
|
|
84
|
+
/**
|
|
85
|
+
* Loads the live owner of a user-bound key: roles and memberships as of this
|
|
86
|
+
* request, asked with the key's tenant. `null` (a deleted or suspended user)
|
|
87
|
+
* is anonymous with `owner-unavailable`, and a throw is `source-threw`.
|
|
88
|
+
* Without it the owner is `{ id, kind: 'user' }` and its rights come from the
|
|
89
|
+
* `memberships` source passed to `createPermDock`.
|
|
90
|
+
*/
|
|
91
|
+
readonly principals?: PrincipalSource;
|
|
92
|
+
/**
|
|
93
|
+
* The tenant the request acts in: a user key is held to its owner's
|
|
94
|
+
* memberships there.
|
|
95
|
+
*/
|
|
96
|
+
readonly tenant?: string;
|
|
97
|
+
/** `true` when the application revoked the credential id; a throw denies. */
|
|
98
|
+
readonly revoked?: (id: string) => boolean | Promise<boolean>;
|
|
99
|
+
/**
|
|
100
|
+
* The tenant `credentials` policy, checked on every use so a tightened policy
|
|
101
|
+
* reaches existing keys: a service key's own tenant, a user key's the
|
|
102
|
+
* `tenant` the resolver is called with. A throw denies.
|
|
103
|
+
*/
|
|
104
|
+
readonly settings?: SettingsSource;
|
|
105
|
+
/** Receives a `credential` event with operation `used` for sampled uses. */
|
|
106
|
+
readonly sink?: DecisionSink;
|
|
107
|
+
/** Fraction of uses reported to `sink`, in `(0, 1]`; defaults to 1. */
|
|
108
|
+
readonly sample?: number;
|
|
109
|
+
/** The `source` of `used` events; defaults to `permdock`. */
|
|
110
|
+
readonly source?: string;
|
|
111
|
+
readonly onAuth?: (event: AuthEvent) => void;
|
|
112
|
+
readonly requestId?: string;
|
|
113
|
+
/** Accept only these credential kinds. A key of another kind is anonymous. */
|
|
114
|
+
readonly kinds?: readonly CredentialKind[];
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Resolves an opaque API key (`pdk_<id>_<secret>`) into the subject its
|
|
118
|
+
* credential acts as. Every failure (a malformed or unknown key, a record that
|
|
119
|
+
* is not a valid credential, expiry, a tenant policy the key breaks, a revoked
|
|
120
|
+
* id, a missing owner, a throwing verifier, source or callback) is the
|
|
121
|
+
* anonymous subject, never a throw.
|
|
122
|
+
*/
|
|
123
|
+
declare function subjectFromApiKey(key: string | undefined | null, options: ApiKeySubjectOptions): Promise<Subject<ApiKeyPrincipal>>;
|
|
124
|
+
//#endregion
|
|
125
|
+
export { StoredCredential as a, generateFeedKey as c, parseApiKey as d, parseFeedKey as f, MemoryCredentialStore as i, hashApiKey as l, ApiKeyParts as n, apiKeyVerifier as o, subjectFromApiKey as p, ApiKeySubjectOptions as r, generateApiKey as s, ApiKeyFailureCause as t, memoryCredentialStore as u };
|
package/dist/delivery/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { dn as DeliveryChannel, hn as EmailCategory, pn as DeliveryFailureCause } from "../policy-types-
|
|
2
|
-
import { i as approvalUrlFor, n as ApprovalUrl, r as approvalPrompt, t as ApprovalPrompt } from "../approval-prompt-
|
|
3
|
-
import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, d as EmailTransport, f as EmailUnsubscribe, g as TransportMessages, h as TransportItem, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, n as ChatTransport, o as DeliveryResult, p as OutgoingEmail, r as DeliverOptions, s as DeliveryTarget, t as ChatMessage, u as EmailMessage, v as WebhookMessage, y as WebhookTransport } from "../types-
|
|
4
|
-
import { C as audience, S as SubscriberEvent, _ as ParseConnectorResult, a as DeliveryPermDock, b as Audience, c as MemoryDelivery, d as memoryDeliveryTransport, f as CONNECTOR_SCHEMA, g as ConnectorKind, h as ConnectorIssue, i as isDeliveryTarget, l as MemoryDeliveryTransport, m as Connector, n as webhookTransport, o as DeliveryPermDockOptions, p as CONNECTOR_KINDS, r as isAddrSpec, s as createPermDock, t as WebhookTransportOptions, u as MemoryDeliveryTransportOptions, v as SiemDestination, w as subscribersFor, x as AudienceOptions, y as parseConnector } from "../index-
|
|
1
|
+
import { dn as DeliveryChannel, hn as EmailCategory, pn as DeliveryFailureCause } from "../policy-types-rNfz7t0M.js";
|
|
2
|
+
import { i as approvalUrlFor, n as ApprovalUrl, r as approvalPrompt, t as ApprovalPrompt } from "../approval-prompt-2hTqo6IM.js";
|
|
3
|
+
import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, d as EmailTransport, f as EmailUnsubscribe, g as TransportMessages, h as TransportItem, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, n as ChatTransport, o as DeliveryResult, p as OutgoingEmail, r as DeliverOptions, s as DeliveryTarget, t as ChatMessage, u as EmailMessage, v as WebhookMessage, y as WebhookTransport } from "../types-B9F0EZAF.js";
|
|
4
|
+
import { C as audience, S as SubscriberEvent, _ as ParseConnectorResult, a as DeliveryPermDock, b as Audience, c as MemoryDelivery, d as memoryDeliveryTransport, f as CONNECTOR_SCHEMA, g as ConnectorKind, h as ConnectorIssue, i as isDeliveryTarget, l as MemoryDeliveryTransport, m as Connector, n as webhookTransport, o as DeliveryPermDockOptions, p as CONNECTOR_KINDS, r as isAddrSpec, s as createPermDock, t as WebhookTransportOptions, u as MemoryDeliveryTransportOptions, v as SiemDestination, w as subscribersFor, x as AudienceOptions, y as parseConnector } from "../index-iIsqXFVu.js";
|
|
5
5
|
export { type ApprovalPrompt, type ApprovalUrl, type Audience, type AudienceOptions, CONNECTOR_KINDS, CONNECTOR_SCHEMA, type ChatMessage, type ChatTransport, type Connector, type ConnectorIssue, type ConnectorKind, type DeliverOptions, type DeliveryChannel, type DeliveryFailureCause, type DeliveryMessages, type DeliveryPermDock, type DeliveryPermDockOptions, type DeliveryReport, type DeliveryResult, type DeliveryTarget, type DeliveryTransport, type DeliveryTransports, type EmailCategory, type EmailMessage, type EmailTransport, type EmailUnsubscribe, type MemoryDelivery, type MemoryDeliveryTransport, type MemoryDeliveryTransportOptions, type OutgoingEmail, type ParseConnectorResult, type Recipient, type SiemDestination, type SubscriberEvent, type TransportItem, type TransportMessages, type TransportOptions, type WebhookMessage, type WebhookTransport, type WebhookTransportOptions, approvalPrompt, approvalUrlFor, audience, createPermDock, isAddrSpec, isDeliveryTarget, memoryDeliveryTransport, parseConnector, subscribersFor, webhookTransport };
|
package/dist/delivery/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as approvalUrlFor, t as approvalPrompt } from "../approval-prompt-B8hQY69x.js";
|
|
2
|
-
import { n as subscribersFor, t as audience } from "../audience-
|
|
2
|
+
import { n as subscribersFor, t as audience } from "../audience-5Xx1hdIv.js";
|
|
3
3
|
import { t as CONNECTOR_SCHEMA } from "../connector-schema-CYLQNMYq.js";
|
|
4
4
|
import { a as parseConnector, i as CONNECTOR_KINDS, n as createPermDock, r as memoryDeliveryTransport, t as webhookTransport } from "../delivery-BupfvJIV.js";
|
|
5
5
|
import { i as isDeliveryTarget, n as isAddrSpec } from "../target-qdEAnnhU.js";
|