chore: Regen API

This commit is contained in:
blessedcoolant 2023-06-23 05:21:06 +12:00
parent bb85608890
commit 0327eae509
42 changed files with 533 additions and 344 deletions

View File

@ -100,6 +100,13 @@ export type { NoiseOutput } from './models/NoiseOutput';
export type { NormalbaeImageProcessorInvocation } from './models/NormalbaeImageProcessorInvocation'; export type { NormalbaeImageProcessorInvocation } from './models/NormalbaeImageProcessorInvocation';
export type { OffsetPaginatedResults_BoardDTO_ } from './models/OffsetPaginatedResults_BoardDTO_'; export type { OffsetPaginatedResults_BoardDTO_ } from './models/OffsetPaginatedResults_BoardDTO_';
export type { OffsetPaginatedResults_ImageDTO_ } from './models/OffsetPaginatedResults_ImageDTO_'; export type { OffsetPaginatedResults_ImageDTO_ } from './models/OffsetPaginatedResults_ImageDTO_';
export type { ONNXLatentsToImageInvocation } from './models/ONNXLatentsToImageInvocation';
export type { ONNXModelLoaderOutput } from './models/ONNXModelLoaderOutput';
export type { ONNXPromptInvocation } from './models/ONNXPromptInvocation';
export type { ONNXSD1ModelLoaderInvocation } from './models/ONNXSD1ModelLoaderInvocation';
export type { ONNXStableDiffusion1ModelConfig } from './models/ONNXStableDiffusion1ModelConfig';
export type { ONNXStableDiffusion2ModelConfig } from './models/ONNXStableDiffusion2ModelConfig';
export type { ONNXTextToLatentsInvocation } from './models/ONNXTextToLatentsInvocation';
export type { OpenposeImageProcessorInvocation } from './models/OpenposeImageProcessorInvocation'; export type { OpenposeImageProcessorInvocation } from './models/OpenposeImageProcessorInvocation';
export type { PaginatedResults_GraphExecutionState_ } from './models/PaginatedResults_GraphExecutionState_'; export type { PaginatedResults_GraphExecutionState_ } from './models/PaginatedResults_GraphExecutionState_';
export type { ParamFloatInvocation } from './models/ParamFloatInvocation'; export type { ParamFloatInvocation } from './models/ParamFloatInvocation';

View File

@ -12,4 +12,3 @@ export type BoardChanges = {
*/ */
cover_image_name?: string; cover_image_name?: string;
}; };

View File

@ -35,4 +35,3 @@ export type BoardDTO = {
*/ */
image_count: number; image_count: number;
}; };

View File

@ -12,4 +12,3 @@ export type Body_create_board_image = {
*/ */
image_name: string; image_name: string;
}; };

View File

@ -12,4 +12,3 @@ export type Body_remove_board_image = {
*/ */
image_name: string; image_name: string;
}; };

View File

@ -19,4 +19,3 @@ export type ClipField = {
*/ */
loras: Array<LoraInfo>; loras: Array<LoraInfo>;
}; };

View File

@ -15,4 +15,3 @@ export type ControlNetModelConfig = {
model_format: ControlNetModelFormat; model_format: ControlNetModelFormat;
error?: ModelError; error?: ModelError;
}; };

View File

@ -45,6 +45,10 @@ import type { MlsdImageProcessorInvocation } from './MlsdImageProcessorInvocatio
import type { MultiplyInvocation } from './MultiplyInvocation'; import type { MultiplyInvocation } from './MultiplyInvocation';
import type { NoiseInvocation } from './NoiseInvocation'; import type { NoiseInvocation } from './NoiseInvocation';
import type { NormalbaeImageProcessorInvocation } from './NormalbaeImageProcessorInvocation'; import type { NormalbaeImageProcessorInvocation } from './NormalbaeImageProcessorInvocation';
import type { ONNXLatentsToImageInvocation } from './ONNXLatentsToImageInvocation';
import type { ONNXPromptInvocation } from './ONNXPromptInvocation';
import type { ONNXSD1ModelLoaderInvocation } from './ONNXSD1ModelLoaderInvocation';
import type { ONNXTextToLatentsInvocation } from './ONNXTextToLatentsInvocation';
import type { OpenposeImageProcessorInvocation } from './OpenposeImageProcessorInvocation'; import type { OpenposeImageProcessorInvocation } from './OpenposeImageProcessorInvocation';
import type { ParamFloatInvocation } from './ParamFloatInvocation'; import type { ParamFloatInvocation } from './ParamFloatInvocation';
import type { ParamIntInvocation } from './ParamIntInvocation'; import type { ParamIntInvocation } from './ParamIntInvocation';
@ -72,10 +76,9 @@ export type Graph = {
/** /**
* The nodes in this graph * The nodes in this graph
*/ */
nodes?: Record<string, (LoadImageInvocation | ShowImageInvocation | ImageCropInvocation | ImagePasteInvocation | MaskFromAlphaInvocation | ImageMultiplyInvocation | ImageChannelInvocation | ImageConvertInvocation | ImageBlurInvocation | ImageResizeInvocation | ImageScaleInvocation | ImageLerpInvocation | ImageInverseLerpInvocation | ControlNetInvocation | ImageProcessorInvocation | PipelineModelLoaderInvocation | LoraLoaderInvocation | DynamicPromptInvocation | CompelInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | ParamFloatInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | CvInpaintInvocation | RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | FloatLinearRangeInvocation | StepParamEasingInvocation | UpscaleInvocation | RestoreFaceInvocation | InpaintInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageProcessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | LatentsToLatentsInvocation)>; nodes?: Record<string, (RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | PipelineModelLoaderInvocation | LoraLoaderInvocation | CompelInvocation | LoadImageInvocation | ShowImageInvocation | ImageCropInvocation | ImagePasteInvocation | MaskFromAlphaInvocation | ImageMultiplyInvocation | ImageChannelInvocation | ImageConvertInvocation | ImageBlurInvocation | ImageResizeInvocation | ImageScaleInvocation | ImageLerpInvocation | ImageInverseLerpInvocation | ControlNetInvocation | ImageProcessorInvocation | CvInpaintInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | InpaintInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ONNXPromptInvocation | ONNXTextToLatentsInvocation | ONNXLatentsToImageInvocation | ONNXSD1ModelLoaderInvocation | ParamIntInvocation | ParamFloatInvocation | FloatLinearRangeInvocation | StepParamEasingInvocation | DynamicPromptInvocation | RestoreFaceInvocation | UpscaleInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageProcessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | LatentsToLatentsInvocation)>;
/** /**
* The connections between nodes and their fields in this graph * The connections between nodes and their fields in this graph
*/ */
edges?: Array<Edge>; edges?: Array<Edge>;
}; };

