@standard-reader/lexicons 0.1.1 → 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/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/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 +1 -1
- package/src/index.ts +12 -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/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
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,16 @@ import * as lexicons from "./lexicons/index.js";
|
|
|
37
37
|
* Every `app.standard-reader.*` lexicon schema (queries, procedures, records),
|
|
38
38
|
* keyed by the final NSID segment — e.g. {@link standardReader.getDocument}.
|
|
39
39
|
*/
|
|
40
|
-
export
|
|
40
|
+
export type StandardReaderLexicons = (typeof lexicons.app)["standard-reader"];
|
|
41
|
+
/**
|
|
42
|
+
* Every `app.standard-reader.*` lexicon schema (queries, procedures, records),
|
|
43
|
+
* keyed by the final NSID segment — e.g. {@link standardReader.getDocument}.
|
|
44
|
+
*
|
|
45
|
+
* The type annotation is load-bearing: without it, declaration emit writes the
|
|
46
|
+
* inferred type as `typeof lexicons.app.'standard-reader'`, which is not valid
|
|
47
|
+
* TypeScript and makes the published `.d.ts` unparseable for consumers.
|
|
48
|
+
*/
|
|
49
|
+
export declare const standardReader: StandardReaderLexicons;
|
|
41
50
|
/**
|
|
42
51
|
* Public base URL of the Standard Reader AppView (its XRPC service lives under
|
|
43
52
|
* `/xrpc`). Pass it to your XRPC client; override to target a preview
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAEhD;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,iBAAiB,CAAC,CAAC;AAE9E;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,EAAE,sBACI,CAAC;AAElC;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,gCAAgC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -36,6 +36,10 @@ import * as lexicons from "./lexicons/index.js";
|
|
|
36
36
|
/**
|
|
37
37
|
* Every `app.standard-reader.*` lexicon schema (queries, procedures, records),
|
|
38
38
|
* keyed by the final NSID segment — e.g. {@link standardReader.getDocument}.
|
|
39
|
+
*
|
|
40
|
+
* The type annotation is load-bearing: without it, declaration emit writes the
|
|
41
|
+
* inferred type as `typeof lexicons.app.'standard-reader'`, which is not valid
|
|
42
|
+
* TypeScript and makes the published `.d.ts` unparseable for consumers.
|
|
39
43
|
*/
|
|
40
44
|
export const standardReader = lexicons.app["standard-reader"];
|
|
41
45
|
/**
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAQhD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GACzB,QAAQ,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAElC;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,6BAA6B,CAAC"}
|
|
@@ -12,6 +12,10 @@ type Main = {
|
|
|
12
12
|
* Per-label visibility overrides for this labeler's label values.
|
|
13
13
|
*/
|
|
14
14
|
labels?: LabelPref[];
|
|
15
|
+
/**
|
|
16
|
+
* Whether this labeler's labels are applied while reading. `false` keeps the subscription (and its per-label preferences) but stops the labeler acting here — for a labeler the reader wants on another app but not this one. Absent means enabled.
|
|
17
|
+
*/
|
|
18
|
+
enabled?: boolean;
|
|
15
19
|
/**
|
|
16
20
|
* When the reader subscribed to the labeler.
|
|
17
21
|
*/
|
|
@@ -30,6 +34,11 @@ export declare const $build: {
|
|
|
30
34
|
createdAt: l.DatetimeString;
|
|
31
35
|
labeler: l.DidString;
|
|
32
36
|
labels?: LabelPref[]
|
|
37
|
+
/**
|
|
38
|
+
* Whether this labeler's labels are applied while reading. `false` keeps the subscription (and its per-label preferences) but stops the labeler acting here — for a labeler the reader wants on another app but not this one. Absent means enabled.
|
|
39
|
+
*/
|
|
40
|
+
| undefined;
|
|
41
|
+
enabled?: boolean
|
|
33
42
|
/**
|
|
34
43
|
* When the reader subscribed to the labeler.
|
|
35
44
|
*/
|
|
@@ -40,6 +49,11 @@ export declare const $build: {
|
|
|
40
49
|
createdAt: l.DatetimeString;
|
|
41
50
|
labeler: l.DidString;
|
|
42
51
|
labels?: LabelPref[]
|
|
52
|
+
/**
|
|
53
|
+
* Whether this labeler's labels are applied while reading. `false` keeps the subscription (and its per-label preferences) but stops the labeler acting here — for a labeler the reader wants on another app but not this one. Absent means enabled.
|
|
54
|
+
*/
|
|
55
|
+
| undefined;
|
|
56
|
+
enabled?: boolean
|
|
43
57
|
/**
|
|
44
58
|
* When the reader subscribed to the labeler.
|
|
45
59
|
*/
|
|
@@ -51,6 +65,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
51
65
|
createdAt: l.DatetimeString;
|
|
52
66
|
labeler: l.DidString;
|
|
53
67
|
labels?: LabelPref[]
|
|
68
|
+
/**
|
|
69
|
+
* Whether this labeler's labels are applied while reading. `false` keeps the subscription (and its per-label preferences) but stops the labeler acting here — for a labeler the reader wants on another app but not this one. Absent means enabled.
|
|
70
|
+
*/
|
|
71
|
+
| undefined;
|
|
72
|
+
enabled?: boolean
|
|
54
73
|
/**
|
|
55
74
|
* When the reader subscribed to the labeler.
|
|
56
75
|
*/
|
|
@@ -62,6 +81,11 @@ export declare const $cast: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
|
62
81
|
createdAt: l.DatetimeString;
|
|
63
82
|
labeler: l.DidString;
|
|
64
83
|
labels?: LabelPref[]
|
|
84
|
+
/**
|
|
85
|
+
* Whether this labeler's labels are applied while reading. `false` keeps the subscription (and its per-label preferences) but stops the labeler acting here — for a labeler the reader wants on another app but not this one. Absent means enabled.
|
|
86
|
+
*/
|
|
87
|
+
| undefined;
|
|
88
|
+
enabled?: boolean
|
|
65
89
|
/**
|
|
66
90
|
* When the reader subscribed to the labeler.
|
|
67
91
|
*/
|
|
@@ -72,6 +96,11 @@ export declare const $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (
|
|
|
72
96
|
createdAt: l.DatetimeString;
|
|
73
97
|
labeler: l.DidString;
|
|
74
98
|
labels?: LabelPref[]
|
|
99
|
+
/**
|
|
100
|
+
* Whether this labeler's labels are applied while reading. `false` keeps the subscription (and its per-label preferences) but stops the labeler acting here — for a labeler the reader wants on another app but not this one. Absent means enabled.
|
|
101
|
+
*/
|
|
102
|
+
| undefined;
|
|
103
|
+
enabled?: boolean
|
|
75
104
|
/**
|
|
76
105
|
* When the reader subscribed to the labeler.
|
|
77
106
|
*/
|
|
@@ -82,6 +111,11 @@ export declare const $matches: <I>(input: I, options?: l.ValidateOptions) => inp
|
|
|
82
111
|
createdAt: l.DatetimeString;
|
|
83
112
|
labeler: l.DidString;
|
|
84
113
|
labels?: LabelPref[]
|
|
114
|
+
/**
|
|
115
|
+
* Whether this labeler's labels are applied while reading. `false` keeps the subscription (and its per-label preferences) but stops the labeler acting here — for a labeler the reader wants on another app but not this one. Absent means enabled.
|
|
116
|
+
*/
|
|
117
|
+
| undefined;
|
|
118
|
+
enabled?: boolean
|
|
85
119
|
/**
|
|
86
120
|
* When the reader subscribed to the labeler.
|
|
87
121
|
*/
|
|
@@ -92,6 +126,11 @@ export declare const $parse: (input: unknown, options?: l.ParseOptions) => {
|
|
|
92
126
|
createdAt: l.DatetimeString;
|
|
93
127
|
labeler: l.DidString;
|
|
94
128
|
labels?: LabelPref[]
|
|
129
|
+
/**
|
|
130
|
+
* Whether this labeler's labels are applied while reading. `false` keeps the subscription (and its per-label preferences) but stops the labeler acting here — for a labeler the reader wants on another app but not this one. Absent means enabled.
|
|
131
|
+
*/
|
|
132
|
+
| undefined;
|
|
133
|
+
enabled?: boolean
|
|
95
134
|
/**
|
|
96
135
|
* When the reader subscribed to the labeler.
|
|
97
136
|
*/
|
|
@@ -102,6 +141,11 @@ export declare const $safeParse: (input: unknown, options?: l.ParseOptions) => l
|
|
|
102
141
|
createdAt: l.DatetimeString;
|
|
103
142
|
labeler: l.DidString;
|
|
104
143
|
labels?: LabelPref[]
|
|
144
|
+
/**
|
|
145
|
+
* Whether this labeler's labels are applied while reading. `false` keeps the subscription (and its per-label preferences) but stops the labeler acting here — for a labeler the reader wants on another app but not this one. Absent means enabled.
|
|
146
|
+
*/
|
|
147
|
+
| undefined;
|
|
148
|
+
enabled?: boolean
|
|
105
149
|
/**
|
|
106
150
|
* When the reader subscribed to the labeler.
|
|
107
151
|
*/
|
|
@@ -112,6 +156,11 @@ export declare const $validate: <I>(input: I, options?: l.ValidateOptions) => I
|
|
|
112
156
|
createdAt: l.DatetimeString;
|
|
113
157
|
labeler: l.DidString;
|
|
114
158
|
labels?: LabelPref[]
|
|
159
|
+
/**
|
|
160
|
+
* Whether this labeler's labels are applied while reading. `false` keeps the subscription (and its per-label preferences) but stops the labeler acting here — for a labeler the reader wants on another app but not this one. Absent means enabled.
|
|
161
|
+
*/
|
|
162
|
+
| undefined;
|
|
163
|
+
enabled?: boolean
|
|
115
164
|
/**
|
|
116
165
|
* When the reader subscribed to the labeler.
|
|
117
166
|
*/
|
|
@@ -122,6 +171,11 @@ export declare const $safeValidate: <I>(input: I, options?: l.ValidateOptions) =
|
|
|
122
171
|
createdAt: l.DatetimeString;
|
|
123
172
|
labeler: l.DidString;
|
|
124
173
|
labels?: LabelPref[]
|
|
174
|
+
/**
|
|
175
|
+
* Whether this labeler's labels are applied while reading. `false` keeps the subscription (and its per-label preferences) but stops the labeler acting here — for a labeler the reader wants on another app but not this one. Absent means enabled.
|
|
176
|
+
*/
|
|
177
|
+
| undefined;
|
|
178
|
+
enabled?: boolean
|
|
125
179
|
/**
|
|
126
180
|
* When the reader subscribed to the labeler.
|
|
127
181
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/app/standard-reader/labeler/subscription.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA;AAEvC,QAAA,MAAM,KAAK,6CAA6C,CAAA;AAExD,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,6UAA6U;AAC7U,KAAK,IAAI,GAAG;IACV,KAAK,EAAE,0CAA0C,CAAA;IAEjD;;OAEG;IACH,OAAO,EAAE,CAAC,CAAC,SAAS,CAAA;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,EAAE,CAAA;IAEpB;;OAEG;IACH,SAAS,EAAE,CAAC,CAAC,cAAc,CAAA;CAC5B,CAAA;AAED,YAAY,EAAE,IAAI,EAAE,CAAA;AAEpB,6UAA6U;AAC7U,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"subscription.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/app/standard-reader/labeler/subscription.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA;AAEvC,QAAA,MAAM,KAAK,6CAA6C,CAAA;AAExD,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,6UAA6U;AAC7U,KAAK,IAAI,GAAG;IACV,KAAK,EA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__PURE__*/ l.ref((() => labelPref)))),
|
|
14
|
+
enabled: /*#__PURE__*/ l.optional(
|
|
15
|
+
/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.boolean(), true)),
|
|
14
16
|
createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
|
|
15
17
|
}));
|
|
16
18
|
export { main };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/app/standard-reader/labeler/subscription.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA;AAEvC,MAAM,KAAK,GAAG,0CAA0C,CAAA;AAExD,OAAO,EAAE,KAAK,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"subscription.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/app/standard-reader/labeler/subscription.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA;AAEvC,MAAM,KAAK,GAAG,0CAA0C,CAAA;AAExD,OAAO,EAAE,KAAK,EAAE,CAAA;AA6BhB,6UAA6U;AAC7U,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CACjC,KAAK,EACL,KAAK;AACL,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACrB,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAClD,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC9B,aAAa,CAAC,CAAC,CAAC,KAAK;IACnB,aAAa,CAAC,CAAC,CAAC,GAAG,CAAY,CAAC,GAAG,EAAE,CAAC,SAAS,CAAQ,CAAC,CACzD,CACF;IACD,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC/B,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,aAAa,CA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AAC,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;AAmBvE,2EAA2E;AAC3E,MAAM,SAAS,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAC3C,KAAK,EACL,WAAW;AACX,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACrB,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;IAC/C,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAG/B,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;CACtB,CAAC,CACH,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labeler.d.ts","sourceRoot":"","sources":["../../../../src/lexicons/app/standard-reader/labeler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAA;AACzC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"labeler.d.ts","sourceRoot":"","sources":["../../../../src/lexicons/app/standard-reader/labeler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAA;AACzC,OAAO,KAAK,YAAY,MAAM,2BAA2B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labeler.js","sourceRoot":"","sources":["../../../../src/lexicons/app/standard-reader/labeler.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAA;AACzC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"labeler.js","sourceRoot":"","sources":["../../../../src/lexicons/app/standard-reader/labeler.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAA;AACzC,OAAO,KAAK,YAAY,MAAM,2BAA2B,CAAA"}
|
|
@@ -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,SAAS,CAAC,EAAE,CAAC,CAAC,WAAW,E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BACS,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;IACD,SAAS,EAAE,aAAa,CAAC,CAAC,C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Aa,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
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
|
|
@@ -22,6 +22,11 @@ type Main = {
|
|
|
22
22
|
*/
|
|
23
23
|
labels?: LabelPref[]
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Whether this labeler's labels are applied while reading. `false` keeps the subscription (and its per-label preferences) but stops the labeler acting here — for a labeler the reader wants on another app but not this one. Absent means enabled.
|
|
27
|
+
*/
|
|
28
|
+
enabled?: boolean
|
|
29
|
+
|
|
25
30
|
/**
|
|
26
31
|
* When the reader subscribed to the labeler.
|
|
27
32
|
*/
|
|
@@ -41,6 +46,9 @@ const main = /*#__PURE__*/ l.record<'any', Main>(
|
|
|
41
46
|
/*#__PURE__*/ l.ref<LabelPref>((() => labelPref) as any),
|
|
42
47
|
),
|
|
43
48
|
),
|
|
49
|
+
enabled: /*#__PURE__*/ l.optional(
|
|
50
|
+
/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.boolean(), true),
|
|
51
|
+
),
|
|
44
52
|
createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
|
|
45
53
|
}),
|
|
46
54
|
)
|
|
@@ -8,20 +8,40 @@ const $nsid = 'app.standard-reader.sidebarPref'
|
|
|
8
8
|
|
|
9
9
|
export { $nsid }
|
|
10
10
|
|
|
11
|
-
/** A reader's personal sidebar preferences: the
|
|
11
|
+
/** 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`). */
|
|
12
12
|
type Main = {
|
|
13
13
|
$type: 'app.standard-reader.sidebarPref'
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* 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`.
|
|
17
17
|
*/
|
|
18
18
|
listOrder?: l.AtUriString[]
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* 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.
|
|
22
|
+
*/
|
|
23
|
+
treeOrder?: string[]
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* 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'.
|
|
27
|
+
*/
|
|
28
|
+
subscriptionSort?: 'default' | 'recent' | 'alpha' | 'unread' | l.UnknownString
|
|
29
|
+
|
|
20
30
|
/**
|
|
21
31
|
* AT URIs of the list groups the reader has collapsed in the sidebar.
|
|
22
32
|
*/
|
|
23
33
|
collapsed?: l.AtUriString[]
|
|
24
34
|
|
|
35
|
+
/**
|
|
36
|
+
* 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`.
|
|
37
|
+
*/
|
|
38
|
+
customizeNav?: boolean
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 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.
|
|
42
|
+
*/
|
|
43
|
+
hiddenNav?: string[]
|
|
44
|
+
|
|
25
45
|
/**
|
|
26
46
|
* When these preferences were last changed.
|
|
27
47
|
*/
|
|
@@ -30,7 +50,7 @@ type Main = {
|
|
|
30
50
|
|
|
31
51
|
export type { Main }
|
|
32
52
|
|
|
33
|
-
/** A reader's personal sidebar preferences: the
|
|
53
|
+
/** 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`). */
|
|
34
54
|
const main = /*#__PURE__*/ l.record<'literal:self', Main>(
|
|
35
55
|
'literal:self',
|
|
36
56
|
$nsid,
|
|
@@ -40,11 +60,28 @@ const main = /*#__PURE__*/ l.record<'literal:self', Main>(
|
|
|
40
60
|
maxLength: 1000,
|
|
41
61
|
}),
|
|
42
62
|
),
|
|
63
|
+
treeOrder: /*#__PURE__*/ l.optional(
|
|
64
|
+
/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ maxLength: 512 }), {
|
|
65
|
+
maxLength: 2000,
|
|
66
|
+
}),
|
|
67
|
+
),
|
|
68
|
+
subscriptionSort: /*#__PURE__*/ l.optional(
|
|
69
|
+
/*#__PURE__*/ l.string<{
|
|
70
|
+
maxLength: 16
|
|
71
|
+
knownValues: ['default', 'recent', 'alpha', 'unread']
|
|
72
|
+
}>({ maxLength: 16 }),
|
|
73
|
+
),
|
|
43
74
|
collapsed: /*#__PURE__*/ l.optional(
|
|
44
75
|
/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ format: 'at-uri' }), {
|
|
45
76
|
maxLength: 1000,
|
|
46
77
|
}),
|
|
47
78
|
),
|
|
79
|
+
customizeNav: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),
|
|
80
|
+
hiddenNav: /*#__PURE__*/ l.optional(
|
|
81
|
+
/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ maxLength: 64 }), {
|
|
82
|
+
maxLength: 32,
|
|
83
|
+
}),
|
|
84
|
+
),
|
|
48
85
|
updatedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
|
|
49
86
|
}),
|
|
50
87
|
)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/app/standard-reader/labeler/service.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAA;AACjC,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { l } from '@atproto/lex-schema';
|
|
2
|
-
import * as LabelerDefs from './defs.defs.js';
|
|
3
|
-
declare const $nsid = "app.standard-reader.labeler.service";
|
|
4
|
-
export { $nsid };
|
|
5
|
-
/** Registers a Standard Reader labeler. This record is the single source of truth for a labeler: its identity, where to reach its label server, how it presents, and its label-value definitions. Indexed off the network like any other record (the owner of the record is the labeler's author); the label server itself only answers com.atproto.label.queryLabels / subscribeLabels. */
|
|
6
|
-
type Main = {
|
|
7
|
-
$type: 'app.standard-reader.labeler.service';
|
|
8
|
-
/**
|
|
9
|
-
* DID of the labeler — the `src` on its labels (and whose key signs them).
|
|
10
|
-
*/
|
|
11
|
-
did: l.DidString;
|
|
12
|
-
/**
|
|
13
|
-
* Origin serving this labeler's com.atproto.label.queryLabels / subscribeLabels.
|
|
14
|
-
*/
|
|
15
|
-
serviceEndpoint: l.UriString;
|
|
16
|
-
displayName?: string;
|
|
17
|
-
description?: string;
|
|
18
|
-
avatar?: l.BlobRef;
|
|
19
|
-
policies?: LabelerDefs.LabelerPolicies;
|
|
20
|
-
createdAt: l.DatetimeString;
|
|
21
|
-
};
|
|
22
|
-
export type { Main };
|
|
23
|
-
/** Registers a Standard Reader labeler. This record is the single source of truth for a labeler: its identity, where to reach its label server, how it presents, and its label-value definitions. Indexed off the network like any other record (the owner of the record is the labeler's author); the label server itself only answers com.atproto.label.queryLabels / subscribeLabels. */
|
|
24
|
-
declare const main: l.RecordSchema<"tid", "app.standard-reader.labeler.service", l.Validator<Omit<Main, "$type">, Omit<Main, "$type">>>;
|
|
25
|
-
export { main };
|
|
26
|
-
export declare const $type = "app.standard-reader.labeler.service";
|
|
27
|
-
export declare const $isTypeOf: <TValue extends {
|
|
28
|
-
$type?: unknown;
|
|
29
|
-
}>(value: TValue) => value is l.TypedRecord<"app.standard-reader.labeler.service", TValue>;
|
|
30
|
-
export declare const $build: {
|
|
31
|
-
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
32
|
-
did: l.DidString;
|
|
33
|
-
createdAt: l.DatetimeString;
|
|
34
|
-
description?: string | undefined;
|
|
35
|
-
displayName?: string | undefined;
|
|
36
|
-
avatar?: l.BlobRef | undefined;
|
|
37
|
-
policies?: LabelerDefs.LabelerPolicies | undefined;
|
|
38
|
-
serviceEndpoint: l.UriString;
|
|
39
|
-
$type: "app.standard-reader.labeler.service";
|
|
40
|
-
};
|
|
41
|
-
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
42
|
-
did: l.DidString;
|
|
43
|
-
createdAt: l.DatetimeString;
|
|
44
|
-
description?: string | undefined;
|
|
45
|
-
displayName?: string | undefined;
|
|
46
|
-
avatar?: l.BlobRef | undefined;
|
|
47
|
-
policies?: LabelerDefs.LabelerPolicies | undefined;
|
|
48
|
-
serviceEndpoint: l.UriString;
|
|
49
|
-
$type: "app.standard-reader.labeler.service";
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
export declare const $assert: (input: unknown, options?: l.ValidateOptions) => asserts input is {
|
|
53
|
-
did: l.DidString;
|
|
54
|
-
createdAt: l.DatetimeString;
|
|
55
|
-
description?: string | undefined;
|
|
56
|
-
displayName?: string | undefined;
|
|
57
|
-
avatar?: l.BlobRef | undefined;
|
|
58
|
-
policies?: LabelerDefs.LabelerPolicies | undefined;
|
|
59
|
-
serviceEndpoint: l.UriString;
|
|
60
|
-
$type: "app.standard-reader.labeler.service";
|
|
61
|
-
};
|
|
62
|
-
export declare const $check: (input: unknown, options?: l.ValidateOptions) => void;
|
|
63
|
-
export declare const $cast: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
64
|
-
did: l.DidString;
|
|
65
|
-
createdAt: l.DatetimeString;
|
|
66
|
-
description?: string | undefined;
|
|
67
|
-
displayName?: string | undefined;
|
|
68
|
-
avatar?: l.BlobRef | undefined;
|
|
69
|
-
policies?: LabelerDefs.LabelerPolicies | undefined;
|
|
70
|
-
serviceEndpoint: l.UriString;
|
|
71
|
-
$type: "app.standard-reader.labeler.service";
|
|
72
|
-
};
|
|
73
|
-
export declare const $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (I & {
|
|
74
|
-
did: l.DidString;
|
|
75
|
-
createdAt: l.DatetimeString;
|
|
76
|
-
description?: string | undefined;
|
|
77
|
-
displayName?: string | undefined;
|
|
78
|
-
avatar?: l.BlobRef | undefined;
|
|
79
|
-
policies?: LabelerDefs.LabelerPolicies | undefined;
|
|
80
|
-
serviceEndpoint: l.UriString;
|
|
81
|
-
$type: "app.standard-reader.labeler.service";
|
|
82
|
-
}) | undefined;
|
|
83
|
-
export declare const $matches: <I>(input: I, options?: l.ValidateOptions) => input is I & {
|
|
84
|
-
did: l.DidString;
|
|
85
|
-
createdAt: l.DatetimeString;
|
|
86
|
-
description?: string | undefined;
|
|
87
|
-
displayName?: string | undefined;
|
|
88
|
-
avatar?: l.BlobRef | undefined;
|
|
89
|
-
policies?: LabelerDefs.LabelerPolicies | undefined;
|
|
90
|
-
serviceEndpoint: l.UriString;
|
|
91
|
-
$type: "app.standard-reader.labeler.service";
|
|
92
|
-
};
|
|
93
|
-
export declare const $parse: (input: unknown, options?: l.ParseOptions) => {
|
|
94
|
-
did: l.DidString;
|
|
95
|
-
createdAt: l.DatetimeString;
|
|
96
|
-
description?: string | undefined;
|
|
97
|
-
displayName?: string | undefined;
|
|
98
|
-
avatar?: l.BlobRef | undefined;
|
|
99
|
-
policies?: LabelerDefs.LabelerPolicies | undefined;
|
|
100
|
-
serviceEndpoint: l.UriString;
|
|
101
|
-
$type: "app.standard-reader.labeler.service";
|
|
102
|
-
};
|
|
103
|
-
export declare const $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{
|
|
104
|
-
did: l.DidString;
|
|
105
|
-
createdAt: l.DatetimeString;
|
|
106
|
-
description?: string | undefined;
|
|
107
|
-
displayName?: string | undefined;
|
|
108
|
-
avatar?: l.BlobRef | undefined;
|
|
109
|
-
policies?: LabelerDefs.LabelerPolicies | undefined;
|
|
110
|
-
serviceEndpoint: l.UriString;
|
|
111
|
-
$type: "app.standard-reader.labeler.service";
|
|
112
|
-
}>;
|
|
113
|
-
export declare const $validate: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
114
|
-
did: l.DidString;
|
|
115
|
-
createdAt: l.DatetimeString;
|
|
116
|
-
description?: string | undefined;
|
|
117
|
-
displayName?: string | undefined;
|
|
118
|
-
avatar?: l.BlobRef | undefined;
|
|
119
|
-
policies?: LabelerDefs.LabelerPolicies | undefined;
|
|
120
|
-
serviceEndpoint: l.UriString;
|
|
121
|
-
$type: "app.standard-reader.labeler.service";
|
|
122
|
-
};
|
|
123
|
-
export declare const $safeValidate: <I>(input: I, options?: l.ValidateOptions) => l.ValidationResult<I & {
|
|
124
|
-
did: l.DidString;
|
|
125
|
-
createdAt: l.DatetimeString;
|
|
126
|
-
description?: string | undefined;
|
|
127
|
-
displayName?: string | undefined;
|
|
128
|
-
avatar?: l.BlobRef | undefined;
|
|
129
|
-
policies?: LabelerDefs.LabelerPolicies | undefined;
|
|
130
|
-
serviceEndpoint: l.UriString;
|
|
131
|
-
$type: "app.standard-reader.labeler.service";
|
|
132
|
-
}>;
|
|
133
|
-
//# sourceMappingURL=service.defs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"service.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/app/standard-reader/labeler/service.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA;AACvC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAA;AAE7C,QAAA,MAAM,KAAK,wCAAwC,CAAA;AAEnD,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,4XAA4X;AAC5X,KAAK,IAAI,GAAG;IACV,KAAK,EAAE,qCAAqC,CAAA;IAE5C;;OAEG;IACH,GAAG,EAAE,CAAC,CAAC,SAAS,CAAA;IAEhB;;OAEG;IACH,eAAe,EAAE,C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
|
3
|
-
*/
|
|
4
|
-
import { l } from '@atproto/lex-schema';
|
|
5
|
-
import * as LabelerDefs from './defs.defs.js';
|
|
6
|
-
const $nsid = 'app.standard-reader.labeler.service';
|
|
7
|
-
export { $nsid };
|
|
8
|
-
/** Registers a Standard Reader labeler. This record is the single source of truth for a labeler: its identity, where to reach its label server, how it presents, and its label-value definitions. Indexed off the network like any other record (the owner of the record is the labeler's author); the label server itself only answers com.atproto.label.queryLabels / subscribeLabels. */
|
|
9
|
-
const main = /*#__PURE__*/ l.record('tid', $nsid,
|
|
10
|
-
/*#__PURE__*/ l.object({
|
|
11
|
-
did: /*#__PURE__*/ l.string({ format: 'did' }),
|
|
12
|
-
serviceEndpoint: /*#__PURE__*/ l.string({ format: 'uri' }),
|
|
13
|
-
displayName: /*#__PURE__*/ l.optional(
|
|
14
|
-
/*#__PURE__*/ l.string({ maxGraphemes: 64, maxLength: 640 })),
|
|
15
|
-
description: /*#__PURE__*/ l.optional(
|
|
16
|
-
/*#__PURE__*/ l.string({ maxGraphemes: 300, maxLength: 3000 })),
|
|
17
|
-
avatar: /*#__PURE__*/ l.optional(
|
|
18
|
-
/*#__PURE__*/ l.blob({
|
|
19
|
-
accept: ['image/png', 'image/jpeg', 'image/svg+xml'],
|
|
20
|
-
maxSize: 1000000,
|
|
21
|
-
})),
|
|
22
|
-
policies: /*#__PURE__*/ l.optional(
|
|
23
|
-
/*#__PURE__*/ l.ref((() => LabelerDefs.labelerPolicies))),
|
|
24
|
-
createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
|
|
25
|
-
}));
|
|
26
|
-
export { main };
|
|
27
|
-
export const $type = $nsid;
|
|
28
|
-
export const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main);
|
|
29
|
-
export const $build = /*#__PURE__*/ main.build.bind(main);
|
|
30
|
-
export const $assert = /*#__PURE__*/ main.assert.bind(main);
|
|
31
|
-
export const $check = /*#__PURE__*/ main.check.bind(main);
|
|
32
|
-
export const $cast = /*#__PURE__*/ main.cast.bind(main);
|
|
33
|
-
export const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main);
|
|
34
|
-
export const $matches = /*#__PURE__*/ main.matches.bind(main);
|
|
35
|
-
export const $parse = /*#__PURE__*/ main.parse.bind(main);
|
|
36
|
-
export const $safeParse = /*#__PURE__*/ main.safeParse.bind(main);
|
|
37
|
-
export const $validate = /*#__PURE__*/ main.validate.bind(main);
|
|
38
|
-
export const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main);
|
|
39
|
-
//# sourceMappingURL=service.defs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"service.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/app/standard-reader/labeler/service.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA;AACvC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAA;AAE7C,MAAM,KAAK,GAAG,qCAAqC,CAAA;AAEnD,OAAO,EAAE,KAAK,EAAE,CAAA;AAwBhB,4XAA4X;AAC5X,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CACjC,KAAK,EACL,KAAK;AACL,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACrB,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAC9C,eAAe,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAC1D,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACnC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,CAC7D;IACD,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACnC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EA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AAM,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/lexicons/app/standard-reader/labeler/service.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,mBAAmB,CAAA;AACjC,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { l } from '@atproto/lex-schema'
|
|
6
|
-
import * as LabelerDefs from './defs.defs.js'
|
|
7
|
-
|
|
8
|
-
const $nsid = 'app.standard-reader.labeler.service'
|
|
9
|
-
|
|
10
|
-
export { $nsid }
|
|
11
|
-
|
|
12
|
-
/** Registers a Standard Reader labeler. This record is the single source of truth for a labeler: its identity, where to reach its label server, how it presents, and its label-value definitions. Indexed off the network like any other record (the owner of the record is the labeler's author); the label server itself only answers com.atproto.label.queryLabels / subscribeLabels. */
|
|
13
|
-
type Main = {
|
|
14
|
-
$type: 'app.standard-reader.labeler.service'
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* DID of the labeler — the `src` on its labels (and whose key signs them).
|
|
18
|
-
*/
|
|
19
|
-
did: l.DidString
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Origin serving this labeler's com.atproto.label.queryLabels / subscribeLabels.
|
|
23
|
-
*/
|
|
24
|
-
serviceEndpoint: l.UriString
|
|
25
|
-
displayName?: string
|
|
26
|
-
description?: string
|
|
27
|
-
avatar?: l.BlobRef
|
|
28
|
-
policies?: LabelerDefs.LabelerPolicies
|
|
29
|
-
createdAt: l.DatetimeString
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export type { Main }
|
|
33
|
-
|
|
34
|
-
/** Registers a Standard Reader labeler. This record is the single source of truth for a labeler: its identity, where to reach its label server, how it presents, and its label-value definitions. Indexed off the network like any other record (the owner of the record is the labeler's author); the label server itself only answers com.atproto.label.queryLabels / subscribeLabels. */
|
|
35
|
-
const main = /*#__PURE__*/ l.record<'tid', Main>(
|
|
36
|
-
'tid',
|
|
37
|
-
$nsid,
|
|
38
|
-
/*#__PURE__*/ l.object({
|
|
39
|
-
did: /*#__PURE__*/ l.string({ format: 'did' }),
|
|
40
|
-
serviceEndpoint: /*#__PURE__*/ l.string({ format: 'uri' }),
|
|
41
|
-
displayName: /*#__PURE__*/ l.optional(
|
|
42
|
-
/*#__PURE__*/ l.string({ maxGraphemes: 64, maxLength: 640 }),
|
|
43
|
-
),
|
|
44
|
-
description: /*#__PURE__*/ l.optional(
|
|
45
|
-
/*#__PURE__*/ l.string({ maxGraphemes: 300, maxLength: 3000 }),
|
|
46
|
-
),
|
|
47
|
-
avatar: /*#__PURE__*/ l.optional(
|
|
48
|
-
/*#__PURE__*/ l.blob({
|
|
49
|
-
accept: ['image/png', 'image/jpeg', 'image/svg+xml'],
|
|
50
|
-
maxSize: 1000000,
|
|
51
|
-
}),
|
|
52
|
-
),
|
|
53
|
-
policies: /*#__PURE__*/ l.optional(
|
|
54
|
-
/*#__PURE__*/ l.ref<LabelerDefs.LabelerPolicies>(
|
|
55
|
-
(() => LabelerDefs.labelerPolicies) as any,
|
|
56
|
-
),
|
|
57
|
-
),
|
|
58
|
-
createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
|
|
59
|
-
}),
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
export { main }
|
|
63
|
-
|
|
64
|
-
export const $type = $nsid
|
|
65
|
-
export const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)
|
|
66
|
-
export const $build = /*#__PURE__*/ main.build.bind(main)
|
|
67
|
-
export const $assert = /*#__PURE__*/ main.assert.bind(main)
|
|
68
|
-
export const $check = /*#__PURE__*/ main.check.bind(main)
|
|
69
|
-
export const $cast = /*#__PURE__*/ main.cast.bind(main)
|
|
70
|
-
export const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main)
|
|
71
|
-
export const $matches = /*#__PURE__*/ main.matches.bind(main)
|
|
72
|
-
export const $parse = /*#__PURE__*/ main.parse.bind(main)
|
|
73
|
-
export const $safeParse = /*#__PURE__*/ main.safeParse.bind(main)
|
|
74
|
-
export const $validate = /*#__PURE__*/ main.validate.bind(main)
|
|
75
|
-
export const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)
|