From f283bfd68feccd9a2a57e9b5d21693f5e99f1ca0 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Mon, 1 Jul 2024 19:24:44 +1000 Subject: [PATCH] chore(ui): typegen --- .../frontend/web/src/services/api/schema.ts | 110 ++++++++++++++++++ 1 file changed, 110 insertions(+) diff --git a/invokeai/frontend/web/src/services/api/schema.ts b/invokeai/frontend/web/src/services/api/schema.ts index f0b6c0198c..fabc1d5c75 100644 --- a/invokeai/frontend/web/src/services/api/schema.ts +++ b/invokeai/frontend/web/src/services/api/schema.ts @@ -1060,6 +1060,26 @@ export type paths = { patch?: 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": { parameters: { query?: never; @@ -1615,6 +1635,8 @@ export type components = { * @description The ID of the batch */ batch_id?: string; + /** @description The origin of this batch. */ + origin?: components["schemas"]["QueueItemOrigin"] | null; /** * Data * @description The batch data collection. @@ -1684,6 +1706,11 @@ export type components = { * @description The priority of the batch */ priority: number; + /** + * @description The origin of the batch + * @default null + */ + origin: components["schemas"]["QueueItemOrigin"] | null; }; /** BatchStatus */ BatchStatus: { @@ -1697,6 +1724,8 @@ export type components = { * @description The ID of the batch */ batch_id: string; + /** @description The origin of the batch */ + origin: components["schemas"]["QueueItemOrigin"] | null; /** * Pending * @description Number of queue items with status 'pending' @@ -2852,6 +2881,17 @@ export type components = { */ canceled: number; }; + /** + * CancelByOriginResult + * @description Result of canceling by list of batch ids + */ + CancelByOriginResult: { + /** + * Canceled + * @description Number of queue items canceled + */ + canceled: number; + }; /** * Canny Processor * @description Canny edge detection for ControlNet @@ -8201,6 +8241,11 @@ export type components = { * @description The ID of the queue batch */ batch_id: string; + /** + * @description The origin of the batch + * @default null + */ + origin: components["schemas"]["QueueItemOrigin"] | null; /** * Session Id * @description The ID of the session (aka graph execution state) @@ -8247,6 +8292,11 @@ export type components = { * @description The ID of the queue batch */ batch_id: string; + /** + * @description The origin of the batch + * @default null + */ + origin: components["schemas"]["QueueItemOrigin"] | null; /** * Session Id * @description The ID of the session (aka graph execution state) @@ -8310,6 +8360,11 @@ export type components = { * @description The ID of the queue batch */ batch_id: string; + /** + * @description The origin of the batch + * @default null + */ + origin: components["schemas"]["QueueItemOrigin"] | null; /** * Session Id * @description The ID of the session (aka graph execution state) @@ -8525,6 +8580,11 @@ export type components = { * @description The ID of the queue batch */ batch_id: string; + /** + * @description The origin of the batch + * @default null + */ + origin: components["schemas"]["QueueItemOrigin"] | null; /** * Session Id * @description The ID of the session (aka graph execution state) @@ -11473,6 +11533,12 @@ export type components = { */ 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 * @description Event model for queue_item_status_changed @@ -11498,6 +11564,11 @@ export type components = { * @description The ID of the queue batch */ batch_id: string; + /** + * @description The origin of the batch + * @default null + */ + origin: components["schemas"]["QueueItemOrigin"] | null; /** * Status * @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 */ batch_id: string; + /** @description The origin of this queue item. */ + origin?: components["schemas"]["QueueItemOrigin"] | null; /** * 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. @@ -12934,6 +13007,8 @@ export type components = { * @description The ID of the batch associated with this queue item */ batch_id: string; + /** @description The origin of this queue item. */ + origin?: components["schemas"]["QueueItemOrigin"] | null; /** * 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. @@ -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: { parameters: { query?: never;