{
  "openapi": "3.0.3",
  "info": {
    "title": "NetPlanner 360 AI Server API",
    "version": "1.0.0",
    "description": "HTTP API for the NetPlanner 360 AI Server. Symbol detection jobs are mounted at /api/symbol-detection. Other features are added as their own /api/<feature> routes. GET /api lists the features on this server."
  },
  "servers": [
    {
      "url": "https://ai-dev.netplanner360.com"
    }
  ],
  "tags": [
    {
      "name": "status",
      "description": "NetPlanner 360 AI Server status, health, and API catalog."
    },
    {
      "name": "symbol-detection",
      "description": "Drawing symbol detection jobs. Other features mount on their own /api/<feature> base path."
    }
  ],
  "paths": {
    "/": {
      "get": {
        "tags": [
          "status"
        ],
        "summary": "HTML status page",
        "description": "Loads GET /api/health and GET /api/symbol-detection/jobs when the page opens and refreshes every 5 seconds.",
        "security": [],
        "responses": {
          "200": {
            "description": "HTML status page.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/docs": {
      "get": {
        "tags": [
          "status"
        ],
        "summary": "Swagger UI",
        "description": "HTML page that loads this API in Swagger UI from GET /swagger.json.",
        "security": [],
        "responses": {
          "200": {
            "description": "Swagger UI page.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/swagger.json": {
      "get": {
        "tags": [
          "status"
        ],
        "summary": "OpenAPI document",
        "description": "Returns this OpenAPI 3.0.3 document.",
        "security": [],
        "responses": {
          "200": {
            "description": "OpenAPI 3.0.3 document.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/health": {
      "get": {
        "tags": [
          "status"
        ],
        "summary": "Server health & worker pool status",
        "description": "Reports server health, uptime, active/queued job counts, and AI worker concurrency allocation.",
        "security": [],
        "responses": {
          "200": {
            "description": "Server is healthy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Health"
                }
              }
            }
          }
        }
      }
    },
    "/api": {
      "get": {
        "tags": [
          "status"
        ],
        "summary": "List mounted API features",
        "description": "Returns the feature routes currently mounted on this server. Symbol detection is /api/symbol-detection.",
        "security": [],
        "responses": {
          "200": {
            "description": "Feature catalog.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "service": {
                      "type": "string",
                      "example": "NetPlanner 360 AI Server"
                    },
                    "features": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ApiFeature"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/symbol-detection": {
      "get": {
        "tags": [
          "symbol-detection"
        ],
        "summary": "Symbol detection feature",
        "description": "Feature root. Job routes are under /api/symbol-detection/jobs.",
        "security": [],
        "responses": {
          "200": {
            "description": "Symbol detection feature descriptor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiFeature"
                }
              }
            }
          }
        }
      }
    },
    "/api/symbol-detection/jobs": {
      "get": {
        "tags": [
          "symbol-detection"
        ],
        "summary": "List active, queued, and recent jobs",
        "description": "Returns queue capacity metrics and the list of tracked jobs.",
        "security": [],
        "responses": {
          "200": {
            "description": "Jobs list and queue metrics.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobsList"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "symbol-detection"
        ],
        "summary": "Start a symbol detection job",
        "description": "Validates the incoming Bearer token via POST /token/validate, then enqueues a drawing job for fileGuid. When the job starts, fetches the Azure Storage URL via GET /api/files/{guid}?returnUrl using the stored Bearer token.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateJobRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Job accepted and started or added to the FIFO queue.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobStatus"
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid fileGuid, non-boolean force, or 400 from token validation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized — POST /token/validate returned 200 with valid: false.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Active workers and FIFO queue are at maximum capacity.",
            "headers": {
              "Retry-After": {
                "description": "Estimated wait time in seconds before retrying.",
                "schema": {
                  "type": "integer",
                  "example": 180
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueFullError"
                }
              }
            }
          },
          "500": {
            "description": "Server or upstream token validation error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/symbol-detection/jobs/{jobId}": {
      "get": {
        "tags": [
          "symbol-detection"
        ],
        "summary": "Get job status",
        "description": "Returns current status, stage, queue position, and result summary for a job.",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/JobIdParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Job status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobStatus"
                }
              }
            }
          },
          "404": {
            "description": "Job not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/symbol-detection/jobs/{jobId}/status": {
      "get": {
        "tags": [
          "symbol-detection"
        ],
        "summary": "Get job status (alias)",
        "description": "Alias for GET /api/symbol-detection/jobs/{jobId}.",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/JobIdParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Job status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobStatus"
                }
              }
            }
          },
          "404": {
            "description": "Job not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/symbol-detection/jobs/{jobId}/symbols": {
      "get": {
        "tags": [
          "symbol-detection"
        ],
        "summary": "Get deduplicated symbols JSON",
        "description": "Reads the job's *-symbols-deduped.json file and returns its contents directly as a JSON response body.",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/JobIdParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Deduplicated symbols JSON keyed by symbol_id.",
            "headers": {
              "X-Job-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-Job-Status": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SymbolsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Job or symbols file not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Job is not yet completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictError"
                }
              }
            }
          }
        }
      }
    },
    "/api/symbol-detection/jobs/{jobId}/usage": {
      "get": {
        "tags": [
          "symbol-detection"
        ],
        "summary": "Get job token usage JSON",
        "description": "Reads the job's *-token-usage.json file and returns its contents directly as a JSON response body.",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/JobIdParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Token usage JSON with totals and per-stage breakdown.",
            "headers": {
              "X-Job-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-Job-Status": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenUsageResponse"
                }
              }
            }
          },
          "404": {
            "description": "Job or token usage file not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Job is still queued or running.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictError"
                }
              }
            }
          }
        }
      }
    },
    "/api/symbol-detection/jobs/{jobId}/logs": {
      "get": {
        "tags": [
          "symbol-detection"
        ],
        "summary": "Get job logs",
        "description": "Returns captured per-job execution logs as JSON (default) or plain text (?format=text).",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/JobIdParam"
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "Return log lines with index >= since.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "tail",
            "in": "query",
            "required": false,
            "description": "Return only the last N log lines.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Set to 'text' to receive plain-text log output.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "text"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Job logs.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobLogs"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Job not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/symbol-detection/jobs/{jobId}/cancel": {
      "post": {
        "tags": [
          "symbol-detection"
        ],
        "summary": "Cancel a queued or running job",
        "description": "Removes a queued job from the FIFO queue or terminates a running job's worker process.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/JobIdParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Job cancelled.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobStatus"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized — Missing, expired, or invalid Bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenValidationError"
                }
              }
            }
          },
          "404": {
            "description": "Job not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Job is already completed, cached, or failed and cannot be cancelled.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictError"
                }
              }
            }
          }
        }
      }
    },
    "/api/symbol-detection/cache/{fileGuid}": {
      "get": {
        "tags": [
          "symbol-detection"
        ],
        "summary": "Check if a fileGuid has a cached run",
        "description": "Checks persisted and in-memory runs to determine whether a completed or cached symbol detection result exists for the given fileGuid.",
        "security": [],
        "parameters": [
          {
            "name": "fileGuid",
            "in": "path",
            "required": true,
            "description": "Drawing file GUID.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "00000000-0000-0000-0000-000000000000"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Cache lookup result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CacheCheckResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid fileGuid parameter.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Platform Bearer token validated against POST /token/validate and used to fetch GET /api/files/{guid}?returnUrl."
      }
    },
    "parameters": {
      "JobIdParam": {
        "name": "jobId",
        "in": "path",
        "required": true,
        "description": "Job UUID.",
        "schema": {
          "type": "string",
          "format": "uuid",
          "example": "00000000-0000-0000-0000-000000000000"
        }
      }
    },
    "schemas": {
      "CreateJobRequest": {
        "type": "object",
        "required": [
          "fileGuid"
        ],
        "properties": {
          "fileGuid": {
            "type": "string",
            "format": "uuid",
            "description": "GUID of the file in the core platform API.",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "force": {
            "type": "boolean",
            "default": false,
            "description": "Optional flag for forced reprocessing.",
            "example": false
          },
          "callbackUrl": {
            "type": "string",
            "format": "uri",
            "description": "Optional webhook URL for job completion notification."
          }
        }
      },
      "ApiFeature": {
        "type": "object",
        "required": [
          "id",
          "name",
          "basePath"
        ],
        "properties": {
          "id": {
            "type": "string",
            "example": "symbol-detection"
          },
          "name": {
            "type": "string",
            "example": "Symbol Detection"
          },
          "description": {
            "type": "string"
          },
          "basePath": {
            "type": "string",
            "example": "/api/symbol-detection"
          },
          "jobsPath": {
            "type": "string",
            "example": "/api/symbol-detection/jobs"
          },
          "activity": {
            "type": "string",
            "enum": [
              "busy",
              "idle"
            ]
          },
          "activeJobs": {
            "type": "integer",
            "minimum": 0
          },
          "queuedJobs": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "Health": {
        "type": "object",
        "required": [
          "status",
          "service",
          "activity",
          "features",
          "uptimeSeconds",
          "activeJobs",
          "maxActiveJobs",
          "queuedJobs",
          "maxQueuedJobs"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok"
            ]
          },
          "service": {
            "type": "string",
            "example": "NetPlanner 360 AI Server"
          },
          "activity": {
            "type": "string",
            "enum": [
              "busy",
              "idle"
            ]
          },
          "features": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiFeature"
            }
          },
          "uptimeSeconds": {
            "type": "integer",
            "minimum": 0
          },
          "activeJobs": {
            "type": "integer",
            "minimum": 0
          },
          "maxActiveJobs": {
            "type": "integer",
            "minimum": 1
          },
          "queuedJobs": {
            "type": "integer",
            "minimum": 0
          },
          "maxQueuedJobs": {
            "type": "integer",
            "minimum": 0
          },
          "maxConcurrentAiWorkersJob": {
            "type": "integer",
            "minimum": 1
          },
          "maxConcurrentAiWorkersTotal": {
            "type": "integer",
            "minimum": 1
          },
          "allocatedAiWorkersPerJob": {
            "type": "integer",
            "minimum": 1
          },
          "totalAllocatedAiWorkers": {
            "type": "integer",
            "minimum": 0
          },
          "completedJobs": {
            "type": "integer",
            "minimum": 0
          },
          "cachedJobs": {
            "type": "integer",
            "minimum": 0
          },
          "failedJobs": {
            "type": "integer",
            "minimum": 0
          },
          "cancelledJobs": {
            "type": "integer",
            "minimum": 0
          },
          "averageJobDurationSeconds": {
            "type": "integer",
            "minimum": 1
          }
        }
      },
      "JobStatus": {
        "type": "object",
        "required": [
          "jobId",
          "status",
          "currentStage",
          "statusUrl",
          "logsUrl",
          "symbolsUrl",
          "usageUrl",
          "cancelUrl"
        ],
        "properties": {
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "fileGuid": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "force": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "completed",
              "cached",
              "failed",
              "cancelled"
            ]
          },
          "currentStage": {
            "type": "string"
          },
          "queuePosition": {
            "type": "integer",
            "minimum": 0
          },
          "estimatedWaitSeconds": {
            "type": "integer",
            "minimum": 0
          },
          "estimatedRemainingSeconds": {
            "type": "integer",
            "minimum": 0,
            "nullable": true
          },
          "stageProgress": {
            "type": "object",
            "nullable": true,
            "properties": {
              "stage": {
                "type": "string"
              },
              "completed": {
                "type": "integer",
                "minimum": 0
              },
              "total": {
                "type": "integer",
                "minimum": 0
              },
              "inFlight": {
                "type": "integer",
                "minimum": 0
              },
              "aiDemandFactor": {
                "type": "number"
              }
            }
          },
          "allocatedAiWorkers": {
            "type": "integer",
            "minimum": 0
          },
          "maxConcurrentAiWorkersJob": {
            "type": "integer",
            "minimum": 1
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "durationMs": {
            "type": "integer",
            "nullable": true,
            "description": "Current elapsed run time in milliseconds while running, or total run time once finished."
          },
          "durationSeconds": {
            "type": "number",
            "nullable": true,
            "description": "Current elapsed run time in seconds while running, or total run time once finished."
          },
          "outputDir": {
            "type": "string",
            "nullable": true
          },
          "callbackUrl": {
            "type": "string"
          },
          "callbackStatus": {
            "type": "string"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "logLinesCount": {
            "type": "integer",
            "minimum": 0
          },
          "resultSummary": {
            "type": "object",
            "nullable": true
          },
          "statusUrl": {
            "type": "string",
            "example": "/api/symbol-detection/jobs/00000000-0000-0000-0000-000000000000"
          },
          "logsUrl": {
            "type": "string",
            "example": "/api/symbol-detection/jobs/00000000-0000-0000-0000-000000000000/logs"
          },
          "symbolsUrl": {
            "type": "string",
            "example": "/api/symbol-detection/jobs/00000000-0000-0000-0000-000000000000/symbols"
          },
          "usageUrl": {
            "type": "string",
            "example": "/api/symbol-detection/jobs/00000000-0000-0000-0000-000000000000/usage"
          },
          "cancelUrl": {
            "type": "string",
            "example": "/api/symbol-detection/jobs/00000000-0000-0000-0000-000000000000/cancel"
          }
        }
      },
      "JobsList": {
        "type": "object",
        "required": [
          "activeJobs",
          "maxActiveJobs",
          "queuedJobs",
          "maxQueuedJobs",
          "jobs"
        ],
        "properties": {
          "activeJobs": {
            "type": "integer",
            "minimum": 0
          },
          "maxActiveJobs": {
            "type": "integer",
            "minimum": 1
          },
          "queuedJobs": {
            "type": "integer",
            "minimum": 0
          },
          "maxQueuedJobs": {
            "type": "integer",
            "minimum": 0
          },
          "averageJobDurationSeconds": {
            "type": "integer",
            "minimum": 1
          },
          "jobs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobStatus"
            }
          }
        }
      },
      "JobLogs": {
        "type": "object",
        "required": [
          "jobId",
          "status",
          "currentStage",
          "totalLines",
          "logs"
        ],
        "properties": {
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string"
          },
          "currentStage": {
            "type": "string"
          },
          "totalLines": {
            "type": "integer",
            "minimum": 0
          },
          "logs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "index": {
                  "type": "integer"
                },
                "timestamp": {
                  "type": "string"
                },
                "stream": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "SymbolsResponse": {
        "type": "object",
        "additionalProperties": {
          "type": "object",
          "properties": {
            "description": {
              "type": "string"
            },
            "count": {
              "type": "integer"
            },
            "bounding_color": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "bounding_thickness": {
              "type": "integer"
            },
            "locations": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "xmin": {
                    "type": "integer"
                  },
                  "ymin": {
                    "type": "integer"
                  },
                  "xmax": {
                    "type": "integer"
                  },
                  "ymax": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        }
      },
      "TokenUsageResponse": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string"
          },
          "totals": {
            "type": "object",
            "properties": {
              "requests": {
                "type": "integer"
              },
              "prompt_tokens": {
                "type": "integer"
              },
              "candidates_tokens": {
                "type": "integer"
              },
              "thoughts_tokens": {
                "type": "integer"
              },
              "total_tokens": {
                "type": "integer"
              }
            }
          },
          "by_stage": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "TokenValidationError": {
        "type": "object",
        "required": [
          "valid",
          "message",
          "error"
        ],
        "properties": {
          "valid": {
            "type": "boolean",
            "example": false
          },
          "message": {
            "type": "string",
            "example": "Token is invalid."
          },
          "error": {
            "type": "string",
            "example": "Token is invalid."
          }
        }
      },
      "ConflictError": {
        "type": "object",
        "required": [
          "error",
          "jobId",
          "status"
        ],
        "properties": {
          "error": {
            "type": "string"
          },
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string"
          },
          "currentStage": {
            "type": "string"
          }
        }
      },
      "QueueFullError": {
        "type": "object",
        "required": [
          "error",
          "retryAfterSeconds",
          "activeWorkers",
          "maxActiveWorkers",
          "queuedJobs",
          "maxQueuedJobs"
        ],
        "properties": {
          "error": {
            "type": "string"
          },
          "retryAfterSeconds": {
            "type": "integer"
          },
          "averageJobDurationSeconds": {
            "type": "integer"
          },
          "activeWorkers": {
            "type": "integer"
          },
          "maxActiveWorkers": {
            "type": "integer"
          },
          "queuedJobs": {
            "type": "integer"
          },
          "maxQueuedJobs": {
            "type": "integer"
          }
        }
      },
      "CacheCheckResponse": {
        "type": "object",
        "required": [
          "fileGuid",
          "hasCachedRun",
          "jobId",
          "status",
          "completedAt",
          "statusUrl",
          "symbolsUrl",
          "usageUrl"
        ],
        "properties": {
          "fileGuid": {
            "type": "string",
            "format": "uuid"
          },
          "hasCachedRun": {
            "type": "boolean"
          },
          "jobId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "statusUrl": {
            "type": "string",
            "nullable": true
          },
          "symbolsUrl": {
            "type": "string",
            "nullable": true
          },
          "usageUrl": {
            "type": "string",
            "nullable": true
          }
        }
      }
    }
  }
}