{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-query-result-program-schema.json",
  "title": "QueryResultProgram",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-programs-api-openapi.yml#/components/schemas/QueryResultProgram",
  "type": "object",
  "properties": {
    "elements": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Program"
      }
    },
    "page": {
      "type": "integer"
    },
    "pageSize": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    }
  },
  "$defs": {
    "Program": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the program",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Program name"
        },
        "description": {
          "type": "string",
          "description": "Program description"
        },
        "currentStatus": {
          "type": "string",
          "enum": [
            "Active",
            "Draft",
            "Paused",
            "Completed",
            "Scheduled"
          ],
          "description": "Current program status",
          "readOnly": true
        },
        "scheduledFor": {
          "type": "string",
          "description": "Scheduled execution time (Unix time)"
        },
        "elements": {
          "type": "array",
          "description": "Program step elements",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            }
          }
        },
        "folderId": {
          "type": "string",
          "description": "Containing folder identifier",
          "readOnly": true
        },
        "createdAt": {
          "type": "string",
          "description": "Creation timestamp (Unix time)",
          "readOnly": true
        },
        "updatedAt": {
          "type": "string",
          "description": "Last update timestamp (Unix time)",
          "readOnly": true
        },
        "depth": {
          "type": "string",
          "description": "Level of detail returned",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Asset type in Eloqua",
          "readOnly": true
        }
      }
    }
  }
}