chore(ui): typegen

This commit is contained in:
psychedelicious 2024-07-01 19:24:44 +10:00
parent 6e5ff7b79c
commit f283bfd68f

View File

@ -1060,6 +1060,26 @@ export type paths = {
patch?: never; patch?: never;
trace?: never; trace?: never;
}; };
"/api/v1/queue/{queue_id}/cancel_by_origin": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
/**
* Cancel By Origin
* @description Immediately cancels all queue items with the given origin
*/
put: operations["cancel_by_origin"];
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/api/v1/queue/{queue_id}/clear": { "/api/v1/queue/{queue_id}/clear": {
parameters: { parameters: {
query?: never; query?: never;
@ -1615,6 +1635,8 @@ export type components = {
* @description The ID of the batch * @description The ID of the batch
*/ */
batch_id?: string; batch_id?: string;
/** @description The origin of this batch. */
origin?: components["schemas"]["QueueItemOrigin"] | null;
/** /**
* Data * Data
* @description The batch data collection. * @description The batch data collection.
@ -1684,6 +1706,11 @@ export type components = {
* @description The priority of the batch * @description The priority of the batch
*/ */
priority: number; priority: number;
/**
* @description The origin of the batch
* @default null
*/
origin: components["schemas"]["QueueItemOrigin"] | null;
}; };
/** BatchStatus */ /** BatchStatus */
BatchStatus: { BatchStatus: {
@ -1697,6 +1724,8 @@ export type components = {
* @description The ID of the batch * @description The ID of the batch
*/ */
batch_id: string; batch_id: string;
/** @description The origin of the batch */
origin: components["schemas"]["QueueItemOrigin"] | null;
/** /**
* Pending * Pending
* @description Number of queue items with status 'pending' * @description Number of queue items with status 'pending'
@ -2852,6 +2881,17 @@ export type components = {
*/ */
canceled: number; canceled: number;
}; };
/**
* CancelByOriginResult
* @description Result of canceling by list of batch ids
*/
CancelByOriginResult: {
/**
* Canceled
* @description Number of queue items canceled
*/
canceled: number;
};
/** /**
* Canny Processor * Canny Processor
* @description Canny edge detection for ControlNet * @description Canny edge detection for ControlNet
@ -8201,6 +8241,11 @@ export type components = {
* @description The ID of the queue batch * @description The ID of the queue batch
*/ */
batch_id: string; batch_id: string;
/**
* @description The origin of the batch
* @default null
*/
origin: components["schemas"]["QueueItemOrigin"] | null;
/** /**
* Session Id * Session Id
* @description The ID of the session (aka graph execution state) * @description The ID of the session (aka graph execution state)
@ -8247,6 +8292,11 @@ export type components = {
* @description The ID of the queue batch * @description The ID of the queue batch
*/ */
batch_id: string; batch_id: string;
/**
* @description The origin of the batch
* @default null
*/
origin: components["schemas"]["QueueItemOrigin"] | null;
/** /**
* Session Id * Session Id
* @description The ID of the session (aka graph execution state) * @description The ID of the session (aka graph execution state)
@ -8310,6 +8360,11 @@ export type components = {
* @description The ID of the queue batch * @description The ID of the queue batch
*/ */
batch_id: string; batch_id: string;
/**
* @description The origin of the batch
* @default null
*/
origin: components["schemas"]["QueueItemOrigin"] | null;
/** /**
* Session Id * Session Id
* @description The ID of the session (aka graph execution state) * @description The ID of the session (aka graph execution state)
@ -8525,6 +8580,11 @@ export type components = {
* @description The ID of the queue batch * @description The ID of the queue batch
*/ */
batch_id: string; batch_id: string;
/**
* @description The origin of the batch
* @default null
*/
origin: components["schemas"]["QueueItemOrigin"] | null;
/** /**
* Session Id * Session Id
* @description The ID of the session (aka graph execution state) * @description The ID of the session (aka graph execution state)
@ -11473,6 +11533,12 @@ export type components = {
*/ */
queue_id: string; queue_id: string;
}; };
/**
* QueueItemOrigin
* @description The origin of a batch. For example, a batch can be created from the canvas or workflows tab.
* @enum {string}
*/
QueueItemOrigin: "canvas" | "workflows";
/** /**
* QueueItemStatusChangedEvent * QueueItemStatusChangedEvent
* @description Event model for queue_item_status_changed * @description Event model for queue_item_status_changed
@ -11498,6 +11564,11 @@ export type components = {
* @description The ID of the queue batch * @description The ID of the queue batch
*/ */
batch_id: string; batch_id: string;
/**
* @description The origin of the batch
* @default null
*/
origin: components["schemas"]["QueueItemOrigin"] | null;
/** /**
* Status * Status
* @description The new status of the queue item * @description The new status of the queue item
@ -12854,6 +12925,8 @@ export type components = {
* @description The ID of the batch associated with this queue item * @description The ID of the batch associated with this queue item
*/ */
batch_id: string; batch_id: string;
/** @description The origin of this queue item. */
origin?: components["schemas"]["QueueItemOrigin"] | null;
/** /**
* Session Id * Session Id
* @description The ID of the session associated with this queue item. The session doesn't exist in graph_executions until the queue item is executed. * @description The ID of the session associated with this queue item. The session doesn't exist in graph_executions until the queue item is executed.
@ -12934,6 +13007,8 @@ export type components = {
* @description The ID of the batch associated with this queue item * @description The ID of the batch associated with this queue item
*/ */
batch_id: string; batch_id: string;
/** @description The origin of this queue item. */
origin?: components["schemas"]["QueueItemOrigin"] | null;
/** /**
* Session Id * Session Id
* @description The ID of the session associated with this queue item. The session doesn't exist in graph_executions until the queue item is executed. * @description The ID of the session associated with this queue item. The session doesn't exist in graph_executions until the queue item is executed.
@ -17493,6 +17568,41 @@ export interface operations {
}; };
}; };
}; };
cancel_by_origin: {
parameters: {
query: {
/** @description The origin to cancel all queue items for */
origin: components["schemas"]["QueueItemOrigin"];
};
header?: never;
path: {
/** @description The queue id to perform this operation on */
queue_id: string;
};
cookie?: never;
};
requestBody?: never;
responses: {
/** @description Successful Response */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["CancelByBatchIDsResult"];
};
};
/** @description Validation Error */
422: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["HTTPValidationError"];
};
};
};
};
clear: { clear: {
parameters: { parameters: {
query?: never; query?: never;