feat(api,userbot,frontend): rename session device from the web ui
This commit is contained in:
1 parent
b1848a6620
commit
1898a51a9d
11 files changed
+207
-13
No files matched your search
@@ -85,6 +85,16 @@ export function cancelLogin(loginId: string): Promise<void> {
|
||||
return request<void>(`/accounts/login/${loginId}`, { method: "DELETE" });
|
||||
}
|
||||
|
||||
export function renameAccountDevice(
|
||||
accountId: number,
|
||||
deviceModel: string
|
||||
): Promise<Account> {
|
||||
return request<Account>(`/accounts/${accountId}/device`, {
|
||||
method: "PATCH",
|
||||
body: { device_model: deviceModel },
|
||||
});
|
||||
}
|
||||
|
||||
export function logoutAccount(accountId: number): Promise<void> {
|
||||
return request<void>(`/accounts/${accountId}`, { method: "DELETE" });
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ export type JobStatus =
|
||||
|
||||
export interface Account {
|
||||
account_id: number;
|
||||
device_model: string | null;
|
||||
is_active: boolean;
|
||||
label: string | null;
|
||||
phone: string | null;
|
||||
|
||||
Reference in new issue
Block a user