View File

@ -18,6 +18,7 @@ import type { LoraLoaderOutput } from './LoraLoaderOutput';
import type { MaskOutput } from './MaskOutput'; import type { MaskOutput } from './MaskOutput';
import type { ModelLoaderOutput } from './ModelLoaderOutput'; import type { ModelLoaderOutput } from './ModelLoaderOutput';
import type { NoiseOutput } from './NoiseOutput'; import type { NoiseOutput } from './NoiseOutput';
import type { ONNXModelLoaderOutput } from './ONNXModelLoaderOutput';
import type { PromptCollectionOutput } from './PromptCollectionOutput'; import type { PromptCollectionOutput } from './PromptCollectionOutput';
import type { PromptOutput } from './PromptOutput'; import type { PromptOutput } from './PromptOutput';
@ -48,7 +49,7 @@ export type GraphExecutionState = {
/** /**
* The results of node executions * The results of node executions
*/ */
results: Record<string, (ImageOutput | MaskOutput | ControlOutput | ModelLoaderOutput | LoraLoaderOutput | PromptOutput | PromptCollectionOutput | CompelOutput | IntOutput | FloatOutput | LatentsOutput | NoiseOutput | IntCollectionOutput | FloatCollectionOutput | GraphInvocationOutput | IterateInvocationOutput | CollectInvocationOutput)>; results: Record<string, (IntCollectionOutput | FloatCollectionOutput | ModelLoaderOutput | LoraLoaderOutput | CompelOutput | ImageOutput | MaskOutput | ControlOutput | LatentsOutput | NoiseOutput | IntOutput | FloatOutput | ONNXModelLoaderOutput | PromptOutput | PromptCollectionOutput | GraphInvocationOutput | IterateInvocationOutput | CollectInvocationOutput)>;
/** /**
* Errors raised when executing nodes * Errors raised when executing nodes
*/ */
@ -62,4 +63,3 @@ export type GraphExecutionState = {
*/ */
source_prepared_mapping: Record<string, Array<string>>; source_prepared_mapping: Record<string, Array<string>>;
}; };

View File

@ -15,4 +15,3 @@ export type LoRAModelConfig = {
model_format: LoRAModelFormat; model_format: LoRAModelFormat;
error?: ModelError; error?: ModelError;
}; };

View File

@ -28,4 +28,3 @@ export type LoraInfo = {
*/ */
weight: number; weight: number;
}; };

View File

@ -35,4 +35,3 @@ export type LoraLoaderInvocation = {
*/ */
clip?: ClipField; clip?: ClipField;
}; };

View File

@ -19,4 +19,3 @@ export type LoraLoaderOutput = {
*/ */
clip?: ClipField; clip?: ClipField;
}; };

View File

@ -3,16 +3,15 @@
/* eslint-disable */ /* eslint-disable */
import type { BaseModelType } from './BaseModelType'; import type { BaseModelType } from './BaseModelType';
import type { LoRAModelFormat } from './LoRAModelFormat';
import type { ModelError } from './ModelError'; import type { ModelError } from './ModelError';
import type { ModelType } from './ModelType';
export type LoRAModelConfig = { export type LoRAModelConfig = {
name: string; name: string;
base_model: BaseModelType; base_model: BaseModelType;
type: ModelType; type: 'lora';
path: string; path: string;
description?: string; description?: string;
format: ('lycoris' | 'diffusers'); model_format: LoRAModelFormat;
default?: boolean;
error?: ModelError; error?: ModelError;
}; };

View File

@ -24,4 +24,3 @@ export type ModelInfo = {
*/ */
submodel?: SubModelType; submodel?: SubModelType;
}; };

View File

@ -24,4 +24,3 @@ export type ModelLoaderOutput = {
*/ */
vae?: VaeField; vae?: VaeField;
}; };

View File

@ -5,4 +5,4 @@
/** /**
* An enumeration. * An enumeration.
*/ */
export type ModelType = 'pipeline' | 'vae' | 'lora' | 'controlnet' | 'embedding'; export type ModelType = 'onnx' | 'pipeline' | 'vae' | 'lora' | 'controlnet' | 'embedding';

View File

