@laplace.live/internal 1.3.29 → 1.3.31
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 +1 -1
- package/src/namespaces/laplace.d.ts +18 -3
package/package.json
CHANGED
|
@@ -166,15 +166,30 @@ export declare namespace LaplaceInternal {
|
|
|
166
166
|
from: 'cache' | 'origin'
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
/** FollowingV2
|
|
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` 块 */
|
|
170
183
|
interface FollowingV2ResponseExtended extends BilibiliInternal.HTTPS.Prod.FeedAttentionList {
|
|
171
184
|
laplace?: {
|
|
172
|
-
/**
|
|
173
|
-
unfollowed
|
|
185
|
+
/** 曾关注但已取关的用户,按取关观测时间倒序;时间均为观测时间(毫秒时间戳)。`?history=1` 时返回 */
|
|
186
|
+
unfollowed?: Array<{
|
|
174
187
|
uid: number
|
|
175
188
|
lastSeenAt: number
|
|
176
189
|
unfollowedAt: number
|
|
177
190
|
}>
|
|
191
|
+
/** 按 uid 索引的用户信息,覆盖关注列表与 `laplace.unfollowed` 的全部 uid。`?enrich=1` 时返回,此时 `data.list` 一律为空数组 */
|
|
192
|
+
users?: Record<string, FollowingV2EnrichedUser>
|
|
178
193
|
}
|
|
179
194
|
}
|
|
180
195
|
|