{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yungle-co/json-schema/yungle-co-transfer-schema.json",
  "title": "Transfer",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yungle-co-openapi.json#/components/schemas/Transfer",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "slug": {
      "type": "string",
      "description": "Part of the share URL. An output only: address the transfer by `id`."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "The link to give recipients. Not live until the transfer is finalized."
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "description": "Currently one of: `active`, `expired`, `infected`, `removed`. Treat unknown values as unknown, not as an error."
    },
    "sizeBytes": {
      "type": "integer",
      "minimum": 0
    },
    "fileCount": {
      "type": "integer",
      "minimum": 0,
      "description": "Present on the single-transfer read."
    },
    "recipients": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "hasPassword": {
      "type": "boolean"
    },
    "e2ee": {
      "type": "boolean",
      "description": "End-to-end encrypted: the working link carries a key Yungle never holds, so `url` alone does not open it."
    },
    "downloadCount": {
      "type": "integer",
      "minimum": 0
    },
    "maxDownloads": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ],
      "description": "Null for unlimited."
    },
    "finalizedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "description": "Null until sent. A draft is not shareable."
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time",
      "description": "Every transfer expires; a paid plan lets you set when."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "slug",
    "url",
    "title",
    "status",
    "sizeBytes",
    "recipients",
    "hasPassword",
    "e2ee",
    "downloadCount",
    "maxDownloads",
    "finalizedAt",
    "expiresAt",
    "createdAt"
  ]
}