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
48 lines (47 loc) • 1.47 kB
TypeScript
/**
* Web3 API Key Generation (POST) Resource
*
* This module provides methods for interacting with the Web3 API Key Generation API.
* It allows you to generate an API key with a Web3 wallet.
*
* @example
* ```typescript
* import { VeniceAI } from 'venice-ai-sdk-apl';
*
* const venice = new VeniceAI({
* apiKey: 'your-api-key',
* });
*
* // Generate an API key with a Web3 wallet
* const response = await venice.apiKeys.web3.generateKey({
* wallet_address: '0x1234567890abcdef1234567890abcdef12345678',
* signature: 'signed-message',
* name: 'My Web3 API Key'
* });
*
* console.log(response.key);
* ```
*/
import { BaseResource } from '../../base-resource';
import { GenerateWeb3KeyPostParams, GenerateWeb3KeyPostResponse } from '../../../types/api-keys';
/**
* Web3 API Key Generation (POST) Resource
*/
export declare class Web3ApiKeyPostResource extends BaseResource {
/**
* Generates an API key with a Web3 wallet
*
* @param params - Parameters for generating an API key
* @returns Promise that resolves with the generated API key
*
* @example
* ```typescript
* const response = await venice.apiKeys.web3.generateKey({
* wallet_address: '0x1234567890abcdef1234567890abcdef12345678',
* signature: 'signed-message',
* name: 'My Web3 API Key'
* });
* ```
*/
generateKey(params: GenerateWeb3KeyPostParams): Promise<GenerateWeb3KeyPostResponse>;
}