{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tubearchivist/json-schema/tubearchivist-user-me-config-schema.json",
  "title": "UserMeConfig",
  "description": "serialize user me config",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tubearchivist-openapi.yml#/components/schemas/UserMeConfig",
  "type": "object",
  "properties": {
    "stylesheet": {
      "$ref": "#/$defs/StylesheetEnum"
    },
    "page_size": {
      "type": "integer"
    },
    "sort_by": {
      "$ref": "#/$defs/SortByEnum"
    },
    "sort_order": {
      "$ref": "#/$defs/SortOrderEnum"
    },
    "view_style_home": {
      "$ref": "#/$defs/ViewStyleHomeEnum"
    },
    "view_style_channel": {
      "$ref": "#/$defs/ViewStylePlaylistEnum"
    },
    "view_style_downloads": {
      "$ref": "#/$defs/ViewStylePlaylistEnum"
    },
    "view_style_playlist": {
      "$ref": "#/$defs/ViewStylePlaylistEnum"
    },
    "vid_type_filter": {
      "nullable": true,
      "oneOf": [
        {
          "$ref": "#/$defs/VidTypeFilterEnum"
        },
        {
          "$ref": "#/$defs/NullEnum"
        }
      ]
    },
    "grid_items": {
      "type": "integer",
      "maximum": 7,
      "minimum": 3
    },
    "hide_watched": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "hide_watched_channel": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "hide_watched_playlist": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "file_size_unit": {
      "$ref": "#/$defs/FileSizeUnitEnum"
    },
    "show_ignored_only": {
      "type": "boolean"
    },
    "show_subed_only": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_subed_only_playlists": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "show_help_text": {
      "type": "boolean"
    }
  },
  "required": [
    "file_size_unit",
    "grid_items",
    "hide_watched",
    "hide_watched_channel",
    "hide_watched_playlist",
    "page_size",
    "show_help_text",
    "show_ignored_only",
    "show_subed_only",
    "show_subed_only_playlists",
    "sort_by",
    "sort_order",
    "stylesheet",
    "vid_type_filter",
    "view_style_channel",
    "view_style_downloads",
    "view_style_home",
    "view_style_playlist"
  ],
  "$defs": {
    "FileSizeUnitEnum": {
      "enum": [
        "binary",
        "metric"
      ],
      "type": "string",
      "description": "* `binary` - binary\n* `metric` - metric"
    },
    "NullEnum": {
      "enum": [
        null
      ]
    },
    "SortByEnum": {
      "enum": [
        "published",
        "downloaded",
        "views",
        "likes",
        "duration",
        "mediasize",
        "width",
        "height"
      ],
      "type": "string",
      "description": "* `published` - published\n* `downloaded` - downloaded\n* `views` - views\n* `likes` - likes\n* `duration` - duration\n* `mediasize` - mediasize\n* `width` - width\n* `height` - height"
    },
    "SortOrderEnum": {
      "enum": [
        "asc",
        "desc"
      ],
      "type": "string",
      "description": "* `asc` - asc\n* `desc` - desc"
    },
    "StylesheetEnum": {
      "enum": [
        "dark.css",
        "light.css",
        "matrix.css",
        "midnight.css",
        "custom.css"
      ],
      "type": "string",
      "description": "* `dark.css` - dark.css\n* `light.css` - light.css\n* `matrix.css` - matrix.css\n* `midnight.css` - midnight.css\n* `custom.css` - custom.css"
    },
    "VidTypeFilterEnum": {
      "enum": [
        "videos",
        "streams",
        "shorts"
      ],
      "type": "string",
      "description": "* `videos` - videos\n* `streams` - streams\n* `shorts` - shorts"
    },
    "ViewStyleHomeEnum": {
      "enum": [
        "grid",
        "list",
        "table"
      ],
      "type": "string",
      "description": "* `grid` - grid\n* `list` - list\n* `table` - table"
    },
    "ViewStylePlaylistEnum": {
      "enum": [
        "grid",
        "list"
      ],
      "type": "string",
      "description": "* `grid` - grid\n* `list` - list"
    }
  }
}