@ikenxuan/amagi 6.4.0 → 6.5.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.
@@ -1,9 +1,7 @@
1
1
  import { EventEmitter as EventEmitter$1 } from "node:events";
2
2
  import zod from "zod";
3
3
  import { AxiosRequestConfig, AxiosResponse, RawAxiosResponseHeaders } from "axios";
4
- import { ChalkInstance } from "chalk";
5
4
  import express from "express";
6
-
7
5
  //#region src/platform/bilibili/sign/wbi.d.ts
8
6
  /**
9
7
  * 对请求链接进行 WBI 签名
@@ -84,19 +82,24 @@ declare function parseDmSegMobileReply(data: ArrayBuffer | Uint8Array): BiliProt
84
82
  interface BilibiliMethodOptionsMap {
85
83
  /** 获取单个视频信息 */
86
84
  VideoInfoParams: {
87
- methodType: 'videoInfo'; /** 稿件BVID */
85
+ methodType: 'videoInfo';
86
+ /** 稿件BVID */
88
87
  bvid: string;
89
88
  };
90
89
  /** 获取视频流下载信息 */
91
90
  VideoStreamParams: {
92
- methodType: 'videoStream'; /** 稿件AVID */
93
- avid: number; /** 稿件cid */
91
+ methodType: 'videoStream';
92
+ /** 稿件AVID */
93
+ avid: number;
94
+ /** 稿件cid */
94
95
  cid: number;
95
96
  };
96
97
  /** 获取评论数据 */
