{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fleetai-com/json-schema/fleetai-com-seed-gen-review-schema.json",
  "title": "SeedGenReview",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fleetai-com-seed-gen-api-openapi.yml#/components/schemas/SeedGenReview",
  "properties": {
    "runs": {
      "items": {
        "$ref": "#/$defs/SeedGenIndex"
      },
      "type": "array",
      "title": "Runs"
    },
    "events": {
      "items": {
        "$ref": "#/$defs/SeedGenEvent"
      },
      "type": "array",
      "title": "Events"
    },
    "candidates": {
      "items": {
        "$ref": "#/$defs/orchestrator__seed_gen__schemas__SeedGenCandidate"
      },
      "type": "array",
      "title": "Candidates"
    },
    "artifacts": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Artifacts"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "runs",
    "events",
    "candidates",
    "artifacts"
  ],
  "$defs": {
    "SeedGenEvent": {
      "properties": {
        "execution_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Execution Name"
        },
        "event_id": {
          "type": "string",
          "format": "uuid",
          "title": "Event Id"
        },
        "seed_gen_run_id": {
          "type": "string",
          "format": "uuid",
          "title": "Seed Gen Run Id"
        },
        "candidate_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Candidate Id"
        },
        "stage": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Stage"
        },
        "event_type": {
          "type": "string",
          "title": "Event Type"
        },
        "event_time": {
          "type": "string",
          "format": "date-time",
          "title": "Event Time"
        },
        "payload": {
          "additionalProperties": true,
          "type": "object",
          "title": "Payload"
        },
        "revision_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Revision Id"
        },
        "world_candidate_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "World Candidate Id"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "event_id",
        "seed_gen_run_id",
        "event_type",
        "event_time",
        "payload"
      ],
      "title": "SeedGenEvent"
    },
    "SeedGenIndex": {
      "properties": {
        "seed_gen_run_id": {
          "type": "string",
          "format": "uuid",
          "title": "Seed Gen Run Id"
        },
        "team_id": {
          "type": "string",
          "format": "uuid",
          "title": "Team Id"
        },
        "author_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Author Id"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "matg_run_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Matg Run Id"
        },
        "root_fi_instance_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Root Fi Instance Id"
        },
        "ups_project_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ups Project Id"
        },
        "customer": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Customer"
        },
        "spec": {
          "additionalProperties": true,
          "type": "object",
          "title": "Spec"
        },
        "execution_state": {
          "type": "string",
          "title": "Execution State"
        },
        "execution_observed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Execution Observed At"
        },
        "artifact_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Artifact Key"
        },
        "indexed_version_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Indexed Version Id"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "started_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Started At"
        },
        "ended_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ended At"
        },
        "root_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Root Id"
        },
        "candidate_count": {
          "type": "integer",
          "title": "Candidate Count"
        },
        "checkpoint_run": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Checkpoint Run"
        },
        "mapping": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mapping"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "seed_gen_run_id",
        "team_id",
        "title",
        "spec",
        "execution_state",
        "created_at",
        "candidate_count"
      ],
      "title": "SeedGenIndex"
    },
    "orchestrator__seed_gen__schemas__SeedGenCandidate": {
      "properties": {
        "candidate_id": {
          "type": "string",
          "format": "uuid",
          "title": "Candidate Id"
        },
        "seed_gen_run_id": {
          "type": "string",
          "format": "uuid",
          "title": "Seed Gen Run Id"
        },
        "predecessor_candidate_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Predecessor Candidate Id"
        },
        "applications": {
          "additionalProperties": true,
          "type": "object",
          "title": "Applications"
        },
        "manifest_ref": {
          "additionalProperties": true,
          "type": "object",
          "title": "Manifest Ref"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "candidate_id",
        "seed_gen_run_id",
        "applications",
        "manifest_ref",
        "created_at"
      ],
      "title": "SeedGenCandidate"
    }
  }
}