@laplace.live/internal 1.3.28 → 1.3.30
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
|
@@ -1304,6 +1304,20 @@ export declare namespace BilibiliInternal {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
1306
|
|
|
1307
|
+
/**
|
|
1308
|
+
* 用户关注列表,只返回 uid,无需登录态且不受隐私设置限制,一次性返回全量(无分页)
|
|
1309
|
+
* @link https://api.vc.bilibili.com/feed/v1/feed/get_attention_list?uid=${uid}
|
|
1310
|
+
*/
|
|
1311
|
+
export interface FeedAttentionList {
|
|
1312
|
+
code: number
|
|
1313
|
+
message: string
|
|
1314
|
+
ttl: number
|
|
1315
|
+
data: {
|
|
1316
|
+
/** 关注的 uid 列表,目标用户不存在时为空数组 */
|
|
1317
|
+
list: number[]
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1307
1321
|
/**
|
|
1308
1322
|
* 直播个人信息,只有登录的时候可用
|
|
1309
1323
|
* @link https://api.live.bilibili.com/xlive/web-ucenter/user/get_user_info
|
|
@@ -166,6 +166,33 @@ export declare namespace LaplaceInternal {
|
|
|
166
166
|
from: 'cache' | 'origin'
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
+
/** FollowingV2 enrich 用户信息,仅查数据库(不请求上游),无记录时字段为空字符串 */
|
|
170
|
+
interface FollowingV2EnrichedUser {
|
|
171
|
+
/** 用户名,数据库无记录时为空字符串 */
|
|
172
|
+
username: string
|
|
173
|
+
/**
|
|
174
|
+
* 关注状态(bilibili attribute 语义,从被查询用户视角):
|
|
175
|
+
* - 0: 已取关(unfollowed 条目)
|
|
176
|
+
* - 2: 单向关注
|
|
177
|
+
* - 6: 互相关注(仅当对方的关注列表也已入库时可判定)
|
|
178
|
+
*/
|
|
179
|
+
relation: number
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/** FollowingV2 (feed attention list) 的数据库扩展,`?history=1` / `?enrich=1` 时携带 `laplace` 块 */
|
|
183
|
+
interface FollowingV2ResponseExtended extends BilibiliInternal.HTTPS.Prod.FeedAttentionList {
|
|
184
|
+
laplace?: {
|
|
185
|
+
/** 曾关注但已取关的用户,按取关观测时间倒序;时间均为观测时间(毫秒时间戳)。`?history=1` 时返回 */
|
|
186
|
+
unfollowed?: Array<{
|
|
187
|
+
uid: number
|
|
188
|
+
lastSeenAt: number
|
|
189
|
+
unfollowedAt: number
|
|
190
|
+
}>
|
|
191
|
+
/** 按 uid 索引的用户信息,覆盖 `data.list` 与 `laplace.unfollowed` 的全部 uid。`?enrich=1` 时返回 */
|
|
192
|
+
users?: Record<string, FollowingV2EnrichedUser>
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
169
196
|
/**
|
|
170
197
|
* 由 vtbs 整理来的直播间开播状态
|
|
171
198
|
*/
|