@silexpert/core 2.0.113 → 2.0.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/resources.d.ts +0 -2
- package/dist/api/resources.d.ts.map +1 -1
- package/dist/api/resources.js +0 -2
- package/dist/api/resources.js.map +1 -1
- package/dist/types/Interface/models/IUser.d.ts +0 -2
- package/dist/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/types/Interface/models/IUser.js +0 -1
- package/dist/types/Interface/models/IUser.js.map +1 -1
- package/dist/types/index.d.ts +0 -7
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -7
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources.ts +2 -2
- package/ts/types/Interface/models/IUser.ts +1 -2
- package/ts/types/index.ts +6 -7
- package/dist/api/resources/LoginApproval.d.ts +0 -18
- package/dist/api/resources/LoginApproval.d.ts.map +0 -1
- package/dist/api/resources/LoginApproval.js +0 -16
- package/dist/api/resources/LoginApproval.js.map +0 -1
- package/dist/types/Enum/LoginApprovalStatus.d.ts +0 -14
- package/dist/types/Enum/LoginApprovalStatus.d.ts.map +0 -1
- package/dist/types/Enum/LoginApprovalStatus.js +0 -15
- package/dist/types/Enum/LoginApprovalStatus.js.map +0 -1
- package/dist/types/Enum/MfaMode.d.ts +0 -12
- package/dist/types/Enum/MfaMode.d.ts.map +0 -1
- package/dist/types/Enum/MfaMode.js +0 -13
- package/dist/types/Enum/MfaMode.js.map +0 -1
- package/dist/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts +0 -4
- package/dist/types/Interface/api/authentification/FinalizeMobileApprovalDto.d.ts.map +0 -1
- package/dist/types/Interface/api/authentification/FinalizeMobileApprovalDto.js +0 -18
- package/dist/types/Interface/api/authentification/FinalizeMobileApprovalDto.js.map +0 -1
- package/dist/types/Interface/api/authentification/SetMobileApprovalDto.d.ts +0 -5
- package/dist/types/Interface/api/authentification/SetMobileApprovalDto.d.ts.map +0 -1
- package/dist/types/Interface/api/authentification/SetMobileApprovalDto.js +0 -25
- package/dist/types/Interface/api/authentification/SetMobileApprovalDto.js.map +0 -1
- package/dist/types/Interface/api/authentification/loginApproval.d.ts +0 -66
- package/dist/types/Interface/api/authentification/loginApproval.d.ts.map +0 -1
- package/dist/types/Interface/api/authentification/loginApproval.js +0 -77
- package/dist/types/Interface/api/authentification/loginApproval.js.map +0 -1
- package/dist/types/Interface/models/ILoginApproval.d.ts +0 -31
- package/dist/types/Interface/models/ILoginApproval.d.ts.map +0 -1
- package/dist/types/Interface/models/ILoginApproval.js +0 -30
- package/dist/types/Interface/models/ILoginApproval.js.map +0 -1
- package/ts/api/resources/LoginApproval.ts +0 -20
- package/ts/types/Enum/LoginApprovalStatus.ts +0 -13
- package/ts/types/Enum/MfaMode.ts +0 -11
- package/ts/types/Interface/api/authentification/FinalizeMobileApprovalDto.ts +0 -6
- package/ts/types/Interface/api/authentification/SetMobileApprovalDto.ts +0 -11
- package/ts/types/Interface/api/authentification/loginApproval.ts +0 -75
- package/ts/types/Interface/models/ILoginApproval.ts +0 -31
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { LoginApprovalStatus } from '../../../Enum/LoginApprovalStatus.js';
|
|
2
|
-
import { IsString } from 'class-validator';
|
|
3
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Payload de l'événement socket envoyé au mobile lors d'une demande de connexion
|
|
7
|
-
*/
|
|
8
|
-
export class ILoginApprovalRequestEvent {
|
|
9
|
-
/** ID unique de la demande */
|
|
10
|
-
requestId: string;
|
|
11
|
-
/** Date d'expiration */
|
|
12
|
-
expiresAt: Date;
|
|
13
|
-
/** ID de l'utilisateur */
|
|
14
|
-
userId: number;
|
|
15
|
-
/** Métadonnées (IP, navigateur, localisation) */
|
|
16
|
-
metadata?: {
|
|
17
|
-
ip?: string;
|
|
18
|
-
userAgent?: string;
|
|
19
|
-
location?: string;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export class IApproveOrDenyResponse {
|
|
24
|
-
message: string;
|
|
25
|
-
status: LoginApprovalStatus;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Payload de l'événement socket envoyé au Web lors d'un changement de statut
|
|
30
|
-
*/
|
|
31
|
-
export class ILoginApprovalStatusEvent {
|
|
32
|
-
/** ID de la demande */
|
|
33
|
-
requestId: string;
|
|
34
|
-
/** Nouveau statut */
|
|
35
|
-
status: LoginApprovalStatus;
|
|
36
|
-
/** Date de la transition */
|
|
37
|
-
timestamp: Date;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Réponse renvoyée au Web lorsque mobile MFA est requis
|
|
42
|
-
*/
|
|
43
|
-
export class ILoginApprovalResponse {
|
|
44
|
-
/** Indique qu'une validation mobile est nécessaire */
|
|
45
|
-
requiresMobileApproval: true;
|
|
46
|
-
/** ID de la demande pour polling/tracking */
|
|
47
|
-
requestId: string;
|
|
48
|
-
/** Date d'expiration de la demande */
|
|
49
|
-
expiresAt: Date;
|
|
50
|
-
/** ID utilisateur */
|
|
51
|
-
userId: number;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Réponse du statut d'une demande d'approbation
|
|
56
|
-
*/
|
|
57
|
-
export class ILoginApprovalStatusResponse {
|
|
58
|
-
/** ID de la demande */
|
|
59
|
-
requestId: string;
|
|
60
|
-
/** Statut actuel */
|
|
61
|
-
status: LoginApprovalStatus;
|
|
62
|
-
/** Date d'expiration */
|
|
63
|
-
expiresAt: Date;
|
|
64
|
-
/** Token JWT si status = approved */
|
|
65
|
-
token?: string;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* DTO pour approuver/refuser une demande depuis le mobile
|
|
70
|
-
*/
|
|
71
|
-
export class IApproveOrDenyRequest {
|
|
72
|
-
@ApiProperty()
|
|
73
|
-
@IsString()
|
|
74
|
-
deviceId: string;
|
|
75
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { LoginApprovalStatus } from '../../Enum/LoginApprovalStatus.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Interface représentant une demande d'approbation de connexion mobile
|
|
5
|
-
*/
|
|
6
|
-
export class ILoginApproval {
|
|
7
|
-
/** Identifiant unique (UUID) */
|
|
8
|
-
id: string;
|
|
9
|
-
/** ID de l'utilisateur demandant la connexion */
|
|
10
|
-
idUser: number;
|
|
11
|
-
/** Statut actuel de la demande */
|
|
12
|
-
status: LoginApprovalStatus;
|
|
13
|
-
/** Date d'expiration de la demande (généralement 2-3 min après création) */
|
|
14
|
-
expiresAt: Date;
|
|
15
|
-
/** Date d'approbation (si status = approved) */
|
|
16
|
-
approvedAt?: Date;
|
|
17
|
-
/** Date de refus (si status = denied) */
|
|
18
|
-
deniedAt?: Date;
|
|
19
|
-
/** Device ID du mobile ayant approuvé/refusé */
|
|
20
|
-
deviceIdUsed?: string;
|
|
21
|
-
/** IP de la connexion Web à l'origine de la demande */
|
|
22
|
-
ip?: string;
|
|
23
|
-
/** User-Agent du navigateur Web */
|
|
24
|
-
userAgent?: string;
|
|
25
|
-
/** Métadonnées additionnelles (géoloc, risk score, etc.) */
|
|
26
|
-
metadata?: Record<string, any>;
|
|
27
|
-
/** Date de création */
|
|
28
|
-
createdAt: Date;
|
|
29
|
-
/** Date de mise à jour */
|
|
30
|
-
updatedAt: Date;
|
|
31
|
-
}
|