{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tubearchivist/json-schema/tubearchivist-notification-schema.json",
  "title": "Notification",
  "description": "serialize notification messages",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tubearchivist-notification-api-openapi.yml#/components/schemas/Notification",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "group": {
      "type": "string"
    },
    "api_start": {
      "type": "boolean"
    },
    "api_stop": {
      "type": "boolean"
    },
    "level": {
      "$ref": "#/$defs/LevelEnum"
    },
    "messages": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "progress": {
      "type": "number",
      "format": "double"
    },
    "command": {
      "$ref": "#/$defs/NotificationCommandEnum"
    }
  },
  "required": [
    "api_start",
    "api_stop",
    "group",
    "id",
    "level",
    "messages",
    "title"
  ],
  "$defs": {
    "LevelEnum": {
      "enum": [
        "info",
        "error"
      ],
      "type": "string",
      "description": "* `info` - info\n* `error` - error"
    },
    "NotificationCommandEnum": {
      "enum": [
        "STOP",
        "KILL"
      ],
      "type": "string",
      "description": "* `STOP` - STOP\n* `KILL` - KILL"
    }
  }
}