chore(ui): regenerate api client

This commit is contained in:
psychedelicious
2023-04-06 17:31:55 +10:00
parent 8fe49fdb55
commit 9560a2b890
46 changed files with 1170 additions and 4 deletions

View File

@@ -8,6 +8,8 @@
* Patches the request logic in such a way that we can extract headers from requests.
*
* Copied from https://github.com/ferdikoomen/openapi-typescript-codegen/issues/829#issuecomment-1228224477
*
* This file should be excluded in `tsconfig.json` and ignored by prettier/eslint!
*/
import axios from 'axios';

View File

@@ -6,12 +6,16 @@ export { CancelablePromise, CancelError } from './core/CancelablePromise';
export { OpenAPI } from './core/OpenAPI';
export type { OpenAPIConfig } from './core/OpenAPI';
export type { AddInvocation } from './models/AddInvocation';
export type { BlurInvocation } from './models/BlurInvocation';
export type { Body_upload_image } from './models/Body_upload_image';
export type { CkptModelInfo } from './models/CkptModelInfo';
export type { CollectInvocation } from './models/CollectInvocation';
export type { CollectInvocationOutput } from './models/CollectInvocationOutput';
export type { CropImageInvocation } from './models/CropImageInvocation';
export type { CvInpaintInvocation } from './models/CvInpaintInvocation';
export type { DiffusersModelInfo } from './models/DiffusersModelInfo';
export type { DivideInvocation } from './models/DivideInvocation';
export type { Edge } from './models/Edge';
export type { EdgeConnection } from './models/EdgeConnection';
export type { Graph } from './models/Graph';
@@ -26,29 +30,48 @@ export type { ImageResponse } from './models/ImageResponse';
export type { ImageToImageInvocation } from './models/ImageToImageInvocation';
export type { ImageType } from './models/ImageType';
export type { InpaintInvocation } from './models/InpaintInvocation';
export type { IntCollectionOutput } from './models/IntCollectionOutput';
export type { IntOutput } from './models/IntOutput';
export type { InverseLerpInvocation } from './models/InverseLerpInvocation';
export type { IterateInvocation } from './models/IterateInvocation';
export type { IterateInvocationOutput } from './models/IterateInvocationOutput';
export type { LatentsField } from './models/LatentsField';
export type { LatentsOutput } from './models/LatentsOutput';
export type { LatentsToImageInvocation } from './models/LatentsToImageInvocation';
export type { LatentsToLatentsInvocation } from './models/LatentsToLatentsInvocation';
export type { LerpInvocation } from './models/LerpInvocation';
export type { LoadImageInvocation } from './models/LoadImageInvocation';
export type { MaskFromAlphaInvocation } from './models/MaskFromAlphaInvocation';
export type { MaskOutput } from './models/MaskOutput';
export type { ModelsList } from './models/ModelsList';
export type { MultiplyInvocation } from './models/MultiplyInvocation';
export type { NoiseInvocation } from './models/NoiseInvocation';
export type { NoiseOutput } from './models/NoiseOutput';
export type { PaginatedResults_GraphExecutionState_ } from './models/PaginatedResults_GraphExecutionState_';
export type { PaginatedResults_ImageResponse_ } from './models/PaginatedResults_ImageResponse_';
export type { PasteImageInvocation } from './models/PasteImageInvocation';
export type { PromptOutput } from './models/PromptOutput';
export type { RandomRangeInvocation } from './models/RandomRangeInvocation';
export type { RangeInvocation } from './models/RangeInvocation';
export type { RestoreFaceInvocation } from './models/RestoreFaceInvocation';
export type { ShowImageInvocation } from './models/ShowImageInvocation';
export type { SubtractInvocation } from './models/SubtractInvocation';
export type { TextToImageInvocation } from './models/TextToImageInvocation';
export type { TextToLatentsInvocation } from './models/TextToLatentsInvocation';
export type { UpscaleInvocation } from './models/UpscaleInvocation';
export type { VaeRepo } from './models/VaeRepo';
export type { ValidationError } from './models/ValidationError';
export { $AddInvocation } from './schemas/$AddInvocation';
export { $BlurInvocation } from './schemas/$BlurInvocation';
export { $Body_upload_image } from './schemas/$Body_upload_image';
export { $CkptModelInfo } from './schemas/$CkptModelInfo';
export { $CollectInvocation } from './schemas/$CollectInvocation';
export { $CollectInvocationOutput } from './schemas/$CollectInvocationOutput';
export { $CropImageInvocation } from './schemas/$CropImageInvocation';
export { $CvInpaintInvocation } from './schemas/$CvInpaintInvocation';
export { $DiffusersModelInfo } from './schemas/$DiffusersModelInfo';
export { $DivideInvocation } from './schemas/$DivideInvocation';
export { $Edge } from './schemas/$Edge';
export { $EdgeConnection } from './schemas/$EdgeConnection';
export { $Graph } from './schemas/$Graph';
@@ -63,22 +86,38 @@ export { $ImageResponse } from './schemas/$ImageResponse';
export { $ImageToImageInvocation } from './schemas/$ImageToImageInvocation';
export { $ImageType } from './schemas/$ImageType';
export { $InpaintInvocation } from './schemas/$InpaintInvocation';
export { $IntCollectionOutput } from './schemas/$IntCollectionOutput';
export { $IntOutput } from './schemas/$IntOutput';
export { $InverseLerpInvocation } from './schemas/$InverseLerpInvocation';
export { $IterateInvocation } from './schemas/$IterateInvocation';
export { $IterateInvocationOutput } from './schemas/$IterateInvocationOutput';
export { $LatentsField } from './schemas/$LatentsField';
export { $LatentsOutput } from './schemas/$LatentsOutput';
export { $LatentsToImageInvocation } from './schemas/$LatentsToImageInvocation';
export { $LatentsToLatentsInvocation } from './schemas/$LatentsToLatentsInvocation';
export { $LerpInvocation } from './schemas/$LerpInvocation';
export { $LoadImageInvocation } from './schemas/$LoadImageInvocation';
export { $MaskFromAlphaInvocation } from './schemas/$MaskFromAlphaInvocation';
export { $MaskOutput } from './schemas/$MaskOutput';
export { $ModelsList } from './schemas/$ModelsList';
export { $MultiplyInvocation } from './schemas/$MultiplyInvocation';
export { $NoiseInvocation } from './schemas/$NoiseInvocation';
export { $NoiseOutput } from './schemas/$NoiseOutput';
export { $PaginatedResults_GraphExecutionState_ } from './schemas/$PaginatedResults_GraphExecutionState_';
export { $PaginatedResults_ImageResponse_ } from './schemas/$PaginatedResults_ImageResponse_';
export { $PasteImageInvocation } from './schemas/$PasteImageInvocation';
export { $PromptOutput } from './schemas/$PromptOutput';
export { $RandomRangeInvocation } from './schemas/$RandomRangeInvocation';
export { $RangeInvocation } from './schemas/$RangeInvocation';
export { $RestoreFaceInvocation } from './schemas/$RestoreFaceInvocation';
export { $ShowImageInvocation } from './schemas/$ShowImageInvocation';
export { $SubtractInvocation } from './schemas/$SubtractInvocation';
export { $TextToImageInvocation } from './schemas/$TextToImageInvocation';
export { $TextToLatentsInvocation } from './schemas/$TextToLatentsInvocation';
export { $UpscaleInvocation } from './schemas/$UpscaleInvocation';
export { $VaeRepo } from './schemas/$VaeRepo';
export { $ValidationError } from './schemas/$ValidationError';
export { ImagesService } from './services/ImagesService';
export { ModelsService } from './services/ModelsService';
export { SessionsService } from './services/SessionsService';

