UNPKG

@debugg-ai/cli

Version:
45 lines 1.52 kB
export interface TunnelConfig { port: number; subdomain?: string | undefined; customDomain?: string | undefined; authtoken?: string | undefined; tunnelKey?: string | undefined; endpointUuid?: string | undefined; } export interface TunnelInfo { url: string; port: number; subdomain: string; uuid: string; } export interface TunnelManagerOptions { authtoken?: string | undefined; baseDomain?: string | undefined; ngrokAuthToken?: string | undefined; verbose?: boolean | undefined; } export declare class TunnelManager { private authtoken; private baseDomain; private activeTunnels; private verbose; constructor(options?: TunnelManagerOptions); createTunnel(config: TunnelConfig): Promise<TunnelInfo>; disconnectTunnel(uuid: string): Promise<void>; disconnectAll(): Promise<void>; getTunnelInfo(uuid: string): TunnelInfo | undefined; getAllTunnels(): TunnelInfo[]; generateUUID(): string; isValidTunnelUrl(url: string): boolean; getTunnelStatus(uuid: string): Promise<{ active: boolean; url?: string; port?: number; }>; /** * Create tunnel using backend-provided tunnelKey (ngrok auth token) and endpoint UUID * This should be called AFTER creating the commit suite, using the tunnelKey from backend response */ createTunnelWithBackendKey(port: number, endpointUuid: string, tunnelKey: string): Promise<TunnelInfo>; } //# sourceMappingURL=tunnel-manager.d.ts.map