{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ditto-audio/json-schema/ditto-audio-presign-source-dto-schema.json",
  "title": "PresignSourceDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ditto-audio-reader-api-openapi.yml#/components/schemas/PresignSourceDto",
  "type": "object",
  "properties": {
    "fileName": {
      "type": "string"
    },
    "contentType": {
      "type": "string"
    },
    "contentHash": {
      "type": "string",
      "description": "sha-256 of the file, lowercase hex. When the bytes are already in cloud storage the response is `alreadyUploaded: true` and you skip the PUT. Required once the audiobook has a stored source: only the same hash is accepted."
    }
  },
  "required": [
    "fileName"
  ]
}