comAtprotoLexiconResolveLexicon top-level constant

Map<String, dynamic> const comAtprotoLexiconResolveLexicon

com.atproto.lexicon.resolveLexicon

Implementation

const comAtprotoLexiconResolveLexicon = <String, dynamic>{
  "lexicon": 1,
  "id": "com.atproto.lexicon.resolveLexicon",
  "defs": {
    "main": {
      "type": "query",
      "description": "Resolves an atproto lexicon (NSID) to a schema.",
      "parameters": {
        "type": "params",
        "required": ["nsid"],
        "properties": {
          "nsid": {
            "type": "string",
            "format": "nsid",
            "description": "The lexicon NSID to resolve.",
          },
        },
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["uri", "cid", "schema"],
          "properties": {
            "cid": {
              "type": "string",
              "format": "cid",
              "description": "The CID of the lexicon schema record.",
            },
            "schema": {
              "type": "ref",
              "description": "The resolved lexicon schema record.",
              "ref": "com.atproto.lexicon.schema#main",
            },
            "uri": {
              "type": "string",
              "format": "at-uri",
              "description": "The AT-URI of the lexicon schema record.",
            },
          },
        },
      },
      "errors": [
        {
          "name": "LexiconNotFound",
          "description": "No lexicon was resolved for the NSID.",
        },
      ],
    },
  },
};