chore(ui): regen api client

This commit is contained in:
psychedelicious 2023-05-22 11:18:10 +10:00 committed by Kent Keirsey
parent 96653eebb6
commit b77ccfaf32
88 changed files with 326 additions and 2540 deletions

View File

@ -28,10 +28,9 @@ export type { GraphExecutionState } from './models/GraphExecutionState';
export type { GraphInvocation } from './models/GraphInvocation';
export type { GraphInvocationOutput } from './models/GraphInvocationOutput';
export type { HTTPValidationError } from './models/HTTPValidationError';
export type { ImageCategory } from './models/ImageCategory';
export type { ImageField } from './models/ImageField';
export type { ImageOutput } from './models/ImageOutput';
export type { ImageResponse } from './models/ImageResponse';
export type { ImageResponseMetadata } from './models/ImageResponseMetadata';
export type { ImageToImageInvocation } from './models/ImageToImageInvocation';
export type { ImageToLatentsInvocation } from './models/ImageToLatentsInvocation';
export type { ImageType } from './models/ImageType';
@ -42,7 +41,6 @@ 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 { InvokeAIMetadata } from './models/InvokeAIMetadata';
export type { IterateInvocation } from './models/IterateInvocation';
export type { IterateInvocationOutput } from './models/IterateInvocationOutput';
export type { LatentsField } from './models/LatentsField';
@ -53,15 +51,11 @@ 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 { MetadataColorField } from './models/MetadataColorField';
export type { MetadataImageField } from './models/MetadataImageField';
export type { MetadataLatentsField } from './models/MetadataLatentsField';
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 { ParamIntInvocation } from './models/ParamIntInvocation';
export type { PasteImageInvocation } from './models/PasteImageInvocation';
export type { PromptOutput } from './models/PromptOutput';
@ -79,79 +73,8 @@ 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 { $ColorField } from './schemas/$ColorField';
export { $CompelInvocation } from './schemas/$CompelInvocation';
export { $CompelOutput } from './schemas/$CompelOutput';
export { $ConditioningField } from './schemas/$ConditioningField';
export { $CreateModelRequest } from './schemas/$CreateModelRequest';
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';
export { $GraphExecutionState } from './schemas/$GraphExecutionState';
export { $GraphInvocation } from './schemas/$GraphInvocation';
export { $GraphInvocationOutput } from './schemas/$GraphInvocationOutput';
export { $HTTPValidationError } from './schemas/$HTTPValidationError';
export { $ImageField } from './schemas/$ImageField';
export { $ImageOutput } from './schemas/$ImageOutput';
export { $ImageResponse } from './schemas/$ImageResponse';
export { $ImageResponseMetadata } from './schemas/$ImageResponseMetadata';
export { $ImageToImageInvocation } from './schemas/$ImageToImageInvocation';
export { $ImageToLatentsInvocation } from './schemas/$ImageToLatentsInvocation';
export { $ImageType } from './schemas/$ImageType';
export { $InfillColorInvocation } from './schemas/$InfillColorInvocation';
export { $InfillPatchMatchInvocation } from './schemas/$InfillPatchMatchInvocation';
export { $InfillTileInvocation } from './schemas/$InfillTileInvocation';
export { $InpaintInvocation } from './schemas/$InpaintInvocation';
export { $IntCollectionOutput } from './schemas/$IntCollectionOutput';
export { $IntOutput } from './schemas/$IntOutput';
export { $InverseLerpInvocation } from './schemas/$InverseLerpInvocation';
export { $InvokeAIMetadata } from './schemas/$InvokeAIMetadata';
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 { $MetadataColorField } from './schemas/$MetadataColorField';
export { $MetadataImageField } from './schemas/$MetadataImageField';
export { $MetadataLatentsField } from './schemas/$MetadataLatentsField';
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 { $ParamIntInvocation } from './schemas/$ParamIntInvocation';
export { $PasteImageInvocation } from './schemas/$PasteImageInvocation';
export { $PromptOutput } from './schemas/$PromptOutput';
export { $RandomIntInvocation } from './schemas/$RandomIntInvocation';
export { $RandomRangeInvocation } from './schemas/$RandomRangeInvocation';
export { $RangeInvocation } from './schemas/$RangeInvocation';
export { $ResizeLatentsInvocation } from './schemas/$ResizeLatentsInvocation';
export { $RestoreFaceInvocation } from './schemas/$RestoreFaceInvocation';
export { $ScaleLatentsInvocation } from './schemas/$ScaleLatentsInvocation';
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 { FilesService } from './services/FilesService';
export { ImagesService } from './services/ImagesService';
export { ModelsService } from './services/ModelsService';
export { RecordsService } from './services/RecordsService';
export { SessionsService } from './services/SessionsService';

View File

