chore: Rebuild API with new Model API names

This commit is contained in:
blessedcoolant 2023-06-18 03:00:16 +12:00 committed by psychedelicious
parent 01d17601b8
commit e374211313
8 changed files with 28 additions and 16 deletions

View File

@ -92,9 +92,13 @@ export type { LoraInfo } from './models/LoraInfo';
export type { LoraLoaderInvocation } from './models/LoraLoaderInvocation';
export type { LoraLoaderOutput } from './models/LoraLoaderOutput';
<<<<<<< HEAD
<<<<<<< HEAD
=======
export type { LoraModelConfig } from './models/LoraModelConfig';
>>>>>>> 76dd749b1 (chore: Rebuild API)
=======
export type { LoRAModelConfig } from './models/LoRAModelConfig';
>>>>>>> 0f3b7d2b3 (chore: Rebuild API with new Model API names)
export type { MaskFromAlphaInvocation } from './models/MaskFromAlphaInvocation';
export type { MaskOutput } from './models/MaskOutput';
export type { MediapipeFaceProcessorInvocation } from './models/MediapipeFaceProcessorInvocation';
@ -131,10 +135,10 @@ export type { SchedulerPredictionType } from './models/SchedulerPredictionType';
export type { SD1ModelLoaderInvocation } from './models/SD1ModelLoaderInvocation';
export type { SD2ModelLoaderInvocation } from './models/SD2ModelLoaderInvocation';
export type { ShowImageInvocation } from './models/ShowImageInvocation';
export type { StableDiffusion1CheckpointModelConfig } from './models/StableDiffusion1CheckpointModelConfig';
export type { StableDiffusion1DiffusersModelConfig } from './models/StableDiffusion1DiffusersModelConfig';
export type { StableDiffusion2CheckpointModelConfig } from './models/StableDiffusion2CheckpointModelConfig';
export type { StableDiffusion2DiffusersModelConfig } from './models/StableDiffusion2DiffusersModelConfig';
export type { StableDiffusion1ModelCheckpointConfig } from './models/StableDiffusion1ModelCheckpointConfig';
export type { StableDiffusion1ModelDiffusersConfig } from './models/StableDiffusion1ModelDiffusersConfig';
export type { StableDiffusion2ModelCheckpointConfig } from './models/StableDiffusion2ModelCheckpointConfig';
export type { StableDiffusion2ModelDiffusersConfig } from './models/StableDiffusion2ModelDiffusersConfig';
export type { StepParamEasingInvocation } from './models/StepParamEasingInvocation';
export type { SubModelType } from './models/SubModelType';
export type { SubtractInvocation } from './models/SubtractInvocation';
@ -148,8 +152,12 @@ export type { TextualInversionModelConfig } from './models/TextualInversionModel
export type { UNetField } from './models/UNetField';
export type { UpscaleInvocation } from './models/UpscaleInvocation';
export type { VaeField } from './models/VaeField';
<<<<<<< HEAD
export type { VAEModelConfig } from './models/VAEModelConfig';
>>>>>>> 76dd749b1 (chore: Rebuild API)
=======
export type { VaeModelConfig } from './models/VaeModelConfig';
>>>>>>> 0f3b7d2b3 (chore: Rebuild API with new Model API names)
export type { VaeRepo } from './models/VaeRepo';
export type { ValidationError } from './models/ValidationError';
export type { ZoeDepthImageProcessorInvocation } from './models/ZoeDepthImageProcessorInvocation';

View File

