@laplace.live/internal 1.3.29 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/internal",
3
- "version": "1.3.29",
3
+ "version": "1.3.30",
4
4
  "module": "src/index.d.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -166,15 +166,30 @@ export declare namespace LaplaceInternal {
166
166
  from: 'cache' | 'origin'
167
167
  }
168
168
 
169
- /** FollowingV2 (feed attention list) 的数据库扩展,`?history=1` 时携带 `laplace` 块 */
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: Array<{
185
+ /** 曾关注但已取关的用户,按取关观测时间倒序;时间均为观测时间(毫秒时间戳)。`?history=1` 时返回 */
186
+ unfollowed?: Array<{
174
187
  uid: number
175
188
  lastSeenAt: number
176
189
  unfollowedAt: number
177
190
  }>
191
+ /** 按 uid 索引的用户信息,覆盖 `data.list` 与 `laplace.unfollowed` 的全部 uid。`?enrich=1` 时返回 */
192
+ users?: Record<string, FollowingV2EnrichedUser>
178
193
  }
179
194
  }
180
195