# place.stream.badge.def

> Published by [did:web:stream.place](https://lexicon.garden/identity/did:web:stream.place)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:stream.place/place.stream.badge.def)
- [Documentation](https://lexicon.garden/lexicon/did:web:stream.place/place.stream.badge.def/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:stream.place/place.stream.badge.def/examples)

## Definitions

### `place.stream.badge.def`

**Type**: `record`

Defines a badge's visual appearance and type. Created by the issuer and referenced by issuance records.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | Display name for this badge. |
| `image` | `blob` | No | Badge icon image. |
| `badgeType` | `string` | Yes | The category of this badge, used for scope and display rules. |
| `createdAt` | `string` (datetime) | Yes |  |
| `description` | `string` | No | Optional description of the badge. |

## Raw Schema

```json
{
  "id": "place.stream.badge.def",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "badgeType",
          "createdAt"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 64,
            "description": "Display name for this badge."
          },
          "image": {
            "type": "blob",
            "accept": [
              "image/png",
              "image/jpeg",
              "image/gif",
              "image/webp"
            ],
            "maxSize": 262144,
            "description": "Badge icon image."
          },
          "badgeType": {
            "type": "string",
            "description": "The category of this badge, used for scope and display rules.",
            "knownValues": [
              "place.stream.badge.defs#vip",
              "place.stream.badge.defs#event"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "description": {
            "type": "string",
            "maxLength": 256,
            "description": "Optional description of the badge."
          }
        }
      },
      "description": "Defines a badge's visual appearance and type. Created by the issuer and referenced by issuance records."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
