完善 API Key 能力范围可视化和维护

This commit is contained in:
2026-06-07 19:01:32 +08:00
parent dc14866210
commit f47132a653
19 changed files with 1165 additions and 49 deletions
+12
View File
@@ -502,6 +502,10 @@ export interface CreatedGatewayApiKey {
secret: string;
}
export interface GatewayApiKeyScopeUpdateRequest {
scopes: string[];
}
export interface PlayableGatewayApiKey extends GatewayApiKey {
secret: string;
}
@@ -575,6 +579,14 @@ export interface WalletBalanceAdjustmentRequest {
metadata?: Record<string, unknown>;
}
export interface WalletRechargeRequest {
currency?: string;
amount: number;
reason: string;
idempotencyKey?: string;
metadata?: Record<string, unknown>;
}
export interface WalletSummaryResponse {
accounts: GatewayWalletAccount[];
primaryAccount: GatewayWalletAccount;