Scratch space for learning atproto app development
1/**
2 * GENERATED CODE - DO NOT MODIFY
3 */
4import { LexiconDoc, Lexicons } from '@atproto/lexicon'
5
6export const schemaDict = {
7 AppBskyActorProfile: {
8 lexicon: 1,
9 id: 'app.bsky.actor.profile',
10 defs: {
11 main: {
12 type: 'record',
13 description: 'A declaration of a Bluesky account profile.',
14 key: 'literal:self',
15 record: {
16 type: 'object',
17 properties: {
18 displayName: {
19 type: 'string',
20 maxGraphemes: 64,
21 maxLength: 640,
22 },
23 description: {
24 type: 'string',
25 description: 'Free-form profile description text.',
26 maxGraphemes: 256,
27 maxLength: 2560,
28 },
29 avatar: {
30 type: 'blob',
31 description:
32 "Small image to be displayed next to posts from account. AKA, 'profile picture'",
33 accept: ['image/png', 'image/jpeg'],
34 maxSize: 1000000,
35 },
36 banner: {
37 type: 'blob',
38 description:
39 'Larger horizontal image to display behind profile view.',
40 accept: ['image/png', 'image/jpeg'],
41 maxSize: 1000000,
42 },
43 labels: {
44 type: 'union',
45 description:
46 'Self-label values, specific to the Bluesky application, on the overall account.',
47 refs: ['lex:com.atproto.label.defs#selfLabels'],
48 },
49 joinedViaStarterPack: {
50 type: 'ref',
51 ref: 'lex:com.atproto.repo.strongRef',
52 },
53 createdAt: {
54 type: 'string',
55 format: 'datetime',
56 },
57 },
58 },
59 },
60 },
61 },
62 ComExampleStatus: {
63 lexicon: 1,
64 id: 'com.example.status',
65 defs: {
66 main: {
67 type: 'record',
68 key: 'literal:self',
69 record: {
70 type: 'object',
71 required: ['status', 'createdAt'],
72 properties: {
73 status: {
74 type: 'string',
75 minLength: 1,
76 maxGraphemes: 1,
77 maxLength: 32,
78 },
79 createdAt: {
80 type: 'string',
81 format: 'datetime',
82 },
83 },
84 },
85 },
86 },
87 },
88}
89export const schemas: LexiconDoc[] = Object.values(schemaDict) as LexiconDoc[]
90export const lexicons: Lexicons = new Lexicons(schemas)
91export const ids = {
92 AppBskyActorProfile: 'app.bsky.actor.profile',
93 ComExampleStatus: 'com.example.status',
94}