mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-01 10:09:55 +00:00
25 lines
477 B
TypeScript
25 lines
477 B
TypeScript
|
export const VERSION = "v3";
|
||
|
|
||
|
export interface UploadImage {
|
||
|
image: File | Buffer;
|
||
|
/**
|
||
|
* Optional if cookie with jwt set is already present. Otherwise, auth is required.
|
||
|
*/
|
||
|
auth?: string;
|
||
|
}
|
||
|
|
||
|
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;
|
||
|
}
|