{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/samplecut-app/json-schema/samplecut-app-download-schema.json",
  "title": "Download",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/samplecut-app-openapi.yml#/components/schemas/Download",
  "type": "object",
  "required": [
    "id",
    "download_url",
    "expires_at",
    "title",
    "filename",
    "format",
    "full",
    "track_duration_sec",
    "editor_url"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "download_url": {
      "type": "string",
      "format": "uri"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "title": {
      "type": "string"
    },
    "filename": {
      "type": "string"
    },
    "format": {
      "type": "string",
      "enum": [
        "wav",
        "mp3"
      ]
    },
    "full": {
      "type": "boolean",
      "description": "True when this is the whole track."
    },
    "start_sec": {
      "type": "number",
      "description": "Only on a cut section."
    },
    "end_sec": {
      "type": "number",
      "description": "Only on a cut section."
    },
    "track_duration_sec": {
      "type": "number"
    },
    "editor_url": {
      "type": "string",
      "format": "uri",
      "description": "Opens the same clip in the Samplecut editor."
    }
  }
}