UNPKG

@jokoor/sdk

Version:
32 lines 969 B
/** * API Keys resource - User-friendly wrapper for API keys management */ import { BaseResource, PaginatedResponse } from './base'; import type { V1APIKeyResponse, V1CreateAPIKeyParams } from '../generated/api'; export declare class APIKeys extends BaseResource { private api; constructor(configuration: any); /** * Create a new API key * @param params API key creation parameters * @returns Created API key with key (only shown once) */ create(params: V1CreateAPIKeyParams): Promise<V1APIKeyResponse>; /** * Delete an API key * @param id API key ID * @returns Deletion confirmation */ delete(id: string): Promise<{ message: string; }>; /** * List API keys * @param options List options * @returns Paginated list of API keys */ list(options?: { mode?: string; }): Promise<PaginatedResponse<V1APIKeyResponse>>; } //# sourceMappingURL=api-keys.d.ts.map