@ikenxuan/amagi 5.3.0 → 5.4.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.
@@ -299,6 +299,26 @@ interface DouyinMethodOptionsMap {
299
299
  EmojiProParams: {
300
300
  methodType: '动态表情数据';
301
301
  };
302
+ DanmakuParams: {
303
+ methodType: '弹幕数据';
304
+ /** 视频ID */
305
+ aweme_id: string;
306
+ /**
307
+ * 弹幕查询的开始时间(毫秒)
308
+ * 例如:设置为5000表示从视频第5秒开始获取弹幕
309
+ * 不设置则从视频开头(0秒)开始获取
310
+ * @default 0
311
+ */
312
+ start_time?: number;
313
+ /**
314
+ * 弹幕查询的结束时间(毫秒)
315
+ * 例如:设置为10000表示获取到视频第10秒的弹幕
316
+ * 不设置则获取到视频结束
317
+ */
318
+ end_time?: number;
319
+ /** 视频总时长 */
320
+ duration: number;
321
+ };
302
322
  VideoWorkParams: {
303
323
  methodType: '视频作品数据';
304
324
  /** 视频ID */
@@ -356,6 +376,10 @@ type DouyinEmojiListParams = DouyinMethodOptionsMap['EmojiListParams'];
356
376
  * 抖音动态表情数据请求参数
357
377
  */
358
378
  type DouyinEmojiProParams = DouyinMethodOptionsMap['EmojiProParams'];
379
+ /**
380
+ * 抖音弹幕数据请求参数
381
+ */
382
+ type DouyinDanmakuParams = DouyinMethodOptionsMap['DanmakuParams'];
359
383
  declare const DouyinWorkParamsSchema: z.ZodType<DouyinWorkParams>;
360
384
  declare const DouyinCommentParamsSchema: z.ZodType<DouyinCommentParams>;
361
385
  declare const DouyinSearchParamsSchema: z.ZodType<DouyinSearchParams>;
@@ -365,6 +389,7 @@ declare const DouyinMusicParamsSchema: z.ZodType<DouyinMusicParams>;
365
389
  declare const DouyinQrcodeParamsSchema: z.ZodType<DouyinQrcodeParams>;
366
390
  declare const DouyinEmojiListParamsSchema: z.ZodType<DouyinEmojiListParams>;
367
391
  declare const DouyinEmojiProParamsSchema: z.ZodType<DouyinEmojiProParams>;
392
+ declare const DouyinDanmakuParamsSchema: z.ZodType<DouyinDanmakuParams>;
368
393
  declare const DouyinValidationSchemas: {
369
394
  readonly 文字作品数据: z.ZodType<{
370
395
  methodType: "\u89C6\u9891\u4F5C\u54C1\u6570\u636E" | "\u56FE\u96C6\u4F5C\u54C1\u6570\u636E" | "\u5408\u8F91\u4F5C\u54C1\u6570\u636E" | "\u805A\u5408\u89E3\u6790" | "\u6587\u5B57\u4F5C\u54C1\u6570\u636E";
@@ -492,6 +517,19 @@ declare const DouyinValidationSchemas: {
492
517
  number?: number;
493
518
  cursor?: number;
494
519
  }>;
520
+ readonly 弹幕数据: z.ZodType<{
521
+ methodType: "\u5F39\u5E55\u6570\u636E";
522
+ aweme_id: string;
523
+ start_time?: number;
524
+ end_time?: number;
525
+ duration: number;
526
+ }, z.ZodTypeDef, {
527
+ methodType: "\u5F39\u5E55\u6570\u636E";
528
+ aweme_id: string;
529
+ start_time?: number;
530
+ end_time?: number;
531
+ duration: number;
532
+ }>;
495
533
  };
496
534
  type DouyinMethodType = keyof typeof DouyinValidationSchemas;
497
535
 
@@ -859,7 +897,7 @@ type DyEmojiProList = {
859
897
  extra: EmojiProListExtra;
860
898
  flame_achieve_dashboard: FlameAchieveDashboard;
861
899
  interactive_resource_config: InteractiveResourceConfig;
862
- log_pb: LogPb$9;
900
+ log_pb: LogPb$a;
863
901
  report_toggles: ReportToggles;
864
902
  status_code: number;
865
903
  status_msg: string;
@@ -1381,7 +1419,7 @@ type StickyConfig = {
1381
1419
  sender_show?: string;
1382
1420
  [property: string]: any;
1383
1421
  };
1384
- type LogPb$9 = {
1422
+ type LogPb$a = {
1385
1423
  impr_id: string;
1386
1424
  [property: string]: any;
1387
1425
  };
@@ -1397,7 +1435,7 @@ type ReportToggles = {
1397
1435
  /** 图集作品 */
1398
1436
  type DyImageAlbumWork = {
1399
1437
  aweme_detail: AwemeDetail$3;
1400
- log_pb: LogPb$8;
1438
+ log_pb: LogPb$9;
1401
1439
  status_code: number;
1402
1440
  [property: string]: any;
1403
1441
  };
@@ -2077,7 +2115,7 @@ type XiguaBaseInfo$4 = {
2077
2115
  status: number;
2078
2116
  [property: string]: any;
2079
2117
  };
2080
- type LogPb$8 = {
2118
+ type LogPb$9 = {
2081
2119
  impr_id: string;
2082
2120
  [property: string]: any;
2083
2121
  };
@@ -2088,7 +2126,7 @@ type DyMusicWork = {
2088
2126
  [key: string]: any;
2089
2127
  };
2090
2128
  high_upload_ratio: number;
2091
- log_pb: LogPb$7;
2129
+ log_pb: LogPb$8;
2092
2130
  msg: string;
2093
2131
  music_info: MusicInfo;
2094
2132
  rec_list: string[];
@@ -2105,7 +2143,7 @@ type Extra$4 = {
2105
2143
  now: number;
2106
2144
  [property: string]: any;
2107
2145
  };
2108
- type LogPb$7 = {
2146
+ type LogPb$8 = {
2109
2147
  impr_id: string;
2110
2148
  [property: string]: any;
2111
2149
  };
@@ -2322,7 +2360,7 @@ type DySearchInfo = {
2322
2360
  global_doodle_config: GlobalDoodleConfig;
2323
2361
  guide_search_words: GuideSearchWord[];
2324
2362
  has_more: number;
2325
- log_pb: LogPb$6;
2363
+ log_pb: LogPb$7;
2326
2364
  multi_columns_info: MultiColumnsInfo;
2327
2365
  ops: null;
2328
2366
  path: string;
@@ -3125,7 +3163,7 @@ type GuideSearchWord = {
3125
3163
  word: string;
3126
3164
  [property: string]: any;
3127
3165
  };
3128
- type LogPb$6 = {
3166
+ type LogPb$7 = {
3129
3167
  impr_id: string;
3130
3168
  [property: string]: any;
3131
3169
  };
@@ -3142,7 +3180,7 @@ type TimeCost$1 = {
3142
3180
  /** 合辑作品 */
3143
3181
  type DySlidesWork = {
3144
3182
  aweme_detail: AwemeDetail$2;
3145
- log_pb: LogPb$5;
3183
+ log_pb: LogPb$6;
3146
3184
  status_code: number;
3147
3185
  [property: string]: any;
3148
3186
  };
@@ -3907,7 +3945,7 @@ type XiguaBaseInfo$3 = {
3907
3945
  status: number;
3908
3946
  [property: string]: any;
3909
3947
  };
3910
- type LogPb$5 = {
3948
+ type LogPb$6 = {
3911
3949
  impr_id: string;
3912
3950
  [property: string]: any;
3913
3951
  };
@@ -3982,7 +4020,7 @@ type TimeCost = {
3982
4020
 
3983
4021
  type DyUserInfo = {
3984
4022
  extra: Extra$1;
3985
- log_pb: LogPb$4;
4023
+ log_pb: LogPb$5;
3986
4024
  status_code: number;
3987
4025
  status_msg: null;
3988
4026
  user: User$1;
@@ -3994,7 +4032,7 @@ type Extra$1 = {
3994
4032
  now: number;
3995
4033
  [property: string]: any;
3996
4034
  };
3997
- type LogPb$4 = {
4035
+ type LogPb$5 = {
3998
4036
  impr_id: string;
3999
4037
  [property: string]: any;
4000
4038
  };
@@ -4315,7 +4353,7 @@ type Data$f = {
4315
4353
  data: Datum[];
4316
4354
  enter_mode: number;
4317
4355
  enter_room_id: string;
4318
- extra: DataExtra;
4356
+ extra: DataExtra$1;
4319
4357
  login_lead: LoginLead;
4320
4358
  partition_road_map: PartitionRoadMap;
4321
4359
  qrcode_url: string;
@@ -5748,7 +5786,7 @@ type General = {
5748
5786
  GroupPriority: number[];
5749
5787
  [property: string]: any;
5750
5788
  };
5751
- type DataExtra = {
5789
+ type DataExtra$1 = {
5752
5790
  digg_color: string;
5753
5791
  is_official_channel: boolean;
5754
5792
  pay_scores: string;
@@ -6392,7 +6430,7 @@ type UserLiveVideosExtra = {
6392
6430
  type DyUserPostVideos = {
6393
6431
  aweme_list: AwemeList[];
6394
6432
  has_more: number;
6395
- log_pb: LogPb$3;
6433
+ log_pb: LogPb$4;
6396
6434
  max_cursor: number;
6397
6435
  min_cursor: number;
6398
6436
  post_serial: number;
@@ -7299,7 +7337,7 @@ type XiguaBaseInfo$2 = {
7299
7337
  status: number;
7300
7338
  [property: string]: any;
7301
7339
  };
7302
- type LogPb$3 = {
7340
+ type LogPb$4 = {
7303
7341
  impr_id: string;
7304
7342
  [property: string]: any;
7305
7343
  };
@@ -7307,7 +7345,7 @@ type LogPb$3 = {
7307
7345
  /** 单个视频作品 */
7308
7346
  type DyVideoWork = {
7309
7347
  aweme_detail: AwemeDetail$1;
7310
- log_pb: LogPb$2;
7348
+ log_pb: LogPb$3;
7311
7349
  status_code: number;
7312
7350
  [property: string]: any;
7313
7351
  };
@@ -8043,7 +8081,7 @@ type XiguaBaseInfo$1 = {
8043
8081
  status: number;
8044
8082
  [property: string]: any;
8045
8083
  };
8046
- type LogPb$2 = {
8084
+ type LogPb$3 = {
8047
8085
  impr_id: string;
8048
8086
  [property: string]: any;
8049
8087
  };
@@ -8063,7 +8101,7 @@ type DyWorkComments = {
8063
8101
  };
8064
8102
  has_more: number;
8065
8103
  hotsoon_filtered_count: number;
8066
- log_pb: LogPb$1;
8104
+ log_pb: LogPb$2;
8067
8105
  reply_style: number;
8068
8106
  show_management_entry_point: number;
8069
8107
  status_code: number;
@@ -8365,6 +8403,54 @@ type FastResponseComment = {
8365
8403
  timed_response_words: string[];
8366
8404
  [property: string]: any;
8367
8405
  };
8406
+ type LogPb$2 = {
8407
+ impr_id: string;
8408
+ [property: string]: any;
8409
+ };
8410
+
8411
+ type DyDanmakuList = {
8412
+ danmaku_list: DanmakuList[];
8413
+ end_time: number;
8414
+ extra: DataExtra;
8415
+ log_pb: LogPb$1;
8416
+ start_time: number;
8417
+ status_code: number;
8418
+ total: number;
8419
+ [property: string]: any;
8420
+ };
8421
+ type DanmakuList = {
8422
+ danmaku_id: string;
8423
+ danmaku_logos: null;
8424
+ danmaku_type: number;
8425
+ danmaku_type_bits: number;
8426
+ digg_count: number;
8427
+ digg_type: number;
8428
+ dislike_type: number;
8429
+ extra: DanmakuListExtra;
8430
+ from_copy: boolean;
8431
+ has_emoji: boolean;
8432
+ is_ad: boolean;
8433
+ item_id: string;
8434
+ offset_time: number;
8435
+ score: number;
8436
+ show_copy: boolean;
8437
+ show_digg: boolean;
8438
+ status: number;
8439
+ text: string;
8440
+ user_id: string;
8441
+ [property: string]: any;
8442
+ };
8443
+ type DanmakuListExtra = {
8444
+ big_thumb: null;
8445
+ style_list: null;
8446
+ [property: string]: any;
8447
+ };
8448
+ type DataExtra = {
8449
+ fatal_item_ids: string[];
8450
+ logid: string;
8451
+ now: number;
8452
+ [property: string]: any;
8453
+ };
8368
8454
  type LogPb$1 = {
8369
8455
  impr_id: string;
8370
8456
  [property: string]: any;
@@ -16876,6 +16962,10 @@ interface DouyinDataOptionsMap {
16876
16962
  opt: DouyinMethodOptionsMap['EmojiProParams'];
16877
16963
  data: DyEmojiProList;
16878
16964
  };
16965
+ 弹幕数据: {
16966
+ opt: DouyinMethodOptionsMap['DanmakuParams'];
16967
+ data: DyDanmakuList;
16968
+ };
16879
16969
  音乐数据: {
16880
16970
  opt: DouyinMethodOptionsMap['MusicParams'];
16881
16971
  data: DyMusicWork;
@@ -17001,6 +17091,12 @@ declare const validateDouyinParams: <T extends DouyinMethodType>(methodType: T,
17001
17091
  comment_id: string;
17002
17092
  number?: number;
17003
17093
  cursor?: number;
17094
+ } | {
17095
+ methodType: "\u5F39\u5E55\u6570\u636E";
17096
+ aweme_id: string;
17097
+ start_time?: number;
17098
+ end_time?: number;
17099
+ duration: number;
17004
17100
  };
17005
17101
  /**
17006
17102
  * 验证哔哩哔哩参数
@@ -17261,6 +17357,17 @@ declare const createAmagiClient: (options?: Options) => {
17261
17357
  } & {
17262
17358
  typeMode?: M | undefined;
17263
17359
  }) => Promise<ApiResponse<ConditionalReturnType<DyUserLiveVideos, M>>>;
17360
+ getDanmaku: <M extends TypeMode>(options: Omit<{
17361
+ methodType: "\u5F39\u5E55\u6570\u636E";
17362
+ aweme_id: string;
17363
+ start_time?: number;
17364
+ end_time?: number;
17365
+ duration: number;
17366
+ }, "methodType"> & {
17367
+ typeMode?: TypeMode;
17368
+ } & {
17369
+ typeMode?: M | undefined;
17370
+ }) => Promise<ApiResponse<ConditionalReturnType<DyDanmakuList, M>>>;
17264
17371
  };
17265
17372
  sign: typeof douyinSign;
17266
17373
  douyinApiUrls: typeof douyinApiUrls;
@@ -18478,6 +18585,22 @@ declare const douyin: {
18478
18585
  } & {
18479
18586
  typeMode?: M | undefined;
18480
18587
  }, cookie: string, requestConfig?: RequestConfig) => Promise<ApiResponse<ConditionalReturnType<DyUserLiveVideos, M>>>;
18588
+ /**
18589
+ * 获取弹幕数据
18590
+ * @param options 请求参数,包含 aweme_id, 可选的 start_time, end_time, duration 和 typeMode
18591
+ * @returns 统一格式的API响应,包含弹幕数据
18592
+ */
18593
+ getDanmaku: <M extends TypeMode>(options: Omit<{
18594
+ methodType: "\u5F39\u5E55\u6570\u636E";
18595
+ aweme_id: string;
18596
+ start_time?: number;
18597
+ end_time?: number;
18598
+ duration: number;
18599
+ }, "methodType"> & {
18600
+ typeMode?: TypeMode;
18601
+ } & {
18602
+ typeMode?: M | undefined;
18603
+ }, cookie: string, requestConfig?: RequestConfig) => Promise<ApiResponse<ConditionalReturnType<DyDanmakuList, M>>>;
18481
18604
  };
18482
18605
  /**
18483
18606
  * 创建绑定了cookie的抖音API对象
@@ -18687,6 +18810,22 @@ declare const createBoundDouyinApi: (cookie: string, requestConfig: RequestConfi
18687
18810
  } & {
18688
18811
  typeMode?: M | undefined;
18689
18812
  }) => Promise<ApiResponse<ConditionalReturnType<DyUserLiveVideos, M>>>;
18813
+ /**
18814
+ * 获取弹幕数据
18815
+ * @param options 请求参数,包含 aweme_id, 可选的 start_time, end_time, duration 和 typeMode
18816
+ * @returns 统一格式的API响应,包含弹幕数据
18817
+ */
18818
+ getDanmaku: <M extends TypeMode>(options: Omit<{
18819
+ methodType: "\u5F39\u5E55\u6570\u636E";
18820
+ aweme_id: string;
18821
+ start_time?: number;
18822
+ end_time?: number;
18823
+ duration: number;
18824
+ }, "methodType"> & {
18825
+ typeMode?: TypeMode;
18826
+ } & {
18827
+ typeMode?: M | undefined;
18828
+ }) => Promise<ApiResponse<ConditionalReturnType<DyDanmakuList, M>>>;
18690
18829
  };
18691
18830
  /**
18692
18831
  * 绑定cookie的抖音API对象类型
@@ -18784,6 +18923,12 @@ declare class DouyinAPI {
18784
18923
  * @returns 完整的接口URL
18785
18924
  */
18786
18925
  申请二维码(data: DouyinMethodOptionsWithoutMethodType['QrcodeParams']): string;
18926
+ /**
18927
+ * 获取弹幕数据的接口地址
18928
+ * @param data - 请求参数,包含group_id、item_id等
18929
+ * @returns 完整的接口URL
18930
+ */
18931
+ 弹幕(data: DouyinMethodOptionsWithoutMethodType['DanmakuParams']): string;
18787
18932
  }
18788
18933
  /**
18789
18934
  * 默认的DouyinAPI实例(使用默认浏览器版本125.0.0.0)
@@ -19256,6 +19401,17 @@ declare const amagiClient: (options?: Options) => {
19256
19401
  } & {
19257
19402
  typeMode?: M | undefined;
19258
19403
  }) => Promise<ApiResponse<ConditionalReturnType<DyUserLiveVideos, M>>>;
19404
+ getDanmaku: <M extends TypeMode>(options: Omit<{
19405
+ methodType: "\u5F39\u5E55\u6570\u636E";
19406
+ aweme_id: string;
19407
+ start_time?: number;
19408
+ end_time?: number;
19409
+ duration: number;
19410
+ }, "methodType"> & {
19411
+ typeMode?: TypeMode;
19412
+ } & {
19413
+ typeMode?: M | undefined;
19414
+ }) => Promise<ApiResponse<ConditionalReturnType<DyDanmakuList, M>>>;
19259
19415
  };
19260
19416
  sign: typeof douyinSign;
19261
19417
  douyinApiUrls: typeof douyinApiUrls;
@@ -19491,4 +19647,4 @@ declare const CreateApp: AmagiConstructor;
19491
19647
  declare const Client: AmagiConstructor;
19492
19648
  declare const amagi: AmagiConstructor;
19493
19649
 
19494
- export { type APIErrorType, AdditionalType, ApiError, type ApiResponse, type BaseResponse, type BiliAv2Bv, type BiliBangumiVideoInfo, type BiliBangumiVideoPlayurlIsLogin, type BiliBangumiVideoPlayurlNoLogin, type BiliBiliVideoPlayurlNoLogin, type BiliBv2AV, type BiliCheckQrcode, type BiliDynamicCard, type BiliDynamicInfo, type BiliDynamicInfoUnion, type BiliEmojiList, type BiliLiveRoomDef, type BiliLiveRoomDetail, type BiliNewLoginQrcode, type BiliOneWork, type BiliUserDynamic, type BiliUserFullView, type BiliUserProfile, type BiliVideoPlayurlIsLogin, type BiliWorkComments, type BilibiliAv2BvParams, BilibiliAv2BvParamsSchema, type BilibiliBangumiInfoParams, BilibiliBangumiInfoParamsSchema, type BilibiliBangumiStreamParams, BilibiliBangumiStreamParamsSchema, type BilibiliBv2AvParams, BilibiliBv2AvParamsSchema, type BilibiliCommentParams, BilibiliCommentParamsSchema, type BilibiliDataOptions, type BilibiliDataOptionsMap, type BilibiliDynamicParams, BilibiliDynamicParamsSchema, type BilibiliEmojiParams, BilibiliEmojiParamsSchema, type BilibiliLiveParams, BilibiliLiveParamsSchema, type BilibiliLoginParams, BilibiliLoginParamsSchema, type BilibiliMethodOptionsMap, type BilibiliMethodType, type BilibiliQrcodeParams, BilibiliQrcodeParamsSchema, type BilibiliQrcodeStatusParams, BilibiliQrcodeStatusParamsSchema, type BilibiliUserParams, BilibiliUserParamsSchema, BilibiliValidationSchemas, type BilibiliVideoDownloadParams, BilibiliVideoDownloadParamsSchema, type BilibiliVideoParams, BilibiliVideoParamsSchema, type BoundBilibiliApi, type BoundDouyinApi, type BoundKuaishouApi, type CookieConfig, CreateApp, type DouyinCommentParams, DouyinCommentParamsSchema, type DouyinCommentReplyParams, DouyinCommentReplyParamsSchema, type DouyinDataOptions, type DouyinDataOptionsMap, type DouyinEmojiListParams, DouyinEmojiListParamsSchema, type DouyinEmojiProParams, DouyinEmojiProParamsSchema, type DouyinLiveRoomParams, type DouyinMethodOptionsMap, type DouyinMethodType, type DouyinMusicParams, DouyinMusicParamsSchema, type DouyinQrcodeParams, DouyinQrcodeParamsSchema, type DouyinSearchParams, DouyinSearchParamsSchema, type DouyinUserParams, DouyinUserParamsSchema, DouyinValidationSchemas, type DouyinWorkParams, DouyinWorkParamsSchema, type DyEmojiList, type DyEmojiProList, type DyImageAlbumWork, type DyMusicWork, type DySearchInfo, type DySlidesWork, type DySuggestWords, type DyUserInfo, type DyUserLiveVideos, type DyUserPostVideos, type DyVideoWork, type DyWorkComments, DynamicType, type DynamicTypeAV$1 as DynamicTypeAV, type DynamicTypeDraw$1 as DynamicTypeDraw, type DynamicTypeForward, type DynamicTypeForwardUnion, type DynamicTypeLiveRcmd, type DynamicTypeWord, type ErrorResponse, type KsEmojiList, type KsOneWork, type KsWorkComments, type KuaishouCommentParams, KuaishouCommentParamsSchema, type KuaishouDataOptions, type KuaishouDataOptionsMap, type KuaishouEmojiParams, KuaishouEmojiParamsSchema, type KuaishouMethodOptionsMap, type KuaishouMethodType, KuaishouValidationSchemas, type KuaishouVideoParams, KuaishouVideoParamsSchema, MajorType, type NetworksConfigType, type OmitMethodType, type Options, type RequestConfig, type SuccessResponse, type TypeControl, ValidationError, amagi, amagiClient, av2bv, bilibili, bilibiliApiUrls, bilibiliErrorCodeMap, bilibiliUtils, bv2av, createAmagiClient, createBilibiliRoutes, createBoundBilibiliApi, createBoundDouyinApi, createBoundKuaishouApi, createDouyinRoutes, createErrorResponse, createKuaishouRoutes, createSuccessResponse, Client as default, douyin, douyinApiUrls, douyinSign, douyinUtils, fetchData, fetchResponse, getBilibiliData, getDouyinData, getHeadersAndData, getKuaishouData, handleError, httpLogger, kuaishou, kuaishouApiUrls, kuaishouUtils, logMiddleware, logger, qtparam, createBilibiliRoutes as registerBilibiliRoutes, createDouyinRoutes as registerDouyinRoutes, createKuaishouRoutes as registerKuaishouRoutes, validateBilibiliParams, validateDouyinParams, validateKuaishouParams, wbi_sign };
19650
+ export { type APIErrorType, AdditionalType, ApiError, type ApiResponse, type BaseResponse, type BiliAv2Bv, type BiliBangumiVideoInfo, type BiliBangumiVideoPlayurlIsLogin, type BiliBangumiVideoPlayurlNoLogin, type BiliBiliVideoPlayurlNoLogin, type BiliBv2AV, type BiliCheckQrcode, type BiliDynamicCard, type BiliDynamicInfo, type BiliDynamicInfoUnion, type BiliEmojiList, type BiliLiveRoomDef, type BiliLiveRoomDetail, type BiliNewLoginQrcode, type BiliOneWork, type BiliUserDynamic, type BiliUserFullView, type BiliUserProfile, type BiliVideoPlayurlIsLogin, type BiliWorkComments, type BilibiliAv2BvParams, BilibiliAv2BvParamsSchema, type BilibiliBangumiInfoParams, BilibiliBangumiInfoParamsSchema, type BilibiliBangumiStreamParams, BilibiliBangumiStreamParamsSchema, type BilibiliBv2AvParams, BilibiliBv2AvParamsSchema, type BilibiliCommentParams, BilibiliCommentParamsSchema, type BilibiliDataOptions, type BilibiliDataOptionsMap, type BilibiliDynamicParams, BilibiliDynamicParamsSchema, type BilibiliEmojiParams, BilibiliEmojiParamsSchema, type BilibiliLiveParams, BilibiliLiveParamsSchema, type BilibiliLoginParams, BilibiliLoginParamsSchema, type BilibiliMethodOptionsMap, type BilibiliMethodType, type BilibiliQrcodeParams, BilibiliQrcodeParamsSchema, type BilibiliQrcodeStatusParams, BilibiliQrcodeStatusParamsSchema, type BilibiliUserParams, BilibiliUserParamsSchema, BilibiliValidationSchemas, type BilibiliVideoDownloadParams, BilibiliVideoDownloadParamsSchema, type BilibiliVideoParams, BilibiliVideoParamsSchema, type BoundBilibiliApi, type BoundDouyinApi, type BoundKuaishouApi, type CookieConfig, CreateApp, type DouyinCommentParams, DouyinCommentParamsSchema, type DouyinCommentReplyParams, DouyinCommentReplyParamsSchema, type DouyinDanmakuParams, DouyinDanmakuParamsSchema, type DouyinDataOptions, type DouyinDataOptionsMap, type DouyinEmojiListParams, DouyinEmojiListParamsSchema, type DouyinEmojiProParams, DouyinEmojiProParamsSchema, type DouyinLiveRoomParams, type DouyinMethodOptionsMap, type DouyinMethodType, type DouyinMusicParams, DouyinMusicParamsSchema, type DouyinQrcodeParams, DouyinQrcodeParamsSchema, type DouyinSearchParams, DouyinSearchParamsSchema, type DouyinUserParams, DouyinUserParamsSchema, DouyinValidationSchemas, type DouyinWorkParams, DouyinWorkParamsSchema, type DyDanmakuList, type DyEmojiList, type DyEmojiProList, type DyImageAlbumWork, type DyMusicWork, type DySearchInfo, type DySlidesWork, type DySuggestWords, type DyUserInfo, type DyUserLiveVideos, type DyUserPostVideos, type DyVideoWork, type DyWorkComments, DynamicType, type DynamicTypeAV$1 as DynamicTypeAV, type DynamicTypeDraw$1 as DynamicTypeDraw, type DynamicTypeForward, type DynamicTypeForwardUnion, type DynamicTypeLiveRcmd, type DynamicTypeWord, type ErrorResponse, type KsEmojiList, type KsOneWork, type KsWorkComments, type KuaishouCommentParams, KuaishouCommentParamsSchema, type KuaishouDataOptions, type KuaishouDataOptionsMap, type KuaishouEmojiParams, KuaishouEmojiParamsSchema, type KuaishouMethodOptionsMap, type KuaishouMethodType, KuaishouValidationSchemas, type KuaishouVideoParams, KuaishouVideoParamsSchema, MajorType, type NetworksConfigType, type OmitMethodType, type Options, type RequestConfig, type SuccessResponse, type TypeControl, ValidationError, amagi, amagiClient, av2bv, bilibili, bilibiliApiUrls, bilibiliErrorCodeMap, bilibiliUtils, bv2av, createAmagiClient, createBilibiliRoutes, createBoundBilibiliApi, createBoundDouyinApi, createBoundKuaishouApi, createDouyinRoutes, createErrorResponse, createKuaishouRoutes, createSuccessResponse, Client as default, douyin, douyinApiUrls, douyinSign, douyinUtils, fetchData, fetchResponse, getBilibiliData, getDouyinData, getHeadersAndData, getKuaishouData, handleError, httpLogger, kuaishou, kuaishouApiUrls, kuaishouUtils, logMiddleware, logger, qtparam, createBilibiliRoutes as registerBilibiliRoutes, createDouyinRoutes as registerDouyinRoutes, createKuaishouRoutes as registerKuaishouRoutes, validateBilibiliParams, validateDouyinParams, validateKuaishouParams, wbi_sign };
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chalk = require('chalk');
4
+
5
+
6
+
7
+ Object.keys(chalk).forEach(function (k) {
8
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
+ enumerable: true,
10
+ get: function () { return chalk[k]; }
11
+ });
12
+ });
@@ -0,0 +1 @@
1
+ export * from 'chalk';
@@ -0,0 +1 @@
1
+ export * from 'chalk';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikenxuan/amagi",
3
- "version": "5.3.0",
3
+ "version": "5.4.1",
4
4
  "description": "抖音、B站的 web 端相关数据接口基于 Node.js 的实现",
5
5
  "keywords": [
6
6
  "douyin",
@@ -54,7 +54,7 @@
54
54
  "build:main": "cross-env BUILD_TARGET=main tsup --config tsup.config.ts",
55
55
  "build:exports": "cross-env BUILD_TARGET=exports tsup --config tsup.config.ts",
56
56
  "clean": "npm ci/pr.js clean",
57
- "dev": "tsx watch src/dev.ts",
57
+ "dev": "cross-env LOG_LEVEL=debug tsx watch src/dev.ts",
58
58
  "dev:js": "node src/dev.js",
59
59
  "docs:build": "typedoc --lang zh",
60
60
  "docs:serve": "typedoc --lang zh --serve",