{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An audio file stored inside a user's private atproto space of type ch.indiemusi.alpha.audioLibrary. Not stored in the public repo.",
      "key": "tid",
      "record": {
        "properties": {
          "audio": {
            "accept": [
              "audio/flac",
              "audio/mpeg",
              "audio/wav",
              "audio/aac",
              "audio/ogg"
            ],
            "description": "The raw audio blob, stored inside the space.",
            "type": "blob"
          },
          "byteSize": {
            "description": "Size of the audio file in bytes.",
            "type": "integer"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "duration": {
            "description": "Duration of the audio in seconds.",
            "type": "integer"
          },
          "encoding": {
            "description": "Audio encoding details, e.g. 'FLAC 24-bit / 96kHz stereo'.",
            "maxLength": 255,
            "type": "string"
          },
          "mimeType": {
            "description": "MIME type of the audio blob, e.g. audio/flac.",
            "maxLength": 127,
            "type": "string"
          }
        },
        "required": [
          "mimeType",
          "audio"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ch.indiemusi.alpha.audioFile",
  "lexicon": 1
}
