{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Records of the collections a frame app names in its reads, by their at-uris, each read as no one from its author's PDS (com.atproto.repo.getRecord), checked against its collection's lexicon where HUD resolves one, and kept a minute. One that can't be read, or does not match its lexicon, is missing. In a private instance of the app, the same: these are the public network's records. No auth required; each address asks at most 120 times a minute, with listAppEntries, listAppRecords, getShared and callSharedTool.",
      "errors": [
        {
          "description": "HUD has no frame app of this id.",
          "name": "NotFound"
        },
        {
          "description": "The input is not what the method takes: a record of a collection the app does not name in its reads, among others.",
          "name": "InvalidRequest"
        },
        {
          "description": "This address asked too often in the last minute: ask again in a minute.",
          "name": "RateLimitExceeded"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "missing": {
              "description": "Those not read, as they were asked.",
              "items": {
                "ref": "#missing",
                "type": "ref"
              },
              "maxLength": 100,
              "type": "array"
            },
            "records": {
              "description": "Those read, in the order asked, each by its author's DID.",
              "items": {
                "ref": "place.hud.listAppRecords#record",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "records",
            "missing"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "app": {
            "description": "The app's place.hud.app record.",
            "format": "at-uri",
            "type": "string"
          },
          "uris": {
            "description": "The records, each of a collection the app reads, its authority a DID or a handle.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "maxLength": 100,
            "minLength": 1,
            "type": "array"
          }
        },
        "required": [
          "app",
          "uris"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "missing": {
      "description": "A record that could not be read, or does not match its lexicon, or this server refuses.",
      "properties": {
        "uri": {
          "description": "As it was asked.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    }
  },
  "description": "Public records a frame app reads, by their at-uris.",
  "id": "place.hud.getAppRecords",
  "lexicon": 1
}
