{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "While an account's move here is pending (importAccount), bring one of its spaces, as its own server serves it: `meta`, a space it governs (com.atproto.space.exportSpaceMeta's archive), before any repo in it; `repo`, its own repo in a space it wrote in (com.atproto.space.getRepo's archive); or `blob`, one of its files in a space, before the repos that hold it. Only for whoever started the move, and only the account's own.",
      "errors": [
        {
          "name": "NotFound"
        },
        {
          "name": "NotSpaceOwner"
        },
        {
          "name": "InvalidArchive"
        },
        {
          "name": "UnsupportedPolicy"
        }
      ],
      "input": {
        "encoding": "*/*"
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "type": "string"
            },
            "records": {
              "type": "integer"
            },
            "space": {
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "format": "did",
            "type": "string"
          },
          "part": {
            "knownValues": [
              "meta",
              "repo",
              "blob"
            ],
            "type": "string"
          }
        },
        "required": [
          "did",
          "part"
        ],
        "type": "params"
      },
      "type": "procedure"
    }
  },
  "id": "fyi.opensocial.importAccountSpace",
  "lexicon": 1
}