View File

@@ -0,0 +1,23 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* Adds two numbers
*/
export type AddInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
type?: 'add';
/**
* The first number
*/
'a'?: number;
/**
* The second number
*/
'b'?: number;
};

View File

@@ -0,0 +1,32 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type CkptModelInfo = {
/**
* A description of the model
*/
description?: string;
format?: 'ckpt';
/**
* The path to the model config
*/
config: string;
/**
* The path to the model weights
*/
weights: string;
/**
* The path to the model VAE
*/
vae: string;
/**
* The width of the model
*/
width?: number;
/**
* The height of the model
*/
height?: number;
};

View File

@@ -0,0 +1,26 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { VaeRepo } from './VaeRepo';
export type DiffusersModelInfo = {
/**
* A description of the model
*/
description?: string;
format?: 'diffusers';
/**
* The VAE repo to use for this model
*/
vae?: VaeRepo;
/**
* The repo ID to use for this model
*/
repo_id?: string;
/**
* The path to the model
*/
path?: string;
};

View File

@@ -0,0 +1,23 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* Divides two numbers
*/
export type DivideInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
type?: 'div';
/**
* The first number
*/
'a'?: number;
/**
* The second number
*/
'b'?: number;
};

View File

@@ -2,23 +2,33 @@
/* tslint:disable */
/* eslint-disable */
import type { AddInvocation } from './AddInvocation';
import type { BlurInvocation } from './BlurInvocation';
import type { CollectInvocation } from './CollectInvocation';
import type { CropImageInvocation } from './CropImageInvocation';
import type { CvInpaintInvocation } from './CvInpaintInvocation';
import type { DivideInvocation } from './DivideInvocation';
import type { Edge } from './Edge';
import type { GraphInvocation } from './GraphInvocation';
import type { ImageToImageInvocation } from './ImageToImageInvocation';
import type { InpaintInvocation } from './InpaintInvocation';
import type { InverseLerpInvocation } from './InverseLerpInvocation';
import type { IterateInvocation } from './IterateInvocation';
import type { LatentsToImageInvocation } from './LatentsToImageInvocation';
import type { LatentsToLatentsInvocation } from './LatentsToLatentsInvocation';
import type { LerpInvocation } from './LerpInvocation';
import type { LoadImageInvocation } from './LoadImageInvocation';
import type { MaskFromAlphaInvocation } from './MaskFromAlphaInvocation';
import type { MultiplyInvocation } from './MultiplyInvocation';
import type { NoiseInvocation } from './NoiseInvocation';
import type { PasteImageInvocation } from './PasteImageInvocation';
import type { RandomRangeInvocation } from './RandomRangeInvocation';
import type { RangeInvocation } from './RangeInvocation';
import type { RestoreFaceInvocation } from './RestoreFaceInvocation';
import type { ShowImageInvocation } from './ShowImageInvocation';
import type { SubtractInvocation } from './SubtractInvocation';
import type { TextToImageInvocation } from './TextToImageInvocation';
import type { TextToLatentsInvocation } from './TextToLatentsInvocation';
import type { UpscaleInvocation } from './UpscaleInvocation';
export type Graph = {
@@ -29,7 +39,7 @@ export type Graph = {
/**
* The nodes in this graph
*/
nodes?: Record<string, (LoadImageInvocation | ShowImageInvocation | CropImageInvocation | PasteImageInvocation | MaskFromAlphaInvocation | BlurInvocation | LerpInvocation | InverseLerpInvocation | CvInpaintInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | GraphInvocation | IterateInvocation | CollectInvocation | ImageToImageInvocation | InpaintInvocation)>;
nodes?: Record<string, (LoadImageInvocation | ShowImageInvocation | CropImageInvocation | PasteImageInvocation | MaskFromAlphaInvocation | BlurInvocation | LerpInvocation | InverseLerpInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | CvInpaintInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RangeInvocation | RandomRangeInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | GraphInvocation | IterateInvocation | CollectInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation)>;
/**
* The connections between nodes and their fields in this graph
*/

View File

@@ -6,8 +6,12 @@ import type { CollectInvocationOutput } from './CollectInvocationOutput';
import type { Graph } from './Graph';
import type { GraphInvocationOutput } from './GraphInvocationOutput';
import type { ImageOutput } from './ImageOutput';
import type { IntCollectionOutput } from './IntCollectionOutput';
import type { IntOutput } from './IntOutput';
import type { IterateInvocationOutput } from './IterateInvocationOutput';
import type { LatentsOutput } from './LatentsOutput';
import type { MaskOutput } from './MaskOutput';
import type { NoiseOutput } from './NoiseOutput';
import type { PromptOutput } from './PromptOutput';
/**
@@ -37,7 +41,7 @@ export type GraphExecutionState = {
/**
* The results of node executions
*/
results: Record<string, (ImageOutput | MaskOutput | PromptOutput | GraphInvocationOutput | IterateInvocationOutput | CollectInvocationOutput)>;
results: Record<string, (ImageOutput | MaskOutput | PromptOutput | LatentsOutput | NoiseOutput | IntOutput | IntCollectionOutput | GraphInvocationOutput | IterateInvocationOutput | CollectInvocationOutput)>;
/**
* Errors raised when executing nodes
*/

View File

@@ -0,0 +1,15 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* A collection of integers
*/
export type IntCollectionOutput = {
type?: 'int_collection';
/**
* The int collection
*/
collection?: Array<number>;
};

View File

@@ -0,0 +1,15 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* An integer output
*/
export type IntOutput = {
type?: 'int_output';
/**
* The output integer
*/
'a'?: number;
};

View File

@@ -0,0 +1,14 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* A latents field used for passing latents between invocations
*/
export type LatentsField = {
/**
* The name of the latents
*/
latents_name?: string;
};

View File

@@ -0,0 +1,17 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { LatentsField } from './LatentsField';
/**
* Base class for invocations that output latents
*/
export type LatentsOutput = {
type?: 'latent_output';
/**
* The output latents
*/
latents?: LatentsField;
};

View File

@@ -0,0 +1,25 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { LatentsField } from './LatentsField';
/**
* Generates an image from latents.
*/
export type LatentsToImageInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
type?: 'l2i';
/**
* The latents to generate an image from
*/
latents?: LatentsField;
/**
* The model to use
*/
model?: string;
};

View File

@@ -0,0 +1,73 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { LatentsField } from './LatentsField';
/**
* Generates latents using latents as base image.
*/
export type LatentsToLatentsInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
type?: 'l2l';
/**
* The prompt to generate an image from
*/
prompt?: string;
/**
* The seed to use (-1 for a random seed)
*/
seed?: number;
/**
* The noise to use
*/
noise?: LatentsField;
/**
* The number of steps to use to generate the image
*/
steps?: number;
/**
* The width of the resulting image
*/
width?: number;
/**
* The height of the resulting image
*/
height?: number;
/**
* The Classifier-Free Guidance, higher values may result in a result closer to the prompt
*/
cfg_scale?: number;
/**
* The sampler to use
*/
sampler_name?: 'ddim' | 'dpmpp_2' | 'k_dpm_2' | 'k_dpm_2_a' | 'k_dpmpp_2' | 'k_euler' | 'k_euler_a' | 'k_heun' | 'k_lms' | 'plms';
/**
* Whether or not to generate an image that can tile without seams
*/
seamless?: boolean;
/**
* The axes to tile the image on, 'x' and/or 'y'
*/
seamless_axes?: string;
/**
* The model to use (currently ignored)
*/
model?: string;
/**
* Whether or not to produce progress images during generation
*/
progress_images?: boolean;
/**
* The latents to use as a base image
*/
latents?: LatentsField;
/**
* The strength of the latents to use
*/
strength?: number;
};

