{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adsturbo-ai/json-schema/adsturbo-ai-api-success-open-work-ent-schema.json",
  "title": "ApiSuccessOpenWorkEnt",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adsturbo-ai-adclone-api-openapi.yml#/components/schemas/ApiSuccessOpenWorkEnt",
  "type": "object",
  "required": [
    "ret"
  ],
  "properties": {
    "ret": {
      "type": "integer"
    },
    "msg": {
      "type": "string"
    },
    "data": {
      "type": "object",
      "properties": {
        "ent": {
          "$ref": "#/$defs/OpenWorkData"
        }
      }
    }
  },
  "$defs": {
    "OpenWorkData": {
      "type": "object",
      "description": "Async task status and result summary.",
      "properties": {
        "workspace_id": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "description": "pending / processing / completed / failed"
        },
        "callback_id": {
          "type": "string",
          "description": "Custom tracking ID, echoed back in `/openapi/v1/work/status` results so you can match tasks to your own records (webhook delivery is not available yet)."
        },
        "result_type": {
          "type": "string",
          "enum": [
            "video",
            "image",
            "audio",
            "text",
            "structured"
          ]
        },
        "result_url": {
          "type": "string"
        },
        "thumbnail_url": {
          "type": "string"
        },
        "duration": {
          "type": "number",
          "format": "float"
        },
        "message": {
          "type": "string"
        },
        "created_at": {
          "type": "integer",
          "format": "int64"
        }
      }
    }
  }
}