lemmy-js-client/src/other_types.ts
Nutomic 8d2364559d
Remove separate auth params for image endpoints (#212)
These use the same header/cookie auth now as all other api endpoints,
so there is no reason for separate auth param.
2023-11-14 13:26:25 -05:00

25 lines
433 B
TypeScript

export const VERSION = "v3";
export interface UploadImage {
image: File | Buffer;
}
export interface UploadImageResponse {
/**
* Is "ok" if the upload was successful; is something else otherwise.
*/
msg: string;
files?: ImageFile[];
url?: string;
delete_url?: string;
}
export interface ImageFile {
file: string;
delete_token: string;
}
export interface DeleteImage {
token: string;
filename: string;
}