|
1 | 1 | {
|
2 | 2 | "lexicon": 1,
|
3 |
| - "id": "blue.moji.pack.defs", |
| 3 | + "id": "blue.moji.packs.defs", |
4 | 4 | "defs": {
|
5 |
| - "bluemojiPackView": { |
| 5 | + "packViewBasic": { |
6 | 6 | "type": "object",
|
7 |
| - "required": ["uri", "cid", "record", "creator", "indexedAt"], |
| 7 | + "required": ["uri", "cid", "name"], |
8 | 8 | "properties": {
|
9 | 9 | "uri": { "type": "string", "format": "at-uri" },
|
10 | 10 | "cid": { "type": "string", "format": "cid" },
|
11 |
| - "record": { "type": "unknown" }, |
12 |
| - "creator": { |
13 |
| - "type": "ref", |
14 |
| - "ref": "app.bsky.actor.defs#profileViewBasic" |
15 |
| - }, |
16 |
| - "items": { "type": "ref", "ref": "#listViewBasic" }, |
17 |
| - "listItemsSample": { |
18 |
| - "type": "array", |
19 |
| - "maxLength": 12, |
20 |
| - "items": { "type": "ref", "ref": "#listItemView" } |
| 11 | + "name": { "type": "string", "maxLength": 64, "minLength": 1 }, |
| 12 | + "description": { |
| 13 | + "type": "string", |
| 14 | + "maxGraphemes": 300, |
| 15 | + "maxLength": 3000 |
21 | 16 | },
|
22 |
| - "labels": { |
| 17 | + "descriptionFacets": { |
23 | 18 | "type": "array",
|
24 |
| - "items": { "type": "ref", "ref": "com.atproto.label.defs#label" } |
| 19 | + "items": { "type": "ref", "ref": "blue.moji.richtext.facet" } |
25 | 20 | },
|
26 |
| - "indexedAt": { "type": "string", "format": "datetime" } |
27 |
| - } |
28 |
| - }, |
29 |
| - "listViewBasic": { |
30 |
| - "type": "object", |
31 |
| - "required": ["uri", "cid", "name"], |
32 |
| - "properties": { |
33 |
| - "uri": { "type": "string", "format": "at-uri" }, |
34 |
| - "cid": { "type": "string", "format": "cid" }, |
35 |
| - "name": { "type": "string", "maxLength": 64, "minLength": 1 }, |
36 | 21 | "avatar": { "type": "string", "format": "uri" },
|
37 |
| - "listItemCount": { "type": "integer", "minimum": 0 }, |
| 22 | + "itemCount": { "type": "integer", "minimum": 0 }, |
38 | 23 | "labels": {
|
39 | 24 | "type": "array",
|
40 | 25 | "items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
|
41 | 26 | },
|
| 27 | + "viewer": { "type": "ref", "ref": "#packViewerState" }, |
42 | 28 | "indexedAt": { "type": "string", "format": "datetime" }
|
43 | 29 | }
|
44 | 30 | },
|
45 |
| - "listView": { |
| 31 | + "packView": { |
46 | 32 | "type": "object",
|
47 | 33 | "required": ["uri", "cid", "creator", "name", "indexedAt"],
|
48 | 34 | "properties": {
|
49 | 35 | "uri": { "type": "string", "format": "at-uri" },
|
50 | 36 | "cid": { "type": "string", "format": "cid" },
|
51 |
| - "creator": { |
52 |
| - "type": "ref", |
53 |
| - "ref": "app.bsky.actor.defs#profileViewBasic" |
54 |
| - }, |
| 37 | + "creator": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" }, |
55 | 38 | "name": { "type": "string", "maxLength": 64, "minLength": 1 },
|
56 | 39 | "description": {
|
57 | 40 | "type": "string",
|
|
63 | 46 | "items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
|
64 | 47 | },
|
65 | 48 | "avatar": { "type": "string", "format": "uri" },
|
66 |
| - "listItemCount": { "type": "integer", "minimum": 0 }, |
| 49 | + "packItemCount": { "type": "integer", "minimum": 0 }, |
67 | 50 | "labels": {
|
68 | 51 | "type": "array",
|
69 | 52 | "items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
|
70 | 53 | },
|
| 54 | + "viewer": { "type": "ref", "ref": "#packViewerState" }, |
71 | 55 | "indexedAt": { "type": "string", "format": "datetime" }
|
72 | 56 | }
|
73 | 57 | },
|
74 |
| - "listItemView": { |
| 58 | + "packItemView": { |
75 | 59 | "type": "object",
|
76 | 60 | "required": ["uri", "subject"],
|
77 | 61 | "properties": {
|
78 | 62 | "uri": { "type": "string", "format": "at-uri" },
|
79 | 63 | "subject": {
|
80 | 64 | "type": "ref",
|
81 |
| - "ref": "blue.moji.collection.defs#itemView" |
| 65 | + "ref": "blue.moji.collection.item#itemView" |
82 | 66 | }
|
83 | 67 | }
|
| 68 | + }, |
| 69 | + "packViewerState": { |
| 70 | + "type": "object", |
| 71 | + "properties": { |
| 72 | + "savedToCollection": { "type": "boolean" } |
| 73 | + } |
84 | 74 | }
|
85 | 75 | }
|
86 | 76 | }
|
0 commit comments