@ -4,7 +4,7 @@
import type { ModelError } from './ModelError';
export type LoraModelConfig = {
export type LoRAModelConfig = {
path: string;
description?: string;
format: ('lycoris' | 'diffusers');

View File

@ -16,15 +16,19 @@ export type ModelsList = {
models: Record<string, Record<string, Record<string, (invokeai__backend__model_management__models__stable_diffusion__StableDiffusion1Model__DiffusersConfig | invokeai__backend__model_management__models__controlnet__ControlNetModel__Config | invokeai__backend__model_management__models__lora__LoRAModel__Config | invokeai__backend__model_management__models__stable_diffusion__StableDiffusion2Model__DiffusersConfig | invokeai__backend__model_management__models__textual_inversion__TextualInversionModel__Config | invokeai__backend__model_management__models__vae__VaeModel__Config | invokeai__backend__model_management__models__stable_diffusion__StableDiffusion2Model__CheckpointConfig | invokeai__backend__model_management__models__stable_diffusion__StableDiffusion1Model__CheckpointConfig)>>>;
=======
import type { ControlNetModelConfig } from './ControlNetModelConfig';
import type { LoraModelConfig } from './LoraModelConfig';
import type { StableDiffusion1CheckpointModelConfig } from './StableDiffusion1CheckpointModelConfig';
import type { StableDiffusion1DiffusersModelConfig } from './StableDiffusion1DiffusersModelConfig';
import type { StableDiffusion2CheckpointModelConfig } from './StableDiffusion2CheckpointModelConfig';
import type { StableDiffusion2DiffusersModelConfig } from './StableDiffusion2DiffusersModelConfig';
import type { LoRAModelConfig } from './LoRAModelConfig';
import type { StableDiffusion1ModelCheckpointConfig } from './StableDiffusion1ModelCheckpointConfig';
import type { StableDiffusion1ModelDiffusersConfig } from './StableDiffusion1ModelDiffusersConfig';
import type { StableDiffusion2ModelCheckpointConfig } from './StableDiffusion2ModelCheckpointConfig';
import type { StableDiffusion2ModelDiffusersConfig } from './StableDiffusion2ModelDiffusersConfig';
import type { TextualInversionModelConfig } from './TextualInversionModelConfig';
import type { VAEModelConfig } from './VAEModelConfig';
import type { VaeModelConfig } from './VaeModelConfig';
export type ModelsList = {
<<<<<<< HEAD
models: Record<string, Record<string, Record<string, (StableDiffusion2DiffusersModelConfig | ControlNetModelConfig | LoraModelConfig | StableDiffusion1CheckpointModelConfig | TextualInversionModelConfig | StableDiffusion1DiffusersModelConfig | StableDiffusion2CheckpointModelConfig | VAEModelConfig)>>>;
>>>>>>> 76dd749b1 (chore: Rebuild API)
=======
models: Record<string, Record<string, Record<string, (StableDiffusion1ModelDiffusersConfig | StableDiffusion2ModelCheckpointConfig | TextualInversionModelConfig | ControlNetModelConfig | VaeModelConfig | StableDiffusion2ModelDiffusersConfig | LoRAModelConfig | StableDiffusion1ModelCheckpointConfig)>>>;
>>>>>>> 0f3b7d2b3 (chore: Rebuild API with new Model API names)
};

View File

@ -5,7 +5,7 @@
import type { ModelError } from './ModelError';
import type { ModelVariantType } from './ModelVariantType';
export type StableDiffusion1CheckpointModelConfig = {
export type StableDiffusion1ModelCheckpointConfig = {
path: string;
description?: string;
format: 'checkpoint';

View File

@ -5,7 +5,7 @@
import type { ModelError } from './ModelError';
import type { ModelVariantType } from './ModelVariantType';
export type StableDiffusion1DiffusersModelConfig = {
export type StableDiffusion1ModelDiffusersConfig = {
path: string;
description?: string;
format: 'diffusers';

View File

@ -6,7 +6,7 @@ import type { ModelError } from './ModelError';
import type { ModelVariantType } from './ModelVariantType';
import type { SchedulerPredictionType } from './SchedulerPredictionType';
export type StableDiffusion2CheckpointModelConfig = {
export type StableDiffusion2ModelCheckpointConfig = {
path: string;
description?: string;
format: 'checkpoint';

View File

@ -6,7 +6,7 @@ import type { ModelError } from './ModelError';
import type { ModelVariantType } from './ModelVariantType';
import type { SchedulerPredictionType } from './SchedulerPredictionType';
export type StableDiffusion2DiffusersModelConfig = {
export type StableDiffusion2ModelDiffusersConfig = {
path: string;
description?: string;
format: 'diffusers';

View File

@ -4,7 +4,7 @@
import type { ModelError } from './ModelError';
export type VAEModelConfig = {
export type VaeModelConfig = {
path: string;
description?: string;
format: ('checkpoint' | 'diffusers');