{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "ingest": {
      "description": "An ingest URL for a Streamplace station.",
      "properties": {
        "type": {
          "description": "The type of ingest endpoint, currently 'rtmp' and 'whip' are supported.",
          "type": "string"
        },
        "url": {
          "description": "The URL of the ingest endpoint.",
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "type",
        "url"
      ],
      "type": "object"
    },
    "problem": {
      "description": "Something the streamer should fix about how they're connected.",
      "properties": {
        "code": {
          "description": "Stable identifier for the kind of problem.",
          "knownValues": [
            "deprecated_ingest_host"
          ],
          "type": "string"
        },
        "link": {
          "description": "Where to read more.",
          "format": "uri",
          "type": "string"
        },
        "message": {
          "description": "What's wrong and how to fix it, for the streamer.",
          "type": "string"
        },
        "severity": {
          "knownValues": [
            "error",
            "warning",
            "info"
          ],
          "type": "string"
        }
      },
      "required": [
        "code",
        "message",
        "severity"
      ],
      "type": "object"
    },
    "problems": {
      "description": "The problems a node currently sees with how a streamer is connected to it, sent over the livestream websocket whenever they change. An empty list clears earlier ones.",
      "properties": {
        "problems": {
          "items": {
            "ref": "#problem",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "problems"
      ],
      "type": "object"
    }
  },
  "id": "place.stream.ingest.defs",
  "lexicon": 1
}
