diff --git a/openapi/machine-api.json b/openapi/machine-api.json index 03f5f41f7..260927895 100644 --- a/openapi/machine-api.json +++ b/openapi/machine-api.json @@ -107,6 +107,13 @@ }, "type": "array" }, + "loaded_filament_idx": { + "description": "The currently loaded filament index.", + "format": "uint", + "minimum": 0, + "nullable": true, + "type": "integer" + }, "nozzle_diameter": { "description": "Diameter of the extrusion nozzle, in mm.", "format": "double", @@ -285,6 +292,21 @@ "type" ], "type": "object" + }, + { + "description": "Unknown material", + "properties": { + "type": { + "enum": [ + "unknown" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object" } ] }, diff --git a/src/lib/machine-api.d.ts b/src/lib/machine-api.d.ts index eb3ed6cc3..0fafa323a 100644 --- a/src/lib/machine-api.d.ts +++ b/src/lib/machine-api.d.ts @@ -138,6 +138,11 @@ export interface components { FdmHardwareConfiguration: { /** @description The filaments the printer has access to. */ filaments: components['schemas']['Filament'][] + /** + * Format: uint + * @description The currently loaded filament index. + */ + loaded_filament_idx?: number | null /** * Format: double * @description Diameter of the extrusion nozzle, in mm. @@ -191,6 +196,10 @@ export interface components { /** @enum {string} */ type: 'composite' } + | { + /** @enum {string} */ + type: 'unknown' + } /** @description The hardware configuration of a machine. */ HardwareConfiguration: | {