# space.opendeck.deck

> Published by [opendeck.space](https://lexicon.garden/identity/did:plc:5xoilbawtptc3wha4zplgkwd)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:5xoilbawtptc3wha4zplgkwd/space.opendeck.deck)
- [Documentation](https://lexicon.garden/lexicon/did:plc:5xoilbawtptc3wha4zplgkwd/space.opendeck.deck/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:5xoilbawtptc3wha4zplgkwd/space.opendeck.deck/examples)

## Definitions

### `space.opendeck.deck`

**Type**: `record`

A deck of language-learning flashcards.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `copiedFrom` | `string` (at-uri) | No | AT-URI of the deck this was copied from. |
| `createdAt` | `string` (datetime) | Yes |  |
| `readingMode` | `string` | No | Where to show a card reading while studying; absent means with the answer. |
| `shortTermIntervals` | `string` | No | Short-term intervals preset for new and forgotten cards; absent means the owner default. |
| `sourceLang` | `string` | No | BCP-47 language the learner already knows. |
| `summary` | `string` | No | A short description of the deck. |
| `tags` | `array` | No |  |
| `targetLang` | `string` | No | BCP-47 language being learned. |
| `title` | `string` | Yes |  |
| `updatedAt` | `string` (datetime) | No |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A deck of language-learning flashcards.",
      "key": "tid",
      "record": {
        "properties": {
          "copiedFrom": {
            "description": "AT-URI of the deck this was copied from.",
            "format": "at-uri",
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "readingMode": {
            "description": "Where to show a card reading while studying; absent means with the answer.",
            "enum": [
              "off",
              "answer",
              "prompt",
              "hint"
            ],
            "type": "string"
          },
          "shortTermIntervals": {
            "description": "Short-term intervals preset for new and forgotten cards; absent means the owner default.",
            "enum": [
              "auto",
              "quick",
              "balanced",
              "relaxed",
              "spaced"
            ],
            "type": "string"
          },
          "sourceLang": {
            "description": "BCP-47 language the learner already knows.",
            "maxGraphemes": 20,
            "maxLength": 200,
            "type": "string"
          },
          "summary": {
            "description": "A short description of the deck.",
            "maxGraphemes": 2000,
            "maxLength": 20000,
            "type": "string"
          },
          "tags": {
            "items": {
              "maxGraphemes": 64,
              "maxLength": 640,
              "type": "string"
            },
            "maxLength": 20,
            "type": "array"
          },
          "targetLang": {
            "description": "BCP-47 language being learned.",
            "maxGraphemes": 20,
            "maxLength": 200,
            "type": "string"
          },
          "title": {
            "maxGraphemes": 200,
            "maxLength": 2000,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "title",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "space.opendeck.deck",
  "lexicon": 1
}
```
