1
0
Fork 0

lint(gui): split up response types

This commit is contained in:
Sean Sube 2023-02-21 18:41:42 -06:00
parent 8435b18829
commit 2edb3c6199
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 22 additions and 9 deletions

View File

@ -112,7 +112,7 @@ export interface BrushParams {
}
/**
* Additional parameters for upscaling.
* Additional parameters for upscaling. May be sent with most other requests to run a post-pipeline.
*/
export interface UpscaleParams {
enabled: boolean;
@ -136,24 +136,37 @@ export interface UpscaleReqParams {
source: Blob;
}
/**
* Parameters for blend requests.
*/
export interface BlendParams {
sources: Array<Blob>;
mask: Blob;
}
/**
* Output image data within the response.
*/
export interface ImageOutput {
key: string;
url: string;
}
/**
* Output image size, after upscaling and outscale.
*/
export interface ImageSize {
width: number;
height: number;
}
/**
* General response for most image requests.
*/
export interface ImageResponse {
outputs: Array<{
key: string;
url: string;
}>;
outputs: Array<ImageOutput>;
params: Required<BaseImgParams> & Required<ModelParams>;
size: {
width: number;
height: number;
};
size: ImageSize;
}
/**