{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yungle-co/json-schema/yungle-co-download-links-schema.json",
  "title": "DownloadLinks",
  "description": "Signed download URLs for a transfer or collection.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yungle-co-openapi.json#/components/schemas/DownloadLinks",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "description": "Currently one of: `transfer`, `collection`. Treat unknown values as unknown, not as an error."
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "A collection's title, or your own transfer's title when you ask for its links. Null when resolving a transfer link someone shared with you: a transfer's title is never shown to recipients."
    },
    "message": {
      "type": [
        "string",
        "null"
      ],
      "description": "The sender's note on a transfer."
    },
    "expiresAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "description": "When the transfer or collection itself expires. Null for one that keeps things forever."
    },
    "e2ee": {
      "type": "boolean",
      "description": "End-to-end encrypted: the bytes are ciphertext, and the key is in the `#` part of the link."
    },
    "e2eeMeta": {
      "type": [
        "string",
        "null"
      ]
    },
    "complete": {
      "type": "boolean",
      "description": "False while a transfer is still uploading. `files` lists what has arrived so far; ask again later."
    },
    "zipUrl": {
      "anyOf": [
        {
          "type": "string",
          "format": "uri"
        },
        {
          "type": "null"
        }
      ],
      "description": "Everything in one ZIP (resumable with `Range`). Null for a single file, or while incomplete."
    },
    "urlsExpireAt": {
      "type": "string",
      "format": "date-time",
      "description": "When the signed URLs stop working. Ask again for fresh ones."
    },
    "files": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DownloadLink"
      }
    }
  },
  "required": [
    "kind",
    "title",
    "message",
    "expiresAt",
    "e2ee",
    "complete",
    "zipUrl",
    "urlsExpireAt",
    "files"
  ],
  "$defs": {
    "DownloadLink": {
      "$ref": "#/$defs/items"
    }
  }
}