{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One parent's E04 data as the caller may see it: profile, category progress with the missing-items list, skipped and 'not sure' items, story answers and every readable My Data record with its provenance. Members of the home; a general manager sees only the categories dataSharing allows and gets readOnly: true. Parents have no access.",
      "errors": [
        {
          "name": "NotMember"
        },
        {
          "name": "HomeNotFound"
        },
        {
          "name": "ParentNotLinked"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "parent": {
              "ref": "ai.newnal.illi.mydata.defs#parentDataView",
              "type": "ref"
            }
          },
          "required": [
            "parent"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "homeId": {
            "format": "tid",
            "type": "string"
          },
          "slot": {
            "description": "The parent slot, 1 or 2.",
            "maximum": 2,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "homeId",
          "slot"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "ai.newnal.illi.mydata.getParentData",
  "lexicon": 1
}
