chore(ui): regen api client

This commit is contained in:
psychedelicious 2023-05-06 19:31:59 +10:00
parent 4d6cef7ac8
commit 6945d10297
32 changed files with 330 additions and 189 deletions

View File

@ -13,6 +13,9 @@ export type { CkptModelInfo } from './models/CkptModelInfo';
export type { CollectInvocation } from './models/CollectInvocation'; export type { CollectInvocation } from './models/CollectInvocation';
export type { CollectInvocationOutput } from './models/CollectInvocationOutput'; export type { CollectInvocationOutput } from './models/CollectInvocationOutput';
export type { ColorField } from './models/ColorField'; export type { ColorField } from './models/ColorField';
export type { CompelInvocation } from './models/CompelInvocation';
export type { CompelOutput } from './models/CompelOutput';
export type { ConditioningField } from './models/ConditioningField';
export type { CreateModelRequest } from './models/CreateModelRequest'; export type { CreateModelRequest } from './models/CreateModelRequest';
export type { CropImageInvocation } from './models/CropImageInvocation'; export type { CropImageInvocation } from './models/CropImageInvocation';
export type { CvInpaintInvocation } from './models/CvInpaintInvocation'; export type { CvInpaintInvocation } from './models/CvInpaintInvocation';
@ -33,7 +36,9 @@ export type { ImageResponseMetadata } from './models/ImageResponseMetadata';
export type { ImageToImageInvocation } from './models/ImageToImageInvocation'; export type { ImageToImageInvocation } from './models/ImageToImageInvocation';
export type { ImageToLatentsInvocation } from './models/ImageToLatentsInvocation'; export type { ImageToLatentsInvocation } from './models/ImageToLatentsInvocation';
export type { ImageType } from './models/ImageType'; export type { ImageType } from './models/ImageType';
export type { InfillImageInvocation } from './models/InfillImageInvocation'; export type { InfillColorInvocation } from './models/InfillColorInvocation';
export type { InfillPatchMatchInvocation } from './models/InfillPatchMatchInvocation';
export type { InfillTileInvocation } from './models/InfillTileInvocation';
export type { InpaintInvocation } from './models/InpaintInvocation'; export type { InpaintInvocation } from './models/InpaintInvocation';
export type { IntCollectionOutput } from './models/IntCollectionOutput'; export type { IntCollectionOutput } from './models/IntCollectionOutput';
export type { IntOutput } from './models/IntOutput'; export type { IntOutput } from './models/IntOutput';
@ -81,6 +86,9 @@ export { $CkptModelInfo } from './schemas/$CkptModelInfo';
export { $CollectInvocation } from './schemas/$CollectInvocation'; export { $CollectInvocation } from './schemas/$CollectInvocation';
export { $CollectInvocationOutput } from './schemas/$CollectInvocationOutput'; export { $CollectInvocationOutput } from './schemas/$CollectInvocationOutput';
export { $ColorField } from './schemas/$ColorField'; 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 { $CreateModelRequest } from './schemas/$CreateModelRequest';
export { $CropImageInvocation } from './schemas/$CropImageInvocation'; export { $CropImageInvocation } from './schemas/$CropImageInvocation';
export { $CvInpaintInvocation } from './schemas/$CvInpaintInvocation'; export { $CvInpaintInvocation } from './schemas/$CvInpaintInvocation';
@ -101,7 +109,9 @@ export { $ImageResponseMetadata } from './schemas/$ImageResponseMetadata';
export { $ImageToImageInvocation } from './schemas/$ImageToImageInvocation'; export { $ImageToImageInvocation } from './schemas/$ImageToImageInvocation';
export { $ImageToLatentsInvocation } from './schemas/$ImageToLatentsInvocation'; export { $ImageToLatentsInvocation } from './schemas/$ImageToLatentsInvocation';
export { $ImageType } from './schemas/$ImageType'; export { $ImageType } from './schemas/$ImageType';
export { $InfillImageInvocation } from './schemas/$InfillImageInvocation'; export { $InfillColorInvocation } from './schemas/$InfillColorInvocation';
export { $InfillPatchMatchInvocation } from './schemas/$InfillPatchMatchInvocation';
export { $InfillTileInvocation } from './schemas/$InfillTileInvocation';
export { $InpaintInvocation } from './schemas/$InpaintInvocation'; export { $InpaintInvocation } from './schemas/$InpaintInvocation';
export { $IntCollectionOutput } from './schemas/$IntCollectionOutput'; export { $IntCollectionOutput } from './schemas/$IntCollectionOutput';
export { $IntOutput } from './schemas/$IntOutput'; export { $IntOutput } from './schemas/$IntOutput';

