Skip to content

Commit b661fda

Browse files
committed
update bundled lexicons
from bluesky-social/atproto@d91988f
1 parent 78f59b9 commit b661fda

77 files changed

Lines changed: 3583 additions & 34 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lexrpc/lexicons/app/bsky/actor/defs.json

Lines changed: 134 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,15 @@
2323
"type": "array",
2424
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
2525
},
26-
"createdAt": { "type": "string", "format": "datetime" }
26+
"createdAt": { "type": "string", "format": "datetime" },
27+
"verification": {
28+
"type": "ref",
29+
"ref": "#verificationState"
30+
},
31+
"status": {
32+
"type": "ref",
33+
"ref": "#statusView"
34+
}
2735
}
2836
},
2937
"profileView": {
@@ -53,6 +61,14 @@
5361
"labels": {
5462
"type": "array",
5563
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
64+
},
65+
"verification": {
66+
"type": "ref",
67+
"ref": "#verificationState"
68+
},
69+
"status": {
70+
"type": "ref",
71+
"ref": "#statusView"
5672
}
5773
}
5874
},
@@ -95,6 +111,14 @@
95111
"pinnedPost": {
96112
"type": "ref",
97113
"ref": "com.atproto.repo.strongRef"
114+
},
115+
"verification": {
116+
"type": "ref",
117+
"ref": "#verificationState"
118+
},
119+
"status": {
120+
"type": "ref",
121+
"ref": "#statusView"
98122
}
99123
}
100124
},
@@ -105,7 +129,11 @@
105129
"feedgens": { "type": "integer" },
106130
"starterPacks": { "type": "integer" },
107131
"labeler": { "type": "boolean" },
108-
"chat": { "type": "ref", "ref": "#profileAssociatedChat" }
132+
"chat": { "type": "ref", "ref": "#profileAssociatedChat" },
133+
"activitySubscription": {
134+
"type": "ref",
135+
"ref": "#profileAssociatedActivitySubscription"
136+
}
109137
}
110138
},
111139
"profileAssociatedChat": {
@@ -118,6 +146,16 @@
118146
}
119147
}
120148
},
149+
"profileAssociatedActivitySubscription": {
150+
"type": "object",
151+
"required": ["allowSubscriptions"],
152+
"properties": {
153+
"allowSubscriptions": {
154+
"type": "string",
155+
"knownValues": ["followers", "mutuals", "none"]
156+
}
157+
}
158+
},
121159
"viewerState": {
122160
"type": "object",
123161
"description": "Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests.",
@@ -136,8 +174,14 @@
136174
"following": { "type": "string", "format": "at-uri" },
137175
"followedBy": { "type": "string", "format": "at-uri" },
138176
"knownFollowers": {
177+
"description": "This property is present only in selected cases, as an optimization.",
139178
"type": "ref",
140179
"ref": "#knownFollowers"
180+
},
181+
"activitySubscription": {
182+
"description": "This property is present only in selected cases, as an optimization.",
183+
"type": "ref",
184+
"ref": "app.bsky.notification.defs#activitySubscription"
141185
}
142186
}
143187
},
@@ -158,6 +202,54 @@
158202
}
159203
}
160204
},
205+
"verificationState": {
206+
"type": "object",
207+
"description": "Represents the verification information about the user this object is attached to.",
208+
"required": ["verifications", "verifiedStatus", "trustedVerifierStatus"],
209+
"properties": {
210+
"verifications": {
211+
"type": "array",
212+
"description": "All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included.",
213+
"items": { "type": "ref", "ref": "#verificationView" }
214+
},
215+
"verifiedStatus": {
216+
"type": "string",
217+
"description": "The user's status as a verified account.",
218+
"knownValues": ["valid", "invalid", "none"]
219+
},
220+
"trustedVerifierStatus": {
221+
"type": "string",
222+
"description": "The user's status as a trusted verifier.",
223+
"knownValues": ["valid", "invalid", "none"]
224+
}
225+
}
226+
},
227+
"verificationView": {
228+
"type": "object",
229+
"description": "An individual verification for an associated subject.",
230+
"required": ["issuer", "uri", "isValid", "createdAt"],
231+
"properties": {
232+
"issuer": {
233+
"type": "string",
234+
"description": "The user who issued this verification.",
235+
"format": "did"
236+
},
237+
"uri": {
238+
"type": "string",
239+
"description": "The AT-URI of the verification record.",
240+
"format": "at-uri"
241+
},
242+
"isValid": {
243+
"type": "boolean",
244+
"description": "True if the verification passes validation, otherwise false."
245+
},
246+
"createdAt": {
247+
"type": "string",
248+
"description": "Timestamp when the verification was created.",
249+
"format": "datetime"
250+
}
251+
}
252+
},
161253
"preferences": {
162254
"type": "array",
163255
"items": {
@@ -175,7 +267,8 @@
175267
"#hiddenPostsPref",
176268
"#bskyAppStatePref",
177269
"#labelersPref",
178-
"#postInteractionSettingsPref"
270+
"#postInteractionSettingsPref",
271+
"#verificationPrefs"
179272
]
180273
}
181274
},
@@ -470,6 +563,18 @@
470563
}
471564
}
472565
},
566+
"verificationPrefs": {
567+
"type": "object",
568+
"description": "Preferences for how verified accounts appear in the app.",
569+
"required": [],
570+
"properties": {
571+
"hideBadges": {
572+
"description": "Hide the blue check badges for verified accounts and trusted verifiers.",
573+
"type": "boolean",
574+
"default": false
575+
}
576+
}
577+
},
473578
"postInteractionSettingsPref": {
474579
"type": "object",
475580
"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.",
@@ -499,6 +604,32 @@
499604
}
500605
}
501606
}
607+
},
608+
"statusView": {
609+
"type": "object",
610+
"required": ["status", "record"],
611+
"properties": {
612+
"status": {
613+
"type": "string",
614+
"description": "The status for the account.",
615+
"knownValues": ["app.bsky.actor.status#live"]
616+
},
617+
"record": { "type": "unknown" },
618+
"embed": {
619+
"type": "union",
620+
"description": "An optional embed associated with the status.",
621+
"refs": ["app.bsky.embed.external#view"]
622+
},
623+
"expiresAt": {
624+
"type": "string",
625+
"description": "The date when this status will expire. The application might choose to no longer return the status after expiration.",
626+
"format": "datetime"
627+
},
628+
"isActive": {
629+
"type": "boolean",
630+
"description": "True if the status is not expired, false if it is expired. Only present if expiration was set."
631+
}
632+
}
502633
}
503634
}
504635
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"lexicon": 1,
3+
"id": "app.bsky.actor.status",
4+
"defs": {
5+
"main": {
6+
"type": "record",
7+
"description": "A declaration of a Bluesky account status.",
8+
"key": "literal:self",
9+
"record": {
10+
"type": "object",
11+
"required": ["status", "createdAt"],
12+
"properties": {
13+
"status": {
14+
"type": "string",
15+
"description": "The status for the account.",
16+
"knownValues": ["app.bsky.actor.status#live"]
17+
},
18+
"embed": {
19+
"type": "union",
20+
"description": "An optional embed associated with the status.",
21+
"refs": ["app.bsky.embed.external"]
22+
},
23+
"durationMinutes": {
24+
"type": "integer",
25+
"description": "The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.",
26+
"minimum": 1
27+
},
28+
"createdAt": { "type": "string", "format": "datetime" }
29+
}
30+
}
31+
},
32+
"live": {
33+
"type": "token",
34+
"description": "Advertises an account as currently offering live content."
35+
}
36+
}
37+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"lexicon": 1,
3+
"id": "app.bsky.bookmark.createBookmark",
4+
"defs": {
5+
"main": {
6+
"type": "procedure",
7+
"description": "Creates a private bookmark for the specified record. Currently, only `app.bsky.feed.post` records are supported. Requires authentication.",
8+
"input": {
9+
"encoding": "application/json",
10+
"schema": {
11+
"type": "object",
12+
"required": ["uri", "cid"],
13+
"properties": {
14+
"uri": { "type": "string", "format": "at-uri" },
15+
"cid": { "type": "string", "format": "cid" }
16+
}
17+
}
18+
},
19+
"errors": [
20+
{
21+
"name": "UnsupportedCollection",
22+
"description": "The URI to be bookmarked is for an unsupported collection."
23+
}
24+
]
25+
}
26+
}
27+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"lexicon": 1,
3+
"id": "app.bsky.bookmark.defs",
4+
"defs": {
5+
"bookmark": {
6+
"description": "Object used to store bookmark data in stash.",
7+
"type": "object",
8+
"required": ["subject"],
9+
"properties": {
10+
"subject": {
11+
"description": "A strong ref to the record to be bookmarked. Currently, only `app.bsky.feed.post` records are supported.",
12+
"type": "ref",
13+
"ref": "com.atproto.repo.strongRef"
14+
}
15+
}
16+
},
17+
"bookmarkView": {
18+
"type": "object",
19+
"required": ["subject", "item"],
20+
"properties": {
21+
"subject": {
22+
"description": "A strong ref to the bookmarked record.",
23+
"type": "ref",
24+
"ref": "com.atproto.repo.strongRef"
25+
},
26+
"createdAt": { "type": "string", "format": "datetime" },
27+
"item": {
28+
"type": "union",
29+
"refs": [
30+
"app.bsky.feed.defs#blockedPost",
31+
"app.bsky.feed.defs#notFoundPost",
32+
"app.bsky.feed.defs#postView"
33+
]
34+
}
35+
}
36+
}
37+
}
38+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"lexicon": 1,
3+
"id": "app.bsky.bookmark.deleteBookmark",
4+
"defs": {
5+
"main": {
6+
"type": "procedure",
7+
"description": "Deletes a private bookmark for the specified record. Currently, only `app.bsky.feed.post` records are supported. Requires authentication.",
8+
"input": {
9+
"encoding": "application/json",
10+
"schema": {
11+
"type": "object",
12+
"required": ["uri"],
13+
"properties": {
14+
"uri": { "type": "string", "format": "at-uri" }
15+
}
16+
}
17+
},
18+
"errors": [
19+
{
20+
"name": "UnsupportedCollection",
21+
"description": "The URI to be bookmarked is for an unsupported collection."
22+
}
23+
]
24+
}
25+
}
26+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"lexicon": 1,
3+
"id": "app.bsky.bookmark.getBookmarks",
4+
"defs": {
5+
"main": {
6+
"type": "query",
7+
"description": "Gets views of records bookmarked by the authenticated user. Requires authentication.",
8+
"parameters": {
9+
"type": "params",
10+
"properties": {
11+
"limit": {
12+
"type": "integer",
13+
"minimum": 1,
14+
"maximum": 100,
15+
"default": 50
16+
},
17+
"cursor": { "type": "string" }
18+
}
19+
},
20+
"output": {
21+
"encoding": "application/json",
22+
"schema": {
23+
"type": "object",
24+
"required": ["bookmarks"],
25+
"properties": {
26+
"cursor": { "type": "string" },
27+
"bookmarks": {
28+
"type": "array",
29+
"items": {
30+
"type": "ref",
31+
"ref": "app.bsky.bookmark.defs#bookmarkView"
32+
}
33+
}
34+
}
35+
}
36+
}
37+
}
38+
}
39+
}

0 commit comments

Comments
 (0)