# xyz.quasigod.lab.letta.environment

> Published by [quasigod.spaces-alpha.bsky.network](https://lexicon.garden/identity/did:plc:7pezv7mb4agwyktraauhl26g)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7pezv7mb4agwyktraauhl26g/xyz.quasigod.lab.letta.environment)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7pezv7mb4agwyktraauhl26g/xyz.quasigod.lab.letta.environment/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7pezv7mb4agwyktraauhl26g/xyz.quasigod.lab.letta.environment/examples)

## Definitions

### `xyz.quasigod.lab.letta.environment`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `iv` | `string` | Yes | Random 12-byte AEAD nonce, base64url |
| `alg` | `string` | Yes | AEAD algorithm used to seal the blob |
| `deviceId` | `string` | Yes | Stable per-machine device id (deriveListenerInstanceId) |
| `relayUrl` | `string` (uri) | No | Iroh relay the server binds through (public info; discovery/display surface) |
| `createdAt` | `string` (datetime) | Yes |  |
| `updatedAt` | `string` (datetime) | Yes | Last heartbeat re-put; liveness = freshness of this field |
| `ciphertext` | `string` | Yes | A256GCM-sealed JSON blob {t: iroh ticket, r?: relay auth token}, base64url. A leaked ticket is a full remote-access capability, so it is never stored plaintext. |
| `deviceName` | `string` | Yes | Display name, e.g. the hostname or --env-name |
| `protocolVersion` | `string` | Yes | Environment message protocol version |
| `supportedCommands` | `array` | No | Remote commands this server dispatches (SUPPORTED_REMOTE_COMMANDS) |

## Raw Schema

```json
{
  "id": "xyz.quasigod.lab.letta.environment",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "deviceId",
          "deviceName",
          "ciphertext",
          "iv",
          "alg",
          "protocolVersion",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "iv": {
            "type": "string",
            "description": "Random 12-byte AEAD nonce, base64url"
          },
          "alg": {
            "type": "string",
            "description": "AEAD algorithm used to seal the blob",
            "knownValues": [
              "A256GCM"
            ]
          },
          "deviceId": {
            "type": "string",
            "maxLength": 64,
            "description": "Stable per-machine device id (deriveListenerInstanceId)"
          },
          "relayUrl": {
            "type": "string",
            "format": "uri",
            "description": "Iroh relay the server binds through (public info; discovery/display surface)"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime",
            "description": "Last heartbeat re-put; liveness = freshness of this field"
          },
          "ciphertext": {
            "type": "string",
            "description": "A256GCM-sealed JSON blob {t: iroh ticket, r?: relay auth token}, base64url. A leaked ticket is a full remote-access capability, so it is never stored plaintext."
          },
          "deviceName": {
            "type": "string",
            "maxLength": 64,
            "description": "Display name, e.g. the hostname or --env-name"
          },
          "protocolVersion": {
            "type": "string",
            "description": "Environment message protocol version",
            "knownValues": [
              "v2-input"
            ]
          },
          "supportedCommands": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Remote commands this server dispatches (SUPPORTED_REMOTE_COMMANDS)"
          }
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
