@atcute/frontpage 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +17 -0
- package/README.md +45 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/lexicons/index.d.ts +3 -0
- package/dist/lexicons/index.js +4 -0
- package/dist/lexicons/index.js.map +1 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/comment.d.ts +21 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/comment.js +20 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/comment.js.map +1 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/post.d.ts +19 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/post.js +14 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/post.js.map +1 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/vote.d.ts +19 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/vote.js +13 -0
- package/dist/lexicons/types/fyi/unravel/frontpage/vote.js.map +1 -0
- package/lib/index.ts +1 -0
- package/lib/lexicons/index.ts +3 -0
- package/lib/lexicons/types/fyi/unravel/frontpage/comment.ts +36 -0
- package/lib/lexicons/types/fyi/unravel/frontpage/post.ts +30 -0
- package/lib/lexicons/types/fyi/unravel/frontpage/vote.ts +29 -0
- package/package.json +41 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
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:
|
|
7
|
+
|
|
8
|
+
The above copyright notice and this permission notice shall be included in all
|
|
9
|
+
copies or substantial portions of the Software.
|
|
10
|
+
|
|
11
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
12
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
13
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
14
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
15
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
16
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
17
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# @atcute/frontpage
|
|
2
|
+
|
|
3
|
+
[Frontpage](https://frontpage.fyi/) (fyi.unravel.frontpage.\*) schema definitions
|
|
4
|
+
|
|
5
|
+
## usage
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { FyiUnravelFrontpagePost } from '@atcute/frontpage';
|
|
9
|
+
import { is } from '@atcute/lexicons';
|
|
10
|
+
|
|
11
|
+
const post: FyiUnravelFrontpagePost.Main = {
|
|
12
|
+
$type: 'fyi.unravel.frontpage.post',
|
|
13
|
+
url: 'https://github.com/mary-ext/atcute',
|
|
14
|
+
title: 'collection of lightweight TypeScript packages for dealing with AT Protocol',
|
|
15
|
+
createdAt: '2024-10-16T16:12:01.599Z',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
is(FyiUnravelFrontpagePost.mainSchema, post);
|
|
19
|
+
// -> true
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### with `@atcute/client`
|
|
23
|
+
|
|
24
|
+
pick either one of these 3 options to register the ambient declarations
|
|
25
|
+
|
|
26
|
+
```jsonc
|
|
27
|
+
// tsconfig.json
|
|
28
|
+
{
|
|
29
|
+
"compilerOptions": {
|
|
30
|
+
"types": ["@atcute/frontpage"],
|
|
31
|
+
},
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
// env.d.ts
|
|
37
|
+
/// <reference types="@atcute/frontpage" />
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
// index.ts
|
|
42
|
+
import type {} from '@atcute/frontpage';
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
now all the XRPC operations should be visible in the client
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lexicons/index.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
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';
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
|
|
3
|
+
declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
|
|
4
|
+
$type: v.LiteralSchema<"fyi.unravel.frontpage.comment">;
|
|
5
|
+
content: v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<0, 100000>, v.StringGraphemesConstraint<0, 10000>]>;
|
|
6
|
+
createdAt: v.FormattedStringSchema<"datetime">;
|
|
7
|
+
readonly parent: v.OptionalSchema<ComAtprotoRepoStrongRef.mainSchema, undefined>;
|
|
8
|
+
readonly post: ComAtprotoRepoStrongRef.mainSchema;
|
|
9
|
+
}>, v.FormattedStringSchema<"tid">>;
|
|
10
|
+
type main$schematype = typeof _mainSchema;
|
|
11
|
+
export interface mainSchema extends main$schematype {
|
|
12
|
+
}
|
|
13
|
+
export declare const mainSchema: mainSchema;
|
|
14
|
+
export interface Main extends v.InferInput<typeof mainSchema> {
|
|
15
|
+
}
|
|
16
|
+
declare module '@atcute/lexicons/ambient' {
|
|
17
|
+
interface Records {
|
|
18
|
+
'fyi.unravel.frontpage.comment': mainSchema;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
|
|
3
|
+
const _mainSchema = /*#__PURE__*/ v.record(
|
|
4
|
+
/*#__PURE__*/ v.tidString(),
|
|
5
|
+
/*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.literal('fyi.unravel.frontpage.comment'),
|
|
7
|
+
content: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
8
|
+
/*#__PURE__*/ v.stringLength(0, 100000),
|
|
9
|
+
/*#__PURE__*/ v.stringGraphemes(0, 10000),
|
|
10
|
+
]),
|
|
11
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
12
|
+
get parent() {
|
|
13
|
+
return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema);
|
|
14
|
+
},
|
|
15
|
+
get post() {
|
|
16
|
+
return ComAtprotoRepoStrongRef.mainSchema;
|
|
17
|
+
},
|
|
18
|
+
}));
|
|
19
|
+
export const mainSchema = _mainSchema;
|
|
20
|
+
//# sourceMappingURL=comment.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
|
|
3
|
+
$type: v.LiteralSchema<"fyi.unravel.frontpage.post">;
|
|
4
|
+
title: v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<0, 3000>, v.StringGraphemesConstraint<0, 300>]>;
|
|
5
|
+
url: v.FormattedStringSchema<"uri">;
|
|
6
|
+
createdAt: v.FormattedStringSchema<"datetime">;
|
|
7
|
+
}>, v.FormattedStringSchema<"tid">>;
|
|
8
|
+
type main$schematype = typeof _mainSchema;
|
|
9
|
+
export interface mainSchema extends main$schematype {
|
|
10
|
+
}
|
|
11
|
+
export declare const mainSchema: mainSchema;
|
|
12
|
+
export interface Main extends v.InferInput<typeof mainSchema> {
|
|
13
|
+
}
|
|
14
|
+
declare module '@atcute/lexicons/ambient' {
|
|
15
|
+
interface Records {
|
|
16
|
+
'fyi.unravel.frontpage.post': mainSchema;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
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.unravel.frontpage.post'),
|
|
6
|
+
title: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
7
|
+
/*#__PURE__*/ v.stringLength(0, 3000),
|
|
8
|
+
/*#__PURE__*/ v.stringGraphemes(0, 300),
|
|
9
|
+
]),
|
|
10
|
+
url: /*#__PURE__*/ v.genericUriString(),
|
|
11
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
12
|
+
}));
|
|
13
|
+
export const mainSchema = _mainSchema;
|
|
14
|
+
//# sourceMappingURL=post.js.map
|
|
@@ -0,0 +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,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;IACvC,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;CAC3C,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
|
|
3
|
+
declare const _mainSchema: v.RecordSchema<v.ObjectSchema<{
|
|
4
|
+
$type: v.LiteralSchema<"fyi.unravel.frontpage.vote">;
|
|
5
|
+
readonly subject: ComAtprotoRepoStrongRef.mainSchema;
|
|
6
|
+
createdAt: v.FormattedStringSchema<"datetime">;
|
|
7
|
+
}>, v.FormattedStringSchema<"tid">>;
|
|
8
|
+
type main$schematype = typeof _mainSchema;
|
|
9
|
+
export interface mainSchema extends main$schematype {
|
|
10
|
+
}
|
|
11
|
+
export declare const mainSchema: mainSchema;
|
|
12
|
+
export interface Main extends v.InferInput<typeof mainSchema> {
|
|
13
|
+
}
|
|
14
|
+
declare module '@atcute/lexicons/ambient' {
|
|
15
|
+
interface Records {
|
|
16
|
+
'fyi.unravel.frontpage.vote': mainSchema;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
|
|
3
|
+
const _mainSchema = /*#__PURE__*/ v.record(
|
|
4
|
+
/*#__PURE__*/ v.tidString(),
|
|
5
|
+
/*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.literal('fyi.unravel.frontpage.vote'),
|
|
7
|
+
get subject() {
|
|
8
|
+
return ComAtprotoRepoStrongRef.mainSchema;
|
|
9
|
+
},
|
|
10
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
11
|
+
}));
|
|
12
|
+
export const mainSchema = _mainSchema;
|
|
13
|
+
//# sourceMappingURL=vote.js.map
|
|
@@ -0,0 +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,IAAI,OAAO;QACV,OAAO,uBAAuB,CAAC,UAAU,CAAC;IAC3C,CAAC;IACD,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE;CAC3C,CAAC,CACF,CAAC;AAMF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
package/lib/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lexicons/index.js';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
|
|
5
|
+
|
|
6
|
+
const _mainSchema = /*#__PURE__*/ v.record(
|
|
7
|
+
/*#__PURE__*/ v.tidString(),
|
|
8
|
+
/*#__PURE__*/ v.object({
|
|
9
|
+
$type: /*#__PURE__*/ v.literal('fyi.unravel.frontpage.comment'),
|
|
10
|
+
content: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
11
|
+
/*#__PURE__*/ v.stringLength(0, 100000),
|
|
12
|
+
/*#__PURE__*/ v.stringGraphemes(0, 10000),
|
|
13
|
+
]),
|
|
14
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
15
|
+
get parent() {
|
|
16
|
+
return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema);
|
|
17
|
+
},
|
|
18
|
+
get post() {
|
|
19
|
+
return ComAtprotoRepoStrongRef.mainSchema;
|
|
20
|
+
},
|
|
21
|
+
}),
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
type main$schematype = typeof _mainSchema;
|
|
25
|
+
|
|
26
|
+
export interface mainSchema extends main$schematype {}
|
|
27
|
+
|
|
28
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
29
|
+
|
|
30
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
31
|
+
|
|
32
|
+
declare module '@atcute/lexicons/ambient' {
|
|
33
|
+
interface Records {
|
|
34
|
+
'fyi.unravel.frontpage.comment': mainSchema;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.record(
|
|
6
|
+
/*#__PURE__*/ v.tidString(),
|
|
7
|
+
/*#__PURE__*/ v.object({
|
|
8
|
+
$type: /*#__PURE__*/ v.literal('fyi.unravel.frontpage.post'),
|
|
9
|
+
title: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
10
|
+
/*#__PURE__*/ v.stringLength(0, 3000),
|
|
11
|
+
/*#__PURE__*/ v.stringGraphemes(0, 300),
|
|
12
|
+
]),
|
|
13
|
+
url: /*#__PURE__*/ v.genericUriString(),
|
|
14
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
15
|
+
}),
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
type main$schematype = typeof _mainSchema;
|
|
19
|
+
|
|
20
|
+
export interface mainSchema extends main$schematype {}
|
|
21
|
+
|
|
22
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
23
|
+
|
|
24
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
25
|
+
|
|
26
|
+
declare module '@atcute/lexicons/ambient' {
|
|
27
|
+
interface Records {
|
|
28
|
+
'fyi.unravel.frontpage.post': mainSchema;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
|
|
5
|
+
|
|
6
|
+
const _mainSchema = /*#__PURE__*/ v.record(
|
|
7
|
+
/*#__PURE__*/ v.tidString(),
|
|
8
|
+
/*#__PURE__*/ v.object({
|
|
9
|
+
$type: /*#__PURE__*/ v.literal('fyi.unravel.frontpage.vote'),
|
|
10
|
+
get subject() {
|
|
11
|
+
return ComAtprotoRepoStrongRef.mainSchema;
|
|
12
|
+
},
|
|
13
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
14
|
+
}),
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
type main$schematype = typeof _mainSchema;
|
|
18
|
+
|
|
19
|
+
export interface mainSchema extends main$schematype {}
|
|
20
|
+
|
|
21
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
22
|
+
|
|
23
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
24
|
+
|
|
25
|
+
declare module '@atcute/lexicons/ambient' {
|
|
26
|
+
interface Records {
|
|
27
|
+
'fyi.unravel.frontpage.vote': mainSchema;
|
|
28
|
+
}
|
|
29
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "module",
|
|
3
|
+
"name": "@atcute/frontpage",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Frontpage (fyi.unravel.frontpage.*) schema definitions",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"atcute",
|
|
8
|
+
"atproto",
|
|
9
|
+
"frontpage"
|
|
10
|
+
],
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"repository": {
|
|
13
|
+
"url": "https://github.com/mary-ext/atcute",
|
|
14
|
+
"directory": "packages/definitions/frontpage"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist/",
|
|
18
|
+
"lib/",
|
|
19
|
+
"!lib/**/*.bench.ts",
|
|
20
|
+
"!lib/**/*.test.ts"
|
|
21
|
+
],
|
|
22
|
+
"exports": {
|
|
23
|
+
".": "./dist/index.js",
|
|
24
|
+
"./types/*": "./dist/lexicons/types/fyi/unravel/frontpage/*.js"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@atcute/atproto": "^3.0.0",
|
|
28
|
+
"@atcute/lexicons": "^1.0.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@atcute/frontpage": "file:",
|
|
32
|
+
"vitest": "^3.1.3",
|
|
33
|
+
"@atcute/lex-cli": "^2.0.0"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsc",
|
|
37
|
+
"test": "vitest",
|
|
38
|
+
"generate": "rm -r ./lib/lexicons/; lex-cli generate -c ./lex.config.js",
|
|
39
|
+
"prepublish": "rm -rf dist; pnpm run build"
|
|
40
|
+
}
|
|
41
|
+
}
|