mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-01 01:59:55 +00:00
Nutomic
8d2364559d
These use the same header/cookie auth now as all other api endpoints, so there is no reason for separate auth param.
25 lines
433 B
TypeScript
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;
|
|
}
|