@lynn123411/dsh-a6api 1.0.0 → 1.1.0
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/README.md +3 -2
- package/lib/client.js +328 -49
- package/lib/client.js.map +3 -3
- package/lib/index.js +121 -27
- package/lib/index.js.map +2 -2
- package/lib/types/client/store.d.ts +6 -1
- package/lib/types/server/a6api-client.d.ts +8 -0
- package/lib/types/server/sync.d.ts +1 -1
- package/lib/types/types.d.ts +12 -0
- package/package.json +2 -2
package/lib/types/types.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ export interface A6ApiConfig {
|
|
|
8
8
|
customBaseURL?: string;
|
|
9
9
|
/** backward compatibility */
|
|
10
10
|
sessionCookie?: string;
|
|
11
|
+
/** 服务端脱敏下发:是否已配置 API Key(真实密钥绝不回传客户端) */
|
|
12
|
+
hasApiKey?: boolean;
|
|
13
|
+
/** 服务端脱敏下发:是否已配置系统访问令牌 */
|
|
14
|
+
hasToken?: boolean;
|
|
11
15
|
}
|
|
12
16
|
export interface A6ApiModelMeta {
|
|
13
17
|
id: string;
|
|
@@ -154,3 +158,11 @@ export interface A6ApiStateResponse {
|
|
|
154
158
|
dshConfiguredModels: string[];
|
|
155
159
|
recentLogs?: ApiRoutingLogItem[];
|
|
156
160
|
}
|
|
161
|
+
export interface PriceFluctuationState {
|
|
162
|
+
pendingCount: number;
|
|
163
|
+
unseenCount: number;
|
|
164
|
+
totalCount: number;
|
|
165
|
+
updatedAt: number | null;
|
|
166
|
+
hasAuth?: boolean;
|
|
167
|
+
authError?: boolean;
|
|
168
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynn123411/dsh-a6api",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "A6API 多模型聚合站接入插件:原生 LLM
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "A6API 多模型聚合站接入插件:原生 LLM 提供商注册、账户实时余额与价格波动监控、Token 白名单同步、商户线路探测与全景指标卡片",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "lynn123411",
|
|
7
7
|
"repository": {
|