View File

@@ -0,0 +1,11 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CkptModelInfo } from './CkptModelInfo';
import type { DiffusersModelInfo } from './DiffusersModelInfo';
export type ModelsList = {
models: Record<string, (CkptModelInfo | DiffusersModelInfo)>;
};

View File

@@ -0,0 +1,23 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* Multiplies two numbers
*/
export type MultiplyInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
type?: 'mul';
/**
* The first number
*/
'a'?: number;
/**
* The second number
*/
'b'?: number;
};

View File

@@ -0,0 +1,27 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* Generates latent noise.
*/
export type NoiseInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
type?: 'noise';
/**
* The seed to use
*/
seed?: number;
/**
* The width of the resulting noise
*/
width?: number;
/**
* The height of the resulting noise
*/
height?: number;
};

View File

@@ -0,0 +1,17 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { LatentsField } from './LatentsField';
/**
* Invocation noise output
*/
export type NoiseOutput = {
type?: 'noise_output';
/**
* The output noise
*/
noise?: LatentsField;
};

View File

@@ -0,0 +1,27 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* Creates a collection of random numbers
*/
export type RandomRangeInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
type?: 'random_range';
/**
* The inclusive low value
*/
low?: number;
/**
* The exclusive high value
*/
high?: number;
/**
* The number of values to generate
*/
size?: number;
};

