{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/everpop-app/json-schema/everpop-app-job-ref-envelope-schema.json",
  "title": "JobRefEnvelope",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/everpop-app-generate-api-openapi.yml#/components/schemas/JobRefEnvelope",
  "type": "object",
  "properties": {
    "ok": {
      "const": true
    },
    "data": {
      "$ref": "#/$defs/JobRef"
    }
  },
  "required": [
    "ok",
    "data"
  ],
  "$defs": {
    "JobRef": {
      "type": "object",
      "properties": {
        "jobId": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "PROCESSING",
            "COMPLETED",
            "FAILED",
            "CANCELED"
          ]
        },
        "poll": {
          "type": "string",
          "description": "Relative URL to poll, e.g. /api/v1/jobs/{id}"
        }
      },
      "required": [
        "jobId",
        "status",
        "poll"
      ]
    }
  }
}