{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "On the source host, for the destination of a move migratePrepare started: a part of the group nothing public serves whole. `meta` is a space's meta archive (as com.atproto.space.exportSpaceMeta serves one), `repo` the group's own repo in a space (as com.atproto.space.getRepo does), `blobs` the list of its files and `blob` one of them. Authorized by migratePrepare's token, for an hour.",
      "errors": [
        {
          "name": "Forbidden"
        },
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "*/*"
      },
      "parameters": {
        "properties": {
          "cid": {
            "format": "cid",
            "type": "string"
          },
          "group": {
            "format": "did",
            "type": "string"
          },
          "leaving": {
            "description": "For a move to a plain PDS: a space's meta archive as a memberspace whose member list is who may use it now, read and write as their roles allow, so that PDS keeps them in without asking this host.",
            "type": "boolean"
          },
          "part": {
            "knownValues": [
              "meta",
              "repo",
              "blobs",
              "blob"
            ],
            "type": "string"
          },
          "space": {
            "format": "space-ref",
            "type": "string"
          },
          "token": {
            "type": "string"
          }
        },
        "required": [
          "group",
          "token",
          "part"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "fyi.opensocial.migrateExport",
  "lexicon": 1
}