View File

@@ -0,0 +1,27 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* Creates a range
*/
export type RangeInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
type?: 'range';
/**
* The start of the range
*/
start?: number;
/**
* The stop of the range
*/
stop?: number;
/**
* The step of the range
*/
step?: number;
};

View File

@@ -0,0 +1,23 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* Subtracts two numbers
*/
export type SubtractInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
type?: 'sub';
/**
* The first number
*/
'a'?: number;
/**
* The second number
*/
'b'?: number;
};

View File

@@ -0,0 +1,65 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { LatentsField } from './LatentsField';
/**
* Generates latents from a prompt.
*/
export type TextToLatentsInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
type?: 't2l';
/**
* The prompt to generate an image from
*/
prompt?: string;
/**
* The seed to use (-1 for a random seed)
*/
seed?: number;
/**
* The noise to use
*/
noise?: LatentsField;
/**
* The number of steps to use to generate the image
*/
steps?: number;
/**
* The width of the resulting image
*/
width?: number;
/**
* The height of the resulting image
*/
height?: number;
/**
* The Classifier-Free Guidance, higher values may result in a result closer to the prompt
*/
cfg_scale?: number;
/**
* The sampler to use
*/
sampler_name?: 'ddim' | 'dpmpp_2' | 'k_dpm_2' | 'k_dpm_2_a' | 'k_dpmpp_2' | 'k_euler' | 'k_euler_a' | 'k_heun' | 'k_lms' | 'plms';
/**
* Whether or not to generate an image that can tile without seams
*/
seamless?: boolean;
/**
* The axes to tile the image on, 'x' and/or 'y'
*/
seamless_axes?: string;
/**
* The model to use (currently ignored)
*/
model?: string;
/**
* Whether or not to produce progress images during generation
*/
progress_images?: boolean;
};

