{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pixnovia-com/json-schema/pixnovia-com-task-status-response-schema.json",
  "title": "TaskStatusResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pixnovia-com-openapi.json#/components/schemas/TaskStatusResponse",
  "type": "object",
  "properties": {
    "task_id": {
      "type": "integer",
      "description": "Task ID"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "processing",
        "success",
        "failed"
      ],
      "description": "Current task status"
    },
    "video_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Relative download URL when status is success. Prepend https://pixnovia.com to get full URL."
    },
    "error_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "Error details if status is failed"
    },
    "cost_cents": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Actual cost in cents after completion"
    },
    "transaction_id": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Transaction ID for record-keeping"
    },
    "new_balance_cents": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Account balance in cents after transaction"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Task creation timestamp"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Task completion timestamp"
    }
  }
}