@ikenxuan/amagi 5.12.0 → 5.12.3

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.
@@ -5564,12 +5564,12 @@ type DynamicTypeItemMap$1 = {
5564
5564
  [DynamicType.FORWARD]: DynamicTypeForwardUnion['data']['item'];
5565
5565
  [DynamicType.ARTICLE]: DynamicTypeArticle['data']['item'];
5566
5566
  };
5567
- type DataData$19<T$1 extends DynamicType> = {
5568
- item: DynamicTypeItemMap$1[T$1];
5567
+ type DataData$19<T extends DynamicType> = {
5568
+ item: DynamicTypeItemMap$1[T];
5569
5569
  };
5570
- type BiliDynamicInfo<T$1 extends DynamicType> = {
5570
+ type BiliDynamicInfo<T extends DynamicType> = {
5571
5571
  code: number;
5572
- data: DataData$19<T$1>;
5572
+ data: DataData$19<T>;
5573
5573
  message: string;
5574
5574
  ttl: number;
5575
5575
  [property: string]: any;
@@ -5897,9 +5897,9 @@ type DynamicTypeItemMap = {
5897
5897
  [DynamicType.FORWARD]: ForwardItem;
5898
5898
  [DynamicType.ARTICLE]: ArticleItem;
5899
5899
  };
5900
- type DataData$18<T$1 extends DynamicType = DynamicType> = {
5900
+ type DataData$18<T extends DynamicType = DynamicType> = {
5901
5901
  has_more: boolean;
5902
- items: DynamicTypeItemMap[T$1][];
5902
+ items: DynamicTypeItemMap[T][];
5903
5903
  offset: string;
5904
5904
  update_baseline: string;
5905
5905
  update_num: number;
@@ -11205,21 +11205,21 @@ type OriginalDynamicItemMap = {
11205
11205
  };
11206
11206
  type ItemBasic = OriginalDynamicItemMap[DynamicType.DRAW]['basic'];
11207
11207
  type ItemModules = OriginalDynamicItemMap[DynamicType.DRAW]['modules'];
11208
- type DataData$8<T$1 extends keyof OriginalDynamicItemMap> = {
11208
+ type DataData$8<T extends keyof OriginalDynamicItemMap> = {
11209
11209
  item: {
11210
11210
  basic: ItemBasic;
11211
11211
  id_str: string;
11212
11212
  modules: ItemModules;
11213
- orig: OriginalDynamicItemMap[T$1]['orig'];
11213
+ orig: OriginalDynamicItemMap[T]['orig'];
11214
11214
  type: DynamicType.FORWARD;
11215
11215
  visible: boolean;
11216
11216
  [property: string]: any;
11217
11217
  };
11218
11218
  [property: string]: any;
11219
11219
  };
11220
- type DynamicTypeForward<T$1 extends keyof OriginalDynamicItemMap> = {
11220
+ type DynamicTypeForward<T extends keyof OriginalDynamicItemMap> = {
11221
11221
  code: number;
11222
- data: DataData$8<T$1>;
11222
+ data: DataData$8<T>;
11223
11223
  message: string;
11224
11224
  ttl: number;
11225
11225
  [property: string]: any;
@@ -21018,7 +21018,7 @@ interface XiaohongshuReturnTypeMap {
21018
21018
  /**
21019
21019
  * 移除methodType字段的工具类型
21020
21020
  */
21021
- type OmitMethodType<T$1> = Omit<T$1, 'methodType'>;
21021
+ type OmitMethodType<T> = Omit<T, 'methodType'>;
21022
21022
  /**
21023
21023
  * 类型精度控制参数
21024
21024
  */
@@ -21051,17 +21051,17 @@ type XiaohongshuDataOptionsMap = { [K in XiaohongshuMethodType]: {
21051
21051
  opt: XiaohongshuMethodOptMap[K];
21052
21052
  data: XiaohongshuReturnTypeMap[K];
21053
21053
  } };
21054
- type XiaohongshuDataOptions<T$1 extends keyof XiaohongshuDataOptionsMap> = OmitMethodType<XiaohongshuDataOptionsMap[T$1]['opt'] & TypeControl>;
21055
- type DouyinDataOptions<T$1 extends DouyinMethodType> = OmitMethodType<zod.infer<(typeof DouyinValidationSchemas)[T$1]> & TypeControl>;
21056
- type BilibiliDataOptions<T$1 extends keyof BilibiliDataOptionsMap> = OmitMethodType<BilibiliDataOptionsMap[T$1]['opt'] & TypeControl>;
21057
- type KuaishouDataOptions<T$1 extends keyof KuaishouDataOptionsMap> = OmitMethodType<KuaishouDataOptionsMap[T$1]['opt'] & TypeControl>;
21054
+ type XiaohongshuDataOptions<T extends keyof XiaohongshuDataOptionsMap> = OmitMethodType<XiaohongshuDataOptionsMap[T]['opt'] & TypeControl>;
21055
+ type DouyinDataOptions<T extends DouyinMethodType> = OmitMethodType<zod.infer<(typeof DouyinValidationSchemas)[T]> & TypeControl>;
21056
+ type BilibiliDataOptions<T extends keyof BilibiliDataOptionsMap> = OmitMethodType<BilibiliDataOptionsMap[T]['opt'] & TypeControl>;
21057
+ type KuaishouDataOptions<T extends keyof KuaishouDataOptionsMap> = OmitMethodType<KuaishouDataOptionsMap[T]['opt'] & TypeControl>;
21058
21058
  /**
21059
21059
  * API请求错误类型
21060
21060
  * 该类型是方法 `getXXXData` 封装后请求遇到错误时的返回类型
21061
21061
  */
21062
- type APIErrorType<T$1 extends 'douyin' | 'bilibili' | 'kuaishou' | 'xiaohongshu' | 'default' = 'default'> = {
21062
+ type APIErrorType<T extends 'douyin' | 'bilibili' | 'kuaishou' | 'xiaohongshu' | 'default' = 'default'> = {
21063
21063
  /** 错误码 */
21064
- code: T$1 extends 'douyin' ? douoyinAPIErrorCode : T$1 extends 'bilibili' ? bilibiliAPIErrorCode : T$1 extends 'kuaishou' ? kuaishouAPIErrorCode : T$1 extends 'xiaohongshu' ? xiaohongshuAPIErrorCode : amagiAPIErrorCode;
21064
+ code: T extends 'douyin' ? douoyinAPIErrorCode : T extends 'bilibili' ? bilibiliAPIErrorCode : T extends 'kuaishou' ? kuaishouAPIErrorCode : T extends 'xiaohongshu' ? xiaohongshuAPIErrorCode : amagiAPIErrorCode;
21065
21065
  /** 错误时的响应数据 */
21066
21066
  data: any;
21067
21067
  /** amagi 错误详情 */
@@ -21157,11 +21157,11 @@ type BaseResponse = {
21157
21157
  * 成功响应类型
21158
21158
  * @template T - 响应数据的类型,默认为any
21159
21159
  */
21160
- type SuccessResult<T$1 = any> = BaseResponse & {
21160
+ type SuccessResult<T = any> = BaseResponse & {
21161
21161
  /** 响应状态 */
21162
21162
  success: true;
21163
21163
  /** 响应数据,类型由泛型 T 决定 */
21164
- data: T$1;
21164
+ data: T;
21165
21165
  /** 成功响应时错误信息为空 */
21166
21166
  error: never;
21167
21167
  };
@@ -21180,41 +21180,41 @@ type ErrorResult = BaseResponse & {
21180
21180
  * 通用API响应类型
21181
21181
  * @template T - 成功响应数据的类型,默认为any
21182
21182
  */
21183
- type Result<T$1> = SuccessResult<T$1> | ErrorResult;
21183
+ type Result<T> = SuccessResult<T> | ErrorResult;
21184
21184
  /**
21185
21185
  * 通用API响应类型
21186
21186
  * @template T - 成功响应数据的类型,默认为any
21187
21187
  * @deprecated 请使用 Result<T> 替代
21188
21188
  */
21189
- type ApiResponse<T$1> = Result<T$1>;
21189
+ type ApiResponse<T> = Result<T>;
21190
21190
  /**
21191
21191
  * 验证抖音参数
21192
21192
  * @param methodType - 抖音方法类型
21193
21193
  * @param params - 待验证的参数
21194
21194
  * @returns 验证后的参数,符合原始API期望的类型
21195
21195
  */
21196
- declare const validateDouyinParams: <T$1 extends DouyinMethodType>(methodType: T$1, params: unknown) => zod.infer<(typeof DouyinValidationSchemas)[T$1]>;
21196
+ declare const validateDouyinParams: <T extends DouyinMethodType>(methodType: T, params: unknown) => zod.infer<(typeof DouyinValidationSchemas)[T]>;
21197
21197
  /**
21198
21198
  * 验证哔哩哔哩参数
21199
21199
  * @param methodType - 哔哩哔哩方法类型
21200
21200
  * @param params - 待验证的参数
21201
21201
  * @returns 验证后的参数,符合原始API期望的类型
21202
21202
  */
21203
- declare const validateBilibiliParams: <T$1 extends BilibiliMethodType>(methodType: T$1, params: unknown) => zod.infer<(typeof BilibiliValidationSchemas)[T$1]>;
21203
+ declare const validateBilibiliParams: <T extends BilibiliMethodType>(methodType: T, params: unknown) => zod.infer<(typeof BilibiliValidationSchemas)[T]>;
21204
21204
  /**
21205
21205
  * 验证快手参数
21206
21206
  * @param methodType - 快手方法类型
21207
21207
  * @param params - 待验证的参数
21208
21208
  * @returns 验证后的参数,符合原始API期望的类型
21209
21209
  */
21210
- declare const validateKuaishouParams: <T$1 extends KuaishouMethodType>(methodType: T$1, params: unknown) => zod.infer<(typeof KuaishouValidationSchemas)[T$1]>;
21210
+ declare const validateKuaishouParams: <T extends KuaishouMethodType>(methodType: T, params: unknown) => zod.infer<(typeof KuaishouValidationSchemas)[T]>;
21211
21211
  /**
21212
21212
  * 验证小红书参数
21213
21213
  * @param methodType - 小红书方法类型
21214
21214
  * @param params - 待验证的参数
21215
21215
  * @returns 验证后的参数
21216
21216
  */
21217
- declare const validateXiaohongshuParams: <T$1 extends XiaohongshuMethodType>(methodType: T$1, params: unknown) => zod.infer<(typeof XiaohongshuValidationSchemas)[T$1]>;
21217
+ declare const validateXiaohongshuParams: <T extends XiaohongshuMethodType>(methodType: T, params: unknown) => zod.infer<(typeof XiaohongshuValidationSchemas)[T]>;
21218
21218
  /**
21219
21219
  * 创建成功响应格式
21220
21220
  * @param data - 响应数据
@@ -21222,7 +21222,7 @@ declare const validateXiaohongshuParams: <T$1 extends XiaohongshuMethodType>(met
21222
21222
  * @param code - 响应状态码(可选,默认200)
21223
21223
  * @returns 格式化的成功API响应对象
21224
21224
  */
21225
- declare const createSuccessResponse: <T$1>(data: T$1, message: string, code?: number) => SuccessResult<T$1>;
21225
+ declare const createSuccessResponse: <T>(data: T, message: string, code?: number) => SuccessResult<T>;
21226
21226
  /**
21227
21227
  * 创建失败响应格式
21228
21228
  * @param error - 错误信息
@@ -22400,11 +22400,11 @@ declare const douyin: {
22400
22400
  * @param requestConfig 可选的请求配置
22401
22401
  * @returns 统一格式的API响应,包含方法返回的数据
22402
22402
  */
22403
- invoke: <const T$1 extends DouyinMethodType, const Opts extends ExtendedDouyinOptions<T$1>, M extends TypeMode = (Opts extends {
22403
+ invoke: <const T extends DouyinMethodType, const Opts extends ExtendedDouyinOptions<T>, M extends TypeMode = (Opts extends {
22404
22404
  typeMode: infer Mode extends TypeMode;
22405
- } ? Mode : "loose")>(methodType: T$1, options: Opts, cookie: string, requestConfig?: RequestConfig) => Promise<Result<T$1 extends "\u641C\u7D22\u6570\u636E" ? Opts extends {
22405
+ } ? Mode : "loose")>(methodType: T, options: Opts, cookie: string, requestConfig?: RequestConfig) => Promise<Result<T extends "\u641C\u7D22\u6570\u636E" ? Opts extends {
22406
22406
  type: infer SearchType;
22407
- } ? SearchType extends "\u7EFC\u5408" ? SearchInfoGeneralData : SearchType extends "\u7528\u6237" ? SearchInfoUser : SearchType extends "\u89C6\u9891" ? SearchInfoVideo : DouyinReturnTypeMap[T$1] : DouyinReturnTypeMap[T$1] : ConditionalReturnType<DouyinReturnTypeMap[T$1], M>>>;
22407
+ } ? SearchType extends "\u7EFC\u5408" ? SearchInfoGeneralData : SearchType extends "\u7528\u6237" ? SearchInfoUser : SearchType extends "\u89C6\u9891" ? SearchInfoVideo : DouyinReturnTypeMap[T] : DouyinReturnTypeMap[T] : ConditionalReturnType<DouyinReturnTypeMap[T], M>>>;
22408
22408
  };
22409
22409
  /**
22410
22410
  * 创建绑定了cookie的抖音API对象
@@ -22548,11 +22548,11 @@ declare const createBoundDouyinApi: (cookie: string, requestConfig: RequestConfi
22548
22548
  * @param options 请求参数
22549
22549
  * @returns 统一格式的API响应,包含方法返回的数据
22550
22550
  */
22551
- invoke: <const T$1 extends DouyinMethodType, const Opts extends ExtendedDouyinOptions<T$1>, M extends TypeMode = (Opts extends {
22551
+ invoke: <const T extends DouyinMethodType, const Opts extends ExtendedDouyinOptions<T>, M extends TypeMode = (Opts extends {
22552
22552
  typeMode: infer Mode extends TypeMode;
22553
- } ? Mode : "loose")>(methodType: T$1, options: Opts) => Promise<Result<T$1 extends "\u641C\u7D22\u6570\u636E" ? Opts extends {
22553
+ } ? Mode : "loose")>(methodType: T, options: Opts) => Promise<Result<T extends "\u641C\u7D22\u6570\u636E" ? Opts extends {
22554
22554
  type: infer SearchType;
22555
- } ? SearchType extends "\u7EFC\u5408" ? SearchInfoGeneralData : SearchType extends "\u7528\u6237" ? SearchInfoUser : SearchType extends "\u89C6\u9891" ? SearchInfoVideo : DouyinReturnTypeMap[T$1] : DouyinReturnTypeMap[T$1] : ConditionalReturnType<DouyinReturnTypeMap[T$1], M>>>;
22555
+ } ? SearchType extends "\u7EFC\u5408" ? SearchInfoGeneralData : SearchType extends "\u7528\u6237" ? SearchInfoUser : SearchType extends "\u89C6\u9891" ? SearchInfoVideo : DouyinReturnTypeMap[T] : DouyinReturnTypeMap[T] : ConditionalReturnType<DouyinReturnTypeMap[T], M>>>;
22556
22556
  };
22557
22557
  /**
22558
22558
  * 绑定cookie的抖音API对象类型
@@ -22593,7 +22593,7 @@ declare const douyinUtils: douyinUtilsModel;
22593
22593
  //#region src/platform/kuaishou/API.d.ts
22594
22594
  type KuaishouMethodOptionsWithoutMethodType = { [K in keyof KuaishouMethodOptionsMap]: OmitMethodType<KuaishouMethodOptionsMap[K]> };
22595
22595
  declare class API {
22596
- 单个作品信息<T$1 extends KuaishouMethodOptionsWithoutMethodType['VideoInfoParams']>(data: T$1): {
22596
+ 单个作品信息<T extends KuaishouMethodOptionsWithoutMethodType['VideoInfoParams']>(data: T): {
22597
22597
  /** 接口类型 */
22598
22598
  type: string;
22599
22599
  /** 请求url */
@@ -22610,7 +22610,7 @@ declare class API {
22610
22610
  query: string;
22611
22611
  };
22612
22612
  };
22613
- 作品评论信息<T$1 extends KuaishouMethodOptionsWithoutMethodType['CommentParams']>(data: T$1): {
22613
+ 作品评论信息<T extends KuaishouMethodOptionsWithoutMethodType['CommentParams']>(data: T): {
22614
22614
  type: string;
22615
22615
  url: string;
22616
22616
  body: {
@@ -22781,27 +22781,17 @@ declare class xiaohongshuSign {
22781
22781
  * @returns X-S签名
22782
22782
  */
22783
22783
  static generateXSPost(path: string, a1Cookie: string, clientType?: string, body?: Record<string, any>): string;
22784
- /**
22785
- * 生成X-S签名(兼容旧接口)
22786
- * @param url - 请求URL
22787
- * @param body - 请求体
22788
- * @param userAgent - User-Agent(暂未使用)
22789
- * @param method - 请求方法,默认为 'POST'
22790
- * @param a1Cookie - a1 cookie值
22791
- * @returns X-S签名
22792
- */
22793
- static generateXS(url: string, body: any, userAgent: string, method?: string, a1Cookie?: string): string;
22794
22784
  /**
22795
22785
  * 生成X-S-Common参数
22796
- * @param length - 长度
22786
+ * @param cookies - cookie字符串
22797
22787
  * @returns Base64编码的随机字符串
22798
22788
  */
22799
- static generateXSCommon(length?: number): string;
22789
+ static generateXSCommon(cookies: string): string;
22800
22790
  /**
22801
22791
  * 生成X-T时间戳
22802
22792
  * @returns 当前时间戳字符串
22803
22793
  */
22804
- static generateXT(): string;
22794
+ static generateXT(): number;
22805
22795
  /**
22806
22796
  * 生成X-B3-Traceid
22807
22797
  * @returns 16位随机字符串
@@ -23122,23 +23112,23 @@ declare const createAmagiClient: (options?: Options) => {
23122
23112
  /** 启动本地HTTP服务 */
23123
23113
  startServer: (port?: number) => express.Application;
23124
23114
  /** 获取抖音数据 */
23125
- getDouyinData: <const T$1 extends DouyinMethodType, const Opts extends ExtendedDouyinOptions<T$1>, M extends TypeMode = (Opts extends {
23115
+ getDouyinData: <const T extends DouyinMethodType, const Opts extends ExtendedDouyinOptions<T>, M extends TypeMode = (Opts extends {
23126
23116
  typeMode: infer Mode extends TypeMode;
23127
- } ? Mode : "loose")>(methodType: T$1, options?: Opts) => Promise<Result<T$1 extends "\u641C\u7D22\u6570\u636E" ? Opts extends {
23117
+ } ? Mode : "loose")>(methodType: T, options?: Opts) => Promise<Result<T extends "\u641C\u7D22\u6570\u636E" ? Opts extends {
23128
23118
  type: infer SearchType;
23129
- } ? SearchType extends "\u7EFC\u5408" ? SearchInfoGeneralData : SearchType extends "\u7528\u6237" ? SearchInfoUser : SearchType extends "\u89C6\u9891" ? SearchInfoVideo : DouyinDataOptionsMap[T$1]["data"] : DouyinDataOptionsMap[T$1]["data"] : ConditionalReturnType<DouyinDataOptionsMap[T$1]["data"], M>>>;
23119
+ } ? SearchType extends "\u7EFC\u5408" ? SearchInfoGeneralData : SearchType extends "\u7528\u6237" ? SearchInfoUser : SearchType extends "\u89C6\u9891" ? SearchInfoVideo : DouyinDataOptionsMap[T]["data"] : DouyinDataOptionsMap[T]["data"] : ConditionalReturnType<DouyinDataOptionsMap[T]["data"], M>>>;
23130
23120
  /** 获取B站数据 */
23131
- getBilibiliData: <T$1 extends BilibiliMethodType, M extends TypeMode>(methodType: T$1, options?: ExtendedBilibiliOptions<T$1> & {
23121
+ getBilibiliData: <T extends BilibiliMethodType, M extends TypeMode>(methodType: T, options?: ExtendedBilibiliOptions<T> & {
23132
23122
  typeMode?: M;
23133
- }) => Promise<Result<ConditionalReturnType<BilibiliDataOptionsMap[T$1]["data"], M>>>;
23123
+ }) => Promise<Result<ConditionalReturnType<BilibiliDataOptionsMap[T]["data"], M>>>;
23134
23124
  /** 获取快手数据 */
23135
- getKuaishouData: <T$1 extends KuaishouMethodType, M extends TypeMode>(methodType: T$1, options?: ExtendedKuaishouOptions<T$1> & {
23125
+ getKuaishouData: <T extends KuaishouMethodType, M extends TypeMode>(methodType: T, options?: ExtendedKuaishouOptions<T> & {
23136
23126
  typeMode?: M;
23137
- }) => Promise<Result<ConditionalReturnType<KuaishouDataOptionsMap[T$1]["data"], M>>>;
23127
+ }) => Promise<Result<ConditionalReturnType<KuaishouDataOptionsMap[T]["data"], M>>>;
23138
23128
  /** 获取小红书数据 */
23139
- getXiaohongshuData: <T$1 extends XiaohongshuMethodType, M extends TypeMode>(methodType: T$1, options?: ExtendedXiaohongshuOptions<T$1> & {
23129
+ getXiaohongshuData: <T extends XiaohongshuMethodType, M extends TypeMode>(methodType: T, options?: ExtendedXiaohongshuOptions<T> & {
23140
23130
  typeMode?: M;
23141
- }) => Promise<Result<ConditionalReturnType<XiaohongshuDataOptionsMap[T$1]["data"], M>>>;
23131
+ }) => Promise<Result<ConditionalReturnType<XiaohongshuDataOptionsMap[T]["data"], M>>>;
23142
23132
  douyin: {
23143
23133
  /** 绑定了cookie和请求配置的抖音API对象,调用时不需要传递cookie */
23144
23134
  api: {
@@ -23192,11 +23182,11 @@ declare const createAmagiClient: (options?: Options) => {
23192
23182
  getDanmaku: <const Opts extends ExtendedDouyinOptions<"弹幕数据">, M extends TypeMode = (Opts extends {
23193
23183
  typeMode: infer Mode extends TypeMode;
23194
23184
  } ? Mode : "loose")>(options: Opts) => Promise<Result<ConditionalReturnType<DyDanmakuList, M>>>;
23195
- invoke: <const T$1 extends DouyinMethodType, const Opts extends ExtendedDouyinOptions<T$1>, M extends TypeMode = (Opts extends {
23185
+ invoke: <const T extends DouyinMethodType, const Opts extends ExtendedDouyinOptions<T>, M extends TypeMode = (Opts extends {
23196
23186
  typeMode: infer Mode extends TypeMode;
23197
- } ? Mode : "loose")>(methodType: T$1, options: Opts) => Promise<Result<T$1 extends "\u641C\u7D22\u6570\u636E" ? Opts extends {
23187
+ } ? Mode : "loose")>(methodType: T, options: Opts) => Promise<Result<T extends "\u641C\u7D22\u6570\u636E" ? Opts extends {
23198
23188
  type: infer SearchType;
23199
- } ? SearchType extends "\u7EFC\u5408" ? SearchInfoGeneralData : SearchType extends "\u7528\u6237" ? SearchInfoUser : SearchType extends "\u89C6\u9891" ? SearchInfoVideo : DouyinReturnTypeMap[T$1] : DouyinReturnTypeMap[T$1] : ConditionalReturnType<DouyinReturnTypeMap[T$1], M>>>;
23189
+ } ? SearchType extends "\u7EFC\u5408" ? SearchInfoGeneralData : SearchType extends "\u7528\u6237" ? SearchInfoUser : SearchType extends "\u89C6\u9891" ? SearchInfoVideo : DouyinReturnTypeMap[T] : DouyinReturnTypeMap[T] : ConditionalReturnType<DouyinReturnTypeMap[T], M>>>;
23200
23190
  };
23201
23191
  sign: typeof douyinSign;
23202
23192
  douyinApiUrls: typeof douyinApiUrls;
@@ -23555,8 +23545,8 @@ declare const createAmagiClient: (options?: Options) => {
23555
23545
  */
23556
23546
  type TypeMode = 'strict' | 'loose';
23557
23547
  /** 条件类型:根据TypeMode决定返回类型 */
23558
- type ConditionalReturnType<T$1, M extends TypeMode> = M extends 'strict' ? T$1 : any;
23559
- type ExtendedDouyinOptions<T$1 extends DouyinMethodType, Opts = Omit<DouyinDataOptionsMap[T$1]['opt'], 'methodType'>> = Opts & {
23548
+ type ConditionalReturnType<T, M extends TypeMode> = M extends 'strict' ? T : any;
23549
+ type ExtendedDouyinOptions<T extends DouyinMethodType, Opts = Omit<DouyinDataOptionsMap[T]['opt'], 'methodType'>> = Opts & {
23560
23550
  /**
23561
23551
  * 获取返回类型
23562
23552
  * 类型定义时间:2025-02-02
@@ -23572,7 +23562,7 @@ type ExtendedDouyinOptions<T$1 extends DouyinMethodType, Opts = Omit<DouyinDataO
23572
23562
  type InferDouyinSearchReturnType<Opts, M extends TypeMode> = Opts extends {
23573
23563
  type: infer T;
23574
23564
  } ? T extends '综合' ? SearchInfoGeneralData : T extends '用户' ? SearchInfoUser : T extends '视频' ? SearchInfoVideo : DouyinReturnTypeMap['搜索数据'] : DouyinReturnTypeMap['搜索数据'];
23575
- type ExtendedBilibiliOptions<T$1 extends BilibiliMethodType> = Omit<BilibiliDataOptionsMap[T$1]['opt'], 'methodType'> & {
23565
+ type ExtendedBilibiliOptions<T extends BilibiliMethodType> = Omit<BilibiliDataOptionsMap[T]['opt'], 'methodType'> & {
23576
23566
  /**
23577
23567
  * 获取返回类型
23578
23568
  * 类型定义时间:2025-02-02
@@ -23585,7 +23575,7 @@ type ExtendedBilibiliOptions<T$1 extends BilibiliMethodType> = Omit<BilibiliData
23585
23575
  */
23586
23576
  typeMode?: TypeMode;
23587
23577
  };
23588
- type ExtendedKuaishouOptions<T$1 extends KuaishouMethodType> = Omit<KuaishouDataOptionsMap[T$1]['opt'], 'methodType'> & {
23578
+ type ExtendedKuaishouOptions<T extends KuaishouMethodType> = Omit<KuaishouDataOptionsMap[T]['opt'], 'methodType'> & {
23589
23579
  /**
23590
23580
  * 获取返回类型
23591
23581
  * 类型定义时间:2025-02-02
@@ -23598,7 +23588,7 @@ type ExtendedKuaishouOptions<T$1 extends KuaishouMethodType> = Omit<KuaishouData
23598
23588
  */
23599
23589
  typeMode?: TypeMode;
23600
23590
  };
23601
- type ExtendedXiaohongshuOptions<T$1 extends XiaohongshuMethodType> = Omit<XiaohongshuDataOptionsMap[T$1]['opt'], 'methodType'> & {
23591
+ type ExtendedXiaohongshuOptions<T extends XiaohongshuMethodType> = Omit<XiaohongshuDataOptionsMap[T]['opt'], 'methodType'> & {
23602
23592
  /**
23603
23593
  * 获取返回类型
23604
23594
  * 类型定义时间:2025-02-02
@@ -23619,9 +23609,9 @@ type ExtendedXiaohongshuOptions<T$1 extends XiaohongshuMethodType> = Omit<Xiaoho
23619
23609
  * @param requestConfig - 可选的请求配置
23620
23610
  * @returns 根据typeMode返回对应类型的数据
23621
23611
  */
23622
- declare function getDouyinData<const T$1 extends DouyinMethodType, const Opts extends ExtendedDouyinOptions<T$1>, const M extends TypeMode = (Opts extends {
23612
+ declare function getDouyinData<const T extends DouyinMethodType, const Opts extends ExtendedDouyinOptions<T>, const M extends TypeMode = (Opts extends {
23623
23613
  typeMode: infer Mode extends TypeMode;
23624
- } ? Mode : 'loose')>(methodType: T$1, options?: Opts, cookie?: string, requestConfig?: RequestConfig): Promise<Result<T$1 extends '搜索数据' ? InferDouyinSearchReturnType<Opts, M> : ConditionalReturnType<DouyinReturnTypeMap[T$1], M>>>;
23614
+ } ? Mode : 'loose')>(methodType: T, options?: Opts, cookie?: string, requestConfig?: RequestConfig): Promise<Result<T extends '搜索数据' ? InferDouyinSearchReturnType<Opts, M> : ConditionalReturnType<DouyinReturnTypeMap[T], M>>>;
23625
23615
  /**
23626
23616
  * 获取抖音数据的核心方法(重载:第二个参数为cookie)
23627
23617
  * @param methodType - 请求数据类型
@@ -23630,9 +23620,9 @@ declare function getDouyinData<const T$1 extends DouyinMethodType, const Opts ex
23630
23620
  * @param requestConfig - 可选的请求配置
23631
23621
  * @returns 根据typeMode返回对应类型的数据
23632
23622
  */
23633
- declare function getDouyinData<const T$1 extends DouyinMethodType, const Opts extends ExtendedDouyinOptions<T$1>, M extends TypeMode = (Opts extends {
23623
+ declare function getDouyinData<const T extends DouyinMethodType, const Opts extends ExtendedDouyinOptions<T>, M extends TypeMode = (Opts extends {
23634
23624
  typeMode: infer Mode extends TypeMode;
23635
- } ? Mode : 'loose')>(methodType: T$1, cookie: string, options?: Opts, requestConfig?: RequestConfig): Promise<Result<T$1 extends '搜索数据' ? InferDouyinSearchReturnType<Opts, M> : ConditionalReturnType<DouyinReturnTypeMap[T$1], M>>>;
23625
+ } ? Mode : 'loose')>(methodType: T, cookie: string, options?: Opts, requestConfig?: RequestConfig): Promise<Result<T extends '搜索数据' ? InferDouyinSearchReturnType<Opts, M> : ConditionalReturnType<DouyinReturnTypeMap[T], M>>>;
23636
23626
  /**
23637
23627
  * 获取B站数据的核心方法(推荐用法:第三个参数为cookie)
23638
23628
  * @param methodType - 请求数据类型
@@ -23640,9 +23630,9 @@ declare function getDouyinData<const T$1 extends DouyinMethodType, const Opts ex
23640
23630
  * @param cookie - 可选的用户Cookie
23641
23631
  * @returns 根据typeMode返回对应类型的数据
23642
23632
  */
23643
- declare function getBilibiliData<T$1 extends BilibiliMethodType, M extends TypeMode>(methodType: T$1, options?: ExtendedBilibiliOptions<T$1> & {
23633
+ declare function getBilibiliData<T extends BilibiliMethodType, M extends TypeMode>(methodType: T, options?: ExtendedBilibiliOptions<T> & {
23644
23634
  typeMode?: M;
23645
- }, cookie?: string, requestConfig?: RequestConfig): Promise<Result<ConditionalReturnType<BilibiliReturnTypeMap[T$1], M>>>;
23635
+ }, cookie?: string, requestConfig?: RequestConfig): Promise<Result<ConditionalReturnType<BilibiliReturnTypeMap[T], M>>>;
23646
23636
  /**
23647
23637
  * 获取B站数据的核心方法(重载:第二个参数为cookie)
23648
23638
  * @param methodType - 请求数据类型
@@ -23650,9 +23640,9 @@ declare function getBilibiliData<T$1 extends BilibiliMethodType, M extends TypeM
23650
23640
  * @param options - 请求参数对象,包含typeMode属性控制返回类型
23651
23641
  * @returns 根据typeMode返回对应类型的数据
23652
23642
  */
23653
- declare function getBilibiliData<T$1 extends BilibiliMethodType, M extends TypeMode>(methodType: T$1, cookie: string, options?: ExtendedBilibiliOptions<T$1> & {
23643
+ declare function getBilibiliData<T extends BilibiliMethodType, M extends TypeMode>(methodType: T, cookie: string, options?: ExtendedBilibiliOptions<T> & {
23654
23644
  typeMode?: M;
23655
- }, requestConfig?: RequestConfig): Promise<Result<ConditionalReturnType<BilibiliReturnTypeMap[T$1], M>>>;
23645
+ }, requestConfig?: RequestConfig): Promise<Result<ConditionalReturnType<BilibiliReturnTypeMap[T], M>>>;
23656
23646
  /**
23657
23647
  * 获取快手数据的核心方法(推荐用法:第三个参数为cookie)
23658
23648
  * @param methodType - 请求数据类型
@@ -23660,9 +23650,9 @@ declare function getBilibiliData<T$1 extends BilibiliMethodType, M extends TypeM
23660
23650
  * @param cookie - 可选的用户Cookie
23661
23651
  * @returns 根据typeMode返回对应类型的数据
23662
23652
  */
23663
- declare function getKuaishouData<T$1 extends KuaishouMethodType, M extends TypeMode>(methodType: T$1, options?: ExtendedKuaishouOptions<T$1> & {
23653
+ declare function getKuaishouData<T extends KuaishouMethodType, M extends TypeMode>(methodType: T, options?: ExtendedKuaishouOptions<T> & {
23664
23654
  typeMode?: M;
23665
- }, cookie?: string, requestConfig?: RequestConfig): Promise<Result<ConditionalReturnType<KuaishouReturnTypeMap[T$1], M>>>;
23655
+ }, cookie?: string, requestConfig?: RequestConfig): Promise<Result<ConditionalReturnType<KuaishouReturnTypeMap[T], M>>>;
23666
23656
  /**
23667
23657
  * 获取快手数据的核心方法(重载:第二个参数为cookie)
23668
23658
  * @param methodType - 请求数据类型
@@ -23670,9 +23660,9 @@ declare function getKuaishouData<T$1 extends KuaishouMethodType, M extends TypeM
23670
23660
  * @param options - 请求参数对象,包含typeMode属性控制返回类型
23671
23661
  * @returns 根据typeMode返回对应类型的数据
23672
23662
  */
23673
- declare function getKuaishouData<T$1 extends KuaishouMethodType, M extends TypeMode>(methodType: T$1, cookie: string, options?: ExtendedKuaishouOptions<T$1> & {
23663
+ declare function getKuaishouData<T extends KuaishouMethodType, M extends TypeMode>(methodType: T, cookie: string, options?: ExtendedKuaishouOptions<T> & {
23674
23664
  typeMode?: M;
23675
- }, requestConfig?: RequestConfig): Promise<Result<ConditionalReturnType<KuaishouReturnTypeMap[T$1], M>>>;
23665
+ }, requestConfig?: RequestConfig): Promise<Result<ConditionalReturnType<KuaishouReturnTypeMap[T], M>>>;
23676
23666
  /**
23677
23667
  * 获取小红书数据的核心方法(推荐用法:第三个参数为cookie)
23678
23668
  * @param methodType - 请求数据类型
@@ -23680,9 +23670,9 @@ declare function getKuaishouData<T$1 extends KuaishouMethodType, M extends TypeM
23680
23670
  * @param cookie - 可选的用户Cookie
23681
23671
  * @returns 根据typeMode返回对应类型的数据
23682
23672
  */
23683
- declare function getXiaohongshuData<T$1 extends XiaohongshuMethodType, M extends TypeMode>(methodType: T$1, options?: ExtendedXiaohongshuOptions<T$1> & {
23673
+ declare function getXiaohongshuData<T extends XiaohongshuMethodType, M extends TypeMode>(methodType: T, options?: ExtendedXiaohongshuOptions<T> & {
23684
23674
  typeMode?: M;
23685
- }, cookie?: string, requestConfig?: RequestConfig): Promise<Result<ConditionalReturnType<XiaohongshuDataOptionsMap[T$1]['data'], M>>>;
23675
+ }, cookie?: string, requestConfig?: RequestConfig): Promise<Result<ConditionalReturnType<XiaohongshuDataOptionsMap[T]['data'], M>>>;
23686
23676
  /**
23687
23677
  * 获取小红书数据的核心方法(重载:第二个参数为cookie)
23688
23678
  * @param methodType - 请求数据类型
@@ -23690,9 +23680,9 @@ declare function getXiaohongshuData<T$1 extends XiaohongshuMethodType, M extends
23690
23680
  * @param options - 请求参数对象,包含typeMode属性控制返回类型
23691
23681
  * @returns 根据typeMode返回对应类型的数据
23692
23682
  */
23693
- declare function getXiaohongshuData<T$1 extends XiaohongshuMethodType, M extends TypeMode>(methodType: T$1, cookie: string, options?: ExtendedXiaohongshuOptions<T$1> & {
23683
+ declare function getXiaohongshuData<T extends XiaohongshuMethodType, M extends TypeMode>(methodType: T, cookie: string, options?: ExtendedXiaohongshuOptions<T> & {
23694
23684
  typeMode?: M;
23695
- }, requestConfig?: RequestConfig): Promise<Result<ConditionalReturnType<XiaohongshuDataOptionsMap[T$1]['data'], M>>>;
23685
+ }, requestConfig?: RequestConfig): Promise<Result<ConditionalReturnType<XiaohongshuDataOptionsMap[T]['data'], M>>>;
23696
23686
  //#endregion
23697
23687
  //#region src/utils/errors.d.ts
23698
23688
  /**
@@ -23755,8 +23745,11 @@ declare const handleError: (error: unknown, requestPath?: string) => {
23755
23745
  };
23756
23746
  //#endregion
23757
23747
  //#region src/model/logger.d.ts
23748
+ /** 初始化 logger 配置 */
23749
+ declare const initLogger: () => void;
23758
23750
  declare class CustomLogger {
23759
23751
  private logger;
23752
+ private queue;
23760
23753
  chalk: ChalkInstance;
23761
23754
  red: (text: string) => string;
23762
23755
  green: (text: string) => string;
@@ -23767,6 +23760,8 @@ declare class CustomLogger {
23767
23760
  white: (text: string) => string;
23768
23761
  gray: (text: string) => string;
23769
23762
  constructor(name: string);
23763
+ private flush;
23764
+ private proxy;
23770
23765
  info(message: any, ...args: any[]): void;
23771
23766
  warn(message: any, ...args: any[]): void;
23772
23767
  error(message: any, ...args: any[]): void;
@@ -23789,19 +23784,20 @@ declare const logMiddleware: (pathsToLog?: string[]) => express.RequestHandler;
23789
23784
  * @param maxRetries - 最大重试次数,默认3次
23790
23785
  * @returns 响应数据或错误结果
23791
23786
  */
23792
- declare const fetchData: <T$1>(config: AxiosRequestConfig<T$1>, maxRetries?: number) => Promise<T$1 | ErrorResult>;
23787
+ declare const fetchData: <T>(config: AxiosRequestConfig<T>, maxRetries?: number) => Promise<T | ErrorResult>;
23793
23788
  /**
23794
23789
  * 执行网络请求并返回完整响应(带自动重试)
23795
23790
  * @param config - axios请求配置
23796
23791
  * @param maxRetries - 最大重试次数,默认3次
23797
23792
  * @returns 完整响应或错误结果
23798
23793
  */
23799
- declare const fetchResponse: <T$1 = unknown>(config: AxiosRequestConfig, maxRetries?: number) => Promise<AxiosResponse<T$1> | ErrorResult>;
23794
+ declare const fetchResponse: <T = unknown>(config: AxiosRequestConfig, maxRetries?: number) => Promise<AxiosResponse<T> | ErrorResult>;
23800
23795
  /**
23801
23796
  * 判断结果是否为网络错误响应
23802
23797
  * @param result - 请求结果
23803
23798
  * @returns 是否为ErrorResult
23804
- * @description 通过检查 error 字段中的 amagiError 来区分网络错误和业务错误
23799
+ *
23800
+ * 通过检查 error 字段中的 amagiError 来区分网络错误和业务错误
23805
23801
  */
23806
23802
  declare const isNetworkErrorResult: (result: unknown) => result is ErrorResult;
23807
23803
  /**
@@ -23810,9 +23806,9 @@ declare const isNetworkErrorResult: (result: unknown) => result is ErrorResult;
23810
23806
  * @param maxRetries - 最大重试次数,默认3次
23811
23807
  * @returns 包含headers和data的对象,或错误结果
23812
23808
  */
23813
- declare const getHeadersAndData: <T$1 = any>(config: AxiosRequestConfig, maxRetries?: number) => Promise<{
23809
+ declare const getHeadersAndData: <T = any>(config: AxiosRequestConfig, maxRetries?: number) => Promise<{
23814
23810
  headers: RawAxiosResponseHeaders;
23815
- data: T$1;
23811
+ data: T;
23816
23812
  } | ErrorResult>;
23817
23813
  //#endregion
23818
23814
  //#region src/index.d.ts
@@ -23879,4 +23875,5 @@ declare const amagi: typeof Client;
23879
23875
  */
23880
23876
 
23881
23877
  //#endregion
23882
- export { APIErrorType, AdditionalType, ApiError, ApiResponse, ArticleCard, ArticleContent, ArticleInfo, BaseResponse, BiliAv2Bv, BiliBangumiVideoInfo, BiliBangumiVideoPlayurlIsLogin, BiliBangumiVideoPlayurlNoLogin, BiliBiliVideoPlayurlNoLogin, BiliBv2AV, BiliCheckQrcode, BiliCommentReply, BiliDynamicCard, BiliDynamicInfo, BiliDynamicInfoUnion, BiliEmojiList, BiliLiveRoomDef, BiliLiveRoomDetail, BiliNewLoginQrcode, BiliOneWork, BiliUserDynamic, BiliUserFullView, BiliUserProfile, BiliVideoPlayurlIsLogin, BiliWorkComments, BilibiliApplyCaptchaParamsSchema, BilibiliArticleCardParamsSchema, BilibiliArticleInfoParamsSchema, BilibiliArticleParamsSchema, BilibiliAv2BvParamsSchema, BilibiliBangumiInfoParamsSchema, BilibiliBangumiStreamParamsSchema, BilibiliBv2AvParamsSchema, BilibiliColumnInfoParamsSchema, BilibiliCommentParamsSchema, BilibiliCommentReplyParamsSchema, BilibiliDataOptions, BilibiliDataOptionsMap, BilibiliDynamicParamsSchema, BilibiliEmojiParamsSchema, BilibiliLiveParamsSchema, BilibiliLoginParamsSchema, BilibiliMethodOptMap, BilibiliMethodOptionsMap, BilibiliMethodRoutes, type BilibiliMethodType, BilibiliQrcodeParamsSchema, BilibiliQrcodeStatusParamsSchema, BilibiliReturnTypeMap, BilibiliUserParamsSchema, BilibiliValidateCaptchaParamsSchema, BilibiliValidationSchemas, BilibiliVideoDownloadParamsSchema, BilibiliVideoParamsSchema, BoundBilibiliApi, BoundDouyinApi, BoundKuaishouApi, BoundXiaohongshuApi, ColumnInfo, CommentReply, CommentType, CookieConfig, CreateApp, DouyinCommentParamsSchema, DouyinCommentReplyParamsSchema, DouyinDanmakuParamsSchema, DouyinDataOptions, DouyinDataOptionsMap, DouyinEmojiListParamsSchema, DouyinEmojiProParamsSchema, DouyinHotWordsParamsSchema, DouyinLiveRoomParamsSchema, DouyinMethodOptMap, DouyinMethodOptionsMap, DouyinMethodRoutes, type DouyinMethodType, DouyinMusicParamsSchema, DouyinQrcodeParamsSchema, DouyinReturnTypeMap, DouyinSearchParamsSchema, DouyinUserParamsSchema, DouyinValidationSchemas, DouyinWorkParamsSchema, DyDanmakuList, DyEmojiList, DyEmojiProList, DyImageAlbumWork, DyMusicWork, DySearchInfo, DySlidesWork, DySuggestWords, DyTextWork, DyUserInfo, DyUserLiveVideos, DyUserPostVideos, DyVideoWork, DyWorkComments, DynamicType, DynamicTypeAV, DynamicTypeArticle, DynamicTypeDraw, DynamicTypeForward, DynamicTypeForwardUnion, DynamicTypeLiveRcmd, DynamicTypeWord, ErrorResult, HomeFeed, KsEmojiList, KsOneWork, KsWorkComments, KuaishouCommentParamsSchema, KuaishouDataOptions, KuaishouDataOptionsMap, KuaishouEmojiParamsSchema, KuaishouMethodOptMap, KuaishouMethodOptionsMap, KuaishouMethodRoutes, type KuaishouMethodType, KuaishouReturnTypeMap, KuaishouValidationSchemas, KuaishouVideoParamsSchema, MajorType, type NetworksConfigType, NoteComments, OmitMethodType, OneNote, Options, RequestConfig, Result, SearchInfoGeneralData, SearchInfoUser, SearchInfoVideo, SearchNotes, SuccessResult, TypeControl, ValidationError, XiaohongshuDataOptions, XiaohongshuDataOptionsMap, XiaohongshuEmojiList, XiaohongshuMethodOptMap, XiaohongshuMethodOptionsMap, XiaohongshuMethodRoutes, XiaohongshuMethodType, XiaohongshuReturnTypeMap, XiaohongshuUserProfile, XiaohongshuValidationSchemas, amagi, amagiClient, av2bv, bilibili, bilibiliApiUrls, bilibiliErrorCodeMap, bilibiliUtils, bv2av, createAmagiClient, createBilibiliRoutes, createBilibiliRoutes as registerBilibiliRoutes, createBoundBilibiliApi, createBoundDouyinApi, createBoundKuaishouApi, createBoundXiaohongshuApi, createDouyinRoutes, createDouyinRoutes as registerDouyinRoutes, createErrorResponse, createKuaishouRoutes, createKuaishouRoutes as registerKuaishouRoutes, createSuccessResponse, createXiaohongshuRoutes, createXiaohongshuRoutes as registerXiaohongshuRoutes, Client as default, douyin, douyinApiUrls, douyinSign, douyinUtils, fetchData, fetchResponse, getBilibiliData, getDouyinData, getHeadersAndData, getKuaishouData, handleError, httpLogger, isNetworkErrorResult, kuaishou, kuaishouApiUrls, kuaishouUtils, logMiddleware, logger, qtparam, validateBilibiliParams, validateDouyinParams, validateKuaishouParams, validateXiaohongshuParams, wbi_sign, xiaohongshu, xiaohongshuApiUrls, xiaohongshuSign, xiaohongshuUtils };
23878
+ export { APIErrorType, AdditionalType, ApiError, ApiResponse, ArticleCard, ArticleContent, ArticleInfo, BaseResponse, BiliAv2Bv, BiliBangumiVideoInfo, BiliBangumiVideoPlayurlIsLogin, BiliBangumiVideoPlayurlNoLogin, BiliBiliVideoPlayurlNoLogin, BiliBv2AV, BiliCheckQrcode, BiliCommentReply, BiliDynamicCard, BiliDynamicInfo, BiliDynamicInfoUnion, BiliEmojiList, BiliLiveRoomDef, BiliLiveRoomDetail, BiliNewLoginQrcode, BiliOneWork, BiliUserDynamic, BiliUserFullView, BiliUserProfile, BiliVideoPlayurlIsLogin, BiliWorkComments, BilibiliApplyCaptchaParamsSchema, BilibiliArticleCardParamsSchema, BilibiliArticleInfoParamsSchema, BilibiliArticleParamsSchema, BilibiliAv2BvParamsSchema, BilibiliBangumiInfoParamsSchema, BilibiliBangumiStreamParamsSchema, BilibiliBv2AvParamsSchema, BilibiliColumnInfoParamsSchema, BilibiliCommentParamsSchema, BilibiliCommentReplyParamsSchema, BilibiliDataOptions, BilibiliDataOptionsMap, BilibiliDynamicParamsSchema, BilibiliEmojiParamsSchema, BilibiliLiveParamsSchema, BilibiliLoginParamsSchema, BilibiliMethodOptMap, BilibiliMethodOptionsMap, BilibiliMethodRoutes, type BilibiliMethodType, BilibiliQrcodeParamsSchema, BilibiliQrcodeStatusParamsSchema, BilibiliReturnTypeMap, BilibiliUserParamsSchema, BilibiliValidateCaptchaParamsSchema, BilibiliValidationSchemas, BilibiliVideoDownloadParamsSchema, BilibiliVideoParamsSchema, BoundBilibiliApi, BoundDouyinApi, BoundKuaishouApi, BoundXiaohongshuApi, ColumnInfo, CommentReply, CommentType, CookieConfig, CreateApp, DouyinCommentParamsSchema, DouyinCommentReplyParamsSchema, DouyinDanmakuParamsSchema, DouyinDataOptions, DouyinDataOptionsMap, DouyinEmojiListParamsSchema, DouyinEmojiProParamsSchema, DouyinHotWordsParamsSchema, DouyinLiveRoomParamsSchema, DouyinMethodOptMap, DouyinMethodOptionsMap, DouyinMethodRoutes, type DouyinMethodType, DouyinMusicParamsSchema, DouyinQrcodeParamsSchema, DouyinReturnTypeMap, DouyinSearchParamsSchema, DouyinUserParamsSchema, DouyinValidationSchemas, DouyinWorkParamsSchema, DyDanmakuList, DyEmojiList, DyEmojiProList, DyImageAlbumWork, DyMusicWork, DySearchInfo, DySlidesWork, DySuggestWords, DyTextWork, DyUserInfo, DyUserLiveVideos, DyUserPostVideos, DyVideoWork, DyWorkComments, DynamicType, DynamicTypeAV, DynamicTypeArticle, DynamicTypeDraw, DynamicTypeForward, DynamicTypeForwardUnion, DynamicTypeLiveRcmd, DynamicTypeWord, ErrorResult, HomeFeed, KsEmojiList, KsOneWork, KsWorkComments, KuaishouCommentParamsSchema, KuaishouDataOptions, KuaishouDataOptionsMap, KuaishouEmojiParamsSchema, KuaishouMethodOptMap, KuaishouMethodOptionsMap, KuaishouMethodRoutes, type KuaishouMethodType, KuaishouReturnTypeMap, KuaishouValidationSchemas, KuaishouVideoParamsSchema, MajorType, type NetworksConfigType, NoteComments, OmitMethodType, OneNote, Options, RequestConfig, Result, SearchInfoGeneralData, SearchInfoUser, SearchInfoVideo, SearchNotes, SuccessResult, TypeControl, ValidationError, XiaohongshuDataOptions, XiaohongshuDataOptionsMap, XiaohongshuEmojiList, XiaohongshuMethodOptMap, XiaohongshuMethodOptionsMap, XiaohongshuMethodRoutes, XiaohongshuMethodType, XiaohongshuReturnTypeMap, XiaohongshuUserProfile, XiaohongshuValidationSchemas, amagi, amagiClient, av2bv, bilibili, bilibiliApiUrls, bilibiliErrorCodeMap, bilibiliUtils, bv2av, createAmagiClient, createBilibiliRoutes, createBilibiliRoutes as registerBilibiliRoutes, createBoundBilibiliApi, createBoundDouyinApi, createBoundKuaishouApi, createBoundXiaohongshuApi, createDouyinRoutes, createDouyinRoutes as registerDouyinRoutes, createErrorResponse, createKuaishouRoutes, createKuaishouRoutes as registerKuaishouRoutes, createSuccessResponse, createXiaohongshuRoutes, createXiaohongshuRoutes as registerXiaohongshuRoutes, Client as default, douyin, douyinApiUrls, douyinSign, douyinUtils, fetchData, fetchResponse, getBilibiliData, getDouyinData, getHeadersAndData, getKuaishouData, handleError, httpLogger, initLogger, isNetworkErrorResult, kuaishou, kuaishouApiUrls, kuaishouUtils, logMiddleware, logger, qtparam, validateBilibiliParams, validateDouyinParams, validateKuaishouParams, validateXiaohongshuParams, wbi_sign, xiaohongshu, xiaohongshuApiUrls, xiaohongshuSign, xiaohongshuUtils };
23879
+ //# sourceMappingURL=index.d.cts.map