@ -4,6 +4,8 @@
import type { ControlNetModelConfig } from './ControlNetModelConfig'; import type { ControlNetModelConfig } from './ControlNetModelConfig';
import type { LoRAModelConfig } from './LoRAModelConfig'; import type { LoRAModelConfig } from './LoRAModelConfig';
import type { ONNXStableDiffusion1ModelConfig } from './ONNXStableDiffusion1ModelConfig';
import type { ONNXStableDiffusion2ModelConfig } from './ONNXStableDiffusion2ModelConfig';
import type { StableDiffusion1ModelCheckpointConfig } from './StableDiffusion1ModelCheckpointConfig'; import type { StableDiffusion1ModelCheckpointConfig } from './StableDiffusion1ModelCheckpointConfig';
import type { StableDiffusion1ModelDiffusersConfig } from './StableDiffusion1ModelDiffusersConfig'; import type { StableDiffusion1ModelDiffusersConfig } from './StableDiffusion1ModelDiffusersConfig';
import type { StableDiffusion2ModelCheckpointConfig } from './StableDiffusion2ModelCheckpointConfig'; import type { StableDiffusion2ModelCheckpointConfig } from './StableDiffusion2ModelCheckpointConfig';
@ -12,6 +14,5 @@ import type { TextualInversionModelConfig } from './TextualInversionModelConfig'
import type { VaeModelConfig } from './VaeModelConfig'; import type { VaeModelConfig } from './VaeModelConfig';
export type ModelsList = { export type ModelsList = {
models: Array<(StableDiffusion1ModelCheckpointConfig | StableDiffusion1ModelDiffusersConfig | VaeModelConfig | LoRAModelConfig | ControlNetModelConfig | TextualInversionModelConfig | StableDiffusion2ModelCheckpointConfig | StableDiffusion2ModelDiffusersConfig)>; models: Array<(StableDiffusion1ModelCheckpointConfig | StableDiffusion1ModelDiffusersConfig | ONNXStableDiffusion1ModelConfig | VaeModelConfig | LoRAModelConfig | ControlNetModelConfig | TextualInversionModelConfig | StableDiffusion2ModelCheckpointConfig | StableDiffusion2ModelDiffusersConfig | ONNXStableDiffusion2ModelConfig)>;
}; };

View File

@ -0,0 +1,29 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { LatentsField } from './LatentsField';
import type { VaeField } from './VaeField';
/**
* Generates an image from latents.
*/
export type ONNXLatentsToImageInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
/**
* Whether or not this node is an intermediate node.
*/
is_intermediate?: boolean;
type?: 'l2i_onnx';
/**
* The latents to generate an image from
*/
latents?: LatentsField;
/**
* Vae submodel
*/
vae?: VaeField;
};

View File

@ -0,0 +1,30 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ClipField } from './ClipField';
import type { UNetField } from './UNetField';
import type { VaeField } from './VaeField';
/**
* Model loader output
*/
export type ONNXModelLoaderOutput = {
type?: 'model_loader_output_onnx';
/**
* UNet submodel
*/
unet?: UNetField;
/**
* Tokenizer and text_encoder submodels
*/
clip?: ClipField;
/**
* Vae submodel
*/
vae_decoder?: VaeField;
/**
* Vae submodel
*/
vae_encoder?: VaeField;
};

View File

@ -0,0 +1,29 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ClipField } from './ClipField';
/**
* A node to process inputs and produce outputs.
* May use dependency injection in __init__ to receive providers.
*/
export type ONNXPromptInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
/**
* Whether or not this node is an intermediate node.
*/
is_intermediate?: boolean;
type?: 'prompt_onnx';
/**
* Prompt
*/
prompt?: string;
/**
* Clip to use
*/
clip?: ClipField;
};

View File

@ -0,0 +1,22 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* Loading submodels of selected model.
*/
export type ONNXSD1ModelLoaderInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
/**
* Whether or not this node is an intermediate node.
*/
is_intermediate?: boolean;
type?: 'sd1_model_loader_onnx';
/**
* Model to load
*/
model_name?: string;
};

View File

@ -0,0 +1,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseModelType } from './BaseModelType';
import type { ModelError } from './ModelError';
import type { ModelVariantType } from './ModelVariantType';
export type ONNXStableDiffusion1ModelConfig = {
name: string;
base_model: BaseModelType;
type: 'onnx';
path: string;
description?: string;
model_format: null;
error?: ModelError;
variant: ModelVariantType;
};

View File

@ -0,0 +1,21 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseModelType } from './BaseModelType';
import type { ModelError } from './ModelError';
import type { ModelVariantType } from './ModelVariantType';
import type { SchedulerPredictionType } from './SchedulerPredictionType';
export type ONNXStableDiffusion2ModelConfig = {
name: string;
base_model: BaseModelType;
type: 'onnx';
path: string;
description?: string;
model_format: null;
error?: ModelError;
variant: ModelVariantType;
prediction_type: SchedulerPredictionType;
upcast_attention: boolean;
};

View File

