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:
zoo-github-actions-auth[bot]
2024-08-14 16:59:39 -07:00
committed by GitHub
parent e099c95c5f
commit 0f2a01b6c8
2 changed files with 88 additions and 0 deletions

View File

@ -618,6 +618,67 @@
],
"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,
"description": "Calibration.",

View File

@ -264,6 +264,33 @@ export interface components {
} & {
[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} */
command: 'calibration'