# 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.

- Kind: record
- Record key: tid
- Authority: mydata.newnal.ai
- Lexicon: 1
- Published by [newnal-platform.newnal.id](https://lexicon.garden/identity/did:plc:vciktevzoffubdvdaajz2yp3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:vciktevzoffubdvdaajz2yp3/ai.newnal.mydata.profileTravelDocuments)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:vciktevzoffubdvdaajz2yp3/ai.newnal.mydata.profileTravelDocuments/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:vciktevzoffubdvdaajz2yp3/ai.newnal.mydata.profileTravelDocuments/analytics)

## Record (`ai.newnal.mydata.profileTravelDocuments`)

Type: record · key tid

### Properties

- `_meta` (ref, required)
  - Reference: `ai.newnal.mydata.defs#recordMeta`
- `data` (union, required)
  - One of (closed): `#entry`

## #entry (`ai.newnal.mydata.profileTravelDocuments#entry`)

Type: object

One travel or identity document.

### Properties

- `issuingCountry` (string): The country that issued the document, as an ISO 3166-1 alpha-2 code (for example KR).
  - Constraints: maxLength: 640, maxGraphemes: 64
- `nameOnDocument` (string): The holder's name as written on the document.
  - Constraints: maxLength: 2560, maxGraphemes: 256
- `notes` (string): An additional note.
  - Constraints: maxLength: 30000, maxGraphemes: 3000
- `number` (string): The document number.
  - Constraints: maxLength: 2560, maxGraphemes: 256
- `status` (string): The status of the document.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: valid | expired | revoked
- `time` (union): The period the document is valid.
  - One of (closed): `ai.newnal.mydata.defs#instantTime`, `ai.newnal.mydata.defs#intervalTime`
- `type` (string): The kind of document.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: passport | visa | national_id | residence_permit | driver_license | travel_authorization

## Schema

```json
{
  "$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
}
```
