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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -16,7 +16,7 @@ export type ControlField = {
/** /**
* The weight given to the ControlNet * The weight given to the ControlNet
*/ */
control_weight: number; control_weight: (number | Array<number>);
/** /**
* When the ControlNet is first applied (% of total steps) * 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) * When the ControlNet is last applied (% of total steps)
*/ */
end_step_percent: number; 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; 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'; 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 * The weight given to the ControlNet
*/ */
control_weight?: number; control_weight?: (number | Array<number>);
/** /**
* When the ControlNet is first applied (% of total steps) * 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) * When the ControlNet is last applied (% of total steps)
*/ */
end_step_percent?: number; 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 = { export type ControlOutput = {
type?: 'control_output'; type?: 'control_output';
/** /**
* The output control image * The control info
*/ */
control?: ControlField; control?: ControlField;
}; };

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -12,4 +12,3 @@ export type FloatCollectionOutput = {
*/ */
collection?: Array<number>; 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; param?: number;
}; };

View File

@ -11,6 +11,7 @@ import type { ControlNetInvocation } from './ControlNetInvocation';
import type { CvInpaintInvocation } from './CvInpaintInvocation'; import type { CvInpaintInvocation } from './CvInpaintInvocation';
import type { DivideInvocation } from './DivideInvocation'; import type { DivideInvocation } from './DivideInvocation';
import type { Edge } from './Edge'; import type { Edge } from './Edge';
import type { FloatLinearRangeInvocation } from './FloatLinearRangeInvocation';
import type { GraphInvocation } from './GraphInvocation'; import type { GraphInvocation } from './GraphInvocation';
import type { HedImageProcessorInvocation } from './HedImageProcessorInvocation'; import type { HedImageProcessorInvocation } from './HedImageProcessorInvocation';
import type { ImageBlurInvocation } from './ImageBlurInvocation'; import type { ImageBlurInvocation } from './ImageBlurInvocation';
@ -55,6 +56,7 @@ import type { ResizeLatentsInvocation } from './ResizeLatentsInvocation';
import type { RestoreFaceInvocation } from './RestoreFaceInvocation'; import type { RestoreFaceInvocation } from './RestoreFaceInvocation';
import type { ScaleLatentsInvocation } from './ScaleLatentsInvocation'; import type { ScaleLatentsInvocation } from './ScaleLatentsInvocation';
import type { ShowImageInvocation } from './ShowImageInvocation'; import type { ShowImageInvocation } from './ShowImageInvocation';
import type { StepParamEasingInvocation } from './StepParamEasingInvocation';
import type { SubtractInvocation } from './SubtractInvocation'; import type { SubtractInvocation } from './SubtractInvocation';
import type { TextToImageInvocation } from './TextToImageInvocation'; import type { TextToImageInvocation } from './TextToImageInvocation';
import type { TextToLatentsInvocation } from './TextToLatentsInvocation'; import type { TextToLatentsInvocation } from './TextToLatentsInvocation';
@ -69,10 +71,9 @@ export type Graph = {
/** /**
* The nodes in this 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 * The connections between nodes and their fields in this graph
*/ */
edges?: Array<Edge>; edges?: Array<Edge>;
}; };

View File

@ -45,7 +45,7 @@ export type GraphExecutionState = {
/** /**
* The results of node executions * 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 * Errors raised when executing nodes
*/ */
@ -59,4 +59,3 @@ export type GraphExecutionState = {
*/ */
source_prepared_mapping: Record<string, Array<string>>; source_prepared_mapping: Record<string, Array<string>>;
}; };

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -26,4 +26,3 @@ export type LatentsToImageInvocation = {
*/ */
model?: string; 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 * 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 * The scheduler to use
*/ */
@ -60,4 +60,3 @@ export type LatentsToLatentsInvocation = {
*/ */
strength?: number; strength?: number;
}; };

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -22,4 +22,3 @@ export type ShowImageInvocation = {
*/ */
image?: ImageField; 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; 'b'?: number;
}; };

View File

@ -62,4 +62,3 @@ export type TextToImageInvocation = {
*/ */
control_image?: ImageField; 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 * 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 * The scheduler to use
*/ */
@ -52,4 +52,3 @@ export type TextToLatentsInvocation = {
*/ */
control?: (ControlField | Array<ControlField>); control?: (ControlField | Array<ControlField>);
}; };

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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