chore: consolidate platform split checks
Some checks failed
Dependency Audit / dependency-audit (push) Has been cancelled
Module Matrix / module-matrix (push) Has been cancelled

This commit is contained in:
2026-07-10 12:51:19 +02:00
parent 150b720f12
commit 635d25c74c
216 changed files with 23336 additions and 4077 deletions

View File

@@ -1,4 +1,4 @@
import type { ApiSettings, AuthInfo, LoginResponse } from "../types";
import type { ApiSettings, AuthInfo, LoginResponse, UserUiPreferences } from "../types";
import { apiFetch } from "./client";
export async function login(
@@ -28,7 +28,13 @@ export async function logout(settings: ApiSettings): Promise<void> {
export async function updateProfile(
settings: ApiSettings,
payload: { display_name?: string | null; tenant_display_name?: string | null }
payload: {
display_name?: string | null;
tenant_display_name?: string | null;
preferred_language?: string | null;
enabled_language_codes?: string[] | null;
ui_preferences?: Partial<UserUiPreferences> | null;
}
): Promise<AuthInfo> {
return apiFetch<AuthInfo>(settings, "/api/v1/auth/profile", {
method: "PATCH",