{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dropto-run/json-schema/dropto-run-deploy-manifest-page-schema.json",
  "title": "DeployManifestPage",
  "description": "Response of `GET /sites/{siteId}/deploys/{deployId}/manifest`.",
  "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/DeployManifestPage",
  "properties": {
    "deployId": {
      "description": "ULID of the deploy the files belong to.",
      "type": "string"
    },
    "fileCount": {
      "description": "Files in the whole deploy, whatever the filter matched.",
      "format": "int32",
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ]
    },
    "files": {
      "description": "This page of matches, ordered by path.",
      "items": {
        "$ref": "#/$defs/ManifestFile"
      },
      "type": "array"
    },
    "filesKept": {
      "description": "Whether the deploy is inside the retention window with its objects still on storage, the same answer\nas `filesKept` on the site's version list. The list is answerable either way — it is read from\nthe row — so this is what separates \"these files are here\" from \"these files were here\".",
      "type": "boolean"
    },
    "matchingBytes": {
      "description": "Their total size, on the same terms.",
      "format": "int64",
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ]
    },
    "matchingFiles": {
      "description": "Files the filter matched, equal to FileCount without one.",
      "format": "int32",
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ]
    },
    "nextCursor": {
      "description": "Path to pass back as `cursor` for the following page, or null when this page was the last.",
      "type": [
        "null",
        "string"
      ]
    },
    "status": {
      "description": "Lowercase status name of that deploy.",
      "type": "string"
    },
    "totalBytes": {
      "description": "Size of the whole deploy, whatever the filter matched.",
      "format": "int64",
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ]
    }
  },
  "required": [
    "deployId",
    "status",
    "fileCount",
    "totalBytes",
    "filesKept",
    "matchingFiles",
    "matchingBytes",
    "files",
    "nextCursor"
  ],
  "type": "object",
  "$defs": {
    "ManifestFile": {
      "description": "One file in a deploy's verified manifest.",
      "properties": {
        "path": {
          "description": "Its path within the site, already normalized and always /-separated.",
          "type": "string"
        },
        "sha256": {
          "description": "SHA-256 of the content, lowercase hex — what the upload was verified against.",
          "type": "string"
        },
        "size": {
          "description": "Its size in bytes.",
          "format": "int64",
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ]
        }
      },
      "required": [
        "path",
        "sha256",
        "size"
      ],
      "type": "object"
    }
  }
}