Skip to content

Commit de055d7

Browse files
committed
update bundled lexicons
from bluesky-social/atproto@15cc6ff
1 parent a1a8679 commit de055d7

66 files changed

Lines changed: 1713 additions & 38 deletions

Some content is hidden

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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ Here's how to package, test, and ship a new release.
237237
* `Client`:
238238
* Bug fix for calls with binary inputs that refresh the access token. Calls with binary input now buffer the entire input in memory. ([snarfed/bridgy#1670](https://github.com/snarfed/bridgy/issues/1670))
239239
* Bug fix: omit null (`None`) parameters instead of passing them with string value `None`.
240+
* Update bundled `app.bsky` and `com.atproto` lexicons, as of [bluesky-social/atproto@15cc6ff37c326d5c186385037c4bfe8b60ea41b1](https://github.com/bluesky-social/atproto/commit/15cc6ff37c326d5c186385037c4bfe8b60ea41b1).
240241
241242
### 0.6 - 2024-03-16
242243

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

Lines changed: 79 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
"maxGraphemes": 64,
1414
"maxLength": 640
1515
},
16-
"avatar": { "type": "string" },
16+
"avatar": { "type": "string", "format": "uri" },
17+
"associated": {
18+
"type": "ref",
19+
"ref": "#profileAssociated"
20+
},
1721
"viewer": { "type": "ref", "ref": "#viewerState" },
1822
"labels": {
1923
"type": "array",
@@ -37,7 +41,11 @@
3741
"maxGraphemes": 256,
3842
"maxLength": 2560
3943
},
40-
"avatar": { "type": "string" },
44+
"avatar": { "type": "string", "format": "uri" },
45+
"associated": {
46+
"type": "ref",
47+
"ref": "#profileAssociated"
48+
},
4149
"indexedAt": { "type": "string", "format": "datetime" },
4250
"viewer": { "type": "ref", "ref": "#viewerState" },
4351
"labels": {
@@ -62,8 +70,8 @@
6270
"maxGraphemes": 256,
6371
"maxLength": 2560
6472
},
65-
"avatar": { "type": "string" },
66-
"banner": { "type": "string" },
73+
"avatar": { "type": "string", "format": "uri" },
74+
"banner": { "type": "string", "format": "uri" },
6775
"followersCount": { "type": "integer" },
6876
"followsCount": { "type": "integer" },
6977
"postsCount": { "type": "integer" },
@@ -84,7 +92,18 @@
8492
"properties": {
8593
"lists": { "type": "integer" },
8694
"feedgens": { "type": "integer" },
87-
"labeler": { "type": "boolean" }
95+
"labeler": { "type": "boolean" },
96+
"chat": { "type": "ref", "ref": "#profileAssociatedChat" }
97+
}
98+
},
99+
"profileAssociatedChat": {
100+
"type": "object",
101+
"required": ["allowIncoming"],
102+
"properties": {
103+
"allowIncoming": {
104+
"type": "string",
105+
"knownValues": ["all", "none", "following"]
106+
}
88107
}
89108
},
90109
"viewerState": {
@@ -103,7 +122,28 @@
103122
"ref": "app.bsky.graph.defs#listViewBasic"
104123
},
105124
"following": { "type": "string", "format": "at-uri" },
106-
"followedBy": { "type": "string", "format": "at-uri" }
125+
"followedBy": { "type": "string", "format": "at-uri" },
126+
"knownFollowers": {
127+
"type": "ref",
128+
"ref": "#knownFollowers"
129+
}
130+
}
131+
},
132+
"knownFollowers": {
133+
"type": "object",
134+
"description": "The subject's followers whom you also follow",
135+
"required": ["count", "followers"],
136+
"properties": {
137+
"count": { "type": "integer" },
138+
"followers": {
139+
"type": "array",
140+
"minLength": 0,
141+
"maxLength": 5,
142+
"items": {
143+
"type": "ref",
144+
"ref": "#profileViewBasic"
145+
}
146+
}
107147
}
108148
},
109149
"preferences": {
@@ -114,6 +154,7 @@
114154
"#adultContentPref",
115155
"#contentLabelPref",
116156
"#savedFeedsPref",
157+
"#savedFeedsPrefV2",
117158
"#personalDetailsPref",
118159
"#feedViewPref",
119160
"#threadViewPref",
@@ -146,6 +187,38 @@
146187
}
147188
}
148189
},
190+
"savedFeed": {
191+
"type": "object",
192+
"required": ["id", "type", "value", "pinned"],
193+
"properties": {
194+
"id": {
195+
"type": "string"
196+
},
197+
"type": {
198+
"type": "string",
199+
"knownValues": ["feed", "list", "timeline"]
200+
},
201+
"value": {
202+
"type": "string"
203+
},
204+
"pinned": {
205+
"type": "boolean"
206+
}
207+
}
208+
},
209+
"savedFeedsPrefV2": {
210+
"type": "object",
211+
"required": ["items"],
212+
"properties": {
213+
"items": {
214+
"type": "array",
215+
"items": {
216+
"type": "ref",
217+
"ref": "app.bsky.actor.defs#savedFeed"
218+
}
219+
}
220+
}
221+
},
149222
"savedFeedsPref": {
150223
"type": "object",
151224
"required": ["pinned", "saved"],

lexrpc/lexicons/app/bsky/embed/external.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"uri": { "type": "string", "format": "uri" },
4545
"title": { "type": "string" },
4646
"description": { "type": "string" },
47-
"thumb": { "type": "string" }
47+
"thumb": { "type": "string", "format": "uri" }
4848
}
4949
}
5050
}

