@atcute/frontpage 1.0.5 → 2.0.1

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 (57) hide show
  1. package/README.md +6 -10
  2. package/dist/index.d.ts +1 -1
  3. package/dist/lexicons/index.d.ts +10 -3
  4. package/dist/lexicons/index.d.ts.map +1 -1
  5. package/dist/lexicons/index.js +7 -0
  6. package/dist/lexicons/index.js.map +1 -1
  7. package/dist/lexicons/types/fyi/frontpage/feed/comment.d.ts +30 -0
  8. package/dist/lexicons/types/fyi/frontpage/feed/comment.d.ts.map +1 -0
  9. package/dist/lexicons/types/fyi/frontpage/feed/comment.js +29 -0
  10. package/dist/lexicons/types/fyi/frontpage/feed/comment.js.map +1 -0
  11. package/dist/lexicons/types/fyi/frontpage/feed/describeFeedGenerator.d.ts +45 -0
  12. package/dist/lexicons/types/fyi/frontpage/feed/describeFeedGenerator.d.ts.map +1 -0
  13. package/dist/lexicons/types/fyi/frontpage/feed/describeFeedGenerator.js +29 -0
  14. package/dist/lexicons/types/fyi/frontpage/feed/describeFeedGenerator.js.map +1 -0
  15. package/dist/lexicons/types/fyi/frontpage/feed/generator.d.ts +47 -0
  16. package/dist/lexicons/types/fyi/frontpage/feed/generator.d.ts.map +1 -0
  17. package/dist/lexicons/types/fyi/frontpage/feed/generator.js +45 -0
  18. package/dist/lexicons/types/fyi/frontpage/feed/generator.js.map +1 -0
  19. package/dist/lexicons/types/fyi/frontpage/feed/getFeedSkeleton.d.ts +52 -0
  20. package/dist/lexicons/types/fyi/frontpage/feed/getFeedSkeleton.d.ts.map +1 -0
  21. package/dist/lexicons/types/fyi/frontpage/feed/getFeedSkeleton.js +41 -0
  22. package/dist/lexicons/types/fyi/frontpage/feed/getFeedSkeleton.js.map +1 -0
  23. package/dist/lexicons/types/fyi/frontpage/feed/post.d.ts +41 -0
  24. package/dist/lexicons/types/fyi/frontpage/feed/post.d.ts.map +1 -0
  25. package/dist/lexicons/types/fyi/frontpage/feed/post.js +32 -0
  26. package/dist/lexicons/types/fyi/frontpage/feed/post.js.map +1 -0
  27. package/dist/lexicons/types/fyi/frontpage/feed/vote.d.ts +26 -0
  28. package/dist/lexicons/types/fyi/frontpage/feed/vote.d.ts.map +1 -0
  29. package/dist/lexicons/types/fyi/frontpage/feed/vote.js +19 -0
  30. package/dist/lexicons/types/fyi/frontpage/feed/vote.js.map +1 -0
  31. package/dist/lexicons/types/fyi/frontpage/richtext/block.d.ts +27 -0
  32. package/dist/lexicons/types/fyi/frontpage/richtext/block.d.ts.map +1 -0
  33. package/dist/lexicons/types/fyi/frontpage/richtext/block.js +21 -0
  34. package/dist/lexicons/types/fyi/frontpage/richtext/block.js.map +1 -0
  35. package/dist/lexicons/types/fyi/unravel/frontpage/comment.d.ts +1 -1
  36. package/dist/lexicons/types/fyi/unravel/frontpage/comment.d.ts.map +1 -1
  37. package/dist/lexicons/types/fyi/unravel/frontpage/comment.js +1 -1
  38. package/dist/lexicons/types/fyi/unravel/frontpage/comment.js.map +1 -1
  39. package/dist/lexicons/types/fyi/unravel/frontpage/post.d.ts.map +1 -1
  40. package/dist/lexicons/types/fyi/unravel/frontpage/post.js.map +1 -1
  41. package/dist/lexicons/types/fyi/unravel/frontpage/vote.d.ts +1 -1
  42. package/dist/lexicons/types/fyi/unravel/frontpage/vote.d.ts.map +1 -1
  43. package/dist/lexicons/types/fyi/unravel/frontpage/vote.js +1 -1
  44. package/dist/lexicons/types/fyi/unravel/frontpage/vote.js.map +1 -1
  45. package/lib/index.ts +1 -1
  46. package/lib/lexicons/index.ts +10 -3
  47. package/lib/lexicons/types/fyi/frontpage/feed/comment.ts +46 -0
  48. package/lib/lexicons/types/fyi/frontpage/feed/describeFeedGenerator.ts +52 -0
  49. package/lib/lexicons/types/fyi/frontpage/feed/generator.ts +62 -0
  50. package/lib/lexicons/types/fyi/frontpage/feed/getFeedSkeleton.ts +64 -0
  51. package/lib/lexicons/types/fyi/frontpage/feed/post.ts +51 -0
  52. package/lib/lexicons/types/fyi/frontpage/feed/vote.ts +35 -0
  53. package/lib/lexicons/types/fyi/frontpage/richtext/block.ts +32 -0
  54. package/lib/lexicons/types/fyi/unravel/frontpage/comment.ts +2 -2
  55. package/lib/lexicons/types/fyi/unravel/frontpage/post.ts +1 -1
  56. package/lib/lexicons/types/fyi/unravel/frontpage/vote.ts +2 -2
  57. package/package.json +17 -11
