chore(ui): regen api client

This commit is contained in:
psychedelicious 2023-06-02 17:25:47 +10:00
parent 6bbb5f061a
commit 707ed39300
19 changed files with 63 additions and 63 deletions

View File

@ -32,7 +32,7 @@ export type { Graph } from './models/Graph';
export type { GraphExecutionState } from './models/GraphExecutionState';
export type { GraphInvocation } from './models/GraphInvocation';
export type { GraphInvocationOutput } from './models/GraphInvocationOutput';
export type { HedImageprocessorInvocation } from './models/HedImageprocessorInvocation';
export type { HedImageProcessorInvocation } from './models/HedImageProcessorInvocation';
export type { HTTPValidationError } from './models/HTTPValidationError';
export type { ImageBlurInvocation } from './models/ImageBlurInvocation';
export type { ImageCategory } from './models/ImageCategory';

View File

@ -18,15 +18,15 @@ export type CannyImageProcessorInvocation = {
is_intermediate?: boolean;
type?: 'canny_image_processor';
/**
* image to process
* The image to process
*/
image?: ImageField;
/**
* low threshold of Canny pixel gradient
* The low threshold of the Canny pixel gradient (0-255)
*/
low_threshold?: number;
/**
* high threshold of Canny pixel gradient
* The high threshold of the Canny pixel gradient (0-255)
*/
high_threshold?: number;
};

View File

@ -18,27 +18,27 @@ export type ContentShuffleImageProcessorInvocation = {
is_intermediate?: boolean;
type?: 'content_shuffle_image_processor';
/**
* image to process
* The image to process
*/
image?: ImageField;
/**
* pixel resolution for edge detection
* The pixel resolution for detection
*/
detect_resolution?: number;
/**
* pixel resolution for output image
* The pixel resolution for the output image
*/
image_resolution?: number;
/**
* content shuffle h parameter
* Content shuffle `h` parameter
*/
'h'?: number;
/**
* content shuffle w parameter
* Content shuffle `w` parameter
*/
'w'?: number;
/**
* cont
* Content shuffle `f` parameter
*/
'f'?: number;
};

View File

@ -6,23 +6,23 @@ import type { ImageField } from './ImageField';
export type ControlField = {
/**
* processed image
* The control image
*/
image: ImageField;
/**
* control model used
* The ControlNet model to use
*/
control_model: string;
/**
* weight given to controlnet
* The weight given to the ControlNet
*/
control_weight: number;
/**
* % of total steps at which controlnet is first applied
* When the ControlNet is first applied (% of total steps)
*/
begin_step_percent: number;
/**
* % of total steps at which controlnet is last applied
* When the ControlNet is last applied (% of total steps)
*/
end_step_percent: number;
};

View File

