karin-plugin-kkk 2.36.3 → 2.37.1

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,194 @@
1
- import { t as ChalkInstance } from "./index-_og592jD.mjs";
2
1
  import { EventEmitter as EventEmitter$1 } from "node:events";
3
2
  import zod from "zod";
4
3
  import { AxiosRequestConfig, AxiosResponse, RawAxiosResponseHeaders } from "axios";
5
4
  import express from "express";
5
+ //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.d.ts
6
+ /**
7
+ Levels:
8
+ - `0` - All colors disabled.
9
+ - `1` - Basic 16 colors support.
10
+ - `2` - ANSI 256 colors support.
11
+ - `3` - Truecolor 16 million colors support.
12
+ */
13
+ type ColorSupportLevel = 0 | 1 | 2 | 3;
14
+ //#endregion
15
+ //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.d.ts
16
+ interface ChalkInstance {
17
+ (...text: unknown[]): string;
18
+ /**
19
+ The color support for Chalk.
20
+
21
+ By default, color support is automatically detected based on the environment.
22
+
23
+ Levels:
24
+ - `0` - All colors disabled.
25
+ - `1` - Basic 16 colors support.
26
+ - `2` - ANSI 256 colors support.
27
+ - `3` - Truecolor 16 million colors support.
28
+ */
29
+ level: ColorSupportLevel;
30
+ /**
31
+ Use RGB values to set text color.
32
+
33
+ @example
34
+ ```
35
+ import chalk from 'chalk';
36
+
37
+ chalk.rgb(222, 173, 237);
38
+ ```
39
+ */
40
+ rgb: (red: number, green: number, blue: number) => this;
41
+ /**
42
+ Use HEX value to set text color.
43
+
44
+ @param color - Hexadecimal value representing the desired color.
45
+
46
+ @example
47
+ ```
48
+ import chalk from 'chalk';
49
+
50
+ chalk.hex('#DEADED');
51
+ ```
52
+ */
53
+ hex: (color: string) => this;
54
+ /**
55
+ Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color.
6
56
 
57
+ @example
58
+ ```
59
+ import chalk from 'chalk';
60
+
61
+ chalk.ansi256(201);
62
+ ```
63
+ */
64
+ ansi256: (index: number) => this;
65
+ /**
66
+ Use RGB values to set background color.
67
+
68
+ @example
69
+ ```
70
+ import chalk from 'chalk';
71
+
72
+ chalk.bgRgb(222, 173, 237);
73
+ ```
74
+ */
75
+ bgRgb: (red: number, green: number, blue: number) => this;
76
+ /**
77
+ Use HEX value to set background color.
78
+
79
+ @param color - Hexadecimal value representing the desired color.
80
+
81
+ @example
82
+ ```
83
+ import chalk from 'chalk';
84
+
85
+ chalk.bgHex('#DEADED');
86
+ ```
87
+ */
88
+ bgHex: (color: string) => this;
89
+ /**
90
+ Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set background color.
91
+
92
+ @example
93
+ ```
94
+ import chalk from 'chalk';
95
+
96
+ chalk.bgAnsi256(201);
97
+ ```
98
+ */
99
+ bgAnsi256: (index: number) => this;
100
+ /**
101
+ Modifier: Reset the current style.
102
+ */
103
+ readonly reset: this;
104
+ /**
105
+ Modifier: Make the text bold.
106
+ */
107
+ readonly bold: this;
108
+ /**
109
+ Modifier: Make the text have lower opacity.
110
+ */
111
+ readonly dim: this;
112
+ /**
113
+ Modifier: Make the text italic. *(Not widely supported)*
114
+ */
115
+ readonly italic: this;
116
+ /**
117
+ Modifier: Put a horizontal line below the text. *(Not widely supported)*
118
+ */
119
+ readonly underline: this;
120
+ /**
121
+ Modifier: Put a horizontal line above the text. *(Not widely supported)*
122
+ */
123
+ readonly overline: this;
124
+ /**
125
+ Modifier: Invert background and foreground colors.
126
+ */
127
+ readonly inverse: this;
128
+ /**
129
+ Modifier: Print the text but make it invisible.
130
+ */
131
+ readonly hidden: this;
132
+ /**
133
+ Modifier: Puts a horizontal line through the center of the text. *(Not widely supported)*
134
+ */
135
+ readonly strikethrough: this;
136
+ /**
137
+ Modifier: Print the text only when Chalk has a color level above zero.
138
+
139
+ Can be useful for things that are purely cosmetic.
140
+ */
141
+ readonly visible: this;
142
+ readonly black: this;
143
+ readonly red: this;
144
+ readonly green: this;
145
+ readonly yellow: this;
146
+ readonly blue: this;
147
+ readonly magenta: this;
148
+ readonly cyan: this;
149
+ readonly white: this;
150
+ /*
151
+ Alias for `blackBright`.
152
+ */
153
+ readonly gray: this;
154
+ /*
155
+ Alias for `blackBright`.
156
+ */
157
+ readonly grey: this;
158
+ readonly blackBright: this;
159
+ readonly redBright: this;
160
+ readonly greenBright: this;
161
+ readonly yellowBright: this;
162
+ readonly blueBright: this;
163
+ readonly magentaBright: this;
164
+ readonly cyanBright: this;
165
+ readonly whiteBright: this;
166
+ readonly bgBlack: this;
167
+ readonly bgRed: this;
168
+ readonly bgGreen: this;
169
+ readonly bgYellow: this;
170
+ readonly bgBlue: this;
171
+ readonly bgMagenta: this;
172
+ readonly bgCyan: this;
173
+ readonly bgWhite: this;
174
+ /*
175
+ Alias for `bgBlackBright`.
176
+ */
177
+ readonly bgGray: this;
178
+ /*
179
+ Alias for `bgBlackBright`.
180
+ */
181
+ readonly bgGrey: this;
182
+ readonly bgBlackBright: this;
183
+ readonly bgRedBright: this;
184
+ readonly bgGreenBright: this;
185
+ readonly bgYellowBright: this;
186
+ readonly bgBlueBright: this;
187
+ readonly bgMagentaBright: this;
188
+ readonly bgCyanBright: this;
189
+ readonly bgWhiteBright: this;
190
+ }
191
+ //#endregion
7
192
  //#region ../amagi/packages/core/dist/default/index.d.ts
8
193
  //#region src/platform/bilibili/sign/wbi.d.ts
9
194
  /**
@@ -13,7 +198,8 @@ import express from "express";
13
198
  * @returns 返回包含 WBI 签名的查询字符串
14
199
  * @throws 当获取 WBI 密钥失败或 URL 解析失败时抛出错误
15
200
  */
16
- declare const wbi_sign: (BASEURL: string | URL, cookie: string) => Promise<string>; //#endregion
201
+ declare const wbi_sign: (BASEURL: string | URL, cookie: string) => Promise<string>;
202
+ //#endregion
17
203
  //#region src/platform/bilibili/sign/bv2av.d.ts
18
204
  /**
19
205
  * av号转bv号
@@ -26,7 +212,8 @@ declare const av2bv: (aid: number) => `BV1${string}`;
26
212
  * @param bvid bv号
27
213
  * @returns
28
214
  */
29
- declare const bv2av: (bvid: string) => number; //#endregion
215
+ declare const bv2av: (bvid: string) => number;
216
+ //#endregion
30
217
  //#region src/types/ReturnDataType/Bilibili/ProtobufDanmaku/ProtobufDanmaku_V0.d.ts
31
218
  type BiliProtobufDanmaku_V0 = {
32
219
  code: number;
@@ -54,16 +241,19 @@ type Elem = {
54
241
  progress: number;
55
242
  weight: number;
56
243
  [property: string]: any;
57
- }; //#endregion
244
+ };
245
+ //#endregion
58
246
  //#region src/types/ReturnDataType/Bilibili/ProtobufDanmaku/index.d.ts
59
- type BiliProtobufDanmaku = BiliProtobufDanmaku_V0; //#endregion
247
+ type BiliProtobufDanmaku = BiliProtobufDanmaku_V0;
248
+ //#endregion
60
249
  //#region src/platform/bilibili/sign/danmaku_proto.d.ts
61
250
  /**
62
251
  * 解析弹幕分段响应
63
252
  * @param data - 二进制 protobuf 数据
64
253
  * @returns 解析后的弹幕数据
65
254
  */
66
- declare function parseDmSegMobileReply(data: ArrayBuffer | Uint8Array): BiliProtobufDanmaku['data']['elems'][number]; //#endregion
255
+ declare function parseDmSegMobileReply(data: ArrayBuffer | Uint8Array): BiliProtobufDanmaku['data']['elems'][number];
256
+ //#endregion
67
257
  //#region src/types/BilibiliAPIParams.d.ts
68
258
  /**
69
259
  * B站 API 参数类型定义
@@ -80,19 +270,24 @@ declare function parseDmSegMobileReply(data: ArrayBuffer | Uint8Array): BiliProt
80
270
  interface BilibiliMethodOptionsMap {
81
271
  /** 获取单个视频信息 */
82
272
  VideoInfoParams: {
83
- methodType: 'videoInfo'; /** 稿件BVID */
273
+ methodType: 'videoInfo';
274
+ /** 稿件BVID */
84
275
  bvid: string;
85
276
  };
86
277
  /** 获取视频流下载信息 */
87
278
  VideoStreamParams: {
88
- methodType: 'videoStream'; /** 稿件AVID */
89
- avid: number; /** 稿件cid */
279
+ methodType: 'videoStream';
280
+ /** 稿件AVID */
281
+ avid: number;
282
+ /** 稿件cid */
90
283
  cid: number;
91
284
  };
92
285
  /** 获取评论数据 */
93
286
  CommentParams: {
94
- 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) */
95
- type: CommentType; /** 稿件ID,也就是AV号去除前缀后的内容 */
287
+ methodType: 'comments';
288
+ /** 评论区类型代码,详见 [评论区类型代码](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) */
289
+ type: CommentType;
290
+ /** 稿件ID,也就是AV号去除前缀后的内容 */
96
291
  oid: string;
97
292
  /**
98
293
  * 获取的评论数量,默认20
@@ -117,7 +312,8 @@ interface BilibiliMethodOptionsMap {
117
312
  * 平台类型
118
313
  * @defaultValue 1
119
314
  */
120
- plat?: number; /** 当获取第一页评论时存在 */
315
+ plat?: number;
316
+ /** 当获取第一页评论时存在 */
121
317
  seek_rpid?: string;
122
318
  /**
123
319
  * web位置参数
@@ -127,9 +323,12 @@ interface BilibiliMethodOptionsMap {
127
323
  };
128
324
  /** 获取指定评论的回复 */
129
325
  CommentReplyParams: {
130
- 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) */
131
- type: CommentType; /** 目标评论区 ID,也就是AV号去除前缀后的内容 */
132
- oid: string; /** 根评论ID */
326
+ methodType: 'commentReplies';
327
+ /** 评论区类型代码,详见 [评论区类型代码](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) */
328
+ type: CommentType;
329
+ /** 目标评论区 ID,也就是AV号去除前缀后的内容 */
330
+ oid: string;
331
+ /** 根评论ID */
133
332
  root: string;
134
333
  /**
135
334
  * 获取的评论数量,默认20
@@ -139,34 +338,42 @@ interface BilibiliMethodOptionsMap {
139
338
  };
140
339
  /** 获取用户相关数据 */
141
340
  UserParams: {
142
- methodType: 'userCard' | 'userDynamicList' | 'uploaderTotalViews' | 'userSpaceInfo'; /** UP主UID */
341
+ methodType: 'userCard' | 'userDynamicList' | 'uploaderTotalViews' | 'userSpaceInfo';
342
+ /** UP主UID */
143
343
  host_mid: number;
144
344
  };
145
345
  /** 获取动态数据 */
146
346
  DynamicParams: {
147
- methodType: 'dynamicDetail' | 'dynamicCard'; /** 动态ID */
347
+ methodType: 'dynamicDetail' | 'dynamicCard';
348
+ /** 动态ID */
148
349
  dynamic_id: string;
149
350
  };
150
351
  /** 获取番剧基本信息 */
151
352
  BangumiInfoParams: {
152
- methodType: 'bangumiInfo'; /** 稿件ep_id,其含义为 {@link https://www.bilibili.com/anime/index | 番剧索引} 或 **我的追番** 中的番剧,对应网址中包含ss号,如:{@link https://www.bilibili.com/bangumi/play/ss33802} */
153
- season_id?: string; /** 稿件ep_id,番剧的某一集,对应网址中包含ep号,如:{@link https://www.bilibili.com/bangumi/play/ep330798} */
353
+ methodType: 'bangumiInfo';
354
+ /** 稿件ep_id,其含义为 {@link https://www.bilibili.com/anime/index | 番剧索引} 或 **我的追番** 中的番剧,对应网址中包含ss号,如:{@link https://www.bilibili.com/bangumi/play/ss33802} */
355
+ season_id?: string;
356
+ /** 稿件ep_id,番剧的某一集,对应网址中包含ep号,如:{@link https://www.bilibili.com/bangumi/play/ep330798} */
154
357
  ep_id?: string;
155
358
  };
156
359
  /** 获取番剧视频流信息 */
157
360
  BangumiStreamParams: {
158
- methodType: 'bangumiStream'; /** 稿件cid */
159
- cid: number; /** 稿件ep_id,番剧的某一集,对应网址中包含ep号,如:{@link https://www.bilibili.com/bangumi/play/ep330798} */
361
+ methodType: 'bangumiStream';
362
+ /** 稿件cid */
363
+ cid: number;
364
+ /** 稿件ep_id,番剧的某一集,对应网址中包含ep号,如:{@link https://www.bilibili.com/bangumi/play/ep330798} */
160
365
  ep_id: string;
161
366
  };
162
367
  /** 获取直播间信息 */
163
368
  LiveRoomParams: {
164
- methodType: 'liveRoomInfo' | 'liveRoomInit'; /** 直播间ID */
369
+ methodType: 'liveRoomInfo' | 'liveRoomInit';
370
+ /** 直播间ID */
165
371
  room_id: string;
166
372
  };
167
373
  /** 查询二维码状态 */
168
374
  QrcodeParams: {
169
- methodType: 'qrcodeStatus'; /** 扫码登录秘钥 */
375
+ methodType: 'qrcodeStatus';
376
+ /** 扫码登录秘钥 */
170
377
  qrcode_key: string;
171
378
  };
172
379
  /** 获取表情列表 */
@@ -183,12 +390,14 @@ interface BilibiliMethodOptionsMap {
183
390
  };
184
391
  /** BV号转AV号 */
185
392
  Bv2AvParams: {
186
- methodType: 'bvToAv'; /** 视频BV号 */
393
+ methodType: 'bvToAv';
394
+ /** 视频BV号 */
187
395
  bvid: string;
188
396
  };
189
397
  /** AV号转BV号 */
190
398
  Av2BvParams: {
191
- methodType: 'avToBv'; /** 视频AV号 */
399
+ methodType: 'avToBv';
400
+ /** 视频AV号 */
192
401
  avid: number;
193
402
  };
194
403
  /** 获取专栏正文内容 */
@@ -239,7 +448,8 @@ interface BilibiliMethodOptionsMap {
239
448
  * @see https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/danmaku/danmaku_proto.md
240
449
  */
241
450
  DanmakuParams: {
242
- methodType: 'videoDanmaku'; /** 稿件cid */
451
+ methodType: 'videoDanmaku';
452
+ /** 稿件cid */
243
453
  cid: number;
244
454
  /**
245
455
  * 分段序号(从1开始),每6分钟为一段
@@ -249,17 +459,24 @@ interface BilibiliMethodOptionsMap {
249
459
  };
250
460
  /** 从 v_voucher 申请验证码 */
251
461
  ApplyVoucherCaptchaParams: {
252
- methodType: 'captchaFromVoucher'; /** CSRF Token (位于 Cookie 的 bili_jct) */
253
- csrf?: string; /** 结构为字符串 voucher_ 尾随一串以 - 为分隔符的小写 UUID */
462
+ methodType: 'captchaFromVoucher';
463
+ /** CSRF Token (位于 Cookie bili_jct) */
464
+ csrf?: string;
465
+ /** 结构为字符串 voucher_ 尾随一串以 - 为分隔符的小写 UUID */
254
466
  v_voucher: string;
255
467
  };
256
468
  /** 验证验证码结果 */
257
469
  ValidateCaptchaParams: {
258
- methodType: 'validateCaptcha'; /** CSRF Token (位于 Cookie 的 bili_jct) */
259
- csrf?: string; /** 极验3 https://www.geetest.com 的验证码 challenge */
260
- challenge: string; /** 验证码 token */
261
- token: string; /** 人机验证成功后的 validate 参数 */
262
- validate: string; /** 人机验证成功后的 seccode 参数,{validate}|jordan */
470
+ methodType: 'validateCaptcha';
471
+ /** CSRF Token (位于 Cookie bili_jct) */
472
+ csrf?: string;
473
+ /** 极验3 https://www.geetest.com 的验证码 challenge */
474
+ challenge: string;
475
+ /** 验证码 token */
476
+ token: string;
477
+ /** 人机验证成功后的 validate 参数 */
478
+ validate: string;
479
+ /** 人机验证成功后的 seccode 参数,{validate}|jordan */
263
480
  seccode: string;
264
481
  };
265
482
  }
@@ -348,7 +565,8 @@ type BilibiliMethodOptMap = {
348
565
  captchaFromVoucher: BilibiliMethodOptionsMap['ApplyVoucherCaptchaParams'];
349
566
  validateCaptcha: BilibiliMethodOptionsMap['ValidateCaptchaParams'];
350
567
  videoDanmaku: BilibiliMethodOptionsMap['DanmakuParams'];
351
- }; //#endregion
568
+ };
569
+ //#endregion
352
570
  //#region src/validation/bilibili.d.ts
353
571
  /** 视频信息参数验证 */
354
572
  declare const BilibiliVideoParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['VideoInfoParams']>;
@@ -649,7 +867,8 @@ declare const BilibiliMethodRoutes: {
649
867
  readonly videoDanmaku: "/fetch_danmaku";
650
868
  };
651
869
  /** B站方法类型 */
652
- type BilibiliMethodType = keyof typeof BilibiliValidationSchemas; //#endregion
870
+ type BilibiliMethodType = keyof typeof BilibiliValidationSchemas;
871
+ //#endregion
653
872
  //#region src/types/DouyinAPIParams.d.ts
654
873
  /**
655
874
  * 抖音 API 参数类型定义
@@ -666,8 +885,10 @@ type BilibiliMethodType = keyof typeof BilibiliValidationSchemas; //#endregion
666
885
  interface DouyinMethodOptionsMap {
667
886
  /** 获取指定评论的回复 */
