UNPKG

venice-ai-sdk-apl

Version:

A comprehensive SDK for the Venice AI API with CLI support, programmatic CLI usage, CLI-style interface, and interactive demo

51 lines (50 loc) 1.21 kB
/** * API Keys List Resource * * This module provides methods for interacting with the API Keys List API. * It allows you to retrieve your API keys. * * @example * ```typescript * import { VeniceAI } from 'venice-ai-sdk-apl'; * * const venice = new VeniceAI({ * apiKey: 'your-api-key', * }); * * // List API keys * const response = await venice.apiKeys.list(); * * console.log(response.keys); * ``` */ import { BaseResource } from '../base-resource'; import { ListApiKeysResponse } from '../../types/api-keys'; /** * API Keys List Resource */ export declare class ApiKeysListResource extends BaseResource { /** * Lists your API keys * * @returns Promise that resolves with the list of API keys * * @example * ```typescript * const response = await venice.apiKeys.list(); * ``` */ list(): Promise<ListApiKeysResponse>; /** * Gets a specific API key by ID * * @param id - API key ID * @returns Promise that resolves with the API key details * * @example * ```typescript * const key = await venice.apiKeys.list.getKey('api-key-id'); * ``` */ getKey(id: string): Promise<any>; }