UNPKG

@velatir/sdk

Version:

Official TypeScript SDK for Velatir - Monitor and approve/reject AI function calls

25 lines 992 B
import { VelatirResponse } from './models'; import { ClientConfig } from './types'; export declare class Client { private static readonly DEFAULT_BASE_URL; private static readonly DEFAULT_TIMEOUT; private readonly apiKey?; private readonly baseUrl; private readonly timeout; private readonly logLevel; private readonly maxRetries; private readonly retryBackoff; private httpClient; constructor(config?: ClientConfig); private parseLogLevel; private createHttpClient; private log; private request; private shouldRetry; private handleError; private sleep; createWatchRequest(functionName: string, args: Record<string, unknown>, doc?: string, metadata?: Record<string, unknown>): Promise<VelatirResponse>; getWatchStatus(requestId: string): Promise<VelatirResponse>; waitForApproval(requestId: string, pollingInterval?: number, maxAttempts?: number): Promise<VelatirResponse>; } //# sourceMappingURL=client.d.ts.map