Update machine-api spec (#3438)
* YOYO NEW API SPEC! * New machine-api types --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
e099c95c5f
commit
0f2a01b6c8
@ -618,6 +618,67 @@
|
|||||||
],
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"additionalProperties": true,
|
||||||
|
"description": "Ams change filament.",
|
||||||
|
"properties": {
|
||||||
|
"command": {
|
||||||
|
"enum": [
|
||||||
|
"ams_change_filament"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"errorno": {
|
||||||
|
"description": "The error number.",
|
||||||
|
"format": "int64",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/Reason"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The reason for the message.",
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/Result"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The result of the command."
|
||||||
|
},
|
||||||
|
"sequence_id": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/SequenceId"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The sequence id."
|
||||||
|
},
|
||||||
|
"tar_temp": {
|
||||||
|
"description": "The target temperature.",
|
||||||
|
"format": "int64",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"target": {
|
||||||
|
"description": "The target.",
|
||||||
|
"format": "int64",
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"command",
|
||||||
|
"errorno",
|
||||||
|
"result",
|
||||||
|
"sequence_id",
|
||||||
|
"tar_temp",
|
||||||
|
"target"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"additionalProperties": true,
|
"additionalProperties": true,
|
||||||
"description": "Calibration.",
|
"description": "Calibration.",
|
||||||
|
27
src/lib/machine-api.d.ts
vendored
27
src/lib/machine-api.d.ts
vendored
@ -264,6 +264,33 @@ export interface components {
|
|||||||
} & {
|
} & {
|
||||||
[key: string]: unknown
|
[key: string]: unknown
|
||||||
})
|
})
|
||||||
|
| ({
|
||||||
|
/** @enum {string} */
|
||||||
|
command: 'ams_change_filament'
|
||||||
|
/**
|
||||||
|
* Format: int64
|
||||||
|
* @description The error number.
|
||||||
|
*/
|
||||||
|
errorno: number
|
||||||
|
/** @description The reason for the message. */
|
||||||
|
reason?: components['schemas']['Reason'] | null
|
||||||
|
/** @description The result of the command. */
|
||||||
|
result: components['schemas']['Result']
|
||||||
|
/** @description The sequence id. */
|
||||||
|
sequence_id: components['schemas']['SequenceId']
|
||||||
|
/**
|
||||||
|
* Format: int64
|
||||||
|
* @description The target temperature.
|
||||||
|
*/
|
||||||
|
tar_temp: number
|
||||||
|
/**
|
||||||
|
* Format: int64
|
||||||
|
* @description The target.
|
||||||
|
*/
|
||||||
|
target: number
|
||||||
|
} & {
|
||||||
|
[key: string]: unknown
|
||||||
|
})
|
||||||
| ({
|
| ({
|
||||||
/** @enum {string} */
|
/** @enum {string} */
|
||||||
command: 'calibration'
|
command: 'calibration'
|
||||||
|
Reference in New Issue
Block a user