{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dropto-run/json-schema/dropto-run-complete-deploy-response-schema.json",
  "title": "CompleteDeployResponse",
  "description": "Response of `POST /deploys/{deployId}/complete`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dropto-run-deploys-api-openapi.yml#/components/schemas/CompleteDeployResponse",
  "properties": {
    "deployId": {
      "description": "ULID of the deploy that is now live.",
      "type": "string"
    },
    "docsMode": {
      "description": "Whether the site is read through the documents viewer rather than served as files.\n\nReported for the same reason as Name: the server decides it, from the files this\ndeploy actually holds (`SiteModeDetection`), and a client that guessed from what it uploaded\nwould be wrong exactly when it matters — the web app that went live inside the reader because its\n`index.html` sat one folder too deep, with nothing on the finished card saying so.",
      "type": "boolean"
    },
    "edge": {
      "description": "`live` when the edge has the deploy, `pending` when the deploy is live but the edge write did\nnot land yet — Cloudflare refused it or its API budget is spent. A pending deploy is not a failure: it\nreaches the edge on its own, usually within the `Retry-After` the response carries, and calling\n`complete` again is safe but not needed.",
      "type": "string"
    },
    "fileCount": {
      "description": "Number of verified files.",
      "format": "int32",
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ]
    },
    "modeIsManual": {
      "description": "Whether the owner chose the mode by hand, in which case no deploy changes it.",
      "type": "boolean"
    },
    "name": {
      "description": "What the site is called now, or null when it has none and its subdomain should be shown instead.\n\nReported rather than left for the client to infer, because only the server knows the answer: it\ncleans the name it is sent, and it refuses to overwrite a name the site already had. A client that\nassumed the title it sent is the name now stored would be wrong on every redeploy.\n\nWhat the anonymous flow needs. A site is remembered in the browser before its first deploy starts —\nthe claim token is returned once and storing it cannot wait — so the name is not known at that point\nand arrives here instead.",
      "type": [
        "null",
        "string"
      ]
    },
    "spaMode": {
      "description": "Whether unmatched paths are answered with the site's `index.html`.",
      "type": "boolean"
    },
    "status": {
      "description": "Always `live` on success.",
      "type": "string"
    },
    "totalBytes": {
      "description": "Total verified size in bytes.",
      "format": "int64",
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ]
    },
    "url": {
      "description": "Public URL the site answers on. Content may take up to a minute to reach every edge.",
      "type": "string"
    }
  },
  "required": [
    "deployId",
    "status",
    "url",
    "fileCount",
    "totalBytes",
    "name",
    "spaMode",
    "docsMode",
    "modeIsManual",
    "edge"
  ],
  "type": "object"
}