@ -48,7 +48,7 @@ export type Graph = {
/**
* The nodes in this graph
*/
nodes?: Record<string, (LoadImageInvocation | ShowImageInvocation | CropImageInvocation | PasteImageInvocation | MaskFromAlphaInvocation | BlurInvocation | LerpInvocation | InverseLerpInvocation | CompelInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | CvInpaintInvocation | RangeInvocation | RandomRangeInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation)>;
nodes?: Record<string, (LoadImageInvocation | ShowImageInvocation | CropImageInvocation | PasteImageInvocation | MaskFromAlphaInvocation | BlurInvocation | LerpInvocation | InverseLerpInvocation | CompelInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | CvInpaintInvocation | RangeInvocation | RandomRangeInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation)>;
/**
* The connections between nodes and their fields in this graph
*/

View File

@ -42,7 +42,7 @@ export type GraphExecutionState = {
/**
* The results of node executions
*/
results: Record<string, (ImageOutput | MaskOutput | CompelOutput | LatentsOutput | NoiseOutput | IntOutput | PromptOutput | IntCollectionOutput | GraphInvocationOutput | IterateInvocationOutput | CollectInvocationOutput)>;
results: Record<string, (ImageOutput | MaskOutput | PromptOutput | CompelOutput | IntOutput | LatentsOutput | NoiseOutput | IntCollectionOutput | GraphInvocationOutput | IterateInvocationOutput | CollectInvocationOutput)>;
/**
* Errors raised when executing nodes
*/

View File

@ -0,0 +1,8 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* The category of an image. Use ImageCategory.OTHER for non-default categories.
*/
export type ImageCategory = 'image' | 'control_image' | 'other';

View File

@ -1,33 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ImageResponseMetadata } from './ImageResponseMetadata';
import type { ImageType } from './ImageType';
/**
* The response type for images
*/
export type ImageResponse = {
/**
* The type of the image
*/
image_type: ImageType;
/**
* The name of the image
*/
image_name: string;
/**
* The url of the image
*/
image_url: string;
/**
* The url of the image's thumbnail
*/
thumbnail_url: string;
/**
* The image's metadata
*/
metadata: ImageResponseMetadata;
};

View File

@ -1,28 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { InvokeAIMetadata } from './InvokeAIMetadata';
/**
* An image's metadata. Used only in HTTP responses.
*/
export type ImageResponseMetadata = {
/**
* The creation timestamp of the image
*/
created: number;
/**
* The width of the image in pixels
*/
width: number;
/**
* The height of the image in pixels
*/
height: number;
/**
* The image's InvokeAI-specific metadata
*/
invokeai?: InvokeAIMetadata;
};

View File

@ -3,6 +3,6 @@
/* eslint-disable */
/**
* An enumeration.
* The type of an image.
*/
export type ImageType = 'results' | 'intermediates' | 'uploads';
export type ImageType = 'results' | 'uploads' | 'intermediates';

View File

@ -1,13 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { MetadataColorField } from './MetadataColorField';
import type { MetadataImageField } from './MetadataImageField';
import type { MetadataLatentsField } from './MetadataLatentsField';
export type InvokeAIMetadata = {
session_id?: string;
node?: Record<string, (string | number | boolean | MetadataImageField | MetadataLatentsField | MetadataColorField)>;
};

View File

@ -1,11 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type MetadataColorField = {
'r': number;
'g': number;
'b': number;
'a': number;
};

View File

@ -1,11 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ImageType } from './ImageType';
export type MetadataImageField = {
image_type: ImageType;
image_name: string;
};

View File

@ -1,8 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type MetadataLatentsField = {
latents_name: string;
};

View File

@ -1,32 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ImageResponse } from './ImageResponse';
/**
* Paginated results
*/
export type PaginatedResults_ImageResponse_ = {
/**
* Items
*/
items: Array<ImageResponse>;
/**
* Current Page
*/
page: number;
/**
* Total number of pages
*/
pages: number;
/**
* Number of items per page
*/
per_page: number;
/**
* Total number of items in result
*/
total: number;
};

View File

