@ikenxuan/amagi 6.2.0 → 6.4.0

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.
@@ -530,6 +530,15 @@ var BilibiliAPI = class {
530
530
  getUserCard(data) {
531
531
  return `https://api.bilibili.com/x/web-interface/card?mid=${data.host_mid}&photo=true`;
532
532
  }
533
+ /**
534
+ * 按用户 UID 获取直播状态。
535
+ *
536
+ * @remarks
537
+ * 该接口直接返回用户当前直播状态,不依赖空间动态中的直播推荐卡片。
538
+ */
539
+ getUserLiveStatus(data) {
540
+ return `https://api.live.bilibili.com/room/v1/Room/getRoomInfoOld?mid=${data.host_mid}`;
541
+ }
533
542
  /** 获取直播间信息 */
534
543
  getLiveRoomInfo(data) {
535
544
  return `https://api.live.bilibili.com/room/v1/Room/get_info?room_id=${data.room_id}`;
@@ -975,6 +984,7 @@ const BilibiliUserParamsSchema = zod.object({
975
984
  methodType: zod.enum([
976
985
  "userCard",
977
986
  "userDynamicList",
987
+ "userLiveStatus",
978
988
  "uploaderTotalViews",
979
989
  "userSpaceInfo"
980
990
  ], { error: "方法类型必须是指定的枚举值之一" }),
@@ -1075,6 +1085,7 @@ const BilibiliValidationSchemas = {
1075
1085
  commentReplies: BilibiliCommentReplyParamsSchema,
1076
1086
  userCard: BilibiliUserParamsSchema,
1077
1087
  userDynamicList: BilibiliUserParamsSchema,
1088
+ userLiveStatus: BilibiliUserParamsSchema,
1078
1089
  userSpaceInfo: BilibiliUserParamsSchema,
1079
1090
  emojiList: BilibiliEmojiParamsSchema,
1080
1091
  bangumiInfo: BilibiliBangumiInfoParamsSchema,
@@ -1105,6 +1116,7 @@ const BilibiliMethodRoutes = {
1105
1116
  commentReplies: "/fetch_comment_reply",
1106
1117
  userCard: "/fetch_user_profile",
1107
1118
  userDynamicList: "/fetch_user_dynamic",
1119
+ userLiveStatus: "/fetch_user_live_status",
1108
1120
  userSpaceInfo: "/fetch_user_space_info",
1109
1121
  emojiList: "/fetch_emoji_list",
1110
1122
  bangumiInfo: "/fetch_bangumi_video_info",
@@ -2376,6 +2388,27 @@ async function fetchUserDynamicList(options, cookie, requestConfig) {
2376
2388
  });
2377
2389
  }
2378
2390
  /**
2391
+ * 按用户 UID 获取B站直播状态
2392
+ * @param options - 用户参数
2393
+ * @param options.host_mid - 用户 UID
2394
+ * @param cookie - B站 Cookie (可选)
2395
+ * @param requestConfig - 请求配置 (可选)
2396
+ * @returns 用户直播状态与直播间基础信息
2397
+ * @example
2398
+ * ```typescript
2399
+ * const result = await fetchUserLiveStatus({ host_mid: 123456, typeMode: 'strict' }, cookie)
2400
+ * if (result.success && result.data.data.liveStatus === 1) {
2401
+ * console.log(result.data.data.roomid) // 正在直播的房间 ID
2402
+ * }
2403
+ * ```
2404
+ */
2405
+ async function fetchUserLiveStatus(options, cookie, requestConfig) {
2406
+ return fetchBilibiliInternal("userLiveStatus", options, {
2407
+ cookie,
2408
+ requestConfig
2409
+ });
2410
+ }
2411
+ /**
2379
2412
  * 获取B站用户空间详细信息
2380
2413
  * @param options - 用户参数
2381
2414
  * @param options.host_mid - 用户 UID
@@ -2533,6 +2566,37 @@ async function fetchVideoDanmaku(options, cookie, requestConfig) {
2533
2566
  });
2534
2567
  }
2535
2568
  //#endregion
2569
+ //#region src/model/fetchers/shared/request-config.ts
2570
+ /**
2571
+ * 合并 Fetcher 的实例级请求配置与单次请求配置。
2572
+ *
2573
+ * 单次配置优先,请求头单独合并。函数不会修改任一入参,因此同一绑定
2574
+ * Fetcher 可以安全地在并发任务中为不同请求使用不同配置。
2575
+ */
2576
+ const mergeRequestConfig = (base, override) => {
2577
+ if (!override) return base;
2578
+ return {
2579
+ ...base ?? {},
2580
+ ...override,
2581
+ headers: {
2582
+ ...base?.headers ?? {},
2583
+ ...override.headers ?? {}
2584
+ }
2585
+ };
2586
+ };
2587
+ /**
2588
+ * 解析绑定 Fetcher 当前调用实际使用的 cookie 与请求配置。
2589
+ *
2590
+ * 实例级或单次配置显式提供大写 `headers.Cookie` 时,合并后的值同时替换
2591
+ * 底层 Fetcher 的 cookie 参数,确保平台签名、前置请求和最终请求处于同一身份状态。
2592
+ */
2593
+ const resolveBoundRequest = (boundCookie, base, override) => {
2594
+ const requestConfig = mergeRequestConfig(base, override);
2595
+ const headers = requestConfig?.headers;
2596
+ const cookieOverride = Boolean(headers && Object.prototype.hasOwnProperty.call(headers, "Cookie")) ? headers.Cookie : void 0;
2597
+ return [typeof cookieOverride === "string" ? cookieOverride : boundCookie, requestConfig];
2598
+ };
2599
+ //#endregion
2536
2600
  //#region src/model/fetchers/bilibili/bound.ts
2537
2601
  /**
2538
2602
  * 创建绑定了 Cookie 和请求配置的 B站 Fetcher
@@ -2548,35 +2612,37 @@ async function fetchVideoDanmaku(options, cookie, requestConfig) {
2548
2612
  * ```
2549
2613
  */
2550
2614
  function createBoundBilibiliFetcher(cookie, requestConfig) {
2615
+ const resolveRequest = (override) => resolveBoundRequest(cookie, requestConfig, override);
2551
2616
  return {
2552
- fetchVideoInfo: (options) => fetchVideoInfo(options, cookie, requestConfig),
2553
- fetchVideoStreamUrl: (options) => fetchVideoStreamUrl(options, cookie, requestConfig),
2554
- fetchVideoDanmaku: (options) => fetchVideoDanmaku(options, cookie, requestConfig),
2555
- fetchComments: (options) => fetchComments(options, cookie, requestConfig),
2556
- fetchCommentReplies: (options) => fetchCommentReplies$1(options, cookie, requestConfig),
2557
- fetchUserCard: (options) => fetchUserCard(options, cookie, requestConfig),
2558
- fetchUserDynamicList: (options) => fetchUserDynamicList(options, cookie, requestConfig),
2559
- fetchUserSpaceInfo: (options) => fetchUserSpaceInfo(options, cookie, requestConfig),
2560
- fetchUploaderTotalViews: (options) => fetchUploaderTotalViews(options, cookie, requestConfig),
2561
- fetchDynamicDetail: (options) => fetchDynamicDetail(options, cookie, requestConfig),
2617
+ fetchVideoInfo: (options, override) => fetchVideoInfo(options, ...resolveRequest(override)),
2618
+ fetchVideoStreamUrl: (options, override) => fetchVideoStreamUrl(options, ...resolveRequest(override)),
2619
+ fetchVideoDanmaku: (options, override) => fetchVideoDanmaku(options, ...resolveRequest(override)),
2620
+ fetchComments: (options, override) => fetchComments(options, ...resolveRequest(override)),
2621
+ fetchCommentReplies: (options, override) => fetchCommentReplies$1(options, ...resolveRequest(override)),
2622
+ fetchUserCard: (options, override) => fetchUserCard(options, ...resolveRequest(override)),
2623
+ fetchUserDynamicList: (options, override) => fetchUserDynamicList(options, ...resolveRequest(override)),
2624
+ fetchUserLiveStatus: (options, override) => fetchUserLiveStatus(options, ...resolveRequest(override)),
2625
+ fetchUserSpaceInfo: (options, override) => fetchUserSpaceInfo(options, ...resolveRequest(override)),
2626
+ fetchUploaderTotalViews: (options, override) => fetchUploaderTotalViews(options, ...resolveRequest(override)),
2627
+ fetchDynamicDetail: (options, override) => fetchDynamicDetail(options, ...resolveRequest(override)),
2562
2628
  /** @deprecated v6.1.3 已废弃,调用将返回错误信息 */
2563
- fetchDynamicCard: (options) => fetchDynamicCard(options, cookie, requestConfig),
2564
- fetchBangumiInfo: (options) => fetchBangumiInfo(options, cookie, requestConfig),
2565
- fetchBangumiStreamUrl: (options) => fetchBangumiStreamUrl(options, cookie, requestConfig),
2566
- fetchLiveRoomInfo: (options) => fetchLiveRoomInfo$2(options, cookie, requestConfig),
2567
- fetchLiveRoomInitInfo: (options) => fetchLiveRoomInitInfo(options, cookie, requestConfig),
2568
- fetchArticleContent: (options) => fetchArticleContent(options, cookie, requestConfig),
2569
- fetchArticleCards: (options) => fetchArticleCards(options, cookie, requestConfig),
2570
- fetchArticleInfo: (options) => fetchArticleInfo(options, cookie, requestConfig),
2571
- fetchArticleListInfo: (options) => fetchArticleListInfo(options, cookie, requestConfig),
2572
- fetchLoginStatus: (options) => fetchLoginStatus(options, cookie, requestConfig),
2573
- requestLoginQrcode: (options) => requestLoginQrcode$1(options, cookie, requestConfig),
2574
- checkQrcodeStatus: (options) => checkQrcodeStatus(options, cookie, requestConfig),
2575
- requestCaptchaFromVoucher: (options) => requestCaptchaFromVoucher(options, cookie, requestConfig),
2576
- validateCaptchaResult: (options) => validateCaptchaResult(options, cookie, requestConfig),
2577
- convertAvToBv: (options) => convertAvToBv(options, cookie, requestConfig),
2578
- convertBvToAv: (options) => convertBvToAv(options, cookie, requestConfig),
2579
- fetchEmojiList: (options) => fetchEmojiList$3(options, cookie, requestConfig)
2629
+ fetchDynamicCard: (options, override) => fetchDynamicCard(options, ...resolveRequest(override)),
2630
+ fetchBangumiInfo: (options, override) => fetchBangumiInfo(options, ...resolveRequest(override)),
2631
+ fetchBangumiStreamUrl: (options, override) => fetchBangumiStreamUrl(options, ...resolveRequest(override)),
2632
+ fetchLiveRoomInfo: (options, override) => fetchLiveRoomInfo$2(options, ...resolveRequest(override)),
2633
+ fetchLiveRoomInitInfo: (options, override) => fetchLiveRoomInitInfo(options, ...resolveRequest(override)),
2634
+ fetchArticleContent: (options, override) => fetchArticleContent(options, ...resolveRequest(override)),
2635
+ fetchArticleCards: (options, override) => fetchArticleCards(options, ...resolveRequest(override)),
2636
+ fetchArticleInfo: (options, override) => fetchArticleInfo(options, ...resolveRequest(override)),
2637
+ fetchArticleListInfo: (options, override) => fetchArticleListInfo(options, ...resolveRequest(override)),
2638
+ fetchLoginStatus: (options, override) => fetchLoginStatus(options, ...resolveRequest(override)),
2639
+ requestLoginQrcode: (options, override) => requestLoginQrcode$1(options, ...resolveRequest(override)),
2640
+ checkQrcodeStatus: (options, override) => checkQrcodeStatus(options, ...resolveRequest(override)),
2641
+ requestCaptchaFromVoucher: (options, override) => requestCaptchaFromVoucher(options, ...resolveRequest(override)),
2642
+ validateCaptchaResult: (options, override) => validateCaptchaResult(options, ...resolveRequest(override)),
2643
+ convertAvToBv: (options, override) => convertAvToBv(options, ...resolveRequest(override)),
2644
+ convertBvToAv: (options, override) => convertBvToAv(options, ...resolveRequest(override)),
2645
+ fetchEmojiList: (options, override) => fetchEmojiList$3(options, ...resolveRequest(override))
2580
2646
  };
2581
2647
  }
2582
2648
  //#endregion
@@ -2603,6 +2669,7 @@ const bilibiliFetcher = {
2603
2669
  fetchCommentReplies: fetchCommentReplies$1,
2604
2670
  fetchUserCard,
2605
2671
  fetchUserDynamicList,
2672
+ fetchUserLiveStatus,
2606
2673
  fetchUserSpaceInfo,
2607
2674
  fetchUploaderTotalViews,
2608
2675
  fetchDynamicDetail,
@@ -5033,26 +5100,27 @@ async function fetchDanmakuList(options, cookie, requestConfig) {
5033
5100
  * ```
5034
5101
  */
5035
5102
  function createBoundDouyinFetcher(cookie, requestConfig) {
5103
+ const resolveRequest = (override) => resolveBoundRequest(cookie, requestConfig, override);
5036
5104
  return {
5037
- fetchVideoWork: (options, reqConfig) => fetchVideoWork$1(options, cookie, reqConfig ?? requestConfig),
5038
- fetchImageAlbumWork: (options, reqConfig) => fetchImageAlbumWork(options, cookie, reqConfig ?? requestConfig),
5039
- fetchSlidesWork: (options, reqConfig) => fetchSlidesWork(options, cookie, reqConfig ?? requestConfig),
5040
- fetchTextWork: (options, reqConfig) => fetchTextWork(options, cookie, reqConfig ?? requestConfig),
5041
- parseWork: (options, reqConfig) => parseWork(options, cookie, reqConfig ?? requestConfig),
5042
- fetchDanmakuList: (options, reqConfig) => fetchDanmakuList(options, cookie, reqConfig ?? requestConfig),
5043
- fetchWorkComments: (options, reqConfig) => fetchWorkComments$1(options, cookie, reqConfig ?? requestConfig),
5044
- fetchCommentReplies: (options, reqConfig) => fetchCommentReplies(options, cookie, reqConfig ?? requestConfig),
5045
- fetchUserProfile: (options, reqConfig) => fetchUserProfile$2(options, cookie, reqConfig ?? requestConfig),
5046
- fetchUserVideoList: (options, reqConfig) => fetchUserVideoList(options, cookie, reqConfig ?? requestConfig),
5047
- fetchUserFavoriteList: (options, reqConfig) => fetchUserFavoriteList(options, cookie, reqConfig ?? requestConfig),
5048
- fetchUserRecommendList: (options, reqConfig) => fetchUserRecommendList(options, cookie, reqConfig ?? requestConfig),
5049
- searchContent: (options, reqConfig) => searchContent(options, cookie, reqConfig ?? requestConfig),
5050
- fetchSuggestWords: (options, reqConfig) => fetchSuggestWords(options, cookie, reqConfig ?? requestConfig),
5051
- fetchMusicInfo: (options, reqConfig) => fetchMusicInfo(options, cookie, reqConfig ?? requestConfig),
5052
- fetchLiveRoomInfo: (options, reqConfig) => fetchLiveRoomInfo$1(options, cookie, reqConfig ?? requestConfig),
5053
- requestLoginQrcode: (options, reqConfig) => requestLoginQrcode(options, cookie, reqConfig ?? requestConfig),
5054
- fetchEmojiList: (options, reqConfig) => fetchEmojiList$2(options, cookie, reqConfig ?? requestConfig),
5055
- fetchDynamicEmojiList: (options, reqConfig) => fetchDynamicEmojiList(options, cookie, reqConfig ?? requestConfig)
5105
+ fetchVideoWork: (options, override) => fetchVideoWork$1(options, ...resolveRequest(override)),
5106
+ fetchImageAlbumWork: (options, override) => fetchImageAlbumWork(options, ...resolveRequest(override)),
5107
+ fetchSlidesWork: (options, override) => fetchSlidesWork(options, ...resolveRequest(override)),
5108
+ fetchTextWork: (options, override) => fetchTextWork(options, ...resolveRequest(override)),
5109
+ parseWork: (options, override) => parseWork(options, ...resolveRequest(override)),
5110
+ fetchDanmakuList: (options, override) => fetchDanmakuList(options, ...resolveRequest(override)),
5111
+ fetchWorkComments: (options, override) => fetchWorkComments$1(options, ...resolveRequest(override)),
5112
+ fetchCommentReplies: (options, override) => fetchCommentReplies(options, ...resolveRequest(override)),
5113
+ fetchUserProfile: (options, override) => fetchUserProfile$2(options, ...resolveRequest(override)),
5114
+ fetchUserVideoList: (options, override) => fetchUserVideoList(options, ...resolveRequest(override)),
5115
+ fetchUserFavoriteList: (options, override) => fetchUserFavoriteList(options, ...resolveRequest(override)),
5116
+ fetchUserRecommendList: (options, override) => fetchUserRecommendList(options, ...resolveRequest(override)),
5117
+ searchContent: (options, override) => searchContent(options, ...resolveRequest(override)),
5118
+ fetchSuggestWords: (options, override) => fetchSuggestWords(options, ...resolveRequest(override)),
5119
+ fetchMusicInfo: (options, override) => fetchMusicInfo(options, ...resolveRequest(override)),
5120
+ fetchLiveRoomInfo: (options, override) => fetchLiveRoomInfo$1(options, ...resolveRequest(override)),
5121
+ requestLoginQrcode: (options, override) => requestLoginQrcode(options, ...resolveRequest(override)),
5122
+ fetchEmojiList: (options, override) => fetchEmojiList$2(options, ...resolveRequest(override)),
5123
+ fetchDynamicEmojiList: (options, override) => fetchDynamicEmojiList(options, ...resolveRequest(override))
5056
5124
  };
5057
5125
  }
5058
5126
  //#endregion
@@ -7445,13 +7513,14 @@ const kuaishouFetcher = {
7445
7513
  * ```
7446
7514
  */
7447
7515
  function createBoundKuaishouFetcher(cookie, requestConfig) {
7516
+ const resolveRequest = (override) => resolveBoundRequest(cookie, requestConfig, override);
7448
7517
  return {
7449
- fetchVideoWork: (options, reqConfig) => fetchVideoWork(options, cookie, reqConfig ?? requestConfig),
7450
- fetchWorkComments: (options, reqConfig) => fetchWorkComments(options, cookie, reqConfig ?? requestConfig),
7451
- fetchUserProfile: (options, reqConfig) => fetchUserProfile$1(options, cookie, reqConfig ?? requestConfig),
7452
- fetchUserWorkList: (options, reqConfig) => fetchUserWorkList(options, cookie, reqConfig ?? requestConfig),
7453
- fetchLiveRoomInfo: (options, reqConfig) => fetchLiveRoomInfo(options, cookie, reqConfig ?? requestConfig),
7454
- fetchEmojiList: (options, reqConfig) => fetchEmojiList$1(options, cookie, reqConfig ?? requestConfig)
7518
+ fetchVideoWork: (options, override) => fetchVideoWork(options, ...resolveRequest(override)),
7519
+ fetchWorkComments: (options, override) => fetchWorkComments(options, ...resolveRequest(override)),
7520
+ fetchUserProfile: (options, override) => fetchUserProfile$1(options, ...resolveRequest(override)),
7521
+ fetchUserWorkList: (options, override) => fetchUserWorkList(options, ...resolveRequest(override)),
7522
+ fetchLiveRoomInfo: (options, override) => fetchLiveRoomInfo(options, ...resolveRequest(override)),
7523
+ fetchEmojiList: (options, override) => fetchEmojiList$1(options, ...resolveRequest(override))
7455
7524
  };
7456
7525
  }
7457
7526
  //#endregion
@@ -7890,14 +7959,15 @@ const xiaohongshuFetcher = {
7890
7959
  * ```
7891
7960
  */
7892
7961
  function createBoundXiaohongshuFetcher(cookie, requestConfig) {
7962
+ const resolveRequest = (override) => resolveBoundRequest(cookie, requestConfig, override);
7893
7963
  return {
7894
- fetchHomeFeed: (options = {}, reqConfig) => fetchHomeFeed(options, cookie, reqConfig ?? requestConfig),
7895
- fetchNoteDetail: (options, reqConfig) => fetchNoteDetail(options, cookie, reqConfig ?? requestConfig),
7896
- fetchNoteComments: (options, reqConfig) => fetchNoteComments(options, cookie, reqConfig ?? requestConfig),
7897
- fetchUserProfile: (options, reqConfig) => fetchUserProfile(options, cookie, reqConfig ?? requestConfig),
7898
- fetchUserNoteList: (options, reqConfig) => fetchUserNoteList(options, cookie, reqConfig ?? requestConfig),
7899
- searchNotes: (options, reqConfig) => searchNotes(options, cookie, reqConfig ?? requestConfig),
7900
- fetchEmojiList: (options, reqConfig) => fetchEmojiList(options, cookie, reqConfig ?? requestConfig)
7964
+ fetchHomeFeed: (options = {}, override) => fetchHomeFeed(options, ...resolveRequest(override)),
7965
+ fetchNoteDetail: (options, override) => fetchNoteDetail(options, ...resolveRequest(override)),
7966
+ fetchNoteComments: (options, override) => fetchNoteComments(options, ...resolveRequest(override)),
7967
+ fetchUserProfile: (options, override) => fetchUserProfile(options, ...resolveRequest(override)),
7968
+ fetchUserNoteList: (options, override) => fetchUserNoteList(options, ...resolveRequest(override)),
7969
+ searchNotes: (options, override) => searchNotes(options, ...resolveRequest(override)),
7970
+ fetchEmojiList: (options, override) => fetchEmojiList(options, ...resolveRequest(override))
7901
7971
  };
7902
7972
  }
7903
7973
  //#endregion
@@ -8659,6 +8729,10 @@ const fetchBilibili = async (data, cookie, requestConfig) => {
8659
8729
  url: bilibiliApiUrls.getUserCard({ host_mid })
8660
8730
  });
8661
8731
  }
8732
+ case "userLiveStatus": return await GlobalGetData(data.methodType, {
8733
+ ...baseRequestConfig,
8734
+ url: bilibiliApiUrls.getUserLiveStatus({ host_mid: data.host_mid })
8735
+ });
8662
8736
  case "userSpaceInfo": {
8663
8737
  const wbiSignQuery = await wbi_sign(bilibiliApiUrls.getUserSpaceInfo({ host_mid: data.host_mid }), baseRequestConfig.headers?.cookie);
8664
8738
  return await GlobalGetData(data.methodType, {
@@ -9744,6 +9818,7 @@ const BilibiliInternalMethods = {
9744
9818
  COMMENT_REPLIES: "指定评论的回复",
9745
9819
  USER_CARD: "用户主页数据",
9746
9820
  USER_DYNAMICS: "用户主页动态列表数据",
9821
+ USER_LIVE_STATUS: "用户直播状态",
9747
9822
  USER_SPACE_INFO: "用户空间详细信息",
9748
9823
  USER_TOTAL_VIEWS: "获取UP主总播放量",
9749
9824
  DYNAMIC_DETAIL: "动态详情数据",
@@ -9774,6 +9849,7 @@ const BilibiliFetcherMethods = {
9774
9849
  COMMENT_REPLIES: "fetchCommentReplies",
9775
9850
  USER_CARD: "fetchUserCard",
9776
9851
  USER_DYNAMICS: "fetchUserDynamicList",
9852
+ USER_LIVE_STATUS: "fetchUserLiveStatus",
9777
9853
  USER_SPACE_INFO: "fetchUserSpaceInfo",
9778
9854
  USER_TOTAL_VIEWS: "fetchUploaderTotalViews",
9779
9855
  DYNAMIC_DETAIL: "fetchDynamicDetail",
@@ -9882,6 +9958,7 @@ const BilibiliMethodToFetcher = {
9882
9958
  [BilibiliInternalMethods.COMMENT_REPLIES]: BilibiliFetcherMethods.COMMENT_REPLIES,
9883
9959
  [BilibiliInternalMethods.USER_CARD]: BilibiliFetcherMethods.USER_CARD,
9884
9960
  [BilibiliInternalMethods.USER_DYNAMICS]: BilibiliFetcherMethods.USER_DYNAMICS,
9961
+ [BilibiliInternalMethods.USER_LIVE_STATUS]: BilibiliFetcherMethods.USER_LIVE_STATUS,
9885
9962
  [BilibiliInternalMethods.USER_SPACE_INFO]: BilibiliFetcherMethods.USER_SPACE_INFO,
9886
9963
  [BilibiliInternalMethods.USER_TOTAL_VIEWS]: BilibiliFetcherMethods.USER_TOTAL_VIEWS,
9887
9964
  [BilibiliInternalMethods.DYNAMIC_DETAIL]: BilibiliFetcherMethods.DYNAMIC_DETAIL,
@@ -10013,6 +10090,7 @@ const BilibiliMethodMapping = {
10013
10090
  指定评论的回复: "fetchCommentReplies",
10014
10091
  用户主页数据: "fetchUserCard",
10015
10092
  用户主页动态列表数据: "fetchUserDynamicList",
10093
+ 用户直播状态: "fetchUserLiveStatus",
10016
10094
  用户空间详细信息: "fetchUserSpaceInfo",
10017
10095
  获取UP主总播放量: "fetchUploaderTotalViews",
10018
10096
  动态详情数据: "fetchDynamicDetail",
@@ -10095,6 +10173,7 @@ const BilibiliApiRoutes = {
10095
10173
  commentReplies: "/comment-replies",
10096
10174
  userCard: "/user",
10097
10175
  userDynamicList: "/user/dynamics",
10176
+ userLiveStatus: "/user/live-status",
10098
10177
  userSpaceInfo: "/user/space",
10099
10178
  uploaderTotalViews: "/user/total-views",
10100
10179
  dynamicDetail: "/dynamic",
@@ -10168,7 +10247,7 @@ function getApiRoute(platform, methodType) {
10168
10247
  * 构建后使用 __VERSION__,开发环境从 package.json 读取
10169
10248
  */
10170
10249
  const getVersion = () => {
10171
- return "6.2.0";
10250
+ return "6.4.0";
10172
10251
  };
10173
10252
  const VERSION = getVersion();
10174
10253
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikenxuan/amagi",
3
- "version": "6.2.0",
3
+ "version": "6.4.0",
4
4
  "description": "抖音、B站的 web 端相关数据接口基于 Node.js 的实现",
5
5
  "keywords": [
6
6
  "api",