{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/masko-ai/json-schema/masko-ai-update-settings-body-schema.json",
  "title": "UpdateSettingsBody",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/masko-ai-openapi.json#/components/schemas/UpdateSettingsBody",
  "type": "object",
  "properties": {
    "publish_params": {
      "type": "object",
      "properties": {
        "image_exports": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "sources": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "original",
                  "transparent",
                  "sticker"
                ]
              },
              "minItems": 1,
              "maxItems": 3
            },
            "formats": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "png",
                  "webp"
                ]
              },
              "minItems": 1,
              "maxItems": 2
            },
            "sizes": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 32,
                "maximum": 2048
              },
              "minItems": 1,
              "maxItems": 5
            }
          },
          "required": [
            "enabled",
            "sources",
            "formats",
            "sizes"
          ],
          "additionalProperties": false
        },
        "prores_exports": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            }
          },
          "required": [
            "enabled"
          ],
          "additionalProperties": false,
          "description": "Automatically create original-delivery-size ProRes 4444 MOV files with alpha after transparent animations finish. Disabled by default."
        },
        "mkpk_exports": {
          "type": "object",
          "properties": {
            "screen_width": {
              "type": "integer",
              "minimum": 16,
              "maximum": 1024,
              "description": "Screen the pack is made for; the frames are centred on it. Set with screen_height. Defaults to the frame size."
            },
            "screen_height": {
              "type": "integer",
              "minimum": 16,
              "maximum": 1024
            },
            "fps": {
              "type": "integer",
              "minimum": 1,
              "maximum": 60,
              "description": "Frames per second. Defaults to 24."
            },
            "quality": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "description": "JPEG quality from 1 to 100. Defaults to 75."
            },
            "background_color": {
              "type": "string",
              "pattern": "^#[0-9a-fA-F]{6}$",
              "description": "Colour behind the mascot, as #RRGGBB. Defaults to black."
            },
            "enabled": {
              "type": "boolean"
            },
            "size": {
              "type": "integer",
              "minimum": 32,
              "maximum": 1024,
              "description": "Frame width in pixels, a multiple of 16. Required when enabled."
            }
          },
          "required": [
            "enabled"
          ],
          "additionalProperties": false,
          "description": "Automatically create one .mkpk pack (ESP32 Masko SDK) per forward animation once its transparent video exists, all with the same width and settings. Disabled by default."
        },
        "animation_sizes": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "description": "Whether animation size variants are generated."
            },
            "sizes": {
              "type": "array",
              "items": {
                "type": "number"
              },
              "description": "Up to 2 smaller pixel widths to generate, from 32 to 719. Every animation already gets its 720 px files, so 720 and larger values are ignored. Common values: 480, 360, 240, 128."
            }
          },
          "required": [
            "enabled",
            "sizes"
          ]
        }
      },
      "description": "Export settings. prores_exports enables original-size ProRes 4444 with alpha for future transparent animations. mkpk_exports makes one .mkpk pack (ESP32 Masko SDK) per future forward animation, all with the same width, screen, frames per second, quality and background colour. image_exports applies to future image completions. animation_sizes retains existing automatic video export behavior, including scheduling existing videos when settings change. Use POST /v1/mascots/:id/exports for explicit backfill."
    },
    "force_refresh": {
      "type": "boolean"
    }
  }
}