package/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  [Frontpage](https://frontpage.fyi/) (fyi.unravel.frontpage.\*) schema definitions
4
4
 
5
+ ```sh
6
+ npm install @atcute/frontpage
7
+ ```
8
+
5
9
  ## usage
6
10
 
7
11
  ```ts
@@ -44,7 +48,7 @@ import type {} from '@atcute/frontpage';
44
48
 
45
49
  now all the XRPC operations should be visible in the client
46
50
 
47
- ## with `@atcute/lex-cli`
51
+ ### with `@atcute/lex-cli`
48
52
 
49
53
  when building your own lexicons that reference Frontpage types, configure lex-cli to import from
50
54
  this package:
@@ -56,14 +60,6 @@ import { defineLexiconConfig } from '@atcute/lex-cli';
56
60
  export default defineLexiconConfig({
57
61
  files: ['lexicons/**/*.json'],
58
62
  outdir: 'src/lexicons/',
59
- mappings: [
60
- {
61
- nsid: ['fyi.unravel.frontpage.*'],
62
- imports: (nsid) => {
63
- const specifier = nsid.slice('fyi.unravel.frontpage.'.length).replaceAll('.', '/');
64
- return { type: 'namespace', from: `@atcute/frontpage/types/${specifier}` };
65
- },
66
- },
67
- ],
63
+ imports: ['@atcute/frontpage'],
68
64
  });
69
65
  ```
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './lexicons/index.js';
1
+ export * from './lexicons/index.ts';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,11 @@
1
- export * as FyiUnravelFrontpageComment from './types/fyi/unravel/frontpage/comment.js';
2
- export * as FyiUnravelFrontpagePost from './types/fyi/unravel/frontpage/post.js';
3
- export * as FyiUnravelFrontpageVote from './types/fyi/unravel/frontpage/vote.js';
1
+ export * as FyiFrontpageFeedComment from './types/fyi/frontpage/feed/comment.ts';
2
+ export * as FyiFrontpageFeedDescribeFeedGenerator from './types/fyi/frontpage/feed/describeFeedGenerator.ts';
3
+ export * as FyiFrontpageFeedGenerator from './types/fyi/frontpage/feed/generator.ts';
4
+ export * as FyiFrontpageFeedGetFeedSkeleton from './types/fyi/frontpage/feed/getFeedSkeleton.ts';
5
+ export * as FyiFrontpageFeedPost from './types/fyi/frontpage/feed/post.ts';
6
+ export * as FyiFrontpageFeedVote from './types/fyi/frontpage/feed/vote.ts';
7
+ export * as FyiFrontpageRichtextBlock from './types/fyi/frontpage/richtext/block.ts';
8
+ export * as FyiUnravelFrontpageComment from './types/fyi/unravel/frontpage/comment.ts';
9
+ export * as FyiUnravelFrontpagePost from './types/fyi/unravel/frontpage/post.ts';
10
+ export * as FyiUnravelFrontpageVote from './types/fyi/unravel/frontpage/vote.ts';
4
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/lexicons/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,0BAA0B,MAAM,0CAA0C,CAAC;AACvF,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/lexicons/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,qCAAqC,MAAM,qDAAqD,CAAC;AAC7G,OAAO,KAAK,yBAAyB,MAAM,yCAAyC,CAAC;AACrF,OAAO,KAAK,+BAA+B,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,yBAAyB,MAAM,yCAAyC,CAAC;AACrF,OAAO,KAAK,0BAA0B,MAAM,0CAA0C,CAAC;AACvF,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC"}
@@ -1,3 +1,10 @@
1
+ export * as FyiFrontpageFeedComment from './types/fyi/frontpage/feed/comment.js';
2
+ export * as FyiFrontpageFeedDescribeFeedGenerator from './types/fyi/frontpage/feed/describeFeedGenerator.js';
3
+ export * as FyiFrontpageFeedGenerator from './types/fyi/frontpage/feed/generator.js';
4
+ export * as FyiFrontpageFeedGetFeedSkeleton from './types/fyi/frontpage/feed/getFeedSkeleton.js';
5
+ export * as FyiFrontpageFeedPost from './types/fyi/frontpage/feed/post.js';
6
+ export * as FyiFrontpageFeedVote from './types/fyi/frontpage/feed/vote.js';
7
+ export * as FyiFrontpageRichtextBlock from './types/fyi/frontpage/richtext/block.js';
1
8
  export * as FyiUnravelFrontpageComment from './types/fyi/unravel/frontpage/comment.js';
2
9
  export * as FyiUnravelFrontpagePost from './types/fyi/unravel/frontpage/post.js';
3
10
  export * as FyiUnravelFrontpageVote from './types/fyi/unravel/frontpage/vote.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/lexicons/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,0BAA0B,MAAM,0CAA0C,CAAC;AACvF,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/lexicons/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,qCAAqC,MAAM,qDAAqD,CAAC;AAC7G,OAAO,KAAK,yBAAyB,MAAM,yCAAyC,CAAC;AACrF,OAAO,KAAK,+BAA+B,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,yBAAyB,MAAM,yCAAyC,CAAC;AACrF,OAAO,KAAK,0BAA0B,MAAM,0CAA0C,CAAC;AACvF,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,uBAAuB,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
2
+ import * as v from '@atcute/lexicons/validations';
3
+ import * as FyiFrontpageRichtextBlock from '../richtext/block.ts';
4
+ declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
5
+ $type: v.LiteralSchema<"fyi.frontpage.feed.comment">;
6
+ /**
7
+ * The content of the comment. Note, there are additional constraints placed on the total size of the content within the Frontpage AppView that are not possible to express in lexicon. Generally a comment can have a maximum length of 10,000 graphemes, the Frontpage AppView will enforce this limit.
8
+ * @maxLength 200
9
+ */
10
+ readonly blocks: v.SchemaWithConstraint<v.ArraySchema<FyiFrontpageRichtextBlock.mainSchema>, readonly [v.ArrayLengthConstraint<0, 200>]>;
11
+ /**
12
+ * Client-declared timestamp when this comment was originally created.
13
+ */
14
+ createdAt: v.FormattedStringSchema<"datetime">;
15
+ readonly parent: v.OptionalSchema<ComAtprotoRepoStrongRef.mainSchema, undefined>;
16
+ readonly post: ComAtprotoRepoStrongRef.mainSchema;
17
+ }>, v.FormattedStringSchema<"tid">>;
18
+ type main$schematype = typeof _mainSchema;
19
+ export interface mainSchema extends main$schematype {
20
+ }
21
+ export declare const mainSchema: mainSchema;
22
+ export interface Main extends v.InferInput<typeof mainSchema> {
23
+ }
24
+ declare module '@atcute/lexicons/ambient' {
25
+ interface Records {
26
+ 'fyi.frontpage.feed.comment': mainSchema;
27
+ }
28
+ }
29
+ export {};
30
+ //# sourceMappingURL=comment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/frontpage/feed/comment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAGhF,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,yBAAyB,MAAM,sBAAsB,CAAC;AAElE,QAAA,MAAM,WAAW;;IAIf;;;OAGG;;IAMH;;OAEG;;;;mCASJ,CAAC;AAEF,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,OAAO,QAAQ,0BAA0B,CAAC,CAAC;IAC1C,UAAU,OAAO;QAChB,4BAA4B,EAAE,UAAU,CAAC;KACzC;CACD"}
@@ -0,0 +1,29 @@
1
+ import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
2
+ import * as v from '@atcute/lexicons/validations';
3
+ import * as FyiFrontpageRichtextBlock from '../richtext/block.js';
4
+ const _mainSchema = /*#__PURE__*/ v.record(
5
+ /*#__PURE__*/ v.tidString(),
6
+ /*#__PURE__*/ v.object({
7
+ $type: /*#__PURE__*/ v.literal('fyi.frontpage.feed.comment'),
8
+ /**
9
+ * The content of the comment. Note, there are additional constraints placed on the total size of the content within the Frontpage AppView that are not possible to express in lexicon. Generally a comment can have a maximum length of 10,000 graphemes, the Frontpage AppView will enforce this limit.
10
+ * @maxLength 200
11
+ */
12
+ get blocks() {
13
+ return /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(FyiFrontpageRichtextBlock.mainSchema), [
14
+ /*#__PURE__*/ v.arrayLength(0, 200),
15
+ ]);
16
+ },
17
+ /**
18
+ * Client-declared timestamp when this comment was originally created.
19
+ */
20
+ createdAt: /*#__PURE__*/ v.datetimeString(),
21
+ get parent() {
22
+ return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema);
23
+ },
24
+ get post() {
25
+ return ComAtprotoRepoStrongRef.mainSchema;
26
+ },
27
+ }));
28
+ export const mainSchema = _mainSchema;
29
+ //# sourceMappingURL=comment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/frontpage/feed/comment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAGhF,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,yBAAyB,MAAM,sBAAsB,CAAC;AAElE,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC;IAC5D;;;OAGG;IACH,IAAI,MAAM;QACT,OAAO,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,EAAE;YAC7F,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,EAAE,GAAG,CAAC;SACnC,CAAC,CAAC;IACJ,CAAC;IACD;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C,IAAI,MAAM;QACT,OAAO,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;IACrE,CAAC;IACD,IAAI,IAAI;QACP,OAAO,uBAAuB,CAAC,UAAU,CAAC;IAC3C,CAAC;CACD,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
@@ -0,0 +1,45 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ declare const _feedSchema: v.ObjectSchema<{
3
+ $type: v.OptionalSchema<v.LiteralSchema<"fyi.frontpage.feed.describeFeedGenerator#feed">, undefined>;
4
+ uri: v.FormattedStringSchema<"at-uri">;
5
+ }>;
6
+ declare const _linksSchema: v.ObjectSchema<{
7
+ $type: v.OptionalSchema<v.LiteralSchema<"fyi.frontpage.feed.describeFeedGenerator#links">, undefined>;
8
+ privacyPolicy: v.OptionalSchema<v.StringSchema<string>, undefined>;
9
+ termsOfService: v.OptionalSchema<v.StringSchema<string>, undefined>;
10
+ }>;
11
+ declare const _mainSchema: v.XRPCQueryMetadata<null, {
12
+ type: "lex";
13
+ schema: v.ObjectSchema<{
14
+ did: v.FormattedStringSchema<"did">;
15
+ readonly feeds: v.ArraySchema<feedSchema>;
16
+ readonly links: v.OptionalSchema<linksSchema, undefined>;
17
+ }>;
18
+ }, "fyi.frontpage.feed.describeFeedGenerator">;
19
+ type feed$schematype = typeof _feedSchema;
20
+ type links$schematype = typeof _linksSchema;
21
+ type main$schematype = typeof _mainSchema;
22
+ export interface feedSchema extends feed$schematype {
23
+ }
24
+ export interface linksSchema extends links$schematype {
25
+ }
26
+ export interface mainSchema extends main$schematype {
27
+ }
28
+ export declare const feedSchema: feedSchema;
29
+ export declare const linksSchema: linksSchema;
30
+ export declare const mainSchema: mainSchema;
31
+ export interface Feed extends v.InferInput<typeof feedSchema> {
32
+ }
33
+ export interface Links extends v.InferInput<typeof linksSchema> {
34
+ }
35
+ export interface $params {
36
+ }
37
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {
38
+ }
39
+ declare module '@atcute/lexicons/ambient' {
40
+ interface XRPCQueries {
41
+ 'fyi.frontpage.feed.describeFeedGenerator': mainSchema;
42
+ }
43
+ }
44
+ export {};
45
+ //# sourceMappingURL=describeFeedGenerator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"describeFeedGenerator.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/frontpage/feed/describeFeedGenerator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;;;EAGf,CAAC;AACH,QAAA,MAAM,YAAY;;;;EAIhB,CAAC;AACH,QAAA,MAAM,WAAW;;;;;;;8CAcf,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAC1C,KAAK,gBAAgB,GAAG,OAAO,YAAY,CAAC;AAC5C,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AACtD,MAAM,WAAW,WAAY,SAAQ,gBAAgB;CAAG;AACxD,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AACpD,eAAO,MAAM,WAAW,EAAmB,WAAW,CAAC;AACvD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAChE,MAAM,WAAW,KAAM,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,WAAW,CAAC;CAAG;AAElE,MAAM,WAAW,OAAO;CAAG;AAC3B,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,kBAAkB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;CAAG;AAE9E,OAAO,QAAQ,0BAA0B,CAAC,CAAC;IAC1C,UAAU,WAAW;QACpB,0CAA0C,EAAE,UAAU,CAAC;KACvD;CACD"}
@@ -0,0 +1,29 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ const _feedSchema = /*#__PURE__*/ v.object({
3
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('fyi.frontpage.feed.describeFeedGenerator#feed')),
4
+ uri: /*#__PURE__*/ v.resourceUriString(),
5
+ });
6
+ const _linksSchema = /*#__PURE__*/ v.object({
7
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('fyi.frontpage.feed.describeFeedGenerator#links')),
8
+ privacyPolicy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
9
+ termsOfService: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
10
+ });
11
+ const _mainSchema = /*#__PURE__*/ v.query('fyi.frontpage.feed.describeFeedGenerator', {
12
+ params: null,
13
+ output: {
14
+ type: 'lex',
15
+ schema: /*#__PURE__*/ v.object({
16
+ did: /*#__PURE__*/ v.didString(),
17
+ get feeds() {
18
+ return /*#__PURE__*/ v.array(feedSchema);
19
+ },
20
+ get links() {
21
+ return /*#__PURE__*/ v.optional(linksSchema);
22
+ },
23
+ }),
24
+ },
25
+ });
26
+ export const feedSchema = _feedSchema;
27
+ export const linksSchema = _linksSchema;
28
+ export const mainSchema = _mainSchema;
29
+ //# sourceMappingURL=describeFeedGenerator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"describeFeedGenerator.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/frontpage/feed/describeFeedGenerator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,+CAA+C,CAAC,CAAC;IACzG,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE;CACxC,CAAC,CAAC;AACH,MAAM,YAAY,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC3C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,gDAAgD,CAAC,CAAC;IAC1G,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACjE,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAClE,CAAC,CAAC;AACH,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,0CAA0C,EAAE;IACrF,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE;QACP,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9B,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;YAChC,IAAI,KAAK;gBACR,OAAO,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YAC1C,CAAC;YACD,IAAI,KAAK;gBACR,OAAO,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;YAC9C,CAAC;SACD,CAAC;KACF;CACD,CAAC,CAAC;AAUH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC;AACpD,MAAM,CAAC,MAAM,WAAW,GAAG,YAA2B,CAAC;AACvD,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
@@ -0,0 +1,47 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
3
+ $type: v.LiteralSchema<"fyi.frontpage.feed.generator">;
4
+ /**
5
+ * Whether the feed generator accepts interaction feedback.
6
+ */
7
+ acceptsInteractions: v.OptionalSchema<v.BooleanSchema, undefined>;
8
+ /**
9
+ * Avatar image for the feed.
10
+ * @accept image/png, image/jpeg
11
+ * @maxSize 1000000
12
+ */
13
+ avatar: v.OptionalSchema<v.BlobSchema, undefined>;
14
+ /**
15
+ * Client-declared timestamp when this generator was created.
16
+ */
17
+ createdAt: v.FormattedStringSchema<"datetime">;
18
+ /**
19
+ * Description of the feed.
20
+ * @maxLength 3000
21
+ * @maxGraphemes 300
22
+ */
23
+ description: v.OptionalSchema<v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<0, 3000>, v.StringGraphemesConstraint<0, 300>]>, undefined>;
24
+ /**
25
+ * DID of the feed generator service.
26
+ */
27
+ did: v.FormattedStringSchema<"did">;
28
+ /**
29
+ * Display name for the feed.
30
+ * @maxLength 320
31
+ * @maxGraphemes 32
32
+ */
33
+ displayName: v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<0, 320>, v.StringGraphemesConstraint<0, 32>]>;
34
+ }>, v.StringSchema<string>>;
35
+ type main$schematype = typeof _mainSchema;
36
+ export interface mainSchema extends main$schematype {
37
+ }
38
+ export declare const mainSchema: mainSchema;
39
+ export interface Main extends v.InferInput<typeof mainSchema> {
40
+ }
41
+ declare module '@atcute/lexicons/ambient' {
42
+ interface Records {
43
+ 'fyi.frontpage.feed.generator': mainSchema;
44
+ }
45
+ }
46
+ export {};
47
+ //# sourceMappingURL=generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/frontpage/feed/generator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;;IAIf;;OAEG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAOH;;OAEG;;IAEH;;;;OAIG;;2BAMJ,CAAC;AAEF,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,OAAO,QAAQ,0BAA0B,CAAC,CAAC;IAC1C,UAAU,OAAO;QAChB,8BAA8B,EAAE,UAAU,CAAC;KAC3C;CACD"}
@@ -0,0 +1,45 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ const _mainSchema = /*#__PURE__*/ v.record(
3
+ /*#__PURE__*/ v.string(),
4
+ /*#__PURE__*/ v.object({
5
+ $type: /*#__PURE__*/ v.literal('fyi.frontpage.feed.generator'),
6
+ /**
7
+ * Whether the feed generator accepts interaction feedback.
8
+ */
9
+ acceptsInteractions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
10
+ /**
11
+ * Avatar image for the feed.
12
+ * @accept image/png, image/jpeg
13
+ * @maxSize 1000000
14
+ */
15
+ avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()),
16
+ /**
17
+ * Client-declared timestamp when this generator was created.
18
+ */
19
+ createdAt: /*#__PURE__*/ v.datetimeString(),
20
+ /**
21
+ * Description of the feed.
22
+ * @maxLength 3000
23
+ * @maxGraphemes 300
24
+ */
25
+ description: /*#__PURE__*/ v.optional(
26
+ /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
27
+ /*#__PURE__*/ v.stringLength(0, 3000),
28
+ /*#__PURE__*/ v.stringGraphemes(0, 300),
29
+ ])),
30
+ /**
31
+ * DID of the feed generator service.
32
+ */
33
+ did: /*#__PURE__*/ v.didString(),
34
+ /**
35
+ * Display name for the feed.
36
+ * @maxLength 320
37
+ * @maxGraphemes 32
38
+ */
39
+ displayName: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
40
+ /*#__PURE__*/ v.stringLength(0, 320),
41
+ /*#__PURE__*/ v.stringGraphemes(0, 32),
42
+ ]),
43
+ }));
44
+ export const mainSchema = _mainSchema;
45
+ //# sourceMappingURL=generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/frontpage/feed/generator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;AACxB,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAAC;IAC9D;;OAEG;IACH,mBAAmB,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IACxE;;;;OAIG;IACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IACxD;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C;;;;OAIG;IACH,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACpC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE;QACnD,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC;QACrC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EAAE,GAAG,CAAC;KACvC,CAAC,CACF;IACD;;OAEG;IACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;IAChC;;;;OAIG;IACH,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE;QAChE,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC;QACpC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EAAE,EAAE,CAAC;KACtC,CAAC;CACF,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
@@ -0,0 +1,52 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ declare const _mainSchema: v.XRPCQueryMetadata<v.ObjectSchema<{
3
+ /**
4
+ * Pagination cursor.
5
+ */
6
+ cursor: v.OptionalSchema<v.StringSchema<string>, undefined>;
7
+ /**
8
+ * AT URI of the feed generator record.
9
+ */
10
+ feed: v.FormattedStringSchema<"at-uri">;
11
+ /**
12
+ * Maximum number of items to return.
13
+ * @minimum 1
14
+ * @maximum 100
15
+ * @default 50
16
+ */
17
+ limit: v.OptionalSchema<v.SchemaWithConstraint<v.IntegerSchema, readonly [v.IntegerRangeConstraint<1, 100>]>, 50>;
18
+ }>, {
19
+ type: "lex";
20
+ schema: v.ObjectSchema<{
21
+ cursor: v.OptionalSchema<v.StringSchema<string>, undefined>;
22
+ readonly feed: v.ArraySchema<skeletonFeedPostSchema>;
23
+ }>;
24
+ }, "fyi.frontpage.feed.getFeedSkeleton">;
25
+ declare const _skeletonFeedPostSchema: v.ObjectSchema<{
26
+ $type: v.OptionalSchema<v.LiteralSchema<"fyi.frontpage.feed.getFeedSkeleton#skeletonFeedPost">, undefined>;
27
+ /**
28
+ * AT URI of the post.
29
+ */
30
+ post: v.FormattedStringSchema<"at-uri">;
31
+ }>;
32
+ type main$schematype = typeof _mainSchema;
33
+ type skeletonFeedPost$schematype = typeof _skeletonFeedPostSchema;
34
+ export interface mainSchema extends main$schematype {
35
+ }
36
+ export interface skeletonFeedPostSchema extends skeletonFeedPost$schematype {
37
+ }
38
+ export declare const mainSchema: mainSchema;
39
+ export declare const skeletonFeedPostSchema: skeletonFeedPostSchema;
40
+ export interface SkeletonFeedPost extends v.InferInput<typeof skeletonFeedPostSchema> {
41
+ }
42
+ export interface $params extends v.InferInput<mainSchema['params']> {
43
+ }
44
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {
45
+ }
46
+ declare module '@atcute/lexicons/ambient' {
47
+ interface XRPCQueries {
48
+ 'fyi.frontpage.feed.getFeedSkeleton': mainSchema;
49
+ }
50
+ }
51
+ export {};
52
+ //# sourceMappingURL=getFeedSkeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFeedSkeleton.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/frontpage/feed/getFeedSkeleton.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;IAEf;;OAEG;;IAEH;;OAEG;;IAEH;;;;;OAKG;;;;;;;;wCAeH,CAAC;AACH,QAAA,MAAM,uBAAuB;;IAI5B;;OAEG;;EAEF,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAC1C,KAAK,2BAA2B,GAAG,OAAO,uBAAuB,CAAC;AAElE,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AACtD,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;CAAG;AAE9E,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AACpD,eAAO,MAAM,sBAAsB,EAA8B,sBAAsB,CAAC;AAExF,MAAM,WAAW,gBAAiB,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC;CAAG;AAExF,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;CAAG;AACtE,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,kBAAkB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;CAAG;AAE9E,OAAO,QAAQ,0BAA0B,CAAC,CAAC;IAC1C,UAAU,WAAW;QACpB,oCAAoC,EAAE,UAAU,CAAC;KACjD;CACD"}
@@ -0,0 +1,41 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ const _mainSchema = /*#__PURE__*/ v.query('fyi.frontpage.feed.getFeedSkeleton', {
3
+ params: /*#__PURE__*/ v.object({
4
+ /**
5
+ * Pagination cursor.
6
+ */
7
+ cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
8
+ /**
9
+ * AT URI of the feed generator record.
10
+ */
11
+ feed: /*#__PURE__*/ v.resourceUriString(),
12
+ /**
13
+ * Maximum number of items to return.
14
+ * @minimum 1
15
+ * @maximum 100
16
+ * @default 50
17
+ */
18
+ limit: /*#__PURE__*/ v.optional(
19
+ /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 50),
20
+ }),
21
+ output: {
22
+ type: 'lex',
23
+ schema: /*#__PURE__*/ v.object({
24
+ cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
25
+ get feed() {
26
+ return /*#__PURE__*/ v.array(skeletonFeedPostSchema);
27
+ },
28
+ }),
29
+ },
30
+ });
31
+ const _skeletonFeedPostSchema = /*#__PURE__*/ v.object({
32
+ $type: /*#__PURE__*/ v.optional(
33
+ /*#__PURE__*/ v.literal('fyi.frontpage.feed.getFeedSkeleton#skeletonFeedPost')),
34
+ /**
35
+ * AT URI of the post.
36
+ */
37
+ post: /*#__PURE__*/ v.resourceUriString(),
38
+ });
39
+ export const mainSchema = _mainSchema;
40
+ export const skeletonFeedPostSchema = _skeletonFeedPostSchema;
41
+ //# sourceMappingURL=getFeedSkeleton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFeedSkeleton.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/frontpage/feed/getFeedSkeleton.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,oCAAoC,EAAE;IAC/E,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;QAC9B;;WAEG;QACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;QAC1D;;WAEG;QACH,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE;QACzC;;;;;WAKG;QACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;QAC9B,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAC5F,EAAE,CACF;KACD,CAAC;IACF,MAAM,EAAE;QACP,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;YAC9B,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;YAC1D,IAAI,IAAI;gBACP,OAAO,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;YACtD,CAAC;SACD,CAAC;KACF;CACD,CAAC,CAAC;AACH,MAAM,uBAAuB,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC9B,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,qDAAqD,CAAC,CAC9E;IACD;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE;CACzC,CAAC,CAAC;AAQH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC;AACpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAiD,CAAC"}
@@ -0,0 +1,41 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
3
+ $type: v.LiteralSchema<"fyi.frontpage.feed.post">;
4
+ /**
5
+ * Client-declared timestamp when this post was originally created.
6
+ */
7
+ createdAt: v.FormattedStringSchema<"datetime">;
8
+ /**
9
+ * The piece of content that this Frontpage post is about.
10
+ */
11
+ readonly subject: v.VariantSchema<readonly [urlSubjectSchema], boolean>;
12
+ /**
13
+ * The title of the post.
14
+ * @maxLength 3000
15
+ * @maxGraphemes 300
16
+ */
17
+ title: v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<0, 3000>, v.StringGraphemesConstraint<0, 300>]>;
18
+ }>, v.FormattedStringSchema<"tid">>;
19
+ declare const _urlSubjectSchema: v.ObjectSchema<{
20
+ $type: v.OptionalSchema<v.LiteralSchema<"fyi.frontpage.feed.post#urlSubject">, undefined>;
21
+ url: v.FormattedStringSchema<"uri">;
22
+ }>;
23
+ type main$schematype = typeof _mainSchema;
24
+ type urlSubject$schematype = typeof _urlSubjectSchema;
25
+ export interface mainSchema extends main$schematype {
26
+ }
27
+ export interface urlSubjectSchema extends urlSubject$schematype {
28
+ }
29
+ export declare const mainSchema: mainSchema;
30
+ export declare const urlSubjectSchema: urlSubjectSchema;
31
+ export interface Main extends v.InferInput<typeof mainSchema> {
32
+ }
33
+ export interface UrlSubject extends v.InferInput<typeof urlSubjectSchema> {
34
+ }
35
+ declare module '@atcute/lexicons/ambient' {
36
+ interface Records {
37
+ 'fyi.frontpage.feed.post': mainSchema;
38
+ }
39
+ }
40
+ export {};
41
+ //# sourceMappingURL=post.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/frontpage/feed/post.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;;IAIf;;OAEG;;IAEH;;OAEG;;IAIH;;;;OAIG;;mCAMJ,CAAC;AACF,QAAA,MAAM,iBAAiB;;;EAGrB,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAC1C,KAAK,qBAAqB,GAAG,OAAO,iBAAiB,CAAC;AAEtD,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AACtD,MAAM,WAAW,gBAAiB,SAAQ,qBAAqB;CAAG;AAElE,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AACpD,eAAO,MAAM,gBAAgB,EAAwB,gBAAgB,CAAC;AAEtE,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAChE,MAAM,WAAW,UAAW,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAE5E,OAAO,QAAQ,0BAA0B,CAAC,CAAC;IAC1C,UAAU,OAAO;QAChB,yBAAyB,EAAE,UAAU,CAAC;KACtC;CACD"}
@@ -0,0 +1,32 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ const _mainSchema = /*#__PURE__*/ v.record(
3
+ /*#__PURE__*/ v.tidString(),
4
+ /*#__PURE__*/ v.object({
5
+ $type: /*#__PURE__*/ v.literal('fyi.frontpage.feed.post'),
6
+ /**
7
+ * Client-declared timestamp when this post was originally created.
8
+ */
9
+ createdAt: /*#__PURE__*/ v.datetimeString(),
10
+ /**
11
+ * The piece of content that this Frontpage post is about.
12
+ */
13
+ get subject() {
14
+ return /*#__PURE__*/ v.variant([urlSubjectSchema]);
15
+ },
16
+ /**
17
+ * The title of the post.
18
+ * @maxLength 3000
19
+ * @maxGraphemes 300
20
+ */
21
+ title: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
22
+ /*#__PURE__*/ v.stringLength(0, 3000),
23
+ /*#__PURE__*/ v.stringGraphemes(0, 300),
24
+ ]),
25
+ }));
26
+ const _urlSubjectSchema = /*#__PURE__*/ v.object({
27
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('fyi.frontpage.feed.post#urlSubject')),
28
+ url: /*#__PURE__*/ v.genericUriString(),
29
+ });
30
+ export const mainSchema = _mainSchema;
31
+ export const urlSubjectSchema = _urlSubjectSchema;
32
+ //# sourceMappingURL=post.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/frontpage/feed/post.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAAC;IACzD;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C;;OAEG;IACH,IAAI,OAAO;QACV,OAAO,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACpD,CAAC;IACD;;;;OAIG;IACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE;QAC1D,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC;QACrC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EAAE,GAAG,CAAC;KACvC,CAAC;CACF,CAAC,CACF,CAAC;AACF,MAAM,iBAAiB,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,oCAAoC,CAAC,CAAC;IAC9F,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,gBAAgB,EAAE;CACvC,CAAC,CAAC;AAQH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC;AACpD,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAqC,CAAC"}
@@ -0,0 +1,26 @@
1
+ import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
2
+ import * as v from '@atcute/lexicons/validations';
3
+ declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
4
+ $type: v.LiteralSchema<"fyi.frontpage.feed.vote">;
5
+ /**
6
+ * Client-declared timestamp when this vote was originally created.
7
+ */
8
+ createdAt: v.FormattedStringSchema<"datetime">;
9
+ /**
10
+ * The post or comment that this Frontpage vote is for.
11
+ */
12
+ readonly subject: ComAtprotoRepoStrongRef.mainSchema;
13
+ }>, v.FormattedStringSchema<"tid">>;
14
+ type main$schematype = typeof _mainSchema;
15
+ export interface mainSchema extends main$schematype {
16
+ }
17
+ export declare const mainSchema: mainSchema;
18
+ export interface Main extends v.InferInput<typeof mainSchema> {
19
+ }
20
+ declare module '@atcute/lexicons/ambient' {
21
+ interface Records {
22
+ 'fyi.frontpage.feed.vote': mainSchema;
23
+ }
24
+ }
25
+ export {};
26
+ //# sourceMappingURL=vote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vote.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/frontpage/feed/vote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAGhF,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;;IAIf;;OAEG;;IAEH;;OAEG;;mCAKJ,CAAC;AAEF,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,OAAO,QAAQ,0BAA0B,CAAC,CAAC;IAC1C,UAAU,OAAO;QAChB,yBAAyB,EAAE,UAAU,CAAC;KACtC;CACD"}
@@ -0,0 +1,19 @@
1
+ import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
2
+ import * as v from '@atcute/lexicons/validations';
3
+ const _mainSchema = /*#__PURE__*/ v.record(
4
+ /*#__PURE__*/ v.tidString(),
5
+ /*#__PURE__*/ v.object({
6
+ $type: /*#__PURE__*/ v.literal('fyi.frontpage.feed.vote'),
7
+ /**
8
+ * Client-declared timestamp when this vote was originally created.
9
+ */
10
+ createdAt: /*#__PURE__*/ v.datetimeString(),
11
+ /**
12
+ * The post or comment that this Frontpage vote is for.
13
+ */
14
+ get subject() {
15
+ return ComAtprotoRepoStrongRef.mainSchema;
16
+ },
17
+ }));
18
+ export const mainSchema = _mainSchema;
19
+ //# sourceMappingURL=vote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vote.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/frontpage/feed/vote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAGhF,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAAC;IACzD;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C;;OAEG;IACH,IAAI,OAAO;QACV,OAAO,uBAAuB,CAAC,UAAU,CAAC;IAC3C,CAAC;CACD,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ declare const _mainSchema: v.ObjectSchema<{
3
+ $type: v.OptionalSchema<v.LiteralSchema<"fyi.frontpage.richtext.block">, undefined>;
4
+ readonly content: v.VariantSchema<readonly [plaintextParagraphSchema], boolean>;
5
+ }>;
6
+ declare const _plaintextParagraphSchema: v.ObjectSchema<{
7
+ $type: v.OptionalSchema<v.LiteralSchema<"fyi.frontpage.richtext.block#plaintextParagraph">, undefined>;
8
+ /**
9
+ * @maxLength 100000
10
+ * @maxGraphemes 10000
11
+ */
12
+ text: v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<0, 100000>, v.StringGraphemesConstraint<0, 10000>]>;
13
+ }>;
14
+ type main$schematype = typeof _mainSchema;
15
+ type plaintextParagraph$schematype = typeof _plaintextParagraphSchema;
16
+ export interface mainSchema extends main$schematype {
17
+ }
18
+ export interface plaintextParagraphSchema extends plaintextParagraph$schematype {
19
+ }
20
+ export declare const mainSchema: mainSchema;
21
+ export declare const plaintextParagraphSchema: plaintextParagraphSchema;
22
+ export interface Main extends v.InferInput<typeof mainSchema> {
23
+ }
24
+ export interface PlaintextParagraph extends v.InferInput<typeof plaintextParagraphSchema> {
25
+ }
26
+ export {};
27
+ //# sourceMappingURL=block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/frontpage/richtext/block.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;;;EAKf,CAAC;AACH,QAAA,MAAM,yBAAyB;;IAE9B;;;OAGG;;EAKF,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAC1C,KAAK,6BAA6B,GAAG,OAAO,yBAAyB,CAAC;AAEtE,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AACtD,MAAM,WAAW,wBAAyB,SAAQ,6BAA6B;CAAG;AAElF,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AACpD,eAAO,MAAM,wBAAwB,EAAgC,wBAAwB,CAAC;AAE9F,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAChE,MAAM,WAAW,kBAAmB,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,wBAAwB,CAAC;CAAG"}
@@ -0,0 +1,21 @@
1
+ import * as v from '@atcute/lexicons/validations';
2
+ const _mainSchema = /*#__PURE__*/ v.object({
3
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('fyi.frontpage.richtext.block')),
4
+ get content() {
5
+ return /*#__PURE__*/ v.variant([plaintextParagraphSchema]);
6
+ },
7
+ });
8
+ const _plaintextParagraphSchema = /*#__PURE__*/ v.object({
9
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('fyi.frontpage.richtext.block#plaintextParagraph')),
10
+ /**
11
+ * @maxLength 100000
12
+ * @maxGraphemes 10000
13
+ */
14
+ text: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
15
+ /*#__PURE__*/ v.stringLength(0, 100000),
16
+ /*#__PURE__*/ v.stringGraphemes(0, 10000),
17
+ ]),
18
+ });
19
+ export const mainSchema = _mainSchema;
20
+ export const plaintextParagraphSchema = _plaintextParagraphSchema;
21
+ //# sourceMappingURL=block.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/frontpage/richtext/block.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAC;IACxF,IAAI,OAAO;QACV,OAAO,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAC5D,CAAC;CACD,CAAC,CAAC;AACH,MAAM,yBAAyB,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACxD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,iDAAiD,CAAC,CAAC;IAC3G;;;OAGG;IACH,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE;QACzD,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;QACvC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC;KACzC,CAAC;CACF,CAAC,CAAC;AAQH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC;AACpD,MAAM,CAAC,MAAM,wBAAwB,GAAG,yBAAqD,CAAC"}
@@ -1,5 +1,5 @@
1
- import * as v from '@atcute/lexicons/validations';
2
1
  import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