@ -1,24 +0,0 @@
/* 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

@ -1,30 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $BlurInvocation = {
description: `Blurs an image`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
image: {
type: 'all-of',
description: `The image to blur`,
contains: [{
type: 'ImageField',
}],
},
radius: {
type: 'number',
description: `The blur radius`,
},
blur_type: {
type: 'Enum',
},
},
} as const;

View File

@ -1,12 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $Body_upload_image = {
properties: {
file: {
type: 'binary',
isRequired: true,
format: 'binary',
},
},
} as const;

View File

@ -1,37 +0,0 @@
/* 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

@ -1,28 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $CollectInvocation = {
description: `Collects values into a collection`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
item: {
description: `The item to collect (all inputs must be of the same type)`,
properties: {
},
},
collection: {
type: 'array',
contains: {
properties: {
},
},
},
},
} as const;

View File

@ -1,20 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $CollectInvocationOutput = {
description: `Base class for all invocation outputs`,
properties: {
type: {
type: 'Enum',
isRequired: true,
},
collection: {
type: 'array',
contains: {
properties: {
},
},
isRequired: true,
},
},
} as const;

View File

@ -1,31 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $ColorField = {
properties: {
'r': {
type: 'number',
description: `The red component`,
isRequired: true,
maximum: 255,
},
'g': {
type: 'number',
description: `The green component`,
isRequired: true,
maximum: 255,
},
'b': {
type: 'number',
description: `The blue component`,
isRequired: true,
maximum: 255,
},
'a': {
type: 'number',
description: `The alpha component`,
isRequired: true,
maximum: 255,
},
},
} as const;

View File

@ -1,24 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $CompelInvocation = {
description: `Parse prompt using compel package to conditioning.`,
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: `Prompt`,
},
model: {
type: 'string',
description: `Model to use`,
},
},
} as const;

View File

@ -1,18 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $CompelOutput = {
description: `Compel parser output`,
properties: {
type: {
type: 'Enum',
},
conditioning: {
type: 'all-of',
description: `Conditioning`,
contains: [{
type: 'ConditioningField',
}],
},
},
} as const;

View File

@ -1,12 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $ConditioningField = {
properties: {
conditioning_name: {
type: 'string',
description: `The name of conditioning data`,
isRequired: true,
},
},
} as const;

View File

@ -1,22 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $CreateModelRequest = {
properties: {
name: {
type: 'string',
description: `The name of the model`,
isRequired: true,
},
info: {
type: 'one-of',
description: `The model info`,
contains: [{
type: 'CkptModelInfo',
}, {
type: 'DiffusersModelInfo',
}],
isRequired: true,
},
},
} as const;

View File

@ -1,39 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $CropImageInvocation = {
description: `Crops an image to a specified box. The box can be outside of the image.`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
image: {
type: 'all-of',
description: `The image to crop`,
contains: [{
type: 'ImageField',
}],
},
'x': {
type: 'number',
description: `The left x coordinate of the crop rectangle`,
},
'y': {
type: 'number',
description: `The top y coordinate of the crop rectangle`,
},
width: {
type: 'number',
description: `The width of the crop rectangle`,
},
height: {
type: 'number',
description: `The height of the crop rectangle`,
},
},
} as const;

View File

@ -1,30 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $CvInpaintInvocation = {
description: `Simple inpaint using opencv.`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
image: {
type: 'all-of',
description: `The image to inpaint`,
contains: [{
type: 'ImageField',
}],
},
mask: {
type: 'all-of',
description: `The mask to use when inpainting`,
contains: [{
type: 'ImageField',
}],
},
},
} as const;

View File

@ -1,29 +0,0 @@
/* 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

@ -1,24 +0,0 @@
/* 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

@ -1,23 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $Edge = {
properties: {
source: {
type: 'all-of',
description: `The connection for the edge's from node and field`,
contains: [{
type: 'EdgeConnection',
}],
isRequired: true,
},
destination: {
type: 'all-of',
description: `The connection for the edge's to node and field`,
contains: [{
type: 'EdgeConnection',
}],
isRequired: true,
},
},
} as const;

View File

@ -1,17 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $EdgeConnection = {
properties: {
node_id: {
type: 'string',
description: `The id of the node for this edge connection`,
isRequired: true,
},
field: {
type: 'string',
description: `The field for this connection`,
isRequired: true,
},
},
} as const;

View File

@ -1,96 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $Graph = {
properties: {
id: {
type: 'string',
description: `The id of this graph`,
},
nodes: {
type: 'dictionary',
contains: {
type: 'one-of',
contains: [{
type: 'LoadImageInvocation',
}, {
type: 'ShowImageInvocation',
}, {
type: 'CropImageInvocation',
}, {
type: 'PasteImageInvocation',
}, {
type: 'MaskFromAlphaInvocation',
}, {
type: 'BlurInvocation',
}, {
type: 'LerpInvocation',
}, {
type: 'InverseLerpInvocation',
}, {
type: 'CompelInvocation',
}, {
type: 'NoiseInvocation',
}, {
type: 'TextToLatentsInvocation',
}, {
type: 'LatentsToImageInvocation',
}, {
type: 'ResizeLatentsInvocation',
}, {
type: 'ScaleLatentsInvocation',
}, {
type: 'ImageToLatentsInvocation',
}, {
type: 'AddInvocation',
}, {
type: 'SubtractInvocation',
}, {
type: 'MultiplyInvocation',
}, {
type: 'DivideInvocation',
}, {
type: 'RandomIntInvocation',
}, {
type: 'ParamIntInvocation',
}, {
type: 'CvInpaintInvocation',
}, {
type: 'RangeInvocation',
}, {
type: 'RandomRangeInvocation',
}, {
type: 'UpscaleInvocation',
}, {
type: 'RestoreFaceInvocation',
}, {
type: 'TextToImageInvocation',
}, {
type: 'InfillColorInvocation',
}, {
type: 'InfillTileInvocation',
}, {
type: 'InfillPatchMatchInvocation',
}, {
type: 'GraphInvocation',
}, {
type: 'IterateInvocation',
}, {
type: 'CollectInvocation',
}, {
type: 'LatentsToLatentsInvocation',
}, {
type: 'ImageToImageInvocation',
}, {
type: 'InpaintInvocation',
}],
},
},
edges: {
type: 'array',
contains: {
type: 'Edge',
},
},
},
} as const;

View File

@ -1,97 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $GraphExecutionState = {
description: `Tracks the state of a graph execution`,
properties: {
id: {
type: 'string',
description: `The id of the execution state`,
isRequired: true,
},
graph: {
type: 'all-of',
description: `The graph being executed`,
contains: [{
type: 'Graph',
}],
isRequired: true,
},
execution_graph: {
type: 'all-of',
description: `The expanded graph of activated and executed nodes`,
contains: [{
type: 'Graph',
}],
isRequired: true,
},
executed: {
type: 'array',
contains: {
type: 'string',
},
isRequired: true,
},
executed_history: {
type: 'array',
contains: {
type: 'string',
},
isRequired: true,
},
results: {
type: 'dictionary',
contains: {
type: 'one-of',
contains: [{
type: 'ImageOutput',
}, {
type: 'MaskOutput',
}, {
type: 'CompelOutput',
}, {
type: 'LatentsOutput',
}, {
type: 'NoiseOutput',
}, {
type: 'IntOutput',
}, {
type: 'PromptOutput',
}, {
type: 'IntCollectionOutput',
}, {
type: 'GraphInvocationOutput',
}, {
type: 'IterateInvocationOutput',
}, {
type: 'CollectInvocationOutput',
}],
},
isRequired: true,
},
errors: {
type: 'dictionary',
contains: {
type: 'string',
},
isRequired: true,
},
prepared_source_mapping: {
type: 'dictionary',
contains: {
type: 'string',
},
isRequired: true,
},
source_prepared_mapping: {
type: 'dictionary',
contains: {
type: 'array',
contains: {
type: 'string',
},
},
isRequired: true,
},
},
} as const;

View File

@ -1,24 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $GraphInvocation = {
description: `A node to process inputs and produce outputs.
May use dependency injection in __init__ to receive providers.`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
graph: {
type: 'all-of',
description: `The graph to run`,
contains: [{
type: 'Graph',
}],
},
},
} as const;

View File

@ -1,12 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $GraphInvocationOutput = {
description: `Base class for all invocation outputs`,
properties: {
type: {
type: 'Enum',
isRequired: true,
},
},
} as const;

View File

@ -1,13 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $HTTPValidationError = {
properties: {
detail: {
type: 'array',
contains: {
type: 'ValidationError',
},
},
},
} as const;

View File

@ -1,21 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $ImageField = {
description: `An image field used for passing image objects between invocations`,
properties: {
image_type: {
type: 'all-of',
description: `The type of the image`,
contains: [{
type: 'ImageType',
}],
isRequired: true,
},
image_name: {
type: 'string',
description: `The name of the image`,
isRequired: true,
},
},
} as const;

View File

@ -1,30 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $ImageOutput = {
description: `Base class for invocations that output an image`,
properties: {
type: {
type: 'Enum',
isRequired: true,
},
image: {
type: 'all-of',
description: `The output image`,
contains: [{
type: 'ImageField',
}],
isRequired: true,
},
width: {
type: 'number',
description: `The width of the image in pixels`,
isRequired: true,
},
height: {
type: 'number',
description: `The height of the image in pixels`,
isRequired: true,
},
},
} as const;

View File

@ -1,39 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $ImageResponse = {
description: `The response type for images`,
properties: {
image_type: {
type: 'all-of',
description: `The type of the image`,
contains: [{
type: 'ImageType',
}],
isRequired: true,
},
image_name: {
type: 'string',
description: `The name of the image`,
isRequired: true,
},
image_url: {
type: 'string',
description: `The url of the image`,
isRequired: true,
},
thumbnail_url: {
type: 'string',
description: `The url of the image's thumbnail`,
isRequired: true,
},
metadata: {
type: 'all-of',
description: `The image's metadata`,
contains: [{
type: 'ImageResponseMetadata',
}],
isRequired: true,
},
},
} as const;

View File

@ -1,30 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $ImageResponseMetadata = {
description: `An image's metadata. Used only in HTTP responses.`,
properties: {
created: {
type: 'number',
description: `The creation timestamp of the image`,
isRequired: true,
},
width: {
type: 'number',
description: `The width of the image in pixels`,
isRequired: true,
},
height: {
type: 'number',
description: `The height of the image in pixels`,
isRequired: true,
},
invokeai: {
type: 'all-of',
description: `The image's InvokeAI-specific metadata`,
contains: [{
type: 'InvokeAIMetadata',
}],
},
},
} as const;

View File

@ -1,67 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $ImageToImageInvocation = {
description: `Generates an image using img2img.`,
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 (omit for random)`,
maximum: 2147483647,
},
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: 8,
},
height: {
type: 'number',
description: `The height of the resulting image`,
multipleOf: 8,
},
cfg_scale: {
type: 'number',
description: `The Classifier-Free Guidance, higher values may result in a result closer to the prompt`,
minimum: 1,
},
scheduler: {
type: 'Enum',
},
model: {
type: 'string',
description: `The model to use (currently ignored)`,
},
image: {
type: 'all-of',
description: `The input image`,
contains: [{
type: 'ImageField',
}],
},
strength: {
type: 'number',
description: `The strength of the original image`,
maximum: 1,
},
fit: {
type: 'boolean',
description: `Whether or not the result should be fit to the aspect ratio of the input image`,
},
},
} as const;

View File

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

View File

@ -1,6 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $ImageType = {
type: 'Enum',
} as const;

View File

@ -1,30 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $InfillColorInvocation = {
description: `Infills transparent areas of an image with a solid color`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
image: {
type: 'all-of',
description: `The image to infill`,
contains: [{
type: 'ImageField',
}],
},
color: {
type: 'all-of',
description: `The color to use to infill`,
contains: [{
type: 'ColorField',
}],
},
},
} as const;

View File

@ -1,23 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $InfillPatchMatchInvocation = {
description: `Infills transparent areas of an image using the PatchMatch algorithm`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
image: {
type: 'all-of',
description: `The image to infill`,
contains: [{
type: 'ImageField',
}],
},
},
} as const;

View File

@ -1,33 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $InfillTileInvocation = {
description: `Infills transparent areas of an image with tiles of the image`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
image: {
type: 'all-of',
description: `The image to infill`,
contains: [{
type: 'ImageField',
}],
},
tile_size: {
type: 'number',
description: `The tile size (px)`,
minimum: 1,
},
seed: {
type: 'number',
description: `The seed to use for tile generation (omit for random)`,
maximum: 2147483647,
},
},
} as const;

View File

@ -1,123 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $InpaintInvocation = {
description: `Generates an image using inpaint.`,
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 (omit for random)`,
maximum: 2147483647,
},
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: 8,
},
height: {
type: 'number',
description: `The height of the resulting image`,
multipleOf: 8,
},
cfg_scale: {
type: 'number',
description: `The Classifier-Free Guidance, higher values may result in a result closer to the prompt`,
minimum: 1,
},
scheduler: {
type: 'Enum',
},
model: {
type: 'string',
description: `The model to use (currently ignored)`,
},
image: {
type: 'all-of',
description: `The input image`,
contains: [{
type: 'ImageField',
}],
},
strength: {
type: 'number',
description: `The strength of the original image`,
maximum: 1,
},
fit: {
type: 'boolean',
description: `Whether or not the result should be fit to the aspect ratio of the input image`,
},
mask: {
type: 'all-of',
description: `The mask`,
contains: [{
type: 'ImageField',
}],
},
seam_size: {
type: 'number',
description: `The seam inpaint size (px)`,
minimum: 1,
},
seam_blur: {
type: 'number',
description: `The seam inpaint blur radius (px)`,
},
seam_strength: {
type: 'number',
description: `The seam inpaint strength`,
maximum: 1,
},
seam_steps: {
type: 'number',
description: `The number of steps to use for seam inpaint`,
minimum: 1,
},
tile_size: {
type: 'number',
description: `The tile infill method size (px)`,
minimum: 1,
},
infill_method: {
type: 'Enum',
},
inpaint_width: {
type: 'number',
description: `The width of the inpaint region (px)`,
multipleOf: 8,
},
inpaint_height: {
type: 'number',
description: `The height of the inpaint region (px)`,
multipleOf: 8,
},
inpaint_fill: {
type: 'all-of',
description: `The solid infill method color`,
contains: [{
type: 'ColorField',
}],
},
inpaint_replace: {
type: 'number',
description: `The amount by which to replace masked areas with latent noise`,
maximum: 1,
},
},
} as const;

View File

@ -1,17 +0,0 @@
/* 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

@ -1,15 +0,0 @@
/* 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

@ -1,33 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $InverseLerpInvocation = {
description: `Inverse linear interpolation of all pixels of an image`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
image: {
type: 'all-of',
description: `The image to lerp`,
contains: [{
type: 'ImageField',
}],
},
min: {
type: 'number',
description: `The minimum input value`,
maximum: 255,
},
max: {
type: 'number',
description: `The maximum input value`,
maximum: 255,
},
},
} as const;

View File

@ -1,31 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $InvokeAIMetadata = {
properties: {
session_id: {
type: 'string',
},
node: {
type: 'dictionary',
contains: {
type: 'any-of',
contains: [{
type: 'string',
}, {
type: 'number',
}, {
type: 'number',
}, {
type: 'boolean',
}, {
type: 'MetadataImageField',
}, {
type: 'MetadataLatentsField',
}, {
type: 'MetadataColorField',
}],
},
},
},
} as const;

View File

@ -1,28 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $IterateInvocation = {
description: `A node to process inputs and produce outputs.
May use dependency injection in __init__ to receive providers.`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
collection: {
type: 'array',
contains: {
properties: {
},
},
},
index: {
type: 'number',
description: `The index, will be provided on executed iterators`,
},
},
} as const;

View File

@ -1,18 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $IterateInvocationOutput = {
description: `Used to connect iteration outputs. Will be expanded to a specific output.`,
properties: {
type: {
type: 'Enum',
isRequired: true,
},
item: {
description: `The item being iterated over`,
properties: {
},
isRequired: true,
},
},
} as const;

View File

@ -1,13 +0,0 @@
/* 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`,
isRequired: true,
},
},
} as const;

View File

@ -1,28 +0,0 @@
/* 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',
}],
},
width: {
type: 'number',
description: `The width of the latents in pixels`,
isRequired: true,
},
height: {
type: 'number',
description: `The height of the latents in pixels`,
isRequired: true,
},
},
} as const;

View File

@ -1,27 +0,0 @@
/* 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

@ -1,71 +0,0 @@
/* 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',
},
positive_conditioning: {
type: 'all-of',
description: `Positive conditioning for generation`,
contains: [{
type: 'ConditioningField',
}],
},
negative_conditioning: {
type: 'all-of',
description: `Negative conditioning for generation`,
contains: [{
type: 'ConditioningField',
}],
},
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`,
},
cfg_scale: {
type: 'number',
description: `The Classifier-Free Guidance, higher values may result in a result closer to the prompt`,
},
scheduler: {
type: 'Enum',
},
model: {
type: 'string',
description: `The model to use (currently ignored)`,
},
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'`,
},
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

@ -1,33 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $LerpInvocation = {
description: `Linear interpolation of all pixels of an image`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
image: {
type: 'all-of',
description: `The image to lerp`,
contains: [{
type: 'ImageField',
}],
},
min: {
type: 'number',
description: `The minimum output value`,
maximum: 255,
},
max: {
type: 'number',
description: `The maximum output value`,
maximum: 255,
},
},
} as const;

View File

@ -1,29 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $LoadImageInvocation = {
description: `Load an image and provide it as output.`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
image_type: {
type: 'all-of',
description: `The type of the image`,
contains: [{
type: 'ImageType',
}],
isRequired: true,
},
image_name: {
type: 'string',
description: `The name of the image`,
isRequired: true,
},
},
} as const;

View File

@ -1,27 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $MaskFromAlphaInvocation = {
description: `Extracts the alpha channel of an image as a mask.`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
image: {
type: 'all-of',
description: `The image to create the mask from`,
contains: [{
type: 'ImageField',
}],
},
invert: {
type: 'boolean',
description: `Whether or not to invert the mask`,
},
},
} as const;

View File

@ -1,20 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $MaskOutput = {
description: `Base class for invocations that output a mask`,
properties: {
type: {
type: 'Enum',
isRequired: true,
},
mask: {
type: 'all-of',
description: `The output mask`,
contains: [{
type: 'ImageField',
}],
isRequired: true,
},
},
} as const;

View File

@ -1,23 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $MetadataColorField = {
properties: {
'r': {
type: 'number',
isRequired: true,
},
'g': {
type: 'number',
isRequired: true,
},
'b': {
type: 'number',
isRequired: true,
},
'a': {
type: 'number',
isRequired: true,
},
},
} as const;

View File

@ -1,15 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $MetadataImageField = {
properties: {
image_type: {
type: 'ImageType',
isRequired: true,
},
image_name: {
type: 'string',
isRequired: true,
},
},
} as const;

View File

@ -1,11 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $MetadataLatentsField = {
properties: {
latents_name: {
type: 'string',
isRequired: true,
},
},
} as const;

View File

@ -1,19 +0,0 @@
/* 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

@ -1,24 +0,0 @@
/* 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

@ -1,31 +0,0 @@
/* 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: 2147483647,
},
width: {
type: 'number',
description: `The width of the resulting noise`,
multipleOf: 8,
},
height: {
type: 'number',
description: `The height of the resulting noise`,
multipleOf: 8,
},
},
} as const;

View File

@ -1,28 +0,0 @@
/* 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',
}],
},
width: {
type: 'number',
description: `The width of the noise in pixels`,
isRequired: true,
},
height: {
type: 'number',
description: `The height of the noise in pixels`,
isRequired: true,
},
},
} as const;

View File

@ -1,35 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $PaginatedResults_GraphExecutionState_ = {
description: `Paginated results`,
properties: {
items: {
type: 'array',
contains: {
type: 'GraphExecutionState',
},
isRequired: true,
},
page: {
type: 'number',
description: `Current Page`,
isRequired: true,
},
pages: {
type: 'number',
description: `Total number of pages`,
isRequired: true,
},
per_page: {
type: 'number',
description: `Number of items per page`,
isRequired: true,
},
total: {
type: 'number',
description: `Total number of items in result`,
isRequired: true,
},
},
} as const;

View File

@ -1,35 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $PaginatedResults_ImageResponse_ = {
description: `Paginated results`,
properties: {
items: {
type: 'array',
contains: {
type: 'ImageResponse',
},
isRequired: true,
},
page: {
type: 'number',
description: `Current Page`,
isRequired: true,
},
pages: {
type: 'number',
description: `Total number of pages`,
isRequired: true,
},
per_page: {
type: 'number',
description: `Number of items per page`,
isRequired: true,
},
total: {
type: 'number',
description: `Total number of items in result`,
isRequired: true,
},
},
} as const;

View File

@ -1,20 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $ParamIntInvocation = {
description: `An integer parameter`,
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 integer value`,
},
},
} as const;

View File

@ -1,45 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $PasteImageInvocation = {
description: `Pastes an image into another image.`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
base_image: {
type: 'all-of',
description: `The base image`,
contains: [{
type: 'ImageField',
}],
},
image: {
type: 'all-of',
description: `The image to paste`,
contains: [{
type: 'ImageField',
}],
},
mask: {
type: 'all-of',
description: `The mask to use when pasting`,
contains: [{
type: 'ImageField',
}],
},
'x': {
type: 'number',
description: `The left x coordinate at which to paste the image`,
},
'y': {
type: 'number',
description: `The top y coordinate at which to paste the image`,
},
},
} as const;

View File

@ -1,17 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $PromptOutput = {
description: `Base class for invocations that output a prompt`,
properties: {
type: {
type: 'Enum',
isRequired: true,
},
prompt: {
type: 'string',
description: `The output prompt`,
isRequired: true,
},
},
} as const;

View File

@ -1,24 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $RandomIntInvocation = {
description: `Outputs a single random integer.`,
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`,
},
},
} as const;

View File

@ -1,33 +0,0 @@
/* 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`,
},
seed: {
type: 'number',
description: `The seed for the RNG (omit for random)`,
maximum: 2147483647,
},
},
} as const;

View File

@ -1,28 +0,0 @@
/* 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

@ -1,44 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $ResizeLatentsInvocation = {
description: `Resizes latents to explicit width/height (in pixels). Provided dimensions are floor-divided by 8.`,
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 resize`,
contains: [{
type: 'LatentsField',
}],
},
width: {
type: 'number',
description: `The width to resize to (px)`,
isRequired: true,
minimum: 64,
multipleOf: 8,
},
height: {
type: 'number',
description: `The height to resize to (px)`,
isRequired: true,
minimum: 64,
multipleOf: 8,
},
mode: {
type: 'Enum',
},
antialias: {
type: 'boolean',
description: `Whether or not to antialias (applied in bilinear and bicubic modes only)`,
},
},
} as const;

View File

@ -1,28 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $RestoreFaceInvocation = {
description: `Restores faces in an image.`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
image: {
type: 'all-of',
description: `The input image`,
contains: [{
type: 'ImageField',
}],
},
strength: {
type: 'number',
description: `The strength of the restoration`,
maximum: 1,
},
},
} as const;

View File

@ -1,35 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $ScaleLatentsInvocation = {
description: `Scales latents by a given factor.`,
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 scale`,
contains: [{
type: 'LatentsField',
}],
},
scale_factor: {
type: 'number',
description: `The factor by which to scale the latents`,
isRequired: true,
},
mode: {
type: 'Enum',
},
antialias: {
type: 'boolean',
description: `Whether or not to antialias (applied in bilinear and bicubic modes only)`,
},
},
} as const;

View File

@ -1,23 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $ShowImageInvocation = {
description: `Displays a provided image, and passes it forward in the pipeline.`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
image: {
type: 'all-of',
description: `The image to show`,
contains: [{
type: 'ImageField',
}],
},
},
} as const;

View File

@ -1,24 +0,0 @@
/* 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

@ -1,51 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $TextToImageInvocation = {
description: `Generates an image using text2img.`,
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 (omit for random)`,
maximum: 2147483647,
},
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: 8,
},
height: {
type: 'number',
description: `The height of the resulting image`,
multipleOf: 8,
},
cfg_scale: {
type: 'number',
description: `The Classifier-Free Guidance, higher values may result in a result closer to the prompt`,
minimum: 1,
},
scheduler: {
type: 'Enum',
},
model: {
type: 'string',
description: `The model to use (currently ignored)`,
},
},
} as const;

View File

@ -1,60 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $TextToLatentsInvocation = {
description: `Generates latents from conditionings.`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
positive_conditioning: {
type: 'all-of',
description: `Positive conditioning for generation`,
contains: [{
type: 'ConditioningField',
}],
},
negative_conditioning: {
type: 'all-of',
description: `Negative conditioning for generation`,
contains: [{
type: 'ConditioningField',
}],
},
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`,
},
cfg_scale: {
type: 'number',
description: `The Classifier-Free Guidance, higher values may result in a result closer to the prompt`,
},
scheduler: {
type: 'Enum',
},
model: {
type: 'string',
description: `The model to use (currently ignored)`,
},
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'`,
},
},
} as const;

View File

@ -1,31 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $UpscaleInvocation = {
description: `Upscales an image.`,
properties: {
id: {
type: 'string',
description: `The id of this node. Must be unique among all nodes.`,
isRequired: true,
},
type: {
type: 'Enum',
},
image: {
type: 'all-of',
description: `The input image`,
contains: [{
type: 'ImageField',
}],
},
strength: {
type: 'number',
description: `The strength`,
maximum: 1,
},
level: {
type: 'Enum',
},
},
} as const;

View File

@ -1,20 +0,0 @@
/* 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

@ -1,27 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $ValidationError = {
properties: {
loc: {
type: 'array',
contains: {
type: 'any-of',
contains: [{
type: 'string',
}, {
type: 'number',
}],
},
isRequired: true,
},
msg: {
type: 'string',
isRequired: true,
},
type: {
type: 'string',
isRequired: true,
},
},
} as const;

View File

@ -0,0 +1,76 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ImageType } from '../models/ImageType';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class FilesService {
/**
* Get Image
* Gets an image
* @returns any Successful Response
* @throws ApiError
*/
public static getImage({
imageType,
imageName,
}: {
/**
* The type of the image to get
*/
imageType: ImageType,
/**
* The id of the image to get
*/
imageName: string,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/files/images/{image_type}/{image_name}',
path: {
'image_type': imageType,
'image_name': imageName,
},
errors: {
422: `Validation Error`,
},
});
}
/**
* Get Thumbnail
* Gets a thumbnail
* @returns any Successful Response
* @throws ApiError
*/
public static getThumbnail({
imageType,
imageName,
}: {
/**
* The type of the image whose thumbnail to get
*/
imageType: ImageType,
/**
* The id of the image whose thumbnail to get
*/
imageName: string,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/files/images/{image_type}/{image_name}/thumbnail',
path: {
'image_type': imageType,
'image_name': imageName,
},
errors: {
422: `Validation Error`,
},
});
}
}

