# ai.dennery.game.end

> Terminal result of a session.

- Kind: record
- Record key: tid
- Authority: game.dennery.ai
- Lexicon: 1
- Published by [game.dennery.ai](https://lexicon.garden/identity/did:plc:com7beprxcim4u4ezzroudpc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:com7beprxcim4u4ezzroudpc/ai.dennery.game.end)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:com7beprxcim4u4ezzroudpc/ai.dennery.game.end/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:com7beprxcim4u4ezzroudpc/ai.dennery.game.end/analytics)

## Record (`ai.dennery.game.end`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required)
- `finalState` (ref): Optional pointer to the last snapshot.
  - Reference: `com.atproto.repo.strongRef`
- `outcome` (string, required)
  - Constraints: knownValues: abandoned | adjudicated | complete | draw | win
- `reason` (string)
  - Constraints: maxLength: 280
- `session` (ref, required)
  - Reference: `com.atproto.repo.strongRef`
- `winnerDid` (string · did): Present when outcome is win.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Terminal result of a session.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "finalState": {
            "description": "Optional pointer to the last snapshot.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "outcome": {
            "knownValues": [
              "abandoned",
              "adjudicated",
              "complete",
              "draw",
              "win"
            ],
            "type": "string"
          },
          "reason": {
            "maxLength": 280,
            "type": "string"
          },
          "session": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "winnerDid": {
            "description": "Present when outcome is win.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "session",
          "outcome"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.dennery.game.end",
  "lexicon": 1
}
```
