@brianveltman/sonatype-mcp
Version:
Model Context Protocol server for Sonatype Nexus Repository Manager
45 lines • 1.58 kB
TypeScript
import { FirewallClient } from './firewall-client.js';
export interface PolicyViolation {
policyId?: string;
policyName?: string;
threatLevel?: number;
constraintViolations?: any[];
}
export interface QuarantinedComponent {
packageUrl?: string;
hash?: string;
componentIdentifier?: {
format?: string;
coordinates?: Record<string, any>;
};
displayName?: string;
quarantineDate?: string;
policyViolations?: PolicyViolation[];
quarantineId?: string;
}
export interface RepositoryQuarantineSummary {
repository?: string;
componentsInQuarantine?: number;
components?: QuarantinedComponent[];
}
export interface QuarantineResponse {
repositoryQuarantineSummary?: RepositoryQuarantineSummary[];
}
export interface ReleaseQuarantineRequest {
comment?: string;
}
export interface ReleaseQuarantineResponse {
quarantineId?: string;
component?: QuarantinedComponent;
waivedPolicyViolations?: PolicyViolation[];
releaseDate?: string;
}
export declare class QuarantineService {
private firewallClient;
constructor(firewallClient: FirewallClient);
getQuarantinedComponents(purl?: string): Promise<QuarantineResponse>;
releaseFromQuarantine(quarantineId: string, request?: ReleaseQuarantineRequest): Promise<ReleaseQuarantineResponse>;
getQuarantinedComponentsByRepository(repositoryName: string): Promise<RepositoryQuarantineSummary | null>;
searchQuarantinedComponents(purlPattern: string): Promise<QuarantinedComponent[]>;
}
//# sourceMappingURL=quarantine.d.ts.map