@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.
Files changed (60) hide show
  1. package/dist/index.d.ts +10 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +4 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/lexicons/app/standard-reader/defs.defs.d.ts +51 -51
  6. package/dist/lexicons/app/standard-reader/defs.defs.d.ts.map +1 -1
  7. package/dist/lexicons/app/standard-reader/defs.defs.js +98 -98
  8. package/dist/lexicons/app/standard-reader/defs.defs.js.map +1 -1
  9. package/dist/lexicons/app/standard-reader/getList.defs.d.ts +4 -4
  10. package/dist/lexicons/app/standard-reader/getList.defs.js +2 -2
  11. package/dist/lexicons/app/standard-reader/getList.defs.js.map +1 -1
  12. package/dist/lexicons/app/standard-reader/getPublication.defs.d.ts +4 -4
  13. package/dist/lexicons/app/standard-reader/getPublication.defs.js +2 -2
  14. package/dist/lexicons/app/standard-reader/getPublication.defs.js.map +1 -1
  15. package/dist/lexicons/app/standard-reader/getTagFeed.defs.d.ts +4 -4
  16. package/dist/lexicons/app/standard-reader/getTagFeed.defs.js +1 -1
  17. package/dist/lexicons/app/standard-reader/getTagFeed.defs.js.map +1 -1
  18. package/dist/lexicons/app/standard-reader/labeler/subscription.defs.d.ts +54 -0
  19. package/dist/lexicons/app/standard-reader/labeler/subscription.defs.d.ts.map +1 -1
  20. package/dist/lexicons/app/standard-reader/labeler/subscription.defs.js +2 -0
  21. package/dist/lexicons/app/standard-reader/labeler/subscription.defs.js.map +1 -1
  22. package/dist/lexicons/app/standard-reader/labeler.d.ts +0 -1
  23. package/dist/lexicons/app/standard-reader/labeler.d.ts.map +1 -1
  24. package/dist/lexicons/app/standard-reader/labeler.js +0 -1
  25. package/dist/lexicons/app/standard-reader/labeler.js.map +1 -1
  26. package/dist/lexicons/app/standard-reader/resolveHandle.defs.d.ts +8 -8
  27. package/dist/lexicons/app/standard-reader/resolveHandle.defs.js +2 -2
  28. package/dist/lexicons/app/standard-reader/resolveHandle.defs.js.map +1 -1
  29. package/dist/lexicons/app/standard-reader/searchDocuments.defs.d.ts +4 -4
  30. package/dist/lexicons/app/standard-reader/searchDocuments.defs.js +1 -1
  31. package/dist/lexicons/app/standard-reader/searchDocuments.defs.js.map +1 -1
  32. package/dist/lexicons/app/standard-reader/searchPublications.defs.d.ts +4 -4
  33. package/dist/lexicons/app/standard-reader/searchPublications.defs.js +1 -1
  34. package/dist/lexicons/app/standard-reader/searchPublications.defs.js.map +1 -1
  35. package/dist/lexicons/app/standard-reader/sidebarPref.defs.d.ts +189 -13
  36. package/dist/lexicons/app/standard-reader/sidebarPref.defs.d.ts.map +1 -1
  37. package/dist/lexicons/app/standard-reader/sidebarPref.defs.js +12 -1
  38. package/dist/lexicons/app/standard-reader/sidebarPref.defs.js.map +1 -1
  39. package/package.json +3 -2
  40. package/src/index.ts +12 -1
  41. package/src/lexicons/app/standard-reader/defs.defs.ts +149 -149
  42. package/src/lexicons/app/standard-reader/getList.defs.ts +2 -2
  43. package/src/lexicons/app/standard-reader/getPublication.defs.ts +2 -2
  44. package/src/lexicons/app/standard-reader/getTagFeed.defs.ts +1 -1
  45. package/src/lexicons/app/standard-reader/labeler/subscription.defs.ts +8 -0
  46. package/src/lexicons/app/standard-reader/labeler.ts +0 -1
  47. package/src/lexicons/app/standard-reader/resolveHandle.defs.ts +2 -2
  48. package/src/lexicons/app/standard-reader/searchDocuments.defs.ts +1 -1
  49. package/src/lexicons/app/standard-reader/searchPublications.defs.ts +1 -1
  50. package/src/lexicons/app/standard-reader/sidebarPref.defs.ts +40 -3
  51. package/dist/lexicons/app/standard-reader/labeler/service.d.ts +0 -3
  52. package/dist/lexicons/app/standard-reader/labeler/service.d.ts.map +0 -1
  53. package/dist/lexicons/app/standard-reader/labeler/service.defs.d.ts +0 -133
  54. package/dist/lexicons/app/standard-reader/labeler/service.defs.d.ts.map +0 -1
  55. package/dist/lexicons/app/standard-reader/labeler/service.defs.js +0 -39
  56. package/dist/lexicons/app/standard-reader/labeler/service.defs.js.map +0 -1
  57. package/dist/lexicons/app/standard-reader/labeler/service.js +0 -6
  58. package/dist/lexicons/app/standard-reader/labeler/service.js.map +0 -1
  59. package/src/lexicons/app/standard-reader/labeler/service.defs.ts +0 -75
  60. package/src/lexicons/app/standard-reader/labeler/service.ts +0 -6
