UNPKG

@brianveltman/sonatype-mcp

Version:

Model Context Protocol server for Sonatype Nexus Repository Manager

54 lines 1.59 kB
import { NexusClient } from './nexus-client.js'; export interface Component { id: string; repository: string; format: string; group?: string; name: string; version: string; assets: Asset[]; } export interface Asset { id: string; path: string; downloadUrl: string; format: string; checksum: { sha1: string; sha256?: string; md5?: string; }; contentType: string; lastModified: string; blobCreated: string; lastDownloaded?: string; } export interface SearchComponentsParams { repository?: string; format?: string; group?: string; name?: string; version?: string; prerelease?: boolean; sort?: 'name' | 'version' | 'format'; direction?: 'asc' | 'desc'; limit?: number; offset?: number; } export interface ComponentSearchResponse { items: Component[]; continuationToken?: string; } export declare class ComponentService { readonly nexusClient: NexusClient; constructor(nexusClient: NexusClient); searchComponents(params?: SearchComponentsParams): Promise<ComponentSearchResponse>; getComponent(id: string): Promise<Component>; uploadComponent(repository: string, formData: any): Promise<Component>; deleteComponent(id: string): Promise<void>; getComponentVersions(repository: string, format: string, group: string, name: string): Promise<string[]>; getAssets(componentId: string): Promise<Asset[]>; getAsset(id: string): Promise<Asset>; deleteAsset(id: string): Promise<void>; } //# sourceMappingURL=components.d.ts.map