mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 17:56:25 +02:00
34 lines
537 B
TypeScript
34 lines
537 B
TypeScript
/**
|
|
* LOGIN
|
|
*/
|
|
export type LoginRequest = {
|
|
email: string;
|
|
password: string;
|
|
grant_type?: string;
|
|
};
|
|
|
|
export type LoginResponse = {
|
|
access_token: string;
|
|
token_type: string;
|
|
};
|
|
|
|
/**
|
|
* REGISTER
|
|
*/
|
|
export type RegisterRequest = {
|
|
email: string;
|
|
password: string;
|
|
is_active: boolean;
|
|
is_superuser: boolean;
|
|
is_verified: boolean;
|
|
};
|
|
|
|
export type RegisterResponse = {
|
|
id: number;
|
|
email: string;
|
|
is_active: boolean;
|
|
is_superuser: boolean;
|
|
is_verified: boolean;
|
|
pages_limit: number;
|
|
pages_used: number;
|
|
};
|