From eae9092e7501b6ba746af2f38cf52322fc75842d Mon Sep 17 00:00:00 2001 From: Riku Date: Thu, 28 Nov 2024 15:30:07 +0100 Subject: [PATCH] chore(ui): update typegen schema --- .../frontend/web/src/services/api/schema.ts | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/invokeai/frontend/web/src/services/api/schema.ts b/invokeai/frontend/web/src/services/api/schema.ts index 7c0250167f8..1f9b90fff6e 100644 --- a/invokeai/frontend/web/src/services/api/schema.ts +++ b/invokeai/frontend/web/src/services/api/schema.ts @@ -1102,6 +1102,26 @@ export type paths = { patch?: never; trace?: never; }; + "/api/v1/queue/{queue_id}/cancel_all_except_current": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + /** + * Cancel All Except Current + * @description Immediately cancels all queue items except in-processing items + */ + put: operations["cancel_all_except_current"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/api/v1/queue/{queue_id}/cancel_by_batch_ids": { parameters: { query?: never; @@ -3327,6 +3347,17 @@ export type components = { */ type: "calculate_image_tiles_output"; }; + /** + * CancelAllExceptCurrentResult + * @description Result of canceling all except current + */ + CancelAllExceptCurrentResult: { + /** + * Canceled + * @description Number of queue items canceled + */ + canceled: number; + }; /** * CancelByBatchIDsResult * @description Result of canceling by list of batch ids @@ -21174,6 +21205,38 @@ export interface operations { }; }; }; + cancel_all_except_current: { + parameters: { + query?: never; + 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"]["CancelAllExceptCurrentResult"]; + }; + }; + /** @description Validation Error */ + 422: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; cancel_by_batch_ids: { parameters: { query?: never;