668
887
  CommentReplyParams: {
669
- methodType: 'commentReplies'; /** 视频ID */
670
- aweme_id: string; /** 评论ID */
888
+ methodType: 'commentReplies';
889
+ /** 视频ID */
890
+ aweme_id: string;
891
+ /** 评论ID */
671
892
  comment_id: string;
672
893
  /**
673
894
  * 获取的评论数量
@@ -683,28 +904,33 @@ interface DouyinMethodOptionsMap {
683
904
  };
684
905
  /** 获取用户相关数据 */
685
906
  UserParams: {
686
- methodType: 'userProfile'; /** 用户ID */
907
+ methodType: 'userProfile';
908
+ /** 用户ID */
687
909
  sec_uid: string;
688
910
  };
689
911
  /** 获取用户列表数据(视频列表、喜欢列表、推荐列表) */
690
912
  UserListParams: {
691
- methodType: 'userVideoList' | 'userFavoriteList' | 'userRecommendList'; /** 用户ID */
913
+ methodType: 'userVideoList' | 'userFavoriteList' | 'userRecommendList';
914
+ /** 用户ID */
692
915
  sec_uid: string;
693
916
  /**
694
917
  * 获取的数量
695
918
  * @defaultValue 18
696
919
  */
697
- number?: number; /** 游标,用于获取下一页,不用填。 */
920
+ number?: number;
921
+ /** 游标,用于获取下一页,不用填。 */
698
922
  max_cursor?: string;
699
923
  };
700
924
  /** 获取作品数据 */
701
925
  WorkParams: {
702
- methodType: 'videoWork' | 'imageAlbumWork' | 'slidesWork' | 'parseWork' | 'textWork'; /** 视频ID、图集ID、合辑ID */
926
+ methodType: 'videoWork' | 'imageAlbumWork' | 'slidesWork' | 'parseWork' | 'textWork';
927
+ /** 视频ID、图集ID、合辑ID */
703
928
  aweme_id: string;
704
929
  };
705
930
  /** 获取评论数据 */
706
931
  CommentParams: {
707
- methodType: 'comments'; /** 视频ID */
932
+ methodType: 'comments';
933
+ /** 视频ID */
708
934
  aweme_id: string;
709
935
  /**
710
936
  * 获取的评论数量
@@ -720,28 +946,34 @@ interface DouyinMethodOptionsMap {
720
946
  };
721
947
  /** 获取音乐数据 */
722
948
  MusicParams: {
723
- methodType: 'musicInfo'; /** 音乐ID */
949
+ methodType: 'musicInfo';
950
+ /** 音乐ID */
724
951
  music_id: string;
725
952
  };
726
953
  /** 获取直播间信息 */
727
954
  LiveRoomParams: {
728
- methodType: 'liveRoomInfo'; /** 直播间ID,可从用户主页信息信息响应中的room_id_str值取得 */
729
- room_id: string; /** 直播间真实房间号(可通过live.douyin.com/{web_rid}直接访问直播间),可在在用户主页信息响应中的room_data中获取 */
955
+ methodType: 'liveRoomInfo';
956
+ /** 直播间ID,可从用户主页信息信息响应中的room_id_str值取得 */
957
+ room_id: string;
958
+ /** 直播间真实房间号(可通过live.douyin.com/{web_rid}直接访问直播间),可在在用户主页信息响应中的room_data中获取 */
730
959
  web_rid: string;
731
960
  };
732
961
  /** 申请登录二维码 */
733
962
  QrcodeParams: {
734
- methodType: 'loginQrcode'; /** fp指纹 */
963
+ methodType: 'loginQrcode';
964
+ /** fp指纹 */
735
965
  verify_fp: string;
736
966
  };
737
967
  /** 获取热点词数据 */
738
968
  HotWordsParams: {
739
- methodType: 'suggestWords'; /** 搜索词 */
969
+ methodType: 'suggestWords';
970
+ /** 搜索词 */
740
971
  query: string;
741
972
  };
742
973
  /** 搜索数据 */
743
974
  SearchParams: {
744
- methodType: 'search'; /** 搜索词 */
975
+ methodType: 'search';
976
+ /** 搜索词 */
745
977
  query: string;
746
978
  /**
747
979
  * 搜索类型
@@ -752,7 +984,8 @@ interface DouyinMethodOptionsMap {
752
984
  * 搜索数量
753
985
  * @default 10
754
986
  */
755
- number?: number; /** 上次搜索的游标值 */
987
+ number?: number;
988
+ /** 上次搜索的游标值 */
756
989
  search_id?: string;
757
990
  };
758
991
  /** 获取表情列表 */
@@ -765,7 +998,8 @@ interface DouyinMethodOptionsMap {
765
998
  };
766
999
  /** 获取弹幕数据 */
767
1000
  DanmakuParams: {
768
- methodType: 'danmakuList'; /** 视频ID */
1001
+ methodType: 'danmakuList';
1002
+ /** 视频ID */
769
1003
  aweme_id: string;
770
1004
  /**
771
1005
  * 弹幕查询的开始时间(毫秒)
@@ -779,22 +1013,26 @@ interface DouyinMethodOptionsMap {
779
1013
  * 例如:设置为10000表示获取到视频第10秒的弹幕
780
1014
  * 不设置则获取到视频结束
781
1015
  */
782
- end_time?: number; /** 视频总时长 */
1016
+ end_time?: number;
1017
+ /** 视频总时长 */
783
1018
  duration: number;
784
1019
  };
785
1020
  /** 获取视频作品数据 */
786
1021
  VideoWorkParams: {
787
- methodType: 'videoWork'; /** 视频ID */
1022
+ methodType: 'videoWork';
1023
+ /** 视频ID */
788
1024
  aweme_id: string;
789
1025
  };
790
1026
  /** 获取图集作品数据 */
791
1027
  ImageAlbumWorkParams: {
792
- methodType: 'imageAlbumWork'; /** 图集ID */
1028
+ methodType: 'imageAlbumWork';
1029
+ /** 图集ID */
793
1030
  aweme_id: string;
794
1031
  };
795
1032
  /** 获取合辑作品数据 */
796
1033
  SlidesWorkParams: {
797
- methodType: 'slidesWork'; /** 合辑ID */
1034
+ methodType: 'slidesWork';
1035
+ /** 合辑ID */
798
1036
  aweme_id: string;
799
1037
  };
800
1038
  }
@@ -823,7 +1061,8 @@ type DouyinMethodOptMap = {
823
1061
  dynamicEmojiList: DouyinMethodOptionsMap['EmojiProParams'];
824
1062
  commentReplies: DouyinMethodOptionsMap['CommentReplyParams'];
825
1063
  danmakuList: DouyinMethodOptionsMap['DanmakuParams'];
826
- }; //#endregion
1064
+ };
1065
+ //#endregion
827
1066
  //#region src/validation/douyin.d.ts
828
1067
  /** 作品参数验证 */
829
1068
  declare const DouyinWorkParamsSchema: zod.ZodType<DouyinMethodOptionsMap['WorkParams']>;
@@ -1042,32 +1281,40 @@ declare const DouyinMethodRoutes: {
1042
1281
  readonly loginQrcode: "/fetch_login_qrcode";
1043
1282
  };
1044
1283
  /** 抖音方法类型 */
1045
- type DouyinMethodType = keyof typeof DouyinValidationSchemas; //#endregion
1284
+ type DouyinMethodType = keyof typeof DouyinValidationSchemas;
1285
+ //#endregion
1046
1286
  //#region src/types/KuaishouAPIParams.d.ts
1047
1287
  /**
1048
1288
  * 快手 API 方法参数映射
1049
1289
  */
1050
1290
  interface KuaishouMethodOptionsMap {
1051
1291
  VideoInfoParams: {
1052
- methodType: 'videoWork'; /** 作品ID */
1292
+ methodType: 'videoWork';
1293
+ /** 作品ID */
1053
1294
  photoId: string;
1054
1295
  };
1055
1296
  CommentParams: {
1056
- methodType: 'comments'; /** 作品ID */
1297
+ methodType: 'comments';
1298
+ /** 作品ID */
1057
1299
  photoId: string;
1058
1300
  };
1059
1301
  UserProfileParams: {
1060
- methodType: 'userProfile'; /** 用户主页 principalId,可直接取 profile 页 URL 末段 */
1302
+ methodType: 'userProfile';
1303
+ /** 用户主页 principalId,可直接取 profile 页 URL 末段 */
1061
1304
  principalId: string;
1062
1305
  };
1063
1306
  UserWorkListParams: {
1064
- methodType: 'userWorkList'; /** 用户主页 principalId,可直接取 profile 页 URL 末段 */
1065
- principalId: string; /** 分页游标;为空时请求首屏作品列表 */
1066
- pcursor?: string; /** 每页数量,默认 12 */
1307
+ methodType: 'userWorkList';
1308
+ /** 用户主页 principalId,可直接取 profile URL 末段 */
1309
+ principalId: string;
1310
+ /** 分页游标;为空时请求首屏作品列表 */
1311
+ pcursor?: string;
1312
+ /** 每页数量,默认 12 */
1067
1313
  count?: number;
1068
1314
  };
1069
1315
  LiveRoomInfoParams: {
1070
- methodType: 'liveRoomInfo'; /** 直播间 principalId,可直接取 /u/{principalId} URL 末段 */
1316
+ methodType: 'liveRoomInfo';
1317
+ /** 直播间 principalId,可直接取 /u/{principalId} URL 末段 */
1071
1318
  principalId: string;
1072
1319
  };
1073
1320
  EmojiListParams: {
@@ -1084,7 +1331,8 @@ type KuaishouMethodOptMap = {
1084
1331
  userWorkList: KuaishouMethodOptionsMap['UserWorkListParams'];
1085
1332
  liveRoomInfo: KuaishouMethodOptionsMap['LiveRoomInfoParams'];
1086
1333
  emojiList: KuaishouMethodOptionsMap['EmojiListParams'];
1087
- }; //#endregion
1334
+ };
1335
+ //#endregion
1088
1336
  //#region src/validation/kuaishou.d.ts
1089
1337
  /**
1090
1338
  * 快手视频参数验证模式
@@ -1170,39 +1418,54 @@ declare const KuaishouMethodRoutes: {
1170
1418
  readonly liveRoomInfo: "/fetch_live_room_info";
1171
1419
  readonly emojiList: "/fetch_emoji_list";
1172
1420
  };
1173
- type KuaishouMethodType = keyof typeof KuaishouValidationSchemas; //#endregion
1421
+ type KuaishouMethodType = keyof typeof KuaishouValidationSchemas;
1422
+ //#endregion
1174
1423
  //#region src/types/XiaohongshuAPIParams.d.ts
1175
1424
  /**
1176
1425
  * 小红书 API 方法参数映射
1177
1426
  */
1178
1427
  interface XiaohongshuMethodOptionsMap {
1179
1428
  HomeFeedParams: {
1180
- methodType: 'homeFeed'; /** 游标分数,用于分页 */
1181
- cursor_score?: string; /** 每次请求的数量 */
1182
- num?: number; /** 刷新类型 */
1183
- refresh_type?: number; /** 笔记索引 */
1184
- note_index?: number; /** 分类 */
1185
- category?: string; /** 搜索关键词 */
1429
+ methodType: 'homeFeed';
1430
+ /** 游标分数,用于分页 */
1431
+ cursor_score?: string;
1432
+ /** 每次请求的数量 */
1433
+ num?: number;
1434
+ /** 刷新类型 */
1435
+ refresh_type?: number;
1436
+ /** 笔记索引 */
1437
+ note_index?: number;
1438
+ /** 分类 */
1439
+ category?: string;
1440
+ /** 搜索关键词 */
1186
1441
  search_key?: string;
1187
1442
  };
1188
1443
  NoteParams: {
1189
- methodType: 'noteDetail'; /** 笔记ID */
1190
- note_id: string; /** 反爬的 X-Sec-Token 可从web地址中获取 */
1444
+ methodType: 'noteDetail';
1445
+ /** 笔记ID */
1446
+ note_id: string;
1447
+ /** 反爬的 X-Sec-Token 可从web地址中获取 */
1191
1448
  xsec_token: string;
1192
1449
  };
1193
1450
  CommentParams: {
1194
- methodType: 'noteComments'; /** 笔记ID */
1195
- note_id: string; /** 游标 */
1196
- cursor?: string; /** 反爬的 X-Sec-Token 可从web地址中获取 */
1451
+ methodType: 'noteComments';
1452
+ /** 笔记ID */
1453
+ note_id: string;
1454
+ /** 游标 */
1455
+ cursor?: string;
1456
+ /** 反爬的 X-Sec-Token 可从web地址中获取 */
1197
1457
  xsec_token: string;
1198
1458
  };
1199
1459
  UserParams: {
1200
- methodType: 'userProfile'; /** 用户ID */
1460
+ methodType: 'userProfile';
1461
+ /** 用户ID */
1201
1462
  user_id: string;
1202
1463
  };
1203
1464
  UserNoteParams: {
1204
- methodType: 'userNoteList'; /** 用户ID */
1205
- user_id: string; /** 上一页最后一条笔记的ID */
1465
+ methodType: 'userNoteList';
1466
+ /** 用户ID */
1467
+ user_id: string;
1468
+ /** 上一页最后一条笔记的ID */
1206
1469
  cursor?: string;
1207
1470
  /**
1208
1471
  * 每次请求的数量
@@ -1214,11 +1477,16 @@ interface XiaohongshuMethodOptionsMap {
1214
1477
  methodType: 'emojiList';
1215
1478
  };
1216
1479
  SearchNoteParams: {
1217
- methodType: 'searchNotes'; /** 搜索关键词 */
1218
- keyword: string; /** 页码 */
1219
- page?: number; /** 每页数量 */
1220
- page_size?: number; /** 排序类型 */
1221
- sort?: SearchSortType; /** 笔记类型 */
1480
+ methodType: 'searchNotes';
1481
+ /** 搜索关键词 */
1482
+ keyword: string;
1483
+ /** 页码 */
1484
+ page?: number;
1485
+ /** 每页数量 */
1486
+ page_size?: number;
1487
+ /** 排序类型 */
1488
+ sort?: SearchSortType;
1489
+ /** 笔记类型 */
1222
1490
  note_type?: SearchNoteType;
1223
1491
  };
1224
1492
  }
@@ -1233,12 +1501,13 @@ type XiaohongshuMethodOptMap = {
1233
1501
  userNoteList: XiaohongshuMethodOptionsMap['UserNoteParams'];
1234
1502
  emojiList: XiaohongshuMethodOptionsMap['EmojiListParams'];
1235
1503
  searchNotes: XiaohongshuMethodOptionsMap['SearchNoteParams'];
1236
- }; //#endregion
1504
+ };
1505
+ //#endregion
1237
1506
  //#region src/platform/xiaohongshu/API.d.ts
1238
1507
  /**
1239
1508
  * 根据 XiaohongshuMethodOptionsMap 创建一个新的类型,去除每个字段中的 methodType
1240
1509
  */
1241
- type XiaohongshuMethodOptionsWithoutMethodType = { [K in keyof XiaohongshuMethodOptionsMap]: Omit<XiaohongshuMethodOptionsMap[K], 'methodType'> };
1510
+ type XiaohongshuMethodOptionsWithoutMethodType = { [K in keyof XiaohongshuMethodOptionsMap]: Omit<XiaohongshuMethodOptionsMap[K], 'methodType'>; };
1242
1511
  /**
1243
1512
  * 搜索排序类型枚举
1244
1513
  */
@@ -1367,7 +1636,8 @@ declare const xiaohongshuApiUrls: {
1367
1636
  };
1368
1637
  Url: string;
1369
1638
  };
1370
- }; //#endregion
1639
+ };
1640
+ //#endregion
1371
1641
  //#region src/validation/xiaohongshu.d.ts
1372
1642
  /**
1373
1643
  * 小红书验证模式映射
@@ -1461,7 +1731,8 @@ declare const XiaohongshuMethodRoutes: {
1461
1731
  readonly emojiList: "/fetch_emoji_list";
1462
1732
  readonly searchNotes: "/fetch_search_notes";
1463
1733
  };
1464
- type XiaohongshuMethodType = keyof typeof XiaohongshuValidationSchemas; //#endregion
1734
+ type XiaohongshuMethodType = keyof typeof XiaohongshuValidationSchemas;
1735
+ //#endregion
1465
1736
  //#region src/types/NetworksConfigType.d.ts
1466
1737
  type NetworksConfigType = {
1467
1738
  /**
@@ -1659,13 +1930,16 @@ declare enum xiaohongshuAPIErrorCode {
1659
1930
  FREQUENCY_ERROR = 300013,
1660
1931
  /** 浏览器异常,请尝试更换浏览器后重试 */
1661
1932
  BROWSER_ERROR = 300015
1662
- } //#endregion
1933
+ }
1934
+ //#endregion
1663
1935
  //#region src/validation/index.d.ts
1664
1936
  /**
1665
1937
  * 基础响应类型
1666
1938
  */
1667
1939
  type BaseResponse = {
1668
- /** 响应消息 */message: string; /** 响应状态码 */
1940
+ /** 响应消息 */
1941
+ message: string;
1942
+ /** 响应状态码 */
1669
1943
  code: number;
1670
1944
  };
1671
1945
  /**
@@ -1673,16 +1947,22 @@ type BaseResponse = {
1673
1947
  * @template T - 响应数据的类型,默认为any
1674
1948
  */
1675
1949
  type SuccessResult<T = any> = BaseResponse & {
1676
- /** 响应状态 */success: true; /** 响应数据,类型由泛型 T 决定 */
1677
- data: T; /** 成功响应时错误信息为空 */
1950
+ /** 响应状态 */
1951
+ success: true;
1952
+ /** 响应数据,类型由泛型 T 决定 */
1953
+ data: T;
1954
+ /** 成功响应时错误信息为空 */
1678
1955
  error: never;
1679
1956
  };
1680
1957
  /**
1681
1958
  * 错误响应类型
1682
1959
  */
1683
1960
  type ErrorResult = BaseResponse & {
1684
- /** 响应状态 */success: false; /** API 错误类型 */
1685
- error: APIErrorType; /** 错误响应时数据为空 */
1961
+ /** 响应状态 */
1962
+ success: false;
1963
+ /** API 错误类型 */
1964
+ error: APIErrorType;
1965
+ /** 错误响应时数据为空 */
1686
1966
  data: never;
1687
1967
  };
1688
1968
  /**
@@ -1739,7 +2019,8 @@ declare const createSuccessResponse: <T>(data: T, message: string, code?: number
1739
2019
  * @param code - 错误状态码(可选,默认500)
1740
2020
  * @returns 格式化的错误响应对象
1741
2021
  */
1742
- declare const createErrorResponse: (error: APIErrorType, message: string, code?: number, data?: unknown) => ErrorResult; //#endregion
2022
+ declare const createErrorResponse: (error: APIErrorType, message: string, code?: number, data?: unknown) => ErrorResult;
2023
+ //#endregion
1743
2024
  //#region src/types/ReturnDataType/Bilibili/ArticleCard/ArticleCard_V0.d.ts
1744
2025
  type ArticleCard_V0 = {
1745
2026
  code: number;
@@ -2102,9 +2383,11 @@ type Lv5440 = {
2102
2383
  uid: number;
2103
2384
  uname: string;
2104
2385
  [property: string]: any;
2105
- }; //#endregion
2386
+ };
2387
+ //#endregion
2106
2388
  //#region src/types/ReturnDataType/Bilibili/ArticleCard/index.d.ts
2107
- type ArticleCard = ArticleCard_V0; //#endregion
2389
+ type ArticleCard = ArticleCard_V0;
2390
+ //#endregion
2108
2391
  //#region src/types/ReturnDataType/Bilibili/ArticleContent/ArticleContent.d.ts
2109
2392
  type ArticleContent_V0 = {
2110
2393
  code: number;
@@ -2320,9 +2603,11 @@ type Stats$1 = {
2320
2603
  share: number;
2321
2604
  view: number;
2322
2605
  [property: string]: any;
2323
- }; //#endregion
2606
+ };
2607
+ //#endregion
2324
2608
  //#region src/types/ReturnDataType/Bilibili/ArticleContent/index.d.ts
2325
- type ArticleContent = ArticleContent_V0; //#endregion
2609
+ type ArticleContent = ArticleContent_V0;
2610
+ //#endregion
2326
2611
  //#region src/types/ReturnDataType/Bilibili/ArticleInfo/ArticleInfo_V0.d.ts
2327
2612
  type ArticleInfo_V0 = {
2328
2613
  code: number;
@@ -2373,9 +2658,11 @@ type Stats = {
2373
2658
  share: number;
2374
2659
  view: number;
2375
2660
  [property: string]: any;
2376
- }; //#endregion
2661
+ };
2662
+ //#endregion
2377
2663
  //#region src/types/ReturnDataType/Bilibili/ArticleInfo/index.d.ts
2378
- type ArticleInfo = ArticleInfo_V0; //#endregion
2664
+ type ArticleInfo = ArticleInfo_V0;
2665
+ //#endregion
2379
2666
  //#region src/types/ReturnDataType/Bilibili/AV2BV/AV2BV_V0.d.ts