View File

@@ -0,0 +1,19 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type VaeRepo = {
/**
* The repo ID to use for this VAE
*/
repo_id: string;
/**
* The path to the VAE
*/
path?: string;
/**
* The subfolder to use for this VAE
*/
subfolder?: string;
};

View File

@@ -0,0 +1,24 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $AddInvocation = {
description: `Adds two numbers`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
'a': {
type: 'number',
description: `The first number`,
},
'b': {
type: 'number',
description: `The second number`,
},
},
} as const;

View File

@@ -0,0 +1,37 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $CkptModelInfo = {
properties: {
description: {
type: 'string',
description: `A description of the model`,
},
format: {
type: 'Enum',
},
config: {
type: 'string',
description: `The path to the model config`,
isRequired: true,
},
weights: {
type: 'string',
description: `The path to the model weights`,
isRequired: true,
},
vae: {
type: 'string',
description: `The path to the model VAE`,
isRequired: true,
},
width: {
type: 'number',
description: `The width of the model`,
},
height: {
type: 'number',
description: `The height of the model`,
},
},
} as const;

View File

@@ -0,0 +1,29 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $DiffusersModelInfo = {
properties: {
description: {
type: 'string',
description: `A description of the model`,
},
format: {
type: 'Enum',
},
vae: {
type: 'all-of',
description: `The VAE repo to use for this model`,
contains: [{
type: 'VaeRepo',
}],
},
repo_id: {
type: 'string',
description: `The repo ID to use for this model`,
},
path: {
type: 'string',
description: `The path to the model`,
},
},
} as const;

View File

@@ -0,0 +1,24 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $DivideInvocation = {
description: `Divides two numbers`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
'a': {
type: 'number',
description: `The first number`,
},
'b': {
type: 'number',
description: `The second number`,
},
},
} as const;

