@atproto/bsky 0.0.247 → 0.0.248
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/CHANGELOG.md +11 -0
- package/dist/api/app/bsky/feed/searchPosts.js +1 -1
- package/dist/api/app/bsky/feed/searchPosts.js.map +1 -1
- package/dist/api/app/bsky/feed/searchPostsV2.js +2 -1
- package/dist/api/app/bsky/feed/searchPostsV2.js.map +1 -1
- package/dist/lexicons/app/bsky/feed/searchPostsV2.defs.d.ts +14 -16
- package/dist/lexicons/app/bsky/feed/searchPostsV2.defs.d.ts.map +1 -1
- package/dist/lexicons/app/bsky/feed/searchPostsV2.defs.js +6 -6
- package/dist/lexicons/app/bsky/feed/searchPostsV2.defs.js.map +1 -1
- package/dist/lexicons/chat/bsky/convo/defs.defs.d.ts +9 -1
- package/dist/lexicons/chat/bsky/convo/defs.defs.d.ts.map +1 -1
- package/dist/lexicons/chat/bsky/convo/defs.defs.js +6 -0
- package/dist/lexicons/chat/bsky/convo/defs.defs.js.map +1 -1
- package/dist/proto/bsky_pb.d.ts +17 -17
- package/dist/proto/bsky_pb.d.ts.map +1 -1
- package/dist/proto/bsky_pb.js +18 -9
- package/dist/proto/bsky_pb.js.map +1 -1
- package/package.json +7 -7
- package/proto/bsky.proto +13 -14
- package/src/api/app/bsky/feed/searchPosts.ts +1 -1
- package/src/api/app/bsky/feed/searchPostsV2.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/bsky",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.248",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Reference implementation of app.bsky App View (Bluesky API)",
|
|
6
6
|
"keywords": [
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
"zod": "3.23.8",
|
|
51
51
|
"@atproto-labs/fetch-node": "^0.3.2",
|
|
52
52
|
"@atproto-labs/xrpc-utils": "^0.1.1",
|
|
53
|
-
"@atproto/api": "^0.20.
|
|
53
|
+
"@atproto/api": "^0.20.21",
|
|
54
54
|
"@atproto/crypto": "^0.5.1",
|
|
55
|
-
"@atproto/identity": "^0.5.1",
|
|
56
|
-
"@atproto/lex": "^0.1.4",
|
|
57
55
|
"@atproto/common": "^0.6.3",
|
|
58
56
|
"@atproto/repo": "^0.10.1",
|
|
59
|
-
"@atproto/
|
|
57
|
+
"@atproto/did": "^0.5.1",
|
|
60
58
|
"@atproto/sync": "^0.3.3",
|
|
61
|
-
"@atproto/
|
|
62
|
-
"@atproto/
|
|
59
|
+
"@atproto/syntax": "^0.6.2",
|
|
60
|
+
"@atproto/identity": "^0.5.1",
|
|
61
|
+
"@atproto/lex": "^0.1.4",
|
|
62
|
+
"@atproto/xrpc-server": "^0.11.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@bufbuild/buf": "^1.28.1",
|
package/proto/bsky.proto
CHANGED
|
@@ -1197,6 +1197,11 @@ message PostsFilters {
|
|
|
1197
1197
|
// Canonical request field for posts embedding these AT-URI records.
|
|
1198
1198
|
repeated string embedded_at_uris = 5;
|
|
1199
1199
|
repeated string hashtags = 6;
|
|
1200
|
+
// Filter posts in any of these languages
|
|
1201
|
+
// Supports 2-char ISO prefixes ("en", "ja", "fr", etc) and compares against
|
|
1202
|
+
// the 2-char prefix of any `langs` field values of the post record.
|
|
1203
|
+
// e.g. a post with langs=["en-US", "fr"] matches ["en"] or ["fr", "ja"] but not ["ja"].
|
|
1204
|
+
repeated string languages = 7;
|
|
1200
1205
|
}
|
|
1201
1206
|
|
|
1202
1207
|
message SearchPostsV2Request {
|
|
@@ -1219,28 +1224,22 @@ message SearchPostsV2Request {
|
|
|
1219
1224
|
// so `since` and `until` will silently be capped
|
|
1220
1225
|
optional bool all_time = 7;
|
|
1221
1226
|
|
|
1222
|
-
// Language filter - match posts in this language
|
|
1223
|
-
// Supports 2-char ISO prefixes ("en", "ja, "fr", etc")
|
|
1224
|
-
// and compares against the 2-char prefix of any `langs` field values of the post record
|
|
1225
|
-
// e.g. a post with langs=["en-US", "fr"] would match "en" or "fr" but not "ja"
|
|
1226
|
-
optional string language = 8;
|
|
1227
|
-
|
|
1228
1227
|
// Media filters
|
|
1229
|
-
optional bool has_media =
|
|
1230
|
-
optional bool has_video =
|
|
1228
|
+
optional bool has_media = 8;
|
|
1229
|
+
optional bool has_video = 9;
|
|
1231
1230
|
|
|
1232
1231
|
// Reply filters
|
|
1233
|
-
optional string reply_parent_uri =
|
|
1234
|
-
optional string thread_root_uri =
|
|
1235
|
-
optional bool exclude_replies =
|
|
1236
|
-
optional bool replies_only =
|
|
1232
|
+
optional string reply_parent_uri = 10;
|
|
1233
|
+
optional string thread_root_uri = 11;
|
|
1234
|
+
optional bool exclude_replies = 12;
|
|
1235
|
+
optional bool replies_only = 13;
|
|
1237
1236
|
|
|
1238
1237
|
// Social filters
|
|
1239
|
-
optional bool following =
|
|
1238
|
+
optional bool following = 14;
|
|
1240
1239
|
|
|
1241
1240
|
// Query analysis hint — forces a specific language analyzer.
|
|
1242
1241
|
// Auto-detects from query text when unset.
|
|
1243
|
-
optional SearchQueryLanguage query_language =
|
|
1242
|
+
optional SearchQueryLanguage query_language = 15;
|
|
1244
1243
|
}
|
|
1245
1244
|
|
|
1246
1245
|
message SearchPostsV2Response {
|
|
@@ -135,10 +135,10 @@ const skeletonV2 = async (
|
|
|
135
135
|
domains: params.domain ? [params.domain] : [],
|
|
136
136
|
urls: params.url ? [params.url] : [],
|
|
137
137
|
hashtags: params.tag ?? [],
|
|
138
|
+
languages: params.lang ? [params.lang] : [],
|
|
138
139
|
},
|
|
139
140
|
since: parseTimestamp(params.since),
|
|
140
141
|
until: parseTimestamp(params.until),
|
|
141
|
-
language: params.lang,
|
|
142
142
|
})
|
|
143
143
|
return {
|
|
144
144
|
posts: res.posts.map(({ uri }) => uri as AtUriString),
|
|
@@ -103,6 +103,7 @@ const skeleton = async (
|
|
|
103
103
|
urls: params.urls ?? [],
|
|
104
104
|
embeddedAtUris: params.embeddedAtUris ?? [],
|
|
105
105
|
hashtags: params.hashtags ?? [],
|
|
106
|
+
languages: params.languages ?? [],
|
|
106
107
|
},
|
|
107
108
|
exclude: {
|
|
108
109
|
authors: params.excludeAuthors ?? [],
|
|
@@ -111,11 +112,11 @@ const skeleton = async (
|
|
|
111
112
|
urls: params.excludeUrls ?? [],
|
|
112
113
|
embeddedAtUris: params.excludeEmbeddedAtUris ?? [],
|
|
113
114
|
hashtags: params.excludeHashtags ?? [],
|
|
115
|
+
languages: params.excludeLanguages ?? [],
|
|
114
116
|
},
|
|
115
117
|
since: parseTimestamp(params.since),
|
|
116
118
|
until: parseTimestamp(params.until),
|
|
117
119
|
allTime: params.allTime,
|
|
118
|
-
language: params.language,
|
|
119
120
|
hasMedia: params.hasMedia,
|
|
120
121
|
hasVideo: params.hasVideo,
|
|
121
122
|
replyParentUri: params.replyParentUri,
|