chore: Rebuild WebAPI

This commit is contained in:
blessedcoolant 2023-06-14 19:26:02 +12:00
parent 43419ac761
commit eb7047b21d
101 changed files with 375 additions and 360 deletions

View File

@ -27,6 +27,7 @@ export type { DivideInvocation } from './models/DivideInvocation';
export type { Edge } from './models/Edge';
export type { EdgeConnection } from './models/EdgeConnection';
export type { FloatCollectionOutput } from './models/FloatCollectionOutput';
export type { FloatLinearRangeInvocation } from './models/FloatLinearRangeInvocation';
export type { FloatOutput } from './models/FloatOutput';
export type { Graph } from './models/Graph';
export type { GraphExecutionState } from './models/GraphExecutionState';
@ -95,6 +96,7 @@ export type { ResourceOrigin } from './models/ResourceOrigin';
export type { RestoreFaceInvocation } from './models/RestoreFaceInvocation';
export type { ScaleLatentsInvocation } from './models/ScaleLatentsInvocation';
export type { ShowImageInvocation } from './models/ShowImageInvocation';
export type { StepParamEasingInvocation } from './models/StepParamEasingInvocation';
export type { SubtractInvocation } from './models/SubtractInvocation';
export type { TextToImageInvocation } from './models/TextToImageInvocation';
export type { TextToLatentsInvocation } from './models/TextToLatentsInvocation';

View File

@ -24,4 +24,3 @@ export type AddInvocation = {
*/
'b'?: number;
};

View File

@ -5,4 +5,3 @@
export type Body_upload_image = {
file: Blob;
};

View File

@ -30,4 +30,3 @@ export type CannyImageProcessorInvocation = {
*/
high_threshold?: number;
};

View File

@ -29,4 +29,3 @@ export type CkptModelInfo = {
*/
height?: number;
};

View File

@ -24,4 +24,3 @@ export type CollectInvocation = {
*/
collection?: Array<any>;
};

View File

@ -12,4 +12,3 @@ export type CollectInvocationOutput = {
*/
collection: Array<any>;
};

View File

@ -20,4 +20,3 @@ export type ColorField = {
*/
'a': number;
};

View File

@ -24,4 +24,3 @@ export type CompelInvocation = {
*/
model?: string;
};

View File

@ -14,4 +14,3 @@ export type CompelOutput = {
*/
conditioning?: ConditioningField;
};

View File

@ -8,4 +8,3 @@ export type ConditioningField = {
*/
conditioning_name: string;
};

View File

@ -42,4 +42,3 @@ export type ContentShuffleImageProcessorInvocation = {
*/
'f'?: number;
};

View File

