{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audiostack/json-schema/audiostack-post-sound-effects-query-request-schema.json",
  "title": "PostSoundEffectsQueryRequest",
  "description": "Request body for sound effects query endpoint.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audiostack-assets-sound-effects-api-openapi.yml#/components/schemas/PostSoundEffectsQueryRequest",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "default": "",
      "title": "Search query",
      "description": "Free text search query passed to the search engine. This is used to search for sound effects with some fuzzy matching.\n"
    },
    "filters": {
      "type": "array",
      "title": "Filters",
      "description": "Filters to apply. Each item is an object with one operator key (e.g. \"in\")\nand a value object with one filter field and its values.\n",
      "items": {
        "type": "object",
        "title": "Sound effects filter",
        "description": "Filter object for sound effect queries.",
        "properties": {
          "in": {
            "oneOf": [
              {
                "type": "object",
                "title": "Alias filter",
                "required": [
                  "alias"
                ],
                "additionalProperties": false,
                "properties": {
                  "alias": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Specify alias filter condition",
                    "description": "Specify the alias filter condition. You can specify multiple accepted values by adding them to the array.\n"
                  }
                }
              },
              {
                "type": "object",
                "title": "Sound effect type filter",
                "required": [
                  "soundEffectType"
                ],
                "additionalProperties": false,
                "properties": {
                  "soundEffectType": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "title": "Supported values for sound effect type",
                      "description": "Types of sound effects available from the AudioStack sound effect library.\n\noneShot: A short, event-driven sound effect.\natmosphere: A longer, ambient background sound.\n",
                      "enum": [
                        "oneShot",
                        "atmosphere"
                      ]
                    },
                    "title": "Specify sound effect type filter condition",
                    "description": "Specify the sound effect type filter condition. You can specify multiple accepted values (e.g. oneShot, atmosphere).\n"
                  }
                }
              },
              {
                "type": "object",
                "title": "Category filter",
                "required": [
                  "category"
                ],
                "additionalProperties": false,
                "properties": {
                  "category": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/items"
                    },
                    "title": "Specify category filter condition",
                    "description": "Specify the UCS category filter condition. You can specify multiple accepted values by adding them to the array.\n"
                  }
                }
              },
              {
                "type": "object",
                "title": "Subcategory filter",
                "required": [
                  "subcategory"
                ],
                "additionalProperties": false,
                "properties": {
                  "subcategory": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/items"
                    },
                    "title": "Specify subcategory filter condition",
                    "description": "Specify the UCS subcategory filter condition. You can specify multiple accepted values by adding them to the array.\n"
                  }
                }
              }
            ]
          },
          "greaterThanOrEquals": {
            "oneOf": [
              {
                "type": "object",
                "title": "Duration filter",
                "required": [
                  "duration"
                ],
                "additionalProperties": false,
                "properties": {
                  "duration": {
                    "type": "number",
                    "title": "Specify duration filter condition",
                    "description": "Specify the duration filter condition as a float value.\n"
                  }
                }
              }
            ]
          },
          "lessThanOrEquals": {
            "oneOf": [
              {
                "type": "object",
                "title": "Duration filter",
                "required": [
                  "duration"
                ],
                "additionalProperties": false,
                "properties": {
                  "duration": {
                    "type": "number",
                    "title": "Specify duration filter condition",
                    "description": "Specify the duration filter condition as a float value.\n"
                  }
                }
              }
            ]
          }
        }
      }
    },
    "forceApplyFilters": {
      "title": "Force apply filters",
      "type": "boolean",
      "default": true,
      "description": "When true, applies filters strictly even with few results. In instances where the filters\nare overly restrictive, you may get fewer results than desired.\n"
    },
    "minimumNumberOfResults": {
      "type": "integer",
      "default": 3,
      "title": "Minimum number of results",
      "description": "In instances where you want to ensure a minimum number of results, you can set this parameter.\nYou must also set forceApplyFilters to false. Filter conditions will be relaxed to attempt to\nreturn the minimum number of results.\n"
    },
    "sort": {
      "title": "Sort field",
      "$ref": "#/$defs/SoundEffectsSortValues"
    },
    "page": {
      "type": "integer",
      "minimum": 1,
      "default": 1,
      "title": "Page number",
      "description": "Page number to return (1-indexed)."
    },
    "pageLimit": {
      "type": "integer",
      "minimum": 1,
      "default": 1000,
      "title": "Page limit",
      "description": "Number of items per page."
    }
  },
  "$defs": {
    "SoundEffectsSortValues": {
      "type": "string",
      "enum": [
        "alias"
      ],
      "description": "Field to sort results by. If omitted, results are sorted by AudioStack's internal sorting."
    }
  }
}