{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "hostMode": {
      "description": "Where a member's repos live. polyfill: the AppView hosts them because the member's PDS cannot. migrating: the client is copying them to the PDS, and the AppView stays authoritative until each copy verifies. native: the PDS hosts them and the AppView syncs from it.",
      "knownValues": [
        "polyfill",
        "migrating",
        "native"
      ],
      "type": "string"
    },
    "migrationProgress": {
      "description": "How far a migration has come.",
      "properties": {
        "spacesDone": {
          "description": "How many of those repos have verified on the PDS.",
          "minimum": 0,
          "type": "integer"
        },
        "spacesTotal": {
          "description": "How many spaces hold a repo that has to move.",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "spacesTotal",
        "spacesDone"
      ],
      "type": "object"
    },
    "migrationRecord": {
      "description": "A record to replay on the user's PDS during a migration.",
      "properties": {
        "cid": {
          "description": "The CID of the record or blob.",
          "format": "cid",
          "type": "string"
        },
        "collection": {
          "description": "The record's collection.",
          "format": "nsid",
          "type": "string"
        },
        "rkey": {
          "description": "The record key.",
          "format": "record-key",
          "type": "string"
        },
        "value": {
          "description": "The record itself.",
          "type": "unknown"
        }
      },
      "required": [
        "collection",
        "rkey",
        "cid",
        "value"
      ],
      "type": "object"
    },
    "recordView": {
      "description": "A record in a repo the AppView hosts.",
      "properties": {
        "cid": {
          "description": "The CID of the record or blob.",
          "format": "cid",
          "type": "string"
        },
        "uri": {
          "description": "The record's URI, the same one it keeps after a migration.",
          "format": "at-uri",
          "type": "string"
        },
        "value": {
          "description": "The record itself.",
          "type": "unknown"
        }
      },
      "required": [
        "uri",
        "cid",
        "value"
      ],
      "type": "object"
    }
  },
  "id": "social.colibri.beta.polyfill.defs",
  "lexicon": 1
}
