{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hud-ai/json-schema/hud-ai-job-response-schema.json",
  "title": "JobResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hud-ai-jobs-api-openapi.yml#/components/schemas/JobResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "taskset_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Taskset Id"
    },
    "taskset_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Taskset Name"
    },
    "project_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Project Id"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "max_steps": {
      "type": "integer",
      "title": "Max Steps"
    },
    "group_size": {
      "type": "integer",
      "title": "Group Size"
    },
    "max_concurrent": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Concurrent"
    },
    "metadata": {
      "$ref": "#/$defs/JobMetadata-Output"
    },
    "is_remote": {
      "type": "boolean",
      "title": "Is Remote"
    },
    "imported_from": {
      "anyOf": [
        {
          "$ref": "#/$defs/ExternalOrigin"
        },
        {
          "type": "null"
        }
      ]
    },
    "public": {
      "type": "boolean",
      "title": "Public",
      "default": false
    },
    "is_owner": {
      "type": "boolean",
      "title": "Is Owner",
      "default": false
    },
    "can_edit": {
      "type": "boolean",
      "title": "Can Edit",
      "default": false
    },
    "user_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "User Name"
    },
    "user_avatar_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "User Avatar Url"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "project_id",
    "status",
    "max_steps",
    "group_size",
    "is_remote",
    "created_at"
  ],
  "$defs": {
    "ExternalOrigin": {
      "properties": {
        "system": {
          "$ref": "#/$defs/ExternalSystem"
        },
        "external_id": {
          "type": "string",
          "title": "External Id"
        }
      },
      "type": "object",
      "required": [
        "system",
        "external_id"
      ],
      "title": "ExternalOrigin",
      "description": "Where an imported entity comes from: a system and the entity's id in it."
    },
    "ExternalSystem": {
      "type": "string",
      "enum": [
        "harbor"
      ],
      "title": "ExternalSystem",
      "description": "A system HUD imports environments and runs from."
    },
    "JobMetadata-Output": {
      "properties": {
        "resolved_agents": {
          "items": {
            "$ref": "#/$defs/ResolvedAgent"
          },
          "type": "array",
          "title": "Resolved Agents",
          "default": []
        },
        "sdk_agent_params": {
          "additionalProperties": true,
          "type": "object",
          "title": "Sdk Agent Params",
          "default": {}
        },
        "parent_job_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Parent Job Id"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "JobMetadata"
    },
    "ResolvedAgent": {
      "properties": {
        "model_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model Id"
        },
        "model_name": {
          "type": "string",
          "title": "Model Name"
        },
        "sdk_agent_type": {
          "type": "string",
          "title": "Sdk Agent Type"
        }
      },
      "type": "object",
      "required": [
        "model_name",
        "sdk_agent_type"
      ],
      "title": "ResolvedAgent"
    }
  }
}