# app.beaconbits.fragment

> Published by [beaconbits.app](https://lexicon.garden/identity/did:plc:j5ttxzdb5kwo4mcqkmzgvt33)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:j5ttxzdb5kwo4mcqkmzgvt33/app.beaconbits.fragment)
- [Documentation](https://lexicon.garden/lexicon/did:plc:j5ttxzdb5kwo4mcqkmzgvt33/app.beaconbits.fragment/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:j5ttxzdb5kwo4mcqkmzgvt33/app.beaconbits.fragment/examples)

## Definitions

### `app.beaconbits.fragment`

**Type**: `record`

A Beacon Bits event fragment collected by the user

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `source` | `string` | Yes | How the fragment was collected |
| `createdAt` | `string` (datetime) | Yes | Timestamp when the fragment record was written |
| `eventSlug` | `string` | Yes | Event identifier for this fragment |
| `fragmentId` | `string` | Yes | Fragment identifier within the event |
| `collectedAt` | `string` (datetime) | Yes | Timestamp when the fragment was collected |

## Raw Schema

```json
{
  "id": "app.beaconbits.fragment",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "eventSlug",
          "fragmentId",
          "source",
          "collectedAt",
          "createdAt"
        ],
        "properties": {
          "source": {
            "type": "string",
            "description": "How the fragment was collected",
            "knownValues": [
              "check_in",
              "pass_exchange"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp when the fragment record was written"
          },
          "eventSlug": {
            "type": "string",
            "description": "Event identifier for this fragment",
            "maxGraphemes": 128
          },
          "fragmentId": {
            "type": "string",
            "description": "Fragment identifier within the event",
            "maxGraphemes": 128
          },
          "collectedAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp when the fragment was collected"
          }
        }
      },
      "description": "A Beacon Bits event fragment collected by the user"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