@ -18,23 +18,23 @@ export type ControlNetInvocation = {
is_intermediate?: boolean;
type?: 'controlnet';
/**
* image to process
* The control image
*/
image?: ImageField;
/**
* control model used
* The ControlNet model to use
*/
control_model?: 'lllyasviel/sd-controlnet-canny' | 'lllyasviel/sd-controlnet-depth' | 'lllyasviel/sd-controlnet-hed' | 'lllyasviel/sd-controlnet-seg' | 'lllyasviel/sd-controlnet-openpose' | 'lllyasviel/sd-controlnet-scribble' | 'lllyasviel/sd-controlnet-normal' | 'lllyasviel/sd-controlnet-mlsd' | 'lllyasviel/control_v11p_sd15_canny' | 'lllyasviel/control_v11p_sd15_openpose' | 'lllyasviel/control_v11p_sd15_seg' | 'lllyasviel/control_v11f1p_sd15_depth' | 'lllyasviel/control_v11p_sd15_normalbae' | 'lllyasviel/control_v11p_sd15_scribble' | 'lllyasviel/control_v11p_sd15_mlsd' | 'lllyasviel/control_v11p_sd15_softedge' | 'lllyasviel/control_v11p_sd15s2_lineart_anime' | 'lllyasviel/control_v11p_sd15_lineart' | 'lllyasviel/control_v11p_sd15_inpaint' | 'lllyasviel/control_v11e_sd15_shuffle' | 'lllyasviel/control_v11e_sd15_ip2p' | 'lllyasviel/control_v11f1e_sd15_tile' | 'thibaud/controlnet-sd21-openpose-diffusers' | 'thibaud/controlnet-sd21-canny-diffusers' | 'thibaud/controlnet-sd21-depth-diffusers' | 'thibaud/controlnet-sd21-scribble-diffusers' | 'thibaud/controlnet-sd21-hed-diffusers' | 'thibaud/controlnet-sd21-zoedepth-diffusers' | 'thibaud/controlnet-sd21-color-diffusers' | 'thibaud/controlnet-sd21-openposev2-diffusers' | 'thibaud/controlnet-sd21-lineart-diffusers' | 'thibaud/controlnet-sd21-normalbae-diffusers' | 'thibaud/controlnet-sd21-ade20k-diffusers' | 'CrucibleAI/ControlNetMediaPipeFace,diffusion_sd15' | 'CrucibleAI/ControlNetMediaPipeFace';
/**
* weight given to controlnet
* The weight given to the ControlNet
*/
control_weight?: number;
/**
* % of total steps at which controlnet is first applied
* When the ControlNet is first applied (% of total steps)
*/
begin_step_percent?: number;
/**
* % of total steps at which controlnet is last applied
* When the ControlNet is last applied (% of total steps)
*/
end_step_percent?: number;
};

View File

@ -10,7 +10,7 @@ import type { ControlField } from './ControlField';
export type ControlOutput = {
type?: 'control_output';
/**
* The control info dict
* The output control image
*/
control?: ControlField;
};

View File

