Skip to content

Commit 6e9dcb6

Browse files
committed
feat: scorepack thumbnail
1 parent 3ea442e commit 6e9dcb6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

SPEC/scorepack.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Each *ScorePack* is a DAG-CBOR encoded object with the following fields:
1818
| `_sig` (Required) | object \| null | see [User Signatures](#user-signatures) |
1919
| `_prev` | [CID](https://github.com/multiformats/cid) or its string representation | points to the previous revision of the *ScorePack* (*ScorePack*s are **immutable**; it helps us track its revision history) |
2020
| `score` (Required) | [CID](https://github.com/multiformats/cid) | points to the mscz score file |
21+
| `thumbnail` | [CID](https://github.com/multiformats/cid) | points to the thumbnail image of the first page |
2122
| `title` (Required) | string | |
2223
| `description` | string | |
2324
| `summary` | string | |

src/core/scorepack/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export class ScorePack {
5454
_prev?: CID | string;
5555

5656
score: CID;
57+
thumbnail?: CID;
5758

5859
title: string;
5960
description?: string;

0 commit comments

Comments
 (0)