{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Proxies a video from a link embed through the AppView, so the viewer's address never reaches the origin. The URL comes signed in an embed view, which lets a video element load it without a bearer header. The origin's content type must be an allowed video type. Supports HTTP range requests.",
      "errors": [
        {
          "description": "url, exp or sig is missing or malformed.",
          "name": "InvalidRequest"
        },
        {
          "description": "The signature is invalid or expired.",
          "name": "Forbidden"
        },
        {
          "description": "The origin could not be reached or answered with an error.",
          "name": "NotFetchable"
        },
        {
          "description": "The origin served something other than an allowed video type.",
          "name": "UnsupportedImage"
        }
      ],
      "output": {
        "encoding": "video/*"
      },
      "parameters": {
        "properties": {
          "exp": {
            "description": "Unix time in seconds after which the link stops working.",
            "type": "integer"
          },
          "sig": {
            "description": "Signature over the kind, url and exp, issued by this AppView.",
            "type": "string"
          },
          "url": {
            "description": "The video on the origin.",
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "url",
          "exp",
          "sig"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "social.colibri.beta.embed.getVideo",
  "lexicon": 1
}
