mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Consume the safe chain proxy min package age reporting webhook
This commit is contained in:
parent
127447d425
commit
ceefaabe57
6 changed files with 115 additions and 43 deletions
|
|
@ -7,16 +7,22 @@ import { getCombinedCaBundlePath } from "./certBundle.js";
|
|||
* @typedef {Object} MalwareBlockedEvent
|
||||
* @prop {string} packageName
|
||||
* @prop {string} packageVersion
|
||||
*
|
||||
* @typedef {{ malwareBlocked: [MalwareBlockedEvent] }} ProxyServerEvents
|
||||
*
|
||||
*
|
||||
* @typedef {Object} MinPackageAgeSuppressionEvent
|
||||
* @prop {string} packageName
|
||||
* @prop {string[]} packageVersions
|
||||
*
|
||||
* @typedef {{
|
||||
* malwareBlocked: [MalwareBlockedEvent],
|
||||
* minPackageAgeVersionsSuppressed: [MinPackageAgeSuppressionEvent]
|
||||
* }} ProxyServerEvents
|
||||
*
|
||||
* @import { EventEmitter } from "node:stream"
|
||||
* @typedef {EventEmitter<ProxyServerEvents> & {
|
||||
* startServer: () => Promise<void>
|
||||
* stopServer: () => Promise<void>
|
||||
* getServerPort: () => Number | null
|
||||
* getCaCert: () => string | null
|
||||
* hasSuppressedVersions: () => boolean
|
||||
* }} SafeChainProxy
|
||||
*
|
||||
* @typedef {Object} ProxySettings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue