{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Pages through every record in the requesting user's hosted repo in one space, in record key order per collection, so the client can replay them on its PDS.",
      "errors": [
        {
          "description": "The request has no valid service auth.",
          "name": "AuthRequired"
        },
        {
          "description": "The arguments are inconsistent or malformed beyond schema validation.",
          "name": "InvalidRequest"
        },
        {
          "description": "No space matches the given space reference.",
          "name": "SpaceNotFound"
        },
        {
          "description": "The caller may not write to or read from this repo in the space.",
          "name": "NotAuthorized"
        },
        {
          "description": "The AppView does not host the caller's repo in this space, because it lives on the caller's PDS. Write to the PDS instead.",
          "name": "RepoNotHosted"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "description": "Where the next page starts.",
              "type": "string"
            },
            "records": {
              "description": "The records on this page.",
              "items": {
                "ref": "social.colibri.beta.polyfill.defs#migrationRecord",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "records"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "description": "Where the next page starts.",
            "type": "string"
          },
          "limit": {
            "default": 100,
            "description": "The page size.",
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          },
          "space": {
            "description": "The space holding the repo.",
            "format": "space-ref",
            "type": "string"
          }
        },
        "required": [
          "space"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "social.colibri.beta.polyfill.listForMigration",
  "lexicon": 1
}
