@atcute/bluemoji 2.0.0 → 3.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.
- package/README.md +50 -8
- 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 +13 -0
- package/dist/lexicons/index.js +14 -0
- package/dist/lexicons/index.js.map +1 -0
- package/dist/lexicons/types/blue/moji/collection/defs.d.ts +24 -0
- package/dist/lexicons/types/blue/moji/collection/defs.js +29 -0
- package/dist/lexicons/types/blue/moji/collection/defs.js.map +1 -0
- package/dist/lexicons/types/blue/moji/collection/getItem.d.ts +22 -0
- package/dist/lexicons/types/blue/moji/collection/getItem.js +19 -0
- package/dist/lexicons/types/blue/moji/collection/getItem.js.map +1 -0
- package/dist/lexicons/types/blue/moji/collection/item.d.ts +66 -0
- package/dist/lexicons/types/blue/moji/collection/item.js +59 -0
- package/dist/lexicons/types/blue/moji/collection/item.js.map +1 -0
- package/dist/lexicons/types/blue/moji/collection/listCollection.d.ts +34 -0
- package/dist/lexicons/types/blue/moji/collection/listCollection.js +29 -0
- package/dist/lexicons/types/blue/moji/collection/listCollection.js.map +1 -0
- package/dist/lexicons/types/blue/moji/collection/putItem.d.ts +25 -0
- package/dist/lexicons/types/blue/moji/collection/putItem.js +23 -0
- package/dist/lexicons/types/blue/moji/collection/putItem.js.map +1 -0
- package/dist/lexicons/types/blue/moji/collection/saveToCollection.d.ts +26 -0
- package/dist/lexicons/types/blue/moji/collection/saveToCollection.js +24 -0
- package/dist/lexicons/types/blue/moji/collection/saveToCollection.js.map +1 -0
- package/dist/lexicons/types/blue/moji/packs/defs.d.ts +67 -0
- package/dist/lexicons/types/blue/moji/packs/defs.js +71 -0
- package/dist/lexicons/types/blue/moji/packs/defs.js.map +1 -0
- package/dist/lexicons/types/blue/moji/packs/getActorPacks.d.ts +23 -0
- package/dist/lexicons/types/blue/moji/packs/getActorPacks.js +21 -0
- package/dist/lexicons/types/blue/moji/packs/getActorPacks.js.map +1 -0
- package/dist/lexicons/types/blue/moji/packs/getPack.d.ts +24 -0
- package/dist/lexicons/types/blue/moji/packs/getPack.js +24 -0
- package/dist/lexicons/types/blue/moji/packs/getPack.js.map +1 -0
- package/dist/lexicons/types/blue/moji/packs/getPacks.d.ts +20 -0
- package/dist/lexicons/types/blue/moji/packs/getPacks.js +19 -0
- package/dist/lexicons/types/blue/moji/packs/getPacks.js.map +1 -0
- package/dist/lexicons/types/blue/moji/packs/pack.d.ts +25 -0
- package/dist/lexicons/types/blue/moji/packs/pack.js +25 -0
- package/dist/lexicons/types/blue/moji/packs/pack.js.map +1 -0
- package/dist/lexicons/types/blue/moji/packs/packitem.d.ts +19 -0
- package/dist/lexicons/types/blue/moji/packs/packitem.js +11 -0
- package/dist/lexicons/types/blue/moji/packs/packitem.js.map +1 -0
- package/dist/lexicons/types/blue/moji/richtext/facet.d.ts +32 -0
- package/dist/lexicons/types/blue/moji/richtext/facet.js +26 -0
- package/dist/lexicons/types/blue/moji/richtext/facet.js.map +1 -0
- package/lib/index.ts +1 -0
- package/lib/lexicons/index.ts +13 -0
- package/lib/lexicons/types/blue/moji/collection/defs.ts +38 -0
- package/lib/lexicons/types/blue/moji/collection/getItem.ts +32 -0
- package/lib/lexicons/types/blue/moji/collection/item.ts +89 -0
- package/lib/lexicons/types/blue/moji/collection/listCollection.ts +48 -0
- package/lib/lexicons/types/blue/moji/collection/putItem.ts +36 -0
- package/lib/lexicons/types/blue/moji/collection/saveToCollection.ts +37 -0
- package/lib/lexicons/types/blue/moji/packs/defs.ts +90 -0
- package/lib/lexicons/types/blue/moji/packs/getActorPacks.ts +36 -0
- package/lib/lexicons/types/blue/moji/packs/getPack.ts +39 -0
- package/lib/lexicons/types/blue/moji/packs/getPacks.ts +32 -0
- package/lib/lexicons/types/blue/moji/packs/pack.ts +42 -0
- package/lib/lexicons/types/blue/moji/packs/packitem.ts +27 -0
- package/lib/lexicons/types/blue/moji/richtext/facet.ts +37 -0
- package/package.json +11 -10
- package/dist/lexicons.d.ts +0 -389
- package/dist/lexicons.js +0 -9
- package/dist/lexicons.js.map +0 -1
- package/lib/lexicons.ts +0 -392
|
@@ -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 BlueMojiCollectionItem from './item.js';
|
|
5
|
+
|
|
6
|
+
const _mainSchema = /*#__PURE__*/ v.procedure('blue.moji.collection.putItem', {
|
|
7
|
+
params: null,
|
|
8
|
+
input: {
|
|
9
|
+
type: 'lex',
|
|
10
|
+
schema: /*#__PURE__*/ v.object({
|
|
11
|
+
repo: /*#__PURE__*/ v.actorIdentifierString(),
|
|
12
|
+
validate: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true),
|
|
13
|
+
get item() {
|
|
14
|
+
return BlueMojiCollectionItem.itemViewSchema;
|
|
15
|
+
},
|
|
16
|
+
}),
|
|
17
|
+
},
|
|
18
|
+
output: {
|
|
19
|
+
type: 'lex',
|
|
20
|
+
schema: /*#__PURE__*/ v.object({
|
|
21
|
+
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
22
|
+
}),
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
type main$schematype = typeof _mainSchema;
|
|
27
|
+
|
|
28
|
+
export interface mainSchema extends main$schematype {}
|
|
29
|
+
|
|
30
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
31
|
+
|
|
32
|
+
declare module '@atcute/lexicons/ambient' {
|
|
33
|
+
interface XRPCProcedures {
|
|
34
|
+
'blue.moji.collection.putItem': mainSchema;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
import * as BlueMojiCollectionItem from './item.js';
|
|
5
|
+
|
|
6
|
+
const _mainSchema = /*#__PURE__*/ v.procedure('blue.moji.collection.saveToCollection', {
|
|
7
|
+
params: null,
|
|
8
|
+
input: {
|
|
9
|
+
type: 'lex',
|
|
10
|
+
schema: /*#__PURE__*/ v.object({
|
|
11
|
+
source: /*#__PURE__*/ v.actorIdentifierString(),
|
|
12
|
+
name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 15)]),
|
|
13
|
+
renameTo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
14
|
+
}),
|
|
15
|
+
},
|
|
16
|
+
output: {
|
|
17
|
+
type: 'lex',
|
|
18
|
+
schema: /*#__PURE__*/ v.object({
|
|
19
|
+
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
20
|
+
get item() {
|
|
21
|
+
return BlueMojiCollectionItem.itemViewSchema;
|
|
22
|
+
},
|
|
23
|
+
}),
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
type main$schematype = typeof _mainSchema;
|
|
28
|
+
|
|
29
|
+
export interface mainSchema extends main$schematype {}
|
|
30
|
+
|
|
31
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
32
|
+
|
|
33
|
+
declare module '@atcute/lexicons/ambient' {
|
|
34
|
+
interface XRPCProcedures {
|
|
35
|
+
'blue.moji.collection.saveToCollection': mainSchema;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import * as AppBskyActorDefs from '@atcute/bluesky/types/app/actor/defs';
|
|
4
|
+
import * as AppBskyRichtextFacet from '@atcute/bluesky/types/app/richtext/facet';
|
|
5
|
+
import * as BlueMojiCollectionItem from '../collection/item.js';
|
|
6
|
+
import * as BlueMojiRichtextFacet from '../richtext/facet.js';
|
|
7
|
+
import * as ComAtprotoLabelDefs from '@atcute/atproto/types/label/defs';
|
|
8
|
+
|
|
9
|
+
const _packItemViewSchema = /*#__PURE__*/ v.object({
|
|
10
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.moji.packs.defs#packItemView')),
|
|
11
|
+
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
12
|
+
get subject() {
|
|
13
|
+
return BlueMojiCollectionItem.itemViewSchema;
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
const _packViewSchema = /*#__PURE__*/ v.object({
|
|
17
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.moji.packs.defs#packView')),
|
|
18
|
+
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
19
|
+
cid: /*#__PURE__*/ v.string(),
|
|
20
|
+
get creator() {
|
|
21
|
+
return AppBskyActorDefs.profileViewSchema;
|
|
22
|
+
},
|
|
23
|
+
name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 64)]),
|
|
24
|
+
description: /*#__PURE__*/ v.optional(
|
|
25
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
26
|
+
/*#__PURE__*/ v.stringLength(0, 3000),
|
|
27
|
+
/*#__PURE__*/ v.stringGraphemes(0, 300),
|
|
28
|
+
]),
|
|
29
|
+
),
|
|
30
|
+
get descriptionFacets() {
|
|
31
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(AppBskyRichtextFacet.mainSchema));
|
|
32
|
+
},
|
|
33
|
+
avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()),
|
|
34
|
+
packItemCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
35
|
+
get labels() {
|
|
36
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema));
|
|
37
|
+
},
|
|
38
|
+
get viewer() {
|
|
39
|
+
return /*#__PURE__*/ v.optional(packViewerStateSchema);
|
|
40
|
+
},
|
|
41
|
+
indexedAt: /*#__PURE__*/ v.datetimeString(),
|
|
42
|
+
});
|
|
43
|
+
const _packViewBasicSchema = /*#__PURE__*/ v.object({
|
|
44
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.moji.packs.defs#packViewBasic')),
|
|
45
|
+
uri: /*#__PURE__*/ v.resourceUriString(),
|
|
46
|
+
cid: /*#__PURE__*/ v.string(),
|
|
47
|
+
name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 64)]),
|
|
48
|
+
description: /*#__PURE__*/ v.optional(
|
|
49
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
50
|
+
/*#__PURE__*/ v.stringLength(0, 3000),
|
|
51
|
+
/*#__PURE__*/ v.stringGraphemes(0, 300),
|
|
52
|
+
]),
|
|
53
|
+
),
|
|
54
|
+
get descriptionFacets() {
|
|
55
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(BlueMojiRichtextFacet.mainSchema));
|
|
56
|
+
},
|
|
57
|
+
avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()),
|
|
58
|
+
itemCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
|
|
59
|
+
get labels() {
|
|
60
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ComAtprotoLabelDefs.labelSchema));
|
|
61
|
+
},
|
|
62
|
+
get viewer() {
|
|
63
|
+
return /*#__PURE__*/ v.optional(packViewerStateSchema);
|
|
64
|
+
},
|
|
65
|
+
indexedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
|
|
66
|
+
});
|
|
67
|
+
const _packViewerStateSchema = /*#__PURE__*/ v.object({
|
|
68
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.moji.packs.defs#packViewerState')),
|
|
69
|
+
savedToCollection: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
type packItemView$schematype = typeof _packItemViewSchema;
|
|
73
|
+
type packView$schematype = typeof _packViewSchema;
|
|
74
|
+
type packViewBasic$schematype = typeof _packViewBasicSchema;
|
|
75
|
+
type packViewerState$schematype = typeof _packViewerStateSchema;
|
|
76
|
+
|
|
77
|
+
export interface packItemViewSchema extends packItemView$schematype {}
|
|
78
|
+
export interface packViewSchema extends packView$schematype {}
|
|
79
|
+
export interface packViewBasicSchema extends packViewBasic$schematype {}
|
|
80
|
+
export interface packViewerStateSchema extends packViewerState$schematype {}
|
|
81
|
+
|
|
82
|
+
export const packItemViewSchema = _packItemViewSchema as packItemViewSchema;
|
|
83
|
+
export const packViewSchema = _packViewSchema as packViewSchema;
|
|
84
|
+
export const packViewBasicSchema = _packViewBasicSchema as packViewBasicSchema;
|
|
85
|
+
export const packViewerStateSchema = _packViewerStateSchema as packViewerStateSchema;
|
|
86
|
+
|
|
87
|
+
export interface PackItemView extends v.InferInput<typeof packItemViewSchema> {}
|
|
88
|
+
export interface PackView extends v.InferInput<typeof packViewSchema> {}
|
|
89
|
+
export interface PackViewBasic extends v.InferInput<typeof packViewBasicSchema> {}
|
|
90
|
+
export interface PackViewerState extends v.InferInput<typeof packViewerStateSchema> {}
|
|
@@ -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 BlueMojiPacksDefs from './defs.js';
|
|
5
|
+
|
|
6
|
+
const _mainSchema = /*#__PURE__*/ v.query('blue.moji.packs.getActorPacks', {
|
|
7
|
+
params: /*#__PURE__*/ v.object({
|
|
8
|
+
actor: /*#__PURE__*/ v.actorIdentifierString(),
|
|
9
|
+
limit: /*#__PURE__*/ v.optional(
|
|
10
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
|
|
11
|
+
50,
|
|
12
|
+
),
|
|
13
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
14
|
+
}),
|
|
15
|
+
output: {
|
|
16
|
+
type: 'lex',
|
|
17
|
+
schema: /*#__PURE__*/ v.object({
|
|
18
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
19
|
+
get packs() {
|
|
20
|
+
return /*#__PURE__*/ v.array(BlueMojiPacksDefs.packViewBasicSchema);
|
|
21
|
+
},
|
|
22
|
+
}),
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
type main$schematype = typeof _mainSchema;
|
|
27
|
+
|
|
28
|
+
export interface mainSchema extends main$schematype {}
|
|
29
|
+
|
|
30
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
31
|
+
|
|
32
|
+
declare module '@atcute/lexicons/ambient' {
|
|
33
|
+
interface XRPCQueries {
|
|
34
|
+
'blue.moji.packs.getActorPacks': mainSchema;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
import * as BlueMojiPacksDefs from './defs.js';
|
|
5
|
+
|
|
6
|
+
const _mainSchema = /*#__PURE__*/ v.query('blue.moji.packs.getPack', {
|
|
7
|
+
params: /*#__PURE__*/ v.object({
|
|
8
|
+
pack: /*#__PURE__*/ v.resourceUriString(),
|
|
9
|
+
limit: /*#__PURE__*/ v.optional(
|
|
10
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
|
|
11
|
+
50,
|
|
12
|
+
),
|
|
13
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
14
|
+
}),
|
|
15
|
+
output: {
|
|
16
|
+
type: 'lex',
|
|
17
|
+
schema: /*#__PURE__*/ v.object({
|
|
18
|
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
19
|
+
get pack() {
|
|
20
|
+
return BlueMojiPacksDefs.packViewSchema;
|
|
21
|
+
},
|
|
22
|
+
get items() {
|
|
23
|
+
return /*#__PURE__*/ v.array(BlueMojiPacksDefs.packItemViewSchema);
|
|
24
|
+
},
|
|
25
|
+
}),
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
type main$schematype = typeof _mainSchema;
|
|
30
|
+
|
|
31
|
+
export interface mainSchema extends main$schematype {}
|
|
32
|
+
|
|
33
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
34
|
+
|
|
35
|
+
declare module '@atcute/lexicons/ambient' {
|
|
36
|
+
interface XRPCQueries {
|
|
37
|
+
'blue.moji.packs.getPack': mainSchema;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
import * as BlueMojiPacksDefs from './defs.js';
|
|
5
|
+
|
|
6
|
+
const _mainSchema = /*#__PURE__*/ v.query('blue.moji.packs.getPacks', {
|
|
7
|
+
params: /*#__PURE__*/ v.object({
|
|
8
|
+
uris: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), [
|
|
9
|
+
/*#__PURE__*/ v.arrayLength(0, 25),
|
|
10
|
+
]),
|
|
11
|
+
}),
|
|
12
|
+
output: {
|
|
13
|
+
type: 'lex',
|
|
14
|
+
schema: /*#__PURE__*/ v.object({
|
|
15
|
+
get packs() {
|
|
16
|
+
return /*#__PURE__*/ v.array(BlueMojiPacksDefs.packViewBasicSchema);
|
|
17
|
+
},
|
|
18
|
+
}),
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
type main$schematype = typeof _mainSchema;
|
|
23
|
+
|
|
24
|
+
export interface mainSchema extends main$schematype {}
|
|
25
|
+
|
|
26
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
27
|
+
|
|
28
|
+
declare module '@atcute/lexicons/ambient' {
|
|
29
|
+
interface XRPCQueries {
|
|
30
|
+
'blue.moji.packs.getPacks': mainSchema;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import type {} from '@atcute/lexicons/ambient';
|
|
4
|
+
import * as BlueMojiRichtextFacet from '../richtext/facet.js';
|
|
5
|
+
import * as ComAtprotoLabelDefs from '@atcute/atproto/types/label/defs';
|
|
6
|
+
|
|
7
|
+
const _mainSchema = /*#__PURE__*/ v.record(
|
|
8
|
+
/*#__PURE__*/ v.tidString(),
|
|
9
|
+
/*#__PURE__*/ v.object({
|
|
10
|
+
$type: /*#__PURE__*/ v.literal('blue.moji.packs.pack'),
|
|
11
|
+
name: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(1, 64)]),
|
|
12
|
+
description: /*#__PURE__*/ v.optional(
|
|
13
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
14
|
+
/*#__PURE__*/ v.stringLength(0, 3000),
|
|
15
|
+
/*#__PURE__*/ v.stringGraphemes(0, 300),
|
|
16
|
+
]),
|
|
17
|
+
),
|
|
18
|
+
get descriptionFacets() {
|
|
19
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(BlueMojiRichtextFacet.mainSchema));
|
|
20
|
+
},
|
|
21
|
+
icon: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()),
|
|
22
|
+
adultOnly: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false),
|
|
23
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
24
|
+
get labels() {
|
|
25
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema]));
|
|
26
|
+
},
|
|
27
|
+
}),
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
type main$schematype = typeof _mainSchema;
|
|
31
|
+
|
|
32
|
+
export interface mainSchema extends main$schematype {}
|
|
33
|
+
|
|
34
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
35
|
+
|
|
36
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
37
|
+
|
|
38
|
+
declare module '@atcute/lexicons/ambient' {
|
|
39
|
+
interface Records {
|
|
40
|
+
'blue.moji.packs.pack': mainSchema;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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('blue.moji.packs.packitem'),
|
|
9
|
+
subject: /*#__PURE__*/ v.resourceUriString(),
|
|
10
|
+
pack: /*#__PURE__*/ v.resourceUriString(),
|
|
11
|
+
createdAt: /*#__PURE__*/ v.datetimeString(),
|
|
12
|
+
}),
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
type main$schematype = typeof _mainSchema;
|
|
16
|
+
|
|
17
|
+
export interface mainSchema extends main$schematype {}
|
|
18
|
+
|
|
19
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
20
|
+
|
|
21
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
22
|
+
|
|
23
|
+
declare module '@atcute/lexicons/ambient' {
|
|
24
|
+
interface Records {
|
|
25
|
+
'blue.moji.packs.packitem': mainSchema;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import * as ComAtprotoLabelDefs from '@atcute/atproto/types/label/defs';
|
|
4
|
+
|
|
5
|
+
const _formats_v0Schema = /*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.moji.richtext.facet#formats_v0')),
|
|
7
|
+
png_128: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
8
|
+
webp_128: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
9
|
+
gif_128: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
10
|
+
apng_128: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false),
|
|
11
|
+
lottie: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false),
|
|
12
|
+
});
|
|
13
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
14
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blue.moji.richtext.facet')),
|
|
15
|
+
did: /*#__PURE__*/ v.string(),
|
|
16
|
+
name: /*#__PURE__*/ v.string(),
|
|
17
|
+
alt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
18
|
+
adultOnly: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false),
|
|
19
|
+
get labels() {
|
|
20
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema]));
|
|
21
|
+
},
|
|
22
|
+
get formats() {
|
|
23
|
+
return /*#__PURE__*/ v.variant([formats_v0Schema]);
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
type formats_v0$schematype = typeof _formats_v0Schema;
|
|
28
|
+
type main$schematype = typeof _mainSchema;
|
|
29
|
+
|
|
30
|
+
export interface formats_v0Schema extends formats_v0$schematype {}
|
|
31
|
+
export interface mainSchema extends main$schematype {}
|
|
32
|
+
|
|
33
|
+
export const formats_v0Schema = _formats_v0Schema as formats_v0Schema;
|
|
34
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
35
|
+
|
|
36
|
+
export interface Formats_v0 extends v.InferInput<typeof formats_v0Schema> {}
|
|
37
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@atcute/bluemoji",
|
|
4
|
-
"version": "
|
|
5
|
-
"description": "Bluemoji
|
|
4
|
+
"version": "3.0.1",
|
|
5
|
+
"description": "Bluemoji (blue.moji.*) schema definitions",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"url": "https://github.com/mary-ext/atcute",
|
|
@@ -15,20 +15,21 @@
|
|
|
15
15
|
"!lib/**/*.test.ts"
|
|
16
16
|
],
|
|
17
17
|
"exports": {
|
|
18
|
-
"
|
|
18
|
+
".": "./dist/index.js",
|
|
19
|
+
"./types/": "./dist/lexicons/types/blue/moji/*.js"
|
|
19
20
|
},
|
|
20
|
-
"
|
|
21
|
-
"@atcute/
|
|
22
|
-
"@atcute/
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@atcute/atproto": "^3.0.1",
|
|
23
|
+
"@atcute/lexicons": "^1.0.1",
|
|
24
|
+
"@atcute/bluesky": "^3.0.1"
|
|
23
25
|
},
|
|
24
26
|
"devDependencies": {
|
|
25
|
-
"@atcute/
|
|
26
|
-
"@atcute/lex-cli": "^
|
|
27
|
-
"@atcute/bluesky": "^2.0.0"
|
|
27
|
+
"@atcute/bluemoji": "file:",
|
|
28
|
+
"@atcute/lex-cli": "^2.0.1"
|
|
28
29
|
},
|
|
29
30
|
"scripts": {
|
|
30
31
|
"build": "tsc",
|
|
31
|
-
"generate": "./
|
|
32
|
+
"generate": "rm -r ./lib/lexicons/; lex-cli generate -c ./lex.config.js",
|
|
32
33
|
"prepublish": "rm -rf dist; pnpm run build"
|
|
33
34
|
}
|
|
34
35
|
}
|