# com.derakkuma.chart

> Published by [derakkuma.com](https://lexicon.garden/identity/did:plc:4uoc2as443j2fg2f6xfsogqs)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:4uoc2as443j2fg2f6xfsogqs/com.derakkuma.chart)
- [Documentation](https://lexicon.garden/lexicon/did:plc:4uoc2as443j2fg2f6xfsogqs/com.derakkuma.chart/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:4uoc2as443j2fg2f6xfsogqs/com.derakkuma.chart/examples)

## Definitions

### `com.derakkuma.chart`

**Type**: `record`

Canonical maimai chart metadata linked to a canonical Derakkuma song

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `song` | `ref` → `com.atproto.repo.strongRef` | Yes |  |
| `type` | `string` | Yes |  |
| `level` | `string` | Yes |  |
| `songId` | `string` | Yes |  |
| `regions` | `ref` → `#regions` | No |  |
| `version` | `string` | No |  |
| `updatedAt` | `string` (datetime) | Yes |  |
| `difficulty` | `string` | Yes |  |
| `levelValue` | `string` | No |  |
| `noteCounts` | `ref` → `#noteCounts` | No |  |
| `noteDesigner` | `string` | No |  |
| `internalLevel` | `string` | No |  |
| `internalLevelValue` | `string` | No |  |

### `com.derakkuma.chart#regions`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cn` | `boolean` | No |  |
| `jp` | `boolean` | No |  |
| `usa` | `boolean` | No |  |
| `intl` | `boolean` | No |  |

### `com.derakkuma.chart#noteCounts`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tap` | `integer` | No |  |
| `hold` | `integer` | No |  |
| `break` | `integer` | No |  |
| `slide` | `integer` | No |  |
| `total` | `integer` | No |  |
| `touch` | `integer` | No |  |

## Raw Schema

```json
{
  "id": "com.derakkuma.chart",
  "defs": {
    "main": {
      "key": "any",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "song",
          "songId",
          "type",
          "difficulty",
          "level",
          "updatedAt"
        ],
        "properties": {
          "song": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "type": {
            "enum": [
              "std",
              "dx",
              "utage"
            ],
            "type": "string"
          },
          "level": {
            "type": "string",
            "maxLength": 8
          },
          "songId": {
            "type": "string",
            "maxLength": 256
          },
          "regions": {
            "ref": "#regions",
            "type": "ref"
          },
          "version": {
            "type": "string",
            "maxLength": 128
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime"
          },
          "difficulty": {
            "type": "string",
            "maxLength": 32
          },
          "levelValue": {
            "type": "string",
            "maxLength": 16
          },
          "noteCounts": {
            "ref": "#noteCounts",
            "type": "ref"
          },
          "noteDesigner": {
            "type": "string",
            "maxLength": 128
          },
          "internalLevel": {
            "type": "string",
            "maxLength": 16
          },
          "internalLevelValue": {
            "type": "string",
            "maxLength": 16
          }
        }
      },
      "description": "Canonical maimai chart metadata linked to a canonical Derakkuma song"
    },
    "regions": {
      "type": "object",
      "properties": {
        "cn": {
          "type": "boolean"
        },
        "jp": {
          "type": "boolean"
        },
        "usa": {
          "type": "boolean"
        },
        "intl": {
          "type": "boolean"
        }
      }
    },
    "noteCounts": {
      "type": "object",
      "properties": {
        "tap": {
          "type": "integer",
          "minimum": 0
        },
        "hold": {
          "type": "integer",
          "minimum": 0
        },
        "break": {
          "type": "integer",
          "minimum": 0
        },
        "slide": {
          "type": "integer",
          "minimum": 0
        },
        "total": {
          "type": "integer",
          "minimum": 0
        },
        "touch": {
          "type": "integer",
          "minimum": 0
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
