feat(ui): export components type

This commit is contained in:
psychedelicious 2024-02-15 21:16:25 +11:00
parent 2bd1ab2f1c
commit 560ae17e21

View File

@ -3,7 +3,7 @@ import type { EntityState } from '@reduxjs/toolkit';
import type { components, paths } from 'services/api/schema'; import type { components, paths } from 'services/api/schema';
import type { O } from 'ts-toolbelt'; import type { O } from 'ts-toolbelt';
type s = components['schemas']; export type S = components['schemas'];
export type ImageCache = EntityState<ImageDTO, string>; export type ImageCache = EntityState<ImageDTO, string>;
@ -23,60 +23,60 @@ export type BatchConfig =
export type EnqueueBatchResult = components['schemas']['EnqueueBatchResult']; export type EnqueueBatchResult = components['schemas']['EnqueueBatchResult'];
export type InputFieldJSONSchemaExtra = s['InputFieldJSONSchemaExtra']; export type InputFieldJSONSchemaExtra = S['InputFieldJSONSchemaExtra'];
export type OutputFieldJSONSchemaExtra = s['OutputFieldJSONSchemaExtra']; export type OutputFieldJSONSchemaExtra = S['OutputFieldJSONSchemaExtra'];
export type InvocationJSONSchemaExtra = s['UIConfigBase']; export type InvocationJSONSchemaExtra = S['UIConfigBase'];
// App Info // App Info
export type AppVersion = s['AppVersion']; export type AppVersion = S['AppVersion'];
export type AppConfig = s['AppConfig']; export type AppConfig = S['AppConfig'];
export type AppDependencyVersions = s['AppDependencyVersions']; export type AppDependencyVersions = S['AppDependencyVersions'];
// Images // Images
export type ImageDTO = s['ImageDTO']; export type ImageDTO = S['ImageDTO'];
export type BoardDTO = s['BoardDTO']; export type BoardDTO = S['BoardDTO'];
export type BoardChanges = s['BoardChanges']; export type BoardChanges = S['BoardChanges'];
export type ImageChanges = s['ImageRecordChanges']; export type ImageChanges = S['ImageRecordChanges'];
export type ImageCategory = s['ImageCategory']; export type ImageCategory = S['ImageCategory'];
export type ResourceOrigin = s['ResourceOrigin']; export type ResourceOrigin = S['ResourceOrigin'];
export type ImageField = s['ImageField']; export type ImageField = S['ImageField'];
export type OffsetPaginatedResults_BoardDTO_ = s['OffsetPaginatedResults_BoardDTO_']; export type OffsetPaginatedResults_BoardDTO_ = S['OffsetPaginatedResults_BoardDTO_'];
export type OffsetPaginatedResults_ImageDTO_ = s['OffsetPaginatedResults_ImageDTO_']; export type OffsetPaginatedResults_ImageDTO_ = S['OffsetPaginatedResults_ImageDTO_'];
// Models // Models
export type ModelType = s['invokeai__backend__model_management__models__base__ModelType']; export type ModelType = S['ModelType'];
export type SubModelType = s['SubModelType']; export type SubModelType = S['SubModelType'];
export type BaseModelType = s['invokeai__backend__model_management__models__base__BaseModelType']; export type BaseModelType = S['BaseModelType'];
export type MainModelField = s['MainModelField']; export type MainModelField = S['MainModelField'];
export type VAEModelField = s['VAEModelField']; export type VAEModelField = S['VAEModelField'];
export type LoRAModelField = s['LoRAModelField']; export type LoRAModelField = S['LoRAModelField'];
export type LoRAModelFormat = s['LoRAModelFormat']; export type LoRAModelFormat = S['LoRAModelFormat'];
export type ControlNetModelField = s['ControlNetModelField']; export type ControlNetModelField = S['ControlNetModelField'];
export type IPAdapterModelField = s['IPAdapterModelField']; export type IPAdapterModelField = S['IPAdapterModelField'];
export type T2IAdapterModelField = s['T2IAdapterModelField']; export type T2IAdapterModelField = S['T2IAdapterModelField'];
export type ModelsList = s['invokeai__app__api__routers__models__ModelsList']; export type ModelsList = S['invokeai__app__api__routers__models__ModelsList'];
export type ControlField = s['ControlField']; export type ControlField = S['ControlField'];
export type IPAdapterField = s['IPAdapterField']; export type IPAdapterField = S['IPAdapterField'];
// Model Configs // Model Configs
export type LoRAModelConfig = s['LoRAModelConfig']; export type LoRAModelConfig = S['LoRAModelConfig'];
export type VaeModelConfig = s['VaeModelConfig']; export type VaeModelConfig = S['VaeModelConfig'];
export type ControlNetModelCheckpointConfig = s['ControlNetModelCheckpointConfig']; export type ControlNetModelCheckpointConfig = S['ControlNetModelCheckpointConfig'];
export type ControlNetModelDiffusersConfig = s['ControlNetModelDiffusersConfig']; export type ControlNetModelDiffusersConfig = S['ControlNetModelDiffusersConfig'];
export type ControlNetModelConfig = ControlNetModelCheckpointConfig | ControlNetModelDiffusersConfig; export type ControlNetModelConfig = ControlNetModelCheckpointConfig | ControlNetModelDiffusersConfig;
export type IPAdapterModelInvokeAIConfig = s['IPAdapterModelInvokeAIConfig']; export type IPAdapterModelInvokeAIConfig = S['IPAdapterModelInvokeAIConfig'];
export type IPAdapterModelConfig = IPAdapterModelInvokeAIConfig; export type IPAdapterModelConfig = IPAdapterModelInvokeAIConfig;
export type T2IAdapterModelDiffusersConfig = s['T2IAdapterModelDiffusersConfig']; export type T2IAdapterModelDiffusersConfig = S['T2IAdapterModelDiffusersConfig'];
export type T2IAdapterModelConfig = T2IAdapterModelDiffusersConfig; export type T2IAdapterModelConfig = T2IAdapterModelDiffusersConfig;
export type TextualInversionModelConfig = s['TextualInversionModelConfig']; export type TextualInversionModelConfig = S['TextualInversionModelConfig'];
export type DiffusersModelConfig = export type DiffusersModelConfig =
| s['StableDiffusion1ModelDiffusersConfig'] | S['StableDiffusion1ModelDiffusersConfig']
| s['StableDiffusion2ModelDiffusersConfig'] | S['StableDiffusion2ModelDiffusersConfig']
| s['StableDiffusionXLModelDiffusersConfig']; | S['StableDiffusionXLModelDiffusersConfig'];
export type CheckpointModelConfig = export type CheckpointModelConfig =
| s['StableDiffusion1ModelCheckpointConfig'] | S['StableDiffusion1ModelCheckpointConfig']
| s['StableDiffusion2ModelCheckpointConfig'] | S['StableDiffusion2ModelCheckpointConfig']
| s['StableDiffusionXLModelCheckpointConfig']; | S['StableDiffusionXLModelCheckpointConfig'];
export type MainModelConfig = DiffusersModelConfig | CheckpointModelConfig; export type MainModelConfig = DiffusersModelConfig | CheckpointModelConfig;
export type AnyModelConfig = export type AnyModelConfig =
| LoRAModelConfig | LoRAModelConfig
@ -87,87 +87,87 @@ export type AnyModelConfig =
| TextualInversionModelConfig | TextualInversionModelConfig
| MainModelConfig; | MainModelConfig;
export type MergeModelConfig = s['Body_merge_models']; export type MergeModelConfig = S['Body_merge_models'];
export type ImportModelConfig = s['Body_import_model']; export type ImportModelConfig = S['Body_import_model'];
// Graphs // Graphs
export type Graph = s['Graph']; export type Graph = S['Graph'];
export type NonNullableGraph = O.Required<Graph, 'nodes' | 'edges'>; export type NonNullableGraph = O.Required<Graph, 'nodes' | 'edges'>;
export type Edge = s['Edge']; export type Edge = S['Edge'];
export type GraphExecutionState = s['GraphExecutionState']; export type GraphExecutionState = S['GraphExecutionState'];
export type Batch = s['Batch']; export type Batch = S['Batch'];
export type SessionQueueItemDTO = s['SessionQueueItemDTO']; export type SessionQueueItemDTO = S['SessionQueueItemDTO'];
export type SessionQueueItem = s['SessionQueueItem']; export type SessionQueueItem = S['SessionQueueItem'];
export type WorkflowRecordOrderBy = s['WorkflowRecordOrderBy']; export type WorkflowRecordOrderBy = S['WorkflowRecordOrderBy'];
export type SQLiteDirection = s['SQLiteDirection']; export type SQLiteDirection = S['SQLiteDirection'];
export type WorkflowDTO = s['WorkflowRecordDTO']; export type WorkflowDTO = S['WorkflowRecordDTO'];
export type WorkflowRecordListItemDTO = s['WorkflowRecordListItemDTO']; export type WorkflowRecordListItemDTO = S['WorkflowRecordListItemDTO'];
// General nodes // General nodes
export type CollectInvocation = s['CollectInvocation']; export type CollectInvocation = S['CollectInvocation'];
export type IterateInvocation = s['IterateInvocation']; export type IterateInvocation = S['IterateInvocation'];
export type RangeInvocation = s['RangeInvocation']; export type RangeInvocation = S['RangeInvocation'];
export type RandomRangeInvocation = s['RandomRangeInvocation']; export type RandomRangeInvocation = S['RandomRangeInvocation'];
export type RangeOfSizeInvocation = s['RangeOfSizeInvocation']; export type RangeOfSizeInvocation = S['RangeOfSizeInvocation'];
export type ImageResizeInvocation = s['ImageResizeInvocation']; export type ImageResizeInvocation = S['ImageResizeInvocation'];
export type ImageBlurInvocation = s['ImageBlurInvocation']; export type ImageBlurInvocation = S['ImageBlurInvocation'];
export type ImageScaleInvocation = s['ImageScaleInvocation']; export type ImageScaleInvocation = S['ImageScaleInvocation'];
export type InfillPatchMatchInvocation = s['InfillPatchMatchInvocation']; export type InfillPatchMatchInvocation = S['InfillPatchMatchInvocation'];
export type InfillTileInvocation = s['InfillTileInvocation']; export type InfillTileInvocation = S['InfillTileInvocation'];
export type CreateDenoiseMaskInvocation = s['CreateDenoiseMaskInvocation']; export type CreateDenoiseMaskInvocation = S['CreateDenoiseMaskInvocation'];
export type MaskEdgeInvocation = s['MaskEdgeInvocation']; export type MaskEdgeInvocation = S['MaskEdgeInvocation'];
export type RandomIntInvocation = s['RandomIntInvocation']; export type RandomIntInvocation = S['RandomIntInvocation'];
export type CompelInvocation = s['CompelInvocation']; export type CompelInvocation = S['CompelInvocation'];
export type DynamicPromptInvocation = s['DynamicPromptInvocation']; export type DynamicPromptInvocation = S['DynamicPromptInvocation'];
export type NoiseInvocation = s['NoiseInvocation']; export type NoiseInvocation = S['NoiseInvocation'];
export type DenoiseLatentsInvocation = s['DenoiseLatentsInvocation']; export type DenoiseLatentsInvocation = S['DenoiseLatentsInvocation'];
export type SDXLLoraLoaderInvocation = s['SDXLLoraLoaderInvocation']; export type SDXLLoraLoaderInvocation = S['SDXLLoraLoaderInvocation'];
export type ImageToLatentsInvocation = s['ImageToLatentsInvocation']; export type ImageToLatentsInvocation = S['ImageToLatentsInvocation'];
export type LatentsToImageInvocation = s['LatentsToImageInvocation']; export type LatentsToImageInvocation = S['LatentsToImageInvocation'];
export type ImageCollectionInvocation = s['ImageCollectionInvocation']; export type ImageCollectionInvocation = S['ImageCollectionInvocation'];
export type MainModelLoaderInvocation = s['MainModelLoaderInvocation']; export type MainModelLoaderInvocation = S['MainModelLoaderInvocation'];
export type LoraLoaderInvocation = s['LoraLoaderInvocation']; export type LoraLoaderInvocation = S['LoraLoaderInvocation'];
export type ESRGANInvocation = s['ESRGANInvocation']; export type ESRGANInvocation = S['ESRGANInvocation'];
export type DivideInvocation = s['DivideInvocation']; export type DivideInvocation = S['DivideInvocation'];
export type ImageNSFWBlurInvocation = s['ImageNSFWBlurInvocation']; export type ImageNSFWBlurInvocation = S['ImageNSFWBlurInvocation'];
export type ImageWatermarkInvocation = s['ImageWatermarkInvocation']; export type ImageWatermarkInvocation = S['ImageWatermarkInvocation'];
export type SeamlessModeInvocation = s['SeamlessModeInvocation']; export type SeamlessModeInvocation = S['SeamlessModeInvocation'];
export type MetadataInvocation = s['MetadataInvocation']; export type MetadataInvocation = S['MetadataInvocation'];
export type CoreMetadataInvocation = s['CoreMetadataInvocation']; export type CoreMetadataInvocation = S['CoreMetadataInvocation'];
export type MetadataItemInvocation = s['MetadataItemInvocation']; export type MetadataItemInvocation = S['MetadataItemInvocation'];
export type MergeMetadataInvocation = s['MergeMetadataInvocation']; export type MergeMetadataInvocation = S['MergeMetadataInvocation'];
export type IPAdapterMetadataField = s['IPAdapterMetadataField']; export type IPAdapterMetadataField = S['IPAdapterMetadataField'];
export type T2IAdapterField = s['T2IAdapterField']; export type T2IAdapterField = S['T2IAdapterField'];
export type LoRAMetadataField = s['LoRAMetadataField']; export type LoRAMetadataField = S['LoRAMetadataField'];
// ControlNet Nodes // ControlNet Nodes
export type ControlNetInvocation = s['ControlNetInvocation']; export type ControlNetInvocation = S['ControlNetInvocation'];
export type T2IAdapterInvocation = s['T2IAdapterInvocation']; export type T2IAdapterInvocation = S['T2IAdapterInvocation'];
export type IPAdapterInvocation = s['IPAdapterInvocation']; export type IPAdapterInvocation = S['IPAdapterInvocation'];
export type CannyImageProcessorInvocation = s['CannyImageProcessorInvocation']; export type CannyImageProcessorInvocation = S['CannyImageProcessorInvocation'];
export type ColorMapImageProcessorInvocation = s['ColorMapImageProcessorInvocation']; export type ColorMapImageProcessorInvocation = S['ColorMapImageProcessorInvocation'];
export type ContentShuffleImageProcessorInvocation = s['ContentShuffleImageProcessorInvocation']; export type ContentShuffleImageProcessorInvocation = S['ContentShuffleImageProcessorInvocation'];
export type DepthAnythingImageProcessorInvocation = s['DepthAnythingImageProcessorInvocation']; export type DepthAnythingImageProcessorInvocation = S['DepthAnythingImageProcessorInvocation'];
export type HedImageProcessorInvocation = s['HedImageProcessorInvocation']; export type HedImageProcessorInvocation = S['HedImageProcessorInvocation'];
export type LineartAnimeImageProcessorInvocation = s['LineartAnimeImageProcessorInvocation']; export type LineartAnimeImageProcessorInvocation = S['LineartAnimeImageProcessorInvocation'];
export type LineartImageProcessorInvocation = s['LineartImageProcessorInvocation']; export type LineartImageProcessorInvocation = S['LineartImageProcessorInvocation'];
export type MediapipeFaceProcessorInvocation = s['MediapipeFaceProcessorInvocation']; export type MediapipeFaceProcessorInvocation = S['MediapipeFaceProcessorInvocation'];
export type MidasDepthImageProcessorInvocation = s['MidasDepthImageProcessorInvocation']; export type MidasDepthImageProcessorInvocation = S['MidasDepthImageProcessorInvocation'];
export type MlsdImageProcessorInvocation = s['MlsdImageProcessorInvocation']; export type MlsdImageProcessorInvocation = S['MlsdImageProcessorInvocation'];
export type NormalbaeImageProcessorInvocation = s['NormalbaeImageProcessorInvocation']; export type NormalbaeImageProcessorInvocation = S['NormalbaeImageProcessorInvocation'];
export type DWOpenposeImageProcessorInvocation = s['DWOpenposeImageProcessorInvocation']; export type DWOpenposeImageProcessorInvocation = S['DWOpenposeImageProcessorInvocation'];
export type PidiImageProcessorInvocation = s['PidiImageProcessorInvocation']; export type PidiImageProcessorInvocation = S['PidiImageProcessorInvocation'];
export type ZoeDepthImageProcessorInvocation = s['ZoeDepthImageProcessorInvocation']; export type ZoeDepthImageProcessorInvocation = S['ZoeDepthImageProcessorInvocation'];
// Node Outputs // Node Outputs
export type ImageOutput = s['ImageOutput']; export type ImageOutput = S['ImageOutput'];
export type StringOutput = s['StringOutput']; export type StringOutput = S['StringOutput'];
export type FloatOutput = s['FloatOutput']; export type FloatOutput = S['FloatOutput'];
export type IntegerOutput = s['IntegerOutput']; export type IntegerOutput = S['IntegerOutput'];
export type IterateInvocationOutput = s['IterateInvocationOutput']; export type IterateInvocationOutput = S['IterateInvocationOutput'];
export type CollectInvocationOutput = s['CollectInvocationOutput']; export type CollectInvocationOutput = S['CollectInvocationOutput'];
export type LatentsOutput = s['LatentsOutput']; export type LatentsOutput = S['LatentsOutput'];
export type GraphInvocationOutput = s['GraphInvocationOutput']; export type GraphInvocationOutput = S['GraphInvocationOutput'];
// Post-image upload actions, controls workflows when images are uploaded // Post-image upload actions, controls workflows when images are uploaded