{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aqara/json-schema/aqara-command-execute-await-response-schema.json",
  "title": "CommandExecuteAwaitResponse",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/aqara-data-export-api-openapi.yml#/components/schemas/CommandExecuteAwaitResponse",
  "allOf": [
    {
      "$ref": "#/$defs/BaseResponse"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CommandExecuteAwaitResult"
          }
        }
      }
    }
  ],
  "$defs": {
    "BaseResponse": {
      "type": "object",
      "required": [
        "type",
        "version",
        "msgId",
        "code"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "Message type"
        },
        "version": {
          "type": "string",
          "description": "API version"
        },
        "msgId": {
          "type": "string",
          "description": "Message ID"
        },
        "code": {
          "type": "integer",
          "description": "Business status code, 0 indicates success"
        },
        "message": {
          "type": "string",
          "description": "Message"
        }
      }
    },
    "CommandExecuteAwaitResult": {
      "type": "object",
      "required": [
        "deviceId",
        "endpointId",
        "functionCode",
        "commandCode",
        "code",
        "message",
        "responded"
      ],
      "properties": {
        "deviceId": {
          "type": "string",
          "description": "Device ID."
        },
        "endpointId": {
          "type": "integer",
          "description": "Endpoint ID."
        },
        "functionCode": {
          "type": "string",
          "description": "Function code."
        },
        "commandCode": {
          "type": "string",
          "description": "Command code."
        },
        "code": {
          "type": "integer",
          "description": "Execution result code."
        },
        "message": {
          "type": "string",
          "description": "Execution result description."
        },
        "responded": {
          "type": "boolean",
          "description": "Whether the device has reported the command."
        },
        "commandReportValue": {
          "type": "string",
          "description": "The original string of the device command report, parsed by the calling side."
        },
        "responseTime": {
          "type": "integer",
          "format": "int64",
          "description": "The time of the device command report (milliseconds, UTC)."
        }
      }
    }
  }
}