View File

@ -2,9 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import type { Body_upload_image } from '../models/Body_upload_image';
import type { ImageResponse } from '../models/ImageResponse';
import type { ImageCategory } from '../models/ImageCategory';
import type { ImageType } from '../models/ImageType';
import type { PaginatedResults_ImageResponse_ } from '../models/PaginatedResults_ImageResponse_';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
@ -23,17 +22,17 @@ export class ImagesService {
imageName,
}: {
/**
* The type of image to get
* The type of the image to get
*/
imageType: ImageType,
/**
* The name of the image to get
* The id of the image to get
*/
imageName: string,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/images/{image_type}/{image_name}',
url: '/api/v1/files/images/{image_type}/{image_name}',
path: {
'image_type': imageType,
'image_name': imageName,
@ -44,9 +43,148 @@ export class ImagesService {
});
}
/**
* Get Thumbnail
* Gets a thumbnail
* @returns any Successful Response
* @throws ApiError
*/
public static getThumbnail({
imageType,
imageName,
}: {
/**
* The type of the image whose thumbnail to get
*/
imageType: ImageType,
/**
* The id of the image whose thumbnail to get
*/
imageName: string,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/files/images/{image_type}/{image_name}/thumbnail',
path: {
'image_type': imageType,
'image_name': imageName,
},
errors: {
422: `Validation Error`,
},
});
}
/**
* Get Image Record
* Gets an image record by id
* @returns any Successful Response
* @throws ApiError
*/
public static getImageRecord({
imageType,
imageName,
}: {
/**
* The type of the image record to get
*/
imageType: ImageType,
/**
* The id of the image record to get
*/
imageName: string,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/images/records/{image_type}/{image_name}',
path: {
'image_type': imageType,
'image_name': imageName,
},
errors: {
422: `Validation Error`,
},
});
}
/**
* List Image Records
* Gets a list of image records by type and category
* @returns any Successful Response
* @throws ApiError
*/
public static listImageRecords({
imageType,
imageCategory,
page,
perPage = 10,
}: {
/**
* The type of image records to get
*/
imageType: ImageType,
/**
* The kind of image records to get
*/
imageCategory: ImageCategory,
/**
* The page of image records to get
*/
page?: number,
/**
* The number of image records per page
*/
perPage?: number,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/images/records/',
query: {
'image_type': imageType,
'image_category': imageCategory,
'page': page,
'per_page': perPage,
},
errors: {
422: `Validation Error`,
},
});
}
/**
* Upload Image
* Uploads an image
* @returns any The image was uploaded successfully
* @throws ApiError
*/
public static uploadImage({
imageType,
formData,
imageCategory,
}: {
imageType: ImageType,
formData: Body_upload_image,
imageCategory?: ImageCategory,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/v1/images/',
query: {
'image_type': imageType,
'image_category': imageCategory,
},
formData: formData,
mediaType: 'multipart/form-data',
errors: {
415: `Image upload failed`,
422: `Validation Error`,
},
});
}
/**
* Delete Image
* Deletes an image and its thumbnail
* Deletes an image
* @returns any Successful Response
* @throws ApiError
*/
@ -54,9 +192,6 @@ export class ImagesService {
imageType,
imageName,
}: {
/**
* The type of image to delete
*/
imageType: ImageType,
/**
* The name of the image to delete
@ -76,101 +211,4 @@ export class ImagesService {
});
}
/**
* Get Thumbnail
* Gets a thumbnail
* @returns any Successful Response
* @throws ApiError
*/
public static getThumbnail({
thumbnailType,
thumbnailName,
}: {
/**
* The type of thumbnail to get
*/
thumbnailType: ImageType,
/**
* The name of the thumbnail to get
*/
thumbnailName: string,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/images/{thumbnail_type}/thumbnails/{thumbnail_name}',
path: {
'thumbnail_type': thumbnailType,
'thumbnail_name': thumbnailName,
},
errors: {
422: `Validation Error`,
},
});
}
/**
* Upload Image
* @returns ImageResponse The image was uploaded successfully
* @throws ApiError
*/
public static uploadImage({
imageType,
formData,
}: {
imageType: ImageType,
formData: Body_upload_image,
}): CancelablePromise<ImageResponse> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/v1/images/uploads/',
query: {
'image_type': imageType,
},
formData: formData,
mediaType: 'multipart/form-data',
errors: {
415: `Image upload failed`,
422: `Validation Error`,
},
});
}
/**
* List Images
* Gets a list of images
* @returns PaginatedResults_ImageResponse_ Successful Response
* @throws ApiError
*/
public static listImages({
imageType,
page,
perPage = 10,
}: {
/**
* The type of images to get
*/
imageType?: ImageType,
/**
* The page of images to get
*/
page?: number,
/**
* The number of images per page
*/
perPage?: number,
}): CancelablePromise<PaginatedResults_ImageResponse_> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/images/',
query: {
'image_type': imageType,
'page': page,
'per_page': perPage,
},
errors: {
422: `Validation Error`,
},
});
}
}

