diff --git a/invokeai/frontend/web/src/services/api/schema.d.ts b/invokeai/frontend/web/src/services/api/schema.d.ts index f8e48bda5c..81bfed5a1a 100644 --- a/invokeai/frontend/web/src/services/api/schema.d.ts +++ b/invokeai/frontend/web/src/services/api/schema.d.ts @@ -85,6 +85,37 @@ export type paths = { */ put: operations["merge_models"]; }; + "/api/v1/model/record/": { + /** + * List Model Records + * @description Get a list of models. + */ + get: operations["list_model_records"]; + }; + "/api/v1/model/record/i/{key}": { + /** + * Get Model Record + * @description Get a model record + */ + get: operations["get_model_record"]; + /** + * Del Model Record + * @description Delete Model + */ + delete: operations["del_model_record"]; + /** + * Update Model Record + * @description Update model contents with a new config. If the model name or base fields are changed, then the model is renamed. + */ + patch: operations["update_model_record"]; + }; + "/api/v1/model/record/i/": { + /** + * Add Model Record + * @description Add a model using the configuration information appropriate for its type. + */ + post: operations["add_model_record"]; + }; "/api/v1/images/upload": { /** * Upload Image @@ -482,11 +513,6 @@ export type components = { */ version: string; }; - /** - * BaseModelType - * @enum {string} - */ - BaseModelType: "any" | "sd-1" | "sd-2" | "sdxl" | "sdxl-refiner"; /** Batch */ Batch: { /** @@ -617,10 +643,10 @@ export type components = { /** * @description The color of the image * @default { - * "a": 255, - * "b": 0, + * "r": 0, * "g": 0, - * "r": 0 + * "b": 0, + * "a": 255 * } */ color?: components["schemas"]["ColorField"]; @@ -999,11 +1025,56 @@ export type components = { */ type: "clip_output"; }; + /** + * CLIPVisionDiffusersConfig + * @description Model config for ClipVision. + */ + CLIPVisionDiffusersConfig: { + /** Path */ + path: string; + /** Name */ + name: string; + base: components["schemas"]["invokeai__backend__model_manager__config__BaseModelType"]; + /** + * Type + * @default clip_vision + * @constant + */ + type?: "clip_vision"; + /** + * Format + * @constant + */ + format: "diffusers"; + /** + * Key + * @description unique key for model + * @default + */ + key?: string; + /** + * Original Hash + * @description original fasthash of model contents + */ + original_hash?: string | null; + /** + * Current Hash + * @description current fasthash of model contents + */ + current_hash?: string | null; + /** Description */ + description?: string | null; + /** + * Source + * @description Model download source (URL or repo_id) + */ + source?: string | null; + }; /** CLIPVisionModelDiffusersConfig */ CLIPVisionModelDiffusersConfig: { /** Model Name */ model_name: string; - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** * Model Type * @default clip_vision @@ -1029,7 +1100,7 @@ export type components = { */ model_name: string; /** @description Base model (usually 'Any') */ - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; }; /** * CV2 Infill @@ -1376,10 +1447,10 @@ export type components = { /** * @description The color value * @default { - * "a": 255, - * "b": 0, + * "r": 0, * "g": 0, - * "r": 0 + * "b": 0, + * "a": 255 * } */ color?: components["schemas"]["ColorField"]; @@ -1696,6 +1767,103 @@ export type components = { */ resize_mode?: "just_resize" | "crop_resize" | "fill_resize" | "just_resize_simple"; }; + /** + * ControlNetCheckpointConfig + * @description Model config for ControlNet models (diffusers version). + */ + ControlNetCheckpointConfig: { + /** Path */ + path: string; + /** Name */ + name: string; + base: components["schemas"]["invokeai__backend__model_manager__config__BaseModelType"]; + /** + * Type + * @default controlnet + * @constant + */ + type?: "controlnet"; + /** + * Format + * @default checkpoint + * @constant + */ + format?: "checkpoint"; + /** + * Key + * @description unique key for model + * @default + */ + key?: string; + /** + * Original Hash + * @description original fasthash of model contents + */ + original_hash?: string | null; + /** + * Current Hash + * @description current fasthash of model contents + */ + current_hash?: string | null; + /** Description */ + description?: string | null; + /** + * Source + * @description Model download source (URL or repo_id) + */ + source?: string | null; + /** + * Config + * @description path to the checkpoint model config file + */ + config: string; + }; + /** + * ControlNetDiffusersConfig + * @description Model config for ControlNet models (diffusers version). + */ + ControlNetDiffusersConfig: { + /** Path */ + path: string; + /** Name */ + name: string; + base: components["schemas"]["invokeai__backend__model_manager__config__BaseModelType"]; + /** + * Type + * @default controlnet + * @constant + */ + type?: "controlnet"; + /** + * Format + * @default diffusers + * @constant + */ + format?: "diffusers"; + /** + * Key + * @description unique key for model + * @default + */ + key?: string; + /** + * Original Hash + * @description original fasthash of model contents + */ + original_hash?: string | null; + /** + * Current Hash + * @description current fasthash of model contents + */ + current_hash?: string | null; + /** Description */ + description?: string | null; + /** + * Source + * @description Model download source (URL or repo_id) + */ + source?: string | null; + }; /** * ControlNet * @description Collects ControlNet info to pass to other nodes @@ -1765,7 +1933,7 @@ export type components = { ControlNetModelCheckpointConfig: { /** Model Name */ model_name: string; - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** * Model Type * @default controlnet @@ -1789,7 +1957,7 @@ export type components = { ControlNetModelDiffusersConfig: { /** Model Name */ model_name: string; - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** * Model Type * @default controlnet @@ -1818,7 +1986,7 @@ export type components = { */ model_name: string; /** @description Base model */ - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; }; /** * ControlOutput @@ -3048,7 +3216,7 @@ export type components = { * @description The nodes in this graph */ nodes?: { - [key: string]: components["schemas"]["HedImageProcessorInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["ONNXTextToLatentsInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["MidasDepthImageProcessorInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["MediapipeFaceProcessorInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["StringInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["MlsdImageProcessorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["AddInvocation"] | components["schemas"]["TestInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["LineartImageProcessorInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["NormalbaeImageProcessorInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["VaeLoaderInvocation"] | components["schemas"]["SDXLLoraLoaderInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["GraphInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["LeresImageProcessorInvocation"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["LoraLoaderInvocation"] | components["schemas"]["CannyImageProcessorInvocation"] | components["schemas"]["LineartAnimeImageProcessorInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["TestInvocation2"] | components["schemas"]["ContentShuffleImageProcessorInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["ONNXLatentsToImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["PidiImageProcessorInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SegmentAnythingProcessorInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ClipSkipInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["TestInvocation3"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["ZoeDepthImageProcessorInvocation"] | components["schemas"]["ONNXPromptInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["TileResamplerProcessorInvocation"] | components["schemas"]["OpenposeImageProcessorInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["ColorMapImageProcessorInvocation"] | components["schemas"]["OnnxModelLoaderInvocation"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["StepParamEasingInvocation"]; + [key: string]: components["schemas"]["GraphInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["CannyImageProcessorInvocation"] | components["schemas"]["TileResamplerProcessorInvocation"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["NormalbaeImageProcessorInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["OnnxModelLoaderInvocation"] | components["schemas"]["SegmentAnythingProcessorInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["VaeLoaderInvocation"] | components["schemas"]["StringInvocation"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ColorMapImageProcessorInvocation"] | components["schemas"]["TestInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["MlsdImageProcessorInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["MediapipeFaceProcessorInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["FloatInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["ClipSkipInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["ONNXPromptInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["LineartImageProcessorInvocation"] | components["schemas"]["ContentShuffleImageProcessorInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["TestInvocation2"] | components["schemas"]["PidiImageProcessorInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["OpenposeImageProcessorInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["AddInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["TestInvocation3"] | components["schemas"]["ONNXLatentsToImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["LeresImageProcessorInvocation"] | components["schemas"]["ONNXTextToLatentsInvocation"] | components["schemas"]["ZoeDepthImageProcessorInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["HedImageProcessorInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["MidasDepthImageProcessorInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["LoraLoaderInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["LineartAnimeImageProcessorInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["StepParamEasingInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["SDXLLoraLoaderInvocation"]; }; /** * Edges @@ -3085,7 +3253,7 @@ export type components = { * @description The results of node executions */ results: { - [key: string]: components["schemas"]["IterateInvocationOutput"] | components["schemas"]["LatentsCollectionOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["String2Output"] | components["schemas"]["StringOutput"] | components["schemas"]["StringCollectionOutput"] | components["schemas"]["T2IAdapterOutput"] | components["schemas"]["IntegerCollectionOutput"] | components["schemas"]["BooleanCollectionOutput"] | components["schemas"]["StringPosNegOutput"] | components["schemas"]["LoraLoaderOutput"] | components["schemas"]["MetadataOutput"] | components["schemas"]["FloatOutput"] | components["schemas"]["FaceOffOutput"] | components["schemas"]["SDXLLoraLoaderOutput"] | components["schemas"]["UNetOutput"] | components["schemas"]["ConditioningOutput"] | components["schemas"]["FaceMaskOutput"] | components["schemas"]["SeamlessModeOutput"] | components["schemas"]["FloatCollectionOutput"] | components["schemas"]["ColorCollectionOutput"] | components["schemas"]["ColorOutput"] | components["schemas"]["CLIPOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["ONNXModelLoaderOutput"] | components["schemas"]["IPAdapterOutput"] | components["schemas"]["SDXLRefinerModelLoaderOutput"] | components["schemas"]["ClipSkipInvocationOutput"] | components["schemas"]["ModelLoaderOutput"] | components["schemas"]["NoiseOutput"] | components["schemas"]["IntegerOutput"] | components["schemas"]["BooleanOutput"] | components["schemas"]["SchedulerOutput"] | components["schemas"]["MetadataItemOutput"] | components["schemas"]["ImageOutput"] | components["schemas"]["ControlOutput"] | components["schemas"]["ConditioningCollectionOutput"] | components["schemas"]["VAEOutput"] | components["schemas"]["DenoiseMaskOutput"] | components["schemas"]["CollectInvocationOutput"] | components["schemas"]["GraphInvocationOutput"] | components["schemas"]["SDXLModelLoaderOutput"]; + [key: string]: components["schemas"]["IntegerOutput"] | components["schemas"]["LatentsCollectionOutput"] | components["schemas"]["ColorCollectionOutput"] | components["schemas"]["StringOutput"] | components["schemas"]["SDXLRefinerModelLoaderOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["FloatCollectionOutput"] | components["schemas"]["IterateInvocationOutput"] | components["schemas"]["ONNXModelLoaderOutput"] | components["schemas"]["DenoiseMaskOutput"] | components["schemas"]["ControlOutput"] | components["schemas"]["SDXLModelLoaderOutput"] | components["schemas"]["LoraLoaderOutput"] | components["schemas"]["ConditioningOutput"] | components["schemas"]["SeamlessModeOutput"] | components["schemas"]["FaceOffOutput"] | components["schemas"]["ModelLoaderOutput"] | components["schemas"]["StringPosNegOutput"] | components["schemas"]["UNetOutput"] | components["schemas"]["ImageOutput"] | components["schemas"]["GraphInvocationOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["StringCollectionOutput"] | components["schemas"]["SDXLLoraLoaderOutput"] | components["schemas"]["ColorOutput"] | components["schemas"]["ConditioningCollectionOutput"] | components["schemas"]["ClipSkipInvocationOutput"] | components["schemas"]["IPAdapterOutput"] | components["schemas"]["CLIPOutput"] | components["schemas"]["IntegerCollectionOutput"] | components["schemas"]["FaceMaskOutput"] | components["schemas"]["NoiseOutput"] | components["schemas"]["CollectInvocationOutput"] | components["schemas"]["SchedulerOutput"] | components["schemas"]["T2IAdapterOutput"] | components["schemas"]["MetadataOutput"] | components["schemas"]["MetadataItemOutput"] | components["schemas"]["BooleanOutput"] | components["schemas"]["FloatOutput"] | components["schemas"]["BooleanCollectionOutput"] | components["schemas"]["String2Output"] | components["schemas"]["VAEOutput"]; }; /** * Errors @@ -3207,6 +3375,51 @@ export type components = { */ type: "hed_image_processor"; }; + /** + * IPAdapterConfig + * @description Model config for IP Adaptor format models. + */ + IPAdapterConfig: { + /** Path */ + path: string; + /** Name */ + name: string; + base: components["schemas"]["invokeai__backend__model_manager__config__BaseModelType"]; + /** + * Type + * @default ip_adapter + * @constant + */ + type?: "ip_adapter"; + /** + * Format + * @constant + */ + format: "invokeai"; + /** + * Key + * @description unique key for model + * @default + */ + key?: string; + /** + * Original Hash + * @description original fasthash of model contents + */ + original_hash?: string | null; + /** + * Current Hash + * @description current fasthash of model contents + */ + current_hash?: string | null; + /** Description */ + description?: string | null; + /** + * Source + * @description Model download source (URL or repo_id) + */ + source?: string | null; + }; /** IPAdapterField */ IPAdapterField: { /** @@ -3327,13 +3540,13 @@ export type components = { */ model_name: string; /** @description Base model */ - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; }; /** IPAdapterModelInvokeAIConfig */ IPAdapterModelInvokeAIConfig: { /** Model Name */ model_name: string; - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** * Model Type * @default ip_adapter @@ -4415,10 +4628,10 @@ export type components = { /** * @description The color to use to infill * @default { - * "a": 255, - * "b": 127, + * "r": 127, * "g": 127, - * "r": 127 + * "b": 127, + * "a": 255 * } */ color?: components["schemas"]["ColorField"]; @@ -5130,6 +5343,51 @@ export type components = { */ type: "lineart_image_processor"; }; + /** + * LoRAConfig + * @description Model config for LoRA/Lycoris models. + */ + LoRAConfig: { + /** Path */ + path: string; + /** Name */ + name: string; + base: components["schemas"]["invokeai__backend__model_manager__config__BaseModelType"]; + /** + * Type + * @default lora + * @constant + */ + type?: "lora"; + /** + * Format + * @enum {string} + */ + format: "lycoris" | "diffusers"; + /** + * Key + * @description unique key for model + * @default + */ + key?: string; + /** + * Original Hash + * @description original fasthash of model contents + */ + original_hash?: string | null; + /** + * Current Hash + * @description current fasthash of model contents + */ + current_hash?: string | null; + /** Description */ + description?: string | null; + /** + * Source + * @description Model download source (URL or repo_id) + */ + source?: string | null; + }; /** * LoRAMetadataField * @description LoRA Metadata Field @@ -5147,7 +5405,7 @@ export type components = { LoRAModelConfig: { /** Model Name */ model_name: string; - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** * Model Type * @default lora @@ -5172,7 +5430,7 @@ export type components = { */ model_name: string; /** @description Base model */ - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; }; /** * LoRAModelFormat @@ -5192,9 +5450,9 @@ export type components = { */ model_name: string; /** @description Base model */ - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** @description Info to load submodel */ - model_type: components["schemas"]["ModelType"]; + model_type: components["schemas"]["invokeai__backend__model_management__models__base__ModelType"]; /** @description Info to load submodel */ submodel?: components["schemas"]["SubModelType"] | null; /** @@ -5275,6 +5533,128 @@ export type components = { */ type: "lora_loader_output"; }; + /** + * MainCheckpointConfig + * @description Model config for main checkpoint models. + */ + MainCheckpointConfig: { + /** Path */ + path: string; + /** Name */ + name: string; + base: components["schemas"]["invokeai__backend__model_manager__config__BaseModelType"]; + /** + * Type + * @default main + * @constant + */ + type?: "main"; + /** + * Format + * @default checkpoint + * @constant + */ + format?: "checkpoint"; + /** + * Key + * @description unique key for model + * @default + */ + key?: string; + /** + * Original Hash + * @description original fasthash of model contents + */ + original_hash?: string | null; + /** + * Current Hash + * @description current fasthash of model contents + */ + current_hash?: string | null; + /** Description */ + description?: string | null; + /** + * Source + * @description Model download source (URL or repo_id) + */ + source?: string | null; + /** Vae */ + vae?: string | null; + /** @default normal */ + variant?: components["schemas"]["invokeai__backend__model_manager__config__ModelVariantType"]; + /** + * Ztsnr Training + * @default false + */ + ztsnr_training?: boolean; + /** + * Config + * @description path to the checkpoint model config file + */ + config: string; + }; + /** + * MainDiffusersConfig + * @description Model config for main diffusers models. + */ + MainDiffusersConfig: { + /** Path */ + path: string; + /** Name */ + name: string; + base: components["schemas"]["invokeai__backend__model_manager__config__BaseModelType"]; + /** + * Type + * @default main + * @constant + */ + type?: "main"; + /** + * Format + * @default diffusers + * @constant + */ + format?: "diffusers"; + /** + * Key + * @description unique key for model + * @default + */ + key?: string; + /** + * Original Hash + * @description original fasthash of model contents + */ + original_hash?: string | null; + /** + * Current Hash + * @description current fasthash of model contents + */ + current_hash?: string | null; + /** Description */ + description?: string | null; + /** + * Source + * @description Model download source (URL or repo_id) + */ + source?: string | null; + /** Vae */ + vae?: string | null; + /** @default normal */ + variant?: components["schemas"]["invokeai__backend__model_manager__config__ModelVariantType"]; + /** + * Ztsnr Training + * @default false + */ + ztsnr_training?: boolean; + /** @default epsilon */ + prediction_type?: components["schemas"]["invokeai__backend__model_manager__config__SchedulerPredictionType"]; + /** + * Upcast Attention + * @default false + */ + upcast_attention?: boolean; + }; /** * MainModelField * @description Main model field @@ -5286,9 +5666,9 @@ export type components = { */ model_name: string; /** @description Base model */ - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** @description Model Type */ - model_type: components["schemas"]["ModelType"]; + model_type: components["schemas"]["invokeai__backend__model_management__models__base__ModelType"]; }; /** * Main Model @@ -5808,9 +6188,9 @@ export type components = { */ model_name: string; /** @description Base model */ - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** @description Info to load submodel */ - model_type: components["schemas"]["ModelType"]; + model_type: components["schemas"]["invokeai__backend__model_management__models__base__ModelType"]; /** @description Info to load submodel */ submodel?: components["schemas"]["SubModelType"] | null; }; @@ -5841,21 +6221,6 @@ export type components = { */ unet: components["schemas"]["UNetField"]; }; - /** - * ModelType - * @enum {string} - */ - ModelType: "onnx" | "main" | "vae" | "lora" | "controlnet" | "embedding" | "ip_adapter" | "clip_vision" | "t2i_adapter"; - /** - * ModelVariantType - * @enum {string} - */ - ModelVariantType: "normal" | "inpaint" | "depth"; - /** ModelsList */ - ModelsList: { - /** Models */ - models: (components["schemas"]["ONNXStableDiffusion1ModelConfig"] | components["schemas"]["StableDiffusion1ModelCheckpointConfig"] | components["schemas"]["StableDiffusion1ModelDiffusersConfig"] | components["schemas"]["VaeModelConfig"] | components["schemas"]["LoRAModelConfig"] | components["schemas"]["ControlNetModelCheckpointConfig"] | components["schemas"]["ControlNetModelDiffusersConfig"] | components["schemas"]["TextualInversionModelConfig"] | components["schemas"]["IPAdapterModelInvokeAIConfig"] | components["schemas"]["CLIPVisionModelDiffusersConfig"] | components["schemas"]["T2IAdapterModelDiffusersConfig"] | components["schemas"]["ONNXStableDiffusion2ModelConfig"] | components["schemas"]["StableDiffusion2ModelCheckpointConfig"] | components["schemas"]["StableDiffusion2ModelDiffusersConfig"] | components["schemas"]["StableDiffusionXLModelCheckpointConfig"] | components["schemas"]["StableDiffusionXLModelDiffusersConfig"])[]; - }; /** * Multiply Integers * @description Multiplies two numbers @@ -6141,11 +6506,143 @@ export type components = { */ type: "prompt_onnx"; }; + /** + * ONNXSD1Config + * @description Model config for ONNX format models based on sd-1. + */ + ONNXSD1Config: { + /** Path */ + path: string; + /** Name */ + name: string; + /** + * Base + * @default sd-1 + * @constant + */ + base?: "sd-1"; + /** + * Type + * @default onnx + * @constant + */ + type?: "onnx"; + /** + * Format + * @enum {string} + */ + format: "onnx" | "olive"; + /** + * Key + * @description unique key for model + * @default + */ + key?: string; + /** + * Original Hash + * @description original fasthash of model contents + */ + original_hash?: string | null; + /** + * Current Hash + * @description current fasthash of model contents + */ + current_hash?: string | null; + /** Description */ + description?: string | null; + /** + * Source + * @description Model download source (URL or repo_id) + */ + source?: string | null; + /** Vae */ + vae?: string | null; + /** @default normal */ + variant?: components["schemas"]["invokeai__backend__model_manager__config__ModelVariantType"]; + /** + * Ztsnr Training + * @default false + */ + ztsnr_training?: boolean; + /** @default epsilon */ + prediction_type?: components["schemas"]["invokeai__backend__model_manager__config__SchedulerPredictionType"]; + /** + * Upcast Attention + * @default false + */ + upcast_attention?: boolean; + }; + /** + * ONNXSD2Config + * @description Model config for ONNX format models based on sd-2. + */ + ONNXSD2Config: { + /** Path */ + path: string; + /** Name */ + name: string; + /** + * Base + * @default sd-2 + * @constant + */ + base?: "sd-2"; + /** + * Type + * @default onnx + * @constant + */ + type?: "onnx"; + /** + * Format + * @enum {string} + */ + format: "onnx" | "olive"; + /** + * Key + * @description unique key for model + * @default + */ + key?: string; + /** + * Original Hash + * @description original fasthash of model contents + */ + original_hash?: string | null; + /** + * Current Hash + * @description current fasthash of model contents + */ + current_hash?: string | null; + /** Description */ + description?: string | null; + /** + * Source + * @description Model download source (URL or repo_id) + */ + source?: string | null; + /** Vae */ + vae?: string | null; + /** @default normal */ + variant?: components["schemas"]["invokeai__backend__model_manager__config__ModelVariantType"]; + /** + * Ztsnr Training + * @default false + */ + ztsnr_training?: boolean; + /** @default v_prediction */ + prediction_type?: components["schemas"]["invokeai__backend__model_manager__config__SchedulerPredictionType"]; + /** + * Upcast Attention + * @default true + */ + upcast_attention?: boolean; + }; /** ONNXStableDiffusion1ModelConfig */ ONNXStableDiffusion1ModelConfig: { /** Model Name */ model_name: string; - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** * Model Type * @default onnx @@ -6162,13 +6659,13 @@ export type components = { */ model_format: "onnx"; error?: components["schemas"]["ModelError"] | null; - variant: components["schemas"]["ModelVariantType"]; + variant: components["schemas"]["invokeai__backend__model_management__models__base__ModelVariantType"]; }; /** ONNXStableDiffusion2ModelConfig */ ONNXStableDiffusion2ModelConfig: { /** Model Name */ model_name: string; - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** * Model Type * @default onnx @@ -6185,8 +6682,8 @@ export type components = { */ model_format: "onnx"; error?: components["schemas"]["ModelError"] | null; - variant: components["schemas"]["ModelVariantType"]; - prediction_type: components["schemas"]["SchedulerPredictionType"]; + variant: components["schemas"]["invokeai__backend__model_management__models__base__ModelVariantType"]; + prediction_type: components["schemas"]["invokeai__backend__model_management__models__base__SchedulerPredictionType"]; /** Upcast Attention */ upcast_attention: boolean; }; @@ -6315,9 +6812,9 @@ export type components = { */ model_name: string; /** @description Base model */ - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** @description Model Type */ - model_type: components["schemas"]["ModelType"]; + model_type: components["schemas"]["invokeai__backend__model_management__models__base__ModelType"]; }; /** * ONNX Main Model @@ -7360,11 +7857,6 @@ export type components = { */ type: "scheduler_output"; }; - /** - * SchedulerPredictionType - * @enum {string} - */ - SchedulerPredictionType: "epsilon" | "v_prediction" | "sample"; /** * Seamless * @description Applies the seamless transformation to the Model UNet and VAE. @@ -7716,7 +8208,7 @@ export type components = { StableDiffusion1ModelCheckpointConfig: { /** Model Name */ model_name: string; - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** * Model Type * @default main @@ -7737,13 +8229,13 @@ export type components = { vae?: string | null; /** Config */ config: string; - variant: components["schemas"]["ModelVariantType"]; + variant: components["schemas"]["invokeai__backend__model_management__models__base__ModelVariantType"]; }; /** StableDiffusion1ModelDiffusersConfig */ StableDiffusion1ModelDiffusersConfig: { /** Model Name */ model_name: string; - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** * Model Type * @default main @@ -7762,13 +8254,13 @@ export type components = { error?: components["schemas"]["ModelError"] | null; /** Vae */ vae?: string | null; - variant: components["schemas"]["ModelVariantType"]; + variant: components["schemas"]["invokeai__backend__model_management__models__base__ModelVariantType"]; }; /** StableDiffusion2ModelCheckpointConfig */ StableDiffusion2ModelCheckpointConfig: { /** Model Name */ model_name: string; - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** * Model Type * @default main @@ -7789,13 +8281,13 @@ export type components = { vae?: string | null; /** Config */ config: string; - variant: components["schemas"]["ModelVariantType"]; + variant: components["schemas"]["invokeai__backend__model_management__models__base__ModelVariantType"]; }; /** StableDiffusion2ModelDiffusersConfig */ StableDiffusion2ModelDiffusersConfig: { /** Model Name */ model_name: string; - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** * Model Type * @default main @@ -7814,13 +8306,13 @@ export type components = { error?: components["schemas"]["ModelError"] | null; /** Vae */ vae?: string | null; - variant: components["schemas"]["ModelVariantType"]; + variant: components["schemas"]["invokeai__backend__model_management__models__base__ModelVariantType"]; }; /** StableDiffusionXLModelCheckpointConfig */ StableDiffusionXLModelCheckpointConfig: { /** Model Name */ model_name: string; - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** * Model Type * @default main @@ -7841,13 +8333,13 @@ export type components = { vae?: string | null; /** Config */ config: string; - variant: components["schemas"]["ModelVariantType"]; + variant: components["schemas"]["invokeai__backend__model_management__models__base__ModelVariantType"]; }; /** StableDiffusionXLModelDiffusersConfig */ StableDiffusionXLModelDiffusersConfig: { /** Model Name */ model_name: string; - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** * Model Type * @default main @@ -7866,7 +8358,7 @@ export type components = { error?: components["schemas"]["ModelError"] | null; /** Vae */ vae?: string | null; - variant: components["schemas"]["ModelVariantType"]; + variant: components["schemas"]["invokeai__backend__model_management__models__base__ModelVariantType"]; }; /** * Step Param Easing @@ -8463,7 +8955,7 @@ export type components = { T2IAdapterModelDiffusersConfig: { /** Model Name */ model_name: string; - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** * Model Type * @default t2i_adapter @@ -8489,7 +8981,7 @@ export type components = { */ model_name: string; /** @description Base model */ - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; }; /** T2IAdapterOutput */ T2IAdapterOutput: { @@ -8505,6 +8997,51 @@ export type components = { */ type: "t2i_adapter_output"; }; + /** + * T2IConfig + * @description Model config for T2I. + */ + T2IConfig: { + /** Path */ + path: string; + /** Name */ + name: string; + base: components["schemas"]["invokeai__backend__model_manager__config__BaseModelType"]; + /** + * Type + * @default t2i_adapter + * @constant + */ + type?: "t2i_adapter"; + /** + * Format + * @constant + */ + format: "diffusers"; + /** + * Key + * @description unique key for model + * @default + */ + key?: string; + /** + * Original Hash + * @description original fasthash of model contents + */ + original_hash?: string | null; + /** + * Current Hash + * @description current fasthash of model contents + */ + current_hash?: string | null; + /** Description */ + description?: string | null; + /** + * Source + * @description Model download source (URL or repo_id) + */ + source?: string | null; + }; /** TestInvocation */ TestInvocation: { /** @@ -8589,11 +9126,56 @@ export type components = { */ type: "test_invocation_3"; }; + /** + * TextualInversionConfig + * @description Model config for textual inversion embeddings. + */ + TextualInversionConfig: { + /** Path */ + path: string; + /** Name */ + name: string; + base: components["schemas"]["invokeai__backend__model_manager__config__BaseModelType"]; + /** + * Type + * @default embedding + * @constant + */ + type?: "embedding"; + /** + * Format + * @enum {string} + */ + format: "embedding_file" | "embedding_folder"; + /** + * Key + * @description unique key for model + * @default + */ + key?: string; + /** + * Original Hash + * @description original fasthash of model contents + */ + original_hash?: string | null; + /** + * Current Hash + * @description current fasthash of model contents + */ + current_hash?: string | null; + /** Description */ + description?: string | null; + /** + * Source + * @description Model download source (URL or repo_id) + */ + source?: string | null; + }; /** TextualInversionModelConfig */ TextualInversionModelConfig: { /** Model Name */ model_name: string; - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** * Model Type * @default embedding @@ -8709,7 +9291,7 @@ export type components = { */ model_name: string; /** @description Base model */ - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; }; /** * VAEOutput @@ -8728,6 +9310,98 @@ export type components = { */ type: "vae_output"; }; + /** + * VaeCheckpointConfig + * @description Model config for standalone VAE models. + */ + VaeCheckpointConfig: { + /** Path */ + path: string; + /** Name */ + name: string; + base: components["schemas"]["invokeai__backend__model_manager__config__BaseModelType"]; + /** + * Type + * @default vae + * @constant + */ + type?: "vae"; + /** + * Format + * @default checkpoint + * @constant + */ + format?: "checkpoint"; + /** + * Key + * @description unique key for model + * @default + */ + key?: string; + /** + * Original Hash + * @description original fasthash of model contents + */ + original_hash?: string | null; + /** + * Current Hash + * @description current fasthash of model contents + */ + current_hash?: string | null; + /** Description */ + description?: string | null; + /** + * Source + * @description Model download source (URL or repo_id) + */ + source?: string | null; + }; + /** + * VaeDiffusersConfig + * @description Model config for standalone VAE models (diffusers version). + */ + VaeDiffusersConfig: { + /** Path */ + path: string; + /** Name */ + name: string; + base: components["schemas"]["invokeai__backend__model_manager__config__BaseModelType"]; + /** + * Type + * @default vae + * @constant + */ + type?: "vae"; + /** + * Format + * @default diffusers + * @constant + */ + format?: "diffusers"; + /** + * Key + * @description unique key for model + * @default + */ + key?: string; + /** + * Original Hash + * @description original fasthash of model contents + */ + original_hash?: string | null; + /** + * Current Hash + * @description current fasthash of model contents + */ + current_hash?: string | null; + /** Description */ + description?: string | null; + /** + * Source + * @description Model download source (URL or repo_id) + */ + source?: string | null; + }; /** VaeField */ VaeField: { /** @description Info to load vae submodel */ @@ -8776,7 +9450,7 @@ export type components = { VaeModelConfig: { /** Model Name */ model_name: string; - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** * Model Type * @default vae @@ -8845,6 +9519,63 @@ export type components = { */ type: "zoe_depth_image_processor"; }; + /** + * ModelsList + * @description Return list of configs. + */ + invokeai__app__api__routers__model_records__ModelsList: { + /** Models */ + models: ((components["schemas"]["MainDiffusersConfig"] | components["schemas"]["MainCheckpointConfig"]) | (components["schemas"]["ONNXSD1Config"] | components["schemas"]["ONNXSD2Config"]) | (components["schemas"]["VaeDiffusersConfig"] | components["schemas"]["VaeCheckpointConfig"]) | (components["schemas"]["ControlNetDiffusersConfig"] | components["schemas"]["ControlNetCheckpointConfig"]) | components["schemas"]["LoRAConfig"] | components["schemas"]["TextualInversionConfig"] | components["schemas"]["IPAdapterConfig"] | components["schemas"]["CLIPVisionDiffusersConfig"] | components["schemas"]["T2IConfig"])[]; + }; + /** ModelsList */ + invokeai__app__api__routers__models__ModelsList: { + /** Models */ + models: (components["schemas"]["ONNXStableDiffusion1ModelConfig"] | components["schemas"]["StableDiffusion1ModelCheckpointConfig"] | components["schemas"]["StableDiffusion1ModelDiffusersConfig"] | components["schemas"]["VaeModelConfig"] | components["schemas"]["LoRAModelConfig"] | components["schemas"]["ControlNetModelCheckpointConfig"] | components["schemas"]["ControlNetModelDiffusersConfig"] | components["schemas"]["TextualInversionModelConfig"] | components["schemas"]["IPAdapterModelInvokeAIConfig"] | components["schemas"]["CLIPVisionModelDiffusersConfig"] | components["schemas"]["T2IAdapterModelDiffusersConfig"] | components["schemas"]["ONNXStableDiffusion2ModelConfig"] | components["schemas"]["StableDiffusion2ModelCheckpointConfig"] | components["schemas"]["StableDiffusion2ModelDiffusersConfig"] | components["schemas"]["StableDiffusionXLModelCheckpointConfig"] | components["schemas"]["StableDiffusionXLModelDiffusersConfig"])[]; + }; + /** + * BaseModelType + * @enum {string} + */ + invokeai__backend__model_management__models__base__BaseModelType: "any" | "sd-1" | "sd-2" | "sdxl" | "sdxl-refiner"; + /** + * ModelType + * @enum {string} + */ + invokeai__backend__model_management__models__base__ModelType: "onnx" | "main" | "vae" | "lora" | "controlnet" | "embedding" | "ip_adapter" | "clip_vision" | "t2i_adapter"; + /** + * ModelVariantType + * @enum {string} + */ + invokeai__backend__model_management__models__base__ModelVariantType: "normal" | "inpaint" | "depth"; + /** + * SchedulerPredictionType + * @enum {string} + */ + invokeai__backend__model_management__models__base__SchedulerPredictionType: "epsilon" | "v_prediction" | "sample"; + /** + * BaseModelType + * @description Base model type. + * @enum {string} + */ + invokeai__backend__model_manager__config__BaseModelType: "any" | "sd-1" | "sd-2" | "sdxl" | "sdxl-refiner"; + /** + * ModelType + * @description Model type. + * @enum {string} + */ + invokeai__backend__model_manager__config__ModelType: "onnx" | "main" | "vae" | "lora" | "controlnet" | "embedding" | "ip_adapter" | "clip_vision" | "t2i_adapter"; + /** + * ModelVariantType + * @description Variant type. + * @enum {string} + */ + invokeai__backend__model_manager__config__ModelVariantType: "normal" | "inpaint" | "depth"; + /** + * SchedulerPredictionType + * @description Scheduler prediction type. + * @enum {string} + */ + invokeai__backend__model_manager__config__SchedulerPredictionType: "epsilon" | "v_prediction" | "sample"; /** * Input * @description The type of input a field accepts. @@ -8934,11 +9665,11 @@ export type components = { ui_order: number | null; }; /** - * IPAdapterModelFormat + * StableDiffusionXLModelFormat * @description An enumeration. * @enum {string} */ - IPAdapterModelFormat: "invokeai"; + StableDiffusionXLModelFormat: "checkpoint" | "diffusers"; /** * StableDiffusionOnnxModelFormat * @description An enumeration. @@ -8951,36 +9682,36 @@ export type components = { * @enum {string} */ T2IAdapterModelFormat: "diffusers"; - /** - * CLIPVisionModelFormat - * @description An enumeration. - * @enum {string} - */ - CLIPVisionModelFormat: "diffusers"; - /** - * StableDiffusionXLModelFormat - * @description An enumeration. - * @enum {string} - */ - StableDiffusionXLModelFormat: "checkpoint" | "diffusers"; /** * StableDiffusion1ModelFormat * @description An enumeration. * @enum {string} */ StableDiffusion1ModelFormat: "checkpoint" | "diffusers"; - /** - * ControlNetModelFormat - * @description An enumeration. - * @enum {string} - */ - ControlNetModelFormat: "checkpoint" | "diffusers"; /** * StableDiffusion2ModelFormat * @description An enumeration. * @enum {string} */ StableDiffusion2ModelFormat: "checkpoint" | "diffusers"; + /** + * CLIPVisionModelFormat + * @description An enumeration. + * @enum {string} + */ + CLIPVisionModelFormat: "diffusers"; + /** + * IPAdapterModelFormat + * @description An enumeration. + * @enum {string} + */ + IPAdapterModelFormat: "invokeai"; + /** + * ControlNetModelFormat + * @description An enumeration. + * @enum {string} + */ + ControlNetModelFormat: "checkpoint" | "diffusers"; }; responses: never; parameters: never; @@ -9058,16 +9789,16 @@ export type operations = { parameters: { query?: { /** @description Base models to include */ - base_models?: components["schemas"]["BaseModelType"][] | null; + base_models?: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"][] | null; /** @description The type of model to get */ - model_type?: components["schemas"]["ModelType"] | null; + model_type?: components["schemas"]["invokeai__backend__model_management__models__base__ModelType"] | null; }; }; responses: { /** @description Successful Response */ 200: { content: { - "application/json": components["schemas"]["ModelsList"]; + "application/json": components["schemas"]["invokeai__app__api__routers__models__ModelsList"]; }; }; /** @description Validation Error */ @@ -9086,9 +9817,9 @@ export type operations = { parameters: { path: { /** @description Base model */ - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** @description The type of model */ - model_type: components["schemas"]["ModelType"]; + model_type: components["schemas"]["invokeai__backend__model_management__models__base__ModelType"]; /** @description model name */ model_name: string; }; @@ -9118,9 +9849,9 @@ export type operations = { parameters: { path: { /** @description Base model */ - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** @description The type of model */ - model_type: components["schemas"]["ModelType"]; + model_type: components["schemas"]["invokeai__backend__model_management__models__base__ModelType"]; /** @description model name */ model_name: string; }; @@ -9247,9 +9978,9 @@ export type operations = { }; path: { /** @description Base model */ - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; /** @description The type of model */ - model_type: components["schemas"]["ModelType"]; + model_type: components["schemas"]["invokeai__backend__model_management__models__base__ModelType"]; /** @description model name */ model_name: string; }; @@ -9341,7 +10072,7 @@ export type operations = { parameters: { path: { /** @description Base model */ - base_model: components["schemas"]["BaseModelType"]; + base_model: components["schemas"]["invokeai__backend__model_management__models__base__BaseModelType"]; }; }; requestBody: { @@ -9372,6 +10103,172 @@ export type operations = { }; }; }; + /** + * List Model Records + * @description Get a list of models. + */ + list_model_records: { + parameters: { + query?: { + /** @description Base models to include */ + base_models?: components["schemas"]["invokeai__backend__model_manager__config__BaseModelType"][] | null; + /** @description The type of model to get */ + model_type?: components["schemas"]["invokeai__backend__model_manager__config__ModelType"] | null; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["invokeai__app__api__routers__model_records__ModelsList"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** + * Get Model Record + * @description Get a model record + */ + get_model_record: { + parameters: { + path: { + /** @description Key of the model record to fetch. */ + key: string; + }; + }; + responses: { + /** @description Success */ + 200: { + content: { + "application/json": (components["schemas"]["MainDiffusersConfig"] | components["schemas"]["MainCheckpointConfig"]) | (components["schemas"]["ONNXSD1Config"] | components["schemas"]["ONNXSD2Config"]) | (components["schemas"]["VaeDiffusersConfig"] | components["schemas"]["VaeCheckpointConfig"]) | (components["schemas"]["ControlNetDiffusersConfig"] | components["schemas"]["ControlNetCheckpointConfig"]) | components["schemas"]["LoRAConfig"] | components["schemas"]["TextualInversionConfig"] | components["schemas"]["IPAdapterConfig"] | components["schemas"]["CLIPVisionDiffusersConfig"] | components["schemas"]["T2IConfig"]; + }; + }; + /** @description Bad request */ + 400: { + content: never; + }; + /** @description The model could not be found */ + 404: { + content: never; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** + * Del Model Record + * @description Delete Model + */ + del_model_record: { + parameters: { + path: { + /** @description Unique key of model to remove from model registry. */ + key: string; + }; + }; + responses: { + /** @description Model deleted successfully */ + 204: { + content: never; + }; + /** @description Model not found */ + 404: { + content: never; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** + * Update Model Record + * @description Update model contents with a new config. If the model name or base fields are changed, then the model is renamed. + */ + update_model_record: { + parameters: { + path: { + /** @description Unique key of model */ + key: string; + }; + }; + requestBody: { + content: { + "application/json": (components["schemas"]["MainDiffusersConfig"] | components["schemas"]["MainCheckpointConfig"]) | (components["schemas"]["ONNXSD1Config"] | components["schemas"]["ONNXSD2Config"]) | (components["schemas"]["VaeDiffusersConfig"] | components["schemas"]["VaeCheckpointConfig"]) | (components["schemas"]["ControlNetDiffusersConfig"] | components["schemas"]["ControlNetCheckpointConfig"]) | components["schemas"]["LoRAConfig"] | components["schemas"]["TextualInversionConfig"] | components["schemas"]["IPAdapterConfig"] | components["schemas"]["CLIPVisionDiffusersConfig"] | components["schemas"]["T2IConfig"]; + }; + }; + responses: { + /** @description The model was updated successfully */ + 200: { + content: { + "application/json": (components["schemas"]["MainDiffusersConfig"] | components["schemas"]["MainCheckpointConfig"]) | (components["schemas"]["ONNXSD1Config"] | components["schemas"]["ONNXSD2Config"]) | (components["schemas"]["VaeDiffusersConfig"] | components["schemas"]["VaeCheckpointConfig"]) | (components["schemas"]["ControlNetDiffusersConfig"] | components["schemas"]["ControlNetCheckpointConfig"]) | components["schemas"]["LoRAConfig"] | components["schemas"]["TextualInversionConfig"] | components["schemas"]["IPAdapterConfig"] | components["schemas"]["CLIPVisionDiffusersConfig"] | components["schemas"]["T2IConfig"]; + }; + }; + /** @description Bad request */ + 400: { + content: never; + }; + /** @description The model could not be found */ + 404: { + content: never; + }; + /** @description There is already a model corresponding to the new name */ + 409: { + content: never; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** + * Add Model Record + * @description Add a model using the configuration information appropriate for its type. + */ + add_model_record: { + requestBody: { + content: { + "application/json": (components["schemas"]["MainDiffusersConfig"] | components["schemas"]["MainCheckpointConfig"]) | (components["schemas"]["ONNXSD1Config"] | components["schemas"]["ONNXSD2Config"]) | (components["schemas"]["VaeDiffusersConfig"] | components["schemas"]["VaeCheckpointConfig"]) | (components["schemas"]["ControlNetDiffusersConfig"] | components["schemas"]["ControlNetCheckpointConfig"]) | components["schemas"]["LoRAConfig"] | components["schemas"]["TextualInversionConfig"] | components["schemas"]["IPAdapterConfig"] | components["schemas"]["CLIPVisionDiffusersConfig"] | components["schemas"]["T2IConfig"]; + }; + }; + responses: { + /** @description The model added successfully */ + 201: { + content: { + "application/json": (components["schemas"]["MainDiffusersConfig"] | components["schemas"]["MainCheckpointConfig"]) | (components["schemas"]["ONNXSD1Config"] | components["schemas"]["ONNXSD2Config"]) | (components["schemas"]["VaeDiffusersConfig"] | components["schemas"]["VaeCheckpointConfig"]) | (components["schemas"]["ControlNetDiffusersConfig"] | components["schemas"]["ControlNetCheckpointConfig"]) | components["schemas"]["LoRAConfig"] | components["schemas"]["TextualInversionConfig"] | components["schemas"]["IPAdapterConfig"] | components["schemas"]["CLIPVisionDiffusersConfig"] | components["schemas"]["T2IConfig"]; + }; + }; + /** @description There is already a model corresponding to this path or repo_id */ + 409: { + content: never; + }; + /** @description Unrecognized file/folder format */ + 415: { + content: never; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; /** * Upload Image * @description Uploads an image diff --git a/invokeai/frontend/web/src/services/api/types.ts b/invokeai/frontend/web/src/services/api/types.ts index 526a4d6601..9038374912 100644 --- a/invokeai/frontend/web/src/services/api/types.ts +++ b/invokeai/frontend/web/src/services/api/types.ts @@ -48,9 +48,11 @@ export type OffsetPaginatedResults_ImageDTO_ = s['OffsetPaginatedResults_ImageDTO_']; // Models -export type ModelType = s['ModelType']; +export type ModelType = + s['invokeai__backend__model_management__models__base__ModelType']; export type SubModelType = s['SubModelType']; -export type BaseModelType = s['BaseModelType']; +export type BaseModelType = + s['invokeai__backend__model_management__models__base__BaseModelType']; export type MainModelField = s['MainModelField']; export type OnnxModelField = s['OnnxModelField']; export type VAEModelField = s['VAEModelField']; @@ -58,7 +60,7 @@ export type LoRAModelField = s['LoRAModelField']; export type ControlNetModelField = s['ControlNetModelField']; export type IPAdapterModelField = s['IPAdapterModelField']; export type T2IAdapterModelField = s['T2IAdapterModelField']; -export type ModelsList = s['ModelsList']; +export type ModelsList = s['invokeai__app__api__routers__models__ModelsList']; export type ControlField = s['ControlField']; export type IPAdapterField = s['IPAdapterField'];