# industries.flow.note.vault

> Published by [flow.industries](https://lexicon.garden/identity/did:plc:p6ruz7wixx55a4nzcmamaued)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:p6ruz7wixx55a4nzcmamaued/industries.flow.note.vault)
- [Documentation](https://lexicon.garden/lexicon/did:plc:p6ruz7wixx55a4nzcmamaued/industries.flow.note.vault/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:p6ruz7wixx55a4nzcmamaued/industries.flow.note.vault/examples)

## Definitions

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

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `keyId` | `string` | Yes |  |
| `wrapped` | `string` | Yes |  |

### `industries.flow.note.vault`

**Type**: `record`

**Key**: `literal:vault`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `access` | `array` | Yes |  |
| `accessSalt` | `string` | Yes |  |
| `blobs` | `array` | Yes |  |
| `root` | `ref` → `#root` | Yes |  |
| `version` | `integer` | Yes |  |

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

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `ciphertext` | `string` | Yes |  |
| `nonce` | `string` | Yes |  |
| `version` | `integer` | Yes |  |

## Raw 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
}
```