View File

@ -0,0 +1,23 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* Parse prompt using compel package to conditioning.
*/
export type CompelInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
type?: 'compel';
/**
* Prompt
*/
prompt?: string;
/**
* Model to use
*/
model?: string;
};

View File

@ -0,0 +1,17 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ConditioningField } from './ConditioningField';
/**
* Compel parser output
*/
export type CompelOutput = {
type?: 'compel_output';
/**
* Conditioning
*/
conditioning?: ConditioningField;
};

View File

@ -0,0 +1,11 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ConditioningField = {
/**
* The name of conditioning data
*/
conditioning_name: string;
};

View File

@ -5,6 +5,7 @@
import type { AddInvocation } from './AddInvocation'; import type { AddInvocation } from './AddInvocation';
import type { BlurInvocation } from './BlurInvocation'; import type { BlurInvocation } from './BlurInvocation';
import type { CollectInvocation } from './CollectInvocation'; import type { CollectInvocation } from './CollectInvocation';
import type { CompelInvocation } from './CompelInvocation';
import type { CropImageInvocation } from './CropImageInvocation'; import type { CropImageInvocation } from './CropImageInvocation';
import type { CvInpaintInvocation } from './CvInpaintInvocation'; import type { CvInpaintInvocation } from './CvInpaintInvocation';
import type { DataURLToImageInvocation } from './DataURLToImageInvocation'; import type { DataURLToImageInvocation } from './DataURLToImageInvocation';
@ -13,7 +14,9 @@ import type { Edge } from './Edge';
import type { GraphInvocation } from './GraphInvocation'; import type { GraphInvocation } from './GraphInvocation';
import type { ImageToImageInvocation } from './ImageToImageInvocation'; import type { ImageToImageInvocation } from './ImageToImageInvocation';
import type { ImageToLatentsInvocation } from './ImageToLatentsInvocation'; import type { ImageToLatentsInvocation } from './ImageToLatentsInvocation';
import type { InfillImageInvocation } from './InfillImageInvocation'; import type { InfillColorInvocation } from './InfillColorInvocation';
import type { InfillPatchMatchInvocation } from './InfillPatchMatchInvocation';
import type { InfillTileInvocation } from './InfillTileInvocation';
import type { InpaintInvocation } from './InpaintInvocation'; import type { InpaintInvocation } from './InpaintInvocation';
import type { InverseLerpInvocation } from './InverseLerpInvocation'; import type { InverseLerpInvocation } from './InverseLerpInvocation';
import type { IterateInvocation } from './IterateInvocation'; import type { IterateInvocation } from './IterateInvocation';
@ -45,7 +48,7 @@ export type Graph = {
/** /**
* The nodes in this graph * The nodes in this graph
*/ */
nodes?: Record<string, (LoadImageInvocation | ShowImageInvocation | DataURLToImageInvocation | CropImageInvocation | PasteImageInvocation | MaskFromAlphaInvocation | BlurInvocation | LerpInvocation | InverseLerpInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | ParamIntInvocation | CvInpaintInvocation | RangeInvocation | RandomRangeInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | InfillImageInvocation | GraphInvocation | IterateInvocation | CollectInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation)>; nodes?: Record<string, (LoadImageInvocation | ShowImageInvocation | DataURLToImageInvocation | CropImageInvocation | PasteImageInvocation | MaskFromAlphaInvocation | BlurInvocation | LerpInvocation | InverseLerpInvocation | CompelInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | ParamIntInvocation | 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 * The connections between nodes and their fields in this graph
*/ */

View File

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

View File

@ -18,7 +18,7 @@ export type ImageToImageInvocation = {
*/ */
prompt?: string; prompt?: string;
/** /**
* The seed to use (-1 for a random seed) * The seed to use (omit for random)
*/ */
seed?: number; seed?: number;
/** /**
@ -41,18 +41,10 @@ export type ImageToImageInvocation = {
* The scheduler to use * The scheduler to use
*/ */
scheduler?: 'ddim' | 'dpmpp_2' | 'k_dpm_2' | 'k_dpm_2_a' | 'k_dpmpp_2' | 'k_euler' | 'k_euler_a' | 'k_heun' | 'k_lms' | 'plms'; scheduler?: '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 model to use (currently ignored) * The model to use (currently ignored)
*/ */
model?: string; model?: string;
/**
* Whether or not to produce progress images during generation
*/
progress_images?: boolean;
/** /**
* The input image * The input image
*/ */

View File

@ -0,0 +1,26 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ColorField } from './ColorField';
import type { ImageField } from './ImageField';
/**
* Infills transparent areas of an image with a color
*/
export type InfillColorInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
type?: 'infill_rgba';
/**
* The image to infill
*/
image?: ImageField;
/**
* The color to use to infill
*/
color?: ColorField;
};

View File

@ -1,38 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ColorField } from './ColorField';
import type { ImageField } from './ImageField';
/**
* Infills transparent areas of an image
*/
export type InfillImageInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
type?: 'infill';
/**
* The image to infill
*/
image?: ImageField;
/**
* The method used to infill empty regions (px)
*/
infill_method?: 'patchmatch' | 'tile' | 'solid';
/**
* The solid infill method color
*/
inpaint_fill?: ColorField;
/**
* The tile infill method size (px)
*/
tile_size?: number;
/**
* The seed to use (-1 for a random seed)
*/
seed?: number;
};

