{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "InvalidPlaybackToken"
        },
        {
          "name": "LoopRateLimited"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "playbackToken": {
              "description": "Optional. When the service itself served this item it issues a token bound to the viewer and the post, and it is verified here. Surfaces that hydrate from the Bluesky AppView carry no token, so a loop is accepted on proven service-auth identity alone and rate limited per viewer and post. Supply it whenever one was received.",
              "type": "string"
            },
            "post": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "post"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "com.getorbyt.video.defs#loopView",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "id": "com.getorbyt.video.recordLoop",
  "lexicon": 1
}