@ -0,0 +1,50 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ConditioningField } from './ConditioningField';
import type { LatentsField } from './LatentsField';
import type { UNetField } from './UNetField';
/**
* Generates latents from conditionings.
*/
export type ONNXTextToLatentsInvocation = {
/**
* The id of this node. Must be unique among all nodes.
*/
id: string;
/**
* Whether or not this node is an intermediate node.
*/
is_intermediate?: boolean;
type?: 't2l_onnx';
/**
* Positive conditioning for generation
*/
positive_conditioning?: ConditioningField;
/**
* Negative conditioning for generation
*/
negative_conditioning?: ConditioningField;
/**
* The noise to use
*/
noise?: LatentsField;
/**
* The number of steps to use to generate the image
*/
steps?: number;
/**
* The Classifier-Free Guidance, higher values may result in a result closer to the prompt
*/
cfg_scale?: (number | Array<number>);
/**
* The scheduler to use
*/
scheduler?: 'ddim' | 'ddpm' | 'deis' | 'lms' | 'lms_k' | 'pndm' | 'heun' | 'heun_k' | 'euler' | 'euler_k' | 'euler_a' | 'kdpm_2' | 'kdpm_2_a' | 'dpmpp_2s' | 'dpmpp_2s_k' | 'dpmpp_2m' | 'dpmpp_2m_k' | 'dpmpp_2m_sde' | 'dpmpp_2m_sde_k' | 'dpmpp_sde' | 'dpmpp_sde_k' | 'unipc';
/**
* UNet submodel
*/
unet?: UNetField;
};

View File

@ -25,4 +25,3 @@ export type OffsetPaginatedResults_BoardDTO_ = {
*/ */
total: number; total: number;
}; };

View File

@ -17,4 +17,3 @@ export type PipelineModelField = {
*/ */
base_model: BaseModelType; base_model: BaseModelType;
}; };

View File

@ -22,4 +22,3 @@ export type PipelineModelLoaderInvocation = {
*/ */
model: PipelineModelField; model: PipelineModelField;
}; };

View File

@ -18,4 +18,3 @@ export type StableDiffusion1ModelCheckpointConfig = {
config?: string; config?: string;
variant: ModelVariantType; variant: ModelVariantType;
}; };

View File

@ -17,4 +17,3 @@ export type StableDiffusion1ModelDiffusersConfig = {
vae?: string; vae?: string;
variant: ModelVariantType; variant: ModelVariantType;
}; };

View File

@ -21,4 +21,3 @@ export type StableDiffusion2ModelCheckpointConfig = {
prediction_type: SchedulerPredictionType; prediction_type: SchedulerPredictionType;
upcast_attention: boolean; upcast_attention: boolean;
}; };

View File

@ -20,4 +20,3 @@ export type StableDiffusion2ModelDiffusersConfig = {
prediction_type: SchedulerPredictionType; prediction_type: SchedulerPredictionType;
upcast_attention: boolean; upcast_attention: boolean;
}; };

View File

@ -5,4 +5,4 @@
/** /**
* An enumeration. * An enumeration.
*/ */
export type SubModelType = 'unet' | 'text_encoder' | 'tokenizer' | 'vae' | 'scheduler' | 'safety_checker'; export type SubModelType = 'unet' | 'text_encoder' | 'tokenizer' | 'vae' | 'vae_decoder' | 'vae_encoder' | 'scheduler' | 'safety_checker';

View File

@ -14,4 +14,3 @@ export type TextualInversionModelConfig = {
model_format: null; model_format: null;
error?: ModelError; error?: ModelError;
}; };

View File

@ -19,4 +19,3 @@ export type UNetField = {
*/ */
loras: Array<LoraInfo>; loras: Array<LoraInfo>;
}; };

View File

@ -4,15 +4,14 @@
import type { BaseModelType } from './BaseModelType'; import type { BaseModelType } from './BaseModelType';
import type { ModelError } from './ModelError'; import type { ModelError } from './ModelError';
import type { ModelType } from './ModelType'; import type { VaeModelFormat } from './VaeModelFormat';
export type VaeModelConfig = { export type VaeModelConfig = {
name: string; name: string;
base_model: BaseModelType; base_model: BaseModelType;
type: ModelType; type: 'vae';
path: string; path: string;
description?: string; description?: string;
format: ('checkpoint' | 'diffusers'); model_format: VaeModelFormat;
default?: boolean;
error?: ModelError; error?: ModelError;
}; };

View File

@ -10,4 +10,3 @@ export type VaeField = {
*/ */
vae: ModelInfo; vae: ModelInfo;
}; };

View File

@ -15,4 +15,3 @@ export type VaeModelConfig = {
model_format: VaeModelFormat; model_format: VaeModelFormat;
error?: ModelError; error?: ModelError;
}; };

View File

