{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/deepswapai-com/json-schema/deepswapai-com-task-accepted-schema.json",
  "title": "TaskAccepted",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/deepswapai-com-openapi.json#/components/schemas/TaskAccepted",
  "type": "object",
  "required": [
    "taskId",
    "status"
  ],
  "properties": {
    "taskId": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "$ref": "#/$defs/TaskStatus"
    },
    "requiredCredits": {
      "type": "integer",
      "minimum": 0,
      "description": "Included by workflows that return the calculated credit requirement."
    },
    "estimatedCredits": {
      "type": "integer",
      "minimum": 0,
      "description": "Included by the GIF workflow."
    },
    "quality": {
      "type": "string",
      "enum": [
        "1080p"
      ]
    }
  },
  "$defs": {
    "TaskStatus": {
      "type": "string",
      "enum": [
        "PENDING",
        "PROCESSING",
        "COMPLETED",
        "FAILED",
        "CANCELLED"
      ]
    }
  }
}