# xyz.quasigod.lab.letta.secret

> 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.secret)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7pezv7mb4agwyktraauhl26g/xyz.quasigod.lab.letta.secret/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7pezv7mb4agwyktraauhl26g/xyz.quasigod.lab.letta.secret/examples)

## Definitions

### `xyz.quasigod.lab.letta.secret`

**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 ciphertext |
| `name` | `string` | Yes | Upper-case secret name, e.g. OPENAI_API_KEY |
| `agent` | `string` (at-uri) | Yes | at-uri of the owning agent record |
| `createdAt` | `string` (datetime) | Yes |  |
| `updatedAt` | `string` (datetime) | No |  |
| `ciphertext` | `string` | Yes | AEAD ciphertext of the secret value, base64url. Plaintext never reaches the repo. |

## Raw Schema

```json
{
  "id": "xyz.quasigod.lab.letta.secret",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "agent",
          "ciphertext",
          "iv",
          "alg",
          "createdAt"
        ],
        "properties": {
          "iv": {
            "type": "string",
            "description": "Random 12-byte AEAD nonce, base64url"
          },
          "alg": {
            "type": "string",
            "description": "AEAD algorithm used to seal the ciphertext",
            "knownValues": [
              "A256GCM"
            ]
          },
          "name": {
            "type": "string",
            "maxLength": 64,
            "description": "Upper-case secret name, e.g. OPENAI_API_KEY"
          },
          "agent": {
            "type": "string",
            "format": "at-uri",
            "description": "at-uri of the owning agent record"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime"
          },
          "ciphertext": {
            "type": "string",
            "description": "AEAD ciphertext of the secret value, base64url. Plaintext never reaches the repo."
          }
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
