Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

chore: regenerate openapi schema and api types for the vocab endpoints

Lincoln Steinf88eba94fc1c
diff --git a/invokeai/frontend/web/openapi.json b/invokeai/frontend/web/openapi.json
index 5de1f2b11a..7b12ab4173 100644
--- a/invokeai/frontend/web/openapi.json
+++ b/invokeai/frontend/web/openapi.json
@@ -6601,6 +6601,74 @@
]
}
},
+ "/api/v1/image_map/vocab": {
+ "get": {
+ "tags": ["image_map"],
+ "summary": "Get Image Map Vocab",
+ "description": "Gets the supplementary cluster-labeling vocabulary.\n\nThe list is server-wide: cluster labels are computed against one shared\nvocabulary. Readable by any user; only admins may change it.",
+ "operationId": "get_image_map_vocab",
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ImageMapVocabResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ]
+ },
+ "put": {
+ "tags": ["image_map"],
+ "summary": "Update Image Map Vocab",
+ "description": "Replaces the supplementary cluster-labeling vocabulary. Admin-only.\n\nThe stored embeddings are invalidated and rebuilt in the background (the\nresponse's `state` reflects this); labels served in the meantime still use\nthe previous vocabulary. Works while the index is disabled too \u2014 terms\npersist and take effect when indexing next runs.",
+ "operationId": "update_image_map_vocab",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ImageMapVocabUpdate"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ImageMapVocabResponse"
+ }
+ }
+ }
+ },
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ]
+ }
+ },
"/api/v1/image_map/status": {
"get": {
"tags": ["image_map"],
@@ -42456,6 +42524,67 @@
"title": "ImageMapStatusResponse",
"description": "Combined index + projection status for the current user."
},
+ "ImageMapVocabResponse": {
+ "properties": {
+ "terms": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array",
+ "title": "Terms",
+ "description": "The stored supplementary terms, normalized, sorted alphabetically"
+ },
+ "state": {
+ "type": "string",
+ "enum": ["unavailable", "idle", "building", "ready", "error"],
+ "title": "State",
+ "description": "unavailable: the index is not running; idle: embeddings will build when labels are next requested; building: an embedding (re)build is queued or running; ready: embeddings are serving; error: the last build failed (see error)"
+ },
+ "error": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Error",
+ "description": "Why the last embedding build failed; only set on error"
+ },
+ "max_terms": {
+ "type": "integer",
+ "title": "Max Terms",
+ "description": "Maximum number of supplementary terms the server accepts"
+ },
+ "max_term_length": {
+ "type": "integer",
+ "title": "Max Term Length",
+ "description": "Maximum length of one term, in characters"
+ }
+ },
+ "type": "object",
+ "required": ["terms", "state", "max_terms", "max_term_length"],
+ "title": "ImageMapVocabResponse",
+ "description": "The supplementary cluster-labeling vocabulary and its embedding build state."
+ },
+ "ImageMapVocabUpdate": {
+ "properties": {
+ "terms": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array",
+ "maxItems": 500,
+ "title": "Terms",
+ "description": "The full supplementary term list; replaces what is stored. Terms are normalized (lowercased, whitespace collapsed) and deduplicated server-side."
+ }
+ },
+ "type": "object",
+ "required": ["terms"],
+ "title": "ImageMapVocabUpdate",
+ "description": "Replacement supplementary vocabulary."
+ },
"ImageMaskToTensorInvocation": {
"category": "mask",
"class": "invocation",
diff --git a/invokeai/frontend/web/src/services/api/schema.ts b/invokeai/frontend/web/src/services/api/schema.ts
index d48262a56c..95fdb99e30 100644
--- a/invokeai/frontend/web/src/services/api/schema.ts
+++ b/invokeai/frontend/web/src/services/api/schema.ts
@@ -1568,6 +1568,38 @@ export type paths = {
patch?: never;
trace?: never;
};
+ "/api/v1/image_map/vocab": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get Image Map Vocab
+ * @description Gets the supplementary cluster-labeling vocabulary.
+ *
+ * The list is server-wide: cluster labels are computed against one shared
+ * vocabulary. Readable by any user; only admins may change it.
+ */
+ get: operations["get_image_map_vocab"];
+ /**
+ * Update Image Map Vocab
+ * @description Replaces the supplementary cluster-labeling vocabulary. Admin-only.
+ *
+ * The stored embeddings are invalidated and rebuilt in the background (the
+ * response's `state` reflects this); labels served in the meantime still use
+ * the previous vocabulary. Works while the index is disabled too — terms
+ * persist and take effect when indexing next runs.
+ */
+ put: operations["update_image_map_vocab"];
+ post?: never;
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
"/api/v1/image_map/status": {
parameters: {
query?: never;
@@ -17698,6 +17730,49 @@ export type components = {
/** @description The user's projection cache status */
projection: components["schemas"]["ImageMapProjectionStatus"];
};
+ /**
+ * ImageMapVocabResponse
+ * @description The supplementary cluster-labeling vocabulary and its embedding build state.
+ */
+ ImageMapVocabResponse: {
+ /**
+ * Terms
+ * @description The stored supplementary terms, normalized, sorted alphabetically
+ */
+ terms: string[];
+ /**
+ * State
+ * @description unavailable: the index is not running; idle: embeddings will build when labels are next requested; building: an embedding (re)build is queued or running; ready: embeddings are serving; error: the last build failed (see error)
+ * @enum {string}
+ */
+ state: "unavailable" | "idle" | "building" | "ready" | "error";
+ /**
+ * Error
+ * @description Why the last embedding build failed; only set on error
+ */
+ error?: string | null;
+ /**
+ * Max Terms
+ * @description Maximum number of supplementary terms the server accepts
+ */
+ max_terms: number;
+ /**
+ * Max Term Length
+ * @description Maximum length of one term, in characters
+ */
+ max_term_length: number;
+ };
+ /**
+ * ImageMapVocabUpdate
+ * @description Replacement supplementary vocabulary.
+ */
+ ImageMapVocabUpdate: {
+ /**
+ * Terms
+ * @description The full supplementary term list; replaces what is stored. Terms are normalized (lowercased, whitespace collapsed) and deduplicated server-side.
+ */
+ terms: string[];
+ };
/**
* Image Mask to Tensor
* @description Convert a mask image to a tensor. Converts the image to grayscale and uses thresholding at the specified value.
@@ -47602,6 +47677,59 @@ export interface operations {
};
};
};
+ get_image_map_vocab: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["ImageMapVocabResponse"];
+ };
+ };
+ };
+ };
+ update_image_map_vocab: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["ImageMapVocabUpdate"];
+ };
+ };
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["ImageMapVocabResponse"];
+ };
+ };
+ /** @description Validation Error */
+ 422: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
get_image_map_status: {
parameters: {
query?: never;