Update machine-api spec (#4241)

* YOYO NEW API SPEC!

* New machine-api types

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com>
This commit is contained in:
zoo-github-actions-auth[bot]
2024-10-23 23:41:48 +00:00
committed by GitHub
parent 49657ad2e5
commit e1d6e29523
2 changed files with 31 additions and 0 deletions

View File

@ -107,6 +107,13 @@
}, },
"type": "array" "type": "array"
}, },
"loaded_filament_idx": {
"description": "The currently loaded filament index.",
"format": "uint",
"minimum": 0,
"nullable": true,
"type": "integer"
},
"nozzle_diameter": { "nozzle_diameter": {
"description": "Diameter of the extrusion nozzle, in mm.", "description": "Diameter of the extrusion nozzle, in mm.",
"format": "double", "format": "double",
@ -285,6 +292,21 @@
"type" "type"
], ],
"type": "object" "type": "object"
},
{
"description": "Unknown material",
"properties": {
"type": {
"enum": [
"unknown"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
} }
] ]
}, },

View File

@ -138,6 +138,11 @@ export interface components {
FdmHardwareConfiguration: { FdmHardwareConfiguration: {
/** @description The filaments the printer has access to. */ /** @description The filaments the printer has access to. */
filaments: components['schemas']['Filament'][] filaments: components['schemas']['Filament'][]
/**
* Format: uint
* @description The currently loaded filament index.
*/
loaded_filament_idx?: number | null
/** /**
* Format: double * Format: double
* @description Diameter of the extrusion nozzle, in mm. * @description Diameter of the extrusion nozzle, in mm.
@ -191,6 +196,10 @@ export interface components {
/** @enum {string} */ /** @enum {string} */
type: 'composite' type: 'composite'
} }
| {
/** @enum {string} */
type: 'unknown'
}
/** @description The hardware configuration of a machine. */ /** @description The hardware configuration of a machine. */
HardwareConfiguration: HardwareConfiguration:
| { | {