{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "description": "One qualification or certification.",
      "properties": {
        "evidence": {
          "description": "List of the AT-URIs of the archive records that are evidence for this qualification or certification (capabilities.certificationRecords).",
          "items": {
            "description": "One item of the list of the AT-URIs of the archive records that are evidence for this qualification or certification (capabilities.certificationRecords).",
            "format": "at-uri",
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        },
        "issuer": {
          "description": "The issuer of the qualification, licence or certification.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "name": {
          "description": "The name of the qualification, licence or certification.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "status": {
          "description": "The validity status of the qualification or certification.",
          "knownValues": [
            "active",
            "expired",
            "revoked",
            "trial",
            "pending"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "time": {
          "closed": true,
          "description": "The period for which the qualification or certification is valid, or the point in time it was obtained.",
          "refs": [
            "ai.newnal.mydata.defs#instantTime",
            "ai.newnal.mydata.defs#intervalTime"
          ],
          "type": "union"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "Structured information about held qualifications, licences and certifications (name, issuer, status, validity period). It is not a structure for keeping the originals of verifiable proofs (DID/VC and the like): original evidence and related material are referenced from the content of a capabilities.certificationRecords record. The same fact being in this information and in that evidence record is not duplication, and this information can be kept without an evidence record. Education history is not kept here (capabilities.education).",
      "key": "tid",
      "record": {
        "properties": {
          "_meta": {
            "ref": "ai.newnal.mydata.defs#recordMeta",
            "type": "ref"
          },
          "data": {
            "closed": true,
            "refs": [
              "#entry"
            ],
            "type": "union"
          }
        },
        "required": [
          "data",
          "_meta"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.newnal.mydata.capabilitiesCredentials",
  "lexicon": 1
}
