# industries.flow.note.vault

- Kind: record
- Record key: literal:vault
- Authority: note.flow.industries
- Lexicon: 1
- Published by [flow.industries](https://lexicon.garden/identity/did:plc:p6ruz7wixx55a4nzcmamaued), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:p6ruz7wixx55a4nzcmamaued/industries.flow.note.vault)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:p6ruz7wixx55a4nzcmamaued/industries.flow.note.vault/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:p6ruz7wixx55a4nzcmamaued/industries.flow.note.vault/analytics)

## Record (`industries.flow.note.vault`)

Type: record · key literal:vault

### Properties

- `access` (array, required)
  - Constraints: minLength: 16, maxLength: 16
  - `items` (ref)
    - Reference: `#accessSlot`
- `accessSalt` (string, required)
  - Constraints: minLength: 43, maxLength: 43
- `blobs` (array, required)
  - Constraints: minLength: 1, maxLength: 128
  - `items` (blob)
    - Constraints: maxSize: 4194304, accept: application/octet-stream
- `root` (ref, required)
  - Reference: `#root`
- `version` (integer, required)
  - Constraints: const: 2

## #accessSlot (`industries.flow.note.vault#accessSlot`)

Type: object

### Properties

- `keyId` (string, required)
  - Constraints: minLength: 43, maxLength: 43
- `wrapped` (string, required)
  - Constraints: minLength: 150, maxLength: 150

## #root (`industries.flow.note.vault#root`)

Type: object

### Properties

- `ciphertext` (string, required)
  - Constraints: minLength: 87366, maxLength: 87366
- `nonce` (string, required)
  - Constraints: minLength: 16, maxLength: 16
- `version` (integer, required)
  - Constraints: const: 2

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "accessSlot": {
      "properties": {
        "keyId": {
          "maxLength": 43,
          "minLength": 43,
          "type": "string"
        },
        "wrapped": {
          "maxLength": 150,
          "minLength": 150,
          "type": "string"
        }
      },
      "required": [
        "keyId",
        "wrapped"
      ],
      "type": "object"
    },
    "main": {
      "key": "literal:vault",
      "record": {
        "properties": {
          "access": {
            "items": {
              "ref": "#accessSlot",
              "type": "ref"
            },
            "maxLength": 16,
            "minLength": 16,
            "type": "array"
          },
          "accessSalt": {
            "maxLength": 43,
            "minLength": 43,
            "type": "string"
          },
          "blobs": {
            "items": {
              "accept": [
                "application/octet-stream"
              ],
              "maxSize": 4194304,
              "type": "blob"
            },
            "maxLength": 128,
            "minLength": 1,
            "type": "array"
          },
          "root": {
            "ref": "#root",
            "type": "ref"
          },
          "version": {
            "const": 2,
            "type": "integer"
          }
        },
        "required": [
          "version",
          "accessSalt",
          "access",
          "root",
          "blobs"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "root": {
      "properties": {
        "ciphertext": {
          "maxLength": 87366,
          "minLength": 87366,
          "type": "string"
        },
        "nonce": {
          "maxLength": 16,
          "minLength": 16,
          "type": "string"
        },
        "version": {
          "const": 2,
          "type": "integer"
        }
      },
      "required": [
        "version",
        "nonce",
        "ciphertext"
      ],
      "type": "object"
    }
  },
  "id": "industries.flow.note.vault",
  "lexicon": 1
}
```
