@ikenxuan/amagi 7.0.0-beta.2 → 7.0.0-beta.4
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.
package/dist/default/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_src = require("../src-
|
|
5
|
+
const require_src = require("../src-D1zODJ56.cjs");
|
|
6
6
|
exports.AMAGI_BUS_EVENT_NAMES = require_src.AMAGI_BUS_EVENT_NAMES;
|
|
7
7
|
exports.AdditionalType = require_src.AdditionalType;
|
|
8
8
|
exports.AmagiThrownError = require_src.AmagiThrownError;
|
package/dist/default/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as unwrap, A as douyinFetcher, B as xiaohongshuSign, C as ValidationError, Ct as parseDmSegMobileReply, D as createBoundKuaishouFetcher, E as xiaohongshuFetcher, F as bilibiliFetcher, G as createDouyinRoutes, H as createKuaishouRoutes, I as createBoundBilibiliFetcher, J as bilibiliUtils, K as passport_exports, L as createClient, M as requestPassportQrcode, N as sendPassportVerifyCode, O as kuaishouFetcher, P as validatePassportVerifyCode, Q as isSuccess, R as xiaohongshuUtils, S as ApiError, St as emitNetworkRetry, T as createBoundXiaohongshuFetcher, Tt as bv2av, U as kuaishouSign, V as kuaishouUtils, W as douyinUtils, X as AmagiThrownError, Y as createBilibiliRoutes, Z as isFailure, _ as validateBilibiliParams, _t as emitLogError, a as AdditionalType, at as wbi_sign, b as validateXiaohongshuParams, bt as emitLogWarn, c as createAmagiClient, ct as fetchResponse, d as assertValidBilibiliParams, dt as emitApiError, et as AMAGI_BUS_EVENT_NAMES, f as assertValidDouyinParams, ft as emitApiSuccess, g as createSuccessResponse, gt as emitLogDebug, h as createErrorResponse, ht as emitLog, i as DynamicType, it as qtparam, j as checkPassportQrcode, k as createBoundDouyinFetcher, l as kuaishouApiUrls, lt as isNetworkErrorResult, m as assertValidXiaohongshuParams, mt as emitHttpResponse, n as CreateApp, nt as KUAISHOU_PC_CAPTCHA_RESULT, o as MajorType, ot as bilibiliApiUrls, p as assertValidKuaishouParams, pt as emitHttpRequest, q as douyinSign, r as amagi, rt as parseKuaishouCaptcha, s as CommentType, st as fetchData, t as Client, tt as KUAISHOU_H5_CAPTCHA_RESULT, u as douyinApiUrls, ut as amagiEvents, v as validateDouyinParams, vt as emitLogInfo, w as handleError, wt as av2bv, x as xiaohongshuApiUrls, xt as emitNetworkError, y as validateKuaishouParams, yt as emitLogMark, z as createXiaohongshuRoutes } from "../src-
|
|
1
|
+
import { $ as unwrap, A as douyinFetcher, B as xiaohongshuSign, C as ValidationError, Ct as parseDmSegMobileReply, D as createBoundKuaishouFetcher, E as xiaohongshuFetcher, F as bilibiliFetcher, G as createDouyinRoutes, H as createKuaishouRoutes, I as createBoundBilibiliFetcher, J as bilibiliUtils, K as passport_exports, L as createClient, M as requestPassportQrcode, N as sendPassportVerifyCode, O as kuaishouFetcher, P as validatePassportVerifyCode, Q as isSuccess, R as xiaohongshuUtils, S as ApiError, St as emitNetworkRetry, T as createBoundXiaohongshuFetcher, Tt as bv2av, U as kuaishouSign, V as kuaishouUtils, W as douyinUtils, X as AmagiThrownError, Y as createBilibiliRoutes, Z as isFailure, _ as validateBilibiliParams, _t as emitLogError, a as AdditionalType, at as wbi_sign, b as validateXiaohongshuParams, bt as emitLogWarn, c as createAmagiClient, ct as fetchResponse, d as assertValidBilibiliParams, dt as emitApiError, et as AMAGI_BUS_EVENT_NAMES, f as assertValidDouyinParams, ft as emitApiSuccess, g as createSuccessResponse, gt as emitLogDebug, h as createErrorResponse, ht as emitLog, i as DynamicType, it as qtparam, j as checkPassportQrcode, k as createBoundDouyinFetcher, l as kuaishouApiUrls, lt as isNetworkErrorResult, m as assertValidXiaohongshuParams, mt as emitHttpResponse, n as CreateApp, nt as KUAISHOU_PC_CAPTCHA_RESULT, o as MajorType, ot as bilibiliApiUrls, p as assertValidKuaishouParams, pt as emitHttpRequest, q as douyinSign, r as amagi, rt as parseKuaishouCaptcha, s as CommentType, st as fetchData, t as Client, tt as KUAISHOU_H5_CAPTCHA_RESULT, u as douyinApiUrls, ut as amagiEvents, v as validateDouyinParams, vt as emitLogInfo, w as handleError, wt as av2bv, x as xiaohongshuApiUrls, xt as emitNetworkError, y as validateKuaishouParams, yt as emitLogMark, z as createXiaohongshuRoutes } from "../src-ocSC1FCs.mjs";
|
|
2
2
|
export { AMAGI_BUS_EVENT_NAMES, AdditionalType, AmagiThrownError, ApiError, CommentType, CreateApp, DynamicType, KUAISHOU_H5_CAPTCHA_RESULT, KUAISHOU_PC_CAPTCHA_RESULT, MajorType, ValidationError, amagi, amagiEvents, assertValidBilibiliParams, assertValidDouyinParams, assertValidKuaishouParams, assertValidXiaohongshuParams, av2bv, bilibiliApiUrls, bilibiliFetcher, bilibiliUtils, bv2av, checkPassportQrcode, createAmagiClient, createBilibiliRoutes, createBoundBilibiliFetcher, createBoundDouyinFetcher, createBoundKuaishouFetcher, createBoundXiaohongshuFetcher, createClient, createDouyinRoutes, createErrorResponse, createKuaishouRoutes, createSuccessResponse, createXiaohongshuRoutes, Client as default, douyinApiUrls, douyinFetcher, passport_exports as douyinPassport, douyinSign, douyinUtils, emitApiError, emitApiSuccess, emitHttpRequest, emitHttpResponse, emitLog, emitLogDebug, emitLogError, emitLogInfo, emitLogMark, emitLogWarn, emitNetworkError, emitNetworkRetry, fetchData, fetchResponse, handleError, isFailure, isNetworkErrorResult, isSuccess, kuaishouApiUrls, kuaishouFetcher, kuaishouSign, kuaishouUtils, parseDmSegMobileReply, parseKuaishouCaptcha, qtparam, requestPassportQrcode, sendPassportVerifyCode, unwrap, validateBilibiliParams, validateDouyinParams, validateKuaishouParams, validatePassportVerifyCode, validateXiaohongshuParams, wbi_sign, xiaohongshuApiUrls, xiaohongshuFetcher, xiaohongshuSign, xiaohongshuUtils };
|
package/dist/exports/compat.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_src = require("../src-
|
|
5
|
+
const require_src = require("../src-D1zODJ56.cjs");
|
|
6
6
|
//#region src/exports/compat.ts
|
|
7
7
|
/** 模块级只执行一次的迁移提示(不刷屏) */
|
|
8
8
|
require_src.emitLogWarn("[@ikenxuan/amagi/compat] 你正在使用 v6 兼容入口;v7 迁移说明见 https://github.com/ikenxuan/amagi (v8 将移除 compat)");
|
package/dist/exports/compat.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as unwrap, A as douyinFetcher, B as xiaohongshuSign, C as ValidationError, Ct as parseDmSegMobileReply, D as createBoundKuaishouFetcher, E as xiaohongshuFetcher, F as bilibiliFetcher, G as createDouyinRoutes, H as createKuaishouRoutes, I as createBoundBilibiliFetcher, J as bilibiliUtils, K as passport_exports, L as createClient, M as requestPassportQrcode, N as sendPassportVerifyCode, O as kuaishouFetcher, P as validatePassportVerifyCode, Q as isSuccess, R as xiaohongshuUtils, S as ApiError, St as emitNetworkRetry, T as createBoundXiaohongshuFetcher, Tt as bv2av, U as kuaishouSign, V as kuaishouUtils, W as douyinUtils, X as AmagiThrownError, Y as createBilibiliRoutes, Z as isFailure, _ as validateBilibiliParams, _t as emitLogError, a as AdditionalType, at as wbi_sign, b as validateXiaohongshuParams, bt as emitLogWarn, c as createAmagiClient, ct as fetchResponse, d as assertValidBilibiliParams, dt as emitApiError, et as AMAGI_BUS_EVENT_NAMES, f as assertValidDouyinParams, ft as emitApiSuccess, g as createSuccessResponse, gt as emitLogDebug, h as createErrorResponse, ht as emitLog, i as DynamicType, it as qtparam, j as checkPassportQrcode, k as createBoundDouyinFetcher, l as kuaishouApiUrls, lt as isNetworkErrorResult, m as assertValidXiaohongshuParams, mt as emitHttpResponse, n as CreateApp, nt as KUAISHOU_PC_CAPTCHA_RESULT, o as MajorType, ot as bilibiliApiUrls, p as assertValidKuaishouParams, pt as emitHttpRequest, q as douyinSign, r as amagi, rt as parseKuaishouCaptcha, s as CommentType, st as fetchData, tt as KUAISHOU_H5_CAPTCHA_RESULT, u as douyinApiUrls, ut as amagiEvents, v as validateDouyinParams, vt as emitLogInfo, w as handleError, wt as av2bv, x as xiaohongshuApiUrls, xt as emitNetworkError, y as validateKuaishouParams, yt as emitLogMark, z as createXiaohongshuRoutes } from "../src-
|
|
1
|
+
import { $ as unwrap, A as douyinFetcher, B as xiaohongshuSign, C as ValidationError, Ct as parseDmSegMobileReply, D as createBoundKuaishouFetcher, E as xiaohongshuFetcher, F as bilibiliFetcher, G as createDouyinRoutes, H as createKuaishouRoutes, I as createBoundBilibiliFetcher, J as bilibiliUtils, K as passport_exports, L as createClient, M as requestPassportQrcode, N as sendPassportVerifyCode, O as kuaishouFetcher, P as validatePassportVerifyCode, Q as isSuccess, R as xiaohongshuUtils, S as ApiError, St as emitNetworkRetry, T as createBoundXiaohongshuFetcher, Tt as bv2av, U as kuaishouSign, V as kuaishouUtils, W as douyinUtils, X as AmagiThrownError, Y as createBilibiliRoutes, Z as isFailure, _ as validateBilibiliParams, _t as emitLogError, a as AdditionalType, at as wbi_sign, b as validateXiaohongshuParams, bt as emitLogWarn, c as createAmagiClient, ct as fetchResponse, d as assertValidBilibiliParams, dt as emitApiError, et as AMAGI_BUS_EVENT_NAMES, f as assertValidDouyinParams, ft as emitApiSuccess, g as createSuccessResponse, gt as emitLogDebug, h as createErrorResponse, ht as emitLog, i as DynamicType, it as qtparam, j as checkPassportQrcode, k as createBoundDouyinFetcher, l as kuaishouApiUrls, lt as isNetworkErrorResult, m as assertValidXiaohongshuParams, mt as emitHttpResponse, n as CreateApp, nt as KUAISHOU_PC_CAPTCHA_RESULT, o as MajorType, ot as bilibiliApiUrls, p as assertValidKuaishouParams, pt as emitHttpRequest, q as douyinSign, r as amagi, rt as parseKuaishouCaptcha, s as CommentType, st as fetchData, tt as KUAISHOU_H5_CAPTCHA_RESULT, u as douyinApiUrls, ut as amagiEvents, v as validateDouyinParams, vt as emitLogInfo, w as handleError, wt as av2bv, x as xiaohongshuApiUrls, xt as emitNetworkError, y as validateKuaishouParams, yt as emitLogMark, z as createXiaohongshuRoutes } from "../src-ocSC1FCs.mjs";
|
|
2
2
|
//#region src/exports/compat.ts
|
|
3
3
|
/** 模块级只执行一次的迁移提示(不刷屏) */
|
|
4
4
|
emitLogWarn("[@ikenxuan/amagi/compat] 你正在使用 v6 兼容入口;v7 迁移说明见 https://github.com/ikenxuan/amagi (v8 将移除 compat)");
|
|
@@ -54020,7 +54020,7 @@ const buildOpenApiSpec = (options = {}) => {
|
|
|
54020
54020
|
openapi: "3.1.0",
|
|
54021
54021
|
info: {
|
|
54022
54022
|
title: "amagi HTTP API",
|
|
54023
|
-
version: options.version ?? "7.0.0-beta.
|
|
54023
|
+
version: options.version ?? "7.0.0-beta.4",
|
|
54024
54024
|
description: [
|
|
54025
54025
|
"由端点注册表派生的规范 —— 手写的那份已经漂移,这份不会(`gen-openapi --check` 进 CI)。",
|
|
54026
54026
|
"",
|
|
@@ -56843,7 +56843,7 @@ let DynamicType = /* @__PURE__ */ function(DynamicType) {
|
|
|
56843
56843
|
* 构建后使用 __VERSION__,开发环境从 package.json 读取
|
|
56844
56844
|
*/
|
|
56845
56845
|
const getVersion = () => {
|
|
56846
|
-
return "7.0.0-beta.
|
|
56846
|
+
return "7.0.0-beta.4";
|
|
56847
56847
|
};
|
|
56848
56848
|
const VERSION = getVersion();
|
|
56849
56849
|
/**
|
|
@@ -54014,7 +54014,7 @@ const buildOpenApiSpec = (options = {}) => {
|
|
|
54014
54014
|
openapi: "3.1.0",
|
|
54015
54015
|
info: {
|
|
54016
54016
|
title: "amagi HTTP API",
|
|
54017
|
-
version: options.version ?? "7.0.0-beta.
|
|
54017
|
+
version: options.version ?? "7.0.0-beta.4",
|
|
54018
54018
|
description: [
|
|
54019
54019
|
"由端点注册表派生的规范 —— 手写的那份已经漂移,这份不会(`gen-openapi --check` 进 CI)。",
|
|
54020
54020
|
"",
|
|
@@ -56837,7 +56837,7 @@ let DynamicType = /* @__PURE__ */ function(DynamicType) {
|
|
|
56837
56837
|
* 构建后使用 __VERSION__,开发环境从 package.json 读取
|
|
56838
56838
|
*/
|
|
56839
56839
|
const getVersion = () => {
|
|
56840
|
-
return "7.0.0-beta.
|
|
56840
|
+
return "7.0.0-beta.4";
|
|
56841
56841
|
};
|
|
56842
56842
|
const VERSION = getVersion();
|
|
56843
56843
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikenxuan/amagi",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.4",
|
|
4
4
|
"description": "抖音、B站的 web 端相关数据接口基于 Node.js 的实现",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -74,5 +74,29 @@
|
|
|
74
74
|
"protobufjs": "8.7.1",
|
|
75
75
|
"zod": "4.4.3"
|
|
76
76
|
},
|
|
77
|
-
"
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@ikenxuan/amagi-response-types": "0.1.0",
|
|
79
|
+
"@ikenxuan/amagi-typegen": "0.1.0",
|
|
80
|
+
"@types/express": "5.0.6",
|
|
81
|
+
"globals": "17.8.0",
|
|
82
|
+
"sort-package-json": "4.0.0",
|
|
83
|
+
"ts-json-schema-generator": "2.9.0",
|
|
84
|
+
"tsdown": "^0.22.14"
|
|
85
|
+
},
|
|
86
|
+
"timestamp": "2026-09-21T11:16:14.263Z",
|
|
87
|
+
"scripts": {
|
|
88
|
+
"build": "tsdown",
|
|
89
|
+
"dev": "cross-env LOG_LEVEL=debug tsx watch src/dev.ts",
|
|
90
|
+
"dev:js": "node src/dev.js",
|
|
91
|
+
"fix": "oxfmt",
|
|
92
|
+
"gen:openapi": "tsx scripts/gen-openapi.mts",
|
|
93
|
+
"gen:openapi:check": "tsx scripts/gen-openapi.mts --check",
|
|
94
|
+
"record:corpus": "tsx scripts/record-corpus.mts",
|
|
95
|
+
"lint": "oxlint .",
|
|
96
|
+
"pub": "pnpm publish --access public",
|
|
97
|
+
"pub-beta": "pnpm publish --tag beta",
|
|
98
|
+
"sort": "sort-package-json",
|
|
99
|
+
"typecheck": "tsc --noEmit",
|
|
100
|
+
"test": "vitest run --root ../.."
|
|
101
|
+
}
|
|
78
102
|
}
|