This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
export type AdminStatus = "active" | "disabled";
|
||||
|
||||
export interface Admin {
|
||||
id: string;
|
||||
username: string;
|
||||
displayName: string;
|
||||
status: AdminStatus;
|
||||
mustChangePassword: boolean;
|
||||
version: number;
|
||||
createdAt: number;
|
||||
lastLoginAt: number | null;
|
||||
disabledAt: number | null;
|
||||
}
|
||||
|
||||
export interface AuthStatus {
|
||||
initialized: boolean;
|
||||
timezone: string;
|
||||
}
|
||||
|
||||
export interface AuthResponse {
|
||||
admin: Admin;
|
||||
}
|
||||
|
||||
export interface LoginCredentials {
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
|
||||
export interface ChangePasswordInput {
|
||||
currentPassword: string;
|
||||
newPassword: string;
|
||||
}
|
||||
|
||||
export interface ApiErrorBody {
|
||||
error?: {
|
||||
code?: string;
|
||||
message?: string;
|
||||
requestId?: string;
|
||||
details?: unknown;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user