View File

@@ -27,8 +27,26 @@ export const $Graph = {
type: 'LerpInvocation',
}, {
type: 'InverseLerpInvocation',
}, {
type: 'NoiseInvocation',
}, {
type: 'TextToLatentsInvocation',
}, {
type: 'LatentsToImageInvocation',
}, {
type: 'CvInpaintInvocation',
}, {
type: 'AddInvocation',
}, {
type: 'SubtractInvocation',
}, {
type: 'MultiplyInvocation',
}, {
type: 'DivideInvocation',
}, {
type: 'RangeInvocation',
}, {
type: 'RandomRangeInvocation',
}, {
type: 'UpscaleInvocation',
}, {
@@ -41,6 +59,8 @@ export const $Graph = {
type: 'IterateInvocation',
}, {
type: 'CollectInvocation',
}, {
type: 'LatentsToLatentsInvocation',
}, {
type: 'ImageToImageInvocation',
}, {

View File

@@ -49,6 +49,14 @@ export const $GraphExecutionState = {
type: 'MaskOutput',
}, {
type: 'PromptOutput',
}, {
type: 'LatentsOutput',
}, {
type: 'NoiseOutput',
}, {
type: 'IntOutput',
}, {
type: 'IntCollectionOutput',
}, {
type: 'GraphInvocationOutput',
}, {

View File

@@ -0,0 +1,17 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $IntCollectionOutput = {
description: `A collection of integers`,
properties: {
type: {
type: 'Enum',
},
collection: {
type: 'array',
contains: {
type: 'number',
},
},
},
} as const;

View File

@@ -0,0 +1,15 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $IntOutput = {
description: `An integer output`,
properties: {
type: {
type: 'Enum',
},
'a': {
type: 'number',
description: `The output integer`,
},
},
} as const;

View File

@@ -0,0 +1,12 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $LatentsField = {
description: `A latents field used for passing latents between invocations`,
properties: {
latents_name: {
type: 'string',
description: `The name of the latents`,
},
},
} as const;

View File

@@ -0,0 +1,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $LatentsOutput = {
description: `Base class for invocations that output latents`,
properties: {
type: {
type: 'Enum',
},
latents: {
type: 'all-of',
description: `The output latents`,
contains: [{
type: 'LatentsField',
}],
},
},
} as const;

View File

@@ -0,0 +1,27 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $LatentsToImageInvocation = {
description: `Generates an image from latents.`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
latents: {
type: 'all-of',
description: `The latents to generate an image from`,
contains: [{
type: 'LatentsField',
}],
},
model: {
type: 'string',
description: `The model to use`,
},
},
} as const;

View File

@@ -0,0 +1,81 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $LatentsToLatentsInvocation = {
description: `Generates latents using latents as base image.`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
prompt: {
type: 'string',
description: `The prompt to generate an image from`,
},
seed: {
type: 'number',
description: `The seed to use (-1 for a random seed)`,
maximum: 4294967295,
minimum: -1,
},
noise: {
type: 'all-of',
description: `The noise to use`,
contains: [{
type: 'LatentsField',
}],
},
steps: {
type: 'number',
description: `The number of steps to use to generate the image`,
},
width: {
type: 'number',
description: `The width of the resulting image`,
multipleOf: 64,
},
height: {
type: 'number',
description: `The height of the resulting image`,
multipleOf: 64,
},
cfg_scale: {
type: 'number',
description: `The Classifier-Free Guidance, higher values may result in a result closer to the prompt`,
},
sampler_name: {
type: 'Enum',
},
seamless: {
type: 'boolean',
description: `Whether or not to generate an image that can tile without seams`,
},
seamless_axes: {
type: 'string',
description: `The axes to tile the image on, 'x' and/or 'y'`,
},
model: {
type: 'string',
description: `The model to use (currently ignored)`,
},
progress_images: {
type: 'boolean',
description: `Whether or not to produce progress images during generation`,
},
latents: {
type: 'all-of',
description: `The latents to use as a base image`,
contains: [{
type: 'LatentsField',
}],
},
strength: {
type: 'number',
description: `The strength of the latents to use`,
},
},
} as const;

View File

@@ -0,0 +1,19 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $ModelsList = {
properties: {
models: {
type: 'dictionary',
contains: {
type: 'one-of',
contains: [{
type: 'CkptModelInfo',
}, {
type: 'DiffusersModelInfo',
}],
},
isRequired: true,
},
},
} as const;

View File

@@ -0,0 +1,24 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $MultiplyInvocation = {
description: `Multiplies two numbers`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
'a': {
type: 'number',
description: `The first number`,
},
'b': {
type: 'number',
description: `The second number`,
},
},
} as const;

