@standard-reader/lexicons 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/lexicons/app/standard-reader/defs.defs.d.ts +51 -51
- package/dist/lexicons/app/standard-reader/defs.defs.d.ts.map +1 -1
- package/dist/lexicons/app/standard-reader/defs.defs.js +98 -98
- package/dist/lexicons/app/standard-reader/defs.defs.js.map +1 -1
- package/dist/lexicons/app/standard-reader/getList.defs.d.ts +4 -4
- package/dist/lexicons/app/standard-reader/getList.defs.js +2 -2
- package/dist/lexicons/app/standard-reader/getList.defs.js.map +1 -1
- package/dist/lexicons/app/standard-reader/getPublication.defs.d.ts +4 -4
- package/dist/lexicons/app/standard-reader/getPublication.defs.js +2 -2
- package/dist/lexicons/app/standard-reader/getPublication.defs.js.map +1 -1
- package/dist/lexicons/app/standard-reader/getTagFeed.defs.d.ts +4 -4
- package/dist/lexicons/app/standard-reader/getTagFeed.defs.js +1 -1
- package/dist/lexicons/app/standard-reader/getTagFeed.defs.js.map +1 -1
- package/dist/lexicons/app/standard-reader/labeler/subscription.defs.d.ts +54 -0
- package/dist/lexicons/app/standard-reader/labeler/subscription.defs.d.ts.map +1 -1
- package/dist/lexicons/app/standard-reader/labeler/subscription.defs.js +2 -0
- package/dist/lexicons/app/standard-reader/labeler/subscription.defs.js.map +1 -1
- package/dist/lexicons/app/standard-reader/labeler.d.ts +0 -1
- package/dist/lexicons/app/standard-reader/labeler.d.ts.map +1 -1
- package/dist/lexicons/app/standard-reader/labeler.js +0 -1
- package/dist/lexicons/app/standard-reader/labeler.js.map +1 -1
- package/dist/lexicons/app/standard-reader/resolveHandle.defs.d.ts +8 -8
- package/dist/lexicons/app/standard-reader/resolveHandle.defs.js +2 -2
- package/dist/lexicons/app/standard-reader/resolveHandle.defs.js.map +1 -1
- package/dist/lexicons/app/standard-reader/searchDocuments.defs.d.ts +4 -4
- package/dist/lexicons/app/standard-reader/searchDocuments.defs.js +1 -1
- package/dist/lexicons/app/standard-reader/searchDocuments.defs.js.map +1 -1
- package/dist/lexicons/app/standard-reader/searchPublications.defs.d.ts +4 -4
- package/dist/lexicons/app/standard-reader/searchPublications.defs.js +1 -1
- package/dist/lexicons/app/standard-reader/searchPublications.defs.js.map +1 -1
- package/dist/lexicons/app/standard-reader/sidebarPref.defs.d.ts +189 -13
- package/dist/lexicons/app/standard-reader/sidebarPref.defs.d.ts.map +1 -1
- package/dist/lexicons/app/standard-reader/sidebarPref.defs.js +12 -1
- package/dist/lexicons/app/standard-reader/sidebarPref.defs.js.map +1 -1
- package/package.json +3 -2
- package/src/index.ts +12 -1
- package/src/lexicons/app/standard-reader/defs.defs.ts +149 -149
- package/src/lexicons/app/standard-reader/getList.defs.ts +2 -2
- package/src/lexicons/app/standard-reader/getPublication.defs.ts +2 -2
- package/src/lexicons/app/standard-reader/getTagFeed.defs.ts +1 -1
- package/src/lexicons/app/standard-reader/labeler/subscription.defs.ts +8 -0
- package/src/lexicons/app/standard-reader/labeler.ts +0 -1
- package/src/lexicons/app/standard-reader/resolveHandle.defs.ts +2 -2
- package/src/lexicons/app/standard-reader/searchDocuments.defs.ts +1 -1
- package/src/lexicons/app/standard-reader/searchPublications.defs.ts +1 -1
- package/src/lexicons/app/standard-reader/sidebarPref.defs.ts +40 -3
- package/dist/lexicons/app/standard-reader/labeler/service.d.ts +0 -3
- package/dist/lexicons/app/standard-reader/labeler/service.d.ts.map +0 -1
- package/dist/lexicons/app/standard-reader/labeler/service.defs.d.ts +0 -133
- package/dist/lexicons/app/standard-reader/labeler/service.defs.d.ts.map +0 -1
- package/dist/lexicons/app/standard-reader/labeler/service.defs.js +0 -39
- package/dist/lexicons/app/standard-reader/labeler/service.defs.js.map +0 -1
- package/dist/lexicons/app/standard-reader/labeler/service.js +0 -6
- package/dist/lexicons/app/standard-reader/labeler/service.js.map +0 -1
- package/src/lexicons/app/standard-reader/labeler/service.defs.ts +0 -75
- package/src/lexicons/app/standard-reader/labeler/service.ts +0 -6
|
@@ -1,24 +1,40 @@
|
|
|
1
1
|
import { l } from '@atproto/lex-schema';
|
|
2
2
|
declare const $nsid = "app.standard-reader.sidebarPref";
|
|
3
3
|
export { $nsid };
|
|
4
|
-
/** A reader's personal sidebar preferences: the
|
|
4
|
+
/** A reader's personal sidebar preferences: the top-level arrangement of list groups and ungrouped subscriptions (one level deep), which groups are collapsed, how automatic sort orders subscriptions, and which primary nav items are hidden. A singleton record (rkey `self`). */
|
|
5
5
|
type Main = {
|
|
6
6
|
$type: 'app.standard-reader.sidebarPref';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Legacy: ordered AT URIs of the reader's list groups (own + saved), used as a fallback top-level list order only while `treeOrder` is empty. Superseded by `treeOrder`, which also carries ungrouped subscriptions interleaved with lists; new writes should prefer `treeOrder`.
|
|
9
9
|
*/
|
|
10
10
|
listOrder?: l.AtUriString[];
|
|
11
|
+
/**
|
|
12
|
+
* Manual top-level order of the sidebar's subscriptions tree: list-group AT URIs interleaved with ungrouped publication AT URIs / person DIDs, exactly as arranged via drag-and-drop. Applies only when `subscriptionSort` is 'default'. Entries not present are appended in their natural order. Takes precedence over the legacy `listOrder` once populated.
|
|
13
|
+
*/
|
|
14
|
+
treeOrder?: string[];
|
|
15
|
+
/**
|
|
16
|
+
* How the sidebar's subscriptions are ordered: 'default' (the reader's manual arrangement per `treeOrder`, or natural/stored order — the default), 'recent' (most recent activity first, interleaving publications and people), 'alpha' (name), or 'unread' (highest unread count first). Absent means 'default'.
|
|
17
|
+
*/
|
|
18
|
+
subscriptionSort?: 'default' | 'recent' | 'alpha' | 'unread' | l.UnknownString;
|
|
11
19
|
/**
|
|
12
20
|
* AT URIs of the list groups the reader has collapsed in the sidebar.
|
|
13
21
|
*/
|
|
14
22
|
collapsed?: l.AtUriString[];
|
|
23
|
+
/**
|
|
24
|
+
* Whether the reader has enabled 'Customize sidebar'. When true, the `hiddenNav` items are hidden; when false or absent, every primary nav item is shown regardless of `hiddenNav`.
|
|
25
|
+
*/
|
|
26
|
+
customizeNav?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Stable ids of the primary sidebar nav items the reader has hidden (e.g. 'home', 'latest', 'discover', 'search', 'saved', 'collections'). Subscriptions and its list groups are never hideable.
|
|
29
|
+
*/
|
|
30
|
+
hiddenNav?: string[];
|
|
15
31
|
/**
|
|
16
32
|
* When these preferences were last changed.
|
|
17
33
|
*/
|
|
18
34
|
updatedAt: l.DatetimeString;
|
|
19
35
|
};
|
|
20
36
|
export type { Main };
|
|
21
|
-
/** A reader's personal sidebar preferences: the
|
|
37
|
+
/** A reader's personal sidebar preferences: the top-level arrangement of list groups and ungrouped subscriptions (one level deep), which groups are collapsed, how automatic sort orders subscriptions, and which primary nav items are hidden. A singleton record (rkey `self`). */
|
|
22
38
|
declare const main: l.RecordSchema<"literal:self", "app.standard-reader.sidebarPref", l.Validator<Omit<Main, "$type">, Omit<Main, "$type">>>;
|
|
23
39
|
export { main };
|
|
24
40
|
export declare const $type = "app.standard-reader.sidebarPref";
|
|
@@ -30,10 +46,26 @@ export declare const $build: {
|
|
|
30
46
|
updatedAt: l.DatetimeString;
|
|
31
47
|
listOrder?: l.AtUriString[]
|
|
32
48
|
/**
|
|
33
|
-
*
|
|
49
|
+
* Manual top-level order of the sidebar's subscriptions tree: list-group AT URIs interleaved with ungrouped publication AT URIs / person DIDs, exactly as arranged via drag-and-drop. Applies only when `subscriptionSort` is 'default'. Entries not present are appended in their natural order. Takes precedence over the legacy `listOrder` once populated.
|
|
50
|
+
*/
|
|
51
|
+
| undefined;
|
|
52
|
+
treeOrder?: string[]
|
|
53
|
+
/**
|
|
54
|
+
* How the sidebar's subscriptions are ordered: 'default' (the reader's manual arrangement per `treeOrder`, or natural/stored order — the default), 'recent' (most recent activity first, interleaving publications and people), 'alpha' (name), or 'unread' (highest unread count first). Absent means 'default'.
|
|
34
55
|
*/
|
|
35
56
|
| undefined;
|
|
57
|
+
subscriptionSort?: ("default" | "recent" | "alpha" | "unread" | l.UnknownString) | undefined;
|
|
36
58
|
collapsed?: l.AtUriString[]
|
|
59
|
+
/**
|
|
60
|
+
* Whether the reader has enabled 'Customize sidebar'. When true, the `hiddenNav` items are hidden; when false or absent, every primary nav item is shown regardless of `hiddenNav`.
|
|
61
|
+
*/
|
|
62
|
+
| undefined;
|
|
63
|
+
customizeNav?: boolean
|
|
64
|
+
/**
|
|
65
|
+
* Stable ids of the primary sidebar nav items the reader has hidden (e.g. 'home', 'latest', 'discover', 'search', 'saved', 'collections'). Subscriptions and its list groups are never hideable.
|
|
66
|
+
*/
|
|
67
|
+
| undefined;
|
|
68
|
+
hiddenNav?: string[]
|
|
37
69
|
/**
|
|
38
70
|
* When these preferences were last changed.
|
|
39
71
|
*/
|
|
@@ -44,10 +76,26 @@ export declare const $build: {
|
|
|
44
76
|
updatedAt: l.DatetimeString;
|
|
45
77
|
listOrder?: l.AtUriString[]
|
|
46
78
|
/**
|
|
47
|
-
*
|
|
79
|
+
* Manual top-level order of the sidebar's subscriptions tree: list-group AT URIs interleaved with ungrouped publication AT URIs / person DIDs, exactly as arranged via drag-and-drop. Applies only when `subscriptionSort` is 'default'. Entries not present are appended in their natural order. Takes precedence over the legacy `listOrder` once populated.
|
|
48
80
|
*/
|
|
49
81
|
| undefined;
|
|
82
|
+
treeOrder?: string[]
|
|
83
|
+
/**
|
|
84
|
+
* How the sidebar's subscriptions are ordered: 'default' (the reader's manual arrangement per `treeOrder`, or natural/stored order — the default), 'recent' (most recent activity first, interleaving publications and people), 'alpha' (name), or 'unread' (highest unread count first). Absent means 'default'.
|
|
85
|
+
*/
|
|
86
|
+
| undefined;
|
|
87
|
+
subscriptionSort?: ("default" | "recent" | "alpha" | "unread" | l.UnknownString) | undefined;
|
|
50
88
|
collapsed?: l.AtUriString[]
|
|
89
|
+
/**
|
|
90
|
+
* Whether the reader has enabled 'Customize sidebar'. When true, the `hiddenNav` items are hidden; when false or absent, every primary nav item is shown regardless of `hiddenNav`.
|
|
91
|
+
*/
|
|
92
|
+
| undefined;
|
|
93
|
+
customizeNav?: boolean
|
|
94
|
+
/**
|
|
95
|
+
* Stable ids of the primary sidebar nav items the reader has hidden (e.g. 'home', 'latest', 'discover', 'search', 'saved', 'collections'). Subscriptions and its list groups are never hideable.
|
|
96
|
+
*/
|
|
97
|
+
| undefined;
|
|
98
|
+
hiddenNav?: string[]
|
|
51
99
|
/**
|
|
52
100
|
* When these preferences were last changed.
|
|
53
101
|
*/
|
|
@@ -59,10 +107,26 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
59
107
|
updatedAt: l.DatetimeString;
|
|
60
108
|
listOrder?: l.AtUriString[]
|
|
61
109
|
/**
|
|
62
|
-
*
|
|
110
|
+
* Manual top-level order of the sidebar's subscriptions tree: list-group AT URIs interleaved with ungrouped publication AT URIs / person DIDs, exactly as arranged via drag-and-drop. Applies only when `subscriptionSort` is 'default'. Entries not present are appended in their natural order. Takes precedence over the legacy `listOrder` once populated.
|
|
63
111
|
*/
|
|
64
112
|
| undefined;
|
|
113
|
+
treeOrder?: string[]
|
|
114
|
+
/**
|
|
115
|
+
* How the sidebar's subscriptions are ordered: 'default' (the reader's manual arrangement per `treeOrder`, or natural/stored order — the default), 'recent' (most recent activity first, interleaving publications and people), 'alpha' (name), or 'unread' (highest unread count first). Absent means 'default'.
|
|
116
|
+
*/
|
|
117
|
+
| undefined;
|
|
118
|
+
subscriptionSort?: ("default" | "recent" | "alpha" | "unread" | l.UnknownString) | undefined;
|
|
65
119
|
collapsed?: l.AtUriString[]
|
|
120
|
+
/**
|
|
121
|
+
* Whether the reader has enabled 'Customize sidebar'. When true, the `hiddenNav` items are hidden; when false or absent, every primary nav item is shown regardless of `hiddenNav`.
|
|
122
|
+
*/
|
|
123
|
+
| undefined;
|
|
124
|
+
customizeNav?: boolean
|
|
125
|
+
/**
|
|
126
|
+
* Stable ids of the primary sidebar nav items the reader has hidden (e.g. 'home', 'latest', 'discover', 'search', 'saved', 'collections'). Subscriptions and its list groups are never hideable.
|
|
127
|
+
*/
|
|
128
|
+
| undefined;
|
|
129
|
+
hiddenNav?: string[]
|
|
66
130
|
/**
|
|
67
131
|
* When these preferences were last changed.
|
|
68
132
|
*/
|
|
@@ -74,10 +138,26 @@ export declare const $cast: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
|
74
138
|
updatedAt: l.DatetimeString;
|
|
75
139
|
listOrder?: l.AtUriString[]
|
|
76
140
|
/**
|
|
77
|
-
*
|
|
141
|
+
* Manual top-level order of the sidebar's subscriptions tree: list-group AT URIs interleaved with ungrouped publication AT URIs / person DIDs, exactly as arranged via drag-and-drop. Applies only when `subscriptionSort` is 'default'. Entries not present are appended in their natural order. Takes precedence over the legacy `listOrder` once populated.
|
|
142
|
+
*/
|
|
143
|
+
| undefined;
|
|
144
|
+
treeOrder?: string[]
|
|
145
|
+
/**
|
|
146
|
+
* How the sidebar's subscriptions are ordered: 'default' (the reader's manual arrangement per `treeOrder`, or natural/stored order — the default), 'recent' (most recent activity first, interleaving publications and people), 'alpha' (name), or 'unread' (highest unread count first). Absent means 'default'.
|
|
78
147
|
*/
|
|
79
148
|
| undefined;
|
|
149
|
+
subscriptionSort?: ("default" | "recent" | "alpha" | "unread" | l.UnknownString) | undefined;
|
|
80
150
|
collapsed?: l.AtUriString[]
|
|
151
|
+
/**
|
|
152
|
+
* Whether the reader has enabled 'Customize sidebar'. When true, the `hiddenNav` items are hidden; when false or absent, every primary nav item is shown regardless of `hiddenNav`.
|
|
153
|
+
*/
|
|
154
|
+
| undefined;
|
|
155
|
+
customizeNav?: boolean
|
|
156
|
+
/**
|
|
157
|
+
* Stable ids of the primary sidebar nav items the reader has hidden (e.g. 'home', 'latest', 'discover', 'search', 'saved', 'collections'). Subscriptions and its list groups are never hideable.
|
|
158
|
+
*/
|
|
159
|
+
| undefined;
|
|
160
|
+
hiddenNav?: string[]
|
|
81
161
|
/**
|
|
82
162
|
* When these preferences were last changed.
|
|
83
163
|
*/
|
|
@@ -88,10 +168,26 @@ export declare const $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (
|
|
|
88
168
|
updatedAt: l.DatetimeString;
|
|
89
169
|
listOrder?: l.AtUriString[]
|
|
90
170
|
/**
|
|
91
|
-
*
|
|
171
|
+
* Manual top-level order of the sidebar's subscriptions tree: list-group AT URIs interleaved with ungrouped publication AT URIs / person DIDs, exactly as arranged via drag-and-drop. Applies only when `subscriptionSort` is 'default'. Entries not present are appended in their natural order. Takes precedence over the legacy `listOrder` once populated.
|
|
92
172
|
*/
|
|
93
173
|
| undefined;
|
|
174
|
+
treeOrder?: string[]
|
|
175
|
+
/**
|
|
176
|
+
* How the sidebar's subscriptions are ordered: 'default' (the reader's manual arrangement per `treeOrder`, or natural/stored order — the default), 'recent' (most recent activity first, interleaving publications and people), 'alpha' (name), or 'unread' (highest unread count first). Absent means 'default'.
|
|
177
|
+
*/
|
|
178
|
+
| undefined;
|
|
179
|
+
subscriptionSort?: ("default" | "recent" | "alpha" | "unread" | l.UnknownString) | undefined;
|
|
94
180
|
collapsed?: l.AtUriString[]
|
|
181
|
+
/**
|
|
182
|
+
* Whether the reader has enabled 'Customize sidebar'. When true, the `hiddenNav` items are hidden; when false or absent, every primary nav item is shown regardless of `hiddenNav`.
|
|
183
|
+
*/
|
|
184
|
+
| undefined;
|
|
185
|
+
customizeNav?: boolean
|
|
186
|
+
/**
|
|
187
|
+
* Stable ids of the primary sidebar nav items the reader has hidden (e.g. 'home', 'latest', 'discover', 'search', 'saved', 'collections'). Subscriptions and its list groups are never hideable.
|
|
188
|
+
*/
|
|
189
|
+
| undefined;
|
|
190
|
+
hiddenNav?: string[]
|
|
95
191
|
/**
|
|
96
192
|
* When these preferences were last changed.
|
|
97
193
|
*/
|
|
@@ -102,10 +198,26 @@ export declare const $matches: <I>(input: I, options?: l.ValidateOptions) => inp
|
|
|
102
198
|
updatedAt: l.DatetimeString;
|
|
103
199
|
listOrder?: l.AtUriString[]
|
|
104
200
|
/**
|
|
105
|
-
*
|
|
201
|
+
* Manual top-level order of the sidebar's subscriptions tree: list-group AT URIs interleaved with ungrouped publication AT URIs / person DIDs, exactly as arranged via drag-and-drop. Applies only when `subscriptionSort` is 'default'. Entries not present are appended in their natural order. Takes precedence over the legacy `listOrder` once populated.
|
|
202
|
+
*/
|
|
203
|
+
| undefined;
|
|
204
|
+
treeOrder?: string[]
|
|
205
|
+
/**
|
|
206
|
+
* How the sidebar's subscriptions are ordered: 'default' (the reader's manual arrangement per `treeOrder`, or natural/stored order — the default), 'recent' (most recent activity first, interleaving publications and people), 'alpha' (name), or 'unread' (highest unread count first). Absent means 'default'.
|
|
106
207
|
*/
|
|
107
208
|
| undefined;
|
|
209
|
+
subscriptionSort?: ("default" | "recent" | "alpha" | "unread" | l.UnknownString) | undefined;
|
|
108
210
|
collapsed?: l.AtUriString[]
|
|
211
|
+
/**
|
|
212
|
+
* Whether the reader has enabled 'Customize sidebar'. When true, the `hiddenNav` items are hidden; when false or absent, every primary nav item is shown regardless of `hiddenNav`.
|
|
213
|
+
*/
|
|
214
|
+
| undefined;
|
|
215
|
+
customizeNav?: boolean
|
|
216
|
+
/**
|
|
217
|
+
* Stable ids of the primary sidebar nav items the reader has hidden (e.g. 'home', 'latest', 'discover', 'search', 'saved', 'collections'). Subscriptions and its list groups are never hideable.
|
|
218
|
+
*/
|
|
219
|
+
| undefined;
|
|
220
|
+
hiddenNav?: string[]
|
|
109
221
|
/**
|
|
110
222
|
* When these preferences were last changed.
|
|
111
223
|
*/
|
|
@@ -116,10 +228,26 @@ export declare const $parse: (input: unknown, options?: l.ParseOptions) => {
|
|
|
116
228
|
updatedAt: l.DatetimeString;
|
|
117
229
|
listOrder?: l.AtUriString[]
|
|
118
230
|
/**
|
|
119
|
-
*
|
|
231
|
+
* Manual top-level order of the sidebar's subscriptions tree: list-group AT URIs interleaved with ungrouped publication AT URIs / person DIDs, exactly as arranged via drag-and-drop. Applies only when `subscriptionSort` is 'default'. Entries not present are appended in their natural order. Takes precedence over the legacy `listOrder` once populated.
|
|
120
232
|
*/
|
|
121
233
|
| undefined;
|
|
234
|
+
treeOrder?: string[]
|
|
235
|
+
/**
|
|
236
|
+
* How the sidebar's subscriptions are ordered: 'default' (the reader's manual arrangement per `treeOrder`, or natural/stored order — the default), 'recent' (most recent activity first, interleaving publications and people), 'alpha' (name), or 'unread' (highest unread count first). Absent means 'default'.
|
|
237
|
+
*/
|
|
238
|
+
| undefined;
|
|
239
|
+
subscriptionSort?: ("default" | "recent" | "alpha" | "unread" | l.UnknownString) | undefined;
|
|
122
240
|
collapsed?: l.AtUriString[]
|
|
241
|
+
/**
|
|
242
|
+
* Whether the reader has enabled 'Customize sidebar'. When true, the `hiddenNav` items are hidden; when false or absent, every primary nav item is shown regardless of `hiddenNav`.
|
|
243
|
+
*/
|
|
244
|
+
| undefined;
|
|
245
|
+
customizeNav?: boolean
|
|
246
|
+
/**
|
|
247
|
+
* Stable ids of the primary sidebar nav items the reader has hidden (e.g. 'home', 'latest', 'discover', 'search', 'saved', 'collections'). Subscriptions and its list groups are never hideable.
|
|
248
|
+
*/
|
|
249
|
+
| undefined;
|
|
250
|
+
hiddenNav?: string[]
|
|
123
251
|
/**
|
|
124
252
|
* When these preferences were last changed.
|
|
125
253
|
*/
|
|
@@ -130,10 +258,26 @@ export declare const $safeParse: (input: unknown, options?: l.ParseOptions) => l
|
|
|
130
258
|
updatedAt: l.DatetimeString;
|
|
131
259
|
listOrder?: l.AtUriString[]
|
|
132
260
|
/**
|
|
133
|
-
*
|
|
261
|
+
* Manual top-level order of the sidebar's subscriptions tree: list-group AT URIs interleaved with ungrouped publication AT URIs / person DIDs, exactly as arranged via drag-and-drop. Applies only when `subscriptionSort` is 'default'. Entries not present are appended in their natural order. Takes precedence over the legacy `listOrder` once populated.
|
|
262
|
+
*/
|
|
263
|
+
| undefined;
|
|
264
|
+
treeOrder?: string[]
|
|
265
|
+
/**
|
|
266
|
+
* How the sidebar's subscriptions are ordered: 'default' (the reader's manual arrangement per `treeOrder`, or natural/stored order — the default), 'recent' (most recent activity first, interleaving publications and people), 'alpha' (name), or 'unread' (highest unread count first). Absent means 'default'.
|
|
134
267
|
*/
|
|
135
268
|
| undefined;
|
|
269
|
+
subscriptionSort?: ("default" | "recent" | "alpha" | "unread" | l.UnknownString) | undefined;
|
|
136
270
|
collapsed?: l.AtUriString[]
|
|
271
|
+
/**
|
|
272
|
+
* Whether the reader has enabled 'Customize sidebar'. When true, the `hiddenNav` items are hidden; when false or absent, every primary nav item is shown regardless of `hiddenNav`.
|
|
273
|
+
*/
|
|
274
|
+
| undefined;
|
|
275
|
+
customizeNav?: boolean
|
|
276
|
+
/**
|
|
277
|
+
* Stable ids of the primary sidebar nav items the reader has hidden (e.g. 'home', 'latest', 'discover', 'search', 'saved', 'collections'). Subscriptions and its list groups are never hideable.
|
|
278
|
+
*/
|
|
279
|
+
| undefined;
|
|
280
|
+
hiddenNav?: string[]
|
|
137
281
|
/**
|
|
138
282
|
* When these preferences were last changed.
|
|
139
283
|
*/
|
|
@@ -144,10 +288,26 @@ export declare const $validate: <I>(input: I, options?: l.ValidateOptions) => I
|
|
|
144
288
|
updatedAt: l.DatetimeString;
|
|
145
289
|
listOrder?: l.AtUriString[]
|
|
146
290
|
/**
|
|
147
|
-
*
|
|
291
|
+
* Manual top-level order of the sidebar's subscriptions tree: list-group AT URIs interleaved with ungrouped publication AT URIs / person DIDs, exactly as arranged via drag-and-drop. Applies only when `subscriptionSort` is 'default'. Entries not present are appended in their natural order. Takes precedence over the legacy `listOrder` once populated.
|
|
148
292
|
*/
|
|
149
293
|
| undefined;
|
|
294
|
+
treeOrder?: string[]
|
|
295
|
+
/**
|
|
296
|
+
* How the sidebar's subscriptions are ordered: 'default' (the reader's manual arrangement per `treeOrder`, or natural/stored order — the default), 'recent' (most recent activity first, interleaving publications and people), 'alpha' (name), or 'unread' (highest unread count first). Absent means 'default'.
|
|
297
|
+
*/
|
|
298
|
+
| undefined;
|
|
299
|
+
subscriptionSort?: ("default" | "recent" | "alpha" | "unread" | l.UnknownString) | undefined;
|
|
150
300
|
collapsed?: l.AtUriString[]
|
|
301
|
+
/**
|
|
302
|
+
* Whether the reader has enabled 'Customize sidebar'. When true, the `hiddenNav` items are hidden; when false or absent, every primary nav item is shown regardless of `hiddenNav`.
|
|
303
|
+
*/
|
|
304
|
+
| undefined;
|
|
305
|
+
customizeNav?: boolean
|
|
306
|
+
/**
|
|
307
|
+
* Stable ids of the primary sidebar nav items the reader has hidden (e.g. 'home', 'latest', 'discover', 'search', 'saved', 'collections'). Subscriptions and its list groups are never hideable.
|
|
308
|
+
*/
|
|
309
|
+
| undefined;
|
|
310
|
+
hiddenNav?: string[]
|
|
151
311
|
/**
|
|
152
312
|
* When these preferences were last changed.
|
|
153
313
|
*/
|
|
@@ -158,10 +318,26 @@ export declare const $safeValidate: <I>(input: I, options?: l.ValidateOptions) =
|
|
|
158
318
|
updatedAt: l.DatetimeString;
|
|
159
319
|
listOrder?: l.AtUriString[]
|
|
160
320
|
/**
|
|
161
|
-
*
|
|
321
|
+
* Manual top-level order of the sidebar's subscriptions tree: list-group AT URIs interleaved with ungrouped publication AT URIs / person DIDs, exactly as arranged via drag-and-drop. Applies only when `subscriptionSort` is 'default'. Entries not present are appended in their natural order. Takes precedence over the legacy `listOrder` once populated.
|
|
322
|
+
*/
|
|
323
|
+
| undefined;
|
|
324
|
+
treeOrder?: string[]
|
|
325
|
+
/**
|
|
326
|
+
* How the sidebar's subscriptions are ordered: 'default' (the reader's manual arrangement per `treeOrder`, or natural/stored order — the default), 'recent' (most recent activity first, interleaving publications and people), 'alpha' (name), or 'unread' (highest unread count first). Absent means 'default'.
|
|
162
327
|
*/
|
|
163
328
|
| undefined;
|
|
329
|
+
subscriptionSort?: ("default" | "recent" | "alpha" | "unread" | l.UnknownString) | undefined;
|
|
164
330
|
collapsed?: l.AtUriString[]
|
|
331
|
+
/**
|
|
332
|
+
* Whether the reader has enabled 'Customize sidebar'. When true, the `hiddenNav` items are hidden; when false or absent, every primary nav item is shown regardless of `hiddenNav`.
|
|
333
|
+
*/
|
|
334
|
+
| undefined;
|
|
335
|
+
customizeNav?: boolean
|
|
336
|
+
/**
|
|
337
|
+
* Stable ids of the primary sidebar nav items the reader has hidden (e.g. 'home', 'latest', 'discover', 'search', 'saved', 'collections'). Subscriptions and its list groups are never hideable.
|
|
338
|
+
*/
|
|
339
|
+
| undefined;
|
|
340
|
+
hiddenNav?: string[]
|
|
165
341
|
/**
|
|
166
342
|
* When these preferences were last changed.
|
|
167
343
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebarPref.defs.d.ts","sourceRoot":"","sources":["../../../../src/lexicons/app/standard-reader/sidebarPref.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA;AAEvC,QAAA,MAAM,KAAK,oCAAoC,CAAA;AAE/C,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,
|
|
1
|
+
{"version":3,"file":"sidebarPref.defs.d.ts","sourceRoot":"","sources":["../../../../src/lexicons/app/standard-reader/sidebarPref.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA;AAEvC,QAAA,MAAM,KAAK,oCAAoC,CAAA;AAE/C,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,qRAAqR;AACrR,KAAK,IAAI,GAAG;IACV,KAAK,EAAE,iCAAiC,CAAA;IAExC;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAA;IAE3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IAEpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,CAAC,CAAC,aAAa,CAAA;IAE9E;;OAEG;IACH,S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OAEG;;mBACY,OAAO;IAEtB;;OAEG;;gBACS,MAAM,EAAE;IAEpB;;OAEG;;;EAuDkE,CAAA"}
|
|
@@ -4,17 +4,28 @@
|
|
|
4
4
|
import { l } from '@atproto/lex-schema';
|
|
5
5
|
const $nsid = 'app.standard-reader.sidebarPref';
|
|
6
6
|
export { $nsid };
|
|
7
|
-
/** A reader's personal sidebar preferences: the
|
|
7
|
+
/** A reader's personal sidebar preferences: the top-level arrangement of list groups and ungrouped subscriptions (one level deep), which groups are collapsed, how automatic sort orders subscriptions, and which primary nav items are hidden. A singleton record (rkey `self`). */
|
|
8
8
|
const main = /*#__PURE__*/ l.record('literal:self', $nsid,
|
|
9
9
|
/*#__PURE__*/ l.object({
|
|
10
10
|
listOrder: /*#__PURE__*/ l.optional(
|
|
11
11
|
/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ format: 'at-uri' }), {
|
|
12
12
|
maxLength: 1000,
|
|
13
13
|
})),
|
|
14
|
+
treeOrder: /*#__PURE__*/ l.optional(
|
|
15
|
+
/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ maxLength: 512 }), {
|
|
16
|
+
maxLength: 2000,
|
|
17
|
+
})),
|
|
18
|
+
subscriptionSort: /*#__PURE__*/ l.optional(
|
|
19
|
+
/*#__PURE__*/ l.string({ maxLength: 16 })),
|
|
14
20
|
collapsed: /*#__PURE__*/ l.optional(
|
|
15
21
|
/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ format: 'at-uri' }), {
|
|
16
22
|
maxLength: 1000,
|
|
17
23
|
})),
|
|
24
|
+
customizeNav: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
|
|
25
|
+
hiddenNav: /*#__PURE__*/ l.optional(
|
|
26
|
+
/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ maxLength: 64 }), {
|
|
27
|
+
maxLength: 32,
|
|
28
|
+
})),
|
|
18
29
|
updatedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
|
|
19
30
|
}));
|
|
20
31
|
export { main };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebarPref.defs.js","sourceRoot":"","sources":["../../../../src/lexicons/app/standard-reader/sidebarPref.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA;AAEvC,MAAM,KAAK,GAAG,iCAAiC,CAAA;AAE/C,OAAO,EAAE,KAAK,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"sidebarPref.defs.js","sourceRoot":"","sources":["../../../../src/lexicons/app/standard-reader/sidebarPref.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA;AAEvC,MAAM,KAAK,GAAG,iCAAiC,CAAA;AAE/C,OAAO,EAAE,KAAK,EAAE,CAAA;AA4ChB,qRAAqR;AACrR,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CACjC,cAAc,EACd,KAAK;AACL,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACrB,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACjC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,EAAE;QAClE,SAAS,EAAE,IAAI;KAChB,CAAC,CACH;IACD,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACjC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,EAAE;QAChE,SAAS,EAAE,IAAI;KAChB,CAAC,CACH;IACD,gBAAgB,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACxC,aAAa,CAAC,CAAC,CAAC,MAAM,CAGnB,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CACtB;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vD,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACjE,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAC7D,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACzD,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACjE,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAC/D,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@standard-reader/lexicons",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Typed AT Protocol lexicon schemas for the Standard Reader XRPC API, generated with @atproto/lex.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
"scripts": {
|
|
38
38
|
"lex:install": "ts-lex install --lexicons ../../lexicons --ci",
|
|
39
39
|
"lex:build": "ts-lex build --lexicons ../../lexicons --out src/lexicons --lib @atproto/lex-schema --exclude app.bsky.feed.defs app.bsky.embed.defs com.atproto.label.queryLabels com.atproto.label.subscribeLabels --index-file --clear",
|
|
40
|
-
"
|
|
40
|
+
"lex:patch-nullable": "node scripts/patch-nullable.mjs",
|
|
41
|
+
"generate": "pnpm run lex:build && pnpm run lex:patch-nullable",
|
|
41
42
|
"build": "tsc -p tsconfig.build.json",
|
|
42
43
|
"typecheck": "tsc --noEmit"
|
|
43
44
|
}
|
package/src/index.ts
CHANGED
|
@@ -39,7 +39,18 @@ import * as lexicons from "./lexicons/index.js";
|
|
|
39
39
|
* Every `app.standard-reader.*` lexicon schema (queries, procedures, records),
|
|
40
40
|
* keyed by the final NSID segment — e.g. {@link standardReader.getDocument}.
|
|
41
41
|
*/
|
|
42
|
-
export
|
|
42
|
+
export type StandardReaderLexicons = (typeof lexicons.app)["standard-reader"];
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Every `app.standard-reader.*` lexicon schema (queries, procedures, records),
|
|
46
|
+
* keyed by the final NSID segment — e.g. {@link standardReader.getDocument}.
|
|
47
|
+
*
|
|
48
|
+
* The type annotation is load-bearing: without it, declaration emit writes the
|
|
49
|
+
* inferred type as `typeof lexicons.app.'standard-reader'`, which is not valid
|
|
50
|
+
* TypeScript and makes the published `.d.ts` unparseable for consumers.
|
|
51
|
+
*/
|
|
52
|
+
export const standardReader: StandardReaderLexicons =
|
|
53
|
+
lexicons.app["standard-reader"];
|
|
43
54
|
|
|
44
55
|
/**
|
|
45
56
|
* Public base URL of the Standard Reader AppView (its XRPC service lives under
|