View File

@ -0,0 +1,89 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ImageCategory } from '../models/ImageCategory';
import type { ImageType } from '../models/ImageType';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class RecordsService {
/**
* Get Image Record
* Gets an image record by id
* @returns any Successful Response
* @throws ApiError
*/
public static getImageRecord({
imageType,
imageName,
}: {
/**
* The type of the image record to get
*/
imageType: ImageType,
/**
* The id of the image record to get
*/
imageName: string,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/images/records/{image_type}/{image_name}',
path: {
'image_type': imageType,
'image_name': imageName,
},
errors: {
422: `Validation Error`,
},
});
}
/**
* List Image Records
* Gets a list of image records by type and category
* @returns any Successful Response
* @throws ApiError
*/
public static listImageRecords({
imageType,
imageCategory,
page,
perPage = 10,
}: {
/**
* The type of image records to get
*/
imageType: ImageType,
/**
* The kind of image records to get
*/
imageCategory: ImageCategory,
/**
* The page of image records to get
*/
page?: number,
/**
* The number of image records per page
*/
perPage?: number,
}): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/images/records/',
query: {
'image_type': imageType,
'image_category': imageCategory,
'page': page,
'per_page': perPage,
},
errors: {
422: `Validation Error`,
},
});
}
}

View File

@ -150,7 +150,7 @@ export class SessionsService {
* The id of the session
*/
sessionId: string,
requestBody: (LoadImageInvocation | ShowImageInvocation | CropImageInvocation | PasteImageInvocation | MaskFromAlphaInvocation | BlurInvocation | LerpInvocation | InverseLerpInvocation | CompelInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | CvInpaintInvocation | RangeInvocation | RandomRangeInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation),
requestBody: (LoadImageInvocation | ShowImageInvocation | CropImageInvocation | PasteImageInvocation | MaskFromAlphaInvocation | BlurInvocation | LerpInvocation | InverseLerpInvocation | CompelInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | CvInpaintInvocation | RangeInvocation | RandomRangeInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation),
}): CancelablePromise<string> {
return __request(OpenAPI, {
method: 'POST',
@ -187,7 +187,7 @@ export class SessionsService {
* The path to the node in the graph
*/
nodePath: string,
requestBody: (LoadImageInvocation | ShowImageInvocation | CropImageInvocation | PasteImageInvocation | MaskFromAlphaInvocation | BlurInvocation | LerpInvocation | InverseLerpInvocation | CompelInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | CvInpaintInvocation | RangeInvocation | RandomRangeInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation),
requestBody: (LoadImageInvocation | ShowImageInvocation | CropImageInvocation | PasteImageInvocation | MaskFromAlphaInvocation | BlurInvocation | LerpInvocation | InverseLerpInvocation | CompelInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | CvInpaintInvocation | RangeInvocation | RandomRangeInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation),
}): CancelablePromise<GraphExecutionState> {
return __request(OpenAPI, {
method: 'PUT',