ai.newnal.mydata.profileTravelDocuments

Structured information about the travel and identity documents the user holds: passports, visas, identity cards and the like, with their number, issuing country and validity. Scans and originals of the documents are kept in profile.legalRecords; the same fact being in both places is not duplication, and this information can be kept without an archive record.

Details · record, key tid
Kindrecord
Record keytid
Authoritymydata.newnal.ai
Commit rev3n2lk5rjzfw23
Indexed
cid bafyreihjade4upotqivastvidrbnssectk7gkd4ul3a4vlgecqfk2sae4e

Checks

Valid
  • large-string defs.entry.properties.notesmaxLength is over 20 KB. Use a blob for content that large.
  • field-name-syntax defs.main.record.properties._metaThe field name _meta should be letters and digits, starting with a letter.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "description": "One travel or identity document.",
      "properties": {
        "issuingCountry": {
          "description": "The country that issued the document, as an ISO 3166-1 alpha-2 code (for example KR).",
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "nameOnDocument": {
          "description": "The holder's name as written on the document.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "notes": {
          "description": "An additional note.",
          "maxGraphemes": 3000,
          "maxLength": 30000,
          "type": "string"
        },
        "number": {
          "description": "The document number.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "status": {
          "description": "The status of the document.",
          "knownValues": [
            "valid",
            "expired",
            "revoked"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "time": {
          "closed": true,
          "description": "The period the document is valid.",
          "refs": [
            "ai.newnal.mydata.defs#instantTime",
            "ai.newnal.mydata.defs#intervalTime"
          ],
          "type": "union"
        },
        "type": {
          "description": "The kind of document.",
          "knownValues": [
            "passport",
            "visa",
            "national_id",
            "residence_permit",
            "driver_license",
            "travel_authorization"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "Structured information about the travel and identity documents the user holds: passports, visas, identity cards and the like, with their number, issuing country and validity. Scans and originals of the documents are kept in profile.legalRecords; the same fact being in both places is not duplication, and this information can be kept without an archive record.",
      "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.profileTravelDocuments",
  "lexicon": 1
}