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 the artifacts the wildcards router changes

joshistoastbac473ccc2f4
diff --git a/docs/src/generated/invocation-context.json b/docs/src/generated/invocation-context.json
index 55116ec69d..f7c538eaee 100644
--- a/docs/src/generated/invocation-context.json
+++ b/docs/src/generated/invocation-context.json
@@ -1,5 +1,5 @@
{
- "description": "Provides access to various services and data for the current invocation.\n\nAttributes:\n images (ImagesInterface): Methods to save, get and update images and their metadata.\n tensors (TensorsInterface): Methods to save and get tensors, including image, noise, masks, and masked images.\n conditioning (ConditioningInterface): Methods to save and get conditioning data.\n models (ModelsInterface): Methods to check if a model exists, get a model, and get a model's info.\n logger (LoggerInterface): The app logger.\n config (ConfigInterface): The app config.\n util (UtilInterface): Utility methods, including a method to check if an invocation was canceled and step callbacks.\n boards (BoardsInterface): Methods to interact with boards.",
+ "description": "Provides access to various services and data for the current invocation.\n\nAttributes:\n images (ImagesInterface): Methods to save, get and update images and their metadata.\n tensors (TensorsInterface): Methods to save and get tensors, including image, noise, masks, and masked images.\n conditioning (ConditioningInterface): Methods to save and get conditioning data.\n models (ModelsInterface): Methods to check if a model exists, get a model, and get a model's info.\n logger (LoggerInterface): The app logger.\n config (ConfigInterface): The app config.\n util (UtilInterface): Utility methods, including a method to check if an invocation was canceled and step callbacks.\n boards (BoardsInterface): Methods to interact with boards.\n wildcards (WildcardsInterface): Access to the queueing user's wildcards.",
"interfaces": [
{
"description": "",
diff --git a/invokeai/frontend/web/openapi.json b/invokeai/frontend/web/openapi.json
index 6a8e71c4cd..a3140c64be 100644
--- a/invokeai/frontend/web/openapi.json
+++ b/invokeai/frontend/web/openapi.json
@@ -448,7 +448,7 @@
"post": {
"tags": ["utilities"],
"summary": "Parse Dynamicprompts",
- "description": "Creates a batch process",
+ "description": "Expands a prompt's dynamic syntax against the current user's wildcards.",
"operationId": "parse_dynamicprompts",
"requestBody": {
"content": {
@@ -9690,6 +9690,177 @@
]
}
},
+ "/api/v1/wildcards/": {
+ "get": {
+ "tags": ["wildcards"],
+ "summary": "List Wildcards",
+ "description": "Lists the current user's wildcards.",
+ "operationId": "list_wildcards",
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "$ref": "#/components/schemas/WildcardRecordDTO"
+ },
+ "type": "array",
+ "title": "Response 200 List Wildcards"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ]
+ },
+ "post": {
+ "tags": ["wildcards"],
+ "summary": "Create Wildcard",
+ "description": "Creates a wildcard owned by the current user.",
+ "operationId": "create_wildcard",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/WildcardWithoutId",
+ "description": "The wildcard to create"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/WildcardRecordDTO"
+ }
+ }
+ }
+ },
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ]
+ }
+ },
+ "/api/v1/wildcards/{wildcard_id}": {
+ "patch": {
+ "tags": ["wildcards"],
+ "summary": "Update Wildcard",
+ "description": "Updates a wildcard owned by the current user.",
+ "operationId": "update_wildcard",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "wildcard_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The id of the wildcard to update",
+ "title": "Wildcard Id"
+ },
+ "description": "The id of the wildcard to update"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/WildcardChanges",
+ "description": "The changes to apply"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/WildcardRecordDTO"
+ }
+ }
+ }
+ },
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": ["wildcards"],
+ "summary": "Delete Wildcard",
+ "description": "Deletes a wildcard owned by the current user.",
+ "operationId": "delete_wildcard",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "wildcard_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The id of the wildcard to delete",
+ "title": "Wildcard Id"
+ },
+ "description": "The id of the wildcard to delete"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Successful Response"
+ },
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
"/api/v1/client_state/{queue_id}/get_by_key": {
"get": {
"tags": ["client_state"],
@@ -73957,6 +74128,90 @@
"title": "VirtualSubBoardDTO",
"description": "A virtual sub-board computed from image metadata, not stored in the database."
},
+ "WildcardChanges": {
+ "properties": {
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Name",
+ "description": "The wildcard's new name."
+ },
+ "values": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Values",
+ "description": "The wildcard's new values."
+ }
+ },
+ "additionalProperties": false,
+ "type": "object",
+ "title": "WildcardChanges"
+ },
+ "WildcardRecordDTO": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name",
+ "description": "The wildcard's name, referenced in a prompt as `__name__`."
+ },
+ "values": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array",
+ "title": "Values",
+ "description": "The values this wildcard expands to."
+ },
+ "id": {
+ "type": "string",
+ "title": "Id",
+ "description": "The wildcard ID."
+ },
+ "user_id": {
+ "type": "string",
+ "title": "User Id",
+ "description": "The user who owns this wildcard."
+ }
+ },
+ "type": "object",
+ "required": ["name", "values", "id", "user_id"],
+ "title": "WildcardRecordDTO"
+ },
+ "WildcardWithoutId": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name",
+ "description": "The wildcard's name, referenced in a prompt as `__name__`."
+ },
+ "values": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array",
+ "title": "Values",
+ "description": "The values this wildcard expands to."
+ }
+ },
+ "type": "object",
+ "required": ["name", "values"],
+ "title": "WildcardWithoutId"
+ },
"Workflow": {
"properties": {
"name": {
diff --git a/invokeai/frontend/web/src/services/api/schema.ts b/invokeai/frontend/web/src/services/api/schema.ts
index 7312f9ff13..e11de96618 100644
--- a/invokeai/frontend/web/src/services/api/schema.ts
+++ b/invokeai/frontend/web/src/services/api/schema.ts
@@ -296,7 +296,7 @@ export type paths = {
put?: never;
/**
* Parse Dynamicprompts
- * @description Creates a batch process
+ * @description Expands a prompt's dynamic syntax against the current user's wildcards.
*/
post: operations["parse_dynamicprompts"];
delete?: never;
@@ -2631,6 +2631,54 @@ export type paths = {
patch?: never;
trace?: never;
};
+ "/api/v1/wildcards/": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List Wildcards
+ * @description Lists the current user's wildcards.
+ */
+ get: operations["list_wildcards"];
+ put?: never;
+ /**
+ * Create Wildcard
+ * @description Creates a wildcard owned by the current user.
+ */
+ post: operations["create_wildcard"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/api/v1/wildcards/{wildcard_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ get?: never;
+ put?: never;
+ post?: never;
+ /**
+ * Delete Wildcard
+ * @description Deletes a wildcard owned by the current user.
+ */
+ delete: operations["delete_wildcard"];
+ options?: never;
+ head?: never;
+ /**
+ * Update Wildcard
+ * @description Updates a wildcard owned by the current user.
+ */
+ patch: operations["update_wildcard"];
+ trace?: never;
+ };
"/api/v1/client_state/{queue_id}/get_by_key": {
parameters: {
query?: never;
@@ -32749,6 +32797,55 @@ export type components = {
*/
cover_image_name?: string | null;
};
+ /** WildcardChanges */
+ WildcardChanges: {
+ /**
+ * Name
+ * @description The wildcard's new name.
+ */
+ name?: string | null;
+ /**
+ * Values
+ * @description The wildcard's new values.
+ */
+ values?: string[] | null;
+ };
+ /** WildcardRecordDTO */
+ WildcardRecordDTO: {
+ /**
+ * Name
+ * @description The wildcard's name, referenced in a prompt as `__name__`.
+ */
+ name: string;
+ /**
+ * Values
+ * @description The values this wildcard expands to.
+ */
+ values: string[];
+ /**
+ * Id
+ * @description The wildcard ID.
+ */
+ id: string;
+ /**
+ * User Id
+ * @description The user who owns this wildcard.
+ */
+ user_id: string;
+ };
+ /** WildcardWithoutId */
+ WildcardWithoutId: {
+ /**
+ * Name
+ * @description The wildcard's name, referenced in a prompt as `__name__`.
+ */
+ name: string;
+ /**
+ * Values
+ * @description The values this wildcard expands to.
+ */
+ values: string[];
+ };
/** Workflow */
Workflow: {
/**
@@ -39592,6 +39689,125 @@ export interface operations {
};
};
};
+ list_wildcards: {
+ 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"]["WildcardRecordDTO"][];
+ };
+ };
+ };
+ };
+ create_wildcard: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["WildcardWithoutId"];
+ };
+ };
+ responses: {
+ /** @description Successful Response */
+ 201: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["WildcardRecordDTO"];
+ };
+ };
+ /** @description Validation Error */
+ 422: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ delete_wildcard: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /** @description The id of the wildcard to delete */
+ wildcard_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Successful Response */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Validation Error */
+ 422: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ update_wildcard: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /** @description The id of the wildcard to update */
+ wildcard_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["WildcardChanges"];
+ };
+ };
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["WildcardRecordDTO"];
+ };
+ };
+ /** @description Validation Error */
+ 422: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
get_client_state_by_key: {
parameters: {
query: {