@ -16,7 +16,7 @@ export type ControlField = {
/**
* The weight given to the ControlNet
*/
control_weight: number;
control_weight: (number | Array<number>);
/**
* When the ControlNet is first applied (% of total steps)
*/
@ -25,5 +25,8 @@ export type ControlField = {
* When the ControlNet is last applied (% of total steps)
*/
end_step_percent: number;
/**
* The contorl mode to use
*/
control_mode?: 'balanced' | 'more_prompt' | 'more_control' | 'unbalanced';
};

View File

@ -22,13 +22,13 @@ export type ControlNetInvocation = {
*/
image?: ImageField;
/**
* The ControlNet model to use
* control model used
*/
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';
/**
* The weight given to the ControlNet
*/
control_weight?: number;
control_weight?: (number | Array<number>);
/**
* When the ControlNet is first applied (% of total steps)
*/
@ -37,5 +37,8 @@ export type ControlNetInvocation = {
* When the ControlNet is last applied (% of total steps)
*/
end_step_percent?: number;
/**
* The control mode used
*/
control_mode?: 'balanced' | 'more_prompt' | 'more_control' | 'unbalanced';
};

View File

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

View File

@ -15,4 +15,3 @@ export type CreateModelRequest = {
*/
info: (CkptModelInfo | DiffusersModelInfo);
};

View File

@ -26,4 +26,3 @@ export type CvInpaintInvocation = {
*/
mask?: ImageField;
};

View File

@ -23,4 +23,3 @@ export type DiffusersModelInfo = {
*/
path?: string;
};

View File

@ -24,4 +24,3 @@ export type DivideInvocation = {
*/
'b'?: number;
};

View File

@ -14,4 +14,3 @@ export type Edge = {
*/
destination: EdgeConnection;
};

View File

@ -12,4 +12,3 @@ export type EdgeConnection = {
*/
field: string;
};

View File

@ -12,4 +12,3 @@ export type FloatCollectionOutput = {
*/
collection?: Array<number>;
};

View File

@ -0,0 +1,30 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* Creates a range
*/
export type FloatLinearRangeInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
/**
* Whether or not this node is an intermediate node.
*/
is_intermediate?: boolean;
type?: 'float_range';
/**
* The first value of the range
*/
start?: number;
/**
* The last value of the range
*/
stop?: number;
/**
* number of values to interpolate over (including start and stop)
*/
steps?: number;
};

View File

@ -12,4 +12,3 @@ export type FloatOutput = {
*/
param?: number;
};

View File

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

View File

@ -45,7 +45,7 @@ export type GraphExecutionState = {
/**
* The results of node executions
*/
results: Record<string, (ImageOutput | MaskOutput | ControlOutput | PromptOutput | CompelOutput | IntOutput | FloatOutput | LatentsOutput | NoiseOutput | IntCollectionOutput | FloatCollectionOutput | GraphInvocationOutput | IterateInvocationOutput | CollectInvocationOutput)>;
results: Record<string, (IntCollectionOutput | FloatCollectionOutput | CompelOutput | ImageOutput | MaskOutput | ControlOutput | LatentsOutput | NoiseOutput | IntOutput | FloatOutput | PromptOutput | GraphInvocationOutput | IterateInvocationOutput | CollectInvocationOutput)>;
/**
* Errors raised when executing nodes
*/
@ -59,4 +59,3 @@ export type GraphExecutionState = {
*/
source_prepared_mapping: Record<string, Array<string>>;
};

View File

@ -22,4 +22,3 @@ export type GraphInvocation = {
*/
graph?: Graph;
};

View File

@ -8,4 +8,3 @@
export type GraphInvocationOutput = {
type: 'graph_output';
};

View File

@ -7,4 +7,3 @@ import type { ValidationError } from './ValidationError';
export type HTTPValidationError = {
detail?: Array<ValidationError>;
};

View File

@ -7,27 +7,30 @@ 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.
*/
id: string;
/**
* Whether or not this node is an intermediate node.
*/
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

@ -7,27 +7,30 @@ 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.
*/
id: string;
/**
* Whether or not this node is an intermediate node.
*/
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

@ -30,4 +30,3 @@ export type ImageBlurInvocation = {
*/
blur_type?: 'gaussian' | 'box';
};

View File

@ -26,4 +26,3 @@ export type ImageChannelInvocation = {
*/
channel?: 'A' | 'R' | 'G' | 'B';
};

View File

@ -26,4 +26,3 @@ export type ImageConvertInvocation = {
*/
mode?: 'L' | 'RGB' | 'RGBA' | 'CMYK' | 'YCbCr' | 'LAB' | 'HSV' | 'I' | 'F';
};

View File

@ -38,4 +38,3 @@ export type ImageCropInvocation = {
*/
height?: number;
};

View File

@ -67,4 +67,3 @@ export type ImageDTO = {
*/
metadata?: ImageMetadata;
};

View File

@ -17,4 +17,3 @@ export type ImageField = {
*/
image_name: string;
};

View File

@ -30,4 +30,3 @@ export type ImageInverseLerpInvocation = {
*/
max?: number;
};

View File

@ -30,4 +30,3 @@ export type ImageLerpInvocation = {
*/
max?: number;
};

View File

@ -40,7 +40,7 @@ export type ImageMetadata = {
/**
* The classifier-free guidance scale.
*/
cfg_scale?: number;
cfg_scale?: (number | Array<number>);
/**
* The number of steps used for inference.
*/
@ -78,4 +78,3 @@ export type ImageMetadata = {
*/
extra?: string;
};

View File

@ -26,4 +26,3 @@ export type ImageMultiplyInvocation = {
*/
image2?: ImageField;
};

View File

@ -22,4 +22,3 @@ export type ImageOutput = {
*/
height: number;
};

View File

@ -38,4 +38,3 @@ export type ImagePasteInvocation = {
*/
'y'?: number;
};

View File

@ -22,4 +22,3 @@ export type ImageProcessorInvocation = {
*/
image?: ImageField;
};

View File

@ -26,4 +26,3 @@ export type ImageRecordChanges = {
*/
is_intermediate?: boolean;
};

View File

@ -34,4 +34,3 @@ export type ImageResizeInvocation = {
*/
resample_mode?: 'nearest' | 'box' | 'bilinear' | 'hamming' | 'bicubic' | 'lanczos';
};

View File

@ -30,4 +30,3 @@ export type ImageScaleInvocation = {
*/
resample_mode?: 'nearest' | 'box' | 'bilinear' | 'hamming' | 'bicubic' | 'lanczos';
};

View File

@ -74,4 +74,3 @@ export type ImageToImageInvocation = {
*/
fit?: boolean;
};

View File

@ -26,4 +26,3 @@ export type ImageToLatentsInvocation = {
*/
model?: string;
};

View File

@ -25,4 +25,3 @@ export type ImageUrlsDTO = {
*/
thumbnail_url: string;
};

View File

@ -27,4 +27,3 @@ export type InfillColorInvocation = {
*/
color?: ColorField;
};

View File

@ -22,4 +22,3 @@ export type InfillPatchMatchInvocation = {
*/
image?: ImageField;
};

View File

@ -30,4 +30,3 @@ export type InfillTileInvocation = {
*/
seed?: number;
};

View File

@ -119,4 +119,3 @@ export type InpaintInvocation = {
*/
inpaint_replace?: number;
};

View File

@ -12,4 +12,3 @@ export type IntCollectionOutput = {
*/
collection?: Array<number>;
};

View File

@ -12,4 +12,3 @@ export type IntOutput = {
*/
'a'?: number;
};

View File

@ -24,4 +24,3 @@ export type IterateInvocation = {
*/
index?: number;
};

View File

@ -12,4 +12,3 @@ export type IterateInvocationOutput = {
*/
item: any;
};

View File

@ -11,4 +11,3 @@ export type LatentsField = {
*/
latents_name: string;
};

View File

@ -22,4 +22,3 @@ export type LatentsOutput = {
*/
height: number;
};

View File

@ -26,4 +26,3 @@ export type LatentsToImageInvocation = {
*/
model?: string;
};

View File

@ -38,7 +38,7 @@ export type LatentsToLatentsInvocation = {
/**
* The Classifier-Free Guidance, higher values may result in a result closer to the prompt
*/
cfg_scale?: number;
cfg_scale?: (number | Array<number>);
/**
* The scheduler to use
*/
@ -60,4 +60,3 @@ export type LatentsToLatentsInvocation = {
*/
strength?: number;
};

View File

@ -30,4 +30,3 @@ export type LineartAnimeImageProcessorInvocation = {
*/
image_resolution?: number;
};

View File

@ -34,4 +34,3 @@ export type LineartImageProcessorInvocation = {
*/
coarse?: boolean;
};

View File

@ -22,4 +22,3 @@ export type LoadImageInvocation = {
*/
image?: ImageField;
};

View File

@ -26,4 +26,3 @@ export type MaskFromAlphaInvocation = {
*/
invert?: boolean;
};

View File

@ -22,4 +22,3 @@ export type MaskOutput = {
*/
height?: number;
};

View File

@ -30,4 +30,3 @@ export type MediapipeFaceProcessorInvocation = {
*/
min_confidence?: number;
};

View File

@ -30,4 +30,3 @@ export type MidasDepthImageProcessorInvocation = {
*/
bg_th?: number;
};

View File

@ -38,4 +38,3 @@ export type MlsdImageProcessorInvocation = {
*/
thr_d?: number;
};

View File

@ -8,4 +8,3 @@ import type { DiffusersModelInfo } from './DiffusersModelInfo';
export type ModelsList = {
models: Record<string, (CkptModelInfo | DiffusersModelInfo)>;
};

View File

@ -24,4 +24,3 @@ export type MultiplyInvocation = {
*/
'b'?: number;
};

View File

@ -28,4 +28,3 @@ export type NoiseInvocation = {
*/
height?: number;
};

View File

@ -22,4 +22,3 @@ export type NoiseOutput = {
*/
height: number;
};

View File

@ -30,4 +30,3 @@ export type NormalbaeImageProcessorInvocation = {
*/
image_resolution?: number;
};

View File

@ -25,4 +25,3 @@ export type OffsetPaginatedResults_ImageDTO_ = {
*/
total: number;
};

View File

@ -34,4 +34,3 @@ export type OpenposeImageProcessorInvocation = {
*/
image_resolution?: number;
};

View File

@ -29,4 +29,3 @@ export type PaginatedResults_GraphExecutionState_ = {
*/
total: number;
};

View File

@ -20,4 +20,3 @@ export type ParamFloatInvocation = {
*/
param?: number;
};

View File

@ -20,4 +20,3 @@ export type ParamIntInvocation = {
*/
'a'?: number;
};

View File

@ -38,4 +38,3 @@ export type PidiImageProcessorInvocation = {
*/
scribble?: boolean;
};

View File

@ -12,4 +12,3 @@ export type PromptOutput = {
*/
prompt: string;
};

View File

@ -24,4 +24,3 @@ export type RandomIntInvocation = {
*/
high?: number;
};

View File

@ -32,4 +32,3 @@ export type RandomRangeInvocation = {
*/
seed?: number;
};

View File

@ -28,4 +28,3 @@ export type RangeInvocation = {
*/
step?: number;
};

View File

@ -28,4 +28,3 @@ export type RangeOfSizeInvocation = {
*/
step?: number;
};

View File

@ -38,4 +38,3 @@ export type ResizeLatentsInvocation = {
*/
antialias?: boolean;
};

View File

@ -26,4 +26,3 @@ export type RestoreFaceInvocation = {
*/
strength?: number;
};

View File

@ -34,4 +34,3 @@ export type ScaleLatentsInvocation = {
*/
antialias?: boolean;
};

View File

@ -22,4 +22,3 @@ export type ShowImageInvocation = {
*/
image?: ImageField;
};

View File

@ -0,0 +1,58 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* Experimental per-step parameter easing for denoising steps
*/
export type StepParamEasingInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
/**
* Whether or not this node is an intermediate node.
*/
is_intermediate?: boolean;
type?: 'step_param_easing';
/**
* The easing function to use
*/
easing?: 'Linear' | 'QuadIn' | 'QuadOut' | 'QuadInOut' | 'CubicIn' | 'CubicOut' | 'CubicInOut' | 'QuarticIn' | 'QuarticOut' | 'QuarticInOut' | 'QuinticIn' | 'QuinticOut' | 'QuinticInOut' | 'SineIn' | 'SineOut' | 'SineInOut' | 'CircularIn' | 'CircularOut' | 'CircularInOut' | 'ExponentialIn' | 'ExponentialOut' | 'ExponentialInOut' | 'ElasticIn' | 'ElasticOut' | 'ElasticInOut' | 'BackIn' | 'BackOut' | 'BackInOut' | 'BounceIn' | 'BounceOut' | 'BounceInOut';
/**
* number of denoising steps
*/
num_steps?: number;
/**
* easing starting value
*/
start_value?: number;
/**
* easing ending value
*/
end_value?: number;
/**
* fraction of steps at which to start easing
*/
start_step_percent?: number;
/**
* fraction of steps after which to end easing
*/
end_step_percent?: number;
/**
* value before easing start
*/
pre_start_value?: number;
/**
* value after easing end
*/
post_end_value?: number;
/**
* include mirror of easing function
*/
mirror?: boolean;
/**
* show easing plot
*/
show_easing_plot?: boolean;
};

View File

@ -24,4 +24,3 @@ export type SubtractInvocation = {
*/
'b'?: number;
};

View File

@ -62,4 +62,3 @@ export type TextToImageInvocation = {
*/
control_image?: ImageField;
};

View File

@ -38,7 +38,7 @@ export type TextToLatentsInvocation = {
/**
* The Classifier-Free Guidance, higher values may result in a result closer to the prompt
*/
cfg_scale?: number;
cfg_scale?: (number | Array<number>);
/**
* The scheduler to use
*/
@ -52,4 +52,3 @@ export type TextToLatentsInvocation = {
*/
control?: (ControlField | Array<ControlField>);
};

View File

@ -30,4 +30,3 @@ export type UpscaleInvocation = {
*/
level?: 2 | 4;
};

View File

@ -16,4 +16,3 @@ export type VaeRepo = {
*/
subfolder?: string;
};

View File

@ -7,4 +7,3 @@ export type ValidationError = {
msg: string;
type: string;
};

View File

@ -22,4 +22,3 @@ export type ZoeDepthImageProcessorInvocation = {
*/
image?: ImageField;
};

View File

@ -22,33 +22,33 @@ export class ImagesService {
* @throws ApiError
*/
public static listImagesWithMetadata({
imageOrigin,
categories,
isIntermediate,
offset,
limit = 10,
}: {
/**
* The origin of images to list
*/
imageOrigin?: ResourceOrigin,
/**
* The categories of image to include
*/
categories?: Array<ImageCategory>,
/**
* Whether to list intermediate images
*/
isIntermediate?: boolean,
/**
* The page offset
*/
offset?: number,
/**
* The number of images per page
*/
limit?: number,
}): CancelablePromise<OffsetPaginatedResults_ImageDTO_> {
imageOrigin,
categories,
isIntermediate,
offset,
limit = 10,
}: {
/**
* The origin of images to list
*/
imageOrigin?: ResourceOrigin,
/**
* The categories of image to include
*/
categories?: Array<ImageCategory>,
/**
* Whether to list intermediate images
*/
isIntermediate?: boolean,
/**
* The page offset
*/
offset?: number,
/**
* The number of images per page
*/
limit?: number,
}): CancelablePromise<OffsetPaginatedResults_ImageDTO_> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/images/',
@ -72,25 +72,25 @@ export class ImagesService {
* @throws ApiError
*/
public static uploadImage({
imageCategory,
isIntermediate,
formData,
sessionId,
}: {
/**
* The category of the image
*/
imageCategory: ImageCategory,
/**
* Whether this is an intermediate image
*/
isIntermediate: boolean,
formData: Body_upload_image,
/**
* The session ID associated with this upload, if any
*/
sessionId?: string,
}): CancelablePromise<ImageDTO> {
imageCategory,
isIntermediate,
formData,
sessionId,
}: {
/**
* The category of the image
*/
imageCategory: ImageCategory,
/**
* Whether this is an intermediate image
*/
isIntermediate: boolean,
formData: Body_upload_image,
/**
* The session ID associated with this upload, if any
*/
sessionId?: string,
}): CancelablePromise<ImageDTO> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/v1/images/',
@ -115,18 +115,18 @@ export class ImagesService {
* @throws ApiError
*/
public static getImageFull({
imageOrigin,
imageName,
}: {
/**
* The type of full-resolution image file to get
*/
imageOrigin: ResourceOrigin,
/**
* The name of full-resolution image file to get
*/
imageName: string,
}): CancelablePromise<any> {
imageOrigin,
imageName,
}: {
/**
* The type of full-resolution image file to get
*/
imageOrigin: ResourceOrigin,
/**
* The name of full-resolution image file to get
*/
imageName: string,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/images/{image_origin}/{image_name}',
@ -148,18 +148,18 @@ export class ImagesService {
* @throws ApiError
*/
public static deleteImage({
imageOrigin,
imageName,
}: {
/**
* The origin of image to delete
*/
imageOrigin: ResourceOrigin,
/**
* The name of the image to delete
*/
imageName: string,
}): CancelablePromise<any> {
imageOrigin,
imageName,
}: {
/**
* The origin of image to delete
*/
imageOrigin: ResourceOrigin,
/**
* The name of the image to delete
*/
imageName: string,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'DELETE',
url: '/api/v1/images/{image_origin}/{image_name}',
@ -180,20 +180,20 @@ export class ImagesService {
* @throws ApiError
*/
public static updateImage({
imageOrigin,
imageName,
requestBody,
}: {
/**
* The origin of image to update
*/
imageOrigin: ResourceOrigin,
/**
* The name of the image to update
*/
imageName: string,
requestBody: ImageRecordChanges,
}): CancelablePromise<ImageDTO> {
imageOrigin,
imageName,
requestBody,
}: {
/**
* The origin of image to update
*/
imageOrigin: ResourceOrigin,
/**
* The name of the image to update
*/
imageName: string,
requestBody: ImageRecordChanges,
}): CancelablePromise<ImageDTO> {
return __request(OpenAPI, {
method: 'PATCH',
url: '/api/v1/images/{image_origin}/{image_name}',
@ -216,18 +216,18 @@ export class ImagesService {
* @throws ApiError
*/
public static getImageMetadata({
imageOrigin,
imageName,
}: {
/**
* The origin of image to get
*/
imageOrigin: ResourceOrigin,
/**
* The name of image to get
*/
imageName: string,
}): CancelablePromise<ImageDTO> {
imageOrigin,
imageName,
}: {
/**
* The origin of image to get
*/
imageOrigin: ResourceOrigin,
/**
* The name of image to get
*/
imageName: string,
}): CancelablePromise<ImageDTO> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/images/{image_origin}/{image_name}/metadata',
@ -248,18 +248,18 @@ export class ImagesService {
* @throws ApiError
*/
public static getImageThumbnail({
imageOrigin,
imageName,
}: {
/**
* The origin of thumbnail image file to get
*/
imageOrigin: ResourceOrigin,
/**
* The name of thumbnail image file to get
*/
imageName: string,
}): CancelablePromise<any> {
imageOrigin,
imageName,
}: {
/**
* The origin of thumbnail image file to get
*/
imageOrigin: ResourceOrigin,
/**
* The name of thumbnail image file to get
*/
imageName: string,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/images/{image_origin}/{image_name}/thumbnail',
@ -281,18 +281,18 @@ export class ImagesService {
* @throws ApiError
*/
public static getImageUrls({
imageOrigin,
imageName,
}: {
/**
* The origin of the image whose URL to get
*/
imageOrigin: ResourceOrigin,
/**
* The name of the image whose URL to get
*/
imageName: string,
}): CancelablePromise<ImageUrlsDTO> {
imageOrigin,
imageName,
}: {
/**
* The origin of the image whose URL to get
*/
imageOrigin: ResourceOrigin,
/**
* The name of the image whose URL to get
*/
imageName: string,
}): CancelablePromise<ImageUrlsDTO> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/images/{image_origin}/{image_name}/urls',

View File

@ -30,10 +30,10 @@ export class ModelsService {
* @throws ApiError
*/
public static updateModel({
requestBody,
}: {
requestBody: CreateModelRequest,
}): CancelablePromise<any> {
requestBody,
}: {
requestBody: CreateModelRequest,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/v1/models/',
@ -52,10 +52,10 @@ export class ModelsService {
* @throws ApiError
*/
public static delModel({
modelName,
}: {
modelName: string,
}): CancelablePromise<any> {
modelName,
}: {
modelName: string,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'DELETE',
url: '/api/v1/models/{model_name}',

Some files were not shown because too many files have changed in this diff Show More