UNPKG

@apillon/sdk

Version:

▶◀ Apillon SDK for NodeJS ▶◀

33 lines 1.19 kB
import { ApillonModule, ICreateApillonModel } from '../../lib/apillon'; import { IApillonList, IApillonPagination } from '../../types/apillon'; import { RpcEndpoint } from '../../types/rpc'; import { RpcApiKey } from './rpc-api-key'; export declare class Rpc extends ApillonModule { /** * API URL for RPC module. */ private API_PREFIX; /** * List all API keys for RPC. * @param {IApillonPagination} params - The query parameters for filtering API keys. * @returns The list of API keys. */ listApiKeys(params?: IApillonPagination): Promise<IApillonList<RpcApiKey>>; /** * Create a new API key for RPC module. * @param {ApillonApiCreateRpcApiKeyDto} data - The data for creating an API key. * @returns The created API key. */ createApiKey(data: ICreateApillonModel): Promise<RpcApiKey>; /** * Get all available endpoints for the RPC service. * @returns The list of endpoints. */ listEndpoints(): Promise<RpcEndpoint[]>; /** * @param id Unique API key identifier. * @returns An empty instance of RpcApiKey. */ apiKey(id: number): RpcApiKey; } //# sourceMappingURL=rpc.d.ts.map