{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/soundza-com/json-schema/soundza-com-create-sound-request-schema.json",
  "title": "CreateSoundRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/soundza-com-openapi.json#/components/schemas/CreateSoundRequest",
  "type": "object",
  "properties": {
    "upload_key": {
      "type": "string",
      "minLength": 1
    },
    "content_type": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "size_bytes": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "file_name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 150
    },
    "description": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ]
    },
    "creator_description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "ai_content": {
      "type": "string",
      "enum": [
        "AI",
        "NO_AI",
        "SOME_AI"
      ]
    },
    "tags": {
      "default": [],
      "maxItems": 30,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 60
      }
    },
    "bpm": {
      "default": null,
      "anyOf": [
        {
          "type": "number",
          "minimum": 20,
          "maximum": 300
        },
        {
          "type": "null"
        }
      ]
    },
    "musical_key": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "kind": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "ONE_SHOT",
            "LOOP",
            "TRACK",
            "EXCERPT",
            "STEM",
            "SOUND_EFFECT",
            "AMBIENCE"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "vocals": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "NONE",
            "BACKING",
            "LEAD"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "instrument_family": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "DRUMS_PERCUSSION",
            "MELODIC_PERCUSSION",
            "BASS",
            "KEYS_SYNTH",
            "GUITAR",
            "STRINGS_ORCHESTRAL",
            "VOCAL",
            "OTHER"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "role": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "LEAD_MELODY",
            "CHORDS_PROGRESSION",
            "PAD_SUSTAINED",
            "BASSLINE",
            "RHYTHMIC",
            "NOT_APPLICABLE"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "rights_attested": {
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "upload_key",
    "content_type",
    "size_bytes",
    "title",
    "rights_attested"
  ],
  "additionalProperties": false
}