mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore: Rebuild API
This commit is contained in:
parent
6b8e88ad7f
commit
4ca325e8e6
@ -28,4 +28,3 @@ export type DynamicPromptInvocation = {
|
|||||||
*/
|
*/
|
||||||
combinatorial?: boolean;
|
combinatorial?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -28,4 +28,3 @@ export type FloatLinearRangeInvocation = {
|
|||||||
*/
|
*/
|
||||||
steps?: number;
|
steps?: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -72,10 +72,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 | DynamicPromptInvocation | CompelInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | ParamFloatInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | CvInpaintInvocation | RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | FloatLinearRangeInvocation | StepParamEasingInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageProcessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation)>;
|
nodes?: Record<string, (RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | CompelInvocation | LoadImageInvocation | ShowImageInvocation | ImageCropInvocation | ImagePasteInvocation | MaskFromAlphaInvocation | ImageMultiplyInvocation | ImageChannelInvocation | ImageConvertInvocation | ImageBlurInvocation | ImageResizeInvocation | ImageScaleInvocation | ImageLerpInvocation | ImageInverseLerpInvocation | ControlNetInvocation | ImageProcessorInvocation | CvInpaintInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | ParamFloatInvocation | FloatLinearRangeInvocation | StepParamEasingInvocation | DynamicPromptInvocation | RestoreFaceInvocation | UpscaleInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageProcessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | ImageToImageInvocation | LatentsToLatentsInvocation | InpaintInvocation)>;
|
||||||
/**
|
/**
|
||||||
* 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>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ export type GraphExecutionState = {
|
|||||||
/**
|
/**
|
||||||
* The results of node executions
|
* The results of node executions
|
||||||
*/
|
*/
|
||||||
results: Record<string, (ImageOutput | MaskOutput | ControlOutput | PromptOutput | PromptCollectionOutput | CompelOutput | IntOutput | FloatOutput | LatentsOutput | NoiseOutput | IntCollectionOutput | FloatCollectionOutput | GraphInvocationOutput | IterateInvocationOutput | CollectInvocationOutput)>;
|
results: Record<string, (IntCollectionOutput | FloatCollectionOutput | CompelOutput | ImageOutput | MaskOutput | ControlOutput | LatentsOutput | NoiseOutput | IntOutput | FloatOutput | PromptOutput | PromptCollectionOutput | GraphInvocationOutput | IterateInvocationOutput | CollectInvocationOutput)>;
|
||||||
/**
|
/**
|
||||||
* Errors raised when executing nodes
|
* Errors raised when executing nodes
|
||||||
*/
|
*/
|
||||||
@ -60,4 +60,3 @@ export type GraphExecutionState = {
|
|||||||
*/
|
*/
|
||||||
source_prepared_mapping: Record<string, Array<string>>;
|
source_prepared_mapping: Record<string, Array<string>>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -16,4 +16,3 @@ export type PromptCollectionOutput = {
|
|||||||
*/
|
*/
|
||||||
count: number;
|
count: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -56,4 +56,3 @@ export type StepParamEasingInvocation = {
|
|||||||
*/
|
*/
|
||||||
show_easing_plot?: boolean;
|
show_easing_plot?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export const $CannyImageProcessorInvocation = {
|
|
||||||
description: `Canny edge detection for ControlNet`,
|
|
||||||
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: `image to process`,
|
|
||||||
contains: [{
|
|
||||||
type: 'ImageField',
|
|
||||||
}],
|
|
||||||
},
|
|
||||||
low_threshold: {
|
|
||||||
type: 'number',
|
|
||||||
description: `low threshold of Canny pixel gradient`,
|
|
||||||
},
|
|
||||||
high_threshold: {
|
|
||||||
type: 'number',
|
|
||||||
description: `high threshold of Canny pixel gradient`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
} as const;
|
|
@ -1,43 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export const $ContentShuffleImageProcessorInvocation = {
|
|
||||||
description: `Applies content shuffle processing to 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: `image to process`,
|
|
||||||
contains: [{
|
|
||||||
type: 'ImageField',
|
|
||||||
}],
|
|
||||||
},
|
|
||||||
detect_resolution: {
|
|
||||||
type: 'number',
|
|
||||||
description: `pixel resolution for edge detection`,
|
|
||||||
},
|
|
||||||
image_resolution: {
|
|
||||||
type: 'number',
|
|
||||||
description: `pixel resolution for output image`,
|
|
||||||
},
|
|
||||||
'h': {
|
|
||||||
type: 'number',
|
|
||||||
description: `content shuffle h parameter`,
|
|
||||||
},
|
|
||||||
'w': {
|
|
||||||
type: 'number',
|
|
||||||
description: `content shuffle w parameter`,
|
|
||||||
},
|
|
||||||
'f': {
|
|
||||||
type: 'number',
|
|
||||||
description: `cont`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
} as const;
|
|
@ -1,37 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export const $ControlField = {
|
|
||||||
properties: {
|
|
||||||
image: {
|
|
||||||
type: 'all-of',
|
|
||||||
description: `processed image`,
|
|
||||||
contains: [{
|
|
||||||
type: 'ImageField',
|
|
||||||
}],
|
|
||||||
isRequired: true,
|
|
||||||
},
|
|
||||||
control_model: {
|
|
||||||
type: 'string',
|
|
||||||
description: `control model used`,
|
|
||||||
isRequired: true,
|
|
||||||
},
|
|
||||||
control_weight: {
|
|
||||||
type: 'number',
|
|
||||||
description: `weight given to controlnet`,
|
|
||||||
isRequired: true,
|
|
||||||
},
|
|
||||||
begin_step_percent: {
|
|
||||||
type: 'number',
|
|
||||||
description: `% of total steps at which controlnet is first applied`,
|
|
||||||
isRequired: true,
|
|
||||||
maximum: 1,
|
|
||||||
},
|
|
||||||
end_step_percent: {
|
|
||||||
type: 'number',
|
|
||||||
description: `% of total steps at which controlnet is last applied`,
|
|
||||||
isRequired: true,
|
|
||||||
maximum: 1,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
} as const;
|
|
@ -1,41 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export const $ControlNetInvocation = {
|
|
||||||
description: `Collects ControlNet info to pass to other nodes`,
|
|
||||||
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: `image to process`,
|
|
||||||
contains: [{
|
|
||||||
type: 'ImageField',
|
|
||||||
}],
|
|
||||||
},
|
|
||||||
control_model: {
|
|
||||||
type: 'Enum',
|
|
||||||
},
|
|
||||||
control_weight: {
|
|
||||||
type: 'number',
|
|
||||||
description: `weight given to controlnet`,
|
|
||||||
maximum: 1,
|
|
||||||
},
|
|
||||||
begin_step_percent: {
|
|
||||||
type: 'number',
|
|
||||||
description: `% of total steps at which controlnet is first applied`,
|
|
||||||
maximum: 1,
|
|
||||||
},
|
|
||||||
end_step_percent: {
|
|
||||||
type: 'number',
|
|
||||||
description: `% of total steps at which controlnet is last applied`,
|
|
||||||
maximum: 1,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
} as const;
|
|
@ -1,28 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export const $ControlOutput = {
|
|
||||||
description: `node output for ControlNet info`,
|
|
||||||
properties: {
|
|
||||||
type: {
|
|
||||||
type: 'Enum',
|
|
||||||
},
|
|
||||||
control: {
|
|
||||||
type: 'all-of',
|
|
||||||
description: `The control info dict`,
|
|
||||||
contains: [{
|
|
||||||
type: 'ControlField',
|
|
||||||
}],
|
|
||||||
},
|
|
||||||
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;
|
|
@ -1,35 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export const $HedImageprocessorInvocation = {
|
|
||||||
description: `Applies HED edge detection to 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: `image to process`,
|
|
||||||
contains: [{
|
|
||||||
type: 'ImageField',
|
|
||||||
}],
|
|
||||||
},
|
|
||||||
detect_resolution: {
|
|
||||||
type: 'number',
|
|
||||||
description: `pixel resolution for edge detection`,
|
|
||||||
},
|
|
||||||
image_resolution: {
|
|
||||||
type: 'number',
|
|
||||||
description: `pixel resolution for output image`,
|
|
||||||
},
|
|
||||||
scribble: {
|
|
||||||
type: 'boolean',
|
|
||||||
description: `whether to use scribble mode`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
} as const;
|
|
@ -1,23 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export const $ImageProcessorInvocation = {
|
|
||||||
description: `Base class for invocations that preprocess images for ControlNet`,
|
|
||||||
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: `image to process`,
|
|
||||||
contains: [{
|
|
||||||
type: 'ImageField',
|
|
||||||
}],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
} as const;
|
|
@ -1,31 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export const $LineartAnimeImageProcessorInvocation = {
|
|
||||||
description: `Applies line art anime processing to 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: `image to process`,
|
|
||||||
contains: [{
|
|
||||||
type: 'ImageField',
|
|
||||||
}],
|
|
||||||
},
|
|
||||||
detect_resolution: {
|
|
||||||
type: 'number',
|
|
||||||
description: `pixel resolution for edge detection`,
|
|
||||||
},
|
|
||||||
image_resolution: {
|
|
||||||
type: 'number',
|
|
||||||
description: `pixel resolution for output image`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
} as const;
|
|
@ -1,35 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export const $LineartImageProcessorInvocation = {
|
|
||||||
description: `Applies line art processing to 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: `image to process`,
|
|
||||||
contains: [{
|
|
||||||
type: 'ImageField',
|
|
||||||
}],
|
|
||||||
},
|
|
||||||
detect_resolution: {
|
|
||||||
type: 'number',
|
|
||||||
description: `pixel resolution for edge detection`,
|
|
||||||
},
|
|
||||||
image_resolution: {
|
|
||||||
type: 'number',
|
|
||||||
description: `pixel resolution for output image`,
|
|
||||||
},
|
|
||||||
coarse: {
|
|
||||||
type: 'boolean',
|
|
||||||
description: `whether to use coarse mode`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
} as const;
|
|
@ -1,31 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export const $MidasDepthImageProcessorInvocation = {
|
|
||||||
description: `Applies Midas depth processing to 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: `image to process`,
|
|
||||||
contains: [{
|
|
||||||
type: 'ImageField',
|
|
||||||
}],
|
|
||||||
},
|
|
||||||
a_mult: {
|
|
||||||
type: 'number',
|
|
||||||
description: `Midas parameter a = amult * PI`,
|
|
||||||
},
|
|
||||||
bg_th: {
|
|
||||||
type: 'number',
|
|
||||||
description: `Midas parameter bg_th`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
} as const;
|
|
@ -1,39 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export const $MlsdImageProcessorInvocation = {
|
|
||||||
description: `Applies MLSD processing to 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: `image to process`,
|
|
||||||
contains: [{
|
|
||||||
type: 'ImageField',
|
|
||||||
}],
|
|
||||||
},
|
|
||||||
detect_resolution: {
|
|
||||||
type: 'number',
|
|
||||||
description: `pixel resolution for edge detection`,
|
|
||||||
},
|
|
||||||
image_resolution: {
|
|
||||||
type: 'number',
|
|
||||||
description: `pixel resolution for output image`,
|
|
||||||
},
|
|
||||||
thr_v: {
|
|
||||||
type: 'number',
|
|
||||||
description: `MLSD parameter thr_v`,
|
|
||||||
},
|
|
||||||
thr_d: {
|
|
||||||
type: 'number',
|
|
||||||
description: `MLSD parameter thr_d`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
} as const;
|
|
@ -1,31 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export const $NormalbaeImageProcessorInvocation = {
|
|
||||||
description: `Applies NormalBae processing to 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: `image to process`,
|
|
||||||
contains: [{
|
|
||||||
type: 'ImageField',
|
|
||||||
}],
|
|
||||||
},
|
|
||||||
detect_resolution: {
|
|
||||||
type: 'number',
|
|
||||||
description: `pixel resolution for edge detection`,
|
|
||||||
},
|
|
||||||
image_resolution: {
|
|
||||||
type: 'number',
|
|
||||||
description: `pixel resolution for output image`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
} as const;
|
|
@ -1,35 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export const $OpenposeImageProcessorInvocation = {
|
|
||||||
description: `Applies Openpose processing to 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: `image to process`,
|
|
||||||
contains: [{
|
|
||||||
type: 'ImageField',
|
|
||||||
}],
|
|
||||||
},
|
|
||||||
hand_and_face: {
|
|
||||||
type: 'boolean',
|
|
||||||
description: `whether to use hands and face mode`,
|
|
||||||
},
|
|
||||||
detect_resolution: {
|
|
||||||
type: 'number',
|
|
||||||
description: `pixel resolution for edge detection`,
|
|
||||||
},
|
|
||||||
image_resolution: {
|
|
||||||
type: 'number',
|
|
||||||
description: `pixel resolution for output image`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
} as const;
|
|
@ -1,39 +0,0 @@
|
|||||||
/* istanbul ignore file */
|
|
||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
export const $PidiImageProcessorInvocation = {
|
|
||||||
description: `Applies PIDI processing to 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: `image to process`,
|
|
||||||
contains: [{
|
|
||||||
type: 'ImageField',
|
|
||||||
}],
|
|
||||||
},
|
|
||||||
detect_resolution: {
|
|
||||||
type: 'number',
|
|
||||||
description: `pixel resolution for edge detection`,
|
|
||||||
},
|
|
||||||
image_resolution: {
|
|
||||||
type: 'number',
|
|
||||||
description: `pixel resolution for output image`,
|
|
||||||
},
|
|
||||||
safe: {
|
|
||||||
type: 'boolean',
|
|
||||||
description: `whether to use safe mode`,
|
|
||||||
},
|
|
||||||
scribble: {
|
|
||||||
type: 'boolean',
|
|
||||||
description: `whether to use scribble mode`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
} as const;
|
|
@ -1,16 +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',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
} as const;
|
|
@ -22,33 +22,33 @@ export class ImagesService {
|
|||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
public static listImagesWithMetadata({
|
public static listImagesWithMetadata({
|
||||||
imageOrigin,
|
imageOrigin,
|
||||||
categories,
|
categories,
|
||||||
isIntermediate,
|
isIntermediate,
|
||||||
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 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/',
|
||||||
@ -72,25 +72,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/',
|
||||||
@ -115,13 +115,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}',
|
||||||
@ -142,13 +142,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}',
|
||||||
@ -168,15 +168,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}',
|
||||||
@ -198,13 +198,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',
|
||||||
@ -224,13 +224,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',
|
||||||
@ -251,13 +251,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',
|
||||||
|
@ -79,23 +79,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 +117,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 +140,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 +167,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 | DynamicPromptInvocation | CompelInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | ParamFloatInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | CvInpaintInvocation | RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | FloatLinearRangeInvocation | StepParamEasingInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageProcessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation),
|
requestBody: (RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | CompelInvocation | LoadImageInvocation | ShowImageInvocation | ImageCropInvocation | ImagePasteInvocation | MaskFromAlphaInvocation | ImageMultiplyInvocation | ImageChannelInvocation | ImageConvertInvocation | ImageBlurInvocation | ImageResizeInvocation | ImageScaleInvocation | ImageLerpInvocation | ImageInverseLerpInvocation | ControlNetInvocation | ImageProcessorInvocation | CvInpaintInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | ParamFloatInvocation | FloatLinearRangeInvocation | StepParamEasingInvocation | DynamicPromptInvocation | RestoreFaceInvocation | UpscaleInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageProcessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | ImageToImageInvocation | LatentsToLatentsInvocation | InpaintInvocation),
|
||||||
}): 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 +199,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 | DynamicPromptInvocation | CompelInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | ParamFloatInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | CvInpaintInvocation | RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | FloatLinearRangeInvocation | StepParamEasingInvocation | UpscaleInvocation | RestoreFaceInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageProcessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | LatentsToLatentsInvocation | ImageToImageInvocation | InpaintInvocation),
|
requestBody: (RangeInvocation | RangeOfSizeInvocation | RandomRangeInvocation | CompelInvocation | LoadImageInvocation | ShowImageInvocation | ImageCropInvocation | ImagePasteInvocation | MaskFromAlphaInvocation | ImageMultiplyInvocation | ImageChannelInvocation | ImageConvertInvocation | ImageBlurInvocation | ImageResizeInvocation | ImageScaleInvocation | ImageLerpInvocation | ImageInverseLerpInvocation | ControlNetInvocation | ImageProcessorInvocation | CvInpaintInvocation | TextToImageInvocation | InfillColorInvocation | InfillTileInvocation | InfillPatchMatchInvocation | NoiseInvocation | TextToLatentsInvocation | LatentsToImageInvocation | ResizeLatentsInvocation | ScaleLatentsInvocation | ImageToLatentsInvocation | AddInvocation | SubtractInvocation | MultiplyInvocation | DivideInvocation | RandomIntInvocation | ParamIntInvocation | ParamFloatInvocation | FloatLinearRangeInvocation | StepParamEasingInvocation | DynamicPromptInvocation | RestoreFaceInvocation | UpscaleInvocation | GraphInvocation | IterateInvocation | CollectInvocation | CannyImageProcessorInvocation | HedImageProcessorInvocation | LineartImageProcessorInvocation | LineartAnimeImageProcessorInvocation | OpenposeImageProcessorInvocation | MidasDepthImageProcessorInvocation | NormalbaeImageProcessorInvocation | MlsdImageProcessorInvocation | PidiImageProcessorInvocation | ContentShuffleImageProcessorInvocation | ZoeDepthImageProcessorInvocation | MediapipeFaceProcessorInvocation | ImageToImageInvocation | LatentsToLatentsInvocation | InpaintInvocation),
|
||||||
}): 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 +237,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 +271,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 +303,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 +355,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 +391,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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user