import { apiClient } from "./client"; export interface SSHKey { id: string; name: string; public_key: string; created_at: string; } export interface SSHKeyCreate { name: string; } export async function listSSHKeys(): Promise { const response = await apiClient.get("/ssh-keys"); return response.data; } export async function createSSHKey(data: SSHKeyCreate): Promise { const response = await apiClient.post("/ssh-keys", data); return response.data; } export async function deleteSSHKey(keyId: string): Promise { await apiClient.delete(`/ssh-keys/${keyId}`); }