import { LOGIN_STATUS } from '../enum'; /** * Request QR login loginGrant * target: Device * * no body params */ export declare class QRLoginGrantRequestDto { } /** * QR login loginGrant response * target: Device */ export declare class QRLoginGrantRequestResponseDto { auth_req_id: string; /** * seconds (default 300) */ exp: number; } /** * QR login loginGrant response * target: Device front-end */ export declare class QRLoginGrantRequestResponseFrontEndDto extends QRLoginGrantRequestResponseDto { deviceId: string; } /** * Approve QR login * target: Mobile application (Auth) */ export declare class QRLoginApprovalRequestDto { auth_req_id: string; deviceId: string; } export declare class QRLoginQrCodeContentDto extends QRLoginApprovalRequestDto { } /** * Response approve QR login * target: Mobile application (Auth) */ export declare class QRLoginApprovalResponseDto { } /** * Request QR login status */ export declare class QRLoginStatusRequestDto { } /** * QR login status response */ export declare class QRLoginStatusRequestResponseDto { status: LOGIN_STATUS; /** Filled after status => APPROVED */ deviceId?: string; /** * Unix time in seconds * Filled after status => APPROVED */ issue_time?: number; /** * Unix time in seconds * Filled after status => APPROVED */ expire_at?: number; /** * Filled after status => APPROVED */ userId?: string; /** Filled after status => APPROVED */ access_token?: string; /** Filled after status => APPROVED */ refresh_token?: string; } export declare class QRLoginRefreshTokenRequest { refreshToken: string; } export declare class QRLoginRefreshTokenReqestResponse { refreshToken: string; accessToken: string; } /** * Internal REDIS cache for QR login */ export declare class QRLoginCacheDetailsDto { status: LOGIN_STATUS; deviceId: string; issue_time: number; expire_at: number; userId?: string; access_token?: string; }