gangtise-openapi-cli 0.17.1 → 0.17.2
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/src/core/client.js
CHANGED
|
@@ -9,7 +9,10 @@ import { ENDPOINTS } from "./endpoints.js";
|
|
|
9
9
|
import { getLookupData } from "./lookupData/index.js";
|
|
10
10
|
import { getDispatcher, isVerbose, logTiming, markRetryable, runWithConcurrency, withRetry } from "./transport.js";
|
|
11
11
|
const PAGINATION_CONCURRENCY = Number(process.env.GANGTISE_PAGE_CONCURRENCY ?? 5) || 5;
|
|
12
|
-
|
|
12
|
+
// Auth errors that warrant a forced re-login + one replay. 8000014/8000015 are
|
|
13
|
+
// AK/SK errors; 0000001008 is a server-side token invalidation (the token still
|
|
14
|
+
// looks valid by local expiry, so only a forced refresh recovers it).
|
|
15
|
+
const AUTH_RETRY_CODES = new Set(["8000014", "8000015", "0000001008"]);
|
|
13
16
|
export class GangtiseClient {
|
|
14
17
|
config;
|
|
15
18
|
refreshPromise = null;
|
package/dist/src/core/errors.js
CHANGED
|
@@ -16,6 +16,7 @@ const ERROR_HINTS = {
|
|
|
16
16
|
"999995": "当前账号积分不足。",
|
|
17
17
|
"900002": "请求缺少 uid。",
|
|
18
18
|
"900001": "请求参数为空或缺少必填项。",
|
|
19
|
+
"0000001008": "Token 已失效(多为他处登录挤掉本会话);有 AK/SK 时 CLI 会自动重新登录重试一次,否则请重新登录。",
|
|
19
20
|
"8000014": "GANGTISE_ACCESS_KEY 错误。",
|
|
20
21
|
"8000015": "GANGTISE_SECRET_KEY 错误。",
|
|
21
22
|
"8000016": "开发账号状态异常。",
|
package/dist/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Auto-generated — DO NOT EDIT
|
|
2
|
-
export const CLI_VERSION = "0.17.
|
|
2
|
+
export const CLI_VERSION = "0.17.2";
|