UNPKG

claude-flow

Version:

Enterprise-grade AI agent orchestration with ruv-swarm integration (Alpha Release)

97 lines (96 loc) 3.42 kB
/// <reference types="node" /> import http = require("http"); import url = require("url"); /** * Information about the location of a REST API resource */ export interface ApiResourceLocation { /** * Area name for this resource */ area: string; /** * Unique Identifier for this location */ id: string; /** * Maximum api version that this resource supports (current server version for this resource) */ maxVersion: string; /** * Minimum api version that this resource supports */ minVersion: string; /** * The latest version of this resource location that is in "Release" (non-preview) mode */ releasedVersion: string; /** * Resource name */ resourceName: string; /** * The current resource version supported by this resource location */ resourceVersion: number; /** * This location's route template (templated relative path) */ routeTemplate: string; } export interface IHeaders { [key: string]: any; } export interface IBasicCredentials { username: string; password: string; } export interface IHttpClient { constructor(requestUrl: string, additionalHeaders?: IHeaders): Promise<IHttpClientResponse>; constructor(requestUrl: string, additionalHeaders?: IHeaders): Promise<IHttpClientResponse>; constructor(requestUrl: string, additionalHeaders?: IHeaders): Promise<IHttpClientResponse>; constructor(requestUrl: string, data: string, additionalHeaders?: IHeaders): Promise<IHttpClientResponse>; constructor(requestUrl: string, data: string, additionalHeaders?: IHeaders): Promise<IHttpClientResponse>; constructor(requestUrl: string, data: string, additionalHeaders?: IHeaders): Promise<IHttpClientResponse>; constructor(verb: string, requestUrl: string, stream: NodeJS.ReadableStream, additionalHeaders?: IHeaders): Promise<IHttpClientResponse>; constructor(verb: string, requestUrl: string, data: string | NodeJS.ReadableStream, headers: IHeaders): Promise<IHttpClientResponse>; constructor(info: IRequestInfo, data: string | NodeJS.ReadableStream): Promise<IHttpClientResponse>; constructor(info: IRequestInfo, data: string | NodeJS.ReadableStream, onResult: (err: any, res: IHttpClientResponse) => void): void; } export interface IRequestInfo { options: http.RequestOptions; parsedUrl: url.Url; httpModule: any; } export interface IRequestHandler { constructor(options: http.RequestOptions): void; constructor(response: IHttpClientResponse): boolean; constructor(httpClient: IHttpClient, requestInfo: IRequestInfo, objs: any): Promise<IHttpClientResponse>; } export interface IHttpClientResponse { message: http.IncomingMessage; constructor(): Promise<string>; } export interface IRequestOptions { socketTimeout?: number; ignoreSslError?: boolean; proxy?: IProxyConfiguration; cert?: ICertConfiguration; allowRetries?: boolean; maxRetries?: number; allowRedirects?: boolean; maxRedirects?: number; presignedUrlPatterns?: RegExp[]; } export interface IProxyConfiguration { proxyUrl: string; proxyUsername?: string; proxyPassword?: string; proxyBypassHosts?: string[]; } export interface ICertConfiguration { caFile?: string; certFile?: string; keyFile?: string; passphrase?: string; }