# email.atmos.messageStateOperation

> ALPHA. Immutable operation claim created atomically with one message-state revision. Its deterministic key is scoped to the author repository, logical message, and operation ID, so a retry with changed payload collides instead of poisoning the revision graph.

- Kind: record
- Record key: any
- Authority: atmos.email
- Lexicon: 1
- Published by [comail.at](https://lexicon.garden/identity/did:plc:yu6rmwoemqfnmsdkljyvmuhg), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:yu6rmwoemqfnmsdkljyvmuhg/email.atmos.messageStateOperation)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:yu6rmwoemqfnmsdkljyvmuhg/email.atmos.messageStateOperation/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:yu6rmwoemqfnmsdkljyvmuhg/email.atmos.messageStateOperation/analytics)

## Record (`email.atmos.messageStateOperation`)

Type: record · key any

### Properties

- `logicalMessageId` (string, required)
  - Constraints: minLength: 71, maxLength: 71
- `operationId` (string, required)
  - Constraints: minLength: 1, maxLength: 128
- `requestDigest` (string, required): SHA-256 commitment under comail-authority-v3-store-request-v1 or comail-authority-v3-state-mutation-v1 as specified by docs/authority-v3-request-digests.md. An operation-ID retry with any changed precondition or payload must collide at this claim.
  - Constraints: minLength: 71, maxLength: 71
- `revisionRkey` (string, required): Content-committing email.atmos.messageStateRevision record key.
  - Constraints: minLength: 70, maxLength: 70

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "ALPHA. Immutable operation claim created atomically with one message-state revision. Its deterministic key is scoped to the author repository, logical message, and operation ID, so a retry with changed payload collides instead of poisoning the revision graph.",
      "key": "any",
      "record": {
        "properties": {
          "logicalMessageId": {
            "maxLength": 71,
            "minLength": 71,
            "type": "string"
          },
          "operationId": {
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "requestDigest": {
            "description": "SHA-256 commitment under comail-authority-v3-store-request-v1 or comail-authority-v3-state-mutation-v1 as specified by docs/authority-v3-request-digests.md. An operation-ID retry with any changed precondition or payload must collide at this claim.",
            "maxLength": 71,
            "minLength": 71,
            "type": "string"
          },
          "revisionRkey": {
            "description": "Content-committing email.atmos.messageStateRevision record key.",
            "maxLength": 70,
            "minLength": 70,
            "type": "string"
          }
        },
        "required": [
          "logicalMessageId",
          "operationId",
          "requestDigest",
          "revisionRkey"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "email.atmos.messageStateOperation",
  "lexicon": 1
}
```