2
+ import * as v from '@atcute/lexicons/validations';
3
3
  declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
4
4
  $type: v.LiteralSchema<"fyi.unravel.frontpage.comment">;
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/unravel/frontpage/comment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAEhF,QAAA,MAAM,WAAW;;IAIf;;;;OAIG;;IAKH;;OAEG;;;;mCASJ,CAAC;AAEF,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,OAAO,QAAQ,0BAA0B,CAAC;IACzC,UAAU,OAAO;QAChB,+BAA+B,EAAE,UAAU,CAAC;KAC5C;CACD"}
1
+ {"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/unravel/frontpage/comment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAGhF,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;;IAIf;;;;OAIG;;IAKH;;OAEG;;;;mCASJ,CAAC;AAEF,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,OAAO,QAAQ,0BAA0B,CAAC,CAAC;IAC1C,UAAU,OAAO;QAChB,+BAA+B,EAAE,UAAU,CAAC;KAC5C;CACD"}
@@ -1,5 +1,5 @@
1
- import * as v from '@atcute/lexicons/validations';
2
1
  import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
2
+ import * as v from '@atcute/lexicons/validations';
3
3
  const _mainSchema = /*#__PURE__*/ v.record(
4
4
  /*#__PURE__*/ v.tidString(),
5
5
  /*#__PURE__*/ v.object({
@@ -1 +1 @@
1
- {"version":3,"file":"comment.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/unravel/frontpage/comment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAEhF,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,+BAA+B,CAAC;IAC/D;;;;OAIG;IACH,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE;QAC5D,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;QACvC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC;KACzC,CAAC;IACF;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C,IAAI,MAAM;QACT,OAAO,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;IACrE,CAAC;IACD,IAAI,IAAI;QACP,OAAO,uBAAuB,CAAC,UAAU,CAAC;IAC3C,CAAC;CACD,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
1
+ {"version":3,"file":"comment.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/unravel/frontpage/comment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAGhF,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,+BAA+B,CAAC;IAC/D;;;;OAIG;IACH,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE;QAC5D,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;QACvC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC;KACzC,CAAC;IACF;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C,IAAI,MAAM;QACT,OAAO,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;IACrE,CAAC;IACD,IAAI,IAAI;QACP,OAAO,uBAAuB,CAAC,UAAU,CAAC;IAC3C,CAAC;CACD,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/unravel/frontpage/post.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,QAAA,MAAM,WAAW;;IAIf;;OAEG;;IAEH;;;;OAIG;;IAKH;;OAEG;;mCAGJ,CAAC;AAEF,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,OAAO,QAAQ,0BAA0B,CAAC;IACzC,UAAU,OAAO;QAChB,4BAA4B,EAAE,UAAU,CAAC;KACzC;CACD"}
1
+ {"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/unravel/frontpage/post.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;;IAIf;;OAEG;;IAEH;;;;OAIG;;IAKH;;OAEG;;mCAGJ,CAAC;AAEF,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,OAAO,QAAQ,0BAA0B,CAAC,CAAC;IAC1C,UAAU,OAAO;QAChB,4BAA4B,EAAE,UAAU,CAAC;KACzC;CACD"}
@@ -1 +1 @@
1
- {"version":3,"file":"post.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/unravel/frontpage/post.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC;IAC5D;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C;;;;OAIG;IACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE;QAC1D,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC;QACrC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EAAE,GAAG,CAAC;KACvC,CAAC;IACF;;OAEG;IACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,gBAAgB,EAAE;CACvC,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
1
+ {"version":3,"file":"post.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/unravel/frontpage/post.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC;IAC5D;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C;;;;OAIG;IACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE;QAC1D,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC;QACrC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,EAAE,GAAG,CAAC;KACvC,CAAC;IACF;;OAEG;IACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,gBAAgB,EAAE;CACvC,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
@@ -1,5 +1,5 @@
1
- import * as v from '@atcute/lexicons/validations';
2
1
  import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
2
+ import * as v from '@atcute/lexicons/validations';
3
3
  declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
4
4
  $type: v.LiteralSchema<"fyi.unravel.frontpage.vote">;
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"vote.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/unravel/frontpage/vote.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAEhF,QAAA,MAAM,WAAW;;IAIf;;OAEG;;;mCAMJ,CAAC;AAEF,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,OAAO,QAAQ,0BAA0B,CAAC;IACzC,UAAU,OAAO;QAChB,4BAA4B,EAAE,UAAU,CAAC;KACzC;CACD"}
1
+ {"version":3,"file":"vote.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/unravel/frontpage/vote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAGhF,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;;IAIf;;OAEG;;;mCAMJ,CAAC;AAEF,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,OAAO,QAAQ,0BAA0B,CAAC,CAAC;IAC1C,UAAU,OAAO;QAChB,4BAA4B,EAAE,UAAU,CAAC;KACzC;CACD"}
@@ -1,5 +1,5 @@
1
- import * as v from '@atcute/lexicons/validations';
2
1
  import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
2
+ import * as v from '@atcute/lexicons/validations';
3
3
  const _mainSchema = /*#__PURE__*/ v.record(
4
4
  /*#__PURE__*/ v.tidString(),
5
5
  /*#__PURE__*/ v.object({
@@ -1 +1 @@
1
- {"version":3,"file":"vote.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/unravel/frontpage/vote.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAEhF,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC;IAC5D;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C,IAAI,OAAO;QACV,OAAO,uBAAuB,CAAC,UAAU,CAAC;IAC3C,CAAC;CACD,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
1
+ {"version":3,"file":"vote.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/fyi/unravel/frontpage/vote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,sCAAsC,CAAC;AAGhF,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM;AACzC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE;AAC3B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC;IAC5D;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C,IAAI,OAAO;QACV,OAAO,uBAAuB,CAAC,UAAU,CAAC;IAC3C,CAAC;CACD,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
package/lib/index.ts CHANGED
@@ -1 +1 @@
1
- export * from './lexicons/index.js';
1
+ export * from './lexicons/index.ts';
@@ -1,3 +1,10 @@
1
- export * as FyiUnravelFrontpageComment from './types/fyi/unravel/frontpage/comment.js';
2
- export * as FyiUnravelFrontpagePost from './types/fyi/unravel/frontpage/post.js';
3
- export * as FyiUnravelFrontpageVote from './types/fyi/unravel/frontpage/vote.js';
1
+ export * as FyiFrontpageFeedComment from './types/fyi/frontpage/feed/comment.ts';
2
+ export * as FyiFrontpageFeedDescribeFeedGenerator from './types/fyi/frontpage/feed/describeFeedGenerator.ts';
3
+ export * as FyiFrontpageFeedGenerator from './types/fyi/frontpage/feed/generator.ts';
4
+ export * as FyiFrontpageFeedGetFeedSkeleton from './types/fyi/frontpage/feed/getFeedSkeleton.ts';
5
+ export * as FyiFrontpageFeedPost from './types/fyi/frontpage/feed/post.ts';
6
+ export * as FyiFrontpageFeedVote from './types/fyi/frontpage/feed/vote.ts';
7
+ export * as FyiFrontpageRichtextBlock from './types/fyi/frontpage/richtext/block.ts';
8
+ export * as FyiUnravelFrontpageComment from './types/fyi/unravel/frontpage/comment.ts';
9
+ export * as FyiUnravelFrontpagePost from './types/fyi/unravel/frontpage/post.ts';
10
+ export * as FyiUnravelFrontpageVote from './types/fyi/unravel/frontpage/vote.ts';
@@ -0,0 +1,46 @@
1
+ import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
2
+ import type {} from '@atcute/lexicons';
3
+ import type {} from '@atcute/lexicons/ambient';
4
+ import * as v from '@atcute/lexicons/validations';
5
+
6
+ import * as FyiFrontpageRichtextBlock from '../richtext/block.ts';
7
+
8
+ const _mainSchema = /*#__PURE__*/ v.record(
9
+ /*#__PURE__*/ v.tidString(),
10
+ /*#__PURE__*/ v.object({
11
+ $type: /*#__PURE__*/ v.literal('fyi.frontpage.feed.comment'),
12
+ /**
13
+ * The content of the comment. Note, there are additional constraints placed on the total size of the content within the Frontpage AppView that are not possible to express in lexicon. Generally a comment can have a maximum length of 10,000 graphemes, the Frontpage AppView will enforce this limit.
14
+ * @maxLength 200
15
+ */
16
+ get blocks() {
17
+ return /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(FyiFrontpageRichtextBlock.mainSchema), [
18
+ /*#__PURE__*/ v.arrayLength(0, 200),
19
+ ]);
20
+ },
21
+ /**
22
+ * Client-declared timestamp when this comment was originally created.
23
+ */
24
+ createdAt: /*#__PURE__*/ v.datetimeString(),
25
+ get parent() {
26
+ return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema);
27
+ },
28
+ get post() {
29
+ return ComAtprotoRepoStrongRef.mainSchema;
30
+ },
31
+ }),
32
+ );
33
+
34
+ type main$schematype = typeof _mainSchema;
35
+
36
+ export interface mainSchema extends main$schematype {}
37
+
38
+ export const mainSchema = _mainSchema as mainSchema;
39
+
40
+ export interface Main extends v.InferInput<typeof mainSchema> {}
41
+
42
+ declare module '@atcute/lexicons/ambient' {
43
+ interface Records {
44
+ 'fyi.frontpage.feed.comment': mainSchema;
45
+ }
46
+ }
@@ -0,0 +1,52 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ const _feedSchema = /*#__PURE__*/ v.object({
6
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('fyi.frontpage.feed.describeFeedGenerator#feed')),
7
+ uri: /*#__PURE__*/ v.resourceUriString(),
8
+ });
9
+ const _linksSchema = /*#__PURE__*/ v.object({
10
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('fyi.frontpage.feed.describeFeedGenerator#links')),
11
+ privacyPolicy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
12
+ termsOfService: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
13
+ });
14
+ const _mainSchema = /*#__PURE__*/ v.query('fyi.frontpage.feed.describeFeedGenerator', {
15
+ params: null,
16
+ output: {
17
+ type: 'lex',
18
+ schema: /*#__PURE__*/ v.object({
19
+ did: /*#__PURE__*/ v.didString(),
20
+ get feeds() {
21
+ return /*#__PURE__*/ v.array(feedSchema);
22
+ },
23
+ get links() {
24
+ return /*#__PURE__*/ v.optional(linksSchema);
25
+ },
26
+ }),
27
+ },
28
+ });
29
+
30
+ type feed$schematype = typeof _feedSchema;
31
+ type links$schematype = typeof _linksSchema;
32
+ type main$schematype = typeof _mainSchema;
33
+
34
+ export interface feedSchema extends feed$schematype {}
35
+ export interface linksSchema extends links$schematype {}
36
+ export interface mainSchema extends main$schematype {}
37
+
38
+ export const feedSchema = _feedSchema as feedSchema;
39
+ export const linksSchema = _linksSchema as linksSchema;
40
+ export const mainSchema = _mainSchema as mainSchema;
41
+
42
+ export interface Feed extends v.InferInput<typeof feedSchema> {}
43
+ export interface Links extends v.InferInput<typeof linksSchema> {}
44
+
45
+ export interface $params {}
46
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
47
+
48
+ declare module '@atcute/lexicons/ambient' {
49
+ interface XRPCQueries {
50
+ 'fyi.frontpage.feed.describeFeedGenerator': mainSchema;
51
+ }
52
+ }
@@ -0,0 +1,62 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ const _mainSchema = /*#__PURE__*/ v.record(
6
+ /*#__PURE__*/ v.string(),
7
+ /*#__PURE__*/ v.object({
8
+ $type: /*#__PURE__*/ v.literal('fyi.frontpage.feed.generator'),
9
+ /**
10
+ * Whether the feed generator accepts interaction feedback.
11
+ */
12
+ acceptsInteractions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
13
+ /**
14
+ * Avatar image for the feed.
15
+ * @accept image/png, image/jpeg
16
+ * @maxSize 1000000
17
+ */
18
+ avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()),
19
+ /**
20
+ * Client-declared timestamp when this generator was created.
21
+ */
22
+ createdAt: /*#__PURE__*/ v.datetimeString(),
23
+ /**
24
+ * Description of the feed.
25
+ * @maxLength 3000
26
+ * @maxGraphemes 300
27
+ */
28
+ description: /*#__PURE__*/ v.optional(
29
+ /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
30
+ /*#__PURE__*/ v.stringLength(0, 3000),
31
+ /*#__PURE__*/ v.stringGraphemes(0, 300),
32
+ ]),
33
+ ),
34
+ /**
35
+ * DID of the feed generator service.
36
+ */
37
+ did: /*#__PURE__*/ v.didString(),
38
+ /**
39
+ * Display name for the feed.
40
+ * @maxLength 320
41
+ * @maxGraphemes 32
42
+ */
43
+ displayName: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
44
+ /*#__PURE__*/ v.stringLength(0, 320),
45
+ /*#__PURE__*/ v.stringGraphemes(0, 32),
46
+ ]),
47
+ }),
48
+ );
49
+
50
+ type main$schematype = typeof _mainSchema;
51
+
52
+ export interface mainSchema extends main$schematype {}
53
+
54
+ export const mainSchema = _mainSchema as mainSchema;
55
+
56
+ export interface Main extends v.InferInput<typeof mainSchema> {}
57
+
58
+ declare module '@atcute/lexicons/ambient' {
59
+ interface Records {
60
+ 'fyi.frontpage.feed.generator': mainSchema;
61
+ }
62
+ }
@@ -0,0 +1,64 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ const _mainSchema = /*#__PURE__*/ v.query('fyi.frontpage.feed.getFeedSkeleton', {
6
+ params: /*#__PURE__*/ v.object({
7
+ /**
8
+ * Pagination cursor.
9
+ */
10
+ cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
11
+ /**
12
+ * AT URI of the feed generator record.
13
+ */
14
+ feed: /*#__PURE__*/ v.resourceUriString(),
15
+ /**
16
+ * Maximum number of items to return.
17
+ * @minimum 1
18
+ * @maximum 100
19
+ * @default 50
20
+ */
21
+ limit: /*#__PURE__*/ v.optional(
22
+ /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
23
+ 50,
24
+ ),
25
+ }),
26
+ output: {
27
+ type: 'lex',
28
+ schema: /*#__PURE__*/ v.object({
29
+ cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
30
+ get feed() {
31
+ return /*#__PURE__*/ v.array(skeletonFeedPostSchema);
32
+ },
33
+ }),
34
+ },
35
+ });
36
+ const _skeletonFeedPostSchema = /*#__PURE__*/ v.object({
37
+ $type: /*#__PURE__*/ v.optional(
38
+ /*#__PURE__*/ v.literal('fyi.frontpage.feed.getFeedSkeleton#skeletonFeedPost'),
39
+ ),
40
+ /**
41
+ * AT URI of the post.
42
+ */
43
+ post: /*#__PURE__*/ v.resourceUriString(),
44
+ });
45
+
46
+ type main$schematype = typeof _mainSchema;
47
+ type skeletonFeedPost$schematype = typeof _skeletonFeedPostSchema;
48
+
49
+ export interface mainSchema extends main$schematype {}
50
+ export interface skeletonFeedPostSchema extends skeletonFeedPost$schematype {}
51
+
52
+ export const mainSchema = _mainSchema as mainSchema;
53
+ export const skeletonFeedPostSchema = _skeletonFeedPostSchema as skeletonFeedPostSchema;
54
+
55
+ export interface SkeletonFeedPost extends v.InferInput<typeof skeletonFeedPostSchema> {}
56
+
57
+ export interface $params extends v.InferInput<mainSchema['params']> {}
58
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
59
+
60
+ declare module '@atcute/lexicons/ambient' {
61
+ interface XRPCQueries {
62
+ 'fyi.frontpage.feed.getFeedSkeleton': mainSchema;
63
+ }
64
+ }
@@ -0,0 +1,51 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ const _mainSchema = /*#__PURE__*/ v.record(
6
+ /*#__PURE__*/ v.tidString(),
7
+ /*#__PURE__*/ v.object({
8
+ $type: /*#__PURE__*/ v.literal('fyi.frontpage.feed.post'),
9
+ /**
10
+ * Client-declared timestamp when this post was originally created.
11
+ */
12
+ createdAt: /*#__PURE__*/ v.datetimeString(),
13
+ /**
14
+ * The piece of content that this Frontpage post is about.
15
+ */
16
+ get subject() {
17
+ return /*#__PURE__*/ v.variant([urlSubjectSchema]);
18
+ },
19
+ /**
20
+ * The title of the post.
21
+ * @maxLength 3000
22
+ * @maxGraphemes 300
23
+ */
24
+ title: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
25
+ /*#__PURE__*/ v.stringLength(0, 3000),
26
+ /*#__PURE__*/ v.stringGraphemes(0, 300),
27
+ ]),
28
+ }),
29
+ );
30
+ const _urlSubjectSchema = /*#__PURE__*/ v.object({
31
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('fyi.frontpage.feed.post#urlSubject')),
32
+ url: /*#__PURE__*/ v.genericUriString(),
33
+ });
34
+
35
+ type main$schematype = typeof _mainSchema;
36
+ type urlSubject$schematype = typeof _urlSubjectSchema;
37
+
38
+ export interface mainSchema extends main$schematype {}
39
+ export interface urlSubjectSchema extends urlSubject$schematype {}
40
+
41
+ export const mainSchema = _mainSchema as mainSchema;
42
+ export const urlSubjectSchema = _urlSubjectSchema as urlSubjectSchema;
43
+
44
+ export interface Main extends v.InferInput<typeof mainSchema> {}
45
+ export interface UrlSubject extends v.InferInput<typeof urlSubjectSchema> {}
46
+
47
+ declare module '@atcute/lexicons/ambient' {
48
+ interface Records {
49
+ 'fyi.frontpage.feed.post': mainSchema;
50
+ }
51
+ }
@@ -0,0 +1,35 @@
1
+ import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
2
+ import type {} from '@atcute/lexicons';
3
+ import type {} from '@atcute/lexicons/ambient';
4
+ import * as v from '@atcute/lexicons/validations';
5
+
6
+ const _mainSchema = /*#__PURE__*/ v.record(
7
+ /*#__PURE__*/ v.tidString(),
8
+ /*#__PURE__*/ v.object({
9
+ $type: /*#__PURE__*/ v.literal('fyi.frontpage.feed.vote'),
10
+ /**
11
+ * Client-declared timestamp when this vote was originally created.
12
+ */
13
+ createdAt: /*#__PURE__*/ v.datetimeString(),
14
+ /**
15
+ * The post or comment that this Frontpage vote is for.
16
+ */
17
+ get subject() {
18
+ return ComAtprotoRepoStrongRef.mainSchema;
19
+ },
20
+ }),
21
+ );
22
+
23
+ type main$schematype = typeof _mainSchema;
24
+
25
+ export interface mainSchema extends main$schematype {}
26
+
27
+ export const mainSchema = _mainSchema as mainSchema;
28
+
29
+ export interface Main extends v.InferInput<typeof mainSchema> {}
30
+
31
+ declare module '@atcute/lexicons/ambient' {
32
+ interface Records {
33
+ 'fyi.frontpage.feed.vote': mainSchema;
34
+ }
35
+ }
@@ -0,0 +1,32 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import * as v from '@atcute/lexicons/validations';
3
+
4
+ const _mainSchema = /*#__PURE__*/ v.object({
5
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('fyi.frontpage.richtext.block')),
6
+ get content() {
7
+ return /*#__PURE__*/ v.variant([plaintextParagraphSchema]);
8
+ },
9
+ });
10
+ const _plaintextParagraphSchema = /*#__PURE__*/ v.object({
11
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('fyi.frontpage.richtext.block#plaintextParagraph')),
12
+ /**
13
+ * @maxLength 100000
14
+ * @maxGraphemes 10000
15
+ */
16
+ text: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
17
+ /*#__PURE__*/ v.stringLength(0, 100000),
18
+ /*#__PURE__*/ v.stringGraphemes(0, 10000),
19
+ ]),
20
+ });
21
+
22
+ type main$schematype = typeof _mainSchema;
23
+ type plaintextParagraph$schematype = typeof _plaintextParagraphSchema;
24
+
25
+ export interface mainSchema extends main$schematype {}
26
+ export interface plaintextParagraphSchema extends plaintextParagraph$schematype {}
27
+
28
+ export const mainSchema = _mainSchema as mainSchema;
29
+ export const plaintextParagraphSchema = _plaintextParagraphSchema as plaintextParagraphSchema;
30
+
31
+ export interface Main extends v.InferInput<typeof mainSchema> {}
32
+ export interface PlaintextParagraph extends v.InferInput<typeof plaintextParagraphSchema> {}
@@ -1,7 +1,7 @@
1
+ import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
1
2
  import type {} from '@atcute/lexicons';
