# me.byjp.pesos.sts2.run

> Published by [byjp.me](https://lexicon.garden/identity/did:plc:ephkzpinhaqcabtkugtbzrwu)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:ephkzpinhaqcabtkugtbzrwu/me.byjp.pesos.sts2.run)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ephkzpinhaqcabtkugtbzrwu/me.byjp.pesos.sts2.run/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ephkzpinhaqcabtkugtbzrwu/me.byjp.pesos.sts2.run/examples)

## Definitions

### `me.byjp.pesos.sts2.run`

**Type**: `record`

A single Slay the Spire 2 run.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `act` | `integer` | No |  |
| `deck` | `array` | No | Card ids in the final deck. |
| `game` | `string` (at-uri) | No | Optional at-uri of the canonical games.gamesgamesgamesgames.actor.game record for StS2. |
| `seed` | `string` | Yes | Run seed as displayed in-game. |
| `floor` | `integer` | No |  |
| `score` | `integer` | No |  |
| `relics` | `array` | No | Relic ids held at run end. |
| `endedAt` | `string` (datetime) | No |  |
| `outcome` | `string` | Yes | How the run ended. |
| `killedBy` | `string` | No | Enemy / event that ended the run, if applicable. |
| `statsRef` | `string` (at-uri) | No | at-uri of the user's games.gamesgamesgamesgames.actor.stats record for StS2, updated alongside this run. |
| `ascension` | `integer` | Yes |  |
| `character` | `string` | Yes | Character class id (e.g. 'ironclad', 'silent'). |
| `startedAt` | `string` (datetime) | Yes |  |
| `updatedAt` | `string` (datetime) | Yes |  |
| `modVersion` | `string` | No |  |
| `gameVersion` | `string` | No |  |
| `durationSeconds` | `integer` | No |  |

## Raw Schema

```json
{
  "id": "me.byjp.pesos.sts2.run",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "outcome",
          "character",
          "ascension",
          "seed",
          "startedAt",
          "updatedAt"
        ],
        "properties": {
          "act": {
            "type": "integer",
            "maximum": 4,
            "minimum": 1
          },
          "deck": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Card ids in the final deck."
          },
          "game": {
            "type": "string",
            "format": "at-uri",
            "description": "Optional at-uri of the canonical games.gamesgamesgamesgames.actor.game record for StS2."
          },
          "seed": {
            "type": "string",
            "description": "Run seed as displayed in-game."
          },
          "floor": {
            "type": "integer",
            "minimum": 0
          },
          "score": {
            "type": "integer",
            "minimum": 0
          },
          "relics": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Relic ids held at run end."
          },
          "endedAt": {
            "type": "string",
            "format": "datetime"
          },
          "outcome": {
            "type": "string",
            "description": "How the run ended.",
            "knownValues": [
              "in_progress",
              "victory",
              "death",
              "abandoned"
            ]
          },
          "killedBy": {
            "type": "string",
            "description": "Enemy / event that ended the run, if applicable."
          },
          "statsRef": {
            "type": "string",
            "format": "at-uri",
            "description": "at-uri of the user's games.gamesgamesgamesgames.actor.stats record for StS2, updated alongside this run."
          },
          "ascension": {
            "type": "integer",
            "maximum": 20,
            "minimum": 0
          },
          "character": {
            "type": "string",
            "description": "Character class id (e.g. 'ironclad', 'silent')."
          },
          "startedAt": {
            "type": "string",
            "format": "datetime"
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime"
          },
          "modVersion": {
            "type": "string"
          },
          "gameVersion": {
            "type": "string"
          },
          "durationSeconds": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "description": "A single Slay the Spire 2 run."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