2380
2667
  type BiliAv2Bv_V0 = {
2381
2668
  code: number;
@@ -2386,9 +2673,11 @@ type BiliAv2Bv_V0 = {
2386
2673
  type Data$15 = {
2387
2674
  bvid: string;
2388
2675
  [property: string]: any;
2389
- }; //#endregion
2676
+ };
2677
+ //#endregion
2390
2678
  //#region src/types/ReturnDataType/Bilibili/AV2BV/index.d.ts
2391
- type BiliAv2Bv = BiliAv2Bv_V0; //#endregion
2679
+ type BiliAv2Bv = BiliAv2Bv_V0;
2680
+ //#endregion
2392
2681
  //#region src/types/ReturnDataType/Bilibili/BangumiVideoInfo/BangumiVideoInfo_V0.d.ts
2393
2682
  type BiliBangumiVideoInfo_V0 = {
2394
2683
  code: number;
@@ -2809,9 +3098,11 @@ type VipInfo = {
2809
3098
  status: number;
2810
3099
  type: number;
2811
3100
  [property: string]: any;
2812
- }; //#endregion
3101
+ };
3102
+ //#endregion
2813
3103
  //#region src/types/ReturnDataType/Bilibili/BangumiVideoInfo/index.d.ts
2814
- type BiliBangumiVideoInfo = BiliBangumiVideoInfo_V0; //#endregion
3104
+ type BiliBangumiVideoInfo = BiliBangumiVideoInfo_V0;
3105
+ //#endregion
2815
3106
  //#region src/types/ReturnDataType/Bilibili/BangumiVideoPlayurlIsLogin/BangumiVideoPlayurlIsLogin_V0.d.ts
2816
3107
  /** 番剧下载地址(已登录) */
2817
3108
  type BiliBangumiVideoPlayurlIsLogin_V0 = {
@@ -2953,9 +3244,11 @@ type SupportFormat$3 = {
2953
3244
  sub_description: string;
2954
3245
  superscript: string;
2955
3246
  [property: string]: any;
2956
- }; //#endregion
3247
+ };
3248
+ //#endregion
2957
3249
  //#region src/types/ReturnDataType/Bilibili/BangumiVideoPlayurlIsLogin/index.d.ts
2958
- type BiliBangumiVideoPlayurlIsLogin = BiliBangumiVideoPlayurlIsLogin_V0; //#endregion
3250
+ type BiliBangumiVideoPlayurlIsLogin = BiliBangumiVideoPlayurlIsLogin_V0;
3251
+ //#endregion
2959
3252
  //#region src/types/ReturnDataType/Bilibili/BangumiVideoPlayurlNoLogin/BangumiVideoPlayurlNoLogin_V0.d.ts
2960
3253
  /** 番剧下载地址(未登录) */
2961
3254
  type BiliBangumiVideoPlayurlNoLogin_V0 = {
@@ -3023,9 +3316,11 @@ type SupportFormat$2 = {
3023
3316
  sub_description: string;
3024
3317
  superscript: string;
3025
3318
  [property: string]: any;
3026
- }; //#endregion
3319
+ };
3320
+ //#endregion
3027
3321
  //#region src/types/ReturnDataType/Bilibili/BangumiVideoPlayurlNoLogin/index.d.ts
3028
- type BiliBangumiVideoPlayurlNoLogin = BiliBangumiVideoPlayurlNoLogin_V0; //#endregion
3322
+ type BiliBangumiVideoPlayurlNoLogin = BiliBangumiVideoPlayurlNoLogin_V0;
3323
+ //#endregion
3029
3324
  //#region src/types/ReturnDataType/Bilibili/EmojiList/EmojiList_V0.d.ts
3030
3325
  type BiliEmojiList_V0 = {
3031
3326
  code: number;
@@ -3097,9 +3392,11 @@ type Setting = {
3097
3392
  recent_limit: number;
3098
3393
  schema: string;
3099
3394
  [property: string]: any;
3100
- }; //#endregion
3395
+ };
3396
+ //#endregion
3101
3397
  //#region src/types/ReturnDataType/Bilibili/EmojiList/index.d.ts
3102
- type BiliEmojiList = BiliEmojiList_V0; //#endregion
3398
+ type BiliEmojiList = BiliEmojiList_V0;
3399
+ //#endregion
3103
3400
  //#region src/types/ReturnDataType/Bilibili/BiliCommentReply/BiliCommentReply_V0.d.ts
3104
3401
  type BiliCommentReply_V0 = {
3105
3402
  code: number;
@@ -3596,9 +3893,11 @@ type Top$1 = {
3596
3893
  type Upper = {
3597
3894
  mid: number;
3598
3895
  [property: string]: any;
3599
- }; //#endregion
3896
+ };
3897
+ //#endregion
3600
3898
  //#region src/types/ReturnDataType/Bilibili/BiliCommentReply/index.d.ts
3601
- type BiliCommentReply = BiliCommentReply_V0; //#endregion
3899
+ type BiliCommentReply = BiliCommentReply_V0;
3900
+ //#endregion
3602
3901
  //#region src/types/ReturnDataType/Bilibili/BV2AV/BV2AV_V0.d.ts
3603
3902
  type BiliBv2AV_V0 = {
3604
3903
  code: number;
@@ -3609,9 +3908,11 @@ type BiliBv2AV_V0 = {
3609
3908
  type Data$13 = {
3610
3909
  aid: string;
3611
3910
  [property: string]: any;
3612
- }; //#endregion
3911
+ };
3912
+ //#endregion
3613
3913
  //#region src/types/ReturnDataType/Bilibili/BV2AV/index.d.ts
3614
- type BiliBv2AV = BiliBv2AV_V0; //#endregion
3914
+ type BiliBv2AV = BiliBv2AV_V0;
3915
+ //#endregion
3615
3916
  //#region src/types/ReturnDataType/Bilibili/Captcha/ApplyCaptcha/ApplyCaptcha_V0.d.ts
3616
3917
  type ApplyCaptcha_V0 = {
3617
3918
  code: number;
@@ -3634,9 +3935,11 @@ type Geetest = {
3634
3935
  challenge: string;
3635
3936
  gt: string;
3636
3937
  [property: string]: any;
3637
- }; //#endregion
3938
+ };
3939
+ //#endregion
3638
3940
  //#region src/types/ReturnDataType/Bilibili/Captcha/ApplyCaptcha/index.d.ts
3639
- type ApplyCaptcha = ApplyCaptcha_V0; //#endregion
3941
+ type ApplyCaptcha = ApplyCaptcha_V0;
3942
+ //#endregion
3640
3943
  //#region src/types/ReturnDataType/Bilibili/Captcha/ValidateCaptcha/ValidateCaptcha_V0.d.ts
3641
3944
  type ValidateCaptcha_V0 = {
3642
3945
  code: number;
@@ -3649,9 +3952,11 @@ type DataData$23 = {
3649
3952
  grisk_id: string;
3650
3953
  is_valid: number;
3651
3954
  [property: string]: any;
3652
- }; //#endregion
3955
+ };
3956
+ //#endregion
3653
3957
  //#region src/types/ReturnDataType/Bilibili/Captcha/ValidateCaptcha/index.d.ts
3654
- type ValidateCaptcha = ValidateCaptcha_V0; //#endregion
3958
+ type ValidateCaptcha = ValidateCaptcha_V0;
3959
+ //#endregion
3655
3960
  //#region src/types/ReturnDataType/Bilibili/ColumnInfo/ColumnInfo_V0.d.ts
3656
3961
  type ColumnInfo_V0 = {
3657
3962
  code: number;
@@ -3758,9 +4063,11 @@ type List = {
3758
4063
  update_time: number;
3759
4064
  words: number;
3760
4065
  [property: string]: any;
3761
- }; //#endregion
4066
+ };
4067
+ //#endregion
3762
4068
  //#region src/types/ReturnDataType/Bilibili/ColumnInfo/index.d.ts
3763
- type ColumnInfo = ColumnInfo_V0; //#endregion
4069
+ type ColumnInfo = ColumnInfo_V0;
4070
+ //#endregion
3764
4071
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_ARTICLE/DYNAMIC_TYPE_ARTICLE_V0.d.ts
3765
4072
  type DynamicTypeArticle_V0 = {
3766
4073
  code: number;
@@ -4020,9 +4327,11 @@ type Like$11 = {
4020
4327
  forbidden: boolean;
4021
4328
  status: boolean;
4022
4329
  [property: string]: any;
4023
- }; //#endregion
4330
+ };
4331
+ //#endregion
4024
4332
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_ARTICLE/index.d.ts
4025
- type DynamicTypeArticle = DynamicTypeArticle_V0; //#endregion
4333
+ type DynamicTypeArticle = DynamicTypeArticle_V0;
4334
+ //#endregion
4026
4335
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_AV/DYNAMIC_TYPE_AV_V0.d.ts
4027
4336
  type DynamicTypeAV_V0$1 = {
4028
4337
  code: number;
@@ -4299,9 +4608,11 @@ type Like$10 = {
4299
4608
  forbidden: boolean;
4300
4609
  status: boolean;
4301
4610
  [property: string]: any;
4302
- }; //#endregion
4611
+ };
4612
+ //#endregion
4303
4613
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_AV/index.d.ts
4304
- type DynamicTypeAV = DynamicTypeAV_V0$1; //#endregion
4614
+ type DynamicTypeAV = DynamicTypeAV_V0$1;
4615
+ //#endregion
4305
4616
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_DRAW/DYNAMIC_TYPE_DRAW_V0.d.ts
4306
4617
  type DynamicTypeDraw_V0$1 = {
4307
4618
  code: number;
@@ -4657,9 +4968,11 @@ type Like$9 = {
4657
4968
  forbidden: boolean;
4658
4969
  status: boolean;
4659
4970
  [property: string]: any;
4660
- }; //#endregion
4971
+ };
4972
+ //#endregion
4661
4973
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_DRAW/index.d.ts
4662
- type DynamicTypeDraw = DynamicTypeDraw_V0$1; //#endregion
4974
+ type DynamicTypeDraw = DynamicTypeDraw_V0$1;
4975
+ //#endregion
4663
4976
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_FORWARD/Forward/DYNAMIC_TYPE_AV/DYNAMIC_TYPE_AV_V0.d.ts
4664
4977
  type DynamicTypeAV_V0 = {
4665
4978
  code: number;
@@ -5193,7 +5506,8 @@ type Stat$2 = {
5193
5506
  danmaku: string;
5194
5507
  play: string;
5195
5508
  [property: string]: any;
5196
- }; //#endregion
5509
+ };
5510
+ //#endregion
5197
5511
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_FORWARD/Forward/DYNAMIC_TYPE_AV/DYNAMIC_TYPE_AV_V1.d.ts
5198
5512
  type DynamicTypeAV_V1 = {
5199
5513
  code: number;
@@ -5696,9 +6010,11 @@ type Stat$1 = {
5696
6010
  danmaku: string;
5697
6011
  play: string;
5698
6012
  [property: string]: any;
5699
- }; //#endregion
6013
+ };
6014
+ //#endregion
5700
6015
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_FORWARD/Forward/DYNAMIC_TYPE_AV/index.d.ts
5701
- type DynamicTypeAV$1 = DynamicTypeAV_V0 | DynamicTypeAV_V1; //#endregion
6016
+ type DynamicTypeAV$1 = DynamicTypeAV_V0 | DynamicTypeAV_V1;
6017
+ //#endregion
5702
6018
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_FORWARD/Forward/DYNAMIC_TYPE_DRAW/DYNAMIC_TYPE_DRAW_V0.d.ts
5703
6019
  type DynamicTypeDraw_V0 = {
5704
6020
  code: number;
@@ -6235,7 +6551,8 @@ type SummaryRichTextNode$2 = {
6235
6551
  text: string;
6236
6552
  type: string;
6237
6553
  [property: string]: any;
6238
- }; //#endregion
6554
+ };
6555
+ //#endregion
6239
6556
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_FORWARD/Forward/DYNAMIC_TYPE_DRAW/DYNAMIC_TYPE_DRAW_V1.d.ts
6240
6557
  type DynamicTypeDraw_V1 = {
6241
6558
  code: number;
@@ -6772,9 +7089,11 @@ type SummaryRichTextNode$1 = {
6772
7089
  text: string;
6773
7090
  type: string;
6774
7091
  [property: string]: any;
6775
- }; //#endregion
7092
+ };
7093
+ //#endregion
6776
7094
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_FORWARD/Forward/DYNAMIC_TYPE_DRAW/index.d.ts
6777
- type DynamicTypeDraw$1 = DynamicTypeDraw_V0 | DynamicTypeDraw_V1; //#endregion
7095
+ type DynamicTypeDraw$1 = DynamicTypeDraw_V0 | DynamicTypeDraw_V1;
7096
+ //#endregion
6778
7097
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_FORWARD/Forward/DYNAMIC_TYPE_LIVE_RCMD/DYNAMIC_TYPE_LIVE_RCMD_V0.d.ts
6779
7098
  type DynamicTypeLiveRcmd_V0$1 = {
6780
7099
  code: number;
@@ -7254,9 +7573,11 @@ type LiveRcmd$1 = {
7254
7573
  content: string;
7255
7574
  reserve_type: number;
7256
7575
  [property: string]: any;
7257
- }; //#endregion
7576
+ };
7577
+ //#endregion
7258
7578
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_FORWARD/Forward/DYNAMIC_TYPE_LIVE_RCMD/index.d.ts
7259
- type DynamicTypeLiveRcmd$1 = DynamicTypeLiveRcmd_V0$1; //#endregion
7579
+ type DynamicTypeLiveRcmd$1 = DynamicTypeLiveRcmd_V0$1;
7580
+ //#endregion
7260
7581
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_FORWARD/Forward/DYNAMIC_TYPE_WORD/DYNAMIC_TYPE_WORD_V0.d.ts
7261
7582
  type DynamicTypeWord_V0$1 = {
7262
7583
  code: number;
@@ -7841,9 +8162,11 @@ type SummaryRichTextNode = {
7841
8162
  text: string;
7842
8163
  type: string;
7843
8164
  [property: string]: any;
7844
- }; //#endregion
8165
+ };
8166
+ //#endregion
7845
8167
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_FORWARD/Forward/DYNAMIC_TYPE_WORD/index.d.ts
7846
- type DynamicTypeWord$1 = DynamicTypeWord_V0$1; //#endregion
8168
+ type DynamicTypeWord$1 = DynamicTypeWord_V0$1;
8169
+ //#endregion
7847
8170
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_FORWARD/index.d.ts
7848
8171
  type FixOrig<O, LiteralType extends string> = O & {
7849
8172
  type: LiteralType;
@@ -7875,7 +8198,8 @@ type DynamicTypeForward<T extends keyof OriginalDynamicItemMap> = {
7875
8198
  ttl: number;
7876
8199
  [property: string]: any;
7877
8200
  };
7878
- type DynamicTypeForwardUnion = DynamicTypeForward<DynamicType.AV> | DynamicTypeForward<DynamicType.DRAW> | DynamicTypeForward<DynamicType.WORD> | DynamicTypeForward<DynamicType.LIVE_RCMD>; //#endregion
8201
+ type DynamicTypeForwardUnion = DynamicTypeForward<DynamicType.AV> | DynamicTypeForward<DynamicType.DRAW> | DynamicTypeForward<DynamicType.WORD> | DynamicTypeForward<DynamicType.LIVE_RCMD>;
8202
+ //#endregion
7879
8203
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_LIVE_RCMD/DYNAMIC_TYPE_LIVE_RCMD_V0.d.ts
7880
8204
  type DynamicTypeLiveRcmd_V0 = {
7881
8205
  code: number;
@@ -8151,9 +8475,11 @@ type Like$2 = {
8151
8475
  forbidden: boolean;
8152
8476
  status: boolean;
8153
8477
  [property: string]: any;
8154
- }; //#endregion
8478
+ };
8479
+ //#endregion
8155
8480
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_LIVE_RCMD/index.d.ts
8156
- type DynamicTypeLiveRcmd = DynamicTypeLiveRcmd_V0; //#endregion
8481
+ type DynamicTypeLiveRcmd = DynamicTypeLiveRcmd_V0;
8482
+ //#endregion
8157
8483
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_WORD/DYNAMIC_TYPE_WORD_V0.d.ts
8158
8484
  type DynamicTypeWord_V0 = {
8159
8485
  code: number;
@@ -8480,9 +8806,11 @@ type Like$1 = {
8480
8806
  forbidden: boolean;
8481
8807
  status: boolean;
8482
8808
  [property: string]: any;
8483
- }; //#endregion
8809
+ };
8810
+ //#endregion
8484
8811
  //#region src/types/ReturnDataType/Bilibili/Dynamic/DYNAMIC_TYPE_WORD/index.d.ts
8485
- type DynamicTypeWord = DynamicTypeWord_V0; //#endregion
8812
+ type DynamicTypeWord = DynamicTypeWord_V0;
8813
+ //#endregion
8486
8814
  //#region src/types/ReturnDataType/Bilibili/Dynamic/index.d.ts
8487
8815
  /**
8488
8816
  * 转发动态种子动态主体类型枚举
@@ -8548,7 +8876,8 @@ declare enum AdditionalType {
8548
8876
  RESERVE = "ADDITIONAL_TYPE_RESERVE",
8549
8877
  /** 充电专属抽奖 */
8550
8878
  UPOWER_LOTTERY = "ADDITIONAL_TYPE_UPOWER_LOTTERY"
8551
- } //#endregion
8879
+ }
8880
+ //#endregion
8552
8881
  //#region src/types/ReturnDataType/Bilibili/DynamicInfo/index.d.ts
8553
8882
  declare enum DynamicType {
8554
8883
  AV = "DYNAMIC_TYPE_AV",
@@ -8576,7 +8905,8 @@ type BiliDynamicInfo<T extends DynamicType> = {
8576
8905
  message: string;
8577
8906
  ttl: number;
8578
8907
  [property: string]: any;
8579
- }; //#endregion
8908
+ };
8909
+ //#endregion
8580
8910
  //#region src/types/ReturnDataType/Bilibili/LiveRoomDef/LiveRoomDef_V0.d.ts
8581
8911
  type BiliLiveRoomDef_V0 = {
8582
8912
  code: number;
@@ -8603,9 +8933,11 @@ type Data$12 = {
8603
8933
  special_type: number;
8604
8934
  uid: number;
8605
8935
  [property: string]: any;
8606
- }; //#endregion
8936
+ };
8937
+ //#endregion
8607
8938
  //#region src/types/ReturnDataType/Bilibili/LiveRoomDef/index.d.ts
8608
- type BiliLiveRoomDef = BiliLiveRoomDef_V0; //#endregion
8939
+ type BiliLiveRoomDef = BiliLiveRoomDef_V0;
8940
+ //#endregion
8609
8941
  //#region src/types/ReturnDataType/Bilibili/LiveRoomDetail/LiveRoomDetail_V0.d.ts
8610
8942
  type BiliLiveRoomDetail_V0 = {
8611
8943
  code: number;
@@ -8696,9 +9028,11 @@ type StudioInfo = {
8696
9028
  master_list: string[];
8697
9029
  status: number;
8698
9030
  [property: string]: any;
8699
- }; //#endregion
9031
+ };
9032
+ //#endregion
8700
9033
  //#region src/types/ReturnDataType/Bilibili/LiveRoomDetail/index.d.ts
8701
- type BiliLiveRoomDetail = BiliLiveRoomDetail_V0; //#endregion
9034
+ type BiliLiveRoomDetail = BiliLiveRoomDetail_V0;
9035
+ //#endregion
8702
9036
  //#region src/types/ReturnDataType/Bilibili/Login/CheckQrcode/CheckQrcode_V0.d.ts
8703
9037
  type BiliCheckQrcode_V0 = {
8704
9038
  code: number;
@@ -8718,9 +9052,11 @@ type FluffyData = {
8718
9052
  timestamp: number;
8719
9053
  url: string;
8720
9054
  [property: string]: any;
8721
- }; //#endregion
9055
+ };
9056
+ //#endregion
8722
9057
  //#region src/types/ReturnDataType/Bilibili/Login/CheckQrcode/index.d.ts
8723
- type BiliCheckQrcode = BiliCheckQrcode_V0; //#endregion
9058
+ type BiliCheckQrcode = BiliCheckQrcode_V0;
9059
+ //#endregion
8724
9060
  //#region src/types/ReturnDataType/Bilibili/Login/NewLoginQrcode/NewLoginQrcode.d.ts
8725
9061
  type BiliNewLoginQrcode_V0 = {
8726
9062
  code: number;
@@ -8733,9 +9069,11 @@ type Data$10 = {
8733
9069
  qrcode_key: string;
8734
9070
  url: string;
8735
9071
  [property: string]: any;
8736
- }; //#endregion
9072
+ };
9073
+ //#endregion
8737
9074
  //#region src/types/ReturnDataType/Bilibili/Login/NewLoginQrcode/index.d.ts
8738
- type BiliNewLoginQrcode = BiliNewLoginQrcode_V0; //#endregion
9075
+ type BiliNewLoginQrcode = BiliNewLoginQrcode_V0;
9076
+ //#endregion
8739
9077
  //#region src/types/ReturnDataType/Bilibili/OneWork/OneWork_V0.d.ts
8740
9078
  type BiliOneWork_V0 = {
8741
9079
  code: number;
@@ -8879,9 +9217,11 @@ type Subtitle = {
8879
9217
  type UserGarb = {
8880
9218
  url_image_ani_cut: string;
8881
9219
  [property: string]: any;
8882
- }; //#endregion
9220
+ };
9221
+ //#endregion
8883
9222
  //#region src/types/ReturnDataType/Bilibili/OneWork/index.d.ts
8884
- type BiliOneWork = BiliOneWork_V0; //#endregion
9223
+ type BiliOneWork = BiliOneWork_V0;
9224
+ //#endregion
8885
9225
  //#region src/types/ReturnDataType/Bilibili/UserDynamic/index.d.ts
8886
9226
  type BiliUserDynamic = {
8887
9227
  code: number;
@@ -8911,7 +9251,8 @@ type DataData$8<T extends DynamicType = DynamicType> = {
8911
9251
  update_baseline: string;
8912
9252
  update_num: number;
8913
9253
  [property: string]: any;
8914
- }; //#endregion
9254
+ };
9255
+ //#endregion
8915
9256
  //#region src/types/ReturnDataType/Bilibili/UserFullView/UserFullView_V0.d.ts
8916
9257
  type BiliUserFullView_V0 = {
8917
9258
  code: number;
@@ -8935,9 +9276,11 @@ type Archive = {
8935
9276
  type Article = {
8936
9277
  view: number;
8937
9278
  [property: string]: any;
8938
- }; //#endregion
9279
+ };
9280
+ //#endregion
8939
9281
  //#region src/types/ReturnDataType/Bilibili/UserFullView/index.d.ts
8940
- type BiliUserFullView = BiliUserFullView_V0; //#endregion
9282
+ type BiliUserFullView = BiliUserFullView_V0;
9283
+ //#endregion
8941
9284
  //#region src/types/ReturnDataType/Bilibili/UserProfile/UserProfile_V0.d.ts
8942
9285
  type BiliUserProfile_V0 = {
8943
9286
  code: number;
@@ -9073,9 +9416,11 @@ type Space = {
9073
9416
  l_img: string;
9074
9417
  s_img: string;
9075
9418
  [property: string]: any;
9076
- }; //#endregion
9419
+ };
9420
+ //#endregion
9077
9421
  //#region src/types/ReturnDataType/Bilibili/UserProfile/index.d.ts
9078
- type BiliUserProfile = BiliUserProfile_V0; //#endregion
9422
+ type BiliUserProfile = BiliUserProfile_V0;
9423
+ //#endregion
9079
9424
  //#region src/types/ReturnDataType/Bilibili/UserSpaceInfo/UserSpaceInfo_V0.d.ts
9080
9425
  type UserSpaceInfo_V0 = {
9081
9426
  code: number;
@@ -9310,9 +9655,11 @@ type OttInfo = {
9310
9655
  type SuperVip = {
9311
9656
  is_super_vip: boolean;
9312
9657
  [property: string]: any;
9313
- }; //#endregion
9658
+ };
9659
+ //#endregion
9314
9660
  //#region src/types/ReturnDataType/Bilibili/UserSpaceInfo/index.d.ts
9315
- type UserSpaceInfo = UserSpaceInfo_V0; //#endregion
9661
+ type UserSpaceInfo = UserSpaceInfo_V0;
9662
+ //#endregion
9316
9663
  //#region src/types/ReturnDataType/Bilibili/VideoPlayurlIsLogin/VideoPlayurlIsLogin_V0.d.ts
9317
9664
  /** 视频下载地址(已登录) */
9318
9665
  type BiliVideoPlayurlIsLogin_V0 = {
@@ -9430,9 +9777,11 @@ type SupportFormat$1 = {
9430
9777
  quality: number;
9431
9778
  superscript: string;
9432
9779
  [property: string]: any;
9433
- }; //#endregion
9780
+ };
9781
+ //#endregion
9434
9782
  //#region src/types/ReturnDataType/Bilibili/VideoPlayurlIsLogin/index.d.ts
9435
- type BiliVideoPlayurlIsLogin = BiliVideoPlayurlIsLogin_V0; //#endregion
9783
+ type BiliVideoPlayurlIsLogin = BiliVideoPlayurlIsLogin_V0;
9784
+ //#endregion
9436
9785
  //#region src/types/ReturnDataType/Bilibili/VideoPlayurlNoLogin/VideoPlayurlNoLogin_V0.d.ts
9437
9786
  /** 视频下载地址(未登录) */
9438
9787
  type BiliBiliVideoPlayurlNoLogin_V0 = {
@@ -9481,9 +9830,11 @@ type SupportFormat = {
9481
9830
  quality?: number;
9482
9831
  superscript?: string;
9483
9832
  [property: string]: any;
9484
- }; //#endregion
9833
+ };
9834
+ //#endregion
9485
9835
  //#region src/types/ReturnDataType/Bilibili/VideoPlayurlNoLogin/index.d.ts
9486
- type BiliBiliVideoPlayurlNoLogin = BiliBiliVideoPlayurlNoLogin_V0; //#endregion
9836
+ type BiliBiliVideoPlayurlNoLogin = BiliBiliVideoPlayurlNoLogin_V0;
9837
+ //#endregion
9487
9838
  //#region src/types/ReturnDataType/Bilibili/WorkComments/WorkComments_V0.d.ts
9488
9839
  type BiliWorkComments_V0 = {
9489
9840
  code: number;
@@ -11265,9 +11616,11 @@ type TopReplyUpAction = {
11265
11616
  type DataUpper = {
11266
11617
  mid: number;
11267
11618
  [property: string]: any;
11268
- }; //#endregion
11619
+ };
11620
+ //#endregion
11269
11621
  //#region src/types/ReturnDataType/Bilibili/WorkComments/index.d.ts
11270
- type BiliWorkComments = BiliWorkComments_V0; //#endregion
11622
+ type BiliWorkComments = BiliWorkComments_V0;
11623
+ //#endregion
11271
11624
  //#region src/types/ReturnDataType/Bilibili/DynamicCard/DynamicCard_V0.d.ts
11272
11625
  type BiliDynamicCard_V0 = {
11273
11626
  code: number;
@@ -11397,9 +11750,11 @@ type Relation = {
11397
11750
  is_followed: number;
11398
11751
  status: number;
11399
11752
  [property: string]: any;
11400
- }; //#endregion
11753
+ };
11754
+ //#endregion
11401
11755
  //#region src/types/ReturnDataType/Bilibili/DynamicCard/index.d.ts
11402
- type BiliDynamicCard = BiliDynamicCard_V0; //#endregion
11756
+ type BiliDynamicCard = BiliDynamicCard_V0;
11757
+ //#endregion
11403
11758
  //#region src/types/ReturnDataType/Bilibili/index.d.ts
11404
11759
  /**
11405
11760
  * B站返回类型映射
@@ -11435,7 +11790,8 @@ interface BilibiliReturnTypeMap {
11435
11790
  captchaFromVoucher: ApplyCaptcha;
11436
11791
  validateCaptcha: ValidateCaptcha;
11437
11792
  videoDanmaku: BiliProtobufDanmaku;
11438
- } //#endregion
11793
+ }
11794
+ //#endregion
11439
11795
  //#region src/types/ReturnDataType/Douyin/ArticleWork/ArticleWork_V0.d.ts
11440
11796
  type ArticleWork_V0 = {
11441
11797
  aweme_detail: AwemeDetail$3;
@@ -12158,9 +12514,11 @@ type XiguaBaseInfo$6 = {
12158
12514
  type LogPb$14 = {
12159
12515
  impr_id: string;
12160
12516
  [property: string]: any;
12161
- }; //#endregion
12517
+ };
12518
+ //#endregion
12162
12519
  //#region src/types/ReturnDataType/Douyin/ArticleWork/index.d.ts
12163
- type ArticleWork = ArticleWork_V0; //#endregion
12520
+ type ArticleWork = ArticleWork_V0;
12521
+ //#endregion
12164
12522
  //#region src/types/ReturnDataType/Douyin/CommentReply/CommentReply_V0.d.ts
12165
12523
  type CommentReply_V0 = {
12166
12524
  comments: Comment$2[];
@@ -12312,9 +12670,11 @@ type Extra$7 = {
12312
12670
  type LogPb$13 = {
12313
12671
  impr_id: string;
12314
12672
  [property: string]: any;
12315
- }; //#endregion
12673
+ };
12674
+ //#endregion
12316
12675
  //#region src/types/ReturnDataType/Douyin/CommentReply/index.d.ts
12317
- type CommentReply = CommentReply_V0; //#endregion
12676
+ type CommentReply = CommentReply_V0;
12677
+ //#endregion
12318
12678
  //#region src/types/ReturnDataType/Douyin/DyDanmakuList/DyDanmakuList_V0.d.ts
12319
12679
  type DyDanmakuList_V0 = {
12320
12680
  danmaku_list: DanmakuList[];
@@ -12362,9 +12722,11 @@ type DataExtra$1 = {
12362
12722
  type LogPb$12 = {
12363
12723
  impr_id: string;
12364
12724
  [property: string]: any;
12365
- }; //#endregion
12725
+ };
12726
+ //#endregion
12366
12727
  //#region src/types/ReturnDataType/Douyin/DyDanmakuList/index.d.ts
12367
- type DyDanmakuList = DyDanmakuList_V0; //#endregion
12728
+ type DyDanmakuList = DyDanmakuList_V0;
12729
+ //#endregion
12368
12730
  //#region src/types/ReturnDataType/Douyin/EmojiList/EmojiList_V0.d.ts
12369
12731
  type DyEmojiList_V0 = {
12370
12732
  emoji_list: EmojiListElement[];
@@ -12383,9 +12745,11 @@ type Emojiurl = {
12383
12745
  uri: string;
12384
12746
  url_list: string[];
12385
12747
  [property: string]: any;
12386
- }; //#endregion
12748
+ };
12749
+ //#endregion
12387
12750
  //#region src/types/ReturnDataType/Douyin/EmojiList/index.d.ts
12388
- type DyEmojiList = DyEmojiList_V0; //#endregion
12751
+ type DyEmojiList = DyEmojiList_V0;
12752
+ //#endregion
12389
12753
  //#region src/types/ReturnDataType/Douyin/EmojiProList/EmojiProList_V0.d.ts
12390
12754
  type DyEmojiProList_V0 = {
12391
12755
  decision_trees: DecisionTrees;
@@ -12927,9 +13291,11 @@ type ReportToggles = {
12927
13291
  interactive_resources_v2: number;
12928
13292
  plus_panel_diff: number;
12929
13293
  [property: string]: any;
12930
- }; //#endregion
13294
+ };
13295
+ //#endregion
12931
13296
  //#region src/types/ReturnDataType/Douyin/EmojiProList/index.d.ts
12932
- type DyEmojiProList = DyEmojiProList_V0; //#endregion
13297
+ type DyEmojiProList = DyEmojiProList_V0;
13298
+ //#endregion
12933
13299
  //#region src/types/ReturnDataType/Douyin/ImageAlbumWork/ImageAlbumWork_V0.d.ts
12934
13300
  /** 图集作品 */
12935
13301
  type DyImageAlbumWork_V0 = {
@@ -13617,9 +13983,11 @@ type XiguaBaseInfo$5 = {
13617
13983
  type LogPb$10 = {
13618
13984
  impr_id: string;
13619
13985
  [property: string]: any;
13620
- }; //#endregion
13986
+ };
13987
+ //#endregion
13621
13988
  //#region src/types/ReturnDataType/Douyin/ImageAlbumWork/index.d.ts
13622
- type DyImageAlbumWork = DyImageAlbumWork_V0; //#endregion
13989
+ type DyImageAlbumWork = DyImageAlbumWork_V0;
13990
+ //#endregion
13623
13991
  //#region src/types/ReturnDataType/Douyin/MusicWork/MusicWork_V0.d.ts
13624
13992
  type DyMusicWork_V0 = {
13625
13993
  extra: Extra$6;
@@ -13848,9 +14216,11 @@ type MediumCoverurl = {
13848
14216
  uri: string;
13849
14217
  url_list: string[];
13850
14218
  [property: string]: any;
13851
- }; //#endregion
14219
+ };
14220
+ //#endregion
13852
14221
  //#region src/types/ReturnDataType/Douyin/MusicWork/index.d.ts
13853
- type DyMusicWork = DyMusicWork_V0; //#endregion
14222
+ type DyMusicWork = DyMusicWork_V0;
14223
+ //#endregion
13854
14224
  //#region src/types/ReturnDataType/Douyin/SearchInfo/SearchInfoGeneral/SearchInfoGeneral_V0.d.ts
13855
14225
  type SearchInfoGeneralData_V0 = {
13856
14226
  ad_info: {
@@ -15005,9 +15375,11 @@ type MultiColumnsInfo = {
15005
15375
  group_tag: string;
15006
15376
  is_multi_columns: boolean;
15007
15377
  [property: string]: any;
15008
- }; //#endregion
15378
+ };
15379
+ //#endregion
15009
15380
  //#region src/types/ReturnDataType/Douyin/SearchInfo/SearchInfoGeneral/index.d.ts
15010
- type SearchInfoGeneralData = SearchInfoGeneralData_V0; //#endregion
15381
+ type SearchInfoGeneralData = SearchInfoGeneralData_V0;
15382
+ //#endregion
15011
15383
  //#region src/types/ReturnDataType/Douyin/SearchInfo/SearchInfoUser/SearchInfoUser_V0.d.ts
15012
15384
  type SearchInfoUser_V0 = {
15013
15385
  challenge_list: null;
@@ -15160,9 +15532,11 @@ type UserTag = {
15160
15532
  icon_url: string;
15161
15533
  type: string;
15162
15534
  [property: string]: any;
15163
- }; //#endregion
15535
+ };
15536
+ //#endregion
15164
15537
  //#region src/types/ReturnDataType/Douyin/SearchInfo/SearchInfoUser/index.d.ts
15165
- type SearchInfoUser = SearchInfoUser_V0; //#endregion
15538
+ type SearchInfoUser = SearchInfoUser_V0;
15539
+ //#endregion
15166
15540
  //#region src/types/ReturnDataType/Douyin/SearchInfo/SearchInfoVideo/SearchInfoVideo_V0.d.ts
15167
15541
  type SearchInfoVideo_V0 = {
15168
15542
  aweme_list: null;
@@ -15844,9 +16218,11 @@ type SearchNilText = {
15844
16218
  type LogPb$6 = {
15845
16219
  impr_id: string;
15846
16220
  [property: string]: any;
15847
- }; //#endregion
16221
+ };
16222
+ //#endregion
15848
16223
  //#region src/types/ReturnDataType/Douyin/SearchInfo/SearchInfoVideo/index.d.ts
15849
- type SearchInfoVideo = SearchInfoVideo_V0; //#endregion
16224
+ type SearchInfoVideo = SearchInfoVideo_V0;
16225
+ //#endregion
15850
16226
  //#region src/types/ReturnDataType/Douyin/SlidesWork/SlidesWork_V0.d.ts
15851
16227
  /** 合辑作品 */
15852
16228
  type DySlidesWork_V0 = {
@@ -16619,9 +16995,11 @@ type XiguaBaseInfo$4 = {
16619
16995
  type LogPb$5 = {
16620
16996
  impr_id: string;
16621
16997
  [property: string]: any;
16622
- }; //#endregion
16998
+ };
16999
+ //#endregion
16623
17000
  //#region src/types/ReturnDataType/Douyin/SlidesWork/index.d.ts
16624
- type DySlidesWork = DySlidesWork_V0; //#endregion
17001
+ type DySlidesWork = DySlidesWork_V0;
17002
+ //#endregion
16625
17003
  //#region src/types/ReturnDataType/Douyin/SuggestWords/SuggestWords_V0.d.ts
16626
17004
  type DySuggestWords_V0 = {
16627
17005
  data: Datum$1[];
@@ -16689,9 +17067,11 @@ type TimeCost = {
16689
17067
  server_engine_cost: string;
16690
17068
  stream_inner: string;
16691
17069
  [property: string]: any;
16692
- }; //#endregion
17070
+ };
17071
+ //#endregion
16693
17072
  //#region src/types/ReturnDataType/Douyin/SuggestWords/index.d.ts
16694
- type DySuggestWords = DySuggestWords_V0; //#endregion
17073
+ type DySuggestWords = DySuggestWords_V0;
17074
+ //#endregion
16695
17075
  //#region src/types/ReturnDataType/Douyin/UserFavoriteList/UserFavoriteList_V0.d.ts
16696
17076
  type UserFavoriteList_V0 = {
16697
17077
  aweme_list: AwemeList$2[];
@@ -17772,9 +18152,11 @@ type XiguaBaseInfo$3 = {
17772
18152
  type LogPb$4 = {
17773
18153
  impr_id: string;
17774
18154
  [property: string]: any;
17775
- }; //#endregion
18155
+ };
18156
+ //#endregion
17776
18157
  //#region src/types/ReturnDataType/Douyin/UserFavoriteList/index.d.ts
17777
- type DyUserFavoriteList = UserFavoriteList_V0; //#endregion
18158
+ type DyUserFavoriteList = UserFavoriteList_V0;
18159
+ //#endregion
17778
18160
  //#region src/types/ReturnDataType/Douyin/UserInfo/UserInfo_V0.d.ts
17779
18161
  type DyUserInfo_V0 = {
17780
18162
  extra: Extra$1;
@@ -18099,9 +18481,11 @@ type WhiteCoverurl = {
18099
18481
  uri: string;
18100
18482
  url_list: string[];
18101
18483
  [property: string]: any;
18102
- }; //#endregion
18484
+ };
18485
+ //#endregion
18103
18486
  //#region src/types/ReturnDataType/Douyin/UserInfo/index.d.ts
18104
- type DyUserInfo = DyUserInfo_V0; //#endregion
18487
+ type DyUserInfo = DyUserInfo_V0;
18488
+ //#endregion
18105
18489
  //#region src/types/ReturnDataType/Douyin/UserLiveVideos/UserLiveVideos_V0.d.ts
18106
18490
  type DyUserLiveVideos_V0 = {
18107
18491
  data: Data$3;
@@ -20185,9 +20569,11 @@ type WebStreamurl = {
20185
20569
  type UserLiveVideosExtra = {
20186
20570
  now: number;
20187
20571
  [property: string]: any;
20188
- }; //#endregion
20572
+ };
20573
+ //#endregion
20189
20574
  //#region src/types/ReturnDataType/Douyin/UserLiveVideos/index.d.ts
20190
- type DyUserLiveVideos = DyUserLiveVideos_V0; //#endregion
20575
+ type DyUserLiveVideos = DyUserLiveVideos_V0;
20576
+ //#endregion
20191
20577
  //#region src/types/ReturnDataType/Douyin/UserPostVideos/UserPostVideos_V0.d.ts
20192
20578
  type DyUserPostVideos_V0 = {
20193
20579
  aweme_list: AwemeList$1[];
@@ -21102,9 +21488,11 @@ type XiguaBaseInfo$2 = {
21102
21488
  type LogPb$2 = {
21103
21489
  impr_id: string;
21104
21490
  [property: string]: any;
21105
- }; //#endregion
21491
+ };
21492
+ //#endregion
21106
21493
  //#region src/types/ReturnDataType/Douyin/UserPostVideos/index.d.ts
21107
- type DyUserPostVideos = DyUserPostVideos_V0; //#endregion
21494
+ type DyUserPostVideos = DyUserPostVideos_V0;
21495
+ //#endregion
21108
21496
  //#region src/types/ReturnDataType/Douyin/UserRecommendList/UserRecommendList_V0.d.ts
21109
21497
  type UserRecommendList_V0 = {
21110
21498
  aweme_date: AwemeDate;
@@ -22994,9 +23382,11 @@ type XiguaBaseInfo$1 = {
22994
23382
  type XiguaTask = {
22995
23383
  is_xigua_task: boolean;
22996
23384
  [property: string]: any;
22997
- }; //#endregion
23385
+ };
23386
+ //#endregion
22998
23387
  //#region src/types/ReturnDataType/Douyin/UserRecommendList/index.d.ts
22999
- type UserRecommendList = UserRecommendList_V0; //#endregion
23388
+ type UserRecommendList = UserRecommendList_V0;
23389
+ //#endregion
23000
23390
  //#region src/types/ReturnDataType/Douyin/VideoWork/VideoWork_V0.d.ts
23001
23391
  /** 单个视频作品 */
23002
23392
  type DyVideoWWork_V0 = {
@@ -23740,9 +24130,11 @@ type XiguaBaseInfo = {
23740
24130
  type LogPb$1 = {
23741
24131
  impr_id: string;
23742
24132
  [property: string]: any;
23743
- }; //#endregion
24133
+ };
24134
+ //#endregion
23744
24135
  //#region src/types/ReturnDataType/Douyin/VideoWork/index.d.ts
23745
- type DyVideoWork = DyVideoWWork_V0; //#endregion
24136
+ type DyVideoWork = DyVideoWWork_V0;
24137
+ //#endregion
23746
24138
  //#region src/types/ReturnDataType/Douyin/WorkComments/WorkComments_V0.d.ts
23747
24139
  type DyWorkComments_V0 = {
23748
24140
  comment_common_data: string;
@@ -24064,9 +24456,11 @@ type FastResponseComment = {
24064
24456
  type LogPb = {
24065
24457
  impr_id: string;
24066
24458
  [property: string]: any;
24067
- }; //#endregion
24459
+ };
24460
+ //#endregion
24068
24461
  //#region src/types/ReturnDataType/Douyin/WorkComments/index.d.ts
24069
- type DyWorkComments = DyWorkComments_V0; //#endregion
24462
+ type DyWorkComments = DyWorkComments_V0;
24463
+ //#endregion
24070
24464
  //#region src/types/ReturnDataType/Douyin/index.d.ts
24071
24465
  type DySearchInfo = SearchInfoGeneralData | SearchInfoUser | SearchInfoVideo;
24072
24466
  /**
@@ -24094,7 +24488,8 @@ interface DouyinReturnTypeMap {
24094
24488
  liveRoomInfo: DyUserLiveVideos;
24095
24489
  loginQrcode: any;
24096
24490
  commentReplies: CommentReply;
24097
- } //#endregion
24491
+ }
24492
+ //#endregion
24098
24493
  //#region src/types/ReturnDataType/Kuaishou/EmojiList/EmojiList_V0.d.ts
24099
24494
  type KsEmojiList_V0 = {
24100
24495
  data: Data$2;
@@ -24695,9 +25090,11 @@ type IconUrls = {
24695
25090
  '[龍]': string;
24696
25091
  '[龙]': string;
24697
25092
  [property: string]: any;
24698
- }; //#endregion
25093
+ };
25094
+ //#endregion
24699
25095
  //#region src/types/ReturnDataType/Kuaishou/EmojiList/index.d.ts
24700
- type KsEmojiList = KsEmojiList_V0; //#endregion
25096
+ type KsEmojiList = KsEmojiList_V0;
25097
+ //#endregion
24701
25098
  //#region src/types/ReturnDataType/Kuaishou/LiveRoomDetail/LiveRoomDetail_V0.d.ts
24702
25099
  type KsLiveRoomInfo_V0 = {
24703
25100
  principalId?: string;
@@ -24812,9 +25209,11 @@ type KsLiveRoomConfig = {
24812
25209
  multiResolutionPlayUrls?: any[];
24813
25210
  user?: Record<string, any>;
24814
25211
  [property: string]: any;
24815
- }; //#endregion
25212
+ };
25213
+ //#endregion
24816
25214
  //#region src/types/ReturnDataType/Kuaishou/LiveRoomDetail/index.d.ts
24817
- type KsLiveRoomInfo = KsLiveRoomInfo_V0; //#endregion
25215
+ type KsLiveRoomInfo = KsLiveRoomInfo_V0;
25216
+ //#endregion
24818
25217
  //#region src/types/ReturnDataType/Kuaishou/OneWork/OneWork_V0.d.ts
24819
25218
  type KsOneWork_V0 = {
24820
25219
  data: Data$1;
@@ -25112,9 +25511,11 @@ type Tag$1 = {
25112
25511
  name: string;
25113
25512
  type: string;
25114
25513
  [property: string]: any;
25115
- }; //#endregion
25514
+ };
25515
+ //#endregion
25116
25516
  //#region src/types/ReturnDataType/Kuaishou/OneWork/index.d.ts
25117
- type KsOneWork = KsOneWork_V0; //#endregion
25517
+ type KsOneWork = KsOneWork_V0;
25518
+ //#endregion
25118
25519
  //#region src/types/ReturnDataType/Kuaishou/UserCommon.d.ts
25119
25520
  type KsUserProfileUserInfo = {
25120
25521
  id: string;
@@ -25196,7 +25597,8 @@ type KsUserProfileCounts = {
25196
25597
  review?: number;
25197
25598
  open?: number;
25198
25599
  [property: string]: any;
25199
- }; //#endregion
25600
+ };
25601
+ //#endregion
25200
25602
  //#region src/types/ReturnDataType/Kuaishou/UserHomeDetail.d.ts
25201
25603
  type KsUserHomeDetail = {
25202
25604
  principalId: string;
@@ -25309,9 +25711,11 @@ type KsUserHomeFollowState = {
25309
25711
  type KsUserHomeFollowButtonState = {
25310
25712
  followStatus: string;
25311
25713
  [property: string]: any;
25312
- }; //#endregion
25714
+ };
25715
+ //#endregion
25313
25716
  //#region src/types/ReturnDataType/Kuaishou/UserProfile.d.ts
25314
- type KsUserProfile = KsUserHomeDetail; //#endregion
25717
+ type KsUserProfile = KsUserHomeDetail;
25718
+ //#endregion
25315
25719
  //#region src/types/ReturnDataType/Kuaishou/UserWorkList.d.ts
25316
25720
  /**
25317
25721
  * 快手用户公开视频列表。
@@ -25326,7 +25730,8 @@ type KsUserWorkList = {
25326
25730
  hasMore: boolean;
25327
25731
  result: number;
25328
25732
  [property: string]: any;
25329
- }; //#endregion
25733
+ };
25734
+ //#endregion
25330
25735
  //#region src/types/ReturnDataType/Kuaishou/WorkComments/WorkComments_V0.d.ts
25331
25736
  type KsWorkComments_V0 = {
25332
25737
  data: Data;
@@ -25377,9 +25782,11 @@ type SubComment$1 = {
25377
25782
  status: string;
25378
25783
  timestamp: number;
25379
25784
  [property: string]: any;
25380
- }; //#endregion
25785
+ };
25786
+ //#endregion
25381
25787
  //#region src/types/ReturnDataType/Kuaishou/WorkComments/index.d.ts
25382
- type KsWorkComments = KsWorkComments_V0; //#endregion
25788
+ type KsWorkComments = KsWorkComments_V0;
25789
+ //#endregion
25383
25790
  //#region src/types/ReturnDataType/Kuaishou/index.d.ts
25384
25791
  /**
25385
25792
  * 快手返回类型映射
@@ -25391,7 +25798,8 @@ interface KuaishouReturnTypeMap {
25391
25798
  userProfile: KsUserProfile;
25392
25799
  userWorkList: KsUserWorkList;
25393
25800
  liveRoomInfo: KsLiveRoomInfo;
25394
- } //#endregion
25801
+ }
25802
+ //#endregion
25395
25803
  //#region src/types/ReturnDataType/Xiaohongshu/HomeFeed/HomeFeed_V0.d.ts
25396
25804
  type HomeFeed_V0 = {
25397
25805
  code: number;
@@ -25458,9 +25866,11 @@ type Video = {
25458
25866
  type Capa = {
25459
25867
  duration: number;
25460
25868
  [property: string]: any;
25461
- }; //#endregion
25869
+ };
25870
+ //#endregion
25462
25871
  //#region src/types/ReturnDataType/Xiaohongshu/HomeFeed/index.d.ts
25463
- type HomeFeed = HomeFeed_V0; //#endregion
25872
+ type HomeFeed = HomeFeed_V0;
25873
+ //#endregion
25464
25874
  //#region src/types/ReturnDataType/Xiaohongshu/NoteComments/NoteComments_V0.d.ts
25465
25875
  type NoteComments_V0 = {
25466
25876
  code: number;
@@ -25551,9 +25961,11 @@ type CommentUserInfo = {
25551
25961
  user_id: string;
25552
25962
  xsec_token: string;
25553
25963
  [property: string]: any;
25554
- }; //#endregion
25964
+ };
25965
+ //#endregion
25555
25966
  //#region src/types/ReturnDataType/Xiaohongshu/NoteComments/index.d.ts
25556
- type NoteComments = NoteComments_V0; //#endregion
25967
+ type NoteComments = NoteComments_V0;
25968
+ //#endregion
25557
25969
  //#region src/types/ReturnDataType/Xiaohongshu/OneNote/OneNote_V0.d.ts
25558
25970
  type OneNote_V0 = {
25559
25971
  code: number;
@@ -25643,9 +26055,11 @@ type User$1 = {
25643
26055
  user_id: string;
25644
26056
  xsec_token: string;
25645
26057
  [property: string]: any;
25646
- }; //#endregion
26058
+ };
26059
+ //#endregion
25647
26060
  //#region src/types/ReturnDataType/Xiaohongshu/OneNote/index.d.ts
25648
- type OneNote = OneNote_V0; //#endregion
26061
+ type OneNote = OneNote_V0;
26062
+ //#endregion
25649
26063
  //#region src/types/ReturnDataType/Xiaohongshu/SearchNotes/SearchNotes_V0.d.ts
25650
26064
  type SearchNotes_V0 = {
25651
26065
  code: number;
@@ -25729,9 +26143,11 @@ type Query = {
25729
26143
  name: string;
25730
26144
  search_word: string;
25731
26145
  [property: string]: any;
25732
- }; //#endregion
26146
+ };
26147
+ //#endregion
25733
26148
  //#region src/types/ReturnDataType/Xiaohongshu/SearchNotes/index.d.ts
25734
- type SearchNotes = SearchNotes_V0; //#endregion
26149
+ type SearchNotes = SearchNotes_V0;
26150
+ //#endregion
25735
26151
  //#region src/types/ReturnDataType/Xiaohongshu/XiaohongshuEmojiList/XiaohongshuEmojiList_V0.d.ts
25736
26152
  type XiaohongshuEmojiList_V0 = {
25737
26153
  code: number;
@@ -25769,9 +26185,11 @@ type Result$2 = {
25769
26185
  message: string;
25770
26186
  success: boolean;
25771
26187
  [property: string]: any;
25772
- }; //#endregion
26188
+ };
26189
+ //#endregion
25773
26190
  //#region src/types/ReturnDataType/Xiaohongshu/XiaohongshuEmojiList/index.d.ts
25774
- type XiaohongshuEmojiList = XiaohongshuEmojiList_V0; //#endregion
26191
+ type XiaohongshuEmojiList = XiaohongshuEmojiList_V0;
26192
+ //#endregion
25775
26193
  //#region src/types/ReturnDataType/Xiaohongshu/XiaohongshuUserProfile/XiaohongshuUserProfile_V0.d.ts
25776
26194
  type XiaohongshuUserProfile_V0 = {
25777
26195
  code: number;
@@ -25842,9 +26260,11 @@ type Tag = {
25842
26260
  type VerifyInfo = {
25843
26261
  redOfficialVerifyType: number;
25844
26262
  [property: string]: any;
25845
- }; //#endregion
26263
+ };
26264
+ //#endregion
25846
26265
  //#region src/types/ReturnDataType/Xiaohongshu/XiaohongshuUserProfile/index.d.ts
25847
- type XiaohongshuUserProfile = XiaohongshuUserProfile_V0; //#endregion
26266
+ type XiaohongshuUserProfile = XiaohongshuUserProfile_V0;
26267
+ //#endregion
25848
26268
  //#region src/types/ReturnDataType/Xiaohongshu/index.d.ts
25849
26269
  /**
25850
26270
  * 小红书返回类型映射
@@ -25857,7 +26277,8 @@ interface XiaohongshuReturnTypeMap {
25857
26277
  userNoteList: any;
25858
26278
  emojiList: XiaohongshuEmojiList;
25859
26279
  searchNotes: SearchNotes;
25860
- } //#endregion
26280
+ }
26281
+ //#endregion
25861
26282
  //#region src/types/method-keys.d.ts
25862
26283
  /**
25863
26284
  * API 方法名常量定义
@@ -26174,7 +26595,8 @@ declare const MethodMaps: {
26174
26595
  };
26175
26596
  readonly toFetcher: Record<XiaohongshuInternalMethodKey, XiaohongshuFetcherMethodKey>;
26176
26597
  };
26177
- }; //#endregion
26598
+ };
26599
+ //#endregion
26178
26600
  //#region src/types/index.d.ts
26179
26601
  /**
26180
26602
  * 移除methodType字段的工具类型
@@ -26199,19 +26621,19 @@ type TypeControl = {
26199
26621
  type DouyinDataOptionsMap = { [K in DouyinMethodType]: {
26200
26622
  opt: DouyinMethodOptMap[K];
26201
26623
  data: DouyinReturnTypeMap[K];
26202
- } };
26624
+ }; };
26203
26625
  type BilibiliDataOptionsMap = { [K in BilibiliMethodType]: {
26204
26626
  opt: BilibiliMethodOptMap[K];
26205
26627
  data: BilibiliReturnTypeMap[K];
26206
- } };
26628
+ }; };
26207
26629
  type KuaishouDataOptionsMap = { [K in KuaishouMethodType]: {
26208
26630
  opt: KuaishouMethodOptMap[K];
26209
26631
  data: KuaishouReturnTypeMap[K];
26210
- } };
26632
+ }; };
26211
26633
  type XiaohongshuDataOptionsMap = { [K in XiaohongshuMethodType]: {
26212
26634
  opt: XiaohongshuMethodOptMap[K];
26213
26635
  data: XiaohongshuReturnTypeMap[K];
26214
- } };
26636
+ }; };
26215
26637
  type XiaohongshuDataOptions<T extends keyof XiaohongshuDataOptionsMap> = OmitMethodType<XiaohongshuDataOptionsMap[T]['opt'] & TypeControl>;
26216
26638
  type DouyinDataOptions<T extends DouyinMethodType> = OmitMethodType<zod.infer<(typeof DouyinValidationSchemas)[T]> & TypeControl>;
26217
26639
  type BilibiliDataOptions<T extends keyof BilibiliDataOptionsMap> = OmitMethodType<BilibiliDataOptionsMap[T]['opt'] & TypeControl>;
@@ -26221,14 +26643,19 @@ type KuaishouDataOptions<T extends keyof KuaishouDataOptionsMap> = OmitMethodTyp
26221
26643
  * 该类型是方法 `getXXXData` 封装后请求遇到错误时的返回类型
26222
26644
  */
26223
26645
  type APIErrorType<T extends 'douyin' | 'bilibili' | 'kuaishou' | 'xiaohongshu' | 'default' = 'default'> = {
26224
- /** 错误码 */code: T extends 'douyin' ? douoyinAPIErrorCode : T extends 'bilibili' ? bilibiliAPIErrorCode : T extends 'kuaishou' ? kuaishouAPIErrorCode : T extends 'xiaohongshu' ? xiaohongshuAPIErrorCode : amagiAPIErrorCode; /** 错误时的响应数据 */
26225
- data: any; /** amagi 错误详情 */
26226
- amagiError: ErrorDetail; /** 错误信息 */
26646
+ /** 错误码 */
26647
+ code: T extends 'douyin' ? douoyinAPIErrorCode : T extends 'bilibili' ? bilibiliAPIErrorCode : T extends 'kuaishou' ? kuaishouAPIErrorCode : T extends 'xiaohongshu' ? xiaohongshuAPIErrorCode : amagiAPIErrorCode;
26648
+ /** 错误时的响应数据 */
26649
+ data: any;
26650
+ /** amagi 错误详情 */
26651
+ amagiError: ErrorDetail;
26652
+ /** 错误信息 */
26227
26653
  amagiMessage: string;
26228
- }; //#endregion
26654
+ };
26655
+ //#endregion
26229
26656
  //#region src/platform/bilibili/API.d.ts
26230
26657
  /** 去除 methodType 字段后的参数类型 */
26231
- type BilibiliMethodOptionsWithoutMethodType = { [K in keyof BilibiliMethodOptionsMap]: OmitMethodType<BilibiliMethodOptionsMap[K]> };
26658
+ type BilibiliMethodOptionsWithoutMethodType = { [K in keyof BilibiliMethodOptionsMap]: OmitMethodType<BilibiliMethodOptionsMap[K]>; };
26232
26659
  /**
26233
26660
  * B站 API URL 构建类
26234
26661
  *
@@ -26315,7 +26742,8 @@ declare class BilibiliAPI {
26315
26742
  getVideoDanmaku(data: BilibiliMethodOptionsWithoutMethodType['DanmakuParams']): string;
26316
26743
  }
26317
26744
  /** B站 API URL 构建器实例 */
26318
- declare const bilibiliApiUrls: BilibiliAPI; //#endregion
26745
+ declare const bilibiliApiUrls: BilibiliAPI;
26746
+ //#endregion
26319
26747
  //#region src/model/fetchers/bilibili/types.d.ts
26320
26748
  /** B站视频信息请求参数 */
26321
26749
  interface BilibiliVideoInfoOptions extends BaseRequestOptions {
@@ -26550,7 +26978,8 @@ interface IBilibiliFetcher {
26550
26978
  * 获取B站表情包列表
26551
26979
  */
26552
26980
  fetchEmojiList: NoParamMethodOverload<BilibiliReturnTypeMap['emojiList']>;
26553
- } //#endregion
26981
+ }
26982
+ //#endregion
26554
26983
  //#region src/model/fetchers/douyin/types.d.ts
26555
26984
  /** 抖音作品请求参数 */
26556
26985
  interface DouyinWorkOptions extends BaseRequestOptions {
@@ -26714,7 +27143,8 @@ interface IDouyinFetcher {
26714
27143
  * 获取抖音动态表情列表
26715
27144
  */
26716
27145
  fetchDynamicEmojiList: NoParamMethodOverload<DouyinReturnTypeMap['dynamicEmojiList']>;
26717
- } //#endregion
27146
+ }
27147
+ //#endregion
26718
27148
  //#region src/model/fetchers/kuaishou/types.d.ts
26719
27149
  /** 快手作品请求参数 */
26720
27150
  interface KuaishouVideoWorkOptions extends BaseRequestOptions {
@@ -26786,7 +27216,8 @@ interface IBoundKuaishouFetcher {
26786
27216
  fetchLiveRoomInfo: BoundMethodOverload<KuaishouLiveRoomInfoOptions, KuaishouReturnTypeMap['liveRoomInfo']>;
26787
27217
  /** 获取快手表情列表 */
26788
27218
  fetchEmojiList: BoundNoParamMethodOverload<KuaishouReturnTypeMap['emojiList']>;
26789
- } //#endregion
27219
+ }
27220
+ //#endregion
26790
27221
  //#region src/model/fetchers/xiaohongshu/types.d.ts
26791
27222
  /** 小红书首页推荐请求参数 */
26792
27223
  interface XiaohongshuHomeFeedOptions extends BaseRequestOptions {
@@ -26887,7 +27318,8 @@ interface IBoundXiaohongshuFetcher {
26887
27318
  searchNotes: BoundMethodOverload<XiaohongshuSearchNotesOptions, XiaohongshuReturnTypeMap['searchNotes']>;
26888
27319
  /** 获取小红书表情列表 */
26889
27320
  fetchEmojiList: BoundNoParamMethodOverload<XiaohongshuReturnTypeMap['emojiList']>;
26890
- } //#endregion
27321
+ }
27322
+ //#endregion
26891
27323
  //#region src/model/fetchers/types.d.ts
26892
27324
  /**
26893
27325
  * 类型精度模式
@@ -26915,7 +27347,8 @@ interface FetcherConfig {
26915
27347
  cookie?: string;
26916
27348
  /** 请求配置 */
26917
27349
  requestConfig?: RequestConfig;
26918
- } //#endregion
27350
+ }
27351
+ //#endregion
26919
27352
  //#region src/model/fetchers/shared/overload-types.d.ts
26920
27353
  /**
26921
27354
  * 为单个方法生成函数重载类型
@@ -26978,7 +27411,8 @@ type BoundOptionalParamMethodOverload<TOptions, TStrictReturn, TRequestConfig ex
26978
27411
  typeMode: 'strict';
26979
27412
  }, requestConfig?: TRequestConfig): Promise<Result<TStrictReturn>>;
26980
27413
  (options?: TOptions, requestConfig?: TRequestConfig): Promise<Result<any>>;
26981
- }; //#endregion
27414
+ };
27415
+ //#endregion
26982
27416
  //#region src/model/fetchers/bilibili/bound.d.ts
26983
27417
  /**
26984
27418
  * 绑定了 Cookie 的 B站 Fetcher 接口
@@ -27058,7 +27492,8 @@ interface IBoundBilibiliFetcher {
27058
27492
  * const strictResult = await fetcher.fetchVideoInfo({ bvid: 'BV1xx411c7mD', typeMode: 'strict' })
27059
27493
  * ```
27060
27494
  */
27061
- declare function createBoundBilibiliFetcher(cookie: string, requestConfig?: RequestConfig): IBoundBilibiliFetcher; //#endregion
27495
+ declare function createBoundBilibiliFetcher(cookie: string, requestConfig?: RequestConfig): IBoundBilibiliFetcher;
27496
+ //#endregion
27062
27497
  //#region src/model/fetchers/bilibili/index.d.ts
27063
27498
  /**
27064
27499
  * B站数据获取器
@@ -27074,7 +27509,8 @@ declare const bilibiliFetcher: IBilibiliFetcher;
27074
27509
  /** B站 Fetcher 类型 */
27075
27510
  type BilibiliFetcher = typeof bilibiliFetcher;
27076
27511
  /** 绑定 Cookie 的 B站 Fetcher 类型 */
27077
- type BoundBilibiliFetcher = IBoundBilibiliFetcher; //#endregion
27512
+ type BoundBilibiliFetcher = IBoundBilibiliFetcher;
27513
+ //#endregion
27078
27514
  //#region src/model/fetchers/douyin/bound.d.ts
27079
27515
  /**
27080
27516
  * 绑定了 Cookie 的抖音 Fetcher 接口
@@ -27133,7 +27569,8 @@ interface IBoundDouyinFetcher {
27133
27569
  * const strictResult = await fetcher.fetchVideoWork({ aweme_id: '7123456789', typeMode: 'strict' })
27134
27570
  * ```
27135
27571
  */
27136
- declare function createBoundDouyinFetcher(cookie: string, requestConfig?: RequestConfig): IBoundDouyinFetcher; //#endregion
27572
+ declare function createBoundDouyinFetcher(cookie: string, requestConfig?: RequestConfig): IBoundDouyinFetcher;
27573
+ //#endregion
27137
27574
  //#region src/model/fetchers/douyin/index.d.ts
27138
27575
  /**
27139
27576
  * 抖音数据获取器
@@ -27149,7 +27586,8 @@ declare const douyinFetcher: IDouyinFetcher;
27149
27586
  /** 抖音 Fetcher 类型 */
27150
27587
  type DouyinFetcher = typeof douyinFetcher;
27151
27588
  /** 绑定 Cookie 的抖音 Fetcher 类型 */
27152
- type BoundDouyinFetcher = IBoundDouyinFetcher; //#endregion
27589
+ type BoundDouyinFetcher = IBoundDouyinFetcher;
27590
+ //#endregion
27153
27591
  //#region src/model/fetchers/kuaishou/index.d.ts
27154
27592
  /**
27155
27593
  * 快手数据获取器
@@ -27179,7 +27617,8 @@ type KuaishouFetcher = typeof kuaishouFetcher;
27179
27617
  */
27180
27618
  declare function createBoundKuaishouFetcher(cookie: string, requestConfig?: RequestConfig): IBoundKuaishouFetcher;
27181
27619
  /** 绑定 Cookie 的快手 Fetcher 类型 */
27182
- type BoundKuaishouFetcher = IBoundKuaishouFetcher; //#endregion
27620
+ type BoundKuaishouFetcher = IBoundKuaishouFetcher;
27621
+ //#endregion
27183
27622
  //#region src/model/fetchers/xiaohongshu/index.d.ts
27184
27623
  /**
27185
27624
  * 小红书数据获取器
@@ -27213,7 +27652,8 @@ type XiaohongshuFetcher = typeof xiaohongshuFetcher;
27213
27652
  */
27214
27653
  declare function createBoundXiaohongshuFetcher(cookie: string, requestConfig?: RequestConfig): IBoundXiaohongshuFetcher;
27215
27654
  /** 绑定 Cookie 的小红书 Fetcher 类型 */
27216
- type BoundXiaohongshuFetcher = IBoundXiaohongshuFetcher; //#endregion
27655
+ type BoundXiaohongshuFetcher = IBoundXiaohongshuFetcher;
27656
+ //#endregion
27217
27657
  //#region src/model/events.d.ts
27218
27658
  /**
27219
27659
  * Amagi 支持的事件类型
@@ -27478,7 +27918,8 @@ declare const emitLogDebug: (message: string, ...args: unknown[]) => void;
27478
27918
  * @param message - 日志消息
27479
27919
  * @param args - 附加参数
27480
27920
  */
27481
- declare const emitLogMark: (message: string, ...args: unknown[]) => void; //#endregion
27921
+ declare const emitLogMark: (message: string, ...args: unknown[]) => void;
27922
+ //#endregion
27482
27923
  //#region src/server/index.d.ts
27483
27924
  /**
27484
27925
  * 请求配置选项接口
@@ -27488,16 +27929,22 @@ type RequestConfig = Omit<AxiosRequestConfig, 'url' | 'method' | 'data'>;
27488
27929
  * Cookie配置选项接口
27489
27930
  */
27490
27931
  type CookieConfig = {
27491
- /** 抖音Cookie */douyin?: string; /** B站Cookie */
27492
- bilibili?: string; /** 快手Cookie */
27493
- kuaishou?: string; /** 小红书Cookie */
27932
+ /** 抖音Cookie */
27933
+ douyin?: string;
27934
+ /** B站Cookie */
27935
+ bilibili?: string;
27936
+ /** 快手Cookie */
27937
+ kuaishou?: string;
27938
+ /** 小红书Cookie */
27494
27939
  xiaohongshu?: string;
27495
27940
  };
27496
27941
  /**
27497
27942
  * 客户端配置选项接口
27498
27943
  */
27499
27944
  type Options = {
27500
- /** Cookie配置 */cookies?: CookieConfig; /** 请求配置 */
27945
+ /** Cookie配置 */
27946
+ cookies?: CookieConfig;
27947
+ /** 请求配置 */
27501
27948
  request?: Omit<AxiosRequestConfig, 'url' | 'method' | 'data'>;
27502
27949
  };
27503
27950
  /**
@@ -27506,23 +27953,25 @@ type Options = {
27506
27953
  * @returns 包含数据获取方法、服务器启动方法、绑定Cookie的平台工具集和API对象的对象
27507
27954
  */
27508
27955
  declare const createAmagiClient: (options?: Options) => {
27509
- /** 启动本地HTTP服务 */startServer: (port?: number) => express.Application; /** 事件系统 */
27956
+ /** 启动本地HTTP服务 */
27957
+ startServer: (port?: number) => express.Application;
27958
+ /** 事件系统 */
27510
27959
  events: {
27511
27960
  emit<K extends AmagiEventType>(event: K, data: AmagiEventMap[K]): boolean;
27512
- on<K extends AmagiEventType>(event: K, listener: (data: AmagiEventMap[K]) => void): /*elided*/any;
27513
- once<K extends AmagiEventType>(event: K, listener: (data: AmagiEventMap[K]) => void): /*elided*/any;
27514
- off<K extends AmagiEventType>(event: K, listener: (data: AmagiEventMap[K]) => void): /*elided*/any;
27961
+ on<K extends AmagiEventType>(event: K, listener: (data: AmagiEventMap[K]) => void): /*elided*/ any;
27962
+ once<K extends AmagiEventType>(event: K, listener: (data: AmagiEventMap[K]) => void): /*elided*/ any;
27963
+ off<K extends AmagiEventType>(event: K, listener: (data: AmagiEventMap[K]) => void): /*elided*/ any;
27515
27964
  [EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: string | symbol, ...args: any[]): void;
27516
- addListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27517
- removeListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27518
- removeAllListeners(eventName?: string | symbol | undefined): /*elided*/any;
27519
- setMaxListeners(n: number): /*elided*/any;
27965
+ addListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27966
+ removeListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27967
+ removeAllListeners(eventName?: string | symbol | undefined): /*elided*/ any;
27968
+ setMaxListeners(n: number): /*elided*/ any;
27520
27969
  getMaxListeners(): number;
27521
27970
  listeners<K>(eventName: string | symbol): Function[];
27522
27971
  rawListeners<K>(eventName: string | symbol): Function[];
27523
27972
  listenerCount<K>(eventName: string | symbol, listener?: Function | undefined): number;
27524
- prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27525
- prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27973
+ prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27974
+ prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27526
27975
  eventNames(): (string | symbol)[];
27527
27976
  };
27528
27977
  /**
@@ -27532,20 +27981,20 @@ declare const createAmagiClient: (options?: Options) => {
27532
27981
  */
27533
27982
  on: <K extends AmagiEventType>(event: K, listener: (data: AmagiEventMap[K]) => void) => {
27534
27983
  emit<K_1 extends AmagiEventType>(event: K_1, data: AmagiEventMap[K_1]): boolean;
27535
- on<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/any;
27536
- once<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/any;
27537
- off<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/any;
27984
+ on<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/ any;
27985
+ once<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/ any;
27986
+ off<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/ any;
27538
27987
  [EventEmitter.captureRejectionSymbol]?<K_1>(error: Error, event: string | symbol, ...args: any[]): void;
27539
- addListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27540
- removeListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27541
- removeAllListeners(eventName?: string | symbol | undefined): /*elided*/any;
27542
- setMaxListeners(n: number): /*elided*/any;
27988
+ addListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27989
+ removeListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27990
+ removeAllListeners(eventName?: string | symbol | undefined): /*elided*/ any;
27991
+ setMaxListeners(n: number): /*elided*/ any;
27543
27992
  getMaxListeners(): number;
27544
27993
  listeners<K_1>(eventName: string | symbol): Function[];
27545
27994
  rawListeners<K_1>(eventName: string | symbol): Function[];
27546
27995
  listenerCount<K_1>(eventName: string | symbol, listener?: Function | undefined): number;
27547
- prependListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27548
- prependOnceListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27996
+ prependListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27997
+ prependOnceListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27549
27998
  eventNames(): (string | symbol)[];
27550
27999
  };
27551
28000
  /**
@@ -27555,28 +28004,33 @@ declare const createAmagiClient: (options?: Options) => {
27555
28004
  */
27556
28005
  once: <K extends AmagiEventType>(event: K, listener: (data: AmagiEventMap[K]) => void) => {
27557
28006
  emit<K_1 extends AmagiEventType>(event: K_1, data: AmagiEventMap[K_1]): boolean;
27558
- on<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/any;
27559
- once<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/any;
27560
- off<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/any;
28007
+ on<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/ any;
28008
+ once<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/ any;
28009
+ off<K_1 extends AmagiEventType>(event: K_1, listener: (data: AmagiEventMap[K_1]) => void): /*elided*/ any;
27561
28010
  [EventEmitter.captureRejectionSymbol]?<K_1>(error: Error, event: string | symbol, ...args: any[]): void;
27562
- addListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27563
- removeListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27564
- removeAllListeners(eventName?: string | symbol | undefined): /*elided*/any;
27565
- setMaxListeners(n: number): /*elided*/any;
28011
+ addListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
28012
+ removeListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
28013
+ removeAllListeners(eventName?: string | symbol | undefined): /*elided*/ any;
28014
+ setMaxListeners(n: number): /*elided*/ any;
27566
28015
  getMaxListeners(): number;
27567
28016
  listeners<K_1>(eventName: string | symbol): Function[];
27568
28017
  rawListeners<K_1>(eventName: string | symbol): Function[];
27569
28018
  listenerCount<K_1>(eventName: string | symbol, listener?: Function | undefined): number;
27570
- prependListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
27571
- prependOnceListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/any;
28019
+ prependListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
28020
+ prependOnceListener<K_1>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
27572
28021
  eventNames(): (string | symbol)[];
27573
- }; /** @deprecated v6 已废弃,请使用 douyin.fetcher 替代 */
27574
- getDouyinData: (..._args: any[]) => never; /** @deprecated v6 已废弃,请使用 bilibili.fetcher 替代 */
27575
- getBilibiliData: (..._args: any[]) => never; /** @deprecated v6 已废弃,请使用 kuaishou.fetcher 替代 */
27576
- getKuaishouData: (..._args: any[]) => never; /** @deprecated v6 已废弃,请使用 xiaohongshu.fetcher 替代 */
28022
+ };
28023
+ /** @deprecated v6 已废弃,请使用 douyin.fetcher 替代 */
28024
+ getDouyinData: (..._args: any[]) => never;
28025
+ /** @deprecated v6 已废弃,请使用 bilibili.fetcher 替代 */
28026
+ getBilibiliData: (..._args: any[]) => never;
28027
+ /** @deprecated v6 已废弃,请使用 kuaishou.fetcher 替代 */
28028
+ getKuaishouData: (..._args: any[]) => never;
28029
+ /** @deprecated v6 已废弃,请使用 xiaohongshu.fetcher 替代 */
27577
28030
  getXiaohongshuData: (..._args: any[]) => never;
27578
28031
  douyin: {
27579
- /** @deprecated 请使用 fetcher 替代 */api: {
28032
+ /** @deprecated 请使用 fetcher 替代 */
28033
+ api: {
27580
28034
  getSearchData: (..._args: any[]) => never;
27581
28035
  getTextWorkInfo: (..._args: any[]) => never;
27582
28036
  getWorkInfo: (..._args: any[]) => never;
@@ -27595,13 +28049,15 @@ declare const createAmagiClient: (options?: Options) => {
27595
28049
  getLiveRoomInfo: (..._args: any[]) => never;
27596
28050
  getDanmaku: (..._args: any[]) => never;
27597
28051
  invoke: (..._args: any[]) => never;
27598
- }; /** fetcher */
28052
+ };
28053
+ /** fetcher */
27599
28054
  fetcher: IBoundDouyinFetcher;
27600
28055
  sign: typeof douyinSign;
27601
28056
  douyinApiUrls: typeof douyinApiUrls;
27602
28057
  };
27603
28058
  bilibili: {
27604
- /** @deprecated 请使用 fetcher 替代 */api: {
28059
+ /** @deprecated 请使用 fetcher 替代 */
28060
+ api: {
27605
28061
  getVideoInfo: (..._args: any[]) => never;
27606
28062
  getVideoStream: (..._args: any[]) => never;
27607
28063
  getComments: (..._args: any[]) => never;
@@ -27629,7 +28085,8 @@ declare const createAmagiClient: (options?: Options) => {
27629
28085
  applyVoucherCaptcha: (..._args: any[]) => never;
27630
28086
  validateCaptcha: (..._args: any[]) => never;
27631
28087
  getDanmaku: (..._args: any[]) => never;
27632
- }; /** fetcher */
28088
+ };
28089
+ /** fetcher */
27633
28090
  fetcher: IBoundBilibiliFetcher;
27634
28091
  sign: {
27635
28092
  wbi_sign: typeof wbi_sign;
@@ -27642,20 +28099,23 @@ declare const createAmagiClient: (options?: Options) => {
27642
28099
  bilibiliApiUrls: typeof bilibiliApiUrls;
27643
28100
  };
27644
28101
  kuaishou: {
27645
- /** @deprecated 请使用 fetcher 替代 */api: {
28102
+ /** @deprecated 请使用 fetcher 替代 */
28103
+ api: {
27646
28104
  getWorkInfo: (..._args: any[]) => never;
27647
28105
  getComments: (..._args: any[]) => never;
27648
28106
  getUserProfile: (..._args: any[]) => never;
27649
28107
  getUserWorkList: (..._args: any[]) => never;
27650
28108
  getLiveRoomInfo: (..._args: any[]) => never;
27651
28109
  getEmojiList: (..._args: any[]) => never;
27652
- }; /** fetcher */
28110
+ };
28111
+ /** fetcher */
27653
28112
  fetcher: IBoundKuaishouFetcher;
27654
28113
  sign: typeof kuaishouSign;
27655
28114
  kuaishouApiUrls: typeof kuaishouApiUrls;
27656
28115
  };
27657
28116
  xiaohongshu: {
27658
- /** @deprecated 请使用 fetcher 替代 */api: {
28117
+ /** @deprecated 请使用 fetcher 替代 */
28118
+ api: {
27659
28119
  getHomeFeed: (..._args: any[]) => never;
27660
28120
  getNote: (..._args: any[]) => never;
27661
28121
  getComments: (..._args: any[]) => never;
@@ -27663,12 +28123,14 @@ declare const createAmagiClient: (options?: Options) => {
27663
28123
  getUserNotes: (..._args: any[]) => never;
27664
28124
  getSearchNotes: (..._args: any[]) => never;
27665
28125
  getEmojiList: (..._args: any[]) => never;
27666
- }; /** fetcher */
28126
+ };
28127
+ /** fetcher */
27667
28128
  fetcher: IBoundXiaohongshuFetcher;
27668
28129
  sign: typeof xiaohongshuSign;
27669
28130
  xiaohongshuApiUrls: typeof xiaohongshuApiUrls;
27670
28131
  };
27671
- }; //#endregion
28132
+ };
28133
+ //#endregion
27672
28134
  //#region src/platform/bilibili/BilibiliApi.d.ts
27673
28135
  /**
27674
28136
  * B站相关 API 的命名空间。
@@ -27676,32 +28138,59 @@ declare const createAmagiClient: (options?: Options) => {
27676
28138
  * @deprecated v6 已废弃,请使用 bilibiliFetcher 或 client.bilibili.fetcher 替代
27677
28139
  */
27678
28140
  declare const bilibili: {
27679
- /** @deprecated 请使用 bilibiliFetcher.fetchVideoInfo 替代 */getVideoInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchVideoStreamUrl 替代 */
27680
- getVideoStream: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchComments 替代 */
27681
- getComments: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchCommentReplies 替代 */
27682
- getCommentReply: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchUserCard 替代 */
27683
- getUserProfile: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchUserDynamicList 替代 */
27684
- getUserDynamic: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchEmojiList 替代 */
27685
- getEmojiList: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchBangumiInfo 替代 */
27686
- getBangumiInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchBangumiStreamUrl 替代 */
27687
- getBangumiStream: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchDynamicDetail 替代 */
27688
- getDynamicInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchDynamicCard 替代 */
27689
- getDynamicCard: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchLiveRoomInfo 替代 */
27690
- getLiveRoomDetail: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchLiveRoomInitInfo 替代 */
27691
- getLiveRoomInitInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchLoginStatus 替代 */
27692
- getLoginBasicInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.requestLoginQrcode 替代 */
27693
- getLoginQrcode: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.checkQrcodeStatus 替代 */
27694
- checkQrcodeStatus: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchUploaderTotalViews 替代 */
27695
- getUserTotalPlayCount: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.convertAvToBv 替代 */
27696
- convertAvToBv: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.convertBvToAv 替代 */
27697
- convertBvToAv: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchArticleContent 替代 */
27698
- getArticleContent: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchArticleCards 替代 */
27699
- getArticleCard: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchArticleInfo 替代 */
27700
- getArticleInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchArticleListInfo 替代 */
27701
- getColumnInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchUserSpaceInfo 替代 */
27702
- getUserProfileDetail: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.requestCaptchaFromVoucher 替代 */
27703
- applyVoucherCaptcha: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.validateCaptchaResult 替代 */
27704
- validateCaptcha: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchVideoDanmaku 替代 */
28141
+ /** @deprecated 请使用 bilibiliFetcher.fetchVideoInfo 替代 */
28142
+ getVideoInfo: (..._args: any[]) => never;
28143
+ /** @deprecated 请使用 bilibiliFetcher.fetchVideoStreamUrl 替代 */
28144
+ getVideoStream: (..._args: any[]) => never;
28145
+ /** @deprecated 请使用 bilibiliFetcher.fetchComments 替代 */
28146
+ getComments: (..._args: any[]) => never;
28147
+ /** @deprecated 请使用 bilibiliFetcher.fetchCommentReplies 替代 */
28148
+ getCommentReply: (..._args: any[]) => never;
28149
+ /** @deprecated 请使用 bilibiliFetcher.fetchUserCard 替代 */
28150
+ getUserProfile: (..._args: any[]) => never;
28151
+ /** @deprecated 请使用 bilibiliFetcher.fetchUserDynamicList 替代 */
28152
+ getUserDynamic: (..._args: any[]) => never;
28153
+ /** @deprecated 请使用 bilibiliFetcher.fetchEmojiList 替代 */
28154
+ getEmojiList: (..._args: any[]) => never;
28155
+ /** @deprecated 请使用 bilibiliFetcher.fetchBangumiInfo 替代 */
28156
+ getBangumiInfo: (..._args: any[]) => never;
28157
+ /** @deprecated 请使用 bilibiliFetcher.fetchBangumiStreamUrl 替代 */
28158
+ getBangumiStream: (..._args: any[]) => never;
28159
+ /** @deprecated 请使用 bilibiliFetcher.fetchDynamicDetail 替代 */
28160
+ getDynamicInfo: (..._args: any[]) => never;
28161
+ /** @deprecated 请使用 bilibiliFetcher.fetchDynamicCard 替代 */
28162
+ getDynamicCard: (..._args: any[]) => never;
28163
+ /** @deprecated 请使用 bilibiliFetcher.fetchLiveRoomInfo 替代 */
28164
+ getLiveRoomDetail: (..._args: any[]) => never;
28165
+ /** @deprecated 请使用 bilibiliFetcher.fetchLiveRoomInitInfo 替代 */
28166
+ getLiveRoomInitInfo: (..._args: any[]) => never;
28167
+ /** @deprecated 请使用 bilibiliFetcher.fetchLoginStatus 替代 */
28168
+ getLoginBasicInfo: (..._args: any[]) => never;
28169
+ /** @deprecated 请使用 bilibiliFetcher.requestLoginQrcode 替代 */
28170
+ getLoginQrcode: (..._args: any[]) => never;
28171
+ /** @deprecated 请使用 bilibiliFetcher.checkQrcodeStatus 替代 */
28172
+ checkQrcodeStatus: (..._args: any[]) => never;
28173
+ /** @deprecated 请使用 bilibiliFetcher.fetchUploaderTotalViews 替代 */
28174
+ getUserTotalPlayCount: (..._args: any[]) => never;
28175
+ /** @deprecated 请使用 bilibiliFetcher.convertAvToBv 替代 */
28176
+ convertAvToBv: (..._args: any[]) => never;
28177
+ /** @deprecated 请使用 bilibiliFetcher.convertBvToAv 替代 */
28178
+ convertBvToAv: (..._args: any[]) => never;
28179
+ /** @deprecated 请使用 bilibiliFetcher.fetchArticleContent 替代 */
28180
+ getArticleContent: (..._args: any[]) => never;
28181
+ /** @deprecated 请使用 bilibiliFetcher.fetchArticleCards 替代 */
28182
+ getArticleCard: (..._args: any[]) => never;
28183
+ /** @deprecated 请使用 bilibiliFetcher.fetchArticleInfo 替代 */
28184
+ getArticleInfo: (..._args: any[]) => never;
28185
+ /** @deprecated 请使用 bilibiliFetcher.fetchArticleListInfo 替代 */
28186
+ getColumnInfo: (..._args: any[]) => never;
28187
+ /** @deprecated 请使用 bilibiliFetcher.fetchUserSpaceInfo 替代 */
28188
+ getUserProfileDetail: (..._args: any[]) => never;
28189
+ /** @deprecated 请使用 bilibiliFetcher.requestCaptchaFromVoucher 替代 */
28190
+ applyVoucherCaptcha: (..._args: any[]) => never;
28191
+ /** @deprecated 请使用 bilibiliFetcher.validateCaptchaResult 替代 */
28192
+ validateCaptcha: (..._args: any[]) => never;
28193
+ /** @deprecated 请使用 bilibiliFetcher.fetchVideoDanmaku 替代 */
27705
28194
  getDanmaku: (..._args: any[]) => never;
27706
28195
  };
27707
28196
  /**
@@ -27710,38 +28199,66 @@ declare const bilibili: {
27710
28199
  * @deprecated v6 已废弃,请使用 createBoundBilibiliFetcher 替代
27711
28200
  */
27712
28201
  declare const createBoundBilibiliApi: (_cookie: string, _requestConfig: RequestConfig) => {
27713
- /** @deprecated 请使用 bilibiliFetcher.fetchVideoInfo 替代 */getVideoInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchVideoStreamUrl 替代 */
27714
- getVideoStream: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchComments 替代 */
27715
- getComments: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchCommentReplies 替代 */
27716
- getCommentReply: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchUserCard 替代 */
27717
- getUserProfile: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchUserDynamicList 替代 */
27718
- getUserDynamic: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchEmojiList 替代 */
27719
- getEmojiList: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchBangumiInfo 替代 */
27720
- getBangumiInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchBangumiStreamUrl 替代 */
27721
- getBangumiStream: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchDynamicDetail 替代 */
27722
- getDynamicInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchDynamicCard 替代 */
27723
- getDynamicCard: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchLiveRoomInfo 替代 */
27724
- getLiveRoomDetail: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchLiveRoomInitInfo 替代 */
27725
- getLiveRoomInitInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchLoginStatus 替代 */
27726
- getLoginBasicInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.requestLoginQrcode 替代 */
27727
- getLoginQrcode: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.checkQrcodeStatus 替代 */
27728
- checkQrcodeStatus: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchUploaderTotalViews 替代 */
27729
- getUserTotalPlayCount: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.convertAvToBv 替代 */
27730
- convertAvToBv: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.convertBvToAv 替代 */
27731
- convertBvToAv: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchArticleContent 替代 */
27732
- getArticleContent: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchArticleCards 替代 */
27733
- getArticleCard: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchArticleInfo 替代 */
27734
- getArticleInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchArticleListInfo 替代 */
27735
- getColumnInfo: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchUserSpaceInfo 替代 */
27736
- getUserProfileDetail: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.requestCaptchaFromVoucher 替代 */
27737
- applyVoucherCaptcha: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.validateCaptchaResult 替代 */
27738
- validateCaptcha: (..._args: any[]) => never; /** @deprecated 请使用 bilibiliFetcher.fetchVideoDanmaku 替代 */
28202
+ /** @deprecated 请使用 bilibiliFetcher.fetchVideoInfo 替代 */
28203
+ getVideoInfo: (..._args: any[]) => never;
28204
+ /** @deprecated 请使用 bilibiliFetcher.fetchVideoStreamUrl 替代 */
28205
+ getVideoStream: (..._args: any[]) => never;
28206
+ /** @deprecated 请使用 bilibiliFetcher.fetchComments 替代 */
28207
+ getComments: (..._args: any[]) => never;
28208
+ /** @deprecated 请使用 bilibiliFetcher.fetchCommentReplies 替代 */
28209
+ getCommentReply: (..._args: any[]) => never;
28210
+ /** @deprecated 请使用 bilibiliFetcher.fetchUserCard 替代 */
28211
+ getUserProfile: (..._args: any[]) => never;
28212
+ /** @deprecated 请使用 bilibiliFetcher.fetchUserDynamicList 替代 */
28213
+ getUserDynamic: (..._args: any[]) => never;
28214
+ /** @deprecated 请使用 bilibiliFetcher.fetchEmojiList 替代 */
28215
+ getEmojiList: (..._args: any[]) => never;
28216
+ /** @deprecated 请使用 bilibiliFetcher.fetchBangumiInfo 替代 */
28217
+ getBangumiInfo: (..._args: any[]) => never;
28218
+ /** @deprecated 请使用 bilibiliFetcher.fetchBangumiStreamUrl 替代 */
28219
+ getBangumiStream: (..._args: any[]) => never;
28220
+ /** @deprecated 请使用 bilibiliFetcher.fetchDynamicDetail 替代 */
28221
+ getDynamicInfo: (..._args: any[]) => never;
28222
+ /** @deprecated 请使用 bilibiliFetcher.fetchDynamicCard 替代 */
28223
+ getDynamicCard: (..._args: any[]) => never;
28224
+ /** @deprecated 请使用 bilibiliFetcher.fetchLiveRoomInfo 替代 */
28225
+ getLiveRoomDetail: (..._args: any[]) => never;
28226
+ /** @deprecated 请使用 bilibiliFetcher.fetchLiveRoomInitInfo 替代 */
28227
+ getLiveRoomInitInfo: (..._args: any[]) => never;
28228
+ /** @deprecated 请使用 bilibiliFetcher.fetchLoginStatus 替代 */
28229
+ getLoginBasicInfo: (..._args: any[]) => never;
28230
+ /** @deprecated 请使用 bilibiliFetcher.requestLoginQrcode 替代 */
28231
+ getLoginQrcode: (..._args: any[]) => never;
28232
+ /** @deprecated 请使用 bilibiliFetcher.checkQrcodeStatus 替代 */
28233
+ checkQrcodeStatus: (..._args: any[]) => never;
28234
+ /** @deprecated 请使用 bilibiliFetcher.fetchUploaderTotalViews 替代 */
28235
+ getUserTotalPlayCount: (..._args: any[]) => never;
28236
+ /** @deprecated 请使用 bilibiliFetcher.convertAvToBv 替代 */
28237
+ convertAvToBv: (..._args: any[]) => never;
28238
+ /** @deprecated 请使用 bilibiliFetcher.convertBvToAv 替代 */
28239
+ convertBvToAv: (..._args: any[]) => never;
28240
+ /** @deprecated 请使用 bilibiliFetcher.fetchArticleContent 替代 */
28241
+ getArticleContent: (..._args: any[]) => never;
28242
+ /** @deprecated 请使用 bilibiliFetcher.fetchArticleCards 替代 */
28243
+ getArticleCard: (..._args: any[]) => never;
28244
+ /** @deprecated 请使用 bilibiliFetcher.fetchArticleInfo 替代 */
28245
+ getArticleInfo: (..._args: any[]) => never;
28246
+ /** @deprecated 请使用 bilibiliFetcher.fetchArticleListInfo 替代 */
28247
+ getColumnInfo: (..._args: any[]) => never;
28248
+ /** @deprecated 请使用 bilibiliFetcher.fetchUserSpaceInfo 替代 */
28249
+ getUserProfileDetail: (..._args: any[]) => never;
28250
+ /** @deprecated 请使用 bilibiliFetcher.requestCaptchaFromVoucher 替代 */
28251
+ applyVoucherCaptcha: (..._args: any[]) => never;
28252
+ /** @deprecated 请使用 bilibiliFetcher.validateCaptchaResult 替代 */
28253
+ validateCaptcha: (..._args: any[]) => never;
28254
+ /** @deprecated 请使用 bilibiliFetcher.fetchVideoDanmaku 替代 */
27739
28255
  getDanmaku: (..._args: any[]) => never;
27740
28256
  };
27741
28257
  /**
27742
28258
  * 绑定cookie的B站API对象类型
27743
28259
  */
27744
- type BoundBilibiliApi = ReturnType<typeof createBoundBilibiliApi>; //#endregion
28260
+ type BoundBilibiliApi = ReturnType<typeof createBoundBilibiliApi>;
28261
+ //#endregion
27745
28262
  //#region src/platform/bilibili/getdata.d.ts
27746
28263
  /**
27747
28264
  * 哔哩哔哩API官方HTTP请求错误码
@@ -27798,7 +28315,8 @@ declare const bilibiliErrorCodeMap: {
27798
28315
  '-8888': string;
27799
28316
  100000: string;
27800
28317
  100003: string;
27801
- }; //#endregion
28318
+ };
28319
+ //#endregion
27802
28320
  //#region src/platform/bilibili/qtparam.d.ts
27803
28321
  /**
27804
28322
  * 生成B站视频流请求参数
@@ -27818,7 +28336,8 @@ declare const qtparam: (BASEURL: string, cookie: string) => Promise<{
27818
28336
  QUERY: string;
27819
28337
  STATUS: string;
27820
28338
  isvip: false;
27821
- }>; //#endregion
28339
+ }>;
28340
+ //#endregion
27822
28341
  //#region src/platform/bilibili/routes.d.ts
27823
28342
  /**
27824
28343
  * 创建B站路由
@@ -27826,17 +28345,25 @@ declare const qtparam: (BASEURL: string, cookie: string) => Promise<{
27826
28345
  * @param requestConfig - 可选的请求配置
27827
28346
  * @returns Express路由器
27828
28347
  */
27829
- declare const createBilibiliRoutes: (cookie: string, requestConfig?: RequestConfig) => express.Router; //#endregion
28348
+ declare const createBilibiliRoutes: (cookie: string, requestConfig?: RequestConfig) => express.Router;
28349
+ //#endregion
27830
28350
  //#region src/platform/bilibili/index.d.ts
27831
28351
  type bilibiliUtilsModel = {
27832
- /** 签名算法相关 */sign: {
27833
- /** WBI签名算法 */wbi_sign: typeof wbi_sign; /** AV号转BV号 */
27834
- av2bv: typeof av2bv; /** BV号转AV号 */
28352
+ /** 签名算法相关 */
28353
+ sign: {
28354
+ /** WBI签名算法 */
28355
+ wbi_sign: typeof wbi_sign;
28356
+ /** AV号转BV号 */
28357
+ av2bv: typeof av2bv;
28358
+ /** BV号转AV号 */
27835
28359
  bv2av: typeof bv2av;
27836
- }; /** 弹幕解析相关 */
28360
+ };
28361
+ /** 弹幕解析相关 */
27837
28362
  danmaku: {
27838
- /** 解析弹幕 protobuf 数据 */parseDmSegMobileReply: typeof parseDmSegMobileReply;
27839
- }; /** 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据 */
28363
+ /** 解析弹幕 protobuf 数据 */
28364
+ parseDmSegMobileReply: typeof parseDmSegMobileReply;
28365
+ };
28366
+ /** 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据 */
27840
28367
  bilibiliApiUrls: typeof bilibiliApiUrls;
27841
28368
  /**
27842
28369
  * B站相关 API 的命名空间。
@@ -27850,7 +28377,8 @@ type bilibiliUtilsModel = {
27850
28377
  api: typeof bilibili;
27851
28378
  };
27852
28379
  /** B站相关功能模块 (工具集) */
27853
- declare const bilibiliUtils: bilibiliUtilsModel; //#endregion
28380
+ declare const bilibiliUtils: bilibiliUtilsModel;
28381
+ //#endregion
27854
28382
  //#region src/platform/douyin/sign/index.d.ts
27855
28383
  declare class douyinSign {
27856
28384
  /**
@@ -27873,10 +28401,11 @@ declare class douyinSign {
27873
28401
  static XB(url: string, userAgent?: string): string;
27874
28402
  /** 生成一个唯一的验证字符串 */
27875
28403
  static VerifyFpManager(): string;
27876
- } //#endregion
28404
+ }
28405
+ //#endregion
27877
28406
  //#region src/platform/douyin/API.d.ts
27878
28407
  /** 去除 methodType 字段后的参数类型 */
27879
- type DouyinMethodOptionsWithoutMethodType = { [K in keyof DouyinDataOptionsMap]: OmitMethodType<DouyinDataOptionsMap[K]['opt']> };
28408
+ type DouyinMethodOptionsWithoutMethodType = { [K in keyof DouyinDataOptionsMap]: OmitMethodType<DouyinDataOptionsMap[K]['opt']>; };
27880
28409
  /**
27881
28410
  * 抖音 API URL 构建类
27882
28411
  *
@@ -27929,14 +28458,9 @@ declare class DouyinAPI {
27929
28458
  /** 获取弹幕数据 */
27930
28459
  getDanmakuList(data: DouyinMethodOptionsWithoutMethodType['danmakuList']): string;
27931
28460
  }
27932
- /**
27933
- * 创建 DouyinAPI 实例的工厂函数
27934
- *
27935
- * @param userAgent - 用户代理字符串
27936
- * @returns DouyinAPI 实例
27937
- */
27938
28461
  /** 默认的 DouyinAPI 实例(使用默认浏览器版本 125.0.0.0) */
27939
- declare const douyinApiUrls: DouyinAPI; //#endregion
28462
+ declare const douyinApiUrls: DouyinAPI;
28463
+ //#endregion
27940
28464
  //#region src/platform/douyin/DouyinApi.d.ts
27941
28465
  /**
27942
28466
  * 封装了所有抖音相关的API请求,采用对象化的方式组织。
@@ -27944,22 +28468,39 @@ declare const douyinApiUrls: DouyinAPI; //#endregion
27944
28468
  * @deprecated v6 已废弃,请使用 douyinFetcher 或 client.douyin.fetcher 替代
27945
28469
  */
27946
28470
  declare const douyin: {
27947
- /** @deprecated 请使用 douyinFetcher.fetchTextWork 替代 */getTextWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.parseWork 替代 */
27948
- getWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchVideoWork 替代 */
27949
- getVideoWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchImageAlbumWork 替代 */
27950
- getImageAlbumWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchSlidesWork 替代 */
27951
- getSlidesWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchComments 替代 */
27952
- getComments: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchCommentReplies 替代 */
27953
- getCommentReplies: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchUserProfile 替代 */
27954
- getUserProfile: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchEmojiList 替代 */
27955
- getEmojiList: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchDynamicEmojiList 替代 */
27956
- getEmojiProList: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchUserVideoList 替代 */
27957
- getUserVideos: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchMusicInfo 替代 */
27958
- getMusicInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchSuggestWords 替代 */
27959
- getSuggestWords: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.searchContent 替代 */
27960
- search: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchLiveRoomInfo 替代 */
27961
- getLiveRoomInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchDanmakuList 替代 */
27962
- getDanmaku: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher 的具体方法替代 */
28471
+ /** @deprecated 请使用 douyinFetcher.fetchTextWork 替代 */
28472
+ getTextWorkInfo: (..._args: any[]) => never;
28473
+ /** @deprecated 请使用 douyinFetcher.parseWork 替代 */
28474
+ getWorkInfo: (..._args: any[]) => never;
28475
+ /** @deprecated 请使用 douyinFetcher.fetchVideoWork 替代 */
28476
+ getVideoWorkInfo: (..._args: any[]) => never;
28477
+ /** @deprecated 请使用 douyinFetcher.fetchImageAlbumWork 替代 */
28478
+ getImageAlbumWorkInfo: (..._args: any[]) => never;
28479
+ /** @deprecated 请使用 douyinFetcher.fetchSlidesWork 替代 */
28480
+ getSlidesWorkInfo: (..._args: any[]) => never;
28481
+ /** @deprecated 请使用 douyinFetcher.fetchComments 替代 */
28482
+ getComments: (..._args: any[]) => never;
28483
+ /** @deprecated 请使用 douyinFetcher.fetchCommentReplies 替代 */
28484
+ getCommentReplies: (..._args: any[]) => never;
28485
+ /** @deprecated 请使用 douyinFetcher.fetchUserProfile 替代 */
28486
+ getUserProfile: (..._args: any[]) => never;
28487
+ /** @deprecated 请使用 douyinFetcher.fetchEmojiList 替代 */
28488
+ getEmojiList: (..._args: any[]) => never;
28489
+ /** @deprecated 请使用 douyinFetcher.fetchDynamicEmojiList 替代 */
28490
+ getEmojiProList: (..._args: any[]) => never;
28491
+ /** @deprecated 请使用 douyinFetcher.fetchUserVideoList 替代 */
28492
+ getUserVideos: (..._args: any[]) => never;
28493
+ /** @deprecated 请使用 douyinFetcher.fetchMusicInfo 替代 */
28494
+ getMusicInfo: (..._args: any[]) => never;
28495
+ /** @deprecated 请使用 douyinFetcher.fetchSuggestWords 替代 */
28496
+ getSuggestWords: (..._args: any[]) => never;
28497
+ /** @deprecated 请使用 douyinFetcher.searchContent 替代 */
28498
+ search: (..._args: any[]) => never;
28499
+ /** @deprecated 请使用 douyinFetcher.fetchLiveRoomInfo 替代 */
28500
+ getLiveRoomInfo: (..._args: any[]) => never;
28501
+ /** @deprecated 请使用 douyinFetcher.fetchDanmakuList 替代 */
28502
+ getDanmaku: (..._args: any[]) => never;
28503
+ /** @deprecated 请使用 douyinFetcher 的具体方法替代 */
27963
28504
  invoke: (..._args: any[]) => never;
27964
28505
  };
27965
28506
  /**
@@ -27968,29 +28509,47 @@ declare const douyin: {
27968
28509
  * @deprecated v6 已废弃,请使用 createBoundDouyinFetcher 替代
27969
28510
  */
27970
28511
  declare const createBoundDouyinApi: (_cookie: string, _requestConfig: RequestConfig) => {
27971
- getSearchData: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchTextWork 替代 */
27972
- getTextWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.parseWork 替代 */
27973
- getWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchVideoWork 替代 */
27974
- getVideoWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchImageAlbumWork 替代 */
27975
- getImageAlbumWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchSlidesWork 替代 */
27976
- getSlidesWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchComments 替代 */
27977
- getComments: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchCommentReplies 替代 */
27978
- getCommentReplies: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchUserProfile 替代 */
27979
- getUserProfile: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchEmojiList 替代 */
27980
- getEmojiList: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchDynamicEmojiList 替代 */
27981
- getEmojiProList: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchUserVideoList 替代 */
27982
- getUserVideos: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchMusicInfo 替代 */
27983
- getMusicInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchSuggestWords 替代 */
27984
- getSuggestWords: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.searchContent 替代 */
27985
- search: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchLiveRoomInfo 替代 */
27986
- getLiveRoomInfo: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher.fetchDanmakuList 替代 */
27987
- getDanmaku: (..._args: any[]) => never; /** @deprecated 请使用 douyinFetcher 的具体方法替代 */
28512
+ getSearchData: (..._args: any[]) => never;
28513
+ /** @deprecated 请使用 douyinFetcher.fetchTextWork 替代 */
28514
+ getTextWorkInfo: (..._args: any[]) => never;
28515
+ /** @deprecated 请使用 douyinFetcher.parseWork 替代 */
28516
+ getWorkInfo: (..._args: any[]) => never;
28517
+ /** @deprecated 请使用 douyinFetcher.fetchVideoWork 替代 */
28518
+ getVideoWorkInfo: (..._args: any[]) => never;
28519
+ /** @deprecated 请使用 douyinFetcher.fetchImageAlbumWork 替代 */
28520
+ getImageAlbumWorkInfo: (..._args: any[]) => never;
28521
+ /** @deprecated 请使用 douyinFetcher.fetchSlidesWork 替代 */
28522
+ getSlidesWorkInfo: (..._args: any[]) => never;
28523
+ /** @deprecated 请使用 douyinFetcher.fetchComments 替代 */
28524
+ getComments: (..._args: any[]) => never;
28525
+ /** @deprecated 请使用 douyinFetcher.fetchCommentReplies 替代 */
28526
+ getCommentReplies: (..._args: any[]) => never;
28527
+ /** @deprecated 请使用 douyinFetcher.fetchUserProfile 替代 */
28528
+ getUserProfile: (..._args: any[]) => never;
28529
+ /** @deprecated 请使用 douyinFetcher.fetchEmojiList 替代 */
28530
+ getEmojiList: (..._args: any[]) => never;
28531
+ /** @deprecated 请使用 douyinFetcher.fetchDynamicEmojiList 替代 */
28532
+ getEmojiProList: (..._args: any[]) => never;
28533
+ /** @deprecated 请使用 douyinFetcher.fetchUserVideoList 替代 */
28534
+ getUserVideos: (..._args: any[]) => never;
28535
+ /** @deprecated 请使用 douyinFetcher.fetchMusicInfo 替代 */
28536
+ getMusicInfo: (..._args: any[]) => never;
28537
+ /** @deprecated 请使用 douyinFetcher.fetchSuggestWords 替代 */
28538
+ getSuggestWords: (..._args: any[]) => never;
28539
+ /** @deprecated 请使用 douyinFetcher.searchContent 替代 */
28540
+ search: (..._args: any[]) => never;
28541
+ /** @deprecated 请使用 douyinFetcher.fetchLiveRoomInfo 替代 */
28542
+ getLiveRoomInfo: (..._args: any[]) => never;
28543
+ /** @deprecated 请使用 douyinFetcher.fetchDanmakuList 替代 */
28544
+ getDanmaku: (..._args: any[]) => never;
28545
+ /** @deprecated 请使用 douyinFetcher 的具体方法替代 */
27988
28546
  invoke: (..._args: any[]) => never;
27989
28547
  };
27990
28548
  /**
27991
28549
  * 绑定cookie的抖音API对象类型
27992
28550
  */
27993
- type BoundDouyinApi = ReturnType<typeof createBoundDouyinApi>; //#endregion
28551
+ type BoundDouyinApi = ReturnType<typeof createBoundDouyinApi>;
28552
+ //#endregion
27994
28553
  //#region src/platform/douyin/routes.d.ts
27995
28554
  /**
27996
28555
  * 创建抖音路由
@@ -27998,10 +28557,12 @@ type BoundDouyinApi = ReturnType<typeof createBoundDouyinApi>; //#endregion
27998
28557
  * @param requestConfig - 可选的请求配置
27999
28558
  * @returns Express路由器
28000
28559
  */
28001
- declare const createDouyinRoutes: (cookie: string, requestConfig?: RequestConfig) => express.Router; //#endregion
28560
+ declare const createDouyinRoutes: (cookie: string, requestConfig?: RequestConfig) => express.Router;
28561
+ //#endregion
28002
28562
  //#region src/platform/douyin/index.d.ts
28003
28563
  type douyinUtilsModel = {
28004
- /** 签名算法相关 */sign: typeof douyinSign;
28564
+ /** 签名算法相关 */
28565
+ sign: typeof douyinSign;
28005
28566
  /**
28006
28567
  * 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据
28007
28568
  *
@@ -28018,12 +28579,13 @@ type douyinUtilsModel = {
28018
28579
  api: typeof douyin;
28019
28580
  };
28020
28581
  /** 抖音相关功能模块 (工具集) */
28021
- declare const douyinUtils: douyinUtilsModel; //#endregion
28582
+ declare const douyinUtils: douyinUtilsModel;
28583
+ //#endregion
28022
28584
  //#region src/platform/kuaishou/API.d.ts
28023
28585
  /**
28024
28586
  * 根据 KuaishouMethodOptionsMap 创建一个新的类型,去除每个字段中的 methodType
28025
28587
  */
28026
- type KuaishouMethodOptionsWithoutMethodType = { [K in keyof KuaishouMethodOptionsMap]: OmitMethodType<KuaishouMethodOptionsMap[K]> };
28588
+ type KuaishouMethodOptionsWithoutMethodType = { [K in keyof KuaishouMethodOptionsMap]: OmitMethodType<KuaishouMethodOptionsMap[K]>; };
28027
28589
  type KuaishouUserProfileListRequest = KuaishouMethodOptionsWithoutMethodType['UserProfileParams'] | KuaishouMethodOptionsWithoutMethodType['UserWorkListParams'];
28028
28590
  type KuaishouBaseApiRequest = {
28029
28591
  type: string;
@@ -28228,7 +28790,8 @@ declare class API {
28228
28790
  *
28229
28791
  * 该对象只负责返回请求描述,不直接发起网络请求。
28230
28792
  */
28231
- declare const kuaishouApiUrls: API; //#endregion
28793
+ declare const kuaishouApiUrls: API;
28794
+ //#endregion
28232
28795
  //#region src/platform/kuaishou/sign/helpers.d.ts
28233
28796
  /**
28234
28797
  * 快手 `__NS_hxfalcon` 组包所需的标准化载荷。
@@ -28240,7 +28803,8 @@ type KuaishouHxfalconPayload = {
28240
28803
  query: Record<string, string>;
28241
28804
  form: Record<string, string>;
28242
28805
  requestBody: Record<string, unknown>;
28243
- }; //#endregion
28806
+ };
28807
+ //#endregion
28244
28808
  //#region src/platform/kuaishou/sign/index.d.ts
28245
28809
  /**
28246
28810
  * 快手 `live_api` 请求签名结果。
@@ -28297,7 +28861,8 @@ declare class kuaishouSign {
28297
28861
  * @returns 带签名 URL、附加请求头和调试信息
28298
28862
  */
28299
28863
  static signLiveApiRequest(request: KuaishouLiveApiRequest, cookie?: string): KuaishouLiveApiSignature;
28300
- } //#endregion
28864
+ }
28865
+ //#endregion
28301
28866
  //#region src/platform/kuaishou/KuaishouApi.d.ts
28302
28867
  /**
28303
28868
  * 快手相关 API 的命名空间。
@@ -28305,11 +28870,17 @@ declare class kuaishouSign {
28305
28870
  * @deprecated v6 已废弃,请使用 kuaishouFetcher 或 client.kuaishou.fetcher 替代
28306
28871
  */
28307
28872
  declare const kuaishou: {
28308
- /** @deprecated 请使用 kuaishouFetcher.fetchVideoWork 替代 */getWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchWorkComments 替代 */
28309
- getComments: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchUserProfile 替代 */
28310
- getUserProfile: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchUserWorkList 替代 */
28311
- getUserWorkList: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchLiveRoomInfo 替代 */
28312
- getLiveRoomInfo: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchEmojiList 替代 */
28873
+ /** @deprecated 请使用 kuaishouFetcher.fetchVideoWork 替代 */
28874
+ getWorkInfo: (..._args: any[]) => never;
28875
+ /** @deprecated 请使用 kuaishouFetcher.fetchWorkComments 替代 */
28876
+ getComments: (..._args: any[]) => never;
28877
+ /** @deprecated 请使用 kuaishouFetcher.fetchUserProfile 替代 */
28878
+ getUserProfile: (..._args: any[]) => never;
28879
+ /** @deprecated 请使用 kuaishouFetcher.fetchUserWorkList 替代 */
28880
+ getUserWorkList: (..._args: any[]) => never;
28881
+ /** @deprecated 请使用 kuaishouFetcher.fetchLiveRoomInfo 替代 */
28882
+ getLiveRoomInfo: (..._args: any[]) => never;
28883
+ /** @deprecated 请使用 kuaishouFetcher.fetchEmojiList 替代 */
28313
28884
  getEmojiList: (..._args: any[]) => never;
28314
28885
  };
28315
28886
  /**
@@ -28318,17 +28889,24 @@ declare const kuaishou: {
28318
28889
  * @deprecated v6 已废弃,请使用 createBoundKuaishouFetcher 替代
28319
28890
  */
28320
28891
  declare const createBoundKuaishouApi: (_cookie: string, _requestConfig: RequestConfig) => {
28321
- /** @deprecated 请使用 kuaishouFetcher.fetchVideoWork 替代 */getWorkInfo: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchWorkComments 替代 */
28322
- getComments: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchUserProfile 替代 */
28323
- getUserProfile: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchUserWorkList 替代 */
28324
- getUserWorkList: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchLiveRoomInfo 替代 */
28325
- getLiveRoomInfo: (..._args: any[]) => never; /** @deprecated 请使用 kuaishouFetcher.fetchEmojiList 替代 */
28892
+ /** @deprecated 请使用 kuaishouFetcher.fetchVideoWork 替代 */
28893
+ getWorkInfo: (..._args: any[]) => never;
28894
+ /** @deprecated 请使用 kuaishouFetcher.fetchWorkComments 替代 */
28895
+ getComments: (..._args: any[]) => never;
28896
+ /** @deprecated 请使用 kuaishouFetcher.fetchUserProfile 替代 */
28897
+ getUserProfile: (..._args: any[]) => never;
28898
+ /** @deprecated 请使用 kuaishouFetcher.fetchUserWorkList 替代 */
28899
+ getUserWorkList: (..._args: any[]) => never;
28900
+ /** @deprecated 请使用 kuaishouFetcher.fetchLiveRoomInfo 替代 */
28901
+ getLiveRoomInfo: (..._args: any[]) => never;
28902
+ /** @deprecated 请使用 kuaishouFetcher.fetchEmojiList 替代 */
28326
28903
  getEmojiList: (..._args: any[]) => never;
28327
28904
  };
28328
28905
  /**
28329
28906
  * 绑定cookie的快手API对象类型
28330
28907
  */
28331
- type BoundKuaishouApi = ReturnType<typeof createBoundKuaishouApi>; //#endregion
28908
+ type BoundKuaishouApi = ReturnType<typeof createBoundKuaishouApi>;
28909
+ //#endregion
28332
28910
  //#region src/platform/kuaishou/routes.d.ts
28333
28911
  /**
28334
28912
  * 创建快手路由
@@ -28336,10 +28914,13 @@ type BoundKuaishouApi = ReturnType<typeof createBoundKuaishouApi>; //#endregion
28336
28914
  * @param requestConfig - 可选的请求配置
28337
28915
  * @returns Express路由器
28338
28916
  */
28339
- declare const createKuaishouRoutes: (cookie: string, requestConfig?: RequestConfig) => express.Router; //#endregion
28917
+ declare const createKuaishouRoutes: (cookie: string, requestConfig?: RequestConfig) => express.Router;
28918
+ //#endregion
28340
28919
  //#region src/platform/kuaishou/index.d.ts
28341
28920
  type kuaishouUtilsModel = {
28342
- /** 签名算法相关 */sign: typeof kuaishouSign; /** 该类下的方法只会返回请求描述对象,需要手动请求对应地址以获取数据 */
28921
+ /** 签名算法相关 */
28922
+ sign: typeof kuaishouSign;
28923
+ /** 该类下的方法只会返回请求描述对象,需要手动请求对应地址以获取数据 */
28343
28924
  kuaishouApiUrls: typeof kuaishouApiUrls;
28344
28925
  /**
28345
28926
  * 封装了所有快手相关的API请求,采用对象化的方式组织。
@@ -28351,7 +28932,8 @@ type kuaishouUtilsModel = {
28351
28932
  api: typeof kuaishou;
28352
28933
  };
28353
28934
  /** 快手相关功能模块 (工具集) */
28354
- declare const kuaishouUtils: kuaishouUtilsModel; //#endregion
28935
+ declare const kuaishouUtils: kuaishouUtilsModel;
28936
+ //#endregion
28355
28937
  //#region src/platform/xiaohongshu/sign/index.d.ts
28356
28938
  /**
28357
28939
  * 小红书签名算法类
@@ -28409,7 +28991,8 @@ declare class xiaohongshuSign {
28409
28991
  * @returns 搜索ID字符串
28410
28992
  */
28411
28993
  static getSearchId: () => string;
28412
- } //#endregion
28994
+ }
28995
+ //#endregion
28413
28996
  //#region src/platform/xiaohongshu/XiaohongshuApi.d.ts
28414
28997
  /**
28415
28998
  * 封装了所有小红书相关的API请求,采用对象化的方式组织。
@@ -28417,12 +29000,19 @@ declare class xiaohongshuSign {
28417
29000
  * @deprecated v6 已废弃,请使用 xiaohongshuFetcher 或 client.xiaohongshu.fetcher 替代
28418
29001
  */
28419
29002
  declare const xiaohongshu: {
28420
- /** @deprecated 请使用 xiaohongshuFetcher.fetchHomeFeed 替代 */getHomeFeed: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchNoteDetail 替代 */
28421
- getNote: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchNoteComments 替代 */
28422
- getComments: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchUserProfile 替代 */
28423
- getUser: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchUserNoteList 替代 */
28424
- getUserNotes: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.searchNotes 替代 */
28425
- getSearchNotes: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchEmojiList 替代 */
29003
+ /** @deprecated 请使用 xiaohongshuFetcher.fetchHomeFeed 替代 */
29004
+ getHomeFeed: (..._args: any[]) => never;
29005
+ /** @deprecated 请使用 xiaohongshuFetcher.fetchNoteDetail 替代 */
29006
+ getNote: (..._args: any[]) => never;
29007
+ /** @deprecated 请使用 xiaohongshuFetcher.fetchNoteComments 替代 */
29008
+ getComments: (..._args: any[]) => never;
29009
+ /** @deprecated 请使用 xiaohongshuFetcher.fetchUserProfile 替代 */
29010
+ getUser: (..._args: any[]) => never;
29011
+ /** @deprecated 请使用 xiaohongshuFetcher.fetchUserNoteList 替代 */
29012
+ getUserNotes: (..._args: any[]) => never;
29013
+ /** @deprecated 请使用 xiaohongshuFetcher.searchNotes 替代 */
29014
+ getSearchNotes: (..._args: any[]) => never;
29015
+ /** @deprecated 请使用 xiaohongshuFetcher.fetchEmojiList 替代 */
28426
29016
  getEmojiList: (..._args: any[]) => never;
28427
29017
  };
28428
29018
  /**
@@ -28431,18 +29021,26 @@ declare const xiaohongshu: {
28431
29021
  * @deprecated v6 已废弃,请使用 createBoundXiaohongshuFetcher 替代
28432
29022
  */
28433
29023
  declare const createBoundXiaohongshuApi: (_cookie: string, _requestConfig: RequestConfig) => {
28434
- /** @deprecated 请使用 xiaohongshuFetcher.fetchHomeFeed 替代 */getHomeFeed: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchNoteDetail 替代 */
28435
- getNote: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchNoteComments 替代 */
28436
- getComments: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchUserProfile 替代 */
28437
- getUser: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchUserNoteList 替代 */
28438
- getUserNotes: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.searchNotes 替代 */
28439
- getSearchNotes: (..._args: any[]) => never; /** @deprecated 请使用 xiaohongshuFetcher.fetchEmojiList 替代 */
29024
+ /** @deprecated 请使用 xiaohongshuFetcher.fetchHomeFeed 替代 */
29025
+ getHomeFeed: (..._args: any[]) => never;
29026
+ /** @deprecated 请使用 xiaohongshuFetcher.fetchNoteDetail 替代 */
29027
+ getNote: (..._args: any[]) => never;
29028
+ /** @deprecated 请使用 xiaohongshuFetcher.fetchNoteComments 替代 */
29029
+ getComments: (..._args: any[]) => never;
29030
+ /** @deprecated 请使用 xiaohongshuFetcher.fetchUserProfile 替代 */
29031
+ getUser: (..._args: any[]) => never;
29032
+ /** @deprecated 请使用 xiaohongshuFetcher.fetchUserNoteList 替代 */
29033
+ getUserNotes: (..._args: any[]) => never;
29034
+ /** @deprecated 请使用 xiaohongshuFetcher.searchNotes 替代 */
29035
+ getSearchNotes: (..._args: any[]) => never;
29036
+ /** @deprecated 请使用 xiaohongshuFetcher.fetchEmojiList 替代 */
28440
29037
  getEmojiList: (..._args: any[]) => never;
28441
29038
  };
28442
29039
  /**
28443
29040
  * 绑定cookie的小红书API对象类型
28444
29041
  */
28445
- type BoundXiaohongshuApi = ReturnType<typeof createBoundXiaohongshuApi>; //#endregion
29042
+ type BoundXiaohongshuApi = ReturnType<typeof createBoundXiaohongshuApi>;
29043
+ //#endregion
28446
29044
  //#region src/platform/xiaohongshu/routes.d.ts
28447
29045
  /**
28448
29046
  * 创建小红书路由
@@ -28450,10 +29048,12 @@ type BoundXiaohongshuApi = ReturnType<typeof createBoundXiaohongshuApi>; //#endr
28450
29048
  * @param requestConfig - 可选的请求配置
28451
29049
  * @returns Express路由器
28452
29050
  */
28453
- declare const createXiaohongshuRoutes: (cookie: string, requestConfig?: RequestConfig) => express.Router; //#endregion
29051
+ declare const createXiaohongshuRoutes: (cookie: string, requestConfig?: RequestConfig) => express.Router;
29052
+ //#endregion
28454
29053
  //#region src/platform/xiaohongshu/index.d.ts
28455
29054
  type xiaohongshuUtilsModel = {
28456
- /** 签名算法相关 */sign: typeof xiaohongshuSign;
29055
+ /** 签名算法相关 */
29056
+ sign: typeof xiaohongshuSign;
28457
29057
  /**
28458
29058
  * 该类下的所有方法只会返回拼接好参数后的 Url 地址,需要手动请求该地址以获取数据
28459
29059
  */
@@ -28468,7 +29068,8 @@ type xiaohongshuUtilsModel = {
28468
29068
  api: typeof xiaohongshu;
28469
29069
  };
28470
29070
  /** 小红书相关功能模块 (工具集) */
28471
- declare const xiaohongshuUtils: xiaohongshuUtilsModel; //#endregion
29071
+ declare const xiaohongshuUtils: xiaohongshuUtilsModel;
29072
+ //#endregion
28472
29073
  //#region src/model/DataFetchers.d.ts
28473
29074
  /**
28474
29075
  * 获取抖音数据
@@ -28532,7 +29133,8 @@ declare function getBilibiliData(..._args: any[]): never;
28532
29133
  * const data = await client.kuaishou.fetcher.fetchVideoWork({ photoId: '123' })
28533
29134
  * ```
28534
29135
  */
28535
- declare function getKuaishouData(..._args: any[]): never; //#endregion
29136
+ declare function getKuaishouData(..._args: any[]): never;
29137
+ //#endregion
28536
29138
  //#region src/utils/errors.d.ts
28537
29139
  /**
28538
29140
  * API错误类
@@ -28591,7 +29193,8 @@ declare const handleError: (error: unknown, requestPath?: string) => {
28591
29193
  }>;
28592
29194
  platform?: string;
28593
29195
  requestPath?: string;
28594
- }; //#endregion
29196
+ };
29197
+ //#endregion
28595
29198
  //#region src/model/networks.d.ts
28596
29199
  /**
28597
29200
  * 执行网络请求并返回数据(带自动重试)
@@ -28624,7 +29227,8 @@ declare const isNetworkErrorResult: (result: unknown) => result is ErrorResult;
28624
29227
  declare const getHeadersAndData: <T = any>(config: AxiosRequestConfig, maxRetries?: number) => Promise<{
28625
29228
  headers: RawAxiosResponseHeaders;
28626
29229
  data: T;
28627
- } | ErrorResult>; //#endregion
29230
+ } | ErrorResult>;
29231
+ //#endregion
28628
29232
  //#region src/model/logger.d.ts
28629
29233
  /**
28630
29234
  * @deprecated v6 已废弃,请使用事件系统替代
@@ -28666,7 +29270,8 @@ declare const httpLogger: SimpleLogger;
28666
29270
  * @param pathsToLog 指定需要记录日志的请求路径数组如果未提供,则记录所有请求的日志
28667
29271
  * @returns
28668
29272
  */
28669
- declare const logMiddleware: (pathsToLog?: string[]) => express.RequestHandler; //#endregion
29273
+ declare const logMiddleware: (pathsToLog?: string[]) => express.RequestHandler;
29274
+ //#endregion
28670
29275
  //#region src/types/api-spec.d.ts
28671
29276
  /**
28672
29277
  * Amagi v6 API 规范定义
@@ -28870,7 +29475,8 @@ declare function getEnglishMethodName<T extends Platform>(platform: T, chineseMe
28870
29475
  /**
28871
29476
  * 根据 methodType 获取 HTTP API 路由路径
28872
29477
  */
28873
- declare function getApiRoute<T extends Platform>(platform: T, methodType: string): string | undefined; //#endregion
29478
+ declare function getApiRoute<T extends Platform>(platform: T, methodType: string): string | undefined;
29479
+ //#endregion
28874
29480
  //#region src/index.d.ts
28875
29481
  /**
28876
29482
  * @deprecated 请使用 createAmagiClient 替代
@@ -28879,11 +29485,16 @@ declare const amagiClient: typeof createAmagiClient;
28879
29485
  /** amagi 的构造函数类型 */
28880
29486
  type AmagiConstructor = {
28881
29487
  new (options?: Options): ReturnType<typeof createAmagiClient>;
28882
- (options?: Options): ReturnType<typeof createAmagiClient>; /** 当前版本号 */
28883
- readonly version: string; /** 抖音相关功能模块 (工具集) */
28884
- douyin: typeof douyinUtils; /** B站相关功能模块 (工具集) */
28885
- bilibili: typeof bilibiliUtils; /** 快手相关功能模块 (工具集) */
28886
- kuaishou: typeof kuaishouUtils; /** 小红书相关功能模块 (工具集) */
29488
+ (options?: Options): ReturnType<typeof createAmagiClient>;
29489
+ /** 当前版本号 */
29490
+ readonly version: string;
29491
+ /** 抖音相关功能模块 (工具集) */
29492
+ douyin: typeof douyinUtils;
29493
+ /** B站相关功能模块 (工具集) */
29494
+ bilibili: typeof bilibiliUtils;
29495
+ /** 快手相关功能模块 (工具集) */
29496
+ kuaishou: typeof kuaishouUtils;
29497
+ /** 小红书相关功能模块 (工具集) */
28887
29498
  xiaohongshu: typeof xiaohongshuUtils;
28888
29499
  /**
28889
29500
  * @deprecated v6 已废弃,请使用 douyinFetcher 替代
@@ -28904,7 +29515,8 @@ type AmagiConstructor = {
28904
29515
  * @deprecated v6 已废弃,请使用 xiaohongshuFetcher 替代
28905
29516
  * @throws {DeprecatedApiError} 调用时抛出废弃错误
28906
29517
  */
28907
- getXiaohongshuData: (...args: any[]) => never; /** 事件系统 */
29518
+ getXiaohongshuData: (...args: any[]) => never;
29519
+ /** 事件系统 */
28908
29520
  events: typeof amagiEvents;
28909
29521
  /**
28910
29522
  * 注册事件监听器
@@ -28917,14 +29529,22 @@ type AmagiConstructor = {
28917
29529
  * @param event - 事件名称
28918
29530
  * @param listener - 事件处理函数 (只触发一次)
28919
29531
  */
28920
- once: typeof amagiEvents.once; /** B站数据获取器 (需要传递 cookie) */
28921
- bilibiliFetcher: typeof bilibiliFetcher; /** 抖音数据获取器 (需要传递 cookie) */
28922
- douyinFetcher: typeof douyinFetcher; /** 快手数据获取器 (需要传递 cookie) */
28923
- kuaishouFetcher: typeof kuaishouFetcher; /** 小红书数据获取器 (需要传递 cookie) */
28924
- xiaohongshuFetcher: typeof xiaohongshuFetcher; /** 创建绑定 cookie 的 B站 fetcher */
28925
- createBoundBilibiliFetcher: typeof createBoundBilibiliFetcher; /** 创建绑定 cookie 的抖音 fetcher */
28926
- createBoundDouyinFetcher: typeof createBoundDouyinFetcher; /** 创建绑定 cookie 的快手 fetcher */
28927
- createBoundKuaishouFetcher: typeof createBoundKuaishouFetcher; /** 创建绑定 cookie 的小红书 fetcher */
29532
+ once: typeof amagiEvents.once;
29533
+ /** B站数据获取器 (需要传递 cookie) */
29534
+ bilibiliFetcher: typeof bilibiliFetcher;
29535
+ /** 抖音数据获取器 (需要传递 cookie) */
29536
+ douyinFetcher: typeof douyinFetcher;
29537
+ /** 快手数据获取器 (需要传递 cookie) */
29538
+ kuaishouFetcher: typeof kuaishouFetcher;
29539
+ /** 小红书数据获取器 (需要传递 cookie) */
29540
+ xiaohongshuFetcher: typeof xiaohongshuFetcher;
29541
+ /** 创建绑定 cookie 的 B站 fetcher */
29542
+ createBoundBilibiliFetcher: typeof createBoundBilibiliFetcher;
29543
+ /** 创建绑定 cookie 的抖音 fetcher */
29544
+ createBoundDouyinFetcher: typeof createBoundDouyinFetcher;
29545
+ /** 创建绑定 cookie 的快手 fetcher */
29546
+ createBoundKuaishouFetcher: typeof createBoundKuaishouFetcher;
29547
+ /** 创建绑定 cookie 的小红书 fetcher */
28928
29548
  createBoundXiaohongshuFetcher: typeof createBoundXiaohongshuFetcher;
28929
29549
  };
28930
29550
  /** After instantiation, it can interact with the specified platform API to quickly obtain data. */
@@ -28932,11 +29552,5 @@ declare const CreateApp: AmagiConstructor;
28932
29552
  /** After instantiation, it can interact with the specified platform API to quickly obtain data. */
28933
29553
  declare const Client: typeof CreateApp;
28934
29554
  declare const amagi: typeof Client;
28935
- /*!
28936
- * @ikenxuan/amagi
28937
- * Copyright(c) 2023 ikenxuan
28938
- * GPL-3.0 Licensed
28939
- */
28940
- //#endregion
28941
29555
  //#endregion
28942
29556
  export { APIErrorType, AdditionalType, AmagiEventMap, AmagiEventType, 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, 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, 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, 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 };