watchtower-node-sdk
Version:
A TypeScript Node.js SDK for the Watchtower API, providing API key management, connection string generation, and more
18 lines (17 loc) • 892 B
TypeScript
import { BaseEndpoint } from '../base';
import { ConnectionStringRequest, ConnectionStringResponse, ParsedConnectionString } from './types';
export declare class ConnectionStringEndpoint extends BaseEndpoint {
constructor(client: any);
/**
* Creates an encrypted connection string from API keys
* @param params - The request parameters for generating the connection string
* @returns Promise with the generated connection string and expiration details
*/
generateConnectionString(params: ConnectionStringRequest): Promise<ConnectionStringResponse>;
/**
* Decrypts and parses a connection string to extract API keys
* @param connectionString - The encrypted connection string to parse
* @returns Promise with the parsed connection string details
*/
parseConnectionString(connectionString: string): Promise<ParsedConnectionString>;
}