lint(gui): split up response types
This commit is contained in:
parent
8435b18829
commit
2edb3c6199
|
@ -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 {
|
export interface UpscaleParams {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
|
@ -136,24 +136,37 @@ export interface UpscaleReqParams {
|
||||||
source: Blob;
|
source: Blob;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parameters for blend requests.
|
||||||
|
*/
|
||||||
export interface BlendParams {
|
export interface BlendParams {
|
||||||
sources: Array<Blob>;
|
sources: Array<Blob>;
|
||||||
mask: 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.
|
* General response for most image requests.
|
||||||
*/
|
*/
|
||||||
export interface ImageResponse {
|
export interface ImageResponse {
|
||||||
outputs: Array<{
|
outputs: Array<ImageOutput>;
|
||||||
key: string;
|
|
||||||
url: string;
|
|
||||||
}>;
|
|
||||||
params: Required<BaseImgParams> & Required<ModelParams>;
|
params: Required<BaseImgParams> & Required<ModelParams>;
|
||||||
size: {
|
size: ImageSize;
|
||||||
width: number;
|
|
||||||
height: number;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue