@atcute/frontpage 1.0.2 → 1.0.4
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/LICENSE +12 -15
- package/README.md +24 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lexicons/index.d.ts +1 -0
- package/dist/lexicons/index.d.ts.map +1 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/comment.d.ts +9 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/comment.d.ts.map +1 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/comment.js +8 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/comment.js.map +1 -1
- package/dist/lexicons/types/fyi/unravel/frontpage/post.d.ts +12 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/post.d.ts.map +1 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/post.js +11 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/post.js.map +1 -1
- package/dist/lexicons/types/fyi/unravel/frontpage/vote.d.ts +4 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/vote.d.ts.map +1 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/vote.js +3 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/vote.js.map +1 -1
- package/lib/lexicons/types/fyi/unravel/frontpage/comment.ts +8 -0
- package/lib/lexicons/types/fyi/unravel/frontpage/post.ts +11 -0
- package/lib/lexicons/types/fyi/unravel/frontpage/vote.ts +3 -0
- package/package.json +6 -6
package/LICENSE
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
3
|
-
in the Software without restriction, including without limitation the rights
|
|
4
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
5
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
6
|
-
furnished to do so, subject to the following conditions:
|
|
1
|
+
BSD Zero Clause License
|
|
7
2
|
|
|
8
|
-
|
|
9
|
-
copies or substantial portions of the Software.
|
|
3
|
+
Copyright (c) 2025 Mary
|
|
10
4
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
package/README.md
CHANGED
|
@@ -43,3 +43,27 @@ import type {} from '@atcute/frontpage';
|
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
now all the XRPC operations should be visible in the client
|
|
46
|
+
|
|
47
|
+
## with `@atcute/lex-cli`
|
|
48
|
+
|
|
49
|
+
when building your own lexicons that reference Frontpage types, configure lex-cli to import from
|
|
50
|
+
this package:
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
// file: lex.config.js
|
|
54
|
+
import { defineLexiconConfig } from '@atcute/lex-cli';
|
|
55
|
+
|
|
56
|
+
export default defineLexiconConfig({
|
|
57
|
+
files: ['lexicons/**/*.json'],
|
|
58
|
+
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
|
+
],
|
|
68
|
+
});
|
|
69
|
+
```
|
package/dist/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
package/dist/lexicons/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export * as FyiUnravelFrontpageComment from './types/fyi/unravel/frontpage/comment.js';
|
|
2
2
|
export * as FyiUnravelFrontpagePost from './types/fyi/unravel/frontpage/post.js';
|
|
3
3
|
export * as FyiUnravelFrontpageVote from './types/fyi/unravel/frontpage/vote.js';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -2,7 +2,15 @@ import * as v from '@atcute/lexicons/validations';
|
|
|
2
2
|
import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
|
|
3
3
|
declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
|
|
4
4
|
$type: v.LiteralSchema<"fyi.unravel.frontpage.comment">;
|
|
5
|
+
/**
|
|
6
|
+
* The content of the comment.
|
|
7
|
+
* @maxLength 100000
|
|
8
|
+
* @maxGraphemes 10000
|
|
9
|
+
*/
|
|
5
10
|
content: v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<0, 100000>, v.StringGraphemesConstraint<0, 10000>]>;
|
|
11
|
+
/**
|
|
12
|
+
* Client-declared timestamp when this comment was originally created.
|
|
13
|
+
*/
|
|
6
14
|
createdAt: v.FormattedStringSchema<"datetime">;
|
|
7
15
|
readonly parent: v.OptionalSchema<ComAtprotoRepoStrongRef.mainSchema, undefined>;
|
|
8
16
|
readonly post: ComAtprotoRepoStrongRef.mainSchema;
|
|
@@ -19,3 +27,4 @@ declare module '@atcute/lexicons/ambient' {
|
|
|
19
27
|
}
|
|
20
28
|
}
|
|
21
29
|
export {};
|
|
30
|
+
//# sourceMappingURL=comment.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -4,10 +4,18 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
4
4
|
/*#__PURE__*/ v.tidString(),
|
|
5
5
|
/*#__PURE__*/ v.object({
|
|
6
6
|
$type: /*#__PURE__*/ v.literal('fyi.unravel.frontpage.comment'),
|
|
7
|
+
/**
|
|
8
|
+
* The content of the comment.
|
|
9
|
+
* @maxLength 100000
|
|
10
|
+
* @maxGraphemes 10000
|
|
11
|
+
*/
|
|
7
12
|
content: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
8
13
|
/*#__PURE__*/ v.stringLength(0, 100000),
|
|
9
14
|
/*#__PURE__*/ v.stringGraphemes(0, 10000),
|
|
10
15
|
]),
|
|
16
|
+
/**
|
|
17
|
+
* Client-declared timestamp when this comment was originally created.
|
|
18
|
+
*/
|
|
11
19
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
12
20
|
get parent() {
|
|
13
21
|
return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema);
|
|
@@ -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,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,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":"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,8 +1,19 @@
|
|
|
1
1
|
import * as v from '@atcute/lexicons/validations';
|
|
2
2
|
declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
|
|
3
3
|
$type: v.LiteralSchema<"fyi.unravel.frontpage.post">;
|
|
4
|
+
/**
|
|
5
|
+
* Client-declared timestamp when this post was originally created.
|
|
6
|
+
*/
|
|
4
7
|
createdAt: v.FormattedStringSchema<"datetime">;
|
|
8
|
+
/**
|
|
9
|
+
* The title of the post.
|
|
10
|
+
* @maxLength 3000
|
|
11
|
+
* @maxGraphemes 300
|
|
12
|
+
*/
|
|
5
13
|
title: v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<0, 3000>, v.StringGraphemesConstraint<0, 300>]>;
|
|
14
|
+
/**
|
|
15
|
+
* The URL of the post.
|
|
16
|
+
*/
|
|
6
17
|
url: v.FormattedStringSchema<"uri">;
|
|
7
18
|
}>, v.FormattedStringSchema<"tid">>;
|
|
8
19
|
type main$schematype = typeof _mainSchema;
|
|
@@ -17,3 +28,4 @@ declare module '@atcute/lexicons/ambient' {
|
|
|
17
28
|
}
|
|
18
29
|
}
|
|
19
30
|
export {};
|
|
31
|
+
//# sourceMappingURL=post.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -3,11 +3,22 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
3
3
|
/*#__PURE__*/ v.tidString(),
|
|
4
4
|
/*#__PURE__*/ v.object({
|
|
5
5
|
$type: /*#__PURE__*/ v.literal('fyi.unravel.frontpage.post'),
|
|
6
|
+
/**
|
|
7
|
+
* Client-declared timestamp when this post was originally created.
|
|
8
|
+
*/
|
|
6
9
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
10
|
+
/**
|
|
11
|
+
* The title of the post.
|
|
12
|
+
* @maxLength 3000
|
|
13
|
+
* @maxGraphemes 300
|
|
14
|
+
*/
|
|
7
15
|
title: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
8
16
|
/*#__PURE__*/ v.stringLength(0, 3000),
|
|
9
17
|
/*#__PURE__*/ v.stringGraphemes(0, 300),
|
|
10
18
|
]),
|
|
19
|
+
/**
|
|
20
|
+
* The URL of the post.
|
|
21
|
+
*/
|
|
11
22
|
url: /*#__PURE__*/ v.genericUriString(),
|
|
12
23
|
}));
|
|
13
24
|
export const mainSchema = _mainSchema;
|
|
@@ -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,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;IAC3C,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,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":"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"}
|
|
@@ -2,6 +2,9 @@ import * as v from '@atcute/lexicons/validations';
|
|
|
2
2
|
import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
|
|
3
3
|
declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
|
|
4
4
|
$type: v.LiteralSchema<"fyi.unravel.frontpage.vote">;
|
|
5
|
+
/**
|
|
6
|
+
* Client-declared timestamp when this vote was originally created.
|
|
7
|
+
*/
|
|
5
8
|
createdAt: v.FormattedStringSchema<"datetime">;
|
|
6
9
|
readonly subject: ComAtprotoRepoStrongRef.mainSchema;
|
|
7
10
|
}>, v.FormattedStringSchema<"tid">>;
|
|
@@ -17,3 +20,4 @@ declare module '@atcute/lexicons/ambient' {
|
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
export {};
|
|
23
|
+
//# sourceMappingURL=vote.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -4,6 +4,9 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
4
4
|
/*#__PURE__*/ v.tidString(),
|
|
5
5
|
/*#__PURE__*/ v.object({
|
|
6
6
|
$type: /*#__PURE__*/ v.literal('fyi.unravel.frontpage.vote'),
|
|
7
|
+
/**
|
|
8
|
+
* Client-declared timestamp when this vote was originally created.
|
|
9
|
+
*/
|
|
7
10
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
8
11
|
get subject() {
|
|
9
12
|
return ComAtprotoRepoStrongRef.mainSchema;
|
|
@@ -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,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":"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"}
|
|
@@ -7,10 +7,18 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
7
7
|
/*#__PURE__*/ v.tidString(),
|
|
8
8
|
/*#__PURE__*/ v.object({
|
|
9
9
|
$type: /*#__PURE__*/ v.literal('fyi.unravel.frontpage.comment'),
|
|
10
|
+
/**
|
|
11
|
+
* The content of the comment.
|
|
12
|
+
* @maxLength 100000
|
|
13
|
+
* @maxGraphemes 10000
|
|
14
|
+
*/
|
|
10
15
|
content: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
11
16
|
/*#__PURE__*/ v.stringLength(0, 100000),
|
|
12
17
|
/*#__PURE__*/ v.stringGraphemes(0, 10000),
|
|
13
18
|
]),
|
|
19
|
+
/**
|
|
20
|
+
* Client-declared timestamp when this comment was originally created.
|
|
21
|
+
*/
|
|
14
22
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
15
23
|
get parent() {
|
|
16
24
|
return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema);
|
|
@@ -6,11 +6,22 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
6
6
|
/*#__PURE__*/ v.tidString(),
|
|
7
7
|
/*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.literal('fyi.unravel.frontpage.post'),
|
|
9
|
+
/**
|
|
10
|
+
* Client-declared timestamp when this post was originally created.
|
|
11
|
+
*/
|
|
9
12
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
13
|
+
/**
|
|
14
|
+
* The title of the post.
|
|
15
|
+
* @maxLength 3000
|
|
16
|
+
* @maxGraphemes 300
|
|
17
|
+
*/
|
|
10
18
|
title: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
11
19
|
/*#__PURE__*/ v.stringLength(0, 3000),
|
|
12
20
|
/*#__PURE__*/ v.stringGraphemes(0, 300),
|
|
13
21
|
]),
|
|
22
|
+
/**
|
|
23
|
+
* The URL of the post.
|
|
24
|
+
*/
|
|
14
25
|
url: /*#__PURE__*/ v.genericUriString(),
|
|
15
26
|
}),
|
|
16
27
|
);
|
|
@@ -7,6 +7,9 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
7
7
|
/*#__PURE__*/ v.tidString(),
|
|
8
8
|
/*#__PURE__*/ v.object({
|
|
9
9
|
$type: /*#__PURE__*/ v.literal('fyi.unravel.frontpage.vote'),
|
|
10
|
+
/**
|
|
11
|
+
* Client-declared timestamp when this vote was originally created.
|
|
12
|
+
*/
|
|
10
13
|
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
11
14
|
get subject() {
|
|
12
15
|
return ComAtprotoRepoStrongRef.mainSchema;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@atcute/frontpage",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"description": "Frontpage (fyi.unravel.frontpage.*) schema definitions",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"atcute",
|
|
8
8
|
"atproto",
|
|
9
9
|
"frontpage"
|
|
10
10
|
],
|
|
11
|
-
"license": "
|
|
11
|
+
"license": "0BSD",
|
|
12
12
|
"repository": {
|
|
13
13
|
"url": "https://github.com/mary-ext/atcute",
|
|
14
14
|
"directory": "packages/definitions/frontpage"
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"./types/*": "./dist/lexicons/types/fyi/unravel/frontpage/*.js"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atcute/atproto": "^3.
|
|
28
|
-
"@atcute/lexicons": "^1.
|
|
27
|
+
"@atcute/atproto": "^3.1.7",
|
|
28
|
+
"@atcute/lexicons": "^1.2.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@atcute/frontpage": "file:",
|
|
32
|
-
"vitest": "^3.
|
|
33
|
-
"@atcute/lex-cli": "^2.
|
|
32
|
+
"vitest": "^3.2.4",
|
|
33
|
+
"@atcute/lex-cli": "^2.2.2"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsc",
|