gpudeploy
Version:
Utilities for creating APIs
29 lines (28 loc) • 749 B
TypeScript
import { APIAdapterParams } from "./APIBase";
import { UserSSHKey } from "../types/objects";
declare namespace SSHKey {
type CreateParams = {
key: string;
};
type CreateReturn = UserSSHKey;
type DeleteParams = {
id: string;
};
type DeleteReturn = {};
type ListParams = {
limit?: number;
offset?: number;
};
type ListReturn = {
count: number;
sshKeys: UserSSHKey[];
};
class Adapter {
private api;
constructor({ api }: APIAdapterParams);
create(data: CreateParams): Promise<CreateReturn>;
delete({ id }: DeleteParams): Promise<DeleteReturn>;
list(data: ListParams): Promise<ListReturn>;
}
}
export default SSHKey;