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: typegen

JPPhoto0df70acadaf6
diff --git a/invokeai/frontend/web/openapi.json b/invokeai/frontend/web/openapi.json
index 69ef493b4b..e0f0be1efe 100644
--- a/invokeai/frontend/web/openapi.json
+++ b/invokeai/frontend/web/openapi.json
@@ -28996,6 +28996,145 @@
"$ref": "#/components/schemas/ImageOutput"
}
},
+ "ExecutionFrame": {
+ "properties": {
+ "frame_id": {
+ "type": "string",
+ "title": "Frame Id",
+ "description": "Stable frame identifier",
+ "default": ""
+ },
+ "state_id": {
+ "type": "string",
+ "title": "State Id",
+ "description": "Owning graph execution state id",
+ "default": ""
+ },
+ "iteration_path": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array",
+ "title": "Iteration Path",
+ "description": "Loop iteration coordinates"
+ },
+ "workflow_call_depth": {
+ "type": "integer",
+ "minimum": 0.0,
+ "title": "Workflow Call Depth",
+ "description": "Nested workflow-call depth",
+ "default": 0
+ }
+ },
+ "additionalProperties": true,
+ "type": "object",
+ "title": "ExecutionFrame",
+ "description": "Stable execution location for a prepared node."
+ },
+ "ExecutionReference": {
+ "properties": {
+ "reference_id": {
+ "type": "string",
+ "title": "Reference Id",
+ "description": "Stable reference identifier",
+ "default": ""
+ },
+ "state_id": {
+ "type": "string",
+ "title": "State Id",
+ "description": "Owning graph execution state id",
+ "default": ""
+ },
+ "exec_node_id": {
+ "type": "string",
+ "title": "Exec Node Id",
+ "description": "Prepared execution node id",
+ "default": ""
+ },
+ "source_node_id": {
+ "type": "string",
+ "title": "Source Node Id",
+ "description": "Authoring graph node id",
+ "default": ""
+ },
+ "frame": {
+ "$ref": "#/components/schemas/ExecutionFrame",
+ "description": "Execution frame"
+ },
+ "effect_count": {
+ "anyOf": [
+ {
+ "type": "integer",
+ "minimum": 0.0
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Effect Count",
+ "description": "Expected effect count, if declared"
+ }
+ },
+ "additionalProperties": true,
+ "type": "object",
+ "title": "ExecutionReference",
+ "description": "Stable, frame-aware reference to one prepared execution node.\n\nThis intentionally stays independent from invocation-context/effect models. The execution engine can reconcile\nthis small compatibility type with a richer protocol later without changing persisted graph state."
+ },
+ "ExecutionToken": {
+ "properties": {
+ "token_id": {
+ "type": "string",
+ "title": "Token Id",
+ "description": "Stable token identifier"
+ },
+ "reference_id": {
+ "type": "string",
+ "title": "Reference Id",
+ "description": "Owning execution reference id"
+ },
+ "owner_node_id": {
+ "type": "string",
+ "title": "Owner Node Id",
+ "description": "Prepared node that produced the token"
+ },
+ "port": {
+ "type": "string",
+ "title": "Port",
+ "description": "Output port name"
+ },
+ "frame": {
+ "$ref": "#/components/schemas/ExecutionFrame",
+ "description": "Frame that produced the token"
+ },
+ "value": {
+ "title": "Value",
+ "description": "Output port value"
+ },
+ "token_kind": {
+ "type": "string",
+ "enum": ["data", "activation", "stream_end"],
+ "title": "Token Kind",
+ "default": "data"
+ },
+ "sequence": {
+ "anyOf": [
+ {
+ "type": "integer",
+ "minimum": 0.0
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Sequence"
+ }
+ },
+ "additionalProperties": true,
+ "type": "object",
+ "required": ["token_id", "reference_id", "owner_node_id", "port", "frame", "value"],
+ "title": "ExecutionToken",
+ "description": "Data token owned by one prepared output port.\n\nTokens contain no graph edge or association metadata. In particular, loop-linkage edges never become data\ntokens."
+ },
"ExpandMaskWithFadeInvocation": {
"category": "mask",
"class": "invocation",
@@ -39181,6 +39320,31 @@
"title": "Prepared Iteration Paths",
"description": "The iteration coordinates of each prepared execution node"
},
+ "execution_refs": {
+ "additionalProperties": {
+ "$ref": "#/components/schemas/ExecutionReference"
+ },
+ "type": "object",
+ "title": "Execution Refs",
+ "description": "Stable frame-aware references for prepared execution nodes"
+ },
+ "execution_tokens": {
+ "additionalProperties": {
+ "$ref": "#/components/schemas/ExecutionToken"
+ },
+ "type": "object",
+ "title": "Execution Tokens",
+ "description": "Data tokens produced by prepared execution output ports"
+ },
+ "execution_effects": {
+ "additionalProperties": {
+ "items": {},
+ "type": "array"
+ },
+ "type": "object",
+ "title": "Execution Effects",
+ "description": "Effects accepted for each execution reference"
+ },
"ready_order": {
"items": {
"type": "string"
diff --git a/invokeai/frontend/web/src/services/api/schema.ts b/invokeai/frontend/web/src/services/api/schema.ts
index d48bfdc9e3..af4fe22e57 100644
--- a/invokeai/frontend/web/src/services/api/schema.ts
+++ b/invokeai/frontend/web/src/services/api/schema.ts
@@ -11286,6 +11286,125 @@ export type components = {
*/
type: "ernie_image_vae_decode";
};
+ /**
+ * ExecutionFrame
+ * @description Stable execution location for a prepared node.
+ */
+ ExecutionFrame: {
+ /**
+ * Frame Id
+ * @description Stable frame identifier
+ * @default
+ */
+ frame_id?: string;
+ /**
+ * State Id
+ * @description Owning graph execution state id
+ * @default
+ */
+ state_id?: string;
+ /**
+ * Iteration Path
+ * @description Loop iteration coordinates
+ */
+ iteration_path?: number[];
+ /**
+ * Workflow Call Depth
+ * @description Nested workflow-call depth
+ * @default 0
+ */
+ workflow_call_depth?: number;
+ } & {
+ [key: string]: unknown;
+ };
+ /**
+ * ExecutionReference
+ * @description Stable, frame-aware reference to one prepared execution node.
+ *
+ * This intentionally stays independent from invocation-context/effect models. The execution engine can reconcile
+ * this small compatibility type with a richer protocol later without changing persisted graph state.
+ */
+ ExecutionReference: {
+ /**
+ * Reference Id
+ * @description Stable reference identifier
+ * @default
+ */
+ reference_id?: string;
+ /**
+ * State Id
+ * @description Owning graph execution state id
+ * @default
+ */
+ state_id?: string;
+ /**
+ * Exec Node Id
+ * @description Prepared execution node id
+ * @default
+ */
+ exec_node_id?: string;
+ /**
+ * Source Node Id
+ * @description Authoring graph node id
+ * @default
+ */
+ source_node_id?: string;
+ /** @description Execution frame */
+ frame?: components["schemas"]["ExecutionFrame"];
+ /**
+ * Effect Count
+ * @description Expected effect count, if declared
+ */
+ effect_count?: number | null;
+ } & {
+ [key: string]: unknown;
+ };
+ /**
+ * ExecutionToken
+ * @description Data token owned by one prepared output port.
+ *
+ * Tokens contain no graph edge or association metadata. In particular, loop-linkage edges never become data
+ * tokens.
+ */
+ ExecutionToken: {
+ /**
+ * Token Id
+ * @description Stable token identifier
+ */
+ token_id: string;
+ /**
+ * Reference Id
+ * @description Owning execution reference id
+ */
+ reference_id: string;
+ /**
+ * Owner Node Id
+ * @description Prepared node that produced the token
+ */
+ owner_node_id: string;
+ /**
+ * Port
+ * @description Output port name
+ */
+ port: string;
+ /** @description Frame that produced the token */
+ frame: components["schemas"]["ExecutionFrame"];
+ /**
+ * Value
+ * @description Output port value
+ */
+ value: unknown;
+ /**
+ * Token Kind
+ * @default data
+ * @enum {string}
+ */
+ token_kind?: "data" | "activation" | "stream_end";
+ /** Sequence */
+ sequence?: number | null;
+ } & {
+ [key: string]: unknown;
+ };
/**
* Expand Mask with Fade
* @description Expands a mask with a fade effect. The mask uses black to indicate areas to keep from the generated image and white for areas to discard.
@@ -15769,6 +15888,27 @@ export type components = {
prepared_iteration_paths?: {
[key: string]: number[];
};
+ /**
+ * Execution Refs
+ * @description Stable frame-aware references for prepared execution nodes
+ */
+ execution_refs?: {
+ [key: string]: components["schemas"]["ExecutionReference"];
+ };
+ /**
+ * Execution Tokens
+ * @description Data tokens produced by prepared execution output ports
+ */
+ execution_tokens?: {
+ [key: string]: components["schemas"]["ExecutionToken"];
+ };
+ /**
+ * Execution Effects
+ * @description Effects accepted for each execution reference
+ */
+ execution_effects?: {
+ [key: string]: unknown[];
+ };
/** Ready Order */
ready_order?: string[];
/**