From 40ccfac514351d094481467585f464745fc94d4a 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 88c767d1a7..d649ac849e 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' @@ -2918,6 +2947,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 @@ -8507,6 +8547,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) @@ -8553,6 +8598,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) @@ -8616,6 +8666,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) @@ -8834,6 +8889,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) @@ -11877,6 +11937,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 @@ -11902,6 +11968,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 @@ -13258,6 +13329,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. @@ -13338,6 +13411,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. @@ -18033,6 +18108,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;