# chat.atagents.agent.sessionKeyGrant

- Kind: record
- Record key: any
- Authority: agent.atagents.chat
- Lexicon: 1
- Published by [brittanyellich.com](https://lexicon.garden/identity/did:plc:4hodhjl2kposuchzvpiviwps), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:4hodhjl2kposuchzvpiviwps/chat.atagents.agent.sessionKeyGrant)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:4hodhjl2kposuchzvpiviwps/chat.atagents.agent.sessionKeyGrant/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:4hodhjl2kposuchzvpiviwps/chat.atagents.agent.sessionKeyGrant/analytics)

## Record (`chat.atagents.agent.sessionKeyGrant`)

Type: record · key any

### Properties

- `grant` (object, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "any",
      "record": {
        "properties": {
          "grant": {
            "properties": {
              "access": {
                "enum": [
                  "recovery",
                  "principal"
                ],
                "maxLength": 16,
                "type": "string"
              },
              "agent": {
                "maxLength": 2048,
                "type": "string"
              },
              "algorithm": {
                "enum": [
                  "AES-256-GCM"
                ],
                "maxLength": 32,
                "type": "string"
              },
              "ciphertext": {
                "maxLength": 64,
                "type": "string"
              },
              "keyId": {
                "maxLength": 32,
                "type": "string"
              },
              "kind": {
                "enum": [
                  "atagents/session-key-grant"
                ],
                "maxLength": 64,
                "type": "string"
              },
              "nonce": {
                "maxLength": 16,
                "type": "string"
              },
              "principal": {
                "maxLength": 2048,
                "type": "string"
              },
              "recipient": {
                "maxLength": 2048,
                "type": "string"
              },
              "space": {
                "maxLength": 2048,
                "type": "string"
              },
              "version": {
                "maximum": 1,
                "minimum": 1,
                "type": "integer"
              }
            },
            "required": [
              "kind",
              "version",
              "algorithm",
              "space",
              "agent",
              "principal",
              "keyId",
              "nonce",
              "access",
              "recipient",
              "ciphertext"
            ],
            "type": "object"
          }
        },
        "required": [
          "grant"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "chat.atagents.agent.sessionKeyGrant",
  "lexicon": 1
}
```
