feat(api, web): интеграция RuVDS API v2
Docker / build (push) Failing after 21s

Синк VPS, баланса, платежей и тарифов через Bearer-токен из личного кабинета.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Denozordec
2026-06-29 14:10:15 +07:00
co-authored by Cursor
parent ce6414c65f
commit 9a29d88b95
19 changed files with 1526 additions and 12 deletions
@@ -39,6 +39,11 @@ export function parseUserApiToken(credentials: string | null | undefined): strin
return String(credentials ?? '').trim()
}
/** Bearer token для RuVDS API v2. */
export function parseRuvdsToken(credentials: string | null | undefined): string {
return String(credentials ?? '').trim()
}
/** Собрать 4VPS-креды: panelId + API key. */
export function buildFourVpsCredentials(panelId: string, apiKey: string): string {
const pid = panelId.trim()