# dev.pcvera.temp.badge.def

> Published by [pcvera.dev](https://lexicon.garden/identity/did:plc:aqspvjgrjpjy3d5rzjudfmw4)

✓ This is the authoritative definition for this NSID.

## Description

Badge definition: metadata plus a reference to PNG artwork stored as a blob on the issuer PDS.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:aqspvjgrjpjy3d5rzjudfmw4/dev.pcvera.temp.badge.def)
- [Documentation](https://lexicon.garden/lexicon/did:plc:aqspvjgrjpjy3d5rzjudfmw4/dev.pcvera.temp.badge.def/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:aqspvjgrjpjy3d5rzjudfmw4/dev.pcvera.temp.badge.def/examples)

## Definitions

### `dev.pcvera.temp.badge.def`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `png` | `blob` | Yes | PNG artwork hosted on the issuer PDS. |
| `title` | `string` | Yes | Short label for the badge. |
| `issuer` | `ref` → `#issuerMetadata` | No |  |
| `createdAt` | `string` (datetime) | Yes | When this definition was first created. |
| `updatedAt` | `string` (datetime) | Yes | When this definition was last updated. |
| `description` | `string` | Yes | Human-readable description of what the badge represents. |

### `dev.pcvera.temp.badge.def#issuerMetadata`

**Type**: `object`

Optional issuer-facing metadata for display in clients.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `siteUrl` | `string` (uri) | No | Optional issuer or campaign page. |
| `displayName` | `string` | No | Name shown next to the badge in UIs. |

## Raw Schema

```json
{
  "id": "dev.pcvera.temp.badge.def",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "title",
          "description",
          "png",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "png": {
            "type": "blob",
            "accept": [
              "image/png"
            ],
            "maxSize": 1048576,
            "description": "PNG artwork hosted on the issuer PDS."
          },
          "title": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "description": "Short label for the badge."
          },
          "issuer": {
            "ref": "#issuerMetadata",
            "type": "ref"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When this definition was first created."
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime",
            "description": "When this definition was last updated."
          },
          "description": {
            "type": "string",
            "maxLength": 5000,
            "description": "Human-readable description of what the badge represents.",
            "maxGraphemes": 2000
          }
        }
      }
    },
    "issuerMetadata": {
      "type": "object",
      "properties": {
        "siteUrl": {
          "type": "string",
          "format": "uri",
          "description": "Optional issuer or campaign page."
        },
        "displayName": {
          "type": "string",
          "maxLength": 200,
          "description": "Name shown next to the badge in UIs.",
          "maxGraphemes": 64
        }
      },
      "description": "Optional issuer-facing metadata for display in clients."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Badge definition: metadata plus a reference to PNG artwork stored as a blob on the issuer PDS."
}
```