View File

@ -0,0 +1,21 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ImageField } from './ImageField';
/**
* Infills transparent areas of an image with tiles of the image
*/
export type InfillPatchMatchInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
type?: 'infill_patchmatch';
/**
* The image to infill
*/
image?: ImageField;
};

View File

@ -0,0 +1,29 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ImageField } from './ImageField';
/**
* Infills transparent areas of an image with tiles of the image
*/
export type InfillTileInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
type?: 'infill_tile';
/**
* The image to infill
*/
image?: ImageField;
/**
* The tile size (px)
*/
tile_size?: number;
/**
* The seed to use for tile generation (omit for random)
*/
seed?: number;
};

View File

@ -19,7 +19,7 @@ export type InpaintInvocation = {
*/ */
prompt?: string; prompt?: string;
/** /**
* The seed to use (-1 for a random seed) * The seed to use (omit for random)
*/ */
seed?: number; seed?: number;
/** /**
@ -42,18 +42,10 @@ export type InpaintInvocation = {
* The scheduler to use * The scheduler to use
*/ */
scheduler?: 'ddim' | 'dpmpp_2' | 'k_dpm_2' | 'k_dpm_2_a' | 'k_dpmpp_2' | 'k_euler' | 'k_euler_a' | 'k_heun' | 'k_lms' | 'plms'; scheduler?: '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 model to use (currently ignored) * The model to use (currently ignored)
*/ */
model?: string; model?: string;
/**
* Whether or not to produce progress images during generation
*/
progress_images?: boolean;
/** /**
* The input image * The input image
*/ */

View File

@ -2,6 +2,7 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { ConditioningField } from './ConditioningField';
import type { LatentsField } from './LatentsField'; import type { LatentsField } from './LatentsField';
/** /**
@ -14,9 +15,13 @@ export type LatentsToLatentsInvocation = {
id: string; id: string;
type?: 'l2l'; type?: 'l2l';
/** /**
* The prompt to generate an image from * Positive conditioning for generation
*/ */
prompt?: string; positive_conditioning?: ConditioningField;
/**
* Negative conditioning for generation
*/
negative_conditioning?: ConditioningField;
/** /**
* The noise to use * The noise to use
*/ */
@ -33,22 +38,10 @@ export type LatentsToLatentsInvocation = {
* The scheduler to use * The scheduler to use
*/ */
scheduler?: 'ddim' | 'dpmpp_2' | 'k_dpm_2' | 'k_dpm_2_a' | 'k_dpmpp_2' | 'k_euler' | 'k_euler_a' | 'k_heun' | 'k_lms' | 'plms'; scheduler?: '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) * The model to use (currently ignored)
*/ */
model?: string; model?: string;
/**
* Whether or not to produce progress images during generation
*/
progress_images?: boolean;
/** /**
* The latents to use as a base image * The latents to use as a base image
*/ */

View File

@ -24,7 +24,7 @@ export type RandomRangeInvocation = {
*/ */
size?: number; size?: number;
/** /**
* The seed for the RNG * The seed for the RNG (omit for random)
*/ */
seed?: number; seed?: number;
}; };

View File

@ -16,7 +16,7 @@ export type TextToImageInvocation = {
*/ */
prompt?: string; prompt?: string;
/** /**
* The seed to use (-1 for a random seed) * The seed to use (omit for random)
*/ */
seed?: number; seed?: number;
/** /**
@ -39,17 +39,9 @@ export type TextToImageInvocation = {
* The scheduler to use * The scheduler to use
*/ */
scheduler?: 'ddim' | 'dpmpp_2' | 'k_dpm_2' | 'k_dpm_2_a' | 'k_dpmpp_2' | 'k_euler' | 'k_euler_a' | 'k_heun' | 'k_lms' | 'plms'; scheduler?: '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 model to use (currently ignored) * The model to use (currently ignored)
*/ */
model?: string; model?: string;
/**
* Whether or not to produce progress images during generation
*/
progress_images?: boolean;
}; };

