{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whoisgeni-us/json-schema/whoisgeni-us-api-response-job-list-response-schema.json",
  "title": "ApiResponse[JobListResponse]",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whoisgeni-us-jobs-api-openapi.yml#/components/schemas/ApiResponse_JobListResponse_",
  "properties": {
    "data": {
      "anyOf": [
        {
          "$ref": "#/$defs/JobListResponse"
        },
        {
          "type": "null"
        }
      ]
    },
    "error": {
      "anyOf": [
        {
          "$ref": "#/$defs/ErrorDetail"
        },
        {
          "type": "null"
        }
      ]
    },
    "meta": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Meta"
    }
  },
  "type": "object",
  "$defs": {
    "ErrorDetail": {
      "properties": {
        "code": {
          "type": "string",
          "title": "Code"
        },
        "message": {
          "type": "string",
          "title": "Message"
        },
        "details": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Details"
        }
      },
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "title": "ErrorDetail",
      "description": "Structured error information for API error responses.\n\nAttributes:\n    code: Machine-readable error code (e.g. \"JOB_NOT_FOUND\").\n    message: Human-readable error description.\n    details: Optional additional context for debugging."
    },
    "JobListItem": {
      "properties": {
        "job_id": {
          "type": "string",
          "title": "Job Id"
        },
        "domain": {
          "type": "string",
          "title": "Domain"
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "processing",
            "completed",
            "failed",
            "partial"
          ],
          "title": "Status"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Completed At"
        },
        "duration_ms": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Duration Ms"
        }
      },
      "type": "object",
      "required": [
        "job_id",
        "domain",
        "status",
        "created_at"
      ],
      "title": "JobListItem",
      "description": "A single job in the per-user job history list.\n\nAttributes:\n    job_id: Unique job identifier.\n    domain: Domain that was analyzed.\n    status: Current job status (pending, processing, completed, failed, partial).\n    created_at: When the job was submitted.\n    completed_at: When the job reached a terminal state, or None while in flight.\n    duration_ms: Wall-clock time from submission to ``completed_at`` (falling\n        back to ``updated_at`` for failed jobs persisted before the fix that\n        stamped ``completed_at``), in milliseconds."
    },
    "JobListResponse": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/$defs/JobListItem"
          },
          "type": "array",
          "title": "Items"
        },
        "total": {
          "type": "integer",
          "title": "Total"
        },
        "limit": {
          "type": "integer",
          "title": "Limit"
        },
        "offset": {
          "type": "integer",
          "title": "Offset"
        }
      },
      "type": "object",
      "required": [
        "total",
        "limit",
        "offset"
      ],
      "title": "JobListResponse",
      "description": "Paginated per-user job history, newest first.\n\nAttributes:\n    items: The page of jobs.\n    total: Total number of jobs owned by the caller.\n    limit: Page size used for this response.\n    offset: Rows skipped for this response."
    }
  }
}