{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "version": {
      "const": "ridley.audio/1",
      "type": "string"
    },
    "assetId": {
      "type": "string"
    },
    "displayName": {
      "type": "string"
    },
    "sha256": {
      "type": "string"
    },
    "uri": {
      "type": "string"
    },
    "byteLength": {
      "type": "number"
    },
    "mediaType": {
      "anyOf": [
        { "const": "audio/wav", "type": "string" },
        { "const": "audio/mpeg", "type": "string" }
      ]
    },
    "durationSeconds": {
      "type": "number"
    },
    "sampleRate": {
      "type": "number"
    },
    "channels": {
      "anyOf": [
        {
          "const": 1,
          "type": "number"
        },
        {
          "const": 2,
          "type": "number"
        }
      ]
    }
  },
  "required": [
    "version",
    "assetId",
    "displayName",
    "sha256",
    "uri",
    "byteLength",
    "mediaType",
    "durationSeconds",
    "sampleRate",
    "channels"
  ],
  "additionalProperties": false
}
