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:
committed by
GitHub
parent
49657ad2e5
commit
e1d6e29523
@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
9
src/lib/machine-api.d.ts
vendored
9
src/lib/machine-api.d.ts
vendored
@ -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:
|
||||||
| {
|
| {
|
||||||
|
Reference in New Issue
Block a user