Skip to content

Commit 223a679

Browse files
chore(ui): regen api client
1 parent 3c60616 commit 223a679

40 files changed

+549
-181
lines changed

invokeai/frontend/web/src/services/api/index.ts

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ export { OpenAPI } from './core/OpenAPI';
77
export type { OpenAPIConfig } from './core/OpenAPI';
88

99
export type { AddInvocation } from './models/AddInvocation';
10+
export type { BaseModelType } from './models/BaseModelType';
1011
export type { Body_upload_image } from './models/Body_upload_image';
1112
export type { CannyImageProcessorInvocation } from './models/CannyImageProcessorInvocation';
1213
export type { CkptModelInfo } from './models/CkptModelInfo';
14+
export type { ClipField } from './models/ClipField';
1315
export type { CollectInvocation } from './models/CollectInvocation';
1416
export type { CollectInvocationOutput } from './models/CollectInvocationOutput';
1517
export type { ColorField } from './models/ColorField';
@@ -53,7 +55,6 @@ export type { ImageProcessorInvocation } from './models/ImageProcessorInvocation
5355
export type { ImageRecordChanges } from './models/ImageRecordChanges';
5456
export type { ImageResizeInvocation } from './models/ImageResizeInvocation';
5557
export type { ImageScaleInvocation } from './models/ImageScaleInvocation';
56-
export type { ImageToImageInvocation } from './models/ImageToImageInvocation';
5758
export type { ImageToLatentsInvocation } from './models/ImageToLatentsInvocation';
5859
export type { ImageUrlsDTO } from './models/ImageUrlsDTO';
5960
export type { InfillColorInvocation } from './models/InfillColorInvocation';
@@ -62,6 +63,14 @@ export type { InfillTileInvocation } from './models/InfillTileInvocation';
6263
export type { InpaintInvocation } from './models/InpaintInvocation';
6364
export type { IntCollectionOutput } from './models/IntCollectionOutput';
6465
export type { IntOutput } from './models/IntOutput';
66+
export type { invokeai__backend__model_management__models__controlnet__ControlNetModel__Config } from './models/invokeai__backend__model_management__models__controlnet__ControlNetModel__Config';
67+
export type { invokeai__backend__model_management__models__lora__LoRAModel__Config } from './models/invokeai__backend__model_management__models__lora__LoRAModel__Config';
68+
export type { invokeai__backend__model_management__models__stable_diffusion__StableDiffusion1Model__CheckpointConfig } from './models/invokeai__backend__model_management__models__stable_diffusion__StableDiffusion1Model__CheckpointConfig';
69+
export type { invokeai__backend__model_management__models__stable_diffusion__StableDiffusion1Model__DiffusersConfig } from './models/invokeai__backend__model_management__models__stable_diffusion__StableDiffusion1Model__DiffusersConfig';
70+
export type { invokeai__backend__model_management__models__stable_diffusion__StableDiffusion2Model__CheckpointConfig } from './models/invokeai__backend__model_management__models__stable_diffusion__StableDiffusion2Model__CheckpointConfig';
71+
export type { invokeai__backend__model_management__models__stable_diffusion__StableDiffusion2Model__DiffusersConfig } from './models/invokeai__backend__model_management__models__stable_diffusion__StableDiffusion2Model__DiffusersConfig';
72+
export type { invokeai__backend__model_management__models__textual_inversion__TextualInversionModel__Config } from './models/invokeai__backend__model_management__models__textual_inversion__TextualInversionModel__Config';
73+
export type { invokeai__backend__model_management__models__vae__VaeModel__Config } from './models/invokeai__backend__model_management__models__vae__VaeModel__Config';
6574
export type { IterateInvocation } from './models/IterateInvocation';
6675
export type { IterateInvocationOutput } from './models/IterateInvocationOutput';
6776
export type { LatentsField } from './models/LatentsField';
@@ -71,12 +80,20 @@ export type { LatentsToLatentsInvocation } from './models/LatentsToLatentsInvoca
7180
export type { LineartAnimeImageProcessorInvocation } from './models/LineartAnimeImageProcessorInvocation';
7281
export type { LineartImageProcessorInvocation } from './models/LineartImageProcessorInvocation';
7382
export type { LoadImageInvocation } from './models/LoadImageInvocation';
83+
export type { LoraInfo } from './models/LoraInfo';
84+
export type { LoraLoaderInvocation } from './models/LoraLoaderInvocation';
85+
export type { LoraLoaderOutput } from './models/LoraLoaderOutput';
7486
export type { MaskFromAlphaInvocation } from './models/MaskFromAlphaInvocation';
7587
export type { MaskOutput } from './models/MaskOutput';
7688
export type { MediapipeFaceProcessorInvocation } from './models/MediapipeFaceProcessorInvocation';
7789
export type { MidasDepthImageProcessorInvocation } from './models/MidasDepthImageProcessorInvocation';
7890
export type { MlsdImageProcessorInvocation } from './models/MlsdImageProcessorInvocation';
91+
export type { ModelError } from './models/ModelError';
92+
export type { ModelInfo } from './models/ModelInfo';
93+
export type { ModelLoaderOutput } from './models/ModelLoaderOutput';
7994
export type { ModelsList } from './models/ModelsList';
95+
export type { ModelType } from './models/ModelType';
96+
export type { ModelVariantType } from './models/ModelVariantType';
8097
export type { MultiplyInvocation } from './models/MultiplyInvocation';
8198
export type { NoiseInvocation } from './models/NoiseInvocation';
8299
export type { NoiseOutput } from './models/NoiseOutput';
@@ -97,12 +114,17 @@ export type { ResizeLatentsInvocation } from './models/ResizeLatentsInvocation';
97114
export type { ResourceOrigin } from './models/ResourceOrigin';
98115
export type { RestoreFaceInvocation } from './models/RestoreFaceInvocation';
99116
export type { ScaleLatentsInvocation } from './models/ScaleLatentsInvocation';
117+
export type { SchedulerPredictionType } from './models/SchedulerPredictionType';
118+
export type { SD1ModelLoaderInvocation } from './models/SD1ModelLoaderInvocation';
119+
export type { SD2ModelLoaderInvocation } from './models/SD2ModelLoaderInvocation';
100120
export type { ShowImageInvocation } from './models/ShowImageInvocation';
101121
export type { StepParamEasingInvocation } from './models/StepParamEasingInvocation';
122+
export type { SubModelType } from './models/SubModelType';
102123
export type { SubtractInvocation } from './models/SubtractInvocation';
103-
export type { TextToImageInvocation } from './models/TextToImageInvocation';
104124
export type { TextToLatentsInvocation } from './models/TextToLatentsInvocation';
125+
export type { UNetField } from './models/UNetField';
105126
export type { UpscaleInvocation } from './models/UpscaleInvocation';
127+
export type { VaeField } from './models/VaeField';
106128
export type { VaeRepo } from './models/VaeRepo';
107129
export type { ValidationError } from './models/ValidationError';
108130
export type { ZoeDepthImageProcessorInvocation } from './models/ZoeDepthImageProcessorInvocation';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* istanbul ignore file */
2+
/* tslint:disable */
3+
/* eslint-disable */
4+
5+
/**
6+
* An enumeration.
7+
*/
8+
export type BaseModelType = 'sd-1' | 'sd-2';

