@atproto/bsky 0.0.247 → 0.0.249

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/bsky",
3
- "version": "0.0.247",
3
+ "version": "0.0.249",
4
4
  "license": "MIT",
5
5
  "description": "Reference implementation of app.bsky App View (Bluesky API)",
6
6
  "keywords": [
@@ -40,26 +40,26 @@
40
40
  "murmurhash": "^2.0.1",
41
41
  "p-queue": "^8.0.0",
42
42
  "pg": "^8.10.0",
43
- "pino": "^8.21.0",
44
- "pino-http": "^8.2.1",
43
+ "pino": "^10.3.1",
44
+ "pino-http": "^11.0.0",
45
45
  "sharp": "^0.33.5",
46
46
  "structured-headers": "^1.0.1",
47
47
  "typed-emitter": "^2.1.0",
48
48
  "uint8arrays": "^5.0.0",
49
49
  "undici": "^8.5.0",
50
50
  "zod": "3.23.8",
51
- "@atproto-labs/fetch-node": "^0.3.2",
52
- "@atproto-labs/xrpc-utils": "^0.1.1",
53
- "@atproto/api": "^0.20.19",
54
- "@atproto/crypto": "^0.5.1",
55
- "@atproto/identity": "^0.5.1",
56
- "@atproto/lex": "^0.1.4",
57
- "@atproto/common": "^0.6.3",
58
- "@atproto/repo": "^0.10.1",
59
- "@atproto/syntax": "^0.6.2",
60
- "@atproto/sync": "^0.3.3",
61
- "@atproto/xrpc-server": "^0.11.2",
62
- "@atproto/did": "^0.5.1"
51
+ "@atproto-labs/fetch-node": "^0.3.3",
52
+ "@atproto-labs/xrpc-utils": "^0.1.2",
53
+ "@atproto/api": "^0.20.22",
54
+ "@atproto/common": "^0.6.4",
55
+ "@atproto/crypto": "^0.5.2",
56
+ "@atproto/sync": "^0.3.4",
57
+ "@atproto/syntax": "^0.6.3",
58
+ "@atproto/xrpc-server": "^0.11.3",
59
+ "@atproto/lex": "^0.1.5",
60
+ "@atproto/did": "^0.5.2",
61
+ "@atproto/repo": "^0.10.2",
62
+ "@atproto/identity": "^0.5.2"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@bufbuild/buf": "^1.28.1",
@@ -73,7 +73,7 @@
73
73
  "@types/qs": "^6.9.7",
74
74
  "ts-node": "^10.8.2",
75
75
  "vitest": "^4.0.16",
76
- "@atproto/pds": "^0.5.8"
76
+ "@atproto/pds": "^0.5.9"
77
77
  },
78
78
  "type": "module",
79
79
  "exports": {
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 = 9;
1230
- optional bool has_video = 10;
1228
+ optional bool has_media = 8;
1229
+ optional bool has_video = 9;
1231
1230
 
1232
1231
  // Reply filters
1233
- optional string reply_parent_uri = 11;
1234
- optional string thread_root_uri = 12;
1235
- optional bool exclude_replies = 13;
1236
- optional bool replies_only = 14;
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 = 15;
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 = 16;
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,