···11-# sv
22-33-Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
44-55-## Creating a project
66-77-If you're seeing this, you've probably already done this step. Congrats!
88-99-```sh
1010-# create a new project in the current directory
1111-npx sv create
1212-1313-# create a new project in my-app
1414-npx sv create my-app
1515-```
11+# sunrise
1621717-## Developing
33+a cross-lexicon atproto viewer. powered by quickslice (hopefully).
1841919-Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
2020-2121-```sh
2222-npm run dev
2323-2424-# or start the server and open the app in a new browser tab
2525-npm run dev -- --open
2626-```
2727-2828-## Building
2929-3030-To create a production version of your app:
3131-3232-```sh
3333-npm run build
3434-```
3535-3636-You can preview the production build with `npm run preview`.
3737-3838-> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
55+collecting lexicons in the `lexicons/` directory and implementing a subset of these lexicons for display in a simple feed.
+666
lexicons/app/bsky/actor/defs.json
···11+{
22+ "lexicon": 1,
33+ "id": "app.bsky.actor.defs",
44+ "defs": {
55+ "profileViewBasic": {
66+ "type": "object",
77+ "required": ["did", "handle"],
88+ "properties": {
99+ "did": { "type": "string", "format": "did" },
1010+ "handle": { "type": "string", "format": "handle" },
1111+ "displayName": {
1212+ "type": "string",
1313+ "maxGraphemes": 64,
1414+ "maxLength": 640
1515+ },
1616+ "pronouns": { "type": "string" },
1717+ "avatar": { "type": "string", "format": "uri" },
1818+ "associated": {
1919+ "type": "ref",
2020+ "ref": "#profileAssociated"
2121+ },
2222+ "viewer": { "type": "ref", "ref": "#viewerState" },
2323+ "labels": {
2424+ "type": "array",
2525+ "items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
2626+ },
2727+ "createdAt": { "type": "string", "format": "datetime" },
2828+ "verification": {
2929+ "type": "ref",
3030+ "ref": "#verificationState"
3131+ },
3232+ "status": {
3333+ "type": "ref",
3434+ "ref": "#statusView"
3535+ },
3636+ "debug": {
3737+ "type": "unknown",
3838+ "description": "Debug information for internal development"
3939+ }
4040+ }
4141+ },
4242+ "profileView": {
4343+ "type": "object",
4444+ "required": ["did", "handle"],
4545+ "properties": {
4646+ "did": { "type": "string", "format": "did" },
4747+ "handle": { "type": "string", "format": "handle" },
4848+ "displayName": {
4949+ "type": "string",
5050+ "maxGraphemes": 64,
5151+ "maxLength": 640
5252+ },
5353+ "pronouns": { "type": "string" },
5454+ "description": {
5555+ "type": "string",
5656+ "maxGraphemes": 256,
5757+ "maxLength": 2560
5858+ },
5959+ "avatar": { "type": "string", "format": "uri" },
6060+ "associated": {
6161+ "type": "ref",
6262+ "ref": "#profileAssociated"
6363+ },
6464+ "indexedAt": { "type": "string", "format": "datetime" },
6565+ "createdAt": { "type": "string", "format": "datetime" },
6666+ "viewer": { "type": "ref", "ref": "#viewerState" },
6767+ "labels": {
6868+ "type": "array",
6969+ "items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
7070+ },
7171+ "verification": {
7272+ "type": "ref",
7373+ "ref": "#verificationState"
7474+ },
7575+ "status": {
7676+ "type": "ref",
7777+ "ref": "#statusView"
7878+ },
7979+ "debug": {
8080+ "type": "unknown",
8181+ "description": "Debug information for internal development"
8282+ }
8383+ }
8484+ },
8585+ "profileViewDetailed": {
8686+ "type": "object",
8787+ "required": ["did", "handle"],
8888+ "properties": {
8989+ "did": { "type": "string", "format": "did" },
9090+ "handle": { "type": "string", "format": "handle" },
9191+ "displayName": {
9292+ "type": "string",
9393+ "maxGraphemes": 64,
9494+ "maxLength": 640
9595+ },
9696+ "description": {
9797+ "type": "string",
9898+ "maxGraphemes": 256,
9999+ "maxLength": 2560
100100+ },
101101+ "pronouns": { "type": "string" },
102102+ "website": { "type": "string", "format": "uri" },
103103+ "avatar": { "type": "string", "format": "uri" },
104104+ "banner": { "type": "string", "format": "uri" },
105105+ "followersCount": { "type": "integer" },
106106+ "followsCount": { "type": "integer" },
107107+ "postsCount": { "type": "integer" },
108108+ "associated": {
109109+ "type": "ref",
110110+ "ref": "#profileAssociated"
111111+ },
112112+ "joinedViaStarterPack": {
113113+ "type": "ref",
114114+ "ref": "app.bsky.graph.defs#starterPackViewBasic"
115115+ },
116116+ "indexedAt": { "type": "string", "format": "datetime" },
117117+ "createdAt": { "type": "string", "format": "datetime" },
118118+ "viewer": { "type": "ref", "ref": "#viewerState" },
119119+ "labels": {
120120+ "type": "array",
121121+ "items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
122122+ },
123123+ "pinnedPost": {
124124+ "type": "ref",
125125+ "ref": "com.atproto.repo.strongRef"
126126+ },
127127+ "verification": {
128128+ "type": "ref",
129129+ "ref": "#verificationState"
130130+ },
131131+ "status": {
132132+ "type": "ref",
133133+ "ref": "#statusView"
134134+ },
135135+ "debug": {
136136+ "type": "unknown",
137137+ "description": "Debug information for internal development"
138138+ }
139139+ }
140140+ },
141141+ "profileAssociated": {
142142+ "type": "object",
143143+ "properties": {
144144+ "lists": { "type": "integer" },
145145+ "feedgens": { "type": "integer" },
146146+ "starterPacks": { "type": "integer" },
147147+ "labeler": { "type": "boolean" },
148148+ "chat": { "type": "ref", "ref": "#profileAssociatedChat" },
149149+ "activitySubscription": {
150150+ "type": "ref",
151151+ "ref": "#profileAssociatedActivitySubscription"
152152+ }
153153+ }
154154+ },
155155+ "profileAssociatedChat": {
156156+ "type": "object",
157157+ "required": ["allowIncoming"],
158158+ "properties": {
159159+ "allowIncoming": {
160160+ "type": "string",
161161+ "knownValues": ["all", "none", "following"]
162162+ }
163163+ }
164164+ },
165165+ "profileAssociatedActivitySubscription": {
166166+ "type": "object",
167167+ "required": ["allowSubscriptions"],
168168+ "properties": {
169169+ "allowSubscriptions": {
170170+ "type": "string",
171171+ "knownValues": ["followers", "mutuals", "none"]
172172+ }
173173+ }
174174+ },
175175+ "viewerState": {
176176+ "type": "object",
177177+ "description": "Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests.",
178178+ "properties": {
179179+ "muted": { "type": "boolean" },
180180+ "mutedByList": {
181181+ "type": "ref",
182182+ "ref": "app.bsky.graph.defs#listViewBasic"
183183+ },
184184+ "blockedBy": { "type": "boolean" },
185185+ "blocking": { "type": "string", "format": "at-uri" },
186186+ "blockingByList": {
187187+ "type": "ref",
188188+ "ref": "app.bsky.graph.defs#listViewBasic"
189189+ },
190190+ "following": { "type": "string", "format": "at-uri" },
191191+ "followedBy": { "type": "string", "format": "at-uri" },
192192+ "knownFollowers": {
193193+ "description": "This property is present only in selected cases, as an optimization.",
194194+ "type": "ref",
195195+ "ref": "#knownFollowers"
196196+ },
197197+ "activitySubscription": {
198198+ "description": "This property is present only in selected cases, as an optimization.",
199199+ "type": "ref",
200200+ "ref": "app.bsky.notification.defs#activitySubscription"
201201+ }
202202+ }
203203+ },
204204+ "knownFollowers": {
205205+ "type": "object",
206206+ "description": "The subject's followers whom you also follow",
207207+ "required": ["count", "followers"],
208208+ "properties": {
209209+ "count": { "type": "integer" },
210210+ "followers": {
211211+ "type": "array",
212212+ "minLength": 0,
213213+ "maxLength": 5,
214214+ "items": {
215215+ "type": "ref",
216216+ "ref": "#profileViewBasic"
217217+ }
218218+ }
219219+ }
220220+ },
221221+ "verificationState": {
222222+ "type": "object",
223223+ "description": "Represents the verification information about the user this object is attached to.",
224224+ "required": ["verifications", "verifiedStatus", "trustedVerifierStatus"],
225225+ "properties": {
226226+ "verifications": {
227227+ "type": "array",
228228+ "description": "All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included.",
229229+ "items": { "type": "ref", "ref": "#verificationView" }
230230+ },
231231+ "verifiedStatus": {
232232+ "type": "string",
233233+ "description": "The user's status as a verified account.",
234234+ "knownValues": ["valid", "invalid", "none"]
235235+ },
236236+ "trustedVerifierStatus": {
237237+ "type": "string",
238238+ "description": "The user's status as a trusted verifier.",
239239+ "knownValues": ["valid", "invalid", "none"]
240240+ }
241241+ }
242242+ },
243243+ "verificationView": {
244244+ "type": "object",
245245+ "description": "An individual verification for an associated subject.",
246246+ "required": ["issuer", "uri", "isValid", "createdAt"],
247247+ "properties": {
248248+ "issuer": {
249249+ "type": "string",
250250+ "description": "The user who issued this verification.",
251251+ "format": "did"
252252+ },
253253+ "uri": {
254254+ "type": "string",
255255+ "description": "The AT-URI of the verification record.",
256256+ "format": "at-uri"
257257+ },
258258+ "isValid": {
259259+ "type": "boolean",
260260+ "description": "True if the verification passes validation, otherwise false."
261261+ },
262262+ "createdAt": {
263263+ "type": "string",
264264+ "description": "Timestamp when the verification was created.",
265265+ "format": "datetime"
266266+ }
267267+ }
268268+ },
269269+ "preferences": {
270270+ "type": "array",
271271+ "items": {
272272+ "type": "union",
273273+ "refs": [
274274+ "#adultContentPref",
275275+ "#contentLabelPref",
276276+ "#savedFeedsPref",
277277+ "#savedFeedsPrefV2",
278278+ "#personalDetailsPref",
279279+ "#declaredAgePref",
280280+ "#feedViewPref",
281281+ "#threadViewPref",
282282+ "#interestsPref",
283283+ "#mutedWordsPref",
284284+ "#hiddenPostsPref",
285285+ "#bskyAppStatePref",
286286+ "#labelersPref",
287287+ "#postInteractionSettingsPref",
288288+ "#verificationPrefs"
289289+ ]
290290+ }
291291+ },
292292+ "adultContentPref": {
293293+ "type": "object",
294294+ "required": ["enabled"],
295295+ "properties": {
296296+ "enabled": { "type": "boolean", "default": false }
297297+ }
298298+ },
299299+ "contentLabelPref": {
300300+ "type": "object",
301301+ "required": ["label", "visibility"],
302302+ "properties": {
303303+ "labelerDid": {
304304+ "type": "string",
305305+ "description": "Which labeler does this preference apply to? If undefined, applies globally.",
306306+ "format": "did"
307307+ },
308308+ "label": { "type": "string" },
309309+ "visibility": {
310310+ "type": "string",
311311+ "knownValues": ["ignore", "show", "warn", "hide"]
312312+ }
313313+ }
314314+ },
315315+ "savedFeed": {
316316+ "type": "object",
317317+ "required": ["id", "type", "value", "pinned"],
318318+ "properties": {
319319+ "id": {
320320+ "type": "string"
321321+ },
322322+ "type": {
323323+ "type": "string",
324324+ "knownValues": ["feed", "list", "timeline"]
325325+ },
326326+ "value": {
327327+ "type": "string"
328328+ },
329329+ "pinned": {
330330+ "type": "boolean"
331331+ }
332332+ }
333333+ },
334334+ "savedFeedsPrefV2": {
335335+ "type": "object",
336336+ "required": ["items"],
337337+ "properties": {
338338+ "items": {
339339+ "type": "array",
340340+ "items": {
341341+ "type": "ref",
342342+ "ref": "app.bsky.actor.defs#savedFeed"
343343+ }
344344+ }
345345+ }
346346+ },
347347+ "savedFeedsPref": {
348348+ "type": "object",
349349+ "required": ["pinned", "saved"],
350350+ "properties": {
351351+ "pinned": {
352352+ "type": "array",
353353+ "items": {
354354+ "type": "string",
355355+ "format": "at-uri"
356356+ }
357357+ },
358358+ "saved": {
359359+ "type": "array",
360360+ "items": {
361361+ "type": "string",
362362+ "format": "at-uri"
363363+ }
364364+ },
365365+ "timelineIndex": {
366366+ "type": "integer"
367367+ }
368368+ }
369369+ },
370370+ "personalDetailsPref": {
371371+ "type": "object",
372372+ "properties": {
373373+ "birthDate": {
374374+ "type": "string",
375375+ "format": "datetime",
376376+ "description": "The birth date of account owner."
377377+ }
378378+ }
379379+ },
380380+ "declaredAgePref": {
381381+ "type": "object",
382382+ "description": "Read-only preference containing value(s) inferred from the user's declared birthdate. Absence of this preference object in the response indicates that the user has not made a declaration.",
383383+ "properties": {
384384+ "isOverAge13": {
385385+ "type": "boolean",
386386+ "description": "Indicates if the user has declared that they are over 13 years of age."
387387+ },
388388+ "isOverAge16": {
389389+ "type": "boolean",
390390+ "description": "Indicates if the user has declared that they are over 16 years of age."
391391+ },
392392+ "isOverAge18": {
393393+ "type": "boolean",
394394+ "description": "Indicates if the user has declared that they are over 18 years of age."
395395+ }
396396+ }
397397+ },
398398+ "feedViewPref": {
399399+ "type": "object",
400400+ "required": ["feed"],
401401+ "properties": {
402402+ "feed": {
403403+ "type": "string",
404404+ "description": "The URI of the feed, or an identifier which describes the feed."
405405+ },
406406+ "hideReplies": {
407407+ "type": "boolean",
408408+ "description": "Hide replies in the feed."
409409+ },
410410+ "hideRepliesByUnfollowed": {
411411+ "type": "boolean",
412412+ "description": "Hide replies in the feed if they are not by followed users.",
413413+ "default": true
414414+ },
415415+ "hideRepliesByLikeCount": {
416416+ "type": "integer",
417417+ "description": "Hide replies in the feed if they do not have this number of likes."
418418+ },
419419+ "hideReposts": {
420420+ "type": "boolean",
421421+ "description": "Hide reposts in the feed."
422422+ },
423423+ "hideQuotePosts": {
424424+ "type": "boolean",
425425+ "description": "Hide quote posts in the feed."
426426+ }
427427+ }
428428+ },
429429+ "threadViewPref": {
430430+ "type": "object",
431431+ "properties": {
432432+ "sort": {
433433+ "type": "string",
434434+ "description": "Sorting mode for threads.",
435435+ "knownValues": ["oldest", "newest", "most-likes", "random", "hotness"]
436436+ }
437437+ }
438438+ },
439439+ "interestsPref": {
440440+ "type": "object",
441441+ "required": ["tags"],
442442+ "properties": {
443443+ "tags": {
444444+ "type": "array",
445445+ "maxLength": 100,
446446+ "items": { "type": "string", "maxLength": 640, "maxGraphemes": 64 },
447447+ "description": "A list of tags which describe the account owner's interests gathered during onboarding."
448448+ }
449449+ }
450450+ },
451451+ "mutedWordTarget": {
452452+ "type": "string",
453453+ "knownValues": ["content", "tag"],
454454+ "maxLength": 640,
455455+ "maxGraphemes": 64
456456+ },
457457+ "mutedWord": {
458458+ "type": "object",
459459+ "description": "A word that the account owner has muted.",
460460+ "required": ["value", "targets"],
461461+ "properties": {
462462+ "id": { "type": "string" },
463463+ "value": {
464464+ "type": "string",
465465+ "description": "The muted word itself.",
466466+ "maxLength": 10000,
467467+ "maxGraphemes": 1000
468468+ },
469469+ "targets": {
470470+ "type": "array",
471471+ "description": "The intended targets of the muted word.",
472472+ "items": {
473473+ "type": "ref",
474474+ "ref": "app.bsky.actor.defs#mutedWordTarget"
475475+ }
476476+ },
477477+ "actorTarget": {
478478+ "type": "string",
479479+ "description": "Groups of users to apply the muted word to. If undefined, applies to all users.",
480480+ "knownValues": ["all", "exclude-following"],
481481+ "default": "all"
482482+ },
483483+ "expiresAt": {
484484+ "type": "string",
485485+ "format": "datetime",
486486+ "description": "The date and time at which the muted word will expire and no longer be applied."
487487+ }
488488+ }
489489+ },
490490+ "mutedWordsPref": {
491491+ "type": "object",
492492+ "required": ["items"],
493493+ "properties": {
494494+ "items": {
495495+ "type": "array",
496496+ "items": {
497497+ "type": "ref",
498498+ "ref": "app.bsky.actor.defs#mutedWord"
499499+ },
500500+ "description": "A list of words the account owner has muted."
501501+ }
502502+ }
503503+ },
504504+ "hiddenPostsPref": {
505505+ "type": "object",
506506+ "required": ["items"],
507507+ "properties": {
508508+ "items": {
509509+ "type": "array",
510510+ "items": { "type": "string", "format": "at-uri" },
511511+ "description": "A list of URIs of posts the account owner has hidden."
512512+ }
513513+ }
514514+ },
515515+ "labelersPref": {
516516+ "type": "object",
517517+ "required": ["labelers"],
518518+ "properties": {
519519+ "labelers": {
520520+ "type": "array",
521521+ "items": {
522522+ "type": "ref",
523523+ "ref": "#labelerPrefItem"
524524+ }
525525+ }
526526+ }
527527+ },
528528+ "labelerPrefItem": {
529529+ "type": "object",
530530+ "required": ["did"],
531531+ "properties": {
532532+ "did": {
533533+ "type": "string",
534534+ "format": "did"
535535+ }
536536+ }
537537+ },
538538+ "bskyAppStatePref": {
539539+ "description": "A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this.",
540540+ "type": "object",
541541+ "properties": {
542542+ "activeProgressGuide": {
543543+ "type": "ref",
544544+ "ref": "#bskyAppProgressGuide"
545545+ },
546546+ "queuedNudges": {
547547+ "description": "An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user.",
548548+ "type": "array",
549549+ "maxLength": 1000,
550550+ "items": { "type": "string", "maxLength": 100 }
551551+ },
552552+ "nuxs": {
553553+ "description": "Storage for NUXs the user has encountered.",
554554+ "type": "array",
555555+ "maxLength": 100,
556556+ "items": {
557557+ "type": "ref",
558558+ "ref": "app.bsky.actor.defs#nux"
559559+ }
560560+ }
561561+ }
562562+ },
563563+ "bskyAppProgressGuide": {
564564+ "description": "If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress.",
565565+ "type": "object",
566566+ "required": ["guide"],
567567+ "properties": {
568568+ "guide": { "type": "string", "maxLength": 100 }
569569+ }
570570+ },
571571+ "nux": {
572572+ "type": "object",
573573+ "description": "A new user experiences (NUX) storage object",
574574+ "required": ["id", "completed"],
575575+ "properties": {
576576+ "id": {
577577+ "type": "string",
578578+ "maxLength": 100
579579+ },
580580+ "completed": {
581581+ "type": "boolean",
582582+ "default": false
583583+ },
584584+ "data": {
585585+ "description": "Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters.",
586586+ "type": "string",
587587+ "maxLength": 3000,
588588+ "maxGraphemes": 300
589589+ },
590590+ "expiresAt": {
591591+ "type": "string",
592592+ "format": "datetime",
593593+ "description": "The date and time at which the NUX will expire and should be considered completed."
594594+ }
595595+ }
596596+ },
597597+ "verificationPrefs": {
598598+ "type": "object",
599599+ "description": "Preferences for how verified accounts appear in the app.",
600600+ "required": [],
601601+ "properties": {
602602+ "hideBadges": {
603603+ "description": "Hide the blue check badges for verified accounts and trusted verifiers.",
604604+ "type": "boolean",
605605+ "default": false
606606+ }
607607+ }
608608+ },
609609+ "postInteractionSettingsPref": {
610610+ "type": "object",
611611+ "description": "Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.",
612612+ "required": [],
613613+ "properties": {
614614+ "threadgateAllowRules": {
615615+ "description": "Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply.",
616616+ "type": "array",
617617+ "maxLength": 5,
618618+ "items": {
619619+ "type": "union",
620620+ "refs": [
621621+ "app.bsky.feed.threadgate#mentionRule",
622622+ "app.bsky.feed.threadgate#followerRule",
623623+ "app.bsky.feed.threadgate#followingRule",
624624+ "app.bsky.feed.threadgate#listRule"
625625+ ]
626626+ }
627627+ },
628628+ "postgateEmbeddingRules": {
629629+ "description": "Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed.",
630630+ "type": "array",
631631+ "maxLength": 5,
632632+ "items": {
633633+ "type": "union",
634634+ "refs": ["app.bsky.feed.postgate#disableRule"]
635635+ }
636636+ }
637637+ }
638638+ },
639639+ "statusView": {
640640+ "type": "object",
641641+ "required": ["status", "record"],
642642+ "properties": {
643643+ "status": {
644644+ "type": "string",
645645+ "description": "The status for the account.",
646646+ "knownValues": ["app.bsky.actor.status#live"]
647647+ },
648648+ "record": { "type": "unknown" },
649649+ "embed": {
650650+ "type": "union",
651651+ "description": "An optional embed associated with the status.",
652652+ "refs": ["app.bsky.embed.external#view"]
653653+ },
654654+ "expiresAt": {
655655+ "type": "string",
656656+ "description": "The date when this status will expire. The application might choose to no longer return the status after expiration.",
657657+ "format": "datetime"
658658+ },
659659+ "isActive": {
660660+ "type": "boolean",
661661+ "description": "True if the status is not expired, false if it is expired. Only present if expiration was set."
662662+ }
663663+ }
664664+ }
665665+ }
666666+}
+57
lexicons/app/bsky/contact/defs.json
···11+{
22+ "lexicon": 1,
33+ "id": "app.bsky.contact.defs",
44+ "defs": {
55+ "matchAndContactIndex": {
66+ "description": "Associates a profile with the positional index of the contact import input in the call to `app.bsky.contact.importContacts`, so clients can know which phone caused a particular match.",
77+ "type": "object",
88+ "required": ["match", "contactIndex"],
99+ "properties": {
1010+ "match": {
1111+ "description": "Profile of the matched user.",
1212+ "type": "ref",
1313+ "ref": "app.bsky.actor.defs#profileView"
1414+ },
1515+ "contactIndex": {
1616+ "description": "The index of this match in the import contact input.",
1717+ "type": "integer",
1818+ "minimum": 0,
1919+ "maximum": 999
2020+ }
2121+ }
2222+ },
2323+ "syncStatus": {
2424+ "type": "object",
2525+ "required": ["syncedAt", "matchesCount"],
2626+ "properties": {
2727+ "syncedAt": {
2828+ "description": "Last date when contacts where imported.",
2929+ "type": "string",
3030+ "format": "datetime"
3131+ },
3232+ "matchesCount": {
3333+ "description": "Number of existing contact matches resulting of the user imports and of their imported contacts having imported the user. Matches stop being counted when the user either follows the matched contact or dismisses the match.",
3434+ "type": "integer",
3535+ "minimum": 0
3636+ }
3737+ }
3838+ },
3939+ "notification": {
4040+ "description": "A stash object to be sent via bsync representing a notification to be created.",
4141+ "type": "object",
4242+ "required": ["from", "to"],
4343+ "properties": {
4444+ "from": {
4545+ "description": "The DID of who this notification comes from.",
4646+ "type": "string",
4747+ "format": "did"
4848+ },
4949+ "to": {
5050+ "description": "The DID of who this notification should go to.",
5151+ "type": "string",
5252+ "format": "did"
5353+ }
5454+ }
5555+ }
5656+ }
5757+}
+15
lexicons/app/bsky/embed/defs.json
···11+{
22+ "lexicon": 1,
33+ "id": "app.bsky.embed.defs",
44+ "defs": {
55+ "aspectRatio": {
66+ "type": "object",
77+ "description": "width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.",
88+ "required": ["width", "height"],
99+ "properties": {
1010+ "width": { "type": "integer", "minimum": 1 },
1111+ "height": { "type": "integer", "minimum": 1 }
1212+ }
1313+ }
1414+ }
1515+}
···11+{
22+ "lexicon": 1,
33+ "id": "app.bsky.feed.post",
44+ "defs": {
55+ "main": {
66+ "type": "record",
77+ "description": "Record containing a Bluesky post.",
88+ "key": "tid",
99+ "record": {
1010+ "type": "object",
1111+ "required": ["text", "createdAt"],
1212+ "properties": {
1313+ "text": {
1414+ "type": "string",
1515+ "maxLength": 3000,
1616+ "maxGraphemes": 300,
1717+ "description": "The primary post content. May be an empty string, if there are embeds."
1818+ },
1919+ "entities": {
2020+ "type": "array",
2121+ "description": "DEPRECATED: replaced by app.bsky.richtext.facet.",
2222+ "items": { "type": "ref", "ref": "#entity" }
2323+ },
2424+ "facets": {
2525+ "type": "array",
2626+ "description": "Annotations of text (mentions, URLs, hashtags, etc)",
2727+ "items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
2828+ },
2929+ "reply": { "type": "ref", "ref": "#replyRef" },
3030+ "embed": {
3131+ "type": "union",
3232+ "refs": [
3333+ "app.bsky.embed.images",
3434+ "app.bsky.embed.video",
3535+ "app.bsky.embed.external",
3636+ "app.bsky.embed.record",
3737+ "app.bsky.embed.recordWithMedia"
3838+ ]
3939+ },
4040+ "langs": {
4141+ "type": "array",
4242+ "description": "Indicates human language of post primary text content.",
4343+ "maxLength": 3,
4444+ "items": { "type": "string", "format": "language" }
4545+ },
4646+ "labels": {
4747+ "type": "union",
4848+ "description": "Self-label values for this post. Effectively content warnings.",
4949+ "refs": ["com.atproto.label.defs#selfLabels"]
5050+ },
5151+ "tags": {
5252+ "type": "array",
5353+ "description": "Additional hashtags, in addition to any included in post text and facets.",
5454+ "maxLength": 8,
5555+ "items": { "type": "string", "maxLength": 640, "maxGraphemes": 64 }
5656+ },
5757+ "createdAt": {
5858+ "type": "string",
5959+ "format": "datetime",
6060+ "description": "Client-declared timestamp when this post was originally created."
6161+ }
6262+ }
6363+ }
6464+ },
6565+ "replyRef": {
6666+ "type": "object",
6767+ "required": ["root", "parent"],
6868+ "properties": {
6969+ "root": { "type": "ref", "ref": "com.atproto.repo.strongRef" },
7070+ "parent": { "type": "ref", "ref": "com.atproto.repo.strongRef" }
7171+ }
7272+ },
7373+ "entity": {
7474+ "type": "object",
7575+ "description": "Deprecated: use facets instead.",
7676+ "required": ["index", "type", "value"],
7777+ "properties": {
7878+ "index": { "type": "ref", "ref": "#textSlice" },
7979+ "type": {
8080+ "type": "string",
8181+ "description": "Expected values are 'mention' and 'link'."
8282+ },
8383+ "value": { "type": "string" }
8484+ }
8585+ },
8686+ "textSlice": {
8787+ "type": "object",
8888+ "description": "Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings.",
8989+ "required": ["start", "end"],
9090+ "properties": {
9191+ "start": { "type": "integer", "minimum": 0 },
9292+ "end": { "type": "integer", "minimum": 0 }
9393+ }
9494+ }
9595+ }
9696+}
+46
lexicons/app/bsky/feed/postgate.json
···11+{
22+ "lexicon": 1,
33+ "id": "app.bsky.feed.postgate",
44+ "defs": {
55+ "main": {
66+ "type": "record",
77+ "key": "tid",
88+ "description": "Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository.",
99+ "record": {
1010+ "type": "object",
1111+ "required": ["post", "createdAt"],
1212+ "properties": {
1313+ "createdAt": { "type": "string", "format": "datetime" },
1414+ "post": {
1515+ "type": "string",
1616+ "format": "at-uri",
1717+ "description": "Reference (AT-URI) to the post record."
1818+ },
1919+ "detachedEmbeddingUris": {
2020+ "type": "array",
2121+ "maxLength": 50,
2222+ "items": {
2323+ "type": "string",
2424+ "format": "at-uri"
2525+ },
2626+ "description": "List of AT-URIs embedding this post that the author has detached from."
2727+ },
2828+ "embeddingRules": {
2929+ "description": "List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed.",
3030+ "type": "array",
3131+ "maxLength": 5,
3232+ "items": {
3333+ "type": "union",
3434+ "refs": ["#disableRule"]
3535+ }
3636+ }
3737+ }
3838+ }
3939+ },
4040+ "disableRule": {
4141+ "type": "object",
4242+ "description": "Disables embedding of this post.",
4343+ "properties": {}
4444+ }
4545+ }
4646+}
+69
lexicons/app/bsky/feed/threadgate.json
···11+{
22+ "lexicon": 1,
33+ "id": "app.bsky.feed.threadgate",
44+ "defs": {
55+ "main": {
66+ "type": "record",
77+ "key": "tid",
88+ "description": "Record defining interaction gating rules for a thread (aka, reply controls). The record key (rkey) of the threadgate record must match the record key of the thread's root post, and that record must be in the same repository.",
99+ "record": {
1010+ "type": "object",
1111+ "required": ["post", "createdAt"],
1212+ "properties": {
1313+ "post": {
1414+ "type": "string",
1515+ "format": "at-uri",
1616+ "description": "Reference (AT-URI) to the post record."
1717+ },
1818+ "allow": {
1919+ "description": "List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply.",
2020+ "type": "array",
2121+ "maxLength": 5,
2222+ "items": {
2323+ "type": "union",
2424+ "refs": [
2525+ "#mentionRule",
2626+ "#followerRule",
2727+ "#followingRule",
2828+ "#listRule"
2929+ ]
3030+ }
3131+ },
3232+ "createdAt": { "type": "string", "format": "datetime" },
3333+ "hiddenReplies": {
3434+ "type": "array",
3535+ "maxLength": 300,
3636+ "items": {
3737+ "type": "string",
3838+ "format": "at-uri"
3939+ },
4040+ "description": "List of hidden reply URIs."
4141+ }
4242+ }
4343+ }
4444+ },
4545+ "mentionRule": {
4646+ "type": "object",
4747+ "description": "Allow replies from actors mentioned in your post.",
4848+ "properties": {}
4949+ },
5050+ "followerRule": {
5151+ "type": "object",
5252+ "description": "Allow replies from actors who follow you.",
5353+ "properties": {}
5454+ },
5555+ "followingRule": {
5656+ "type": "object",
5757+ "description": "Allow replies from actors you follow.",
5858+ "properties": {}
5959+ },
6060+ "listRule": {
6161+ "type": "object",
6262+ "description": "Allow replies from actors on a list.",
6363+ "required": ["list"],
6464+ "properties": {
6565+ "list": { "type": "string", "format": "at-uri" }
6666+ }
6767+ }
6868+ }
6969+}
+186
lexicons/app/bsky/graph/defs.json
···11+{
22+ "lexicon": 1,
33+ "id": "app.bsky.graph.defs",
44+ "defs": {
55+ "listViewBasic": {
66+ "type": "object",
77+ "required": ["uri", "cid", "name", "purpose"],
88+ "properties": {
99+ "uri": { "type": "string", "format": "at-uri" },
1010+ "cid": { "type": "string", "format": "cid" },
1111+ "name": { "type": "string", "maxLength": 64, "minLength": 1 },
1212+ "purpose": { "type": "ref", "ref": "#listPurpose" },
1313+ "avatar": { "type": "string", "format": "uri" },
1414+ "listItemCount": { "type": "integer", "minimum": 0 },
1515+ "labels": {
1616+ "type": "array",
1717+ "items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
1818+ },
1919+ "viewer": { "type": "ref", "ref": "#listViewerState" },
2020+ "indexedAt": { "type": "string", "format": "datetime" }
2121+ }
2222+ },
2323+ "listView": {
2424+ "type": "object",
2525+ "required": ["uri", "cid", "creator", "name", "purpose", "indexedAt"],
2626+ "properties": {
2727+ "uri": { "type": "string", "format": "at-uri" },
2828+ "cid": { "type": "string", "format": "cid" },
2929+ "creator": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" },
3030+ "name": { "type": "string", "maxLength": 64, "minLength": 1 },
3131+ "purpose": { "type": "ref", "ref": "#listPurpose" },
3232+ "description": {
3333+ "type": "string",
3434+ "maxGraphemes": 300,
3535+ "maxLength": 3000
3636+ },
3737+ "descriptionFacets": {
3838+ "type": "array",
3939+ "items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
4040+ },
4141+ "avatar": { "type": "string", "format": "uri" },
4242+ "listItemCount": { "type": "integer", "minimum": 0 },
4343+ "labels": {
4444+ "type": "array",
4545+ "items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
4646+ },
4747+ "viewer": { "type": "ref", "ref": "#listViewerState" },
4848+ "indexedAt": { "type": "string", "format": "datetime" }
4949+ }
5050+ },
5151+ "listItemView": {
5252+ "type": "object",
5353+ "required": ["uri", "subject"],
5454+ "properties": {
5555+ "uri": { "type": "string", "format": "at-uri" },
5656+ "subject": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" }
5757+ }
5858+ },
5959+ "starterPackView": {
6060+ "type": "object",
6161+ "required": ["uri", "cid", "record", "creator", "indexedAt"],
6262+ "properties": {
6363+ "uri": { "type": "string", "format": "at-uri" },
6464+ "cid": { "type": "string", "format": "cid" },
6565+ "record": { "type": "unknown" },
6666+ "creator": {
6767+ "type": "ref",
6868+ "ref": "app.bsky.actor.defs#profileViewBasic"
6969+ },
7070+ "list": { "type": "ref", "ref": "#listViewBasic" },
7171+ "listItemsSample": {
7272+ "type": "array",
7373+ "maxLength": 12,
7474+ "items": { "type": "ref", "ref": "#listItemView" }
7575+ },
7676+ "feeds": {
7777+ "type": "array",
7878+ "maxLength": 3,
7979+ "items": { "type": "ref", "ref": "app.bsky.feed.defs#generatorView" }
8080+ },
8181+ "joinedWeekCount": { "type": "integer", "minimum": 0 },
8282+ "joinedAllTimeCount": { "type": "integer", "minimum": 0 },
8383+ "labels": {
8484+ "type": "array",
8585+ "items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
8686+ },
8787+ "indexedAt": { "type": "string", "format": "datetime" }
8888+ }
8989+ },
9090+ "starterPackViewBasic": {
9191+ "type": "object",
9292+ "required": ["uri", "cid", "record", "creator", "indexedAt"],
9393+ "properties": {
9494+ "uri": { "type": "string", "format": "at-uri" },
9595+ "cid": { "type": "string", "format": "cid" },
9696+ "record": { "type": "unknown" },
9797+ "creator": {
9898+ "type": "ref",
9999+ "ref": "app.bsky.actor.defs#profileViewBasic"
100100+ },
101101+ "listItemCount": { "type": "integer", "minimum": 0 },
102102+ "joinedWeekCount": { "type": "integer", "minimum": 0 },
103103+ "joinedAllTimeCount": { "type": "integer", "minimum": 0 },
104104+ "labels": {
105105+ "type": "array",
106106+ "items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
107107+ },
108108+ "indexedAt": { "type": "string", "format": "datetime" }
109109+ }
110110+ },
111111+ "listPurpose": {
112112+ "type": "string",
113113+ "knownValues": [
114114+ "app.bsky.graph.defs#modlist",
115115+ "app.bsky.graph.defs#curatelist",
116116+ "app.bsky.graph.defs#referencelist"
117117+ ]
118118+ },
119119+ "modlist": {
120120+ "type": "token",
121121+ "description": "A list of actors to apply an aggregate moderation action (mute/block) on."
122122+ },
123123+ "curatelist": {
124124+ "type": "token",
125125+ "description": "A list of actors used for curation purposes such as list feeds or interaction gating."
126126+ },
127127+ "referencelist": {
128128+ "type": "token",
129129+ "description": "A list of actors used for only for reference purposes such as within a starter pack."
130130+ },
131131+ "listViewerState": {
132132+ "type": "object",
133133+ "properties": {
134134+ "muted": { "type": "boolean" },
135135+ "blocked": { "type": "string", "format": "at-uri" }
136136+ }
137137+ },
138138+ "notFoundActor": {
139139+ "type": "object",
140140+ "description": "indicates that a handle or DID could not be resolved",
141141+ "required": ["actor", "notFound"],
142142+ "properties": {
143143+ "actor": { "type": "string", "format": "at-identifier" },
144144+ "notFound": { "type": "boolean", "const": true }
145145+ }
146146+ },
147147+ "relationship": {
148148+ "type": "object",
149149+ "description": "lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object)",
150150+ "required": ["did"],
151151+ "properties": {
152152+ "did": { "type": "string", "format": "did" },
153153+ "following": {
154154+ "type": "string",
155155+ "format": "at-uri",
156156+ "description": "if the actor follows this DID, this is the AT-URI of the follow record"
157157+ },
158158+ "followedBy": {
159159+ "type": "string",
160160+ "format": "at-uri",
161161+ "description": "if the actor is followed by this DID, contains the AT-URI of the follow record"
162162+ },
163163+ "blocking": {
164164+ "type": "string",
165165+ "format": "at-uri",
166166+ "description": "if the actor blocks this DID, this is the AT-URI of the block record"
167167+ },
168168+ "blockedBy": {
169169+ "type": "string",
170170+ "format": "at-uri",
171171+ "description": "if the actor is blocked by this DID, contains the AT-URI of the block record"
172172+ },
173173+ "blockingByList": {
174174+ "type": "string",
175175+ "format": "at-uri",
176176+ "description": "if the actor blocks this DID via a block list, this is the AT-URI of the listblock record"
177177+ },
178178+ "blockedByList": {
179179+ "type": "string",
180180+ "format": "at-uri",
181181+ "description": "if the actor is blocked by this DID via a block list, contains the AT-URI of the listblock record"
182182+ }
183183+ }
184184+ }
185185+ }
186186+}
+91
lexicons/app/bsky/labeler/defs.json
···11+{
22+ "lexicon": 1,
33+ "id": "app.bsky.labeler.defs",
44+ "defs": {
55+ "labelerView": {
66+ "type": "object",
77+ "required": ["uri", "cid", "creator", "indexedAt"],
88+ "properties": {
99+ "uri": { "type": "string", "format": "at-uri" },
1010+ "cid": { "type": "string", "format": "cid" },
1111+ "creator": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" },
1212+ "likeCount": { "type": "integer", "minimum": 0 },
1313+ "viewer": { "type": "ref", "ref": "#labelerViewerState" },
1414+ "indexedAt": { "type": "string", "format": "datetime" },
1515+ "labels": {
1616+ "type": "array",
1717+ "items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
1818+ }
1919+ }
2020+ },
2121+ "labelerViewDetailed": {
2222+ "type": "object",
2323+ "required": ["uri", "cid", "creator", "policies", "indexedAt"],
2424+ "properties": {
2525+ "uri": { "type": "string", "format": "at-uri" },
2626+ "cid": { "type": "string", "format": "cid" },
2727+ "creator": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" },
2828+ "policies": {
2929+ "type": "ref",
3030+ "ref": "app.bsky.labeler.defs#labelerPolicies"
3131+ },
3232+ "likeCount": { "type": "integer", "minimum": 0 },
3333+ "viewer": { "type": "ref", "ref": "#labelerViewerState" },
3434+ "indexedAt": { "type": "string", "format": "datetime" },
3535+ "labels": {
3636+ "type": "array",
3737+ "items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
3838+ },
3939+ "reasonTypes": {
4040+ "description": "The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.",
4141+ "type": "array",
4242+ "items": {
4343+ "type": "ref",
4444+ "ref": "com.atproto.moderation.defs#reasonType"
4545+ }
4646+ },
4747+ "subjectTypes": {
4848+ "description": "The set of subject types (account, record, etc) this service accepts reports on.",
4949+ "type": "array",
5050+ "items": {
5151+ "type": "ref",
5252+ "ref": "com.atproto.moderation.defs#subjectType"
5353+ }
5454+ },
5555+ "subjectCollections": {
5656+ "type": "array",
5757+ "description": "Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.",
5858+ "items": { "type": "string", "format": "nsid" }
5959+ }
6060+ }
6161+ },
6262+ "labelerViewerState": {
6363+ "type": "object",
6464+ "properties": {
6565+ "like": { "type": "string", "format": "at-uri" }
6666+ }
6767+ },
6868+ "labelerPolicies": {
6969+ "type": "object",
7070+ "required": ["labelValues"],
7171+ "properties": {
7272+ "labelValues": {
7373+ "type": "array",
7474+ "description": "The label values which this labeler publishes. May include global or custom labels.",
7575+ "items": {
7676+ "type": "ref",
7777+ "ref": "com.atproto.label.defs#labelValue"
7878+ }
7979+ },
8080+ "labelValueDefinitions": {
8181+ "type": "array",
8282+ "description": "Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler.",
8383+ "items": {
8484+ "type": "ref",
8585+ "ref": "com.atproto.label.defs#labelValueDefinition"
8686+ }
8787+ }
8888+ }
8989+ }
9090+ }
9191+}
···11+{
22+ "lexicon": 1,
33+ "id": "app.bsky.richtext.facet",
44+ "defs": {
55+ "main": {
66+ "type": "object",
77+ "description": "Annotation of a sub-string within rich text.",
88+ "required": ["index", "features"],
99+ "properties": {
1010+ "index": { "type": "ref", "ref": "#byteSlice" },
1111+ "features": {
1212+ "type": "array",
1313+ "items": { "type": "union", "refs": ["#mention", "#link", "#tag"] }
1414+ }
1515+ }
1616+ },
1717+ "mention": {
1818+ "type": "object",
1919+ "description": "Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID.",
2020+ "required": ["did"],
2121+ "properties": {
2222+ "did": { "type": "string", "format": "did" }
2323+ }
2424+ },
2525+ "link": {
2626+ "type": "object",
2727+ "description": "Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL.",
2828+ "required": ["uri"],
2929+ "properties": {
3030+ "uri": { "type": "string", "format": "uri" }
3131+ }
3232+ },
3333+ "tag": {
3434+ "type": "object",
3535+ "description": "Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags').",
3636+ "required": ["tag"],
3737+ "properties": {
3838+ "tag": { "type": "string", "maxLength": 640, "maxGraphemes": 64 }
3939+ }
4040+ },
4141+ "byteSlice": {
4242+ "type": "object",
4343+ "description": "Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets.",
4444+ "required": ["byteStart", "byteEnd"],
4545+ "properties": {
4646+ "byteStart": { "type": "integer", "minimum": 0 },
4747+ "byteEnd": { "type": "integer", "minimum": 0 }
4848+ }
4949+ }
5050+ }
5151+}
+28
lexicons/app/bsky/video/defs.json
···11+{
22+ "lexicon": 1,
33+ "id": "app.bsky.video.defs",
44+ "defs": {
55+ "jobStatus": {
66+ "type": "object",
77+ "required": ["jobId", "did", "state"],
88+ "properties": {
99+ "jobId": { "type": "string" },
1010+ "did": { "type": "string", "format": "did" },
1111+ "state": {
1212+ "type": "string",
1313+ "description": "The state of the video processing job. All values not listed as a known value indicate that the job is in process.",
1414+ "knownValues": ["JOB_STATE_COMPLETED", "JOB_STATE_FAILED"]
1515+ },
1616+ "progress": {
1717+ "type": "integer",
1818+ "minimum": 0,
1919+ "maximum": 100,
2020+ "description": "Progress within the current processing state."
2121+ },
2222+ "blob": { "type": "blob" },
2323+ "error": { "type": "string" },
2424+ "message": { "type": "string" }
2525+ }
2626+ }
2727+ }
2828+}
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.identity.defs",
44+ "defs": {
55+ "identityInfo": {
66+ "type": "object",
77+ "required": ["did", "handle", "didDoc"],
88+ "properties": {
99+ "did": { "type": "string", "format": "did" },
1010+ "handle": {
1111+ "type": "string",
1212+ "format": "handle",
1313+ "description": "The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document."
1414+ },
1515+ "didDoc": {
1616+ "type": "unknown",
1717+ "description": "The complete DID document for the identity."
1818+ }
1919+ }
2020+ }
2121+ }
2222+}
+156
lexicons/com/atproto/label/defs.json
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.label.defs",
44+ "defs": {
55+ "label": {
66+ "type": "object",
77+ "description": "Metadata tag on an atproto resource (eg, repo or record).",
88+ "required": ["src", "uri", "val", "cts"],
99+ "properties": {
1010+ "ver": {
1111+ "type": "integer",
1212+ "description": "The AT Protocol version of the label object."
1313+ },
1414+ "src": {
1515+ "type": "string",
1616+ "format": "did",
1717+ "description": "DID of the actor who created this label."
1818+ },
1919+ "uri": {
2020+ "type": "string",
2121+ "format": "uri",
2222+ "description": "AT URI of the record, repository (account), or other resource that this label applies to."
2323+ },
2424+ "cid": {
2525+ "type": "string",
2626+ "format": "cid",
2727+ "description": "Optionally, CID specifying the specific version of 'uri' resource this label applies to."
2828+ },
2929+ "val": {
3030+ "type": "string",
3131+ "maxLength": 128,
3232+ "description": "The short string name of the value or type of this label."
3333+ },
3434+ "neg": {
3535+ "type": "boolean",
3636+ "description": "If true, this is a negation label, overwriting a previous label."
3737+ },
3838+ "cts": {
3939+ "type": "string",
4040+ "format": "datetime",
4141+ "description": "Timestamp when this label was created."
4242+ },
4343+ "exp": {
4444+ "type": "string",
4545+ "format": "datetime",
4646+ "description": "Timestamp at which this label expires (no longer applies)."
4747+ },
4848+ "sig": {
4949+ "type": "bytes",
5050+ "description": "Signature of dag-cbor encoded label."
5151+ }
5252+ }
5353+ },
5454+ "selfLabels": {
5555+ "type": "object",
5656+ "description": "Metadata tags on an atproto record, published by the author within the record.",
5757+ "required": ["values"],
5858+ "properties": {
5959+ "values": {
6060+ "type": "array",
6161+ "items": { "type": "ref", "ref": "#selfLabel" },
6262+ "maxLength": 10
6363+ }
6464+ }
6565+ },
6666+ "selfLabel": {
6767+ "type": "object",
6868+ "description": "Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel.",
6969+ "required": ["val"],
7070+ "properties": {
7171+ "val": {
7272+ "type": "string",
7373+ "maxLength": 128,
7474+ "description": "The short string name of the value or type of this label."
7575+ }
7676+ }
7777+ },
7878+ "labelValueDefinition": {
7979+ "type": "object",
8080+ "description": "Declares a label value and its expected interpretations and behaviors.",
8181+ "required": ["identifier", "severity", "blurs", "locales"],
8282+ "properties": {
8383+ "identifier": {
8484+ "type": "string",
8585+ "description": "The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+).",
8686+ "maxLength": 100,
8787+ "maxGraphemes": 100
8888+ },
8989+ "severity": {
9090+ "type": "string",
9191+ "description": "How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing.",
9292+ "knownValues": ["inform", "alert", "none"]
9393+ },
9494+ "blurs": {
9595+ "type": "string",
9696+ "description": "What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing.",
9797+ "knownValues": ["content", "media", "none"]
9898+ },
9999+ "defaultSetting": {
100100+ "type": "string",
101101+ "description": "The default setting for this label.",
102102+ "knownValues": ["ignore", "warn", "hide"],
103103+ "default": "warn"
104104+ },
105105+ "adultOnly": {
106106+ "type": "boolean",
107107+ "description": "Does the user need to have adult content enabled in order to configure this label?"
108108+ },
109109+ "locales": {
110110+ "type": "array",
111111+ "items": { "type": "ref", "ref": "#labelValueDefinitionStrings" }
112112+ }
113113+ }
114114+ },
115115+ "labelValueDefinitionStrings": {
116116+ "type": "object",
117117+ "description": "Strings which describe the label in the UI, localized into a specific language.",
118118+ "required": ["lang", "name", "description"],
119119+ "properties": {
120120+ "lang": {
121121+ "type": "string",
122122+ "description": "The code of the language these strings are written in.",
123123+ "format": "language"
124124+ },
125125+ "name": {
126126+ "type": "string",
127127+ "description": "A short human-readable name for the label.",
128128+ "maxGraphemes": 64,
129129+ "maxLength": 640
130130+ },
131131+ "description": {
132132+ "type": "string",
133133+ "description": "A longer description of what the label means and why it might be applied.",
134134+ "maxGraphemes": 10000,
135135+ "maxLength": 100000
136136+ }
137137+ }
138138+ },
139139+ "labelValue": {
140140+ "type": "string",
141141+ "knownValues": [
142142+ "!hide",
143143+ "!no-promote",
144144+ "!warn",
145145+ "!no-unauthenticated",
146146+ "dmca-violation",
147147+ "doxxing",
148148+ "porn",
149149+ "sexual",
150150+ "nudity",
151151+ "nsfl",
152152+ "gore"
153153+ ]
154154+ }
155155+ }
156156+}