@ -12,7 +12,7 @@ import type { CvInpaintInvocation } from './CvInpaintInvocation';
import type { DivideInvocation } from './DivideInvocation';
import type { Edge } from './Edge';
import type { GraphInvocation } from './GraphInvocation';
import type { HedImageprocessorInvocation } from './HedImageprocessorInvocation';
import type { HedImageProcessorInvocation } from './HedImageProcessorInvocation';
import type { ImageBlurInvocation } from './ImageBlurInvocation';
import type { ImageChannelInvocation } from './ImageChannelInvocation';
import type { ImageConvertInvocation } from './ImageConvertInvocation';
@ -69,7 +69,7 @@ export type Graph = {
/**
* The nodes in this graph
*/
nodes?: Record<string, (LoadImageInvocation | ShowImageInvocation | ImageCropInvocation | ImagePasteInvocation | MaskFromAlphaInvocation | ImageMultiplyInvocation | ImageChannelInvocation | ImageConvertInvocation | ImageBlurInvocation | ImageResizeInvocation | ImageScaleInvocation | ImageLerpInvocation | ImageInverseLerpInvocation | ControlNetInvocation | ImageProcessorInvocation | CompelInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | ParamFloatInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | CvInpaintInvocation | RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageprocessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation)>;
nodes?: Record<string, (LoadImageInvocation | ShowImageInvocation | ImageCropInvocation | ImagePasteInvocation | MaskFromAlphaInvocation | ImageMultiplyInvocation | ImageChannelInvocation | ImageConvertInvocation | ImageBlurInvocation | ImageResizeInvocation | ImageScaleInvocation | ImageLerpInvocation | ImageInverseLerpInvocation | ControlNetInvocation | ImageProcessorInvocation | CompelInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | ParamFloatInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | CvInpaintInvocation | RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageProcessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation)>;
/**
* The connections between nodes and their fields in this graph
*/

View File

@ -7,7 +7,7 @@ import type { ImageField } from './ImageField';
/**
* Applies HED edge detection to image
*/
export type HedImageprocessorInvocation = {
export type HedImageProcessorInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
@ -18,19 +18,19 @@ export type HedImageprocessorInvocation = {
is_intermediate?: boolean;
type?: 'hed_image_processor';
/**
* image to process
* The image to process
*/
image?: ImageField;
/**
* pixel resolution for edge detection
* The pixel resolution for detection
*/
detect_resolution?: number;
/**
* pixel resolution for output image
* The pixel resolution for the output image
*/
image_resolution?: number;
/**
* whether to use scribble mode
* Whether to use scribble mode
*/
scribble?: boolean;
};

View File

@ -18,7 +18,7 @@ export type ImageProcessorInvocation = {
is_intermediate?: boolean;
type?: 'image_processor';
/**
* image to process
* The image to process
*/
image?: ImageField;
};

View File

@ -18,15 +18,15 @@ export type LineartAnimeImageProcessorInvocation = {
is_intermediate?: boolean;
type?: 'lineart_anime_image_processor';
/**
* image to process
* The image to process
*/
image?: ImageField;
/**
* pixel resolution for edge detection
* The pixel resolution for detection
*/
detect_resolution?: number;
/**
* pixel resolution for output image
* The pixel resolution for the output image
*/
image_resolution?: number;
};

View File

@ -18,19 +18,19 @@ export type LineartImageProcessorInvocation = {
is_intermediate?: boolean;
type?: 'lineart_image_processor';
/**
* image to process
* The image to process
*/
image?: ImageField;
/**
* pixel resolution for edge detection
* The pixel resolution for detection
*/
detect_resolution?: number;
/**
* pixel resolution for output image
* The pixel resolution for the output image
*/
image_resolution?: number;
/**
* whether to use coarse mode
* Whether to use coarse mode
*/
coarse?: boolean;
};

View File

@ -18,15 +18,15 @@ export type MediapipeFaceProcessorInvocation = {
is_intermediate?: boolean;
type?: 'mediapipe_face_processor';
/**
* image to process
* The image to process
*/
image?: ImageField;
/**
* maximum number of faces to detect
* Maximum number of faces to detect
*/
max_faces?: number;
/**
* minimum confidence for face detection
* Minimum confidence for face detection
*/
min_confidence?: number;
};

View File

@ -18,15 +18,15 @@ export type MidasDepthImageProcessorInvocation = {
is_intermediate?: boolean;
type?: 'midas_depth_image_processor';
/**
* image to process
* The image to process
*/
image?: ImageField;
/**
* Midas parameter a = amult * PI
* Midas parameter `a_mult` (a = a_mult * PI)
*/
a_mult?: number;
/**
* Midas parameter bg_th
* Midas parameter `bg_th`
*/
bg_th?: number;
};

View File

@ -18,23 +18,23 @@ export type MlsdImageProcessorInvocation = {
is_intermediate?: boolean;
type?: 'mlsd_image_processor';
/**
* image to process
* The image to process
*/
image?: ImageField;
/**
* pixel resolution for edge detection
* The pixel resolution for detection
*/
detect_resolution?: number;
/**
* pixel resolution for output image
* The pixel resolution for the output image
*/
image_resolution?: number;
/**
* MLSD parameter thr_v
* MLSD parameter `thr_v`
*/
thr_v?: number;
/**
* MLSD parameter thr_d
* MLSD parameter `thr_d`
*/
thr_d?: number;
};

View File

@ -18,15 +18,15 @@ export type NormalbaeImageProcessorInvocation = {
is_intermediate?: boolean;
type?: 'normalbae_image_processor';
/**
* image to process
* The image to process
*/
image?: ImageField;
/**
* pixel resolution for edge detection
* The pixel resolution for detection
*/
detect_resolution?: number;
/**
* pixel resolution for output image
* The pixel resolution for the output image
*/
image_resolution?: number;
};

View File

@ -18,19 +18,19 @@ export type OpenposeImageProcessorInvocation = {
is_intermediate?: boolean;
type?: 'openpose_image_processor';
/**
* image to process
* The image to process
*/
image?: ImageField;
/**
* whether to use hands and face mode
* Whether to use hands and face mode
*/
hand_and_face?: boolean;
/**
* pixel resolution for edge detection
* The pixel resolution for detection
*/
detect_resolution?: number;
/**
* pixel resolution for output image
* The pixel resolution for the output image
*/
image_resolution?: number;
};

View File

@ -18,23 +18,23 @@ export type PidiImageProcessorInvocation = {
is_intermediate?: boolean;
type?: 'pidi_image_processor';
/**
* image to process
* The image to process
*/
image?: ImageField;
/**
* pixel resolution for edge detection
* The pixel resolution for detection
*/
detect_resolution?: number;
/**
* pixel resolution for output image
* The pixel resolution for the output image
*/
image_resolution?: number;
/**
* whether to use safe mode
* Whether to use safe mode
*/
safe?: boolean;
/**
* whether to use scribble mode
* Whether to use scribble mode
*/
scribble?: boolean;
};

View File

@ -18,7 +18,7 @@ export type ZoeDepthImageProcessorInvocation = {
is_intermediate?: boolean;
type?: 'zoe_depth_image_processor';
/**
* image to process
* The image to process
*/
image?: ImageField;
};

View File

@ -13,7 +13,7 @@ import type { Edge } from '../models/Edge';
import type { Graph } from '../models/Graph';
import type { GraphExecutionState } from '../models/GraphExecutionState';
import type { GraphInvocation } from '../models/GraphInvocation';
import type { HedImageprocessorInvocation } from '../models/HedImageprocessorInvocation';
import type { HedImageProcessorInvocation } from '../models/HedImageProcessorInvocation';
import type { ImageBlurInvocation } from '../models/ImageBlurInvocation';
import type { ImageChannelInvocation } from '../models/ImageChannelInvocation';
import type { ImageConvertInvocation } from '../models/ImageConvertInvocation';
@ -171,7 +171,7 @@ export class SessionsService {
* The id of the session
*/
sessionId: string,
requestBody: (LoadImageInvocation | ShowImageInvocation | ImageCropInvocation | ImagePasteInvocation | MaskFromAlphaInvocation | ImageMultiplyInvocation | ImageChannelInvocation | ImageConvertInvocation | ImageBlurInvocation | ImageResizeInvocation | ImageScaleInvocation | ImageLerpInvocation | ImageInverseLerpInvocation | ControlNetInvocation | ImageProcessorInvocation | CompelInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | ParamFloatInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | CvInpaintInvocation | RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageprocessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation),
requestBody: (LoadImageInvocation | ShowImageInvocation | ImageCropInvocation | ImagePasteInvocation | MaskFromAlphaInvocation | ImageMultiplyInvocation | ImageChannelInvocation | ImageConvertInvocation | ImageBlurInvocation | ImageResizeInvocation | ImageScaleInvocation | ImageLerpInvocation | ImageInverseLerpInvocation | ControlNetInvocation | ImageProcessorInvocation | CompelInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | ParamFloatInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | CvInpaintInvocation | RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageProcessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation),
}): CancelablePromise<string> {
return __request(OpenAPI, {
method: 'POST',
@ -208,7 +208,7 @@ export class SessionsService {
* The path to the node in the graph
*/
nodePath: string,
requestBody: (LoadImageInvocation | ShowImageInvocation | ImageCropInvocation | ImagePasteInvocation | MaskFromAlphaInvocation | ImageMultiplyInvocation | ImageChannelInvocation | ImageConvertInvocation | ImageBlurInvocation | ImageResizeInvocation | ImageScaleInvocation | ImageLerpInvocation | ImageInverseLerpInvocation | ControlNetInvocation | ImageProcessorInvocation | CompelInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | ParamFloatInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | CvInpaintInvocation | RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageprocessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation),
requestBody: (LoadImageInvocation | ShowImageInvocation | ImageCropInvocation | ImagePasteInvocation | MaskFromAlphaInvocation | ImageMultiplyInvocation | ImageChannelInvocation | ImageConvertInvocation | ImageBlurInvocation | ImageResizeInvocation | ImageScaleInvocation | ImageLerpInvocation | ImageInverseLerpInvocation | ControlNetInvocation | ImageProcessorInvocation | CompelInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | ParamFloatInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | CvInpaintInvocation | RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageProcessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation),
}): CancelablePromise<GraphExecutionState> {
return __request(OpenAPI, {
method: 'PUT',