/** * ServiceKey Resource * * REST endpoint for managing API keys for webhooks and service accounts. * All operations require team role and kbId for tenant scoping. * * Routes: * GET /ServiceKey/?kbId=.. — list all keys (team role, keyHash never returned) * GET /ServiceKey/?kbId=.. — get a single key (team role, keyHash never returned) * POST /ServiceKey/?kbId=.. — create a new key (team role, returns plaintext key once) * DELETE /ServiceKey/?kbId=.. — delete a key (team role) */ declare const ServiceKeyResource_base: any; export declare class ServiceKeyResource extends ServiceKeyResource_base { static loadAsInstance: boolean; /** * GET /ServiceKey/?kbId=.. — list all service keys (keyHash excluded). * GET /ServiceKey/?kbId=.. — get a single key (keyHash excluded). * Default: team role required. Hook can override. */ get(target?: any): Promise | Record[]>; /** * POST /ServiceKey/?kbId=.. — create a new API key. * Default: team role required. Hook can override. * * Body: { name: string, role: "service_account" | "ai_agent", permissions?: object } * * Returns the plaintext key exactly once. It is never stored or retrievable again. */ post(target: any, data: any): Promise<{ status: number; data: { error: string; }; } | { key: string; status?: undefined; data?: undefined; }>; /** * DELETE /ServiceKey/?kbId=.. — delete a service key. * Default: team role required. Hook can override. */ delete(target?: any): Promise; } export {}; //# sourceMappingURL=ServiceKeyResource.d.ts.map