diff --git a/openapi/machine-api.json b/openapi/machine-api.json index be38bde99..caae17f51 100644 --- a/openapi/machine-api.json +++ b/openapi/machine-api.json @@ -464,6 +464,54 @@ "Print": { "description": "A print command.", "oneOf": [ + { + "additionalProperties": true, + "description": "Ams control.", + "properties": { + "command": { + "enum": [ + "ams_control" + ], + "type": "string" + }, + "param": { + "description": "The param.", + "nullable": true, + "type": "string" + }, + "reason": { + "allOf": [ + { + "$ref": "#/components/schemas/Reason" + } + ], + "description": "The reason for the message." + }, + "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", + "reason", + "result", + "sequence_id" + ], + "type": "object" + }, { "additionalProperties": true, "description": "The status of the print.", @@ -842,8 +890,30 @@ ], "type": "string" }, - "line": { + "param": { "description": "The gcode line.", + "nullable": true, + "type": "string" + }, + "reason": { + "allOf": [ + { + "$ref": "#/components/schemas/Reason" + } + ], + "description": "The reason for the message." + }, + "result": { + "allOf": [ + { + "$ref": "#/components/schemas/Result" + } + ], + "description": "The result of the command." + }, + "return_code": { + "description": "The return code.", + "nullable": true, "type": "string" }, "sequence_id": { @@ -853,11 +923,18 @@ } ], "description": "The sequence id." + }, + "source": { + "description": "The source.", + "format": "int64", + "nullable": true, + "type": "integer" } }, "required": [ "command", - "line", + "reason", + "result", "sequence_id" ], "type": "object" @@ -874,6 +951,7 @@ }, "gcode_file": { "description": "The gcode file.", + "nullable": true, "type": "string" }, "profile_id": { @@ -907,7 +985,6 @@ }, "required": [ "command", - "gcode_file", "profile_id", "project_id", "sequence_id",