{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fleetai-com/json-schema/fleetai-com-resume-request-schema.json",
  "title": "ResumeRequest",
  "description": "Resume one failed entry with its original launch configuration.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fleetai-com-matg-api-openapi.yml#/components/schemas/ResumeRequest",
  "properties": {
    "pipeline": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9_-]{0,99}$",
      "title": "Pipeline"
    },
    "selector": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$",
      "title": "Selector"
    },
    "environment": {
      "type": "string",
      "enum": [
        "staging",
        "prod"
      ],
      "title": "Environment",
      "default": "staging"
    },
    "workflow_id": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,199}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Workflow Id"
    },
    "idempotency_key": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]*$",
      "title": "Idempotency Key"
    },
    "entry_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Entry Id"
    },
    "saved_author_work": {
      "anyOf": [
        {
          "$ref": "#/$defs/SavedAuthorWorkRef"
        },
        {
          "type": "null"
        }
      ]
    },
    "ups_usecase": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "foundry",
            "matg"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Ups Usecase"
    },
    "ups_project_id": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ups Project Id"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "pipeline",
    "selector",
    "idempotency_key"
  ],
  "$defs": {
    "SavedAuthorWorkRef": {
      "properties": {
        "kind": {
          "type": "string",
          "const": "odyssey_verifier_author_repair_v1",
          "title": "Kind"
        },
        "artifact_key": {
          "type": "string",
          "pattern": "^odyssey/saved-author-work/[a-zA-Z0-9][a-zA-Z0-9._/-]{0,500}$",
          "title": "Artifact Key"
        },
        "version_index": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Version Index"
        },
        "bundle_sha256": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$",
          "title": "Bundle Sha256"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "kind",
        "artifact_key",
        "version_index",
        "bundle_sha256"
      ],
      "title": "SavedAuthorWorkRef",
      "description": "Recover verifier artifacts; evaluation requires separate qualification."
    }
  }
}