View File

@ -2,10 +2,11 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { ConditioningField } from './ConditioningField';
import type { LatentsField } from './LatentsField'; import type { LatentsField } from './LatentsField';
/** /**
* Generates latents from a prompt. * Generates latents from conditionings.
*/ */
export type TextToLatentsInvocation = { export type TextToLatentsInvocation = {
/** /**
@ -14,9 +15,13 @@ export type TextToLatentsInvocation = {
id: string; id: string;
type?: 't2l'; type?: 't2l';
/** /**
* The prompt to generate an image from * Positive conditioning for generation
*/ */
prompt?: string; positive_conditioning?: ConditioningField;
/**
* Negative conditioning for generation
*/
negative_conditioning?: ConditioningField;
/** /**
* The noise to use * The noise to use
*/ */
@ -33,21 +38,9 @@ export type TextToLatentsInvocation = {
* The scheduler to use * The scheduler to use
*/ */
scheduler?: 'ddim' | 'dpmpp_2' | 'k_dpm_2' | 'k_dpm_2_a' | 'k_dpmpp_2' | 'k_euler' | 'k_euler_a' | 'k_heun' | 'k_lms' | 'plms'; scheduler?: '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) * The model to use (currently ignored)
*/ */
model?: string; model?: string;
/**
* Whether or not to produce progress images during generation
*/
progress_images?: boolean;
}; };

View File

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

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

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

@ -29,6 +29,8 @@ export const $Graph = {
type: 'LerpInvocation', type: 'LerpInvocation',
}, { }, {
type: 'InverseLerpInvocation', type: 'InverseLerpInvocation',
}, {
type: 'CompelInvocation',
}, { }, {
type: 'NoiseInvocation', type: 'NoiseInvocation',
}, { }, {
@ -64,7 +66,11 @@ export const $Graph = {
}, { }, {
type: 'TextToImageInvocation', type: 'TextToImageInvocation',
}, { }, {
type: 'InfillImageInvocation', type: 'InfillColorInvocation',
}, {
type: 'InfillTileInvocation',
}, {
type: 'InfillPatchMatchInvocation',
}, { }, {
type: 'GraphInvocation', type: 'GraphInvocation',
}, { }, {

View File

@ -47,6 +47,8 @@ export const $GraphExecutionState = {
type: 'ImageOutput', type: 'ImageOutput',
}, { }, {
type: 'MaskOutput', type: 'MaskOutput',
}, {
type: 'CompelOutput',
}, { }, {
type: 'LatentsOutput', type: 'LatentsOutput',
}, { }, {

View File

@ -18,9 +18,8 @@ export const $ImageToImageInvocation = {
}, },
seed: { seed: {
type: 'number', type: 'number',
description: `The seed to use (-1 for a random seed)`, description: `The seed to use (omit for random)`,
maximum: 4294967295, maximum: 2147483647,
minimum: -1,
}, },
steps: { steps: {
type: 'number', type: 'number',
@ -39,23 +38,15 @@ export const $ImageToImageInvocation = {
cfg_scale: { cfg_scale: {
type: 'number', type: 'number',
description: `The Classifier-Free Guidance, higher values may result in a result closer to the prompt`, description: `The Classifier-Free Guidance, higher values may result in a result closer to the prompt`,
exclusiveMinimum: 1, minimum: 1,
}, },
scheduler: { scheduler: {
type: 'Enum', type: 'Enum',
}, },
seamless: {
type: 'boolean',
description: `Whether or not to generate an image that can tile without seams`,
},
model: { model: {
type: 'string', type: 'string',
description: `The model to use (currently ignored)`, description: `The model to use (currently ignored)`,
}, },
progress_images: {
type: 'boolean',
description: `Whether or not to produce progress images during generation`,
},
image: { image: {
type: 'all-of', type: 'all-of',
description: `The input image`, description: `The input image`,

View File

@ -0,0 +1,30 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $InfillColorInvocation = {
description: `Infills transparent areas of an image with a 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

@ -0,0 +1,23 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export const $InfillPatchMatchInvocation = {
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',
}],
},
},
} as const;

View File

@ -1,8 +1,8 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
export const $InfillImageInvocation = { export const $InfillTileInvocation = {
description: `Infills transparent areas of an image`, description: `Infills transparent areas of an image with tiles of the image`,
properties: { properties: {
id: { id: {
type: 'string', type: 'string',
@ -19,26 +19,15 @@ export const $InfillImageInvocation = {
type: 'ImageField', type: 'ImageField',
}], }],
}, },
infill_method: {
type: 'Enum',
},
inpaint_fill: {
type: 'all-of',
description: `The solid infill method color`,
contains: [{
type: 'ColorField',
}],
},
tile_size: { tile_size: {
type: 'number', type: 'number',
description: `The tile infill method size (px)`, description: `The tile size (px)`,
minimum: 1, minimum: 1,
}, },
seed: { seed: {
type: 'number', type: 'number',
description: `The seed to use (-1 for a random seed)`, description: `The seed to use for tile generation (omit for random)`,
maximum: 4294967295, maximum: 2147483647,
minimum: -1,
}, },
}, },
} as const; } as const;

View File

@ -18,9 +18,8 @@ export const $InpaintInvocation = {
}, },
seed: { seed: {
type: 'number', type: 'number',
description: `The seed to use (-1 for a random seed)`, description: `The seed to use (omit for random)`,
maximum: 4294967295, maximum: 2147483647,
minimum: -1,
}, },
steps: { steps: {
type: 'number', type: 'number',
@ -39,23 +38,15 @@ export const $InpaintInvocation = {
cfg_scale: { cfg_scale: {
type: 'number', type: 'number',
description: `The Classifier-Free Guidance, higher values may result in a result closer to the prompt`, description: `The Classifier-Free Guidance, higher values may result in a result closer to the prompt`,
exclusiveMinimum: 1, minimum: 1,
}, },
scheduler: { scheduler: {
type: 'Enum', type: 'Enum',
}, },
seamless: {
type: 'boolean',
description: `Whether or not to generate an image that can tile without seams`,
},
model: { model: {
type: 'string', type: 'string',
description: `The model to use (currently ignored)`, description: `The model to use (currently ignored)`,
}, },
progress_images: {
type: 'boolean',
description: `Whether or not to produce progress images during generation`,
},
image: { image: {
type: 'all-of', type: 'all-of',
description: `The input image`, description: `The input image`,

View File

@ -12,9 +12,19 @@ export const $LatentsToLatentsInvocation = {
type: { type: {
type: 'Enum', type: 'Enum',
}, },
prompt: { positive_conditioning: {
type: 'string', type: 'all-of',
description: `The prompt to generate an image from`, description: `Positive conditioning for generation`,
contains: [{
type: 'ConditioningField',
}],
},
negative_conditioning: {
type: 'all-of',
description: `Negative conditioning for generation`,
contains: [{
type: 'ConditioningField',
}],
}, },
noise: { noise: {
type: 'all-of', type: 'all-of',
@ -34,22 +44,10 @@ export const $LatentsToLatentsInvocation = {
scheduler: { scheduler: {
type: 'Enum', 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: { model: {
type: 'string', type: 'string',
description: `The model to use (currently ignored)`, description: `The model to use (currently ignored)`,
}, },
progress_images: {
type: 'boolean',
description: `Whether or not to produce progress images during generation`,
},
latents: { latents: {
type: 'all-of', type: 'all-of',
description: `The latents to use as a base image`, description: `The latents to use as a base image`,

View File

@ -15,7 +15,7 @@ export const $NoiseInvocation = {
seed: { seed: {
type: 'number', type: 'number',
description: `The seed to use`, description: `The seed to use`,
maximum: 4294967295, maximum: 2147483647,
}, },
width: { width: {
type: 'number', type: 'number',

View File

@ -26,7 +26,7 @@ export const $RandomRangeInvocation = {
}, },
seed: { seed: {
type: 'number', type: 'number',
description: `The seed for the RNG`, description: `The seed for the RNG (omit for random)`,
maximum: 2147483647, maximum: 2147483647,
}, },
}, },

View File

@ -18,9 +18,8 @@ export const $TextToImageInvocation = {
}, },
seed: { seed: {
type: 'number', type: 'number',
description: `The seed to use (-1 for a random seed)`, description: `The seed to use (omit for random)`,
maximum: 4294967295, maximum: 2147483647,
minimum: -1,
}, },
steps: { steps: {
type: 'number', type: 'number',
@ -39,22 +38,14 @@ export const $TextToImageInvocation = {
cfg_scale: { cfg_scale: {
type: 'number', type: 'number',
description: `The Classifier-Free Guidance, higher values may result in a result closer to the prompt`, description: `The Classifier-Free Guidance, higher values may result in a result closer to the prompt`,
exclusiveMinimum: 1, minimum: 1,
}, },
scheduler: { scheduler: {
type: 'Enum', type: 'Enum',
}, },
seamless: {
type: 'boolean',
description: `Whether or not to generate an image that can tile without seams`,
},
model: { model: {
type: 'string', type: 'string',
description: `The model to use (currently ignored)`, description: `The model to use (currently ignored)`,
}, },
progress_images: {
type: 'boolean',
description: `Whether or not to produce progress images during generation`,
},
}, },
} as const; } as const;

View File

@ -2,7 +2,7 @@
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
export const $TextToLatentsInvocation = { export const $TextToLatentsInvocation = {
description: `Generates latents from a prompt.`, description: `Generates latents from conditionings.`,
properties: { properties: {
id: { id: {
type: 'string', type: 'string',
@ -12,9 +12,19 @@ export const $TextToLatentsInvocation = {
type: { type: {
type: 'Enum', type: 'Enum',
}, },
prompt: { positive_conditioning: {
type: 'string', type: 'all-of',
description: `The prompt to generate an image from`, description: `Positive conditioning for generation`,
contains: [{
type: 'ConditioningField',
}],
},
negative_conditioning: {
type: 'all-of',
description: `Negative conditioning for generation`,
contains: [{
type: 'ConditioningField',
}],
}, },
noise: { noise: {
type: 'all-of', type: 'all-of',
@ -34,21 +44,9 @@ export const $TextToLatentsInvocation = {
scheduler: { scheduler: {
type: 'Enum', 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: { model: {
type: 'string', type: 'string',
description: `The model to use (currently ignored)`, description: `The model to use (currently ignored)`,
}, },
progress_images: {
type: 'boolean',
description: `Whether or not to produce progress images during generation`,
},
}, },
} as const; } as const;

View File

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