97
98
  CommentParams: {
98
- methodType: 'comments'; /** 评论区类型代码,详见 [评论区类型代码](https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/comment/readme.md#%E8%AF%84%E8%AE%BA%E5%8C%BA%E7%B1%BB%E5%9E%8B%E4%BB%A3%E7%A0%81) */
99
- type: CommentType; /** 稿件ID,也就是AV号去除前缀后的内容 */
99
+ methodType: 'comments';
100
+ /** 评论区类型代码,详见 [评论区类型代码](https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/comment/readme.md#%E8%AF%84%E8%AE%BA%E5%8C%BA%E7%B1%BB%E5%9E%8B%E4%BB%A3%E7%A0%81) */
101
+ type: CommentType;
102
+ /** 稿件ID,也就是AV号去除前缀后的内容 */
100
103
  oid: string;
101
104
  /**
102
105
  * 获取的评论数量,默认20
@@ -121,7 +124,8 @@ interface BilibiliMethodOptionsMap {
121
124
  * 平台类型
122
125
  * @defaultValue 1
123
126
  */
124
- plat?: number; /** 当获取第一页评论时存在 */
127
+ plat?: number;
128
+ /** 当获取第一页评论时存在 */
125
129
  seek_rpid?: string;
126
130
  /**
127
131
  * web位置参数
@@ -131,9 +135,12 @@ interface BilibiliMethodOptionsMap {
131
135
  };
132
136
  /** 获取指定评论的回复 */
133
137
  CommentReplyParams: {
134
- methodType: 'commentReplies'; /** 评论区类型代码,详见 [评论区类型代码](https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/comment/readme.md#%E8%AF%84%E8%AE%BA%E5%8C%BA%E7%B1%BB%E5%9E%8B%E4%BB%A3%E7%A0%81) */
135
- type: CommentType; /** 目标评论区 ID,也就是AV号去除前缀后的内容 */
136
- oid: string; /** 根评论ID */
138
+ methodType: 'commentReplies';
139
+ /** 评论区类型代码,详见 [评论区类型代码](https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/comment/readme.md#%E8%AF%84%E8%AE%BA%E5%8C%BA%E7%B1%BB%E5%9E%8B%E4%BB%A3%E7%A0%81) */
140
+ type: CommentType;
141
+ /** 目标评论区 ID,也就是AV号去除前缀后的内容 */
142
+ oid: string;
143
+ /** 根评论ID */
137
144
  root: string;
138
145
  /**
139
146
  * 获取的评论数量,默认20
@@ -143,34 +150,42 @@ interface BilibiliMethodOptionsMap {
143
150
  };
144
151
  /** 获取用户相关数据 */
145
152
  UserParams: {
146
- methodType: 'userCard' | 'userDynamicList' | 'userLiveStatus' | 'uploaderTotalViews' | 'userSpaceInfo'; /** UP主UID */
153
+ methodType: 'userCard' | 'userDynamicList' | 'userLiveStatus' | 'uploaderTotalViews' | 'userSpaceInfo';
154
+ /** UP主UID */
147
155
  host_mid: number;
148
156
  };
149
157
  /** 获取动态数据 */
150
158
  DynamicParams: {
151
- methodType: 'dynamicDetail' | 'dynamicCard'; /** 动态ID */
159
+ methodType: 'dynamicDetail';
160
+ /** 动态ID */
152
161
  dynamic_id: string;
153
162
  };
154
163
  /** 获取番剧基本信息 */
155
164
  BangumiInfoParams: {
156
- methodType: 'bangumiInfo'; /** 稿件ep_id,其含义为 {@link https://www.bilibili.com/anime/index | 番剧索引} 或 **我的追番** 中的番剧,对应网址中包含ss号,如:{@link https://www.bilibili.com/bangumi/play/ss33802} */
157
- season_id?: string; /** 稿件ep_id,番剧的某一集,对应网址中包含ep号,如:{@link https://www.bilibili.com/bangumi/play/ep330798} */
165
+ methodType: 'bangumiInfo';
166
+ /** 稿件ep_id,其含义为 {@link https://www.bilibili.com/anime/index | 番剧索引} 或 **我的追番** 中的番剧,对应网址中包含ss号,如:{@link https://www.bilibili.com/bangumi/play/ss33802} */
167
+ season_id?: string;
168
+ /** 稿件ep_id,番剧的某一集,对应网址中包含ep号,如:{@link https://www.bilibili.com/bangumi/play/ep330798} */
158
169
  ep_id?: string;
159
170
  };
160
171
  /** 获取番剧视频流信息 */
161
172
  BangumiStreamParams: {
162
- methodType: 'bangumiStream'; /** 稿件cid */
163
- cid: number; /** 稿件ep_id,番剧的某一集,对应网址中包含ep号,如:{@link https://www.bilibili.com/bangumi/play/ep330798} */
173
+ methodType: 'bangumiStream';
174
+ /** 稿件cid */
175
+ cid: number;
176
+ /** 稿件ep_id,番剧的某一集,对应网址中包含ep号,如:{@link https://www.bilibili.com/bangumi/play/ep330798} */
164
177
  ep_id: string;
165
178
  };
166
179
  /** 获取直播间信息 */
167
180
  LiveRoomParams: {
168
- methodType: 'liveRoomInfo' | 'liveRoomInit'; /** 直播间ID */
181
+ methodType: 'liveRoomInfo' | 'liveRoomInit';
182
+ /** 直播间ID */
169
183
  room_id: string;
170
184
  };
171
185
  /** 查询二维码状态 */
172
186
  QrcodeParams: {
173
- methodType: 'qrcodeStatus'; /** 扫码登录秘钥 */
187
+ methodType: 'qrcodeStatus';
188
+ /** 扫码登录秘钥 */
174
189
  qrcode_key: string;
175
190
  };
176
191
  /** 获取表情列表 */
@@ -187,12 +202,14 @@ interface BilibiliMethodOptionsMap {
187
202
  };
188
203
  /** BV号转AV号 */
189
204
  Bv2AvParams: {
190
- methodType: 'bvToAv'; /** 视频BV号 */
205
+ methodType: 'bvToAv';
206
+ /** 视频BV号 */
191
207
  bvid: string;
192
208
  };
193
209
  /** AV号转BV号 */
194
210
  Av2BvParams: {
195
- methodType: 'avToBv'; /** 视频AV号 */
211
+ methodType: 'avToBv';
212
+ /** 视频AV号 */
196
213
  avid: number;
197
214
  };
198
215
  /** 获取专栏正文内容 */
@@ -243,7 +260,8 @@ interface BilibiliMethodOptionsMap {
243
260
  * @see https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/danmaku/danmaku_proto.md
244
261
  */
245
262
  DanmakuParams: {
246
- methodType: 'videoDanmaku'; /** 稿件cid */
263
+ methodType: 'videoDanmaku';
264
+ /** 稿件cid */
247
265
  cid: number;
248
266
  /**
249
267
  * 分段序号(从1开始),每6分钟为一段
@@ -253,17 +271,24 @@ interface BilibiliMethodOptionsMap {
253
271
  };
254
272
  /** 从 v_voucher 申请验证码 */
255
273
  ApplyVoucherCaptchaParams: {
256
- methodType: 'captchaFromVoucher'; /** CSRF Token (位于 Cookie 的 bili_jct) */
257
- csrf?: string; /** 结构为字符串 voucher_ 尾随一串以 - 为分隔符的小写 UUID */
274
+ methodType: 'captchaFromVoucher';
275
+ /** CSRF Token (位于 Cookie bili_jct) */
276
+ csrf?: string;
277
+ /** 结构为字符串 voucher_ 尾随一串以 - 为分隔符的小写 UUID */
258
278
  v_voucher: string;
259
279
  };
260
280
  /** 验证验证码结果 */
261
281
  ValidateCaptchaParams: {
262
- methodType: 'validateCaptcha'; /** CSRF Token (位于 Cookie 的 bili_jct) */
263
- csrf?: string; /** 极验3 https://www.geetest.com 的验证码 challenge */
264
- challenge: string; /** 验证码 token */
265
- token: string; /** 人机验证成功后的 validate 参数 */
266
- validate: string; /** 人机验证成功后的 seccode 参数,{validate}|jordan */
282
+ methodType: 'validateCaptcha';
283
+ /** CSRF Token (位于 Cookie bili_jct) */
284
+ csrf?: string;
285
+ /** 极验3 https://www.geetest.com 的验证码 challenge */
286
+ challenge: string;
287
+ /** 验证码 token */
288
+ token: string;
289
+ /** 人机验证成功后的 validate 参数 */
290
+ validate: string;
291
+ /** 人机验证成功后的 seccode 参数,{validate}|jordan */
267
292
  seccode: string;
268
293
  };
269
294
  }
@@ -338,7 +363,6 @@ type BilibiliMethodOptMap = {
338
363
  bangumiInfo: BilibiliMethodOptionsMap['BangumiInfoParams'];
339
364
  bangumiStream: BilibiliMethodOptionsMap['BangumiStreamParams'];
340
365
  dynamicDetail: BilibiliMethodOptionsMap['DynamicParams'];
341
- dynamicCard: BilibiliMethodOptionsMap['DynamicParams'];
342
366
  liveRoomInfo: BilibiliMethodOptionsMap['LiveRoomParams'];
343
367
  liveRoomInit: BilibiliMethodOptionsMap['LiveRoomParams'];
344
368
  loginStatus: BilibiliMethodOptionsMap['LoginBaseInfoParams'];
@@ -504,17 +528,10 @@ declare const BilibiliValidationSchemas: {
504
528
  ep_id: string;
505
529
  }, unknown>>;
506
530
  readonly dynamicDetail: zod.ZodType<{
507
- methodType: "dynamicDetail" | "dynamicCard";
531
+ methodType: "dynamicDetail";
508
532
  dynamic_id: string;
509
533
  }, unknown, zod.core.$ZodTypeInternals<{
510
- methodType: "dynamicDetail" | "dynamicCard";
511
- dynamic_id: string;
512
- }, unknown>>;
513
- readonly dynamicCard: zod.ZodType<{
514
- methodType: "dynamicDetail" | "dynamicCard";
515
- dynamic_id: string;
516
- }, unknown, zod.core.$ZodTypeInternals<{
517
- methodType: "dynamicDetail" | "dynamicCard";
534
+ methodType: "dynamicDetail";
518
535
  dynamic_id: string;
519
536
  }, unknown>>;
520
537
  readonly liveRoomInfo: zod.ZodType<{
@@ -645,7 +662,6 @@ declare const BilibiliMethodRoutes: {
645
662
  readonly bangumiInfo: "/fetch_bangumi_video_info";
646
663
  readonly bangumiStream: "/fetch_bangumi_video_playurl";
647
664
  readonly dynamicDetail: "/fetch_dynamic_info";
648
- readonly dynamicCard: "/fetch_dynamic_card";
649
665
  readonly liveRoomInfo: "/fetch_live_room_detail";
650
666
  readonly liveRoomInit: "/fetch_liveroom_def";
651
667
  readonly loginStatus: "/login_basic_info";
@@ -681,8 +697,10 @@ type BilibiliMethodType = keyof typeof BilibiliValidationSchemas;
681
697
  interface DouyinMethodOptionsMap {
682
698
  /** 获取指定评论的回复 */
683
699
  CommentReplyParams: {
684
- methodType: 'commentReplies'; /** 视频ID */
685
- aweme_id: string; /** 评论ID */
700
+ methodType: 'commentReplies';
701
+ /** 视频ID */
702
+ aweme_id: string;
703
+ /** 评论ID */
686
704
  comment_id: string;
687
705
  /**
688
706
  * 获取的评论数量
@@ -698,28 +716,33 @@ interface DouyinMethodOptionsMap {
698
716
  };
699
717
  /** 获取用户相关数据 */
700
718
  UserParams: {
701
- methodType: 'userProfile'; /** 用户ID */
719
+ methodType: 'userProfile';
720
+ /** 用户ID */
702
721
  sec_uid: string;
703
722
  };
704
723
  /** 获取用户列表数据(视频列表、喜欢列表、推荐列表) */
705
724
  UserListParams: {
706
- methodType: 'userVideoList' | 'userFavoriteList' | 'userRecommendList'; /** 用户ID */
725
+ methodType: 'userVideoList' | 'userFavoriteList' | 'userRecommendList';
726
+ /** 用户ID */
707
727
  sec_uid: string;
708
728
  /**
709
729
  * 获取的数量
710
730
  * @defaultValue 18
711
731
  */
712
- number?: number; /** 游标,用于获取下一页,不用填。 */
732
+ number?: number;
733
+ /** 游标,用于获取下一页,不用填。 */
713
734
  max_cursor?: string;
714
735
  };
715
736
  /** 获取作品数据 */
716
737
  WorkParams: {
717
- methodType: 'videoWork' | 'imageAlbumWork' | 'slidesWork' | 'parseWork' | 'textWork'; /** 视频ID、图集ID、合辑ID */
738
+ methodType: 'videoWork' | 'imageAlbumWork' | 'slidesWork' | 'parseWork' | 'textWork';
739
+ /** 视频ID、图集ID、合辑ID */
718
740
  aweme_id: string;
719
741
  };
720
742
  /** 获取评论数据 */
721
743
  CommentParams: {
722
- methodType: 'comments'; /** 视频ID */
744
+ methodType: 'comments';
745
+ /** 视频ID */
723
746
  aweme_id: string;
724
747
  /**
725
748
  * 获取的评论数量
@@ -735,28 +758,34 @@ interface DouyinMethodOptionsMap {
735
758
  };
736
759
  /** 获取音乐数据 */
737
760
  MusicParams: {
738
- methodType: 'musicInfo'; /** 音乐ID */
761
+ methodType: 'musicInfo';
762
+ /** 音乐ID */
739
763
  music_id: string;
740
764
  };
741
765
  /** 获取直播间信息 */
742
766
  LiveRoomParams: {
743
- methodType: 'liveRoomInfo'; /** 直播间ID,可从用户主页信息信息响应中的room_id_str值取得 */
744
- room_id: string; /** 直播间真实房间号(可通过live.douyin.com/{web_rid}直接访问直播间),可在在用户主页信息响应中的room_data中获取 */
767
+ methodType: 'liveRoomInfo';
768
+ /** 直播间ID,可从用户主页信息信息响应中的room_id_str值取得 */
769
+ room_id: string;
770
+ /** 直播间真实房间号(可通过live.douyin.com/{web_rid}直接访问直播间),可在在用户主页信息响应中的room_data中获取 */
745
771
  web_rid: string;
746
772
  };
747
773
  /** 申请登录二维码 */
748
774
  QrcodeParams: {
749
- methodType: 'loginQrcode'; /** fp指纹 */
775
+ methodType: 'loginQrcode';
776
+ /** fp指纹 */
750
777
  verify_fp: string;
751
778
  };
752
779
  /** 获取热点词数据 */
753
780
  HotWordsParams: {
754
- methodType: 'suggestWords'; /** 搜索词 */
781
+ methodType: 'suggestWords';
782
+ /** 搜索词 */
755
783
  query: string;
756
784
  };
757
785
  /** 搜索数据 */
758
786
  SearchParams: {
759
- methodType: 'search'; /** 搜索词 */
787
+ methodType: 'search';
788
+ /** 搜索词 */
760
789
  query: string;
761
790
  /**
762
791
  * 搜索类型
@@ -767,7 +796,8 @@ interface DouyinMethodOptionsMap {
767
796
  * 搜索数量
768
797
  * @default 10
769
798
  */
770
- number?: number; /** 上次搜索的游标值 */
799
+ number?: number;
800
+ /** 上次搜索的游标值 */
771
801
  search_id?: string;
772
802
  };
773
803
  /** 获取表情列表 */
@@ -780,7 +810,8 @@ interface DouyinMethodOptionsMap {
780
810
  };
781
811
  /** 获取弹幕数据 */
782
812
  DanmakuParams: {
783
- methodType: 'danmakuList'; /** 视频ID */
813
+ methodType: 'danmakuList';
814
+ /** 视频ID */
784
815
  aweme_id: string;
785
816
  /**
786
817
  * 弹幕查询的开始时间(毫秒)
@@ -794,22 +825,26 @@ interface DouyinMethodOptionsMap {
794
825
  * 例如:设置为10000表示获取到视频第10秒的弹幕
795
826
  * 不设置则获取到视频结束
796
827
  */
797
- end_time?: number; /** 视频总时长 */
828
+ end_time?: number;
829
+ /** 视频总时长 */
798
830
  duration: number;
799
831
  };
800
832
  /** 获取视频作品数据 */
801
833
  VideoWorkParams: {
802
- methodType: 'videoWork'; /** 视频ID */
834
+ methodType: 'videoWork';
835
+ /** 视频ID */
803
836
  aweme_id: string;
804
837
  };
805
838
  /** 获取图集作品数据 */
806
839
  ImageAlbumWorkParams: {
807
- methodType: 'imageAlbumWork'; /** 图集ID */
840
+ methodType: 'imageAlbumWork';
841
+ /** 图集ID */
808
842
  aweme_id: string;
809
843
  };
810
844
  /** 获取合辑作品数据 */
811
845
  SlidesWorkParams: {
812
- methodType: 'slidesWork'; /** 合辑ID */
846
+ methodType: 'slidesWork';
847
+ /** 合辑ID */
813
848
  aweme_id: string;
814
849
  };
815
850
  }
@@ -1066,25 +1101,32 @@ type DouyinMethodType = keyof typeof DouyinValidationSchemas;
1066
1101
  */
1067
1102
  interface KuaishouMethodOptionsMap {
1068
1103
  VideoInfoParams: {
1069
- methodType: 'videoWork'; /** 作品ID */
1104
+ methodType: 'videoWork';
1105
+ /** 作品ID */
1070
1106
  photoId: string;
1071
1107
  };
1072
1108
  CommentParams: {
1073
- methodType: 'comments'; /** 作品ID */
1109
+ methodType: 'comments';
1110
+ /** 作品ID */
1074
1111
  photoId: string;
1075
1112
  };
1076
1113
  UserProfileParams: {
1077
- methodType: 'userProfile'; /** 用户主页 principalId,可直接取 profile 页 URL 末段 */
1114
+ methodType: 'userProfile';
1115
+ /** 用户主页 principalId,可直接取 profile 页 URL 末段 */
1078
1116
  principalId: string;
1079
1117
  };
1080
1118
  UserWorkListParams: {
1081
- methodType: 'userWorkList'; /** 用户主页 principalId,可直接取 profile 页 URL 末段 */
1082
- principalId: string; /** 分页游标;为空时请求首屏作品列表 */
1083
- pcursor?: string; /** 每页数量,默认 12 */
1119
+ methodType: 'userWorkList';
1120
+ /** 用户主页 principalId,可直接取 profile URL 末段 */
1121
+ principalId: string;
1122
+ /** 分页游标;为空时请求首屏作品列表 */
1123
+ pcursor?: string;
1124
+ /** 每页数量,默认 12 */
1084
1125
  count?: number;
1085
1126
  };
1086
1127
  LiveRoomInfoParams: {
1087
- methodType: 'liveRoomInfo'; /** 直播间 principalId,可直接取 /u/{principalId} URL 末段 */
1128
+ methodType: 'liveRoomInfo';
1129
+ /** 直播间 principalId,可直接取 /u/{principalId} URL 末段 */
1088
1130
  principalId: string;
1089
1131
  };
1090
1132
  EmojiListParams: {
@@ -1196,32 +1238,46 @@ type KuaishouMethodType = keyof typeof KuaishouValidationSchemas;
1196
1238
  */
1197
1239
  interface XiaohongshuMethodOptionsMap {
1198
1240
  HomeFeedParams: {
1199
- methodType: 'homeFeed'; /** 游标分数,用于分页 */
1200
- cursor_score?: string; /** 每次请求的数量 */
1201
- num?: number; /** 刷新类型 */
1202
- refresh_type?: number; /** 笔记索引 */
1203
- note_index?: number; /** 分类 */
1204
- category?: string; /** 搜索关键词 */
1241
+ methodType: 'homeFeed';
1242
+ /** 游标分数,用于分页 */
1243
+ cursor_score?: string;
1244
+ /** 每次请求的数量 */
1245
+ num?: number;
1246
+ /** 刷新类型 */
1247
+ refresh_type?: number;
1248
+ /** 笔记索引 */
1249
+ note_index?: number;
1250
+ /** 分类 */
1251
+ category?: string;
1252
+ /** 搜索关键词 */
1205
1253
  search_key?: string;
1206
1254
  };
1207
1255
  NoteParams: {
1208
- methodType: 'noteDetail'; /** 笔记ID */
1209
- note_id: string; /** 反爬的 X-Sec-Token 可从web地址中获取 */
1256
+ methodType: 'noteDetail';
1257
+ /** 笔记ID */
1258
+ note_id: string;
1259
+ /** 反爬的 X-Sec-Token 可从web地址中获取 */
1210
1260
  xsec_token: string;
1211
1261
  };
1212
1262
  CommentParams: {
1213
- methodType: 'noteComments'; /** 笔记ID */
1214
- note_id: string; /** 游标 */
1215
- cursor?: string; /** 反爬的 X-Sec-Token 可从web地址中获取 */
1263
+ methodType: 'noteComments';
1264
+ /** 笔记ID */
1265
+ note_id: string;
1266
+ /** 游标 */
1267
+ cursor?: string;
1268
+ /** 反爬的 X-Sec-Token 可从web地址中获取 */
1216
1269
  xsec_token: string;
1217
1270
  };
1218
1271
  UserParams: {
1219
- methodType: 'userProfile'; /** 用户ID */
1272
+ methodType: 'userProfile';
1273
+ /** 用户ID */
1220
1274
  user_id: string;
1221
1275
  };
1222
1276
  UserNoteParams: {
1223
- methodType: 'userNoteList'; /** 用户ID */
1224
- user_id: string; /** 上一页最后一条笔记的ID */
1277
+ methodType: 'userNoteList';
1278
+ /** 用户ID */
1279
+ user_id: string;
1280
+ /** 上一页最后一条笔记的ID */
1225
1281
  cursor?: string;
1226
1282
  /**
1227
1283
  * 每次请求的数量
@@ -1233,11 +1289,16 @@ interface XiaohongshuMethodOptionsMap {
1233
1289
  methodType: 'emojiList';
1234
1290
  };
1235
1291
  SearchNoteParams: {
1236
- methodType: 'searchNotes'; /** 搜索关键词 */
1237
- keyword: string; /** 页码 */
1238
- page?: number; /** 每页数量 */
1239
- page_size?: number; /** 排序类型 */
1240
- sort?: SearchSortType; /** 笔记类型 */
1292
+ methodType: 'searchNotes';
1293
+ /** 搜索关键词 */
1294
+ keyword: string;
1295
+ /** 页码 */
1296
+ page?: number;
1297
+ /** 每页数量 */
1298
+ page_size?: number;
1299
+ /** 排序类型 */
1300
+ sort?: SearchSortType;
1301
+ /** 笔记类型 */
1241
1302
  note_type?: SearchNoteType;
1242
1303
  };
1243
1304
  }
@@ -1258,7 +1319,7 @@ type XiaohongshuMethodOptMap = {
1258
1319
  /**
1259
1320
  * 根据 XiaohongshuMethodOptionsMap 创建一个新的类型,去除每个字段中的 methodType
1260
1321
  */
1261
- type XiaohongshuMethodOptionsWithoutMethodType = { [K in keyof XiaohongshuMethodOptionsMap]: Omit<XiaohongshuMethodOptionsMap[K], 'methodType'> };
1322
+ type XiaohongshuMethodOptionsWithoutMethodType = { [K in keyof XiaohongshuMethodOptionsMap]: Omit<XiaohongshuMethodOptionsMap[K], 'methodType'>; };
1262
1323
  /**
1263
1324
  * 搜索排序类型枚举
1264
1325
  */
@@ -1683,87 +1744,6 @@ declare enum xiaohongshuAPIErrorCode {
1683
1744
  BROWSER_ERROR = 300015
1684
1745
  }
1685
1746
  //#endregion
1686
- //#region src/validation/index.d.ts
1687
- /**
1688
- * 基础响应类型
1689
- */
1690
- type BaseResponse = {
1691
- /** 响应消息 */message: string; /** 响应状态码 */
1692
- code: number;
1693
- };
1694
- /**
1695
- * 成功响应类型
1696
- * @template T - 响应数据的类型,默认为any
1697
- */
1698
- type SuccessResult<T = any> = BaseResponse & {
1699
- /** 响应状态 */success: true; /** 响应数据,类型由泛型 T 决定 */
1700
- data: T; /** 成功响应时错误信息为空 */
1701
- error: never;
1702
- };
1703
- /**
1704
- * 错误响应类型
1705
- */
1706
- type ErrorResult = BaseResponse & {
1707
- /** 响应状态 */success: false; /** API 错误类型 */
1708
- error: APIErrorType; /** 错误响应时数据为空 */
1709
- data: never;
1710
- };
1711
- /**
1712
- * 通用API响应类型
1713
- * @template T - 成功响应数据的类型,默认为any
1714
- */
1715
- type Result<T> = SuccessResult<T> | ErrorResult;
1716
- /**
1717
- * 通用API响应类型
1718
- * @template T - 成功响应数据的类型,默认为any
1719
- * @deprecated 请使用 Result<T> 替代
1720
- */
1721
- type ApiResponse<T> = Result<T>;
1722
- /**
1723
- * 验证抖音参数
1724
- * @param methodType - 抖音方法类型
1725
- * @param params - 待验证的参数
1726
- * @returns 验证后的参数,符合原始API期望的类型
1727
- */
1728
- declare const validateDouyinParams: <T extends DouyinMethodType>(methodType: T, params: unknown) => zod.infer<(typeof DouyinValidationSchemas)[T]>;
1729
- /**
1730
- * 验证哔哩哔哩参数
1731
- * @param methodType - 哔哩哔哩方法类型
1732
- * @param params - 待验证的参数
1733
- * @returns 验证后的参数,符合原始API期望的类型
1734
- */
1735
- declare const validateBilibiliParams: <T extends BilibiliMethodType>(methodType: T, params: unknown) => zod.infer<(typeof BilibiliValidationSchemas)[T]>;
1736
- /**
1737
- * 验证快手参数
1738
- * @param methodType - 快手方法类型
1739
- * @param params - 待验证的参数
1740
- * @returns 验证后的参数,符合原始API期望的类型
1741
- */
1742
- declare const validateKuaishouParams: <T extends KuaishouMethodType>(methodType: T, params: unknown) => zod.infer<(typeof KuaishouValidationSchemas)[T]>;
1743
- /**
1744
- * 验证小红书参数
1745
- * @param methodType - 小红书方法类型
1746
- * @param params - 待验证的参数
1747
- * @returns 验证后的参数
1748
- */
1749
- declare const validateXiaohongshuParams: <T extends XiaohongshuMethodType>(methodType: T, params: unknown) => zod.infer<(typeof XiaohongshuValidationSchemas)[T]>;
1750
- /**
1751
- * 创建成功响应格式
1752
- * @param data - 响应数据
1753
- * @param message - 响应消息(可选)
1754
- * @param code - 响应状态码(可选,默认200)
1755
- * @returns 格式化的成功API响应对象
1756
- */
1757
- declare const createSuccessResponse: <T>(data: T, message: string, code?: number) => SuccessResult<T>;
1758
- /**
1759
- * 创建失败响应格式
1760
- * @param error - 错误信息
1761
- * @param message - 详细错误消息(可选)
1762
- * @param code - 错误状态码(可选,默认500)
1763
- * @returns 格式化的错误响应对象
1764
- */
1765
- declare const createErrorResponse: (error: APIErrorType, message: string, code?: number, data?: unknown) => ErrorResult;
1766
- //#endregion
1767
1747
  //#region src/types/ReturnDataType/Bilibili/ArticleCard/ArticleCard_V0.d.ts
1768
1748
  type ArticleCard_V0 = {
1769
1749
  code: number;
@@ -2188,9 +2168,9 @@ type Author$10 = {
2188
2168
  mid: number;
2189
2169
  name: string;
2190
2170
  nameplate: Nameplate$4;
2191
- official_verify: OfficialVerify$9;
2192
- pendant: Pendant$10;
2193
- vip: Vip$10;
2171
+ official_verify: OfficialVerify$8;
2172
+ pendant: Pendant$9;
2173
+ vip: Vip$9;
2194
2174
  [property: string]: any;
2195
2175
  };
2196
2176
  type Nameplate$4 = {
@@ -2202,22 +2182,22 @@ type Nameplate$4 = {
2202
2182
  nid: number;
2203
2183
  [property: string]: any;
2204
2184
  };
2205
- type OfficialVerify$9 = {
2185
+ type OfficialVerify$8 = {
2206
2186
  desc: string;
2207
2187
  type: number;
2208
2188
  [property: string]: any;
2209
2189
  };
2210
- type Pendant$10 = {
2190
+ type Pendant$9 = {
2211
2191
  expire: number;
2212
2192
  image: string;
2213
2193
  name: string;
2214
2194
  pid: number;
2215
2195
  [property: string]: any;
2216
2196
  };
2217
- type Vip$10 = {
2197
+ type Vip$9 = {
2218
2198
  avatar_subscript: number;
2219
2199
  due_date: number;
2220
- label: Label$10;
2200
+ label: Label$9;
2221
2201
  nickname_color: string;
2222
2202
  status: number;
2223
2203
  theme_type: number;
@@ -2225,7 +2205,7 @@ type Vip$10 = {
2225
2205
  vip_pay_type: number;
2226
2206
  [property: string]: any;
2227
2207
  };
2228
- type Label$10 = {
2208
+ type Label$9 = {
2229
2209
  label_theme: string;
2230
2210
  path: string;
2231
2211
  text: string;
@@ -2409,11 +2389,11 @@ type ArticleInfo = ArticleInfo_V0;
2409
2389
  //#region src/types/ReturnDataType/Bilibili/AV2BV/AV2BV_V0.d.ts
2410
2390
  type BiliAv2Bv_V0 = {
2411
2391
  code: number;
2412
- data: Data$15;
2392
+ data: Data$14;
2413
2393
  message: string;
2414
2394
  [property: string]: any;
2415
2395
  };
2416
- type Data$15 = {
2396
+ type Data$14 = {
2417
2397
  bvid: string;
2418
2398
  [property: string]: any;
2419
2399
  };
@@ -2794,7 +2774,7 @@ type UpInfo = {
2794
2774
  is_follow: number;
2795
2775
  mid: number;
2796
2776
  nickname_color: string;
2797
- pendant: Pendant$9;
2777
+ pendant: Pendant$8;
2798
2778
  theme_type: number;
2799
2779
  uname: string;
2800
2780
  verify_type: number;
@@ -2803,7 +2783,7 @@ type UpInfo = {
2803
2783
  vip_type: number;
2804
2784
  [property: string]: any;
2805
2785
  };
2806
- type Pendant$9 = {
2786
+ type Pendant$8 = {
2807
2787
  image: string;
2808
2788
  name: string;
2809
2789
  pid: number;
@@ -3067,12 +3047,12 @@ type BiliBangumiVideoPlayurlNoLogin = BiliBangumiVideoPlayurlNoLogin_V0;
3067
3047
  //#region src/types/ReturnDataType/Bilibili/EmojiList/EmojiList_V0.d.ts
3068
3048
  type BiliEmojiList_V0 = {
3069
3049
  code: number;
3070
- data: Data$14;
3050
+ data: Data$13;
3071
3051
  message: string;
3072
3052
  ttl: number;
3073
3053
  [property: string]: any;
3074
3054
  };
3075
- type Data$14 = {
3055
+ type Data$13 = {
3076
3056
  packages: Package[];
3077
3057
  setting: Setting;
3078
3058
  [property: string]: any;
@@ -3331,11 +3311,11 @@ type Member = {
3331
3311
  fans_detail: null | FansDetail;
3332
3312
  is_contractor: boolean;
3333
3313
  is_senior_member: number;
3334
- level_info: LevelInfo$2;
3314
+ level_info: LevelInfo$1;
3335
3315
  mid: string;
3336
3316
  nameplate: Nameplate$3;
3337
3317
  nft_interaction: null;
3338
- official_verify: OfficialVerify$8;
3318
+ official_verify: OfficialVerify$7;
3339
3319
  pendant: MemberPendant;
3340
3320
  rank: string;
3341
3321
  senior: Senior;
@@ -3344,7 +3324,7 @@ type Member = {
3344
3324
  uname: string;
3345
3325
  user_sailing: UserSailing;
3346
3326
  user_sailing_v2: UserSailingV2;
3347
- vip: Vip$9;
3327
+ vip: Vip$8;
3348
3328
  [property: string]: any;
3349
3329
  };
3350
3330
  type AvatarItem = {
@@ -3466,7 +3446,7 @@ type FansDetail = {
3466
3446
  uid: number;
3467
3447
  [property: string]: any;
3468
3448
  };
3469
- type LevelInfo$2 = {
3449
+ type LevelInfo$1 = {
3470
3450
  current_exp: number;
3471
3451
  current_level: number;
3472
3452
  current_min: number;
@@ -3482,7 +3462,7 @@ type Nameplate$3 = {
3482
3462
  nid: number;
3483
3463
  [property: string]: any;
3484
3464
  };
3485
- type OfficialVerify$8 = {
3465
+ type OfficialVerify$7 = {
3486
3466
  desc: string;
3487
3467
  type: number;
3488
3468
  [property: string]: any;
@@ -3583,11 +3563,11 @@ type UserSailingV2Pendant = {
3583
3563
  type: string;
3584
3564
  [property: string]: any;
3585
3565
  };
3586
- type Vip$9 = {
3566
+ type Vip$8 = {
3587
3567
  accessStatus: number;
3588
3568
  avatar_subscript: number;
3589
3569
  dueRemark: string;
3590
- label: Label$9;
3570
+ label: Label$8;
3591
3571
  nickname_color: string;
3592
3572
  themeType: number;
3593
3573
  vipDueDate: number;
@@ -3596,7 +3576,7 @@ type Vip$9 = {
3596
3576
  vipType: number;
3597
3577
  [property: string]: any;
3598
3578
  };
3599
- type Label$9 = {
3579
+ type Label$8 = {
3600
3580
  bg_color: string;
3601
3581
  bg_style: number;
3602
3582
  border_color: string;
@@ -3644,11 +3624,11 @@ type BiliCommentReply = BiliCommentReply_V0;
3644
3624
  //#region src/types/ReturnDataType/Bilibili/BV2AV/BV2AV_V0.d.ts
3645
3625
  type BiliBv2AV_V0 = {
3646
3626
  code: number;
3647
- data: Data$13;
3627
+ data: Data$12;
3648
3628
  message: string;
3649
3629
  [property: string]: any;
3650
3630
  };
3651
- type Data$13 = {
3631
+ type Data$12 = {
3652
3632
  aid: string;
3653
3633
  [property: string]: any;
3654
3634
  };
@@ -3723,9 +3703,9 @@ type Author$9 = {
3723
3703
  mid: number;
3724
3704
  name: string;
3725
3705
  nameplate: Nameplate$2;
3726
- official_verify: OfficialVerify$7;
3727
- pendant: Pendant$8;
3728
- vip: Vip$8;
3706
+ official_verify: OfficialVerify$6;
3707
+ pendant: Pendant$7;
3708
+ vip: Vip$7;
3729
3709
  [property: string]: any;
3730
3710
  };
3731
3711
  type Nameplate$2 = {
@@ -3737,22 +3717,22 @@ type Nameplate$2 = {
3737
3717
  nid: number;
3738
3718
  [property: string]: any;
3739
3719
  };
3740
- type OfficialVerify$7 = {
3720
+ type OfficialVerify$6 = {
3741
3721
  desc: string;
3742
3722
  type: number;
3743
3723
  [property: string]: any;
3744
3724
  };
3745
- type Pendant$8 = {
3725
+ type Pendant$7 = {
3746
3726
  expire: number;
3747
3727
  image: string;
3748
3728
  name: string;
3749
3729
  pid: number;
3750
3730
  [property: string]: any;
3751
3731
  };
3752
- type Vip$8 = {
3732
+ type Vip$7 = {
3753
3733
  avatar_subscript: number;
3754
3734
  due_date: number;
3755
- label: Label$8;
3735
+ label: Label$7;
3756
3736
  nickname_color: string;
3757
3737
  status: number;
3758
3738
  theme_type: number;
@@ -3760,7 +3740,7 @@ type Vip$8 = {
3760
3740
  vip_pay_type: number;
3761
3741
  [property: string]: any;
3762
3742
  };
3763
- type Label$8 = {
3743
+ type Label$7 = {
3764
3744
  label_theme: string;
3765
3745
  path: string;
3766
3746
  text: string;
@@ -3862,14 +3842,14 @@ type ModuleAuthor$4 = {
3862
3842
  label: string;
3863
3843
  mid: number;
3864
3844
  name: string;
3865
- official_verify: OfficialVerify$6;
3866
- pendant: Pendant$7;
3845
+ official_verify: OfficialVerify$5;
3846
+ pendant: Pendant$6;
3867
3847
  pub_action: string;
3868
3848
  pub_location_text: string;
3869
3849
  pub_time: string;
3870
3850
  pub_ts: number;
3871
3851
  type: string;
3872
- vip: Vip$7;
3852
+ vip: Vip$6;
3873
3853
  [property: string]: any;
3874
3854
  };
3875
3855
  type Avatar$5 = {
@@ -3968,12 +3948,12 @@ type Remote$4 = {
3968
3948
  url: string;
3969
3949
  [property: string]: any;
3970
3950
  };
3971
- type OfficialVerify$6 = {
3951
+ type OfficialVerify$5 = {
3972
3952
  desc: string;
3973
3953
  type: number;
3974
3954
  [property: string]: any;
3975
3955
  };
3976
- type Pendant$7 = {
3956
+ type Pendant$6 = {
3977
3957
  expire: number;
3978
3958
  image: string;
3979
3959
  image_enhance: string;
@@ -3983,18 +3963,18 @@ type Pendant$7 = {
3983
3963
  pid: number;
3984
3964
  [property: string]: any;
3985
3965
  };
3986
- type Vip$7 = {
3966
+ type Vip$6 = {
3987
3967
  avatar_subscript: number;
3988
3968
  avatar_subscript_url: string;
3989
3969
  due_date: number;
3990
- label: Label$7;
3970
+ label: Label$6;
3991
3971
  nickname_color: string;
3992
3972
  status: number;
3993
3973
  theme_type: number;
3994
3974
  type: number;
3995
3975
  [property: string]: any;
3996
3976
  };
3997
- type Label$7 = {
3977
+ type Label$6 = {
3998
3978
  bg_color: string;
3999
3979
  bg_style: number;
4000
3980
  border_color: string;
@@ -4125,14 +4105,14 @@ type ModuleAuthor$3 = {
4125
4105
  label: string;
4126
4106
  mid: number;
4127
4107
  name: string;
4128
- official_verify: OfficialVerify$5;
4129
- pendant: Pendant$6;
4108
+ official_verify: OfficialVerify$4;
4109
+ pendant: Pendant$5;
4130
4110
  pub_action: string;
4131
4111
  pub_location_text: string;
4132
4112
  pub_time: string;
4133
4113
  pub_ts: number;
4134
4114
  type: string;
4135
- vip: Vip$6;
4115
+ vip: Vip$5;
4136
4116
  [property: string]: any;
4137
4117
  };
4138
4118
  type Avatar$4 = {
@@ -4231,12 +4211,12 @@ type Remote$3 = {
4231
4211
  url: string;
4232
4212
  [property: string]: any;
4233
4213
  };
4234
- type OfficialVerify$5 = {
4214
+ type OfficialVerify$4 = {
4235
4215
  desc: string;
4236
4216
  type: number;
4237
4217
  [property: string]: any;
4238
4218
  };
4239
- type Pendant$6 = {
4219
+ type Pendant$5 = {
4240
4220
  expire: number;
4241
4221
  image: string;
4242
4222
  image_enhance: string;
@@ -4246,18 +4226,18 @@ type Pendant$6 = {
4246
4226
  pid: number;
4247
4227
  [property: string]: any;
4248
4228
  };
4249
- type Vip$6 = {
4229
+ type Vip$5 = {
4250
4230
  avatar_subscript: number;
4251
4231
  avatar_subscript_url: string;
4252
4232
  due_date: number;
4253
- label: Label$6;
4233
+ label: Label$5;
4254
4234
  nickname_color: string;
4255
4235
  status: number;
4256
4236
  theme_type: number;
4257
4237
  type: number;
4258
4238
  [property: string]: any;
4259
4239
  };
4260
- type Label$6 = {
4240
+ type Label$5 = {
4261
4241
  bg_color: string;
4262
4242
  bg_style: number;
4263
4243
  border_color: string;
@@ -4274,12 +4254,12 @@ type Label$6 = {
4274
4254
  };
4275
4255
  type ModuleDynamic$3 = {
4276
4256
  additional: null;
4277
- desc: Desc$6;
4257
+ desc: Desc$5;
4278
4258
  major: Major$9;
4279
4259
  topic: null;
4280
4260
  [property: string]: any;
4281
4261
  };
4282
- type Desc$6 = {
4262
+ type Desc$5 = {
4283
4263
  rich_text_nodes: RichTextNode$4[];
4284
4264
  text: string;
4285
4265
  [property: string]: any;
@@ -4408,14 +4388,14 @@ type ModuleAuthor$2 = {
4408
4388
  label: string;
4409
4389
  mid: number;
4410
4390
  name: string;
4411
- official_verify: OfficialVerify$4;
4412
- pendant: Pendant$5;
4391
+ official_verify: OfficialVerify$3;
4392
+ pendant: Pendant$4;
4413
4393
  pub_action: string;
4414
4394
  pub_location_text: string;
4415
4395
  pub_time: string;
4416
4396
  pub_ts: number;
4417
4397
  type: string;
4418
- vip: Vip$5;
4398
+ vip: Vip$4;
4419
4399
  [property: string]: any;
4420
4400
  };
4421
4401
  type Avatar$3 = {
@@ -4546,12 +4526,12 @@ type ColorFormat$6 = {
4546
4526
  start_point: string;
4547
4527
  [property: string]: any;
4548
4528
  };
4549
- type OfficialVerify$4 = {
4529
+ type OfficialVerify$3 = {
4550
4530
  desc: string;
4551
4531
  type: number;
4552
4532
  [property: string]: any;
4553
4533
  };
4554
- type Pendant$5 = {
4534
+ type Pendant$4 = {
4555
4535
  expire: number;
4556
4536
  image: string;
4557
4537
  image_enhance: string;
@@ -4561,18 +4541,18 @@ type Pendant$5 = {
4561
4541
  pid: number;
4562
4542
  [property: string]: any;
4563
4543
  };
4564
- type Vip$5 = {
4544
+ type Vip$4 = {
4565
4545
  avatar_subscript: number;
4566
4546
  avatar_subscript_url: string;
4567
4547
  due_date: number;
4568
- label: Label$5;
4548
+ label: Label$4;
4569
4549
  nickname_color: string;
4570
4550
  status: number;
4571
4551
  theme_type: number;
4572
4552
  type: number;
4573
4553
  [property: string]: any;
4574
4554
  };
4575
- type Label$5 = {
4555
+ type Label$4 = {
4576
4556
  bg_color: string;
4577
4557
  bg_style: number;
4578
4558
  border_color: string;
@@ -4917,12 +4897,12 @@ type PurpleLabel$6 = {
4917
4897
  };
4918
4898
  type PurpleModuleDynamic$5 = {
4919
4899
  additional: null;
4920
- desc: Desc$5;
4900
+ desc: Desc$4;
4921
4901
  major: null;
4922
4902
  topic: Topic$3;
4923
4903
  [property: string]: any;
4924
4904
  };
4925
- type Desc$5 = {
4905
+ type Desc$4 = {
4926
4906
  rich_text_nodes: RichTextNode$2[];
4927
4907
  text: string;
4928
4908
  [property: string]: any;
@@ -5959,12 +5939,12 @@ type PurpleLabel$4 = {
5959
5939
  };
5960
5940
  type PurpleModuleDynamic$3 = {
5961
5941
  additional: null;
5962
- desc: Desc$4;
5942
+ desc: Desc$3;
5963
5943
  major: null;
5964
5944
  topic: Topic$2;
5965
5945
  [property: string]: any;
5966
5946
  };
5967
- type Desc$4 = {
5947
+ type Desc$3 = {
5968
5948
  rich_text_nodes: DescRichTextNode$2[];
5969
5949
  text: string;
5970
5950
  [property: string]: any;
@@ -6496,7 +6476,7 @@ type PurpleLabel$3 = {
6496
6476
  };
6497
6477
  type PurpleModuleDynamic$2 = {
6498
6478
  additional: Additional$2;
6499
- desc: Desc$3;
6479
+ desc: Desc$2;
6500
6480
  major: null;
6501
6481
  topic: null;
6502
6482
  [property: string]: any;
@@ -6530,7 +6510,7 @@ type JumpStyle$1 = {
6530
6510
  text: string;
6531
6511
  [property: string]: any;
6532
6512
  };
6533
- type Desc$3 = {
6513
+ type Desc$2 = {
6534
6514
  rich_text_nodes: DescRichTextNode$1[];
6535
6515
  text: string;
6536
6516
  [property: string]: any;
@@ -7038,12 +7018,12 @@ type PurpleLabel$2 = {
7038
7018
  };
7039
7019
  type PurpleModuleDynamic$1 = {
7040
7020
  additional: null;
7041
- desc: Desc$2;
7021
+ desc: Desc$1;
7042
7022
  major: null;
7043
7023
  topic: Topic$1;
7044
7024
  [property: string]: any;
7045
7025
  };
7046
- type Desc$2 = {
7026
+ type Desc$1 = {
7047
7027
  rich_text_nodes: RichTextNode$1[];
7048
7028
  text: string;
7049
7029
  [property: string]: any;
@@ -7522,7 +7502,7 @@ type PurpleLabel$1 = {
7522
7502
  };
7523
7503
  type PurpleModuleDynamic = {
7524
7504
  additional: Additional$1;
7525
- desc: Desc$1;
7505
+ desc: Desc;
7526
7506
  major: null;
7527
7507
  topic: Topic;
7528
7508
  [property: string]: any;
@@ -7575,7 +7555,7 @@ type Desc2 = {
7575
7555
  visible: boolean;
7576
7556
  [property: string]: any;
7577
7557
  };
7578
- type Desc$1 = {
7558
+ type Desc = {
7579
7559
  rich_text_nodes: DescRichTextNode[];
7580
7560
  text: string;
7581
7561
  [property: string]: any;
@@ -7994,14 +7974,14 @@ type ModuleAuthor$1 = {
7994
7974
  label: string;
7995
7975
  mid: number;
7996
7976
  name: string;
7997
- official_verify: OfficialVerify$3;
7998
- pendant: Pendant$4;
7977
+ official_verify: OfficialVerify$2;
7978
+ pendant: Pendant$3;
7999
7979
  pub_action: string;
8000
7980
  pub_location_text: string;
8001
7981
  pub_time: string;
8002
7982
  pub_ts: number;
8003
7983
  type: string;
8004
- vip: Vip$4;
7984
+ vip: Vip$3;
8005
7985
  [property: string]: any;
8006
7986
  };
8007
7987
  type Avatar$2 = {
@@ -8129,12 +8109,12 @@ type ColorFormat$1 = {
8129
8109
  start_point: string;
8130
8110
  [property: string]: any;
8131
8111
  };
8132
- type OfficialVerify$3 = {
8112
+ type OfficialVerify$2 = {
8133
8113
  desc: string;
8134
8114
  type: number;
8135
8115
  [property: string]: any;
8136
8116
  };
8137
- type Pendant$4 = {
8117
+ type Pendant$3 = {
8138
8118
  expire: number;
8139
8119
  image: string;
8140
8120
  image_enhance: string;
@@ -8144,18 +8124,18 @@ type Pendant$4 = {
8144
8124
  pid: number;
8145
8125
  [property: string]: any;
8146
8126
  };
8147
- type Vip$4 = {
8127
+ type Vip$3 = {
8148
8128
  avatar_subscript: number;
8149
8129
  avatar_subscript_url: string;
8150
8130
  due_date: number;
8151
- label: Label$4;
8131
+ label: Label$3;
8152
8132
  nickname_color: string;
8153
8133
  status: number;
8154
8134
  theme_type: number;
8155
8135
  type: number;
8156
8136
  [property: string]: any;
8157
8137
  };
8158
- type Label$4 = {
8138
+ type Label$3 = {
8159
8139
  bg_color: string;
8160
8140
  bg_style: number;
8161
8141
  border_color: string;
@@ -8275,14 +8255,14 @@ type ModuleAuthor = {
8275
8255
  label: string;
8276
8256
  mid: number;
8277
8257
  name: string;
8278
- official_verify: OfficialVerify$2;
8279
- pendant: Pendant$3;
8258
+ official_verify: OfficialVerify$1;
8259
+ pendant: Pendant$2;
8280
8260
  pub_action: string;
8281
8261
  pub_location_text: string;
8282
8262
  pub_time: string;
8283
8263
  pub_ts: number;
8284
8264
  type: string;
8285
- vip: Vip$3;
8265
+ vip: Vip$2;
8286
8266
  [property: string]: any;
8287
8267
  };
8288
8268
  type Avatar$1 = {
@@ -8410,12 +8390,12 @@ type ColorFormat = {
8410
8390
  start_point: string;
8411
8391
  [property: string]: any;
8412
8392
  };
8413
- type OfficialVerify$2 = {
8393
+ type OfficialVerify$1 = {
8414
8394
  desc: string;
8415
8395
  type: number;
8416
8396
  [property: string]: any;
8417
8397
  };
8418
- type Pendant$3 = {
8398
+ type Pendant$2 = {
8419
8399
  expire: number;
8420
8400
  image: string;
8421
8401
  image_enhance: string;
@@ -8425,18 +8405,18 @@ type Pendant$3 = {
8425
8405
  pid: number;
8426
8406
  [property: string]: any;
8427
8407
  };
8428
- type Vip$3 = {
8408
+ type Vip$2 = {
8429
8409
  avatar_subscript: number;
8430
8410
  avatar_subscript_url: string;
8431
8411
  due_date: number;
8432
- label: Label$3;
8412
+ label: Label$2;
8433
8413
  nickname_color: string;
8434
8414
  status: number;
8435
8415
  theme_type: number;
8436
8416
  type: number;
8437
8417
  [property: string]: any;
8438
8418
  };
8439
- type Label$3 = {
8419
+ type Label$2 = {
8440
8420
  bg_color: string;
8441
8421
  bg_style: number;
8442
8422
  border_color: string;
@@ -8653,12 +8633,12 @@ type BiliDynamicInfo<T extends DynamicType> = {
8653
8633
  //#region src/types/ReturnDataType/Bilibili/LiveRoomDef/LiveRoomDef_V0.d.ts
8654
8634
  type BiliLiveRoomDef_V0 = {
8655
8635
  code: number;
8656
- data: Data$12;
8636
+ data: Data$11;
8657
8637
  message: string;
8658
8638
  msg: string;
8659
8639
  [property: string]: any;
8660
8640
  };
8661
- type Data$12 = {
8641
+ type Data$11 = {
8662
8642
  encrypted: boolean;
8663
8643
  hidden_till: number;
8664
8644
  is_hidden: boolean;
@@ -8684,12 +8664,12 @@ type BiliLiveRoomDef = BiliLiveRoomDef_V0;
8684
8664
  //#region src/types/ReturnDataType/Bilibili/LiveRoomDetail/LiveRoomDetail_V0.d.ts
8685
8665
  type BiliLiveRoomDetail_V0 = {
8686
8666
  code: number;
8687
- data: Data$11;
8667
+ data: Data$10;
8688
8668
  message: string;
8689
8669
  msg: string;
8690
8670
  [property: string]: any;
8691
8671
  };
8692
- type Data$11 = {
8672
+ type Data$10 = {
8693
8673
  allow_change_area_time: number;
8694
8674
  allow_upload_cover_time: number;
8695
8675
  area_id: number;
@@ -8803,12 +8783,12 @@ type BiliCheckQrcode = BiliCheckQrcode_V0;
8803
8783
  //#region src/types/ReturnDataType/Bilibili/Login/NewLoginQrcode/NewLoginQrcode.d.ts
8804
8784
  type BiliNewLoginQrcode_V0 = {
8805
8785
  code: number;
8806
- data: Data$10;
8786
+ data: Data$9;
8807
8787
  message: string;
8808
8788
  ttl: number;
8809
8789
  [property: string]: any;
8810
8790
  };
8811
- type Data$10 = {
8791
+ type Data$9 = {
8812
8792
  qrcode_key: string;
8813
8793
  url: string;
8814
8794
  [property: string]: any;
@@ -8820,12 +8800,12 @@ type BiliNewLoginQrcode = BiliNewLoginQrcode_V0;
8820
8800
  //#region src/types/ReturnDataType/Bilibili/OneWork/OneWork_V0.d.ts
8821
8801
  type BiliOneWork_V0 = {
8822
8802
  code: number;
8823
- data: Data$9;
8803
+ data: Data$8;
8824
8804
  message: string;
8825
8805
  ttl: number;
8826
8806
  [property: string]: any;
8827
8807
  };
8828
- type Data$9 = {
8808
+ type Data$8 = {
8829
8809
  aid: number;
8830
8810
  argue_info: ArgueInfo;
8831
8811
  bvid: string;
@@ -8999,12 +8979,12 @@ type DataData$9<T extends DynamicType = DynamicType> = {
8999
8979
  //#region src/types/ReturnDataType/Bilibili/UserFullView/UserFullView_V0.d.ts
9000
8980
  type BiliUserFullView_V0 = {
9001
8981
  code: number;
9002
- data: Data$8;
8982
+ data: Data$7;
9003
8983
  message: string;
9004
8984
  ttl: number;
9005
8985
  [property: string]: any;
9006
8986
  };
9007
- type Data$8 = {
8987
+ type Data$7 = {
9008
8988
  archive: Archive;
9009
8989
  article: Article;
9010
8990
  likes: number;
@@ -9053,12 +9033,12 @@ type BiliUserLiveStatus = BiliUserLiveStatus_V0;
9053
9033
  //#region src/types/ReturnDataType/Bilibili/UserProfile/UserProfile_V0.d.ts
9054
9034
  type BiliUserProfile_V0 = {
9055
9035
  code: number;
9056
- data: Data$7;
9036
+ data: Data$6;
9057
9037
  message: string;
9058
9038
  ttl: number;
9059
9039
  [property: string]: any;
9060
9040
  };
9061
- type Data$7 = {
9041
+ type Data$6 = {
9062
9042
  archive_count: number;
9063
9043
  article_count: number;
9064
9044
  card: Card;
@@ -9082,21 +9062,21 @@ type Card = {
9082
9062
  fans: number;
9083
9063
  friend: number;
9084
9064
  is_senior_member: number;
9085
- level_info: LevelInfo$1;
9065
+ level_info: LevelInfo;
9086
9066
  mid: string;
9087
9067
  name: string;
9088
9068
  name_render: null;
9089
9069
  nameplate: Nameplate$1;
9090
9070
  Official: Official$1;
9091
- official_verify: OfficialVerify$1;
9092
- pendant: Pendant$2;
9071
+ official_verify: OfficialVerify;
9072
+ pendant: Pendant$1;
9093
9073
  place: string;
9094
9074
  rank: string;
9095
9075
  regtime: number;
9096
9076
  sex: string;
9097
9077
  sign: string;
9098
9078
  spacesta: number;
9099
- vip: Vip$2;
9079
+ vip: Vip$1;
9100
9080
  [property: string]: any;
9101
9081
  };
9102
9082
  type Official$1 = {
@@ -9106,7 +9086,7 @@ type Official$1 = {
9106
9086
  type: number;
9107
9087
  [property: string]: any;
9108
9088
  };
9109
- type LevelInfo$1 = {
9089
+ type LevelInfo = {
9110
9090
  current_exp: number;
9111
9091
  current_level: number;
9112
9092
  current_min: number;
@@ -9122,12 +9102,12 @@ type Nameplate$1 = {
9122
9102
  nid: number;
9123
9103
  [property: string]: any;
9124
9104
  };
9125
- type OfficialVerify$1 = {
9105
+ type OfficialVerify = {
9126
9106
  desc: string;
9127
9107
  type: number;
9128
9108
  [property: string]: any;
9129
9109
  };
9130
- type Pendant$2 = {
9110
+ type Pendant$1 = {
9131
9111
  expire: number;
9132
9112
  image: string;
9133
9113
  image_enhance: string;
@@ -9137,12 +9117,12 @@ type Pendant$2 = {
9137
9117
  pid: number;
9138
9118
  [property: string]: any;
9139
9119
  };
9140
- type Vip$2 = {
9120
+ type Vip$1 = {
9141
9121
  avatar_icon: AvatarIcon$1;
9142
9122
  avatar_subscript: number;
9143
9123
  avatar_subscript_url: string;
9144
9124
  due_date: number;
9145
- label: Label$2;
9125
+ label: Label$1;
9146
9126
  nickname_color: string;
9147
9127
  role: number;
9148
9128
  status: number;
@@ -9166,7 +9146,7 @@ type IconResource = {
9166
9146
  url: string;
9167
9147
  [property: string]: any;
9168
9148
  };
9169
- type Label$2 = {
9149
+ type Label$1 = {
9170
9150
  bg_color: string;
9171
9151
  bg_style: number;
9172
9152
  border_color: string;
@@ -9226,7 +9206,7 @@ type DataData$7 = {
9226
9206
  name_render: null;
9227
9207
  nameplate: Nameplate;
9228
9208
  official: Official;
9229
- pendant: Pendant$1;
9209
+ pendant: Pendant;
9230
9210
  profession: Profession;
9231
9211
  rank: number;
9232
9212
  school: null;
@@ -9242,7 +9222,7 @@ type DataData$7 = {
9242
9222
  top_photo: string;
9243
9223
  top_photo_v2: TopPhotoV2;
9244
9224
  user_honour_info: UserHonourInfo;
9245
- vip: Vip$1;
9225
+ vip: Vip;
9246
9226
  [property: string]: any;
9247
9227
  };
9248
9228
  type Attestation = {
@@ -9330,7 +9310,7 @@ type Official = {
9330
9310
  type: number;
9331
9311
  [property: string]: any;
9332
9312
  };
9333
- type Pendant$1 = {
9313
+ type Pendant = {
9334
9314
  expire: number;
9335
9315
  image: string;
9336
9316
  image_enhance: string;
@@ -9365,12 +9345,12 @@ type UserHonourInfo = {
9365
9345
  tags: string[];
9366
9346
  [property: string]: any;
9367
9347
  };
9368
- type Vip$1 = {
9348
+ type Vip = {
9369
9349
  avatar_icon: AvatarIcon;
9370
9350
  avatar_subscript: number;
9371
9351
  avatar_subscript_url: string;
9372
9352
  due_date: number;
9373
- label: Label$1;
9353
+ label: Label;
9374
9354
  nickname_color: string;
9375
9355
  ott_info: OttInfo;
9376
9356
  role: number;
@@ -9391,7 +9371,7 @@ type AvatarIcon = {
9391
9371
  icon_type: number;
9392
9372
  [property: string]: any;
9393
9373
  };
9394
- type Label$1 = {
9374
+ type Label = {
9395
9375
  bg_color: string;
9396
9376
  bg_style: number;
9397
9377
  border_color: string;
@@ -9433,12 +9413,12 @@ type UserSpaceInfo = UserSpaceInfo_V0;
9433
9413
  /** 视频下载地址(已登录) */
9434
9414
  type BiliVideoPlayurlIsLogin_V0 = {
9435
9415
  code: number;
9436
- data: Data$6;
9416
+ data: Data$5;
9437
9417
  message: string;
9438
9418
  ttl: number;
9439
9419
  [property: string]: any;
9440
9420
  };
9441
- type Data$6 = {
9421
+ type Data$5 = {
9442
9422
  accept_description: string[];
9443
9423
  accept_format: string;
9444
9424
  accept_quality: number[];
@@ -9555,12 +9535,12 @@ type BiliVideoPlayurlIsLogin = BiliVideoPlayurlIsLogin_V0;
9555
9535
  /** 视频下载地址(未登录) */
9556
9536
  type BiliBiliVideoPlayurlNoLogin_V0 = {
9557
9537
  code: number;
9558
- data: Data$5;
9538
+ data: Data$4;
9559
9539
  message: string;
9560
9540
  ttl: number;
9561
9541
  [property: string]: any;
9562
9542
  };
9563
- type Data$5 = {
9543
+ type Data$4 = {
9564
9544
  accept_description: string[];
9565
9545
  accept_format: string;
9566
9546
  accept_quality: number[];
@@ -11314,180 +11294,23 @@ type IndecentPendant = {
11314
11294
  image: string;
11315
11295
  image_enhance: string;
11316
11296
  image_enhance_frame: string;
11317
- n_pid: number;
11318
- name: string;
11319
- pid: number;
11320
- [property: string]: any;
11321
- };
11322
- type IndecentUserSailing = {
11323
- cardbg: null;
11324
- cardbg_with_focus: null;
11325
- pendant: null;
11326
- [property: string]: any;
11327
- };
11328
- type IndecentVip = {
11329
- accessStatus: number;
11330
- avatar_subscript: number;
11331
- dueRemark: string;
11332
- label: IndecentLabel;
11333
- nickname_color: string;
11334
- themeType: number;
11335
- vipDueDate: number;
11336
- vipStatus: number;
11337
- vipStatusWarn: string;
11338
- vipType: number;
11339
- [property: string]: any;
11340
- };
11341
- type IndecentLabel = {
11342
- bg_color: string;
11343
- bg_style: number;
11344
- border_color: string;
11345
- img_label_uri_hans: string;
11346
- img_label_uri_hans_static: string;
11347
- img_label_uri_hant: string;
11348
- img_label_uri_hant_static: string;
11349
- label_theme: string;
11350
- path: string;
11351
- text: string;
11352
- text_color: string;
11353
- use_img_label: boolean;
11354
- [property: string]: any;
11355
- };
11356
- type StickyReplyControl = {
11357
- location: string;
11358
- max_line: number;
11359
- time_desc: string;
11360
- translation_switch: number;
11361
- [property: string]: any;
11362
- };
11363
- type StickyUpAction = {
11364
- like: boolean;
11365
- reply: boolean;
11366
- [property: string]: any;
11367
- };
11368
- type TopReplyReplyControl = {
11369
- cm_recommend_component: string;
11370
- is_up_top: boolean;
11371
- location: string;
11372
- max_line: number;
11373
- sub_reply_entry_text: string;
11374
- sub_reply_title_text: string;
11375
- time_desc: string;
11376
- translation_switch: number;
11377
- up_reply: boolean;
11378
- [property: string]: any;
11379
- };
11380
- type TopReplyUpAction = {
11381
- like: boolean;
11382
- reply: boolean;
11383
- [property: string]: any;
11384
- };
11385
- type DataUpper = {
11386
- mid: number;
11387
- [property: string]: any;
11388
- };
11389
- //#endregion
11390
- //#region src/types/ReturnDataType/Bilibili/WorkComments/index.d.ts
11391
- type BiliWorkComments = BiliWorkComments_V0;
11392
- //#endregion
11393
- //#region src/types/ReturnDataType/Bilibili/DynamicCard/DynamicCard_V0.d.ts
11394
- type BiliDynamicCard_V0 = {
11395
- code: number;
11396
- data: Data$4;
11397
- message: string;
11398
- ttl: number;
11399
- [property: string]: any;
11400
- };
11401
- type Data$4 = {
11402
- card: DataCard;
11403
- [property: string]: any;
11404
- };
11405
- type DataCard = {
11406
- card: string;
11407
- desc: Desc;
11408
- display: Display$1;
11409
- extend_json: string;
11410
- [property: string]: any;
11411
- };
11412
- type Desc = {
11413
- acl: number;
11414
- bvid: string;
11415
- comment: number;
11416
- dynamic_id: number;
11417
- dynamic_id_str: string;
11418
- inner_id: number;
11419
- is_liked: number;
11420
- like: number;
11421
- orig_dy_id: number;
11422
- orig_dy_id_str: string;
11423
- orig_type: number;
11424
- origin: null;
11425
- pre_dy_id: number;
11426
- pre_dy_id_str: string;
11427
- previous: null;
11428
- r_type: number;
11429
- repost: number;
11430
- rid: number;
11431
- rid_str: string;
11432
- spec_type: number;
11433
- status: number;
11434
- stype: number;
11435
- timestamp: number;
11436
- type: number;
11437
- uid: number;
11438
- uid_type: number;
11439
- user_profile: UserProfile;
11440
- view: number;
11441
- [property: string]: any;
11442
- };
11443
- type UserProfile = {
11444
- card: UserProfileCard;
11445
- info: Info$1;
11446
- level_info: LevelInfo;
11447
- pendant: Pendant;
11448
- rank: string;
11449
- sign: string;
11450
- vip: Vip;
11451
- [property: string]: any;
11452
- };
11453
- type UserProfileCard = {
11454
- official_verify: OfficialVerify;
11455
- [property: string]: any;
11456
- };
11457
- type OfficialVerify = {
11458
- type: number;
11459
- [property: string]: any;
11460
- };
11461
- type Info$1 = {
11462
- face: string;
11463
- uid: number;
11464
- uname: string;
11465
- [property: string]: any;
11466
- };
11467
- type LevelInfo = {
11468
- current_exp: number;
11469
- current_level: number;
11470
- current_min: number;
11471
- next_exp: string;
11472
- [property: string]: any;
11473
- };
11474
- type Pendant = {
11475
- expire: number;
11476
- image: string;
11477
- image_enhance: string;
11478
- image_enhance_frame: string;
11297
+ n_pid: number;
11479
11298
  name: string;
11480
11299
  pid: number;
11481
11300
  [property: string]: any;
11482
11301
  };
11483
- type Vip = {
11302
+ type IndecentUserSailing = {
11303
+ cardbg: null;
11304
+ cardbg_with_focus: null;
11305
+ pendant: null;
11306
+ [property: string]: any;
11307
+ };
11308
+ type IndecentVip = {
11484
11309
  accessStatus: number;
11485
11310
  avatar_subscript: number;
11486
- avatar_subscript_url: string;
11487
11311
  dueRemark: string;
11488
- label: Label;
11312
+ label: IndecentLabel;
11489
11313
  nickname_color: string;
11490
- role: number;
11491
11314
  themeType: number;
11492
11315
  vipDueDate: number;
11493
11316
  vipStatus: number;
@@ -11495,34 +11318,57 @@ type Vip = {
11495
11318
  vipType: number;
11496
11319
  [property: string]: any;
11497
11320
  };
11498
- type Label = {
11321
+ type IndecentLabel = {
11499
11322
  bg_color: string;
11500
11323
  bg_style: number;
11501
11324
  border_color: string;
11325
+ img_label_uri_hans: string;
11326
+ img_label_uri_hans_static: string;
11327
+ img_label_uri_hant: string;
11328
+ img_label_uri_hant_static: string;
11502
11329
  label_theme: string;
11503
11330
  path: string;
11504
11331
  text: string;
11505
11332
  text_color: string;
11333
+ use_img_label: boolean;
11506
11334
  [property: string]: any;
11507
11335
  };
11508
- type Display$1 = {
11509
- emoji_info: null;
11510
- highlight: null;
11511
- live_info: null;
11512
- origin: null;
11513
- relation: Relation;
11514
- usr_action_txt: string;
11336
+ type StickyReplyControl = {
11337
+ location: string;
11338
+ max_line: number;
11339
+ time_desc: string;
11340
+ translation_switch: number;
11515
11341
  [property: string]: any;
11516
11342
  };
11517
- type Relation = {
11518
- is_follow: number;
11519
- is_followed: number;
11520
- status: number;
11343
+ type StickyUpAction = {
11344
+ like: boolean;
11345
+ reply: boolean;
11346
+ [property: string]: any;
11347
+ };
11348
+ type TopReplyReplyControl = {
11349
+ cm_recommend_component: string;
11350
+ is_up_top: boolean;
11351
+ location: string;
11352
+ max_line: number;
11353
+ sub_reply_entry_text: string;
11354
+ sub_reply_title_text: string;
11355
+ time_desc: string;
11356
+ translation_switch: number;
11357
+ up_reply: boolean;
11358
+ [property: string]: any;
11359
+ };
11360
+ type TopReplyUpAction = {
11361
+ like: boolean;
11362
+ reply: boolean;
11363
+ [property: string]: any;
11364
+ };
11365
+ type DataUpper = {
11366
+ mid: number;
11521
11367
  [property: string]: any;
11522
11368
  };
11523
11369
  //#endregion
11524
- //#region src/types/ReturnDataType/Bilibili/DynamicCard/index.d.ts
11525
- type BiliDynamicCard = BiliDynamicCard_V0;
11370
+ //#region src/types/ReturnDataType/Bilibili/WorkComments/index.d.ts
11371
+ type BiliWorkComments = BiliWorkComments_V0;
11526
11372
  //#endregion
11527
11373
  //#region src/types/ReturnDataType/Bilibili/index.d.ts
11528
11374
  /**
@@ -11543,8 +11389,6 @@ interface BilibiliReturnTypeMap {
11543
11389
  bangumiInfo: BiliBangumiVideoInfo;
11544
11390
  bangumiStream: BiliBangumiVideoPlayurlIsLogin | BiliBangumiVideoPlayurlNoLogin;
11545
11391
  dynamicDetail: BiliDynamicInfoUnion;
11546
- /** @deprecated 接口已停用,现返回错误信息 */
11547
- dynamicCard: ErrorResult;
11548
11392
  liveRoomInfo: BiliLiveRoomDetail;
11549
11393
  liveRoomInit: BiliLiveRoomDef;
11550
11394
  loginStatus: any;
@@ -26071,7 +25915,6 @@ declare const BilibiliInternalMethods: {
26071
25915
  readonly USER_SPACE_INFO: "用户空间详细信息";
26072
25916
  readonly USER_TOTAL_VIEWS: "获取UP主总播放量";
26073
25917
  readonly DYNAMIC_DETAIL: "动态详情数据";
26074
- readonly DYNAMIC_CARD: "动态卡片数据";
26075
25918
  readonly BANGUMI_INFO: "番剧基本信息数据";
26076
25919
  readonly BANGUMI_STREAM: "番剧下载信息数据";
26077
25920
  readonly LIVE_ROOM_INFO: "直播间信息";
@@ -26102,7 +25945,6 @@ declare const BilibiliFetcherMethods: {
26102
25945
  readonly USER_SPACE_INFO: "fetchUserSpaceInfo";
26103
25946
  readonly USER_TOTAL_VIEWS: "fetchUploaderTotalViews";
26104
25947
  readonly DYNAMIC_DETAIL: "fetchDynamicDetail";
26105
- readonly DYNAMIC_CARD: "fetchDynamicCard";
26106
25948
  readonly BANGUMI_INFO: "fetchBangumiInfo";
26107
25949
  readonly BANGUMI_STREAM: "fetchBangumiStreamUrl";
26108
25950
  readonly LIVE_ROOM_INFO: "fetchLiveRoomInfo";
@@ -26238,7 +26080,6 @@ declare const MethodMaps: {
26238
26080
  readonly USER_SPACE_INFO: "用户空间详细信息";
26239
26081
  readonly USER_TOTAL_VIEWS: "获取UP主总播放量";
26240
26082
  readonly DYNAMIC_DETAIL: "动态详情数据";
26241
- readonly DYNAMIC_CARD: "动态卡片数据";
26242
26083
  readonly BANGUMI_INFO: "番剧基本信息数据";
26243
26084
  readonly BANGUMI_STREAM: "番剧下载信息数据";
26244
26085
  readonly LIVE_ROOM_INFO: "直播间信息";
@@ -26268,7 +26109,6 @@ declare const MethodMaps: {
26268
26109
  readonly USER_SPACE_INFO: "fetchUserSpaceInfo";
26269
26110
  readonly USER_TOTAL_VIEWS: "fetchUploaderTotalViews";
26270
26111
  readonly DYNAMIC_DETAIL: "fetchDynamicDetail";
26271
- readonly DYNAMIC_CARD: "fetchDynamicCard";
26272
26112
  readonly BANGUMI_INFO: "fetchBangumiInfo";
26273
26113
  readonly BANGUMI_STREAM: "fetchBangumiStreamUrl";
26274
26114
  readonly LIVE_ROOM_INFO: "fetchLiveRoomInfo";
@@ -26395,19 +26235,19 @@ type TypeControl = {
26395
26235
  type DouyinDataOptionsMap = { [K in DouyinMethodType]: {
26396
26236
  opt: DouyinMethodOptMap[K];
26397
26237
  data: DouyinReturnTypeMap[K];
26398
- } };
26238
+ }; };
26399
26239
  type BilibiliDataOptionsMap = { [K in BilibiliMethodType]: {
26400
26240
  opt: BilibiliMethodOptMap[K];
26401
26241
  data: BilibiliReturnTypeMap[K];
26402
- } };
26242
+ }; };
26403
26243
  type KuaishouDataOptionsMap = { [K in KuaishouMethodType]: {
26404
26244
  opt: KuaishouMethodOptMap[K];
26405
26245
  data: KuaishouReturnTypeMap[K];
26406
- } };
26246
+ }; };
26407
26247
  type XiaohongshuDataOptionsMap = { [K in XiaohongshuMethodType]: {
26408
26248
  opt: XiaohongshuMethodOptMap[K];
26409
26249
  data: XiaohongshuReturnTypeMap[K];
26410
- } };
26250
+ }; };
26411
26251
  type XiaohongshuDataOptions<T extends keyof XiaohongshuDataOptionsMap> = OmitMethodType<XiaohongshuDataOptionsMap[T]['opt'] & TypeControl>;
26412
26252
  type DouyinDataOptions<T extends DouyinMethodType> = OmitMethodType<zod.infer<(typeof DouyinValidationSchemas)[T]> & TypeControl>;
26413
26253
  type BilibiliDataOptions<T extends keyof BilibiliDataOptionsMap> = OmitMethodType<BilibiliDataOptionsMap[T]['opt'] & TypeControl>;
@@ -26417,15 +26257,19 @@ type KuaishouDataOptions<T extends keyof KuaishouDataOptionsMap> = OmitMethodTyp
26417
26257
  * 该类型是方法 `getXXXData` 封装后请求遇到错误时的返回类型
26418
26258
  */
26419
26259
  type APIErrorType<T extends 'douyin' | 'bilibili' | 'kuaishou' | 'xiaohongshu' | 'default' = 'default'> = {
26420
- /** 错误码 */code: T extends 'douyin' ? douoyinAPIErrorCode : T extends 'bilibili' ? bilibiliAPIErrorCode : T extends 'kuaishou' ? kuaishouAPIErrorCode : T extends 'xiaohongshu' ? xiaohongshuAPIErrorCode : amagiAPIErrorCode; /** 错误时的响应数据 */
26421
- data: any; /** amagi 错误详情 */
26422
- amagiError: ErrorDetail; /** 错误信息 */
26260
+ /** 错误码 */
26261
+ code: T extends 'douyin' ? douoyinAPIErrorCode : T extends 'bilibili' ? bilibiliAPIErrorCode : T extends 'kuaishou' ? kuaishouAPIErrorCode : T extends 'xiaohongshu' ? xiaohongshuAPIErrorCode : amagiAPIErrorCode;
26262
+ /** 错误时的响应数据 */
26263
+ data: any;
26264
+ /** amagi 错误详情 */
26265
+ amagiError: ErrorDetail;
26266
+ /** 错误信息 */
26423
26267
  amagiMessage: string;
26424
26268
  };
26425
26269
  //#endregion
26426
26270
  //#region src/platform/bilibili/API.d.ts
26427
26271
  /** 去除 methodType 字段后的参数类型 */
26428
- type BilibiliMethodOptionsWithoutMethodType = { [K in keyof BilibiliMethodOptionsMap]: OmitMethodType<BilibiliMethodOptionsMap[K]> };
26272
+ type BilibiliMethodOptionsWithoutMethodType = { [K in keyof BilibiliMethodOptionsMap]: OmitMethodType<BilibiliMethodOptionsMap[K]>; };
26429
26273
  /**
26430
26274
  * B站 API URL 构建类
26431
26275
  *
@@ -26457,13 +26301,6 @@ declare class BilibiliAPI {
26457
26301
  getUserDynamicList(data: BilibiliMethodOptionsWithoutMethodType['UserParams']): string;
26458
26302
  /** 获取动态详情 */
26459
26303
  getDynamicDetail(data: BilibiliMethodOptionsWithoutMethodType['DynamicParams']): string;
26460
- /**
26461
- * 获取动态卡片信息
26462
- *
26463
- * @deprecated B站官方已于 `2025-08-09` 删除原 `dynamic_svr` 接口,该接口已停用。
26464
- * 调用将返回错误信息,请使用 {@link getDynamicDetail} 替代。
26465
- */
26466
- getDynamicCard(data: BilibiliMethodOptionsWithoutMethodType['DynamicParams']): string;
26467
26304
  /** 获取用户名片信息 */
26468
26305
  getUserCard(data: BilibiliMethodOptionsWithoutMethodType['UserParams']): string;
26469
26306
  /**
@@ -26521,6 +26358,89 @@ declare class BilibiliAPI {
26521
26358
  /** B站 API URL 构建器实例 */
26522
26359
  declare const bilibiliApiUrls: BilibiliAPI;
26523
26360
  //#endregion
26361
+ //#region src/validation/index.d.ts
26362
+ /**
26363
+ * 基础响应类型
26364
+ */
26365
+ type BaseResponse = {
26366
+ /** 响应消息 */
26367
+ message: string;
26368
+ /** 响应状态码 */
26369
+ code: number;
26370
+ };
26371
+ /**
26372
+ * 成功响应类型
26373
+ * @template T - 响应数据的类型,默认为any
26374
+ */
26375
+ type SuccessResult<T = any> = BaseResponse & {
26376
+ /** 响应状态 */
26377
+ success: true;
26378
+ /** 响应数据,类型由泛型 T 决定 */
26379
+ data: T;
26380
+ /** 成功响应时错误信息为空 */
26381
+ error: never;
26382
+ };
26383
+ /**
26384
+ * 错误响应类型
26385
+ */
26386
+ type ErrorResult = BaseResponse & {
26387
+ /** 响应状态 */
26388
+ success: false;
26389
+ /** API 错误类型 */
26390
+ error: APIErrorType;
26391
+ /** 错误响应时数据为空 */
26392
+ data: never;
26393
+ };
26394
+ /**
26395
+ * 通用API响应类型
26396
+ * @template T - 成功响应数据的类型,默认为any
26397
+ */
26398
+ type Result<T> = SuccessResult<T> | ErrorResult;
26399
+ /**
26400
+ * 验证抖音参数
26401
+ * @param methodType - 抖音方法类型
26402
+ * @param params - 待验证的参数
26403
+ * @returns 验证后的参数,符合原始API期望的类型
26404
+ */
26405
+ declare const validateDouyinParams: <T extends DouyinMethodType>(methodType: T, params: unknown) => zod.infer<(typeof DouyinValidationSchemas)[T]>;
26406
+ /**
26407
+ * 验证哔哩哔哩参数
26408
+ * @param methodType - 哔哩哔哩方法类型
26409
+ * @param params - 待验证的参数
26410
+ * @returns 验证后的参数,符合原始API期望的类型
26411
+ */
26412
+ declare const validateBilibiliParams: <T extends BilibiliMethodType>(methodType: T, params: unknown) => zod.infer<(typeof BilibiliValidationSchemas)[T]>;
26413
+ /**
26414
+ * 验证快手参数
26415
+ * @param methodType - 快手方法类型
26416
+ * @param params - 待验证的参数
26417
+ * @returns 验证后的参数,符合原始API期望的类型
26418
+ */
26419
+ declare const validateKuaishouParams: <T extends KuaishouMethodType>(methodType: T, params: unknown) => zod.infer<(typeof KuaishouValidationSchemas)[T]>;
26420
+ /**
26421
+ * 验证小红书参数
26422
+ * @param methodType - 小红书方法类型
26423
+ * @param params - 待验证的参数
26424
+ * @returns 验证后的参数
26425
+ */
26426
+ declare const validateXiaohongshuParams: <T extends XiaohongshuMethodType>(methodType: T, params: unknown) => zod.infer<(typeof XiaohongshuValidationSchemas)[T]>;
26427
+ /**
26428
+ * 创建成功响应格式
26429
+ * @param data - 响应数据
26430
+ * @param message - 响应消息(可选)
26431
+ * @param code - 响应状态码(可选,默认200)
26432
+ * @returns 格式化的成功API响应对象
26433
+ */
26434
+ declare const createSuccessResponse: <T>(data: T, message: string, code?: number) => SuccessResult<T>;
26435
+ /**
26436
+ * 创建失败响应格式
26437
+ * @param error - 错误信息
26438
+ * @param message - 详细错误消息(可选)
26439
+ * @param code - 错误状态码(可选,默认500)
26440
+ * @returns 格式化的错误响应对象
26441
+ */
26442
+ declare const createErrorResponse: (error: APIErrorType, message: string, code?: number, data?: unknown) => ErrorResult;
26443
+ //#endregion
26524
26444
  //#region src/model/fetchers/bilibili/types.d.ts
26525
26445
  /** B站视频信息请求参数 */
26526
26446
  interface BilibiliVideoInfoOptions extends BaseRequestOptions {
@@ -26688,13 +26608,6 @@ interface IBilibiliFetcher {
26688
26608
  * 获取B站动态详情
26689
26609
  */
26690
26610
  fetchDynamicDetail: MethodOverload<BilibiliDynamicOptions, BilibiliReturnTypeMap['dynamicDetail']>;
26691
- /**
26692
- * 获取B站动态卡片信息
26693
- * @deprecated v6.1.3 已废弃,B站官方已于 `2025-08-09` 删除原 `dynamic_svr` 接口。
26694
- * 调用将返回错误信息
26695
- * 计划于 v7.0.0 移除。
26696
- */
26697
- fetchDynamicCard: MethodOverload<BilibiliDynamicOptions, BilibiliReturnTypeMap['dynamicCard']>;
26698
26611
  /**
26699
26612
  * 获取B站番剧基本信息
26700
26613
  */
@@ -27284,13 +27197,6 @@ interface IBoundBilibiliFetcher {
27284
27197
  fetchUploaderTotalViews: BoundMethodOverload<BilibiliUserOptions, BilibiliReturnTypeMap['uploaderTotalViews']>;
27285
27198
  /** 获取B站动态详情 */
27286
27199
  fetchDynamicDetail: BoundMethodOverload<BilibiliDynamicOptions, BilibiliReturnTypeMap['dynamicDetail']>;
27287
- /**
27288
- * 获取B站动态卡片信息
27289
- * @deprecated v6.1.3 已废弃,B站官方已于 `2025-08-09` 删除原 `dynamic_svr` 接口。
27290
- * 调用将返回错误信息
27291
- * 计划于 v7.0.0 移除。
27292
- */
27293
- fetchDynamicCard: BoundMethodOverload<BilibiliDynamicOptions, BilibiliReturnTypeMap['dynamicCard']>;
27294
27200
  /** 获取B站番剧基本信息 */
27295
27201
  fetchBangumiInfo: BoundMethodOverload<BilibiliBangumiInfoOptions, BilibiliReturnTypeMap['bangumiInfo']>;
27296
27202
  /** 获取B站番剧视频流地址 */
@@ -27774,16 +27680,22 @@ type RequestConfig = Omit<AxiosRequestConfig, 'url' | 'method' | 'data'>;
27774
27680
  * Cookie配置选项接口
27775
27681
  */
27776
27682
  type CookieConfig = {
27777
- /** 抖音Cookie */douyin?: string; /** B站Cookie */
27778
- bilibili?: string; /** 快手Cookie */
27779
- kuaishou?: string; /** 小红书Cookie */
27683
+ /** 抖音Cookie */
27684
+ douyin?: string;
27685
+ /** B站Cookie */
27686
+ bilibili?: string;
27687
+ /** 快手Cookie */
27688
+ kuaishou?: string;
27689
+ /** 小红书Cookie */
27780
27690
  xiaohongshu?: string;
27781
27691
  };
27782
27692
  /**
27783
27693
  * 客户端配置选项接口
27784
27694
  */
27785
27695
  type Options = {
27786
- /** Cookie配置 */cookies?: CookieConfig; /** 请求配置 */
27696
+ /** Cookie配置 */
27697
+ cookies?: CookieConfig;
27698
+ /** 请求配置 */
27787
27699
  request?: Omit<AxiosRequestConfig, 'url' | 'method' | 'data'>;
27788
27700
  };
27789
27701
  /**
@@ -27792,23 +27704,25 @@ type Options = {
27792
27704
  * @returns 包含数据获取方法、服务器启动方法、绑定Cookie的平台工具集和API对象的对象
27793
27705
  */
27794
27706
  declare const createAmagiClient: (options?: Options) => {
27795
- /** 启动本地HTTP服务 */startServer: (port?: number) => express.Application; /** 事件系统 */
27707
+ /** 启动本地HTTP服务 */
27708
+ startServer: (port?: number) => express.Application;
27709
+ /** 事件系统 */
27796
27710
  events: {
27797
27711
  emit<K extends AmagiEventType>(event: K, data: AmagiEventMap[K]): boolean;
27798
- on<K extends AmagiEventType>(event: K, listener: (data: AmagiEventMap[K]) => void): /*elided*/any;
27799
- once<K extends AmagiEventType>(event: K, listener: (data: AmagiEventMap[K]) => void): /*elided*/any;
27800
- off<K extends AmagiEventType>(event: K, listener: (data: AmagiEventMap[K]) => void): /*elided*/any;
27712
+ on<K extends AmagiEventType>(event: K, listener: (data: AmagiEventMap[K]) => void): /*elided*/ any;
27713
+ once<K extends AmagiEventType>(event: K, listener: (data: AmagiEventMap[K]) => void): /*elided*/ any;
27714
+ off<K extends AmagiEventType>(event: K, listener: (data: AmagiEventMap[K]) => void): /*elided*/ any;
27801
27715
  [EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: string | symbol, ...args: any[]): void;
27802
- addListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27803
- removeListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27804
- removeAllListeners(eventName?: string | symbol | undefined): /*elided*/any;
27805
- setMaxListeners(n: number): /*elided*/any;
27716
+ addListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27717
+ removeListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27718
+ removeAllListeners(eventName?: string | symbol | undefined): /*elided*/ any;
27719
+ setMaxListeners(n: number): /*elided*/ any;
27806
27720
  getMaxListeners(): number;
27807
27721
  listeners<K>(eventName: string | symbol): Function[];
27808
27722
  rawListeners<K>(eventName: string | symbol): Function[];
27809
27723
  listenerCount<K>(eventName: string | symbol, listener?: Function | undefined): number;
27810
- prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27811
- prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27724
+ prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27725
+ prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27812
27726
  eventNames(): (string | symbol)[];
27813
27727
  };
27814
27728
  /**
@@ -27818,20 +27732,20 @@ declare const createAmagiClient: (options?: Options) => {
27818
27732
  */
27819
27733
  on: <K extends AmagiEventType>(event: K, listener: (data: AmagiEventMap[K]) => void) => {
27820
27734
  emit<K_1 extends AmagiEventType>(event: K_1, data: AmagiEventMap[K_1]): boolean;
27821
- on<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/any;
27822
- once<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/any;
27823
- off<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/any;
27735
+ on<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/ any;
27736
+ once<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/ any;
27737
+ off<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/ any;
27824
27738
  [EventEmitter.captureRejectionSymbol]?<K_1>(error: Error, event: string | symbol, ...args: any[]): void;
27825
- addListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27826
- removeListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27827
- removeAllListeners(eventName?: string | symbol | undefined): /*elided*/any;
27828
- setMaxListeners(n: number): /*elided*/any;
27739
+ addListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27740
+ removeListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27741
+ removeAllListeners(eventName?: string | symbol | undefined): /*elided*/ any;
27742
+ setMaxListeners(n: number): /*elided*/ any;
27829
27743
  getMaxListeners(): number;
27830
27744
  listeners<K_1>(eventName: string | symbol): Function[];
27831
27745
  rawListeners<K_1>(eventName: string | symbol): Function[];
27832
27746
  listenerCount<K_1>(eventName: string | symbol, listener?: Function | undefined): number;
27833
- prependListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27834
- prependOnceListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27747
+ prependListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27748
+ prependOnceListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27835
27749
  eventNames(): (string | symbol)[];
27836
27750
  };
27837
27751
  /**
@@ -27841,81 +27755,30 @@ declare const createAmagiClient: (options?: Options) => {
27841
27755
  */
27842
27756
  once: <K extends AmagiEventType>(event: K, listener: (data: AmagiEventMap[K]) => void) => {
27843
27757
  emit<K_1 extends AmagiEventType>(event: K_1, data: AmagiEventMap[K_1]): boolean;
27844
- on<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/any;
27845
- once<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/any;
27846
- off<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/any;
27758
+ on<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/ any;
27759
+ once<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/ any;
27760
+ off<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/ any;
27847
27761
  [EventEmitter.captureRejectionSymbol]?<K_1>(error: Error, event: string | symbol, ...args: any[]): void;
27848
- addListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27849
- removeListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27850
- removeAllListeners(eventName?: string | symbol | undefined): /*elided*/any;
27851
- setMaxListeners(n: number): /*elided*/any;
27762
+ addListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27763
+ removeListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27764
+ removeAllListeners(eventName?: string | symbol | undefined): /*elided*/ any;
27765
+ setMaxListeners(n: number): /*elided*/ any;
27852
27766
  getMaxListeners(): number;
27853
27767
  listeners<K_1>(eventName: string | symbol): Function[];
27854
27768
  rawListeners<K_1>(eventName: string | symbol): Function[];
27855
27769
  listenerCount<K_1>(eventName: string | symbol, listener?: Function | undefined): number;
27856
- prependListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27857
- prependOnceListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27770
+ prependListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27771
+ prependOnceListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27858
27772
  eventNames(): (string | symbol)[];
27859
- }; /** @deprecated v6 已废弃,请使用 douyin.fetcher 替代 */
27860
- getDouyinData: (..._args: any[]) => never; /** @deprecated v6 已废弃,请使用 bilibili.fetcher 替代 */
27861
- getBilibiliData: (..._args: any[]) => never; /** @deprecated v6 已废弃,请使用 kuaishou.fetcher 替代 */
27862
- getKuaishouData: (..._args: any[]) => never; /** @deprecated v6 已废弃,请使用 xiaohongshu.fetcher 替代 */
27863
- getXiaohongshuData: (..._args: any[]) => never;
27773
+ };
27864
27774
  douyin: {
27865
- /** @deprecated 请使用 fetcher 替代 */api: {
27866
- getSearchData: (..._args: any[]) => never;
27867
- getTextWorkInfo: (..._args: any[]) => never;
27868
- getWorkInfo: (..._args: any[]) => never;
27869
- getVideoWorkInfo: (..._args: any[]) => never;
27870
- getImageAlbumWorkInfo: (..._args: any[]) => never;
27871
- getSlidesWorkInfo: (..._args: any[]) => never;
27872
- getComments: (..._args: any[]) => never;
27873
- getCommentReplies: (..._args: any[]) => never;
27874
- getUserProfile: (..._args: any[]) => never;
27875
- getEmojiList: (..._args: any[]) => never;
27876
- getEmojiProList: (..._args: any[]) => never;
27877
- getUserVideos: (..._args: any[]) => never;
27878
- getMusicInfo: (..._args: any[]) => never;
27879
- getSuggestWords: (..._args: any[]) => never;
27880
- search: (..._args: any[]) => never;
27881
- getLiveRoomInfo: (..._args: any[]) => never;
27882
- getDanmaku: (..._args: any[]) => never;
27883
- invoke: (..._args: any[]) => never;
27884
- }; /** fetcher */
27775
+ /** fetcher */
27885
27776
  fetcher: IBoundDouyinFetcher;
27886
27777
  sign: typeof douyinSign;
27887
27778
  douyinApiUrls: typeof douyinApiUrls;
27888
27779
  };
27889
27780
  bilibili: {
27890
- /** @deprecated 请使用 fetcher 替代 */api: {
27891
- getVideoInfo: (..._args: any[]) => never;
27892
- getVideoStream: (..._args: any[]) => never;
27893
- getComments: (..._args: any[]) => never;
27894
- getCommentReply: (..._args: any[]) => never;
27895
- getUserProfile: (..._args: any[]) => never;
27896
- getUserDynamic: (..._args: any[]) => never;
27897
- getEmojiList: (..._args: any[]) => never;
27898
- getBangumiInfo: (..._args: any[]) => never;
27899
- getBangumiStream: (..._args: any[]) => never;
27900
- getDynamicInfo: (..._args: any[]) => never;
27901
- getDynamicCard: (..._args: any[]) => never;
27902
- getLiveRoomDetail: (..._args: any[]) => never;
27903
- getLiveRoomInitInfo: (..._args: any[]) => never;
27904
- getLoginBasicInfo: (..._args: any[]) => never;
27905
- getLoginQrcode: (..._args: any[]) => never;
27906
- checkQrcodeStatus: (..._args: any[]) => never;
27907
- getUserTotalPlayCount: (..._args: any[]) => never;
27908
- convertAvToBv: (..._args: any[]) => never;
27909
- convertBvToAv: (..._args: any[]) => never;
27910
- getArticleContent: (..._args: any[]) => never;
27911
- getArticleCard: (..._args: any[]) => never;
27912
- getArticleInfo: (..._args: any[]) => never;
27913
- getColumnInfo: (..._args: any[]) => never;
27914
- getUserProfileDetail: (..._args: any[]) => never;
27915
- applyVoucherCaptcha: (..._args: any[]) => never;
27916
- validateCaptcha: (..._args: any[]) => never;
27917
- getDanmaku: (..._args: any[]) => never;
27918
- }; /** fetcher */
27781
+ /** fetcher */
27919
27782
  fetcher: IBoundBilibiliFetcher;
27920
27783
  sign: {
27921
27784
  wbi_sign: typeof wbi_sign;
@@ -27928,108 +27791,19 @@ declare const createAmagiClient: (options?: Options) => {
27928
27791
  bilibiliApiUrls: typeof bilibiliApiUrls;
27929
27792
  };
27930
27793
  kuaishou: {
27931
- /** @deprecated 请使用 fetcher 替代 */api: {
27932
- getWorkInfo: (..._args: any[]) => never;
27933
- getComments: (..._args: any[]) => never;
27934
- getUserProfile: (..._args: any[]) => never;
27935
- getUserWorkList: (..._args: any[]) => never;
27936
- getLiveRoomInfo: (..._args: any[]) => never;
27937
- getEmojiList: (..._args: any[]) => never;
27938
- }; /** fetcher */
27794
+ /** fetcher */
27939
27795
  fetcher: IBoundKuaishouFetcher;
27940
27796
  sign: typeof kuaishouSign;
27941
27797
  kuaishouApiUrls: typeof kuaishouApiUrls;
27942
27798
  };
27943
27799
  xiaohongshu: {
27944
- /** @deprecated 请使用 fetcher 替代 */api: {
27945
- getHomeFeed: (..._args: any[]) => never;
27946
- getNote: (..._args: any[]) => never;
27947
- getComments: (..._args: any[]) => never;
27948
- getUser: (..._args: any[]) => never;
27949
- getUserNotes: (..._args: any[]) => never;
27950
- getSearchNotes: (..._args: any[]) => never;
27951
- getEmojiList: (..._args: any[]) => never;
27952
- }; /** fetcher */
27800
+ /** fetcher */
27953
27801
  fetcher: IBoundXiaohongshuFetcher;
27954
27802
  sign: typeof xiaohongshuSign;
27955
27803
  xiaohongshuApiUrls: typeof xiaohongshuApiUrls;
27956
27804
  };
27957
27805
  };
27958
27806
  //#endregion
27959
- //#region src/platform/bilibili/BilibiliApi.d.ts
27960
- /**
27961
- * B站相关 API 的命名空间。
27962
- *
27963
- * @deprecated v6 已废弃,请使用 bilibiliFetcher 或 client.bilibili.fetcher 替代
27964
- */
27965
- declare const bilibili: {
27966
- /** @deprecated 请使用 bilibiliFetcher.fetchVideoInfo 替代 */getVideoInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchVideoStreamUrl 替代 */
27967
- getVideoStream: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchComments 替代 */
27968
- getComments: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchCommentReplies 替代 */
27969
- getCommentReply: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchUserCard 替代 */
27970
- getUserProfile: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchUserDynamicList 替代 */
27971
- getUserDynamic: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchEmojiList 替代 */
27972
- getEmojiList: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchBangumiInfo 替代 */
27973
- getBangumiInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchBangumiStreamUrl 替代 */
27974
- getBangumiStream: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchDynamicDetail 替代 */
27975
- getDynamicInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchDynamicCard 替代 */
27976
- getDynamicCard: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchLiveRoomInfo 替代 */
27977
- getLiveRoomDetail: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchLiveRoomInitInfo 替代 */
27978
- getLiveRoomInitInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchLoginStatus 替代 */
27979
- getLoginBasicInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.requestLoginQrcode 替代 */
27980
- getLoginQrcode: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.checkQrcodeStatus 替代 */
27981
- checkQrcodeStatus: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchUploaderTotalViews 替代 */
27982
- getUserTotalPlayCount: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.convertAvToBv 替代 */
27983
- convertAvToBv: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.convertBvToAv 替代 */
27984
- convertBvToAv: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchArticleContent 替代 */
27985
- getArticleContent: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchArticleCards 替代 */
27986
- getArticleCard: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchArticleInfo 替代 */
27987
- getArticleInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchArticleListInfo 替代 */
27988
- getColumnInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchUserSpaceInfo 替代 */
27989
- getUserProfileDetail: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.requestCaptchaFromVoucher 替代 */
27990
- applyVoucherCaptcha: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.validateCaptchaResult 替代 */
27991
- validateCaptcha: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchVideoDanmaku 替代 */
27992
- getDanmaku: (..._args: any[]) => never;
27993
- };
27994
- /**
27995
- * 创建绑定了cookie的B站API对象
27996
- *
27997
- * @deprecated v6 已废弃,请使用 createBoundBilibiliFetcher 替代
27998
- */
27999
- declare const createBoundBilibiliApi: (_cookie: string, _requestConfig: RequestConfig) => {
28000
- /** @deprecated 请使用 bilibiliFetcher.fetchVideoInfo 替代 */getVideoInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchVideoStreamUrl 替代 */
28001
- getVideoStream: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchComments 替代 */
28002
- getComments: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchCommentReplies 替代 */
28003
- getCommentReply: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchUserCard 替代 */
28004
- getUserProfile: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchUserDynamicList 替代 */
28005
- getUserDynamic: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchEmojiList 替代 */
28006
- getEmojiList: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchBangumiInfo 替代 */
28007
- getBangumiInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchBangumiStreamUrl 替代 */
28008
- getBangumiStream: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchDynamicDetail 替代 */
28009
- getDynamicInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchDynamicCard 替代 */
28010
- getDynamicCard: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchLiveRoomInfo 替代 */
28011
- getLiveRoomDetail: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchLiveRoomInitInfo 替代 */
28012
- getLiveRoomInitInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchLoginStatus 替代 */
28013
- getLoginBasicInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.requestLoginQrcode 替代 */
28014
- getLoginQrcode: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.checkQrcodeStatus 替代 */
28015
- checkQrcodeStatus: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchUploaderTotalViews 替代 */
28016
- getUserTotalPlayCount: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.convertAvToBv 替代 */
28017
- convertAvToBv: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.convertBvToAv 替代 */
28018
- convertBvToAv: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchArticleContent 替代 */
28019
- getArticleContent: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchArticleCards 替代 */
28020
- getArticleCard: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchArticleInfo 替代 */
28021
- getArticleInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchArticleListInfo 替代 */
28022
- getColumnInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchUserSpaceInfo 替代 */
28023
- getUserProfileDetail: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.requestCaptchaFromVoucher 替代 */
28024
- applyVoucherCaptcha: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.validateCaptchaResult 替代 */
28025
- validateCaptcha: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchVideoDanmaku 替代 */
28026
- getDanmaku: (..._args: any[]) => never;
28027
- };
28028
- /**
28029
- * 绑定cookie的B站API对象类型
28030
- */
28031
- type BoundBilibiliApi = ReturnType<typeof createBoundBilibiliApi>;
28032
- //#endregion
28033
27807
  //#region src/platform/bilibili/getdata.d.ts
28034
27808
  /**
28035
27809
  * 哔哩哔哩API官方HTTP请求错误码
@@ -28120,25 +27894,22 @@ declare const createBilibiliRoutes: (cookie: string, requestConfig?: RequestConf
28120
27894
  //#endregion
28121
27895
  //#region src/platform/bilibili/index.d.ts
28122
27896
  type bilibiliUtilsModel = {
28123
- /** 签名算法相关 */sign: {
28124
- /** WBI签名算法 */wbi_sign: typeof wbi_sign; /** AV号转BV号 */
28125
- av2bv: typeof av2bv; /** BV号转AV号 */
27897
+ /** 签名算法相关 */
27898
+ sign: {
27899
+ /** WBI签名算法 */
27900
+ wbi_sign: typeof wbi_sign;
27901
+ /** AV号转BV号 */
27902
+ av2bv: typeof av2bv;
27903
+ /** BV号转AV号 */
28126
27904
  bv2av: typeof bv2av;
28127
- }; /** 弹幕解析相关 */
27905
+ };
27906
+ /** 弹幕解析相关 */
28128
27907
  danmaku: {
28129
- /** 解析弹幕 protobuf 数据 */parseDmSegMobileReply: typeof parseDmSegMobileReply;
28130
- }; /** 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据 */
27908
+ /** 解析弹幕 protobuf 数据 */
27909
+ parseDmSegMobileReply: typeof parseDmSegMobileReply;
27910
+ };
27911
+ /** 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据 */
28131
27912
  bilibiliApiUrls: typeof bilibiliApiUrls;
28132
- /**
28133
- * B站相关 API 的命名空间。
28134
- *
28135
- * 部分接口可能不需要 Cookie 但建议传递有效的用户 Cookie,以获取更多数据。
28136
- *
28137
- * 提供了一系列方法,用于与B站相关的 API 进行交互。
28138
- *
28139
- * 每个方法都接受参数和 Cookie,返回 Promise,解析为接口返回的原始数据。
28140
- */
28141
- api: typeof bilibili;
28142
27913
  };
28143
27914
  /** B站相关功能模块 (工具集) */
28144
27915
  declare const bilibiliUtils: bilibiliUtilsModel;
@@ -28169,7 +27940,7 @@ declare class douyinSign {
28169
27940
  //#endregion
28170
27941
  //#region src/platform/douyin/API.d.ts
28171
27942
  /** 去除 methodType 字段后的参数类型 */
28172
- type DouyinMethodOptionsWithoutMethodType = { [K in keyof DouyinDataOptionsMap]: OmitMethodType<DouyinDataOptionsMap[K]['opt']> };
27943
+ type DouyinMethodOptionsWithoutMethodType = { [K in keyof DouyinDataOptionsMap]: OmitMethodType<DouyinDataOptionsMap[K]['opt']>; };
28173
27944
  /**
28174
27945
  * 抖音 API URL 构建类
28175
27946
  *
@@ -28222,70 +27993,9 @@ declare class DouyinAPI {
28222
27993
  /** 获取弹幕数据 */
28223
27994
  getDanmakuList(data: DouyinMethodOptionsWithoutMethodType['danmakuList']): string;
28224
27995
  }
28225
- /**
28226
- * 创建 DouyinAPI 实例的工厂函数
28227
- *
28228
- * @param userAgent - 用户代理字符串
28229
- * @returns DouyinAPI 实例
28230
- */
28231
27996
  /** 默认的 DouyinAPI 实例(使用默认浏览器版本 125.0.0.0) */
28232
27997
  declare const douyinApiUrls: DouyinAPI;
28233
27998
  //#endregion
28234
- //#region src/platform/douyin/DouyinApi.d.ts
28235
- /**
28236
- * 封装了所有抖音相关的API请求,采用对象化的方式组织。
28237
- *
28238
- * @deprecated v6 已废弃,请使用 douyinFetcher 或 client.douyin.fetcher 替代
28239
- */
28240
- declare const douyin: {
28241
- /** @deprecated 请使用 douyinFetcher.fetchTextWork 替代 */getTextWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.parseWork 替代 */
28242
- getWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchVideoWork 替代 */
28243
- getVideoWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchImageAlbumWork 替代 */
28244
- getImageAlbumWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchSlidesWork 替代 */
28245
- getSlidesWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchComments 替代 */
28246
- getComments: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchCommentReplies 替代 */
28247
- getCommentReplies: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchUserProfile 替代 */
28248
- getUserProfile: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchEmojiList 替代 */
28249
- getEmojiList: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchDynamicEmojiList 替代 */
28250
- getEmojiProList: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchUserVideoList 替代 */
28251
- getUserVideos: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchMusicInfo 替代 */
28252
- getMusicInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchSuggestWords 替代 */
28253
- getSuggestWords: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.searchContent 替代 */
28254
- search: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchLiveRoomInfo 替代 */
28255
- getLiveRoomInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchDanmakuList 替代 */
28256
- getDanmaku: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher 的具体方法替代 */
28257
- invoke: (..._args: any[]) => never;
28258
- };
28259
- /**
28260
- * 创建绑定了cookie的抖音API对象
28261
- *
28262
- * @deprecated v6 已废弃,请使用 createBoundDouyinFetcher 替代
28263
- */
28264
- declare const createBoundDouyinApi: (_cookie: string, _requestConfig: RequestConfig) => {
28265
- getSearchData: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchTextWork 替代 */
28266
- getTextWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.parseWork 替代 */
28267
- getWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchVideoWork 替代 */
28268
- getVideoWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchImageAlbumWork 替代 */
28269
- getImageAlbumWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchSlidesWork 替代 */
28270
- getSlidesWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchComments 替代 */
28271
- getComments: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchCommentReplies 替代 */
28272
- getCommentReplies: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchUserProfile 替代 */
28273
- getUserProfile: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchEmojiList 替代 */
28274
- getEmojiList: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchDynamicEmojiList 替代 */
28275
- getEmojiProList: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchUserVideoList 替代 */
28276
- getUserVideos: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchMusicInfo 替代 */
28277
- getMusicInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchSuggestWords 替代 */
28278
- getSuggestWords: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.searchContent 替代 */
28279
- search: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchLiveRoomInfo 替代 */
28280
- getLiveRoomInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchDanmakuList 替代 */
28281
- getDanmaku: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher 的具体方法替代 */
28282
- invoke: (..._args: any[]) => never;
28283
- };
28284
- /**
28285
- * 绑定cookie的抖音API对象类型
28286
- */
28287
- type BoundDouyinApi = ReturnType<typeof createBoundDouyinApi>;
28288
- //#endregion
28289
27999
  //#region src/platform/douyin/routes.d.ts
28290
28000
  /**
28291
28001
  * 创建抖音路由
@@ -28297,21 +28007,14 @@ declare const createDouyinRoutes: (cookie: string, requestConfig?: RequestConfig
28297
28007
  //#endregion
28298
28008
  //#region src/platform/douyin/index.d.ts
28299
28009
  type douyinUtilsModel = {
28300
- /** 签名算法相关 */sign: typeof douyinSign;
28010
+ /** 签名算法相关 */
28011
+ sign: typeof douyinSign;
28301
28012
  /**
28302
28013
  * 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据
28303
28014
  *
28304
28015
  * 缺少 `a_bougs` 参数,请自行生成拼接
28305
28016
  */
28306
28017
  douyinApiUrls: typeof douyinApiUrls;
28307
- /**
28308
- * 封装了所有抖音相关的API请求,采用对象化的方式组织。
28309
- *
28310
- * 提供了一系列方法,用于与抖音相关的 API 进行交互。
28311
- *
28312
- * 每个方法都接受参数和 Cookie,返回 Promise,解析为接口返回的原始数据。
28313
- */
28314
- api: typeof douyin;
28315
28018
  };
28316
28019
  /** 抖音相关功能模块 (工具集) */
28317
28020
  declare const douyinUtils: douyinUtilsModel;
@@ -28320,7 +28023,7 @@ declare const douyinUtils: douyinUtilsModel;
28320
28023
  /**
28321
28024
  * 根据 KuaishouMethodOptionsMap 创建一个新的类型,去除每个字段中的 methodType
28322
28025
  */
28323
- type KuaishouMethodOptionsWithoutMethodType = { [K in keyof KuaishouMethodOptionsMap]: OmitMethodType<KuaishouMethodOptionsMap[K]> };
28026
+ type KuaishouMethodOptionsWithoutMethodType = { [K in keyof KuaishouMethodOptionsMap]: OmitMethodType<KuaishouMethodOptionsMap[K]>; };
28324
28027
  type KuaishouUserProfileListRequest = KuaishouMethodOptionsWithoutMethodType['UserProfileParams'] | KuaishouMethodOptionsWithoutMethodType['UserWorkListParams'];
28325
28028
  type KuaishouBaseApiRequest = {
28326
28029
  type: string;
@@ -28598,38 +28301,6 @@ declare class kuaishouSign {
28598
28301
  static signLiveApiRequest(request: KuaishouLiveApiRequest, cookie?: string): KuaishouLiveApiSignature;
28599
28302
  }
28600
28303
  //#endregion
28601
- //#region src/platform/kuaishou/KuaishouApi.d.ts
28602
- /**
28603
- * 快手相关 API 的命名空间。
28604
- *
28605
- * @deprecated v6 已废弃,请使用 kuaishouFetcher 或 client.kuaishou.fetcher 替代
28606
- */
28607
- declare const kuaishou: {
28608
- /** @deprecated 请使用 kuaishouFetcher.fetchVideoWork 替代 */getWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchWorkComments 替代 */
28609
- getComments: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchUserProfile 替代 */
28610
- getUserProfile: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchUserWorkList 替代 */
28611
- getUserWorkList: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchLiveRoomInfo 替代 */
28612
- getLiveRoomInfo: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchEmojiList 替代 */
28613
- getEmojiList: (..._args: any[]) => never;
28614
- };
28615
- /**
28616
- * 创建绑定了cookie的快手API对象
28617
- *
28618
- * @deprecated v6 已废弃,请使用 createBoundKuaishouFetcher 替代
28619
- */
28620
- declare const createBoundKuaishouApi: (_cookie: string, _requestConfig: RequestConfig) => {
28621
- /** @deprecated 请使用 kuaishouFetcher.fetchVideoWork 替代 */getWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchWorkComments 替代 */
28622
- getComments: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchUserProfile 替代 */
28623
- getUserProfile: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchUserWorkList 替代 */
28624
- getUserWorkList: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchLiveRoomInfo 替代 */
28625
- getLiveRoomInfo: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchEmojiList 替代 */
28626
- getEmojiList: (..._args: any[]) => never;
28627
- };
28628
- /**
28629
- * 绑定cookie的快手API对象类型
28630
- */
28631
- type BoundKuaishouApi = ReturnType<typeof createBoundKuaishouApi>;
28632
- //#endregion
28633
28304
  //#region src/platform/kuaishou/routes.d.ts
28634
28305
  /**
28635
28306
  * 创建快手路由
@@ -28641,16 +28312,10 @@ declare const createKuaishouRoutes: (cookie: string, requestConfig?: RequestConf
28641
28312
  //#endregion
28642
28313
  //#region src/platform/kuaishou/index.d.ts
28643
28314
  type kuaishouUtilsModel = {
28644
- /** 签名算法相关 */sign: typeof kuaishouSign; /** 该类下的方法只会返回请求描述对象,需要手动请求对应地址以获取数据 */
28315
+ /** 签名算法相关 */
28316
+ sign: typeof kuaishouSign;
28317
+ /** 该类下的方法只会返回请求描述对象,需要手动请求对应地址以获取数据 */
28645
28318
  kuaishouApiUrls: typeof kuaishouApiUrls;
28646
- /**
28647
- * 封装了所有快手相关的API请求,采用对象化的方式组织。
28648
- *
28649
- * 提供了一系列方法,用于与快手相关的 API 进行交互。
28650
- *
28651
- * 每个方法都接受参数和 Cookie,返回 Promise,解析为接口返回的原始数据。
28652
- */
28653
- api: typeof kuaishou;
28654
28319
  };
28655
28320
  /** 快手相关功能模块 (工具集) */
28656
28321
  declare const kuaishouUtils: kuaishouUtilsModel;
@@ -28714,40 +28379,6 @@ declare class xiaohongshuSign {
28714
28379
  static getSearchId: () => string;
28715
28380
  }
28716
28381
  //#endregion
28717
- //#region src/platform/xiaohongshu/XiaohongshuApi.d.ts
28718
- /**
28719
- * 封装了所有小红书相关的API请求,采用对象化的方式组织。
28720
- *
28721
- * @deprecated v6 已废弃,请使用 xiaohongshuFetcher 或 client.xiaohongshu.fetcher 替代
28722
- */
28723
- declare const xiaohongshu: {
28724
- /** @deprecated 请使用 xiaohongshuFetcher.fetchHomeFeed 替代 */getHomeFeed: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchNoteDetail 替代 */
28725
- getNote: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchNoteComments 替代 */
28726
- getComments: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchUserProfile 替代 */
28727
- getUser: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchUserNoteList 替代 */
28728
- getUserNotes: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.searchNotes 替代 */
28729
- getSearchNotes: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchEmojiList 替代 */
28730
- getEmojiList: (..._args: any[]) => never;
28731
- };
28732
- /**
28733
- * 创建绑定了cookie的小红书API对象
28734
- *
28735
- * @deprecated v6 已废弃,请使用 createBoundXiaohongshuFetcher 替代
28736
- */
28737
- declare const createBoundXiaohongshuApi: (_cookie: string, _requestConfig: RequestConfig) => {
28738
- /** @deprecated 请使用 xiaohongshuFetcher.fetchHomeFeed 替代 */getHomeFeed: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchNoteDetail 替代 */
28739
- getNote: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchNoteComments 替代 */
28740
- getComments: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchUserProfile 替代 */
28741
- getUser: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchUserNoteList 替代 */
28742
- getUserNotes: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.searchNotes 替代 */
28743
- getSearchNotes: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchEmojiList 替代 */
28744
- getEmojiList: (..._args: any[]) => never;
28745
- };
28746
- /**
28747
- * 绑定cookie的小红书API对象类型
28748
- */
28749
- type BoundXiaohongshuApi = ReturnType<typeof createBoundXiaohongshuApi>;
28750
- //#endregion
28751
28382
  //#region src/platform/xiaohongshu/routes.d.ts
28752
28383
  /**
28753
28384
  * 创建小红书路由
@@ -28759,88 +28390,16 @@ declare const createXiaohongshuRoutes: (cookie: string, requestConfig?: RequestC
28759
28390
  //#endregion
28760
28391
  //#region src/platform/xiaohongshu/index.d.ts
28761
28392
  type xiaohongshuUtilsModel = {
28762
- /** 签名算法相关 */sign: typeof xiaohongshuSign;
28393
+ /** 签名算法相关 */
28394
+ sign: typeof xiaohongshuSign;
28763
28395
  /**
28764
28396
  * 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据
28765
28397
  */
28766
28398
  xiaohongshuApiUrls: typeof xiaohongshuApiUrls;
28767
- /**
28768
- * 封装了所有小红书相关的API请求,采用对象化的方式组织。
28769
- *
28770
- * 提供了一系列方法,用于与小红书相关的 API 进行交互。
28771
- *
28772
- * 每个方法都接受参数和 Cookie,返回 Promise,解析为接口返回的原始数据。
28773
- */
28774
- api: typeof xiaohongshu;
28775
28399
  };
28776
28400
  /** 小红书相关功能模块 (工具集) */
28777
28401
  declare const xiaohongshuUtils: xiaohongshuUtilsModel;
28778
28402
  //#endregion
28779
- //#region src/model/DataFetchers.d.ts
28780
- /**
28781
- * 获取抖音数据
28782
- *
28783
- * @deprecated v6 已废弃,请使用 douyinFetcher 或 client.douyin.fetcher 替代
28784
- * @throws {DeprecatedApiError} 调用时抛出废弃错误
28785
- *
28786
- * @example
28787
- * ```typescript
28788
- * // 旧用法 (已废弃,会抛出错误)
28789
- * const data = await getDouyinData('videoWork', { aweme_id: '123' }, cookie)
28790
- *
28791
- * // 新用法
28792
- * import { douyinFetcher } from '@ikenxuan/amagi'
28793
- * const data = await douyinFetcher.fetchVideoWork({ aweme_id: '123' }, cookie)
28794
- *
28795
- * // 或使用客户端实例
28796
- * const client = createAmagiClient({ cookies: { douyin: cookie } })
28797
- * const data = await client.douyin.fetcher.fetchVideoWork({ aweme_id: '123' })
28798
- * ```
28799
- */
28800
- declare function getDouyinData(..._args: any[]): never;
28801
- /**
28802
- * 获取B站数据
28803
- *
28804
- * @deprecated v6 已废弃,请使用 bilibiliFetcher 或 client.bilibili.fetcher 替代
28805
- * @throws {DeprecatedApiError} 调用时抛出废弃错误
28806
- *
28807
- * @example
28808
- * ```typescript
28809
- * // 旧用法 (已废弃,会抛出错误)
28810
- * const data = await getBilibiliData('videoInfo', { bvid: 'BV123' }, cookie)
28811
- *
28812
- * // 新用法
28813
- * import { bilibiliFetcher } from '@ikenxuan/amagi'
28814
- * const data = await bilibiliFetcher.fetchVideoInfo({ bvid: 'BV123' }, cookie)
28815
- *
28816
- * // 或使用客户端实例
28817
- * const client = createAmagiClient({ cookies: { bilibili: cookie } })
28818
- * const data = await client.bilibili.fetcher.fetchVideoInfo({ bvid: 'BV123' })
28819
- * ```
28820
- */
28821
- declare function getBilibiliData(..._args: any[]): never;
28822
- /**
28823
- * 获取快手数据
28824
- *
28825
- * @deprecated v6 已废弃,请使用 kuaishouFetcher 或 client.kuaishou.fetcher 替代
28826
- * @throws {DeprecatedApiError} 调用时抛出废弃错误
28827
- *
28828
- * @example
28829
- * ```typescript
28830
- * // 旧用法 (已废弃,会抛出错误)
28831
- * const data = await getKuaishouData('videoWork', { photoId: '123' }, cookie)
28832
- *
28833
- * // 新用法
28834
- * import { kuaishouFetcher } from '@ikenxuan/amagi'
28835
- * const data = await kuaishouFetcher.fetchVideoWork({ photoId: '123' }, cookie)
28836
- *
28837
- * // 或使用客户端实例
28838
- * const client = createAmagiClient({ cookies: { kuaishou: cookie } })
28839
- * const data = await client.kuaishou.fetcher.fetchVideoWork({ photoId: '123' })
28840
- * ```
28841
- */
28842
- declare function getKuaishouData(..._args: any[]): never;
28843
- //#endregion
28844
28403
  //#region src/utils/errors.d.ts
28845
28404
  /**
28846
28405
  * API错误类
@@ -28935,49 +28494,6 @@ declare const getHeadersAndData: <T = any>(config: AxiosRequestConfig, maxRetrie
28935
28494
  data: T;
28936
28495
  } | ErrorResult>;
28937
28496
  //#endregion
28938
- //#region src/model/logger.d.ts
28939
- /**
28940
- * @deprecated v6 已废弃,请使用事件系统替代
28941
- * 初始化 logger 配置 - 此函数现在为空操作
28942
- */
28943
- declare const initLogger: () => void;
28944
- /**
28945
- * @deprecated v6 已废弃,请使用事件系统替代
28946
- * 简化的日志类,仅发射事件,不再依赖 log4js
28947
- */
28948
- declare class SimpleLogger {
28949
- chalk: ChalkInstance;
28950
- red: (text: string) => string;
28951
- green: (text: string) => string;
28952
- yellow: (text: string) => string;
28953
- blue: (text: string) => string;
28954
- magenta: (text: string) => string;
28955
- cyan: (text: string) => string;
28956
- white: (text: string) => string;
28957
- gray: (text: string) => string;
28958
- constructor();
28959
- info(message: any, ...args: any[]): void;
28960
- warn(message: any, ...args: any[]): void;
28961
- error(message: any, ...args: any[]): void;
28962
- mark(message: any, ...args: any[]): void;
28963
- debug(message: any, ...args: any[]): void;
28964
- }
28965
- /**
28966
- * @deprecated v6 已废弃,请使用事件系统替代
28967
- */
28968
- declare const logger: SimpleLogger;
28969
- /**
28970
- * @deprecated v6 已废弃,请使用事件系统替代
28971
- */
28972
- declare const httpLogger: SimpleLogger;
28973
- /**
28974
- * @deprecated v6 已废弃,请使用事件系统监听 http:response 事件
28975
- * 创建一个日志中间件,用于记录特定请求的详细信息
28976
- * @param pathsToLog 指定需要记录日志的请求路径数组如果未提供,则记录所有请求的日志
28977
- * @returns
28978
- */
28979
- declare const logMiddleware: (pathsToLog?: string[]) => express.RequestHandler;
28980
- //#endregion
28981
28497
  //#region src/types/api-spec.d.ts
28982
28498
  /**
28983
28499
  * Amagi v6 API 规范定义
@@ -29049,7 +28565,6 @@ declare const BilibiliMethodMapping: {
29049
28565
  readonly 用户空间详细信息: "fetchUserSpaceInfo";
29050
28566
  readonly 获取UP主总播放量: "fetchUploaderTotalViews";
29051
28567
  readonly 动态详情数据: "fetchDynamicDetail";
29052
- readonly 动态卡片数据: "fetchDynamicCard";
29053
28568
  readonly 番剧基本信息数据: "fetchBangumiInfo";
29054
28569
  readonly 番剧下载信息数据: "fetchBangumiStreamUrl";
29055
28570
  readonly 直播间信息: "fetchLiveRoomInfo";
@@ -29135,7 +28650,6 @@ declare const BilibiliApiRoutes: {
29135
28650
  readonly userSpaceInfo: "/user/space";
29136
28651
  readonly uploaderTotalViews: "/user/total-views";
29137
28652
  readonly dynamicDetail: "/dynamic";
29138
- readonly dynamicCard: "/dynamic/card";
29139
28653
  readonly bangumiInfo: "/bangumi";
29140
28654
  readonly bangumiStream: "/bangumi/stream";
29141
28655
  readonly liveRoomInfo: "/live";
@@ -29186,39 +28700,21 @@ declare function getEnglishMethodName<T extends Platform>(platform: T, chineseMe
29186
28700
  declare function getApiRoute<T extends Platform>(platform: T, methodType: string): string | undefined;
29187
28701
  //#endregion
29188
28702
  //#region src/index.d.ts
29189
- /**
29190
- * @deprecated 请使用 createAmagiClient 替代
29191
- */
29192
- declare const amagiClient: typeof createAmagiClient;
29193
28703
  /** amagi 的构造函数类型 */
29194
28704
  type AmagiConstructor = {
29195
28705
  new (options?: Options): ReturnType<typeof createAmagiClient>;
29196
- (options?: Options): ReturnType<typeof createAmagiClient>; /** 当前版本号 */
29197
- readonly version: string; /** 抖音相关功能模块 (工具集) */
29198
- douyin: typeof douyinUtils; /** B站相关功能模块 (工具集) */
29199
- bilibili: typeof bilibiliUtils; /** 快手相关功能模块 (工具集) */
29200
- kuaishou: typeof kuaishouUtils; /** 小红书相关功能模块 (工具集) */
28706
+ (options?: Options): ReturnType<typeof createAmagiClient>;
28707
+ /** 当前版本号 */
28708
+ readonly version: string;
28709
+ /** 抖音相关功能模块 (工具集) */
28710
+ douyin: typeof douyinUtils;
28711
+ /** B站相关功能模块 (工具集) */
28712
+ bilibili: typeof bilibiliUtils;
28713
+ /** 快手相关功能模块 (工具集) */
28714
+ kuaishou: typeof kuaishouUtils;
28715
+ /** 小红书相关功能模块 (工具集) */
29201
28716
  xiaohongshu: typeof xiaohongshuUtils;
29202
- /**
29203
- * @deprecated v6 已废弃,请使用 douyinFetcher 替代
29204
- * @throws {DeprecatedApiError} 调用时抛出废弃错误
29205
- */
29206
- getDouyinData: (...args: any[]) => never;
29207
- /**
29208
- * @deprecated v6 已废弃,请使用 bilibiliFetcher 替代
29209
- * @throws {DeprecatedApiError} 调用时抛出废弃错误
29210
- */
29211
- getBilibiliData: (...args: any[]) => never;
29212
- /**
29213
- * @deprecated v6 已废弃,请使用 kuaishouFetcher 替代
29214
- * @throws {DeprecatedApiError} 调用时抛出废弃错误
29215
- */
29216
- getKuaishouData: (...args: any[]) => never;
29217
- /**
29218
- * @deprecated v6 已废弃,请使用 xiaohongshuFetcher 替代
29219
- * @throws {DeprecatedApiError} 调用时抛出废弃错误
29220
- */
29221
- getXiaohongshuData: (...args: any[]) => never; /** 事件系统 */
28717
+ /** 事件系统 */
29222
28718
  events: typeof amagiEvents;
29223
28719
  /**
29224
28720
  * 注册事件监听器
@@ -29231,14 +28727,22 @@ type AmagiConstructor = {
29231
28727
  * @param event - 事件名称
29232
28728
  * @param listener - 事件处理函数 (只触发一次)
29233
28729
  */
29234
- once: typeof amagiEvents.once; /** B站数据获取器 (需要传递 cookie) */
29235
- bilibiliFetcher: typeof bilibiliFetcher; /** 抖音数据获取器 (需要传递 cookie) */
29236
- douyinFetcher: typeof douyinFetcher; /** 快手数据获取器 (需要传递 cookie) */
29237
- kuaishouFetcher: typeof kuaishouFetcher; /** 小红书数据获取器 (需要传递 cookie) */
29238
- xiaohongshuFetcher: typeof xiaohongshuFetcher; /** 创建绑定 cookie 的 B站 fetcher */
29239
- createBoundBilibiliFetcher: typeof createBoundBilibiliFetcher; /** 创建绑定 cookie 的抖音 fetcher */
29240
- createBoundDouyinFetcher: typeof createBoundDouyinFetcher; /** 创建绑定 cookie 的快手 fetcher */
29241
- createBoundKuaishouFetcher: typeof createBoundKuaishouFetcher; /** 创建绑定 cookie 的小红书 fetcher */
28730
+ once: typeof amagiEvents.once;
28731
+ /** B站数据获取器 (需要传递 cookie) */
28732
+ bilibiliFetcher: typeof bilibiliFetcher;
28733
+ /** 抖音数据获取器 (需要传递 cookie) */
28734
+ douyinFetcher: typeof douyinFetcher;
28735
+ /** 快手数据获取器 (需要传递 cookie) */
28736
+ kuaishouFetcher: typeof kuaishouFetcher;
28737
+ /** 小红书数据获取器 (需要传递 cookie) */
28738
+ xiaohongshuFetcher: typeof xiaohongshuFetcher;
28739
+ /** 创建绑定 cookie 的 B站 fetcher */
28740
+ createBoundBilibiliFetcher: typeof createBoundBilibiliFetcher;
28741
+ /** 创建绑定 cookie 的抖音 fetcher */
28742
+ createBoundDouyinFetcher: typeof createBoundDouyinFetcher;
28743
+ /** 创建绑定 cookie 的快手 fetcher */
28744
+ createBoundKuaishouFetcher: typeof createBoundKuaishouFetcher;
28745
+ /** 创建绑定 cookie 的小红书 fetcher */
29242
28746
  createBoundXiaohongshuFetcher: typeof createBoundXiaohongshuFetcher;
29243
28747
  };
29244
28748
  /** After instantiation, it can interact with the specified platform API to quickly obtain data. */
@@ -29246,11 +28750,5 @@ declare const CreateApp: AmagiConstructor;
29246
28750
  /** After instantiation, it can interact with the specified platform API to quickly obtain data. */
29247
28751
  declare const Client: typeof CreateApp;
29248
28752
  declare const amagi: typeof Client;
29249
- /*!
29250
- * @ikenxuan/amagi
29251
- * Copyright(c) 2023 ikenxuan
29252
- * GPL-3.0 Licensed
29253
- */
29254
28753
  //#endregion
29255
- export { APIErrorType, AdditionalType, AmagiEventMap, AmagiEventType, type AnonymousFetcherRequestConfig, type ApiEndpoint, ApiError, ApiErrorEventData, ApiResponse, ApiSuccessEventData, ArticleCard, ArticleContent, ArticleInfo, ArticleWork, BaseRequestOptions, BaseResponse, BiliAv2Bv, BiliBangumiVideoInfo, BiliBangumiVideoPlayurlIsLogin, BiliBangumiVideoPlayurlNoLogin, BiliBiliVideoPlayurlNoLogin, BiliBv2AV, BiliCheckQrcode, BiliCommentReply, BiliDynamicCard, BiliDynamicInfo, BiliDynamicInfoUnion, BiliEmojiList, BiliLiveRoomDef, BiliLiveRoomDetail, BiliNewLoginQrcode, BiliOneWork, BiliProtobufDanmaku, BiliUserDynamic, BiliUserFullView, BiliUserLiveStatus, BiliUserProfile, BiliVideoPlayurlIsLogin, BiliWorkComments, BilibiliApiRoutes, type BilibiliApplyCaptchaOptions, BilibiliApplyCaptchaParamsSchema, type BilibiliArticleCardOptions, BilibiliArticleCardParamsSchema, BilibiliArticleInfoParamsSchema, type BilibiliArticleOptions, BilibiliArticleParamsSchema, type BilibiliAv2BvOptions, BilibiliAv2BvParamsSchema, type BilibiliBangumiInfoOptions, BilibiliBangumiInfoParamsSchema, type BilibiliBangumiStreamOptions, BilibiliBangumiStreamParamsSchema, type BilibiliBv2AvOptions, BilibiliBv2AvParamsSchema, BilibiliColumnInfoParamsSchema, BilibiliCommentParamsSchema, type BilibiliCommentRepliesOptions, BilibiliCommentReplyParamsSchema, type BilibiliCommentsOptions, type BilibiliDanmakuOptions, BilibiliDanmakuParamsSchema, BilibiliDataOptions, BilibiliDataOptionsMap, type BilibiliDynamicOptions, BilibiliDynamicParamsSchema, BilibiliEmojiParamsSchema, type BilibiliFetcher, BilibiliFetcherMethodKey, BilibiliFetcherMethods, BilibiliInternalMethodKey, BilibiliInternalMethods, BilibiliLiveParamsSchema, type BilibiliLiveRoomOptions, BilibiliLoginParamsSchema, type BilibiliMethodKey, BilibiliMethodMapping, BilibiliMethodOptMap, BilibiliMethodOptionsMap, BilibiliMethodRoutes, BilibiliMethodToFetcher, BilibiliMethodType, type BilibiliMethodValue, BilibiliQrcodeParamsSchema, type BilibiliQrcodeStatusOptions, BilibiliQrcodeStatusParamsSchema, BilibiliReturnTypeMap, type BilibiliUserOptions, BilibiliUserParamsSchema, type BilibiliValidateCaptchaOptions, BilibiliValidateCaptchaParamsSchema, BilibiliValidationSchemas, BilibiliVideoDownloadParamsSchema, type BilibiliVideoInfoOptions, BilibiliVideoParamsSchema, type BilibiliVideoStreamOptions, BoundBilibiliApi, type BoundBilibiliFetcher, BoundDouyinApi, type BoundDouyinFetcher, BoundKuaishouApi, type BoundKuaishouFetcher, BoundXiaohongshuApi, type BoundXiaohongshuFetcher, ColumnInfo, CommentReply, CommentType, ConditionalReturnType, CookieConfig, CreateApp, DouyinApiRoutes, DouyinCommentParamsSchema, type DouyinCommentRepliesOptions, DouyinCommentReplyParamsSchema, type DouyinCommentsOptions, type DouyinDanmakuOptions, DouyinDanmakuParamsSchema, DouyinDataOptions, DouyinDataOptionsMap, DouyinEmojiListParamsSchema, DouyinEmojiProParamsSchema, type DouyinFetcher, DouyinFetcherMethodKey, DouyinFetcherMethods, DouyinHotWordsParamsSchema, DouyinInternalMethodKey, DouyinInternalMethods, type DouyinLiveRoomOptions, DouyinLiveRoomParamsSchema, type DouyinMethodKey, DouyinMethodMapping, DouyinMethodOptMap, DouyinMethodOptionsMap, DouyinMethodRoutes, DouyinMethodToFetcher, DouyinMethodType, type DouyinMethodValue, type DouyinMusicOptions, DouyinMusicParamsSchema, type DouyinQrcodeOptions, DouyinQrcodeParamsSchema, DouyinReturnTypeMap, type DouyinSearchOptions, DouyinSearchParamsSchema, type DouyinSuggestWordsOptions, type DouyinUserListOptions, DouyinUserListParamsSchema, type DouyinUserOptions, DouyinUserParamsSchema, DouyinValidationSchemas, type DouyinWorkOptions, DouyinWorkParamsSchema, DyDanmakuList, DyEmojiList, DyEmojiProList, DyImageAlbumWork, DyMusicWork, DySearchInfo, DySlidesWork, DySuggestWords, DyUserInfo, DyUserLiveVideos, DyUserPostVideos, DyVideoWork, DyWorkComments, DynamicType, DynamicTypeAV, DynamicTypeArticle, DynamicTypeDraw, DynamicTypeForward, DynamicTypeForwardUnion, DynamicTypeLiveRcmd, DynamicTypeWord, ErrorResult, ExtractTypeMode, FetcherConfig, type FetcherCookieForRequestConfig, type FetcherRequestConfigWithCookie, type FetcherRequestConfigWithoutCookie, HomeFeed, type HttpMethod, HttpRequestEventData, HttpResponseEventData, type IBilibiliFetcher, type IBoundBilibiliFetcher, type IBoundDouyinFetcher, type IBoundKuaishouFetcher, type IBoundXiaohongshuFetcher, type IDouyinFetcher, type IKuaishouFetcher, type IXiaohongshuFetcher, type KsBannedStatus, KsEmojiList, KsLiveRoomInfo, KsOneWork, type KsUserHomeWork, KsUserProfile, type KsUserProfileCounts, type KsUserProfileGameInfo, type KsUserProfileLiveInfo, type KsUserProfileSensitiveInfo, type KsUserProfileUserInfo, KsUserWorkList, type KsVerifiedStatus, KsWorkComments, KuaishouApiRoutes, KuaishouCommentParamsSchema, type KuaishouCommentsOptions, KuaishouDataOptions, KuaishouDataOptionsMap, KuaishouEmojiParamsSchema, type KuaishouFetcher, KuaishouFetcherMethodKey, KuaishouFetcherMethods, type KuaishouGraphqlRequest, KuaishouInternalMethodKey, KuaishouInternalMethods, type KuaishouLiveApiRequest, type KuaishouLiveRoomInfoOptions, KuaishouLiveRoomInfoParamsSchema, type KuaishouMethodKey, KuaishouMethodMapping, KuaishouMethodOptMap, KuaishouMethodOptionsMap, KuaishouMethodRoutes, KuaishouMethodToFetcher, KuaishouMethodType, type KuaishouMethodValue, KuaishouReturnTypeMap, type KuaishouUserProfileOptions, KuaishouUserProfileParamsSchema, type KuaishouUserWorkListOptions, KuaishouUserWorkListParamsSchema, KuaishouValidationSchemas, KuaishouVideoParamsSchema, type KuaishouVideoWorkOptions, LogEventData, MajorType, MethodMaps, NetworkErrorEventData, NetworkRetryEventData, type NetworksConfigType, NoteComments, OmitMethodType, OneNote, Options, type Platform, RequestConfig, Result, SearchInfoGeneralData, SearchInfoUser, SearchInfoVideo, SearchNotes, SuccessResult, TypeControl, TypeMode, ValidationError, XiaohongshuApiRoutes, type XiaohongshuCommentsOptions, XiaohongshuDataOptions, XiaohongshuDataOptionsMap, XiaohongshuEmojiList, type XiaohongshuFetcher, XiaohongshuFetcherMethodKey, XiaohongshuFetcherMethods, type XiaohongshuHomeFeedOptions, XiaohongshuInternalMethodKey, XiaohongshuInternalMethods, type XiaohongshuMethodKey, XiaohongshuMethodMapping, XiaohongshuMethodOptMap, XiaohongshuMethodOptionsMap, XiaohongshuMethodRoutes, XiaohongshuMethodToFetcher, XiaohongshuMethodType, type XiaohongshuMethodValue, type XiaohongshuNoteDetailOptions, XiaohongshuReturnTypeMap, type XiaohongshuSearchNotesOptions, type XiaohongshuUserNotesOptions, XiaohongshuUserProfile, type XiaohongshuUserProfileOptions, XiaohongshuValidationSchemas, amagi, amagiClient, amagiEvents, av2bv, bilibili, bilibiliApiUrls, bilibiliErrorCodeMap, bilibiliFetcher, bilibiliUtils, bv2av, createAmagiClient, createBilibiliRoutes, createBilibiliRoutes as registerBilibiliRoutes, createBoundBilibiliApi, createBoundBilibiliFetcher, createBoundDouyinApi, createBoundDouyinFetcher, createBoundKuaishouApi, createBoundKuaishouFetcher, createBoundXiaohongshuApi, createBoundXiaohongshuFetcher, createDouyinRoutes, createDouyinRoutes as registerDouyinRoutes, createErrorResponse, createKuaishouRoutes, createKuaishouRoutes as registerKuaishouRoutes, createSuccessResponse, createXiaohongshuRoutes, createXiaohongshuRoutes as registerXiaohongshuRoutes, Client as default, douyin, douyinApiUrls, douyinFetcher, douyinSign, douyinUtils, emitApiError, emitApiSuccess, emitHttpRequest, emitHttpResponse, emitLog, emitLogDebug, emitLogError, emitLogInfo, emitLogMark, emitLogWarn, emitNetworkError, emitNetworkRetry, fetchData, fetchResponse, getApiRoute, getBilibiliData, getDouyinData, getEnglishMethodName, getHeadersAndData, getKuaishouData, handleError, httpLogger, initLogger, isNetworkErrorResult, kuaishou, kuaishouApiUrls, kuaishouFetcher, kuaishouSign, kuaishouUtils, logMiddleware, logger, parseDmSegMobileReply, qtparam, toFetcherMethod, validateBilibiliParams, validateDouyinParams, validateKuaishouParams, validateXiaohongshuParams, wbi_sign, xiaohongshu, xiaohongshuApiUrls, xiaohongshuFetcher, xiaohongshuSign, xiaohongshuUtils };
29256
- //# sourceMappingURL=index.d.mts.map
28754
+ export { APIErrorType, AdditionalType, AmagiEventMap, AmagiEventType, type AnonymousFetcherRequestConfig, type ApiEndpoint, ApiError, ApiErrorEventData, ApiSuccessEventData, ArticleCard, ArticleContent, ArticleInfo, ArticleWork, BaseRequestOptions, BaseResponse, BiliAv2Bv, BiliBangumiVideoInfo, BiliBangumiVideoPlayurlIsLogin, BiliBangumiVideoPlayurlNoLogin, BiliBiliVideoPlayurlNoLogin, BiliBv2AV, BiliCheckQrcode, BiliCommentReply, BiliDynamicInfo, BiliDynamicInfoUnion, BiliEmojiList, BiliLiveRoomDef, BiliLiveRoomDetail, BiliNewLoginQrcode, BiliOneWork, BiliProtobufDanmaku, BiliUserDynamic, BiliUserFullView, BiliUserLiveStatus, BiliUserProfile, BiliVideoPlayurlIsLogin, BiliWorkComments, BilibiliApiRoutes, type BilibiliApplyCaptchaOptions, BilibiliApplyCaptchaParamsSchema, type BilibiliArticleCardOptions, BilibiliArticleCardParamsSchema, BilibiliArticleInfoParamsSchema, type BilibiliArticleOptions, BilibiliArticleParamsSchema, type BilibiliAv2BvOptions, BilibiliAv2BvParamsSchema, type BilibiliBangumiInfoOptions, BilibiliBangumiInfoParamsSchema, type BilibiliBangumiStreamOptions, BilibiliBangumiStreamParamsSchema, type BilibiliBv2AvOptions, BilibiliBv2AvParamsSchema, BilibiliColumnInfoParamsSchema, BilibiliCommentParamsSchema, type BilibiliCommentRepliesOptions, BilibiliCommentReplyParamsSchema, type BilibiliCommentsOptions, type BilibiliDanmakuOptions, BilibiliDanmakuParamsSchema, BilibiliDataOptions, BilibiliDataOptionsMap, type BilibiliDynamicOptions, BilibiliDynamicParamsSchema, BilibiliEmojiParamsSchema, type BilibiliFetcher, BilibiliFetcherMethodKey, BilibiliFetcherMethods, BilibiliInternalMethodKey, BilibiliInternalMethods, BilibiliLiveParamsSchema, type BilibiliLiveRoomOptions, BilibiliLoginParamsSchema, type BilibiliMethodKey, BilibiliMethodMapping, BilibiliMethodOptMap, BilibiliMethodOptionsMap, BilibiliMethodRoutes, BilibiliMethodToFetcher, BilibiliMethodType, type BilibiliMethodValue, BilibiliQrcodeParamsSchema, type BilibiliQrcodeStatusOptions, BilibiliQrcodeStatusParamsSchema, BilibiliReturnTypeMap, type BilibiliUserOptions, BilibiliUserParamsSchema, type BilibiliValidateCaptchaOptions, BilibiliValidateCaptchaParamsSchema, BilibiliValidationSchemas, BilibiliVideoDownloadParamsSchema, type BilibiliVideoInfoOptions, BilibiliVideoParamsSchema, type BilibiliVideoStreamOptions, type BoundBilibiliFetcher, type BoundDouyinFetcher, type BoundKuaishouFetcher, type BoundXiaohongshuFetcher, ColumnInfo, CommentReply, CommentType, ConditionalReturnType, CookieConfig, CreateApp, DouyinApiRoutes, DouyinCommentParamsSchema, type DouyinCommentRepliesOptions, DouyinCommentReplyParamsSchema, type DouyinCommentsOptions, type DouyinDanmakuOptions, DouyinDanmakuParamsSchema, DouyinDataOptions, DouyinDataOptionsMap, DouyinEmojiListParamsSchema, DouyinEmojiProParamsSchema, type DouyinFetcher, DouyinFetcherMethodKey, DouyinFetcherMethods, DouyinHotWordsParamsSchema, DouyinInternalMethodKey, DouyinInternalMethods, type DouyinLiveRoomOptions, DouyinLiveRoomParamsSchema, type DouyinMethodKey, DouyinMethodMapping, DouyinMethodOptMap, DouyinMethodOptionsMap, DouyinMethodRoutes, DouyinMethodToFetcher, DouyinMethodType, type DouyinMethodValue, type DouyinMusicOptions, DouyinMusicParamsSchema, type DouyinQrcodeOptions, DouyinQrcodeParamsSchema, DouyinReturnTypeMap, type DouyinSearchOptions, DouyinSearchParamsSchema, type DouyinSuggestWordsOptions, type DouyinUserListOptions, DouyinUserListParamsSchema, type DouyinUserOptions, DouyinUserParamsSchema, DouyinValidationSchemas, type DouyinWorkOptions, DouyinWorkParamsSchema, DyDanmakuList, DyEmojiList, DyEmojiProList, DyImageAlbumWork, DyMusicWork, DySearchInfo, DySlidesWork, DySuggestWords, DyUserInfo, DyUserLiveVideos, DyUserPostVideos, DyVideoWork, DyWorkComments, DynamicType, DynamicTypeAV, DynamicTypeArticle, DynamicTypeDraw, DynamicTypeForward, DynamicTypeForwardUnion, DynamicTypeLiveRcmd, DynamicTypeWord, ErrorResult, ExtractTypeMode, FetcherConfig, type FetcherCookieForRequestConfig, type FetcherRequestConfigWithCookie, type FetcherRequestConfigWithoutCookie, HomeFeed, type HttpMethod, HttpRequestEventData, HttpResponseEventData, type IBilibiliFetcher, type IBoundBilibiliFetcher, type IBoundDouyinFetcher, type IBoundKuaishouFetcher, type IBoundXiaohongshuFetcher, type IDouyinFetcher, type IKuaishouFetcher, type IXiaohongshuFetcher, type KsBannedStatus, KsEmojiList, KsLiveRoomInfo, KsOneWork, type KsUserHomeWork, KsUserProfile, type KsUserProfileCounts, type KsUserProfileGameInfo, type KsUserProfileLiveInfo, type KsUserProfileSensitiveInfo, type KsUserProfileUserInfo, KsUserWorkList, type KsVerifiedStatus, KsWorkComments, KuaishouApiRoutes, KuaishouCommentParamsSchema, type KuaishouCommentsOptions, KuaishouDataOptions, KuaishouDataOptionsMap, KuaishouEmojiParamsSchema, type KuaishouFetcher, KuaishouFetcherMethodKey, KuaishouFetcherMethods, type KuaishouGraphqlRequest, KuaishouInternalMethodKey, KuaishouInternalMethods, type KuaishouLiveApiRequest, type KuaishouLiveRoomInfoOptions, KuaishouLiveRoomInfoParamsSchema, type KuaishouMethodKey, KuaishouMethodMapping, KuaishouMethodOptMap, KuaishouMethodOptionsMap, KuaishouMethodRoutes, KuaishouMethodToFetcher, KuaishouMethodType, type KuaishouMethodValue, KuaishouReturnTypeMap, type KuaishouUserProfileOptions, KuaishouUserProfileParamsSchema, type KuaishouUserWorkListOptions, KuaishouUserWorkListParamsSchema, KuaishouValidationSchemas, KuaishouVideoParamsSchema, type KuaishouVideoWorkOptions, LogEventData, MajorType, MethodMaps, NetworkErrorEventData, NetworkRetryEventData, type NetworksConfigType, NoteComments, OmitMethodType, OneNote, Options, type Platform, RequestConfig, Result, SearchInfoGeneralData, SearchInfoUser, SearchInfoVideo, SearchNotes, SuccessResult, TypeControl, TypeMode, ValidationError, XiaohongshuApiRoutes, type XiaohongshuCommentsOptions, XiaohongshuDataOptions, XiaohongshuDataOptionsMap, XiaohongshuEmojiList, type XiaohongshuFetcher, XiaohongshuFetcherMethodKey, XiaohongshuFetcherMethods, type XiaohongshuHomeFeedOptions, XiaohongshuInternalMethodKey, XiaohongshuInternalMethods, type XiaohongshuMethodKey, XiaohongshuMethodMapping, XiaohongshuMethodOptMap, XiaohongshuMethodOptionsMap, XiaohongshuMethodRoutes, XiaohongshuMethodToFetcher, XiaohongshuMethodType, type XiaohongshuMethodValue, type XiaohongshuNoteDetailOptions, XiaohongshuReturnTypeMap, type XiaohongshuSearchNotesOptions, type XiaohongshuUserNotesOptions, XiaohongshuUserProfile, type XiaohongshuUserProfileOptions, XiaohongshuValidationSchemas, amagi, amagiEvents, av2bv, bilibiliApiUrls, bilibiliErrorCodeMap, bilibiliFetcher, bilibiliUtils, bv2av, createAmagiClient, createBilibiliRoutes, createBilibiliRoutes as registerBilibiliRoutes, createBoundBilibiliFetcher, createBoundDouyinFetcher, createBoundKuaishouFetcher, createBoundXiaohongshuFetcher, createDouyinRoutes, createDouyinRoutes as registerDouyinRoutes, createErrorResponse, createKuaishouRoutes, createKuaishouRoutes as registerKuaishouRoutes, createSuccessResponse, createXiaohongshuRoutes, createXiaohongshuRoutes as registerXiaohongshuRoutes, Client as default, douyinApiUrls, douyinFetcher, douyinSign, douyinUtils, emitApiError, emitApiSuccess, emitHttpRequest, emitHttpResponse, emitLog, emitLogDebug, emitLogError, emitLogInfo, emitLogMark, emitLogWarn, emitNetworkError, emitNetworkRetry, fetchData, fetchResponse, getApiRoute, getEnglishMethodName, getHeadersAndData, handleError, isNetworkErrorResult, kuaishouApiUrls, kuaishouFetcher, kuaishouSign, kuaishouUtils, parseDmSegMobileReply, qtparam, toFetcherMethod, validateBilibiliParams, validateDouyinParams, validateKuaishouParams, validateXiaohongshuParams, wbi_sign, xiaohongshuApiUrls, xiaohongshuFetcher, xiaohongshuSign, xiaohongshuUtils };