# net.anisota.beta.game.pack

> Published by [anisota.net](https://lexicon.garden/identity/did:plc:lcieujcfkv4jx7gehsvok3pr)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:lcieujcfkv4jx7gehsvok3pr/net.anisota.beta.game.pack)
- [Documentation](https://lexicon.garden/lexicon/did:plc:lcieujcfkv4jx7gehsvok3pr/net.anisota.beta.game.pack/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:lcieujcfkv4jx7gehsvok3pr/net.anisota.beta.game.pack/examples)

## Definitions

### `net.anisota.beta.game.pack`

**Type**: `record`

Beta version: Record tracking daily pack openings and streak information

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `streak` | `integer` | Yes | Current daily pack opening streak count |
| `createdAt` | `string` (datetime) | Yes | When the record was created |
| `totalOpens` | `integer` | Yes | Total number of times daily packs have been opened |
| `packHistory` | `array` | No | History of the last few pack openings |
| `lastModified` | `string` (datetime) | No | When the record was last modified |
| `lastOpenTime` | `string` (datetime) | Yes | When daily pack was last opened |
| `longestStreak` | `integer` | No | Longest daily pack opening streak achieved |

### `net.anisota.beta.game.pack#receivedItem`

**Type**: `object`

An item received from a pack opening

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `itemId` | `string` | No | ID of the item received |
| `rarity` | `string` | No | Rarity of the item |
| `quantity` | `integer` | No | Quantity received |

### `net.anisota.beta.game.pack#packHistoryEntry`

**Type**: `object`

A single pack opening entry in the history

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `openTime` | `string` (datetime) | No | When this pack was opened |
| `streakCount` | `integer` | No | Streak count at time of opening |
| `itemsReceived` | `array` | No | Items received from this pack |

## Raw Schema

```json
{
  "id": "net.anisota.beta.game.pack",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "lastOpenTime",
          "totalOpens",
          "streak",
          "createdAt"
        ],
        "properties": {
          "streak": {
            "type": "integer",
            "minimum": 0,
            "description": "Current daily pack opening streak count"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the record was created"
          },
          "totalOpens": {
            "type": "integer",
            "minimum": 0,
            "description": "Total number of times daily packs have been opened"
          },
          "packHistory": {
            "type": "array",
            "items": {
              "ref": "#packHistoryEntry",
              "type": "ref"
            },
            "maxLength": 30,
            "description": "History of the last few pack openings"
          },
          "lastModified": {
            "type": "string",
            "format": "datetime",
            "description": "When the record was last modified"
          },
          "lastOpenTime": {
            "type": "string",
            "format": "datetime",
            "description": "When daily pack was last opened"
          },
          "longestStreak": {
            "type": "integer",
            "minimum": 0,
            "description": "Longest daily pack opening streak achieved"
          }
        }
      },
      "description": "Beta version: Record tracking daily pack openings and streak information"
    },
    "receivedItem": {
      "type": "object",
      "properties": {
        "itemId": {
          "type": "string",
          "description": "ID of the item received"
        },
        "rarity": {
          "type": "string",
          "description": "Rarity of the item"
        },
        "quantity": {
          "type": "integer",
          "description": "Quantity received"
        }
      },
      "description": "An item received from a pack opening"
    },
    "packHistoryEntry": {
      "type": "object",
      "properties": {
        "openTime": {
          "type": "string",
          "format": "datetime",
          "description": "When this pack was opened"
        },
        "streakCount": {
          "type": "integer",
          "description": "Streak count at time of opening"
        },
        "itemsReceived": {
          "type": "array",
          "items": {
            "ref": "#receivedItem",
            "type": "ref"
          },
          "description": "Items received from this pack"
        }
      },
      "description": "A single pack opening entry in the history"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
