auditjs
Version:
Audit dependencies to identify known vulnerabilities and maintenance problems
69 lines (68 loc) • 1.93 kB
TypeScript
interface PolicyDataJSON {
[key: string]: unknown;
}
interface SecurityDataJSON {
[key: string]: unknown;
}
interface LicenseDataJSON {
declaredLicenses: unknown;
observedLicenses: unknown;
overriddenLicenses: unknown;
status: string;
}
interface ComponentIdentifierJSON {
format: string;
coordinates: Record<string, unknown>;
}
interface ComponentJSON {
packageUrl: string;
hash: string;
componentIdentifier: ComponentIdentifierJSON;
proprietary: boolean;
}
interface IqServerResultJSON {
component: ComponentJSON;
matchState: string;
catalogDate: string;
licenseData: LicenseDataJSON;
securityData: SecurityDataJSON;
policyData: PolicyDataJSON;
}
export declare class IqServerResult {
readonly component: Component;
readonly matchState: string;
readonly catalogDate: string;
readonly licenseData: LicenseData;
readonly securityData: SecurityData;
readonly policyData: PolicyData;
constructor(result: IqServerResultJSON);
toAuditLog(): string;
}
declare class Component {
readonly packageUrl: string;
readonly hash: string;
readonly componentIdentifier: ComponentIdentifier;
readonly proprietary: boolean;
constructor(component: ComponentJSON);
}
declare class ComponentIdentifier {
readonly format: string;
readonly coordinates: Record<string, unknown>;
constructor(componentIdentifier: ComponentIdentifierJSON);
}
declare class LicenseData {
readonly declaredLicenses: unknown;
readonly observedLicenses: unknown;
readonly overriddenLicenses: unknown;
readonly status: string;
constructor(licenseData: LicenseDataJSON);
}
declare class SecurityData {
readonly securityData: SecurityDataJSON;
constructor(securityData: SecurityDataJSON);
}
declare class PolicyData {
readonly policyData: PolicyDataJSON;
constructor(policyData: PolicyDataJSON);
}
export {};