View File

@@ -0,0 +1,31 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $NoiseInvocation = {
description: `Generates latent noise.`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
seed: {
type: 'number',
description: `The seed to use`,
maximum: 4294967295,
},
width: {
type: 'number',
description: `The width of the resulting noise`,
multipleOf: 64,
},
height: {
type: 'number',
description: `The height of the resulting noise`,
multipleOf: 64,
},
},
} as const;

View File

@@ -0,0 +1,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $NoiseOutput = {
description: `Invocation noise output`,
properties: {
type: {
type: 'Enum',
},
noise: {
type: 'all-of',
description: `The output noise`,
contains: [{
type: 'LatentsField',
}],
},
},
} as const;

View File

@@ -0,0 +1,28 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $RandomRangeInvocation = {
description: `Creates a collection of random numbers`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
low: {
type: 'number',
description: `The inclusive low value`,
},
high: {
type: 'number',
description: `The exclusive high value`,
},
size: {
type: 'number',
description: `The number of values to generate`,
},
},
} as const;

View File

@@ -0,0 +1,28 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $RangeInvocation = {
description: `Creates a range`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
start: {
type: 'number',
description: `The start of the range`,
},
stop: {
type: 'number',
description: `The stop of the range`,
},
step: {
type: 'number',
description: `The step of the range`,
},
},
} as const;

View File

@@ -0,0 +1,24 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $SubtractInvocation = {
description: `Subtracts two numbers`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
'a': {
type: 'number',
description: `The first number`,
},
'b': {
type: 'number',
description: `The second number`,
},
},
} as const;

View File

@@ -0,0 +1,70 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $TextToLatentsInvocation = {
description: `Generates latents from a prompt.`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
prompt: {
type: 'string',
description: `The prompt to generate an image from`,
},
seed: {
type: 'number',
description: `The seed to use (-1 for a random seed)`,
maximum: 4294967295,
minimum: -1,
},
noise: {
type: 'all-of',
description: `The noise to use`,
contains: [{
type: 'LatentsField',
}],
},
steps: {
type: 'number',
description: `The number of steps to use to generate the image`,
},
width: {
type: 'number',
description: `The width of the resulting image`,
multipleOf: 64,
},
height: {
type: 'number',
description: `The height of the resulting image`,
multipleOf: 64,
},
cfg_scale: {
type: 'number',
description: `The Classifier-Free Guidance, higher values may result in a result closer to the prompt`,
},
sampler_name: {
type: 'Enum',
},
seamless: {
type: 'boolean',
description: `Whether or not to generate an image that can tile without seams`,
},
seamless_axes: {
type: 'string',
description: `The axes to tile the image on, 'x' and/or 'y'`,
},
model: {
type: 'string',
description: `The model to use (currently ignored)`,
},
progress_images: {
type: 'boolean',
description: `Whether or not to produce progress images during generation`,
},
},
} as const;

View File

@@ -0,0 +1,20 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $VaeRepo = {
properties: {
repo_id: {
type: 'string',
description: `The repo ID to use for this VAE`,
isRequired: true,
},
path: {
type: 'string',
description: `The path to the VAE`,
},
subfolder: {
type: 'string',
description: `The subfolder to use for this VAE`,
},
},
} as const;

View File

@@ -0,0 +1,25 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ModelsList } from '../models/ModelsList';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class ModelsService {
/**
* List Models
* Gets a list of models
* @returns ModelsList Successful Response
* @throws ApiError
*/
public static listModels(): CancelablePromise<ModelsList> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/models/',
});
}
}

View File

