@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.
@@ -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-094: `email` es opcional y robusto a string vacío. Un usuario phone-primario
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,3 @@
1
+ export declare class AgentDocumentKeyResponse {
2
+ key: string;
3
+ }
@@ -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,6 @@
1
+ export declare class DocumentUploadResponse {
2
+ directory?: {
3
+ peopleId: string;
4
+ };
5
+ fileName?: string;
6
+ }
@@ -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;
@@ -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';
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.155.0",
3
+ "version": "3.156.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,5 @@
1
+ // Item de la lista que devuelve el endpoint "último documento" de agentes
2
+ // (AgentManager.getUserDocuments → data: [{ key }]). DEC-PROT-011.
3
+ export class AgentDocumentKeyResponse {
4
+ key: string;
5
+ }
@@ -0,0 +1,6 @@
1
+ // Respuesta del upload de documento de agente (AgentManager.uploadDocumentAgent → resp.data).
2
+ // DEC-PROT-011.
3
+ export class DocumentUploadResponse {
4
+ directory?: { peopleId: string };
5
+ fileName?: string;
6
+ }
@@ -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
+ }
@@ -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-094: email OPCIONAL y robusto a string vacío. Un usuario phone-primario (sin email)
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.