{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ship-page/json-schema/ship-page-drop-detail-schema.json",
  "title": "DropDetail",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ship-page-openapi.json#/components/schemas/DropDetail",
  "type": "object",
  "required": [
    "slug",
    "name",
    "url",
    "file_count",
    "bytes",
    "redeploy_count",
    "created_at",
    "updated_at",
    "expires_at",
    "source",
    "password_protected",
    "blocked",
    "thumb",
    "history",
    "live_version",
    "version_count"
  ],
  "properties": {
    "slug": {
      "type": "string"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "file_count": {
      "type": "integer"
    },
    "bytes": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Total size of the live files; null for drops without version history."
    },
    "redeploy_count": {
      "type": "integer"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "source": {
      "type": [
        "string",
        "null"
      ],
      "description": "Creation channel, self-reported via the x-ship-source header."
    },
    "password_protected": {
      "type": "boolean"
    },
    "blocked": {
      "type": "boolean",
      "description": "Taken down: its files can't be downloaded and its versions can't be restored."
    },
    "thumb": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "Screenshot of the drop's root page (1280x800 WebP). Null until captured, and for password-protected or taken-down drops."
    },
    "history": {
      "type": "boolean",
      "description": "The drop keeps versions: true once it was opened in or published through the site editor."
    },
    "live_version": {
      "oneOf": [
        {
          "type": "object",
          "required": [
            "id",
            "number",
            "title",
            "source",
            "created_at"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "number": {
              "type": "integer"
            },
            "title": {
              "type": [
                "string",
                "null"
              ]
            },
            "source": {
              "type": "string",
              "enum": [
                "editor",
                "api",
                "mcp",
                "restore",
                "import"
              ]
            },
            "created_at": {
              "type": "string",
              "format": "date-time"
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "version_count": {
      "type": "integer",
      "description": "Published versions kept: the live one plus earlier ones. 0 without history."
    },
    "forms": {
      "oneOf": [
        {
          "$ref": "#/$defs/DropFormsSummary"
        },
        {
          "type": "null"
        }
      ],
      "description": "Form responses on the drop. Null when the scan found no form that saves responses."
    }
  },
  "$defs": {
    "DropFormsSummary": {
      "type": "object",
      "required": [
        "saving",
        "total",
        "unread",
        "locked"
      ],
      "properties": {
        "saving": {
          "type": "integer",
          "description": "Forms saving responses right now."
        },
        "total": {
          "type": "integer",
          "description": "Responses on the drop."
        },
        "unread": {
          "type": "integer"
        },
        "locked": {
          "type": "integer",
          "description": "Responses the account's plan doesn't show in full."
        }
      }
    }
  }
}