@fiado/type-kit 3.155.0 → 3.156.0
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/_test_/unit/platformRbac/auth/PrepareChallengeRequest.test.ts +1 -1
- package/bin/identity/dtos/AgentDocumentKeyResponse.d.ts +3 -0
- package/bin/identity/dtos/AgentDocumentKeyResponse.js +8 -0
- package/bin/identity/dtos/DocumentUploadResponse.d.ts +6 -0
- package/bin/identity/dtos/DocumentUploadResponse.js +8 -0
- package/bin/identity/dtos/PeopleSelfVerifiedRequest.d.ts +8 -0
- package/bin/identity/dtos/PeopleSelfVerifiedRequest.js +8 -0
- package/bin/identity/index.d.ts +3 -0
- package/bin/identity/index.js +3 -0
- package/package.json +1 -1
- package/src/identity/dtos/AgentDocumentKeyResponse.ts +5 -0
- package/src/identity/dtos/DocumentUploadResponse.ts +6 -0
- package/src/identity/dtos/PeopleSelfVerifiedRequest.ts +11 -0
- package/src/identity/index.ts +3 -0
- package/src/platformRbac/auth/PrepareChallengeRequest.ts +1 -1
|
@@ -5,7 +5,7 @@ import { PrepareChallengeRequest } from '../../../../src/platformRbac/auth/Prepa
|
|
|
5
5
|
import { ChallengeNameEnum } from '../../../../src/platformRbac/enums/ChallengeNameEnum';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* DEC-RBAC-
|
|
8
|
+
* DEC-RBAC-093: `email` es opcional y robusto a string vacío. Un usuario phone-primario
|
|
9
9
|
* (sin email) hace login MFA (SMS_OTP / TOTP) sin email — el trigger CreateAuthChallenge
|
|
10
10
|
* ya no manda `''`. `@ValidateIf` saltea undefined/null/'' (`@IsOptional` NO saltea `''`).
|
|
11
11
|
* La rama EMAIL_OTP del preparer sigue necesitando email en runtime — eso NO lo valida el DTO.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentDocumentKeyResponse = void 0;
|
|
4
|
+
// Item de la lista que devuelve el endpoint "último documento" de agentes
|
|
5
|
+
// (AgentManager.getUserDocuments → data: [{ key }]). DEC-PROT-011.
|
|
6
|
+
class AgentDocumentKeyResponse {
|
|
7
|
+
}
|
|
8
|
+
exports.AgentDocumentKeyResponse = AgentDocumentKeyResponse;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocumentUploadResponse = void 0;
|
|
4
|
+
// Respuesta del upload de documento de agente (AgentManager.uploadDocumentAgent → resp.data).
|
|
5
|
+
// DEC-PROT-011.
|
|
6
|
+
class DocumentUploadResponse {
|
|
7
|
+
}
|
|
8
|
+
exports.DocumentUploadResponse = DocumentUploadResponse;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InfoSelfVerifiedStatus } from "../enums/InfoSelfVerifiedStatus";
|
|
2
|
+
import { AccountRequirementStatusEnum } from "../enums/AccountRequirementStatusEnum";
|
|
3
|
+
export declare class PeopleSelfVerifiedRequest {
|
|
4
|
+
MEX_InfoSelfVerified?: InfoSelfVerifiedStatus;
|
|
5
|
+
USA_InfoSelfVerified?: InfoSelfVerifiedStatus;
|
|
6
|
+
status?: AccountRequirementStatusEnum;
|
|
7
|
+
observations?: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PeopleSelfVerifiedRequest = void 0;
|
|
4
|
+
// Request del endpoint agent self-verified (subset de PeopleUpdateRequest usado por
|
|
5
|
+
// AgentUpdatePeopleManager.updatePeopleByUser con selfVerified=true). DEC-PROT-011.
|
|
6
|
+
class PeopleSelfVerifiedRequest {
|
|
7
|
+
}
|
|
8
|
+
exports.PeopleSelfVerifiedRequest = PeopleSelfVerifiedRequest;
|
package/bin/identity/index.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ export * from './dtos/TypeOfDocument';
|
|
|
7
7
|
export * from './dtos/PeopleUpdateRequest';
|
|
8
8
|
export * from './dtos/UploadDocumentRequest';
|
|
9
9
|
export * from './dtos/UploadDocumentFile';
|
|
10
|
+
export * from './dtos/PeopleSelfVerifiedRequest';
|
|
11
|
+
export * from './dtos/AgentDocumentKeyResponse';
|
|
12
|
+
export * from './dtos/DocumentUploadResponse';
|
|
10
13
|
export * from './enums/IdentificationDocumentStatus';
|
|
11
14
|
export * from './enums/SexDocument';
|
|
12
15
|
export * from './enums/InfoSelfVerifiedStatus';
|
package/bin/identity/index.js
CHANGED
|
@@ -24,6 +24,9 @@ __exportStar(require("./dtos/TypeOfDocument"), exports);
|
|
|
24
24
|
__exportStar(require("./dtos/PeopleUpdateRequest"), exports);
|
|
25
25
|
__exportStar(require("./dtos/UploadDocumentRequest"), exports);
|
|
26
26
|
__exportStar(require("./dtos/UploadDocumentFile"), exports);
|
|
27
|
+
__exportStar(require("./dtos/PeopleSelfVerifiedRequest"), exports);
|
|
28
|
+
__exportStar(require("./dtos/AgentDocumentKeyResponse"), exports);
|
|
29
|
+
__exportStar(require("./dtos/DocumentUploadResponse"), exports);
|
|
27
30
|
//enums
|
|
28
31
|
__exportStar(require("./enums/IdentificationDocumentStatus"), exports);
|
|
29
32
|
__exportStar(require("./enums/SexDocument"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InfoSelfVerifiedStatus } from "../enums/InfoSelfVerifiedStatus";
|
|
2
|
+
import { AccountRequirementStatusEnum } from "../enums/AccountRequirementStatusEnum";
|
|
3
|
+
|
|
4
|
+
// Request del endpoint agent self-verified (subset de PeopleUpdateRequest usado por
|
|
5
|
+
// AgentUpdatePeopleManager.updatePeopleByUser con selfVerified=true). DEC-PROT-011.
|
|
6
|
+
export class PeopleSelfVerifiedRequest {
|
|
7
|
+
MEX_InfoSelfVerified?: InfoSelfVerifiedStatus;
|
|
8
|
+
USA_InfoSelfVerified?: InfoSelfVerifiedStatus;
|
|
9
|
+
status?: AccountRequirementStatusEnum;
|
|
10
|
+
observations?: string;
|
|
11
|
+
}
|
package/src/identity/index.ts
CHANGED
|
@@ -9,6 +9,9 @@ export * from './dtos/TypeOfDocument';
|
|
|
9
9
|
export * from './dtos/PeopleUpdateRequest';
|
|
10
10
|
export * from './dtos/UploadDocumentRequest';
|
|
11
11
|
export * from './dtos/UploadDocumentFile';
|
|
12
|
+
export * from './dtos/PeopleSelfVerifiedRequest';
|
|
13
|
+
export * from './dtos/AgentDocumentKeyResponse';
|
|
14
|
+
export * from './dtos/DocumentUploadResponse';
|
|
12
15
|
|
|
13
16
|
|
|
14
17
|
//enums
|
|
@@ -8,7 +8,7 @@ export class PrepareChallengeRequest {
|
|
|
8
8
|
@IsEnum(ChallengeNameEnum)
|
|
9
9
|
challengeName!: ChallengeNameEnum;
|
|
10
10
|
|
|
11
|
-
// DEC-RBAC-
|
|
11
|
+
// DEC-RBAC-093: email OPCIONAL y robusto a string vacío. Un usuario phone-primario (sin email)
|
|
12
12
|
// hace login MFA (SMS_OTP/TOTP) sin email; el trigger CreateAuthChallenge ya no manda ''. Se usa
|
|
13
13
|
// @ValidateIf (no @IsOptional) porque @IsOptional NO saltea '' — acá necesitamos que undefined,
|
|
14
14
|
// null y '' NO rompan la validación. Cuando email SÍ trae valor no vacío, debe ser un email válido.
|