lexrpc/lexicons/app/bsky/embed/images.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@
5656
"properties": {
5757
"thumb": {
5858
"type": "string",
59+
"format": "uri",
5960
"description": "Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View."
6061
},
6162
"fullsize": {
6263
"type": "string",
64+
"format": "uri",
6365
"description": "Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View."
6466
},
6567
"alt": {

lexrpc/lexicons/app/bsky/embed/record.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
"type": "array",
4646
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
4747
},
48+
"replyCount": { "type": "integer" },
49+
"repostCount": { "type": "integer" },
50+
"likeCount": { "type": "integer" },
4851
"embeds": {
4952
"type": "array",
5053
"items": {

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

Lines changed: 96 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"properties": {
4141
"repost": { "type": "string", "format": "at-uri" },
4242
"like": { "type": "string", "format": "at-uri" },
43+
"threadMuted": { "type": "boolean" },
4344
"replyDisabled": { "type": "boolean" }
4445
}
4546
},
@@ -49,7 +50,12 @@
4950
"properties": {
5051
"post": { "type": "ref", "ref": "#postView" },
5152
"reply": { "type": "ref", "ref": "#replyRef" },
52-
"reason": { "type": "union", "refs": ["#reasonRepost"] }
53+
"reason": { "type": "union", "refs": ["#reasonRepost"] },
54+
"feedContext": {
55+
"type": "string",
56+
"description": "Context provided by feed generator that may be passed back alongside interactions.",
57+
"maxLength": 2000
58+
}
5359
}
5460
},
5561
"replyRef": {
@@ -63,6 +69,11 @@
6369
"parent": {
6470
"type": "union",
6571
"refs": ["#postView", "#notFoundPost", "#blockedPost"]
72+
},
73+
"grandparentAuthor": {
74+
"type": "ref",
75+
"ref": "app.bsky.actor.defs#profileViewBasic",
76+
"description": "When parent is a reply to another post, this is the author of that post."
6677
}
6778
}
6879
},
@@ -135,8 +146,9 @@
135146
"type": "array",
136147
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
137148
},
138-
"avatar": { "type": "string" },
149+
"avatar": { "type": "string", "format": "uri" },
139150
"likeCount": { "type": "integer", "minimum": 0 },
151+
"acceptsInteractions": { "type": "boolean" },
140152
"labels": {
141153
"type": "array",
142154
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
@@ -156,7 +168,12 @@
156168
"required": ["post"],
157169
"properties": {
158170
"post": { "type": "string", "format": "at-uri" },
159-
"reason": { "type": "union", "refs": ["#skeletonReasonRepost"] }
171+
"reason": { "type": "union", "refs": ["#skeletonReasonRepost"] },
172+
"feedContext": {
173+
"type": "string",
174+
"description": "Context that will be passed through to client and may be passed to feed generator back alongside interactions.",
175+
"maxLength": 2000
176+
}
160177
}
161178
},
162179
"skeletonReasonRepost": {
@@ -177,6 +194,82 @@
177194
"items": { "type": "ref", "ref": "app.bsky.graph.defs#listViewBasic" }
178195
}
179196
}
197+
},
198+
"interaction": {
199+
"type": "object",
200+
"properties": {
201+
"item": { "type": "string", "format": "at-uri" },
202+
"event": {
203+
"type": "string",
204+
"knownValues": [
205+
"app.bsky.feed.defs#requestLess",
206+
"app.bsky.feed.defs#requestMore",
207+
"app.bsky.feed.defs#clickthroughItem",
208+
"app.bsky.feed.defs#clickthroughAuthor",
209+
"app.bsky.feed.defs#clickthroughReposter",
210+
"app.bsky.feed.defs#clickthroughEmbed",
211+
"app.bsky.feed.defs#interactionSeen",
212+
"app.bsky.feed.defs#interactionLike",
213+
"app.bsky.feed.defs#interactionRepost",
214+
"app.bsky.feed.defs#interactionReply",
215+
"app.bsky.feed.defs#interactionQuote",
216+
"app.bsky.feed.defs#interactionShare"
217+
]
218+
},
219+
"feedContext": {
220+
"type": "string",
221+
"description": "Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton.",
222+
"maxLength": 2000
223+
}
224+
}
225+
},
226+
"requestLess": {
227+
"type": "token",
228+
"description": "Request that less content like the given feed item be shown in the feed"
229+
},
230+
"requestMore": {
231+
"type": "token",
232+
"description": "Request that more content like the given feed item be shown in the feed"
233+
},
234+
"clickthroughItem": {
235+
"type": "token",
236+
"description": "User clicked through to the feed item"
237+
},
238+
"clickthroughAuthor": {
239+
"type": "token",
240+
"description": "User clicked through to the author of the feed item"
241+
},
242+
"clickthroughReposter": {
243+
"type": "token",
244+
"description": "User clicked through to the reposter of the feed item"
245+
},
246+
"clickthroughEmbed": {
247+
"type": "token",
248+
"description": "User clicked through to the embedded content of the feed item"
249+
},
250+
"interactionSeen": {
251+
"type": "token",
252+
"description": "Feed item was seen by user"
253+
},
254+
"interactionLike": {
255+
"type": "token",
256+
"description": "User liked the feed item"
257+
},
258+
"interactionRepost": {
259+
"type": "token",
260+
"description": "User reposted the feed item"
261+
},
262+
"interactionReply": {
263+
"type": "token",
264+
"description": "User replied to the feed item"
265+
},
266+
"interactionQuote": {
267+
"type": "token",
268+
"description": "User quoted the feed item"
269+
},
270+
"interactionShare": {
271+
"type": "token",
272+
"description": "User shared the feed item"
180273
}
181274
}
182275
}