@@ -1,10 +1,12 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { AddInvocation } from '../models/AddInvocation';
import type { BlurInvocation } from '../models/BlurInvocation';
import type { CollectInvocation } from '../models/CollectInvocation';
import type { CropImageInvocation } from '../models/CropImageInvocation';
import type { CvInpaintInvocation } from '../models/CvInpaintInvocation';
import type { DivideInvocation } from '../models/DivideInvocation';
import type { Edge } from '../models/Edge';
import type { Graph } from '../models/Graph';
import type { GraphExecutionState } from '../models/GraphExecutionState';
@@ -13,14 +15,22 @@ import type { ImageToImageInvocation } from '../models/ImageToImageInvocation';
import type { InpaintInvocation } from '../models/InpaintInvocation';
import type { InverseLerpInvocation } from '../models/InverseLerpInvocation';
import type { IterateInvocation } from '../models/IterateInvocation';
import type { LatentsToImageInvocation } from '../models/LatentsToImageInvocation';
import type { LatentsToLatentsInvocation } from '../models/LatentsToLatentsInvocation';
import type { LerpInvocation } from '../models/LerpInvocation';
import type { LoadImageInvocation } from '../models/LoadImageInvocation';
import type { MaskFromAlphaInvocation } from '../models/MaskFromAlphaInvocation';
import type { MultiplyInvocation } from '../models/MultiplyInvocation';
import type { NoiseInvocation } from '../models/NoiseInvocation';
import type { PaginatedResults_GraphExecutionState_ } from '../models/PaginatedResults_GraphExecutionState_';
import type { PasteImageInvocation } from '../models/PasteImageInvocation';
import type { RandomRangeInvocation } from '../models/RandomRangeInvocation';
import type { RangeInvocation } from '../models/RangeInvocation';
import type { RestoreFaceInvocation } from '../models/RestoreFaceInvocation';
import type { ShowImageInvocation } from '../models/ShowImageInvocation';
import type { SubtractInvocation } from '../models/SubtractInvocation';
import type { TextToImageInvocation } from '../models/TextToImageInvocation';
import type { TextToLatentsInvocation } from '../models/TextToLatentsInvocation';
import type { UpscaleInvocation } from '../models/UpscaleInvocation';
import type { CancelablePromise } from '../core/CancelablePromise';
@@ -131,7 +141,7 @@ export class SessionsService {
* The id of the session
*/
sessionId: string,
requestBody: (LoadImageInvocation | ShowImageInvocation | CropImageInvocation | PasteImageInvocation | MaskFromAlphaInvocation | BlurInvocation | LerpInvocation | InverseLerpInvocation | CvInpaintInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | GraphInvocation | IterateInvocation | CollectInvocation | ImageToImageInvocation | InpaintInvocation),
requestBody: (LoadImageInvocation | ShowImageInvocation | CropImageInvocation | PasteImageInvocation | MaskFromAlphaInvocation | BlurInvocation | LerpInvocation | InverseLerpInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | CvInpaintInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RangeInvocation | RandomRangeInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | GraphInvocation | IterateInvocation | CollectInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation),
}): CancelablePromise<string> {
return __request(OpenAPI, {
method: 'POST',
@@ -168,7 +178,7 @@ export class SessionsService {
* The path to the node in the graph
*/
nodePath: string,
requestBody: (LoadImageInvocation | ShowImageInvocation | CropImageInvocation | PasteImageInvocation | MaskFromAlphaInvocation | BlurInvocation | LerpInvocation | InverseLerpInvocation | CvInpaintInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | GraphInvocation | IterateInvocation | CollectInvocation | ImageToImageInvocation | InpaintInvocation),
requestBody: (LoadImageInvocation | ShowImageInvocation | CropImageInvocation | PasteImageInvocation | MaskFromAlphaInvocation | BlurInvocation | LerpInvocation | InverseLerpInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | CvInpaintInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RangeInvocation | RandomRangeInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | GraphInvocation | IterateInvocation | CollectInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation),
}): CancelablePromise<GraphExecutionState> {
return __request(OpenAPI, {
method: 'PUT',