interfaces/ts/requests/image.ts

35 lines
752 B
TypeScript
Raw Normal View History

2024-02-07 11:29:23 +00:00
import * as plugins from '../plugins.js';
export interface IRequest_PushImage extends plugins.typedrequestInterfaces.implementsTR<
plugins.typedrequestInterfaces.ITypedRequest,
IRequest_PushImage
> {
method: 'pushImage';
request: {
jwt: string;
image: string;
version: string;
transferId?: string;
chunk: Buffer;
};
response: {
transferId: string;
};
}
export interface IRequest_DownloadImage extends plugins.typedrequestInterfaces.implementsTR<
plugins.typedrequestInterfaces.ITypedRequest,
IRequest_DownloadImage
> {
method: 'downloadImage';
request: {
jwt: string;
image: string;
version: string;
transferId: string;
};
response: {
transferId: string;
chunk: Buffer;
};
}