lexrpc/lexicons/app/bsky/feed/generator.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
"accept": ["image/png", "image/jpeg"],
3131
"maxSize": 1000000
3232
},
33+
"acceptsInteractions": {
34+
"type": "boolean",
35+
"description": "Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions"
36+
},
3337
"labels": {
3438
"type": "union",
3539
"description": "Self-label values",

lexrpc/lexicons/app/bsky/feed/searchPosts.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,53 @@
1313
"type": "string",
1414
"description": "Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended."
1515
},
16+
"sort": {
17+
"type": "string",
18+
"knownValues": ["top", "latest"],
19+
"default": "latest",
20+
"description": "Specifies the ranking order of results."
21+
},
22+
"since": {
23+
"type": "string",
24+
"description": "Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD)."
25+
},
26+
"until": {
27+
"type": "string",
28+
"description": "Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD)."
29+
},
30+
"mentions": {
31+
"type": "string",
32+
"format": "at-identifier",
33+
"description": "Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions."
34+
},
35+
"author": {
36+
"type": "string",
37+
"format": "at-identifier",
38+
"description": "Filter to posts by the given account. Handles are resolved to DID before query-time."
39+
},
40+
"lang": {
41+
"type": "string",
42+
"format": "language",
43+
"description": "Filter to posts in the given language. Expected to be based on post language field, though server may override language detection."
44+
},
45+
"domain": {
46+
"type": "string",
47+
"description": "Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization."
48+
},
49+
"url": {
50+
"type": "string",
51+
"format": "uri",
52+
"description": "Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching."
53+
},
54+
"tag": {
55+
"type": "array",
56+
"items": {
57+
"type": "string",
58+
"maxLength": 640,
59+
"maxGraphemes": 64
60+
},
61+
"description": "Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching."
62+
},
1663
"limit": {
1764
"type": "integer",
1865
"minimum": 1,

0 commit comments

Comments
 (0)