{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beatapi/json-schema/beatapi-effect-list-response-schema.json",
  "title": "EffectListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beatapi-effects-api-openapi.yml#/components/schemas/EffectListResponse",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "object",
      "required": [
        "object",
        "data"
      ],
      "properties": {
        "object": {
          "type": "string",
          "enum": [
            "list"
          ]
        },
        "data": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Effect"
          }
        }
      }
    }
  },
  "$defs": {
    "Effect": {
      "type": "object",
      "required": [
        "id",
        "object",
        "name",
        "description",
        "output_type",
        "category",
        "tags",
        "input",
        "options",
        "preview",
        "version",
        "status"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "object": {
          "type": "string",
          "enum": [
            "effect"
          ]
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "output_type": {
          "type": "string",
          "enum": [
            "image",
            "video"
          ]
        },
        "category": {
          "type": "string"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "input": {
          "type": "object",
          "required": [
            "images_min",
            "images_max",
            "accepted_types"
          ],
          "properties": {
            "images_min": {
              "type": "integer",
              "minimum": 1
            },
            "images_max": {
              "type": "integer",
              "minimum": 1
            },
            "accepted_types": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "image/jpeg",
                  "image/png",
                  "image/webp"
                ]
              }
            },
            "max_size_mb": {
              "type": "integer",
              "minimum": 1,
              "description": "Maximum downloaded bytes per input image. When omitted, BeatAPI enforces 50 MB."
            },
            "max_dimension_px": {
              "type": "integer",
              "minimum": 1,
              "description": "Maximum decoded width or height. BeatAPI inspects the actual image header before charging."
            },
            "subject_requirements": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "options": {
          "type": "object",
          "properties": {
            "aspect_ratios": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "resolutions": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "duration_seconds": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "bgm": {
              "type": "boolean"
            },
            "seed": {
              "type": "boolean"
            }
          }
        },
        "preview": {
          "type": "object",
          "required": [
            "cover_url",
            "media_url"
          ],
          "properties": {
            "cover_url": {
              "type": [
                "string",
                "null"
              ],
              "format": "uri"
            },
            "media_url": {
              "type": [
                "string",
                "null"
              ],
              "format": "uri"
            }
          }
        },
        "version": {
          "type": "integer",
          "minimum": 1
        },
        "status": {
          "type": "string",
          "enum": [
            "testing",
            "active",
            "paused"
          ]
        }
      }
    }
  }
}