@ -21,23 +21,23 @@ export class BoardsService {
* @throws ApiError * @throws ApiError
*/ */
public static listBoards({ public static listBoards({
all, all,
offset, offset,
limit, limit,
}: { }: {
/** /**
* Whether to list all boards * Whether to list all boards
*/ */
all?: boolean, all?: boolean,
/** /**
* The page offset * The page offset
*/ */
offset?: number, offset?: number,
/** /**
* The number of boards per page * The number of boards per page
*/ */
limit?: number, limit?: number,
}): CancelablePromise<(OffsetPaginatedResults_BoardDTO_ | Array<BoardDTO>)> { }): CancelablePromise<(OffsetPaginatedResults_BoardDTO_ | Array<BoardDTO>)> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/boards/', url: '/api/v1/boards/',
@ -59,13 +59,13 @@ export class BoardsService {
* @throws ApiError * @throws ApiError
*/ */
public static createBoard({ public static createBoard({
boardName, boardName,
}: { }: {
/** /**
* The name of the board to create * The name of the board to create
*/ */
boardName: string, boardName: string,
}): CancelablePromise<BoardDTO> { }): CancelablePromise<BoardDTO> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'POST', method: 'POST',
url: '/api/v1/boards/', url: '/api/v1/boards/',
@ -85,13 +85,13 @@ export class BoardsService {
* @throws ApiError * @throws ApiError
*/ */
public static getBoard({ public static getBoard({
boardId, boardId,
}: { }: {
/** /**
* The id of board to get * The id of board to get
*/ */
boardId: string, boardId: string,
}): CancelablePromise<BoardDTO> { }): CancelablePromise<BoardDTO> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/boards/{board_id}', url: '/api/v1/boards/{board_id}',
@ -111,13 +111,13 @@ export class BoardsService {
* @throws ApiError * @throws ApiError
*/ */
public static deleteBoard({ public static deleteBoard({
boardId, boardId,
}: { }: {
/** /**
* The id of board to delete * The id of board to delete
*/ */
boardId: string, boardId: string,
}): CancelablePromise<any> { }): CancelablePromise<any> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'DELETE', method: 'DELETE',
url: '/api/v1/boards/{board_id}', url: '/api/v1/boards/{board_id}',
@ -137,15 +137,15 @@ export class BoardsService {
* @throws ApiError * @throws ApiError
*/ */
public static updateBoard({ public static updateBoard({
boardId, boardId,
requestBody, requestBody,
}: { }: {
/** /**
* The id of board to update * The id of board to update
*/ */
boardId: string, boardId: string,
requestBody: BoardChanges, requestBody: BoardChanges,
}): CancelablePromise<BoardDTO> { }): CancelablePromise<BoardDTO> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'PATCH', method: 'PATCH',
url: '/api/v1/boards/{board_id}', url: '/api/v1/boards/{board_id}',
@ -167,10 +167,10 @@ export class BoardsService {
* @throws ApiError * @throws ApiError
*/ */
public static createBoardImage({ public static createBoardImage({
requestBody, requestBody,
}: { }: {
requestBody: Body_create_board_image, requestBody: Body_create_board_image,
}): CancelablePromise<any> { }): CancelablePromise<any> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'POST', method: 'POST',
url: '/api/v1/board_images/', url: '/api/v1/board_images/',
@ -189,10 +189,10 @@ export class BoardsService {
* @throws ApiError * @throws ApiError
*/ */
public static removeBoardImage({ public static removeBoardImage({
requestBody, requestBody,
}: { }: {
requestBody: Body_remove_board_image, requestBody: Body_remove_board_image,
}): CancelablePromise<any> { }): CancelablePromise<any> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'DELETE', method: 'DELETE',
url: '/api/v1/board_images/', url: '/api/v1/board_images/',
@ -211,23 +211,23 @@ export class BoardsService {
* @throws ApiError * @throws ApiError
*/ */
public static listBoardImages({ public static listBoardImages({
boardId, boardId,
offset, offset,
limit = 10, limit = 10,
}: { }: {
/** /**
* The id of the board * The id of the board
*/ */
boardId: string, boardId: string,
/** /**
* The page offset * The page offset
*/ */
offset?: number, offset?: number,
/** /**
* The number of boards per page * The number of boards per page
*/ */
limit?: number, limit?: number,
}): CancelablePromise<OffsetPaginatedResults_ImageDTO_> { }): CancelablePromise<OffsetPaginatedResults_ImageDTO_> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/board_images/{board_id}', url: '/api/v1/board_images/{board_id}',

View File

@ -22,38 +22,38 @@ export class ImagesService {
* @throws ApiError * @throws ApiError
*/ */
public static listImagesWithMetadata({ public static listImagesWithMetadata({
imageOrigin, imageOrigin,
categories, categories,
isIntermediate, isIntermediate,
boardId, boardId,
offset, offset,
limit = 10, limit = 10,
}: { }: {
/** /**
* The origin of images to list * The origin of images to list
*/ */
imageOrigin?: ResourceOrigin, imageOrigin?: ResourceOrigin,
/** /**
* The categories of image to include * The categories of image to include
*/ */
categories?: Array<ImageCategory>, categories?: Array<ImageCategory>,
/** /**
* Whether to list intermediate images * Whether to list intermediate images
*/ */
isIntermediate?: boolean, isIntermediate?: boolean,
/** /**
* The board id to filter by * The board id to filter by
*/ */
boardId?: string, boardId?: string,
/** /**
* The page offset * The page offset
*/ */
offset?: number, offset?: number,
/** /**
* The number of images per page * The number of images per page
*/ */
limit?: number, limit?: number,
}): CancelablePromise<OffsetPaginatedResults_ImageDTO_> { }): CancelablePromise<OffsetPaginatedResults_ImageDTO_> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/images/', url: '/api/v1/images/',
@ -78,25 +78,25 @@ export class ImagesService {
* @throws ApiError * @throws ApiError
*/ */
public static uploadImage({ public static uploadImage({
imageCategory, imageCategory,
isIntermediate, isIntermediate,
formData, formData,
sessionId, sessionId,
}: { }: {
/** /**
* The category of the image * The category of the image
*/ */
imageCategory: ImageCategory, imageCategory: ImageCategory,
/** /**
* Whether this is an intermediate image * Whether this is an intermediate image
*/ */
isIntermediate: boolean, isIntermediate: boolean,
formData: Body_upload_image, formData: Body_upload_image,
/** /**
* The session ID associated with this upload, if any * The session ID associated with this upload, if any
*/ */
sessionId?: string, sessionId?: string,
}): CancelablePromise<ImageDTO> { }): CancelablePromise<ImageDTO> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'POST', method: 'POST',
url: '/api/v1/images/', url: '/api/v1/images/',
@ -121,13 +121,13 @@ export class ImagesService {
* @throws ApiError * @throws ApiError
*/ */
public static getImageFull({ public static getImageFull({
imageName, imageName,
}: { }: {
/** /**
* The name of full-resolution image file to get * The name of full-resolution image file to get
*/ */
imageName: string, imageName: string,
}): CancelablePromise<any> { }): CancelablePromise<any> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/images/{image_name}', url: '/api/v1/images/{image_name}',
@ -148,13 +148,13 @@ export class ImagesService {
* @throws ApiError * @throws ApiError
*/ */
public static deleteImage({ public static deleteImage({
imageName, imageName,
}: { }: {
/** /**
* The name of the image to delete * The name of the image to delete
*/ */
imageName: string, imageName: string,
}): CancelablePromise<any> { }): CancelablePromise<any> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'DELETE', method: 'DELETE',
url: '/api/v1/images/{image_name}', url: '/api/v1/images/{image_name}',
@ -174,15 +174,15 @@ export class ImagesService {
* @throws ApiError * @throws ApiError
*/ */
public static updateImage({ public static updateImage({
imageName, imageName,
requestBody, requestBody,
}: { }: {
/** /**
* The name of the image to update * The name of the image to update
*/ */
imageName: string, imageName: string,
requestBody: ImageRecordChanges, requestBody: ImageRecordChanges,
}): CancelablePromise<ImageDTO> { }): CancelablePromise<ImageDTO> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'PATCH', method: 'PATCH',
url: '/api/v1/images/{image_name}', url: '/api/v1/images/{image_name}',
@ -204,13 +204,13 @@ export class ImagesService {
* @throws ApiError * @throws ApiError
*/ */
public static getImageMetadata({ public static getImageMetadata({
imageName, imageName,
}: { }: {
/** /**
* The name of image to get * The name of image to get
*/ */
imageName: string, imageName: string,
}): CancelablePromise<ImageDTO> { }): CancelablePromise<ImageDTO> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/images/{image_name}/metadata', url: '/api/v1/images/{image_name}/metadata',
@ -230,13 +230,13 @@ export class ImagesService {
* @throws ApiError * @throws ApiError
*/ */
public static getImageThumbnail({ public static getImageThumbnail({
imageName, imageName,
}: { }: {
/** /**
* The name of thumbnail image file to get * The name of thumbnail image file to get
*/ */
imageName: string, imageName: string,
}): CancelablePromise<any> { }): CancelablePromise<any> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/images/{image_name}/thumbnail', url: '/api/v1/images/{image_name}/thumbnail',
@ -257,13 +257,13 @@ export class ImagesService {
* @throws ApiError * @throws ApiError
*/ */
public static getImageUrls({ public static getImageUrls({
imageName, imageName,
}: { }: {
/** /**
* The name of the image whose URL to get * The name of the image whose URL to get
*/ */
imageName: string, imageName: string,
}): CancelablePromise<ImageUrlsDTO> { }): CancelablePromise<ImageUrlsDTO> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/images/{image_name}/urls', url: '/api/v1/images/{image_name}/urls',

View File

@ -19,18 +19,18 @@ export class ModelsService {
* @throws ApiError * @throws ApiError
*/ */
public static listModels({ public static listModels({
baseModel, baseModel,
modelType, modelType,
}: { }: {
/** /**
* Base model * Base model
*/ */
baseModel?: BaseModelType, baseModel?: BaseModelType,
/** /**
* The type of model to get * The type of model to get
*/ */
modelType?: ModelType, modelType?: ModelType,
}): CancelablePromise<ModelsList> { }): CancelablePromise<ModelsList> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/models/', url: '/api/v1/models/',
@ -51,10 +51,10 @@ export class ModelsService {
* @throws ApiError * @throws ApiError
*/ */
public static updateModel({ public static updateModel({
requestBody, requestBody,
}: { }: {
requestBody: CreateModelRequest, requestBody: CreateModelRequest,
}): CancelablePromise<any> { }): CancelablePromise<any> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'POST', method: 'POST',
url: '/api/v1/models/', url: '/api/v1/models/',
@ -73,10 +73,10 @@ export class ModelsService {
* @throws ApiError * @throws ApiError
*/ */
public static delModel({ public static delModel({
modelName, modelName,
}: { }: {
modelName: string, modelName: string,
}): CancelablePromise<any> { }): CancelablePromise<any> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'DELETE', method: 'DELETE',
url: '/api/v1/models/{model_name}', url: '/api/v1/models/{model_name}',

View File

@ -46,6 +46,10 @@ import type { MlsdImageProcessorInvocation } from '../models/MlsdImageProcessorI
import type { MultiplyInvocation } from '../models/MultiplyInvocation'; import type { MultiplyInvocation } from '../models/MultiplyInvocation';
import type { NoiseInvocation } from '../models/NoiseInvocation'; import type { NoiseInvocation } from '../models/NoiseInvocation';
import type { NormalbaeImageProcessorInvocation } from '../models/NormalbaeImageProcessorInvocation'; import type { NormalbaeImageProcessorInvocation } from '../models/NormalbaeImageProcessorInvocation';
import type { ONNXLatentsToImageInvocation } from '../models/ONNXLatentsToImageInvocation';
import type { ONNXPromptInvocation } from '../models/ONNXPromptInvocation';
import type { ONNXSD1ModelLoaderInvocation } from '../models/ONNXSD1ModelLoaderInvocation';
import type { ONNXTextToLatentsInvocation } from '../models/ONNXTextToLatentsInvocation';
import type { OpenposeImageProcessorInvocation } from '../models/OpenposeImageProcessorInvocation'; import type { OpenposeImageProcessorInvocation } from '../models/OpenposeImageProcessorInvocation';
import type { PaginatedResults_GraphExecutionState_ } from '../models/PaginatedResults_GraphExecutionState_'; import type { PaginatedResults_GraphExecutionState_ } from '../models/PaginatedResults_GraphExecutionState_';
import type { ParamFloatInvocation } from '../models/ParamFloatInvocation'; import type { ParamFloatInvocation } from '../models/ParamFloatInvocation';
@ -79,23 +83,23 @@ export class SessionsService {
* @throws ApiError * @throws ApiError
*/ */
public static listSessions({ public static listSessions({
page, page,
perPage = 10, perPage = 10,
query = '', query = '',
}: { }: {
/** /**
* The page of results to get * The page of results to get
*/ */
page?: number, page?: number,
/** /**
* The number of results per page * The number of results per page
*/ */
perPage?: number, perPage?: number,
/** /**
* The query string to search for * The query string to search for
*/ */
query?: string, query?: string,
}): CancelablePromise<PaginatedResults_GraphExecutionState_> { }): CancelablePromise<PaginatedResults_GraphExecutionState_> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/sessions/', url: '/api/v1/sessions/',
@ -117,10 +121,10 @@ export class SessionsService {
* @throws ApiError * @throws ApiError
*/ */
public static createSession({ public static createSession({
requestBody, requestBody,
}: { }: {
requestBody?: Graph, requestBody?: Graph,
}): CancelablePromise<GraphExecutionState> { }): CancelablePromise<GraphExecutionState> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'POST', method: 'POST',
url: '/api/v1/sessions/', url: '/api/v1/sessions/',
@ -140,13 +144,13 @@ export class SessionsService {
* @throws ApiError * @throws ApiError
*/ */
public static getSession({ public static getSession({
sessionId, sessionId,
}: { }: {
/** /**
* The id of the session to get * The id of the session to get
*/ */
sessionId: string, sessionId: string,
}): CancelablePromise<GraphExecutionState> { }): CancelablePromise<GraphExecutionState> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'GET', method: 'GET',
url: '/api/v1/sessions/{session_id}', url: '/api/v1/sessions/{session_id}',
@ -167,15 +171,15 @@ export class SessionsService {
* @throws ApiError * @throws ApiError
*/ */
public static addNode({ public static addNode({
sessionId, sessionId,
requestBody, requestBody,
}: { }: {
/** /**
* The id of the session * The id of the session
*/ */
sessionId: string, sessionId: string,
requestBody: (LoadImageInvocation | ShowImageInvocation | ImageCropInvocation | ImagePasteInvocation | MaskFromAlphaInvocation | ImageMultiplyInvocation | ImageChannelInvocation | ImageConvertInvocation | ImageBlurInvocation | ImageResizeInvocation | ImageScaleInvocation | ImageLerpInvocation | ImageInverseLerpInvocation | ControlNetInvocation | ImageProcessorInvocation | PipelineModelLoaderInvocation | LoraLoaderInvocation | DynamicPromptInvocation | CompelInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | ParamFloatInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | CvInpaintInvocation | RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | FloatLinearRangeInvocation | StepParamEasingInvocation | UpscaleInvocation | RestoreFaceInvocation | InpaintInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageProcessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | LatentsToLatentsInvocation), requestBody: (RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | PipelineModelLoaderInvocation | LoraLoaderInvocation | CompelInvocation | LoadImageInvocation | ShowImageInvocation | ImageCropInvocation | ImagePasteInvocation | MaskFromAlphaInvocation | ImageMultiplyInvocation | ImageChannelInvocation | ImageConvertInvocation | ImageBlurInvocation | ImageResizeInvocation | ImageScaleInvocation | ImageLerpInvocation | ImageInverseLerpInvocation | ControlNetInvocation | ImageProcessorInvocation | CvInpaintInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | InpaintInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ONNXPromptInvocation | ONNXTextToLatentsInvocation | ONNXLatentsToImageInvocation | ONNXSD1ModelLoaderInvocation | ParamIntInvocation | ParamFloatInvocation | FloatLinearRangeInvocation | StepParamEasingInvocation | DynamicPromptInvocation | RestoreFaceInvocation | UpscaleInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageProcessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | LatentsToLatentsInvocation),
}): CancelablePromise<string> { }): CancelablePromise<string> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'POST', method: 'POST',
url: '/api/v1/sessions/{session_id}/nodes', url: '/api/v1/sessions/{session_id}/nodes',
@ -199,20 +203,20 @@ export class SessionsService {
* @throws ApiError * @throws ApiError
*/ */
public static updateNode({ public static updateNode({
sessionId, sessionId,
nodePath, nodePath,
requestBody, requestBody,
}: { }: {
/** /**
* The id of the session * The id of the session
*/ */
sessionId: string, sessionId: string,
/** /**
* The path to the node in the graph * The path to the node in the graph
*/ */
nodePath: string, nodePath: string,
requestBody: (LoadImageInvocation | ShowImageInvocation | ImageCropInvocation | ImagePasteInvocation | MaskFromAlphaInvocation | ImageMultiplyInvocation | ImageChannelInvocation | ImageConvertInvocation | ImageBlurInvocation | ImageResizeInvocation | ImageScaleInvocation | ImageLerpInvocation | ImageInverseLerpInvocation | ControlNetInvocation | ImageProcessorInvocation | PipelineModelLoaderInvocation | LoraLoaderInvocation | DynamicPromptInvocation | CompelInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | ParamFloatInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | CvInpaintInvocation | RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | FloatLinearRangeInvocation | StepParamEasingInvocation | UpscaleInvocation | RestoreFaceInvocation | InpaintInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageProcessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | LatentsToLatentsInvocation), requestBody: (RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | PipelineModelLoaderInvocation | LoraLoaderInvocation | CompelInvocation | LoadImageInvocation | ShowImageInvocation | ImageCropInvocation | ImagePasteInvocation | MaskFromAlphaInvocation | ImageMultiplyInvocation | ImageChannelInvocation | ImageConvertInvocation | ImageBlurInvocation | ImageResizeInvocation | ImageScaleInvocation | ImageLerpInvocation | ImageInverseLerpInvocation | ControlNetInvocation | ImageProcessorInvocation | CvInpaintInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | InpaintInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ONNXPromptInvocation | ONNXTextToLatentsInvocation | ONNXLatentsToImageInvocation | ONNXSD1ModelLoaderInvocation | ParamIntInvocation | ParamFloatInvocation | FloatLinearRangeInvocation | StepParamEasingInvocation | DynamicPromptInvocation | RestoreFaceInvocation | UpscaleInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageProcessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | LatentsToLatentsInvocation),
}): CancelablePromise<GraphExecutionState> { }): CancelablePromise<GraphExecutionState> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'PUT', method: 'PUT',
url: '/api/v1/sessions/{session_id}/nodes/{node_path}', url: '/api/v1/sessions/{session_id}/nodes/{node_path}',
@ -237,18 +241,18 @@ export class SessionsService {
* @throws ApiError * @throws ApiError
*/ */
public static deleteNode({ public static deleteNode({
sessionId, sessionId,
nodePath, nodePath,
}: { }: {
/** /**
* The id of the session * The id of the session
*/ */
sessionId: string, sessionId: string,
/** /**
* The path to the node to delete * The path to the node to delete
*/ */
nodePath: string, nodePath: string,
}): CancelablePromise<GraphExecutionState> { }): CancelablePromise<GraphExecutionState> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'DELETE', method: 'DELETE',
url: '/api/v1/sessions/{session_id}/nodes/{node_path}', url: '/api/v1/sessions/{session_id}/nodes/{node_path}',
@ -271,15 +275,15 @@ export class SessionsService {
* @throws ApiError * @throws ApiError
*/ */
public static addEdge({ public static addEdge({
sessionId, sessionId,
requestBody, requestBody,
}: { }: {
/** /**
* The id of the session * The id of the session
*/ */
sessionId: string, sessionId: string,
requestBody: Edge, requestBody: Edge,
}): CancelablePromise<GraphExecutionState> { }): CancelablePromise<GraphExecutionState> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'POST', method: 'POST',
url: '/api/v1/sessions/{session_id}/edges', url: '/api/v1/sessions/{session_id}/edges',
@ -303,33 +307,33 @@ export class SessionsService {
* @throws ApiError * @throws ApiError
*/ */
public static deleteEdge({ public static deleteEdge({
sessionId, sessionId,
fromNodeId, fromNodeId,
fromField, fromField,
toNodeId, toNodeId,
toField, toField,
}: { }: {
/** /**
* The id of the session * The id of the session
*/ */
sessionId: string, sessionId: string,
/** /**
* The id of the node the edge is coming from * The id of the node the edge is coming from
*/ */
fromNodeId: string, fromNodeId: string,
/** /**
* The field of the node the edge is coming from * The field of the node the edge is coming from
*/ */
fromField: string, fromField: string,
/** /**
* The id of the node the edge is going to * The id of the node the edge is going to
*/ */
toNodeId: string, toNodeId: string,
/** /**
* The field of the node the edge is going to * The field of the node the edge is going to
*/ */
toField: string, toField: string,
}): CancelablePromise<GraphExecutionState> { }): CancelablePromise<GraphExecutionState> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'DELETE', method: 'DELETE',
url: '/api/v1/sessions/{session_id}/edges/{from_node_id}/{from_field}/{to_node_id}/{to_field}', url: '/api/v1/sessions/{session_id}/edges/{from_node_id}/{from_field}/{to_node_id}/{to_field}',
@ -355,18 +359,18 @@ export class SessionsService {
* @throws ApiError * @throws ApiError
*/ */
public static invokeSession({ public static invokeSession({
sessionId, sessionId,
all = false, all = false,
}: { }: {
/** /**
* The id of the session to invoke * The id of the session to invoke
*/ */
sessionId: string, sessionId: string,
/** /**
* Whether or not to invoke all remaining invocations * Whether or not to invoke all remaining invocations
*/ */
all?: boolean, all?: boolean,
}): CancelablePromise<any> { }): CancelablePromise<any> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'PUT', method: 'PUT',
url: '/api/v1/sessions/{session_id}/invoke', url: '/api/v1/sessions/{session_id}/invoke',
@ -391,13 +395,13 @@ export class SessionsService {
* @throws ApiError * @throws ApiError
*/ */
public static cancelSessionInvoke({ public static cancelSessionInvoke({
sessionId, sessionId,
}: { }: {
/** /**
* The id of the session to cancel * The id of the session to cancel
*/ */
sessionId: string, sessionId: string,
}): CancelablePromise<any> { }): CancelablePromise<any> {
return __request(OpenAPI, { return __request(OpenAPI, {
method: 'DELETE', method: 'DELETE',
url: '/api/v1/sessions/{session_id}/invoke', url: '/api/v1/sessions/{session_id}/invoke',