{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audiostack/json-schema/audiostack-post-sound-templates-query-response-schema.json",
  "title": "PostSoundTemplatesQueryResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audiostack-assets-sound-templates-api-openapi.yml#/components/schemas/PostSoundTemplatesQueryResponse",
  "allOf": [
    {
      "$ref": "#/$defs/0"
    },
    {
      "type": "object",
      "properties": {
        "message": {
          "type": "string",
          "description": "Success message."
        },
        "data": {
          "type": "object",
          "required": [
            "soundTemplates",
            "pageInfo"
          ],
          "properties": {
            "soundTemplates": {
              "minItems": 0,
              "type": "array",
              "items": {
                "$ref": "#/$defs/SoundTemplateResponse"
              }
            },
            "pageInfo": {
              "$ref": "#/$defs/pageInfo"
            }
          }
        }
      },
      "required": [
        "message",
        "data"
      ]
    }
  ],
  "$defs": {
    "SoundTemplateResponse": {
      "type": "object",
      "description": "Sound template item in the query response.",
      "required": [
        "alias",
        "name",
        "soundTemplateId",
        "audioSample",
        "duration",
        "type",
        "meta"
      ],
      "properties": {
        "alias": {
          "type": "string",
          "title": "Sound template alias",
          "description": "The alias of the sound template.\n"
        },
        "name": {
          "type": "string",
          "title": "Sound template name",
          "description": "The name of the sound template.\n"
        },
        "soundTemplateId": {
          "type": "string",
          "title": "Sound template ID",
          "description": "The ID of the sound template.\n"
        },
        "segmentNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Segment names",
          "description": "The names of the segments in the sound template. Currently used by audioform but will be deprecated in the future.\n"
        },
        "audioSample": {
          "type": "string",
          "format": "uri",
          "title": "Audio sample",
          "description": "The audio sample of the sound template.\n"
        },
        "duration": {
          "type": "number",
          "format": "float",
          "title": "Duration in seconds",
          "description": "The duration of the sound template in seconds.\n"
        },
        "type": {
          "oneOf": [
            {
              "type": "string",
              "title": "Sound template types",
              "description": "Sound template visibility in the library (public or private).",
              "enum": [
                "public",
                "private"
              ]
            },
            {
              "type": "string",
              "title": "Non-standard sound template types",
              "description": "Non-standard sound template types."
            }
          ],
          "title": "Type",
          "description": "The type of the sound template. Most templates are either `public` or `private`.\n"
        },
        "meta": {
          "type": "object",
          "title": "Metadata",
          "description": "Additional metadata for the sound template.\n",
          "properties": {
            "bpm": {
              "type": "integer",
              "title": "BPM",
              "description": "The beats per minute of the sound template.\n"
            },
            "genre": {
              "type": "array",
              "items": {
                "type": "string",
                "title": "Genre",
                "description": "Allowed values for sound-template genre.",
                "enum": [
                  "afro",
                  "ambient",
                  "arab",
                  "asian",
                  "blues",
                  "childrenJingle",
                  "classical",
                  "electronicDance",
                  "folkCountry",
                  "funkSoul",
                  "indian",
                  "jazz",
                  "latin",
                  "metal",
                  "pop",
                  "rapHipHop",
                  "reggae",
                  "rnb",
                  "rock",
                  "singerSongwriters",
                  "sound",
                  "soundtrack",
                  "spokenWord"
                ]
              },
              "title": "Genre",
              "description": "The genres of the sound template.\n"
            },
            "instrument": {
              "type": "array",
              "items": {
                "type": "string",
                "title": "Instrument",
                "description": "Allowed values for instruments.",
                "enum": [
                  "accordion",
                  "acousticGuitar",
                  "africanPercussion",
                  "asianFlute",
                  "asianStrings",
                  "banjo",
                  "bass",
                  "bassGuitar",
                  "bells",
                  "bongoConga",
                  "brass",
                  "cello",
                  "celeste",
                  "churchOrgan",
                  "clarinet",
                  "doubleBass",
                  "drumKit",
                  "electricGuitar",
                  "electricOrgan",
                  "electricPiano",
                  "electronicDrums",
                  "flute",
                  "frenchHorn",
                  "glockenspiel",
                  "harp",
                  "harpsichord",
                  "luteOud",
                  "mandolin",
                  "marimba",
                  "oboe",
                  "percussion",
                  "piano",
                  "pizzicato",
                  "sax",
                  "sitar",
                  "steelDrums",
                  "strings",
                  "synth",
                  "tabla",
                  "taiko",
                  "trumpet",
                  "tuba",
                  "ukulele",
                  "vibraphone",
                  "violin",
                  "woodwinds",
                  "xylophone"
                ]
              },
              "title": "Instrument",
              "description": "The instruments used in the sound template.\n"
            },
            "energy": {
              "type": "array",
              "items": {
                "type": "string",
                "title": "Energy",
                "description": "Allowed values for sound-template energy.",
                "enum": [
                  "high",
                  "medium",
                  "low",
                  "variable"
                ]
              },
              "title": "Energy",
              "description": "The energy of the sound template.\n"
            },
            "key": {
              "type": "array",
              "items": {
                "type": "string",
                "title": "Musical Key",
                "description": "Allowed values for sound-template key.",
                "enum": [
                  "abMajor",
                  "aMajor",
                  "aMinor",
                  "bbMajor",
                  "bbMinor",
                  "bMajor",
                  "bMinor",
                  "cMajor",
                  "cMinor",
                  "csMinor",
                  "dbMajor",
                  "dMajor",
                  "dMinor",
                  "dsMinor",
                  "ebMajor",
                  "eMajor",
                  "eMinor",
                  "fMajor",
                  "fMinor",
                  "fsMajor",
                  "fsMinor",
                  "gMajor",
                  "gMinor",
                  "gsMinor"
                ]
              },
              "title": "Key",
              "description": "The key of the sound template.\n"
            },
            "mood": {
              "type": "array",
              "items": {
                "type": "string",
                "title": "Allowed moods",
                "description": "Moods are used to guide sound design recommendation from AudioStack's sound library.",
                "enum": [
                  "aggressive",
                  "calm",
                  "chilled",
                  "dark",
                  "energetic",
                  "epic",
                  "ethereal",
                  "happy",
                  "romantic",
                  "sad",
                  "scary",
                  "sexy",
                  "uplifting"
                ]
              },
              "title": "Mood",
              "description": "The moods of the sound template.\n"
            },
            "tempo": {
              "type": "array",
              "items": {
                "type": "string",
                "title": "Tempo",
                "description": "Allowed values for sound-template tempo.",
                "enum": [
                  "slow",
                  "medium",
                  "fast"
                ]
              },
              "title": "Tempo",
              "description": "The tempo of the sound template.\n"
            },
            "holidays": {
              "type": "array",
              "items": {
                "type": "string",
                "title": "Holidays",
                "description": "The holidays for which the sound template is applicable.",
                "enum": [
                  "Christmas",
                  "Valentines",
                  "Summer",
                  "Easter",
                  "Halloween",
                  "Other"
                ]
              },
              "title": "Holidays",
              "description": "The holidays for which the sound template is applicable.\n"
            }
          }
        }
      }
    }
  }
}