2
- import * as v from '@atcute/lexicons/validations';
3
3
  import type {} from '@atcute/lexicons/ambient';
4
- import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
4
+ import * as v from '@atcute/lexicons/validations';
5
5
 
6
6
  const _mainSchema = /*#__PURE__*/ v.record(
7
7
  /*#__PURE__*/ v.tidString(),
@@ -1,6 +1,6 @@
1
1
  import type {} from '@atcute/lexicons';
2
- import * as v from '@atcute/lexicons/validations';
3
2
  import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
4
 
5
5
  const _mainSchema = /*#__PURE__*/ v.record(
6
6
  /*#__PURE__*/ v.tidString(),
@@ -1,7 +1,7 @@
1
+ import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
1
2
  import type {} from '@atcute/lexicons';
2
- import * as v from '@atcute/lexicons/validations';
3
3
  import type {} from '@atcute/lexicons/ambient';
4
- import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
4
+ import * as v from '@atcute/lexicons/validations';
5
5
 
6
6
  const _mainSchema = /*#__PURE__*/ v.record(
7
7
  /*#__PURE__*/ v.tidString(),
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
- "type": "module",
3
2
  "name": "@atcute/frontpage",
4
- "version": "1.0.5",
3
+ "version": "2.0.1",
5
4
  "description": "Frontpage (fyi.unravel.frontpage.*) schema definitions",
6
5
  "keywords": [
7
6
  "atcute",
@@ -19,31 +18,38 @@
19
18
  "!lib/**/*.bench.ts",
20
19
  "!lib/**/*.test.ts"
21
20
  ],
21
+ "type": "module",
22
22
  "exports": {
23
23
  ".": "./dist/index.js",
24
- "./types/*": "./dist/lexicons/types/fyi/unravel/frontpage/*.js"
24
+ "./types/*": "./dist/lexicons/types/*.js"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public"
25
28
  },
26
29
  "dependencies": {
27
- "@atcute/atproto": "^3.1.8",
28
- "@atcute/lexicons": "^1.2.2"
30
+ "@atcute/atproto": "^3.1.11",
31
+ "@atcute/lexicons": "^1.2.10"
29
32
  },
30
33
  "devDependencies": {
31
34
  "@atcute/frontpage": "file:",
32
- "vitest": "^3.2.4",
33
- "@atcute/lex-cli": "^2.3.0"
35
+ "@atcute/lex-cli": "^2.6.1"
34
36
  },
35
37
  "atcute:lexicons": {
36
38
  "mappings": {
37
39
  "fyi.unravel.frontpage.*": {
38
40
  "type": "namespace",
39
- "path": "./types/{{nsid_remainder}}"
41
+ "path": "./types/{{nsid}}"
42
+ },
43
+ "fyi.frontpage.*": {
44
+ "type": "namespace",
45
+ "path": "./types/{{nsid}}"
40
46
  }
41
47
  }
42
48
  },
43
49
  "scripts": {
44
- "build": "tsc",
45
- "test": "vitest",
46
- "generate": "rm -r ./lib/lexicons/; lex-cli generate -c ./lex.config.js",
50
+ "build": "tsgo",
51
+ "pull": "lex-cli pull",
52
+ "generate": "rm -r ./lib/lexicons/; lex-cli generate",
47
53
  "prepublish": "rm -rf dist; pnpm run build"
48
54
  }
49
55
  }