Update machine-api spec (#3441)

* 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 17:26:41 -07:00
committed by GitHub
parent 0f2a01b6c8
commit f26adee360
2 changed files with 62 additions and 0 deletions

View File

@ -1253,6 +1253,54 @@
], ],
"type": "object" "type": "object"
}, },
{
"additionalProperties": true,
"description": "Print speed.",
"properties": {
"command": {
"enum": [
"print_speed"
],
"type": "string"
},
"param": {
"description": "The param.",
"type": "string"
},
"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."
}
},
"required": [
"command",
"param",
"result",
"sequence_id"
],
"type": "object"
},
{ {
"additionalProperties": true, "additionalProperties": true,
"description": "Resume the print.", "description": "Resume the print.",

View File

@ -555,6 +555,20 @@ export interface components {
} & { } & {
[key: string]: unknown [key: string]: unknown
}) })
| ({
/** @enum {string} */
command: 'print_speed'
/** @description The param. */
param: string
/** @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']
} & {
[key: string]: unknown
})
| ({ | ({
/** @enum {string} */ /** @enum {string} */
command: 'resume' command: 'resume'