{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apipass/json-schema/apipass-task-record-response-schema.json",
  "title": "TaskRecordResponse",
  "description": "任务记录响应",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apipass-jobs-api-openapi.yml#/components/schemas/TaskRecordResponse",
  "properties": {
    "code": {
      "type": "integer",
      "title": "Code",
      "description": "状态码",
      "default": 200
    },
    "message": {
      "type": "string",
      "title": "Message",
      "description": "响应消息",
      "default": "success"
    },
    "data": {
      "$ref": "#/$defs/TaskRecordData"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "TaskRecordData": {
      "properties": {
        "taskId": {
          "type": "string",
          "title": "Taskid"
        },
        "model": {
          "type": "string",
          "title": "Model"
        },
        "state": {
          "type": "string",
          "title": "State"
        },
        "param": {
          "type": "string",
          "title": "Param"
        },
        "resultJson": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Resultjson"
        },
        "failCode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Failcode"
        },
        "failMsg": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Failmsg"
        },
        "costTime": {
          "type": "integer",
          "title": "Costtime",
          "default": 0
        },
        "completeTime": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Completetime"
        },
        "createTime": {
          "type": "integer",
          "title": "Createtime"
        },
        "modelRequested": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Modelrequested"
        },
        "modelUsed": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Modelused"
        },
        "fallbackTriggered": {
          "type": "boolean",
          "title": "Fallbacktriggered",
          "default": false
        },
        "billingChannelType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Billingchanneltype"
        }
      },
      "type": "object",
      "required": [
        "taskId",
        "model",
        "state",
        "param",
        "createTime"
      ],
      "title": "TaskRecordData",
      "description": "任务记录数据"
    }
  }
}