invokeai/frontend/web/src/services/api/models/CkptModelInfo.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ export type CkptModelInfo = {
77
* A description of the model
88
*/
99
description?: string;
10+
/**
11+
* The name of the model
12+
*/
13+
model_name: string;
14+
/**
15+
* The type of the model
16+
*/
17+
model_type: string;
1018
format?: 'ckpt';
1119
/**
1220
* The path to the model config
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/* istanbul ignore file */
2+
/* tslint:disable */
3+
/* eslint-disable */
4+
5+
import type { LoraInfo } from './LoraInfo';
6+
import type { ModelInfo } from './ModelInfo';
7+
8+
export type ClipField = {
9+
/**
10+
* Info to load tokenizer submodel
11+
*/
12+
tokenizer: ModelInfo;
13+
/**
14+
* Info to load text_encoder submodel
15+
*/
16+
text_encoder: ModelInfo;
17+
/**
18+
* Loras to apply on model loading
19+
*/
20+
loras: Array<LoraInfo>;
21+
};
22+

invokeai/frontend/web/src/services/api/models/CompelInvocation.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
/* tslint:disable */
33
/* eslint-disable */
44

5+
import type { ClipField } from './ClipField';
6+
57
/**
68
* Parse prompt using compel package to conditioning.
79
*/
@@ -20,8 +22,8 @@ export type CompelInvocation = {
2022
*/
2123
prompt?: string;
2224
/**
23-
* Model to use
25+
* Clip to use
2426
*/
25-
model?: string;
27+
clip?: ClipField;
2628
};
2729

invokeai/frontend/web/src/services/api/models/DiffusersModelInfo.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ export type DiffusersModelInfo = {
99
* A description of the model
1010
*/
1111
description?: string;
12-
format?: 'diffusers';
12+
/**
13+
* The name of the model
14+
*/
15+
model_name: string;
16+
/**
17+
* The type of the model
18+
*/
19+
model_type: string;
20+
format?: 'folder';
1321
/**
1422
* The VAE repo to use for this model
1523
*/

invokeai/frontend/web/src/services/api/models/Graph.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import type { ImagePasteInvocation } from './ImagePasteInvocation';
2626
import type { ImageProcessorInvocation } from './ImageProcessorInvocation';
2727
import type { ImageResizeInvocation } from './ImageResizeInvocation';
2828
import type { ImageScaleInvocation } from './ImageScaleInvocation';
29-
import type { ImageToImageInvocation } from './ImageToImageInvocation';
3029
import type { ImageToLatentsInvocation } from './ImageToLatentsInvocation';
3130
import type { InfillColorInvocation } from './InfillColorInvocation';
3231
import type { InfillPatchMatchInvocation } from './InfillPatchMatchInvocation';
@@ -38,6 +37,7 @@ import type { LatentsToLatentsInvocation } from './LatentsToLatentsInvocation';
3837
import type { LineartAnimeImageProcessorInvocation } from './LineartAnimeImageProcessorInvocation';
3938
import type { LineartImageProcessorInvocation } from './LineartImageProcessorInvocation';
4039
import type { LoadImageInvocation } from './LoadImageInvocation';
40+
import type { LoraLoaderInvocation } from './LoraLoaderInvocation';
4141
import type { MaskFromAlphaInvocation } from './MaskFromAlphaInvocation';
4242
import type { MediapipeFaceProcessorInvocation } from './MediapipeFaceProcessorInvocation';
4343
import type { MidasDepthImageProcessorInvocation } from './MidasDepthImageProcessorInvocation';
@@ -56,10 +56,11 @@ import type { RangeOfSizeInvocation } from './RangeOfSizeInvocation';
5656
import type { ResizeLatentsInvocation } from './ResizeLatentsInvocation';
5757
import type { RestoreFaceInvocation } from './RestoreFaceInvocation';
5858
import type { ScaleLatentsInvocation } from './ScaleLatentsInvocation';
59+
import type { SD1ModelLoaderInvocation } from './SD1ModelLoaderInvocation';
60+
import type { SD2ModelLoaderInvocation } from './SD2ModelLoaderInvocation';
5961
import type { ShowImageInvocation } from './ShowImageInvocation';
6062
import type { StepParamEasingInvocation } from './StepParamEasingInvocation';
6163
import type { SubtractInvocation } from './SubtractInvocation';
62-
import type { TextToImageInvocation } from './TextToImageInvocation';
6364
import type { TextToLatentsInvocation } from './TextToLatentsInvocation';
6465
import type { UpscaleInvocation } from './UpscaleInvocation';
6566
import type { ZoeDepthImageProcessorInvocation } from './ZoeDepthImageProcessorInvocation';
@@ -72,7 +73,7 @@ export type Graph = {
7273
/**
7374
* The nodes in this graph
7475
*/
75-
nodes?: Record<string, (LoadImageInvocation | ShowImageInvocation | ImageCropInvocation | ImagePasteInvocation | MaskFromAlphaInvocation | ImageMultiplyInvocation | ImageChannelInvocation | ImageConvertInvocation | ImageBlurInvocation | ImageResizeInvocation | ImageScaleInvocation | ImageLerpInvocation | ImageInverseLerpInvocation | ControlNetInvocation | ImageProcessorInvocation | DynamicPromptInvocation | CompelInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | ParamFloatInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | CvInpaintInvocation | RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | FloatLinearRangeInvocation | StepParamEasingInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageProcessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation)>;
76+
nodes?: Record<string, (LoadImageInvocation | ShowImageInvocation | ImageCropInvocation | ImagePasteInvocation | MaskFromAlphaInvocation | ImageMultiplyInvocation | ImageChannelInvocation | ImageConvertInvocation | ImageBlurInvocation | ImageResizeInvocation | ImageScaleInvocation | ImageLerpInvocation | ImageInverseLerpInvocation | ControlNetInvocation | ImageProcessorInvocation | SD1ModelLoaderInvocation | SD2ModelLoaderInvocation | LoraLoaderInvocation | DynamicPromptInvocation | CompelInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | ParamFloatInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | CvInpaintInvocation | RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | FloatLinearRangeInvocation | StepParamEasingInvocation | UpscaleInvocation | RestoreFaceInvocation | InpaintInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageProcessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | LatentsToLatentsInvocation)>;
7677
/**
7778
* The connections between nodes and their fields in this graph
7879
*/

invokeai/frontend/web/src/services/api/models/GraphExecutionState.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ import type { IntCollectionOutput } from './IntCollectionOutput';
1414
import type { IntOutput } from './IntOutput';
1515
import type { IterateInvocationOutput } from './IterateInvocationOutput';
1616
import type { LatentsOutput } from './LatentsOutput';
17+
import type { LoraLoaderOutput } from './LoraLoaderOutput';
1718
import type { MaskOutput } from './MaskOutput';
19+
import type { ModelLoaderOutput } from './ModelLoaderOutput';
1820
import type { NoiseOutput } from './NoiseOutput';
1921
import type { PromptCollectionOutput } from './PromptCollectionOutput';
2022
import type { PromptOutput } from './PromptOutput';
@@ -46,7 +48,7 @@ export type GraphExecutionState = {
4648
/**
4749
* The results of node executions
4850
*/
49-
results: Record<string, (ImageOutput | MaskOutput | ControlOutput | PromptOutput | PromptCollectionOutput | CompelOutput | IntOutput | FloatOutput | LatentsOutput | NoiseOutput | IntCollectionOutput | FloatCollectionOutput | GraphInvocationOutput | IterateInvocationOutput | CollectInvocationOutput)>;
51+
results: Record<string, (ImageOutput | MaskOutput | ControlOutput | ModelLoaderOutput | LoraLoaderOutput | PromptOutput | PromptCollectionOutput | CompelOutput | IntOutput | FloatOutput | LatentsOutput | NoiseOutput | IntCollectionOutput | FloatCollectionOutput | GraphInvocationOutput | IterateInvocationOutput | CollectInvocationOutput)>;
5052
/**
5153
* Errors raised when executing nodes
5254
*/

invokeai/frontend/web/src/services/api/models/ImageToImageInvocation.ts

Lines changed: 0 additions & 77 deletions
This file was deleted.

invokeai/frontend/web/src/services/api/models/ImageToLatentsInvocation.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/* eslint-disable */
44

55
import type { ImageField } from './ImageField';
6+
import type { VaeField } from './VaeField';
67

78
/**
89
* Encodes an image into latents.
@@ -22,8 +23,12 @@ export type ImageToLatentsInvocation = {
2223
*/
2324
image?: ImageField;
2425
/**
25-
* The model to use
26+
* Vae submodel
2627
*/
27-
model?: string;
28+
vae?: VaeField;
29+
/**
30+
* Encode latents by overlaping tiles(less memory consumption)
31+
*/
32+
tiled?: boolean;
2833
};
2934

0 commit comments

Comments
 (0)