@@ -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 display order of their subscription list groups and which groups are collapsed. A singleton record (rkey `self`). */
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
- * Ordered AT URIs of the reader's list groups (own + saved) as shown top-to-bottom in the sidebar. Groups not present are appended in their default order.
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 display order of their subscription list groups and which groups are collapsed. A singleton record (rkey `self`). */
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,3 +0,0 @@
1
- export * from './service.defs.js';
2
- export { main as default } from './service.defs.js';
3
- //# sourceMappingURL=service.d.ts.map
@@ -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,CAAC,CAAC,SAAS,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,WAAW,CAAC,eAAe,CAAA;IACtC,SAAS,EAAE,CAAC,CAAC,cAAc,CAAA;CAC5B,CAAA;AAED,YAAY,EAAE,IAAI,EAAE,CAAA;AAEpB,4XAA4X;AAC5X,QAAA,MAAM,IAAI,qHAyBT,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,eAAO,MAAM,KAAK,wCAAQ,CAAA;AAC1B,eAAO,MAAM,SAAS;SAPI,CAAC;0FAOoC,CAAA;AAC/D,eAAO,MAAM,MAAM;;aA/CZ,CAAC,CAAC,SAAS;mBAUL,CAAC,CAAC,cAAc;sBAHb,MAAM;sBADN,MAAM;iBAEX,CAAC,CAAC,OAAO;mBACP,WAAW,CAAC,eAAe;yBAJrB,CAAC,CAAC,SAAS;;;;aALvB,CAAC,CAAC,SAAS;mBAUL,CAA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AAO;eACP,WAAW,CAAC,eAAe;qBAJrB,CAAC,CAAC,SAAS;;EAiDmC,CAAA;AACjE,eAAO,MAAM,SAAS;SAvDf,CAAC,CAAC,SAAS;eAUL,CAAC,CAAC,cAAc;kBAHb,MAAM;kBADN,MAAM;aAEX,CAAC,CAAC,OAAO;eACP,WAAW,CAAC,eAAe;qBAJrB,CAAC,CAAC,SAAS;;CAkDiC,CAAA;AAC/D,eAAO,MAAM,aAAa;SAxDnB,CAAC,CAAC,SAAS;eAUL,CAAC,CAAC,cAAc;kBAHb,MAAM;kBADN,MAAM;aAEX,CAAC,CAAC,OAAO;eACP,WAAW,CAAC,eAAe;qBAJrB,CAAC,CAAC,SAAS;;EAmDyC,CAAA"}
@@ -1,39 +0,0 @@
1
- /*
2
- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
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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AC,MAAM,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACvD,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"}
@@ -1,6 +0,0 @@
1
- /*
2
- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
3
- */
4
- export * from './service.defs.js';
5
- export { main as default } from './service.defs.js';
6
- //# sourceMappingURL=service.js.map
@@ -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)
@@ -1,6 +0,0 @@
1
- /*
2
- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
3
- */
4
-
5
- export * from './service.defs.js'
6
- export { main as default } from './service.defs.js'