~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
main
48 lines · 1.6 KB Raw History
{
  "lexicon": 1,
  "id": "org.atgrp.internal.migrateExport",
  "defs": {
    "main": {
      "type": "query",
      "description": "On the source host, for the destination of a move migratePrepare started: a part of the group nothing public serves whole. `meta` is what this host keeps of a space as its authority, as a space meta archive (atproto-space-meta): its policy, an org.atgrp.policy; each account's grant beside the policy, as com.atproto.memberspace.member/<did>; and its writers, `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.",
      "parameters": {
        "type": "params",
        "required": ["group", "token", "part"],
        "properties": {
          "group": {
            "type": "string",
            "format": "did"
          },
          "token": {
            "type": "string"
          },
          "part": {
            "type": "string",
            "knownValues": ["meta", "repo", "blobs", "blob"]
          },
          "space": {
            "type": "string",
            "format": "space-ref"
          },
          "cid": {
            "type": "string",
            "format": "cid"
          }
        }
      },
      "output": {
        "encoding": "*/*"
      },
      "errors": [
        {
          "name": "InvalidToken",
          "description": "The token is not migratePrepare's for this group, or its hour is over."
        },
        {
          "name": "BlobNotFound",
          "description": "The group has no file by that CID."
        }
      ]
    }
  }
}