# app.studynext.apkgShare

> A publicly shared flashcard deck. The record rkey is the source FlashDeck's stable `id`, creating one share per deck; it does not follow the PDS rkey used by app.studynext.decks. Attached images/audio use blob refs in `media`; card text keeps the original file names.

- Kind: record
- Record key: any
- Authority: studynext.app
- Lexicon: 1
- Published by [studynext.app](https://lexicon.garden/identity/did:plc:nstib2qjcu3tyun7cxz4dxcm), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.apkgShare)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.apkgShare/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.apkgShare/analytics)

## Record (`app.studynext.apkgShare`)

Type: record · key any

### Properties

- `cardCount` (integer, required)
  - Constraints: minimum: 0
- `cards` (array, required)
  - Constraints: maxLength: 300
  - `items` (ref)
    - Reference: `#card`
- `createdAt` (string · datetime, required)
- `deckId` (string, required): Source FlashDeck id.
  - Constraints: maxLength: 300
- `description` (string)
  - Constraints: maxLength: 1500
- `media` (array): Attached image/audio files referenced by card text. Importers download each blob and save it under `name`.
  - Constraints: maxLength: 1000
  - `items` (ref)
    - Reference: `#media`
- `tags` (array)
  - Constraints: maxLength: 20
  - `items` (string)
    - Constraints: maxLength: 150
- `title` (string, required)
  - Constraints: maxLength: 600
- `updatedAt` (string · datetime, required)

## #card (`app.studynext.apkgShare#card`)

Type: object

### Properties

- `back` (string, required)
  - Constraints: maxLength: 15000
- `front` (string, required)
  - Constraints: maxLength: 15000
- `tags` (array, required)
  - Constraints: maxLength: 10
  - `items` (string)
    - Constraints: maxLength: 150

## #media (`app.studynext.apkgShare#media`)

Type: object

### Properties

- `blob` (blob, required)
  - Constraints: maxSize: 10485760, accept: image/*, audio/*
- `mimeType` (string)
  - Constraints: maxLength: 100
- `name` (string, required)
  - Constraints: maxLength: 200
- `size` (integer)
  - Constraints: minimum: 0

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "card": {
      "properties": {
        "back": {
          "maxLength": 15000,
          "type": "string"
        },
        "front": {
          "maxLength": 15000,
          "type": "string"
        },
        "tags": {
          "items": {
            "maxLength": 150,
            "type": "string"
          },
          "maxLength": 10,
          "type": "array"
        }
      },
      "required": [
        "front",
        "back",
        "tags"
      ],
      "type": "object"
    },
    "main": {
      "description": "A publicly shared flashcard deck. The record rkey is the source FlashDeck's stable `id`, creating one share per deck; it does not follow the PDS rkey used by app.studynext.decks. Attached images/audio use blob refs in `media`; card text keeps the original file names.",
      "key": "any",
      "record": {
        "properties": {
          "cardCount": {
            "minimum": 0,
            "type": "integer"
          },
          "cards": {
            "items": {
              "ref": "#card",
              "type": "ref"
            },
            "maxLength": 300,
            "type": "array"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "deckId": {
            "description": "Source FlashDeck id.",
            "maxLength": 300,
            "type": "string"
          },
          "description": {
            "maxLength": 1500,
            "type": "string"
          },
          "media": {
            "description": "Attached image/audio files referenced by card text. Importers download each blob and save it under `name`.",
            "items": {
              "ref": "#media",
              "type": "ref"
            },
            "maxLength": 1000,
            "type": "array"
          },
          "tags": {
            "items": {
              "maxLength": 150,
              "type": "string"
            },
            "maxLength": 20,
            "type": "array"
          },
          "title": {
            "maxLength": 600,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "deckId",
          "title",
          "cardCount",
          "cards",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "media": {
      "properties": {
        "blob": {
          "accept": [
            "image/*",
            "audio/*"
          ],
          "maxSize": 10485760,
          "type": "blob"
        },
        "mimeType": {
          "maxLength": 100,
          "type": "string"
        },
        "name": {
          "maxLength": 200,
          "type": "string"
        },
        "size": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "name",
        "blob"
      ],
      "type": "object"
    }
  },
  "id": "app.studynext.apkgShare",
  "lexicon": 1
}
```
