@fiado/type-kit 3.1.22 → 3.1.23

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,16 +5,32 @@
5
5
  */
6
6
  export declare class ExpedienteIdentityPersonalData {
7
7
  full_name: string;
8
+ phone: string | null;
9
+ email: string | null;
10
+ directory_id: string;
11
+ client_since: string | null;
12
+ wallet_source: string | null;
8
13
  rfc: string | null;
9
14
  date_of_birth: string | null;
10
15
  sex: string | null;
11
16
  nationality: string | null;
12
- email: string | null;
17
+ pep_level: string | null;
18
+ }
19
+ /**
20
+ * Verificación KYC del cliente (extraída del primer documento vigente).
21
+ */
22
+ export declare class ExpedienteIdentityKyc {
23
+ status: string | null;
24
+ verified_at: string | null;
25
+ verification_id: string | null;
26
+ primary_document_type: string | null;
27
+ document_number: string | null;
28
+ document_expires_at: string | null;
29
+ document_country_id: string | null;
13
30
  }
14
31
  /**
15
- * Documento de identidad presentado por el cliente en el KYC.
16
- * Combina datos OCR (de people.documents[i]) con la URL firmada S3
17
- * del archivo correspondiente (imagen/PDF).
32
+ * Documento de identidad presentado en el KYC.
33
+ * Combina datos OCR con la URL firmada S3 del archivo correspondiente.
18
34
  */
19
35
  export declare class ExpedienteIdentityDocument {
20
36
  key: string;
@@ -35,6 +51,7 @@ export declare class ExpedienteIdentityRiskProfile {
35
51
  }
36
52
  export declare class ExpedienteIdentityResponse {
37
53
  personal_data: ExpedienteIdentityPersonalData;
38
- documents: ExpedienteIdentityDocument[];
54
+ kyc: ExpedienteIdentityKyc | null;
39
55
  risk_profile: ExpedienteIdentityRiskProfile | null;
56
+ documents: ExpedienteIdentityDocument[];
40
57
  }
@@ -5,14 +5,19 @@
5
5
  * anti-fraude del risk-profile-business.
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.ExpedienteIdentityResponse = exports.ExpedienteIdentityRiskProfile = exports.ExpedienteIdentityDocument = exports.ExpedienteIdentityPersonalData = void 0;
8
+ exports.ExpedienteIdentityResponse = exports.ExpedienteIdentityRiskProfile = exports.ExpedienteIdentityDocument = exports.ExpedienteIdentityKyc = exports.ExpedienteIdentityPersonalData = void 0;
9
9
  class ExpedienteIdentityPersonalData {
10
10
  }
11
11
  exports.ExpedienteIdentityPersonalData = ExpedienteIdentityPersonalData;
12
12
  /**
13
- * Documento de identidad presentado por el cliente en el KYC.
14
- * Combina datos OCR (de people.documents[i]) con la URL firmada S3
15
- * del archivo correspondiente (imagen/PDF).
13
+ * Verificación KYC del cliente (extraída del primer documento vigente).
14
+ */
15
+ class ExpedienteIdentityKyc {
16
+ }
17
+ exports.ExpedienteIdentityKyc = ExpedienteIdentityKyc;
18
+ /**
19
+ * Documento de identidad presentado en el KYC.
20
+ * Combina datos OCR con la URL firmada S3 del archivo correspondiente.
16
21
  */
17
22
  class ExpedienteIdentityDocument {
18
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.1.22",
3
+ "version": "3.1.23",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -6,23 +6,41 @@
6
6
 
7
7
  export class ExpedienteIdentityPersonalData {
8
8
  full_name: string; // latNames + latFirstLastName + latSecondLastName
9
+ phone: string | null; // del DirectoryUser
10
+ email: string | null; // internalEmail del People
11
+ directory_id: string;
12
+ client_since: string | null; // DirectoryUser.createDate
13
+ wallet_source: string | null; // "FiadoInc"
14
+ // Datos adicionales de identificación (opcionales)
9
15
  rfc: string | null;
10
16
  date_of_birth: string | null;
11
17
  sex: string | null;
12
18
  nationality: string | null;
13
- email: string | null; // internalEmail del People
19
+ pep_level: string | null; // NO_PEP, PEP, etc.
14
20
  }
15
21
 
16
22
  /**
17
- * Documento de identidad presentado por el cliente en el KYC.
18
- * Combina datos OCR (de people.documents[i]) con la URL firmada S3
19
- * del archivo correspondiente (imagen/PDF).
23
+ * Verificación KYC del cliente (extraída del primer documento vigente).
24
+ */
25
+ export class ExpedienteIdentityKyc {
26
+ status: string | null; // VERIFIED, PENDING, REJECTED
27
+ verified_at: string | null; // verificationDate
28
+ verification_id: string | null; // Metamap ref (ej. "mm-verification-abc123")
29
+ primary_document_type: string | null; // passport, ine, etc.
30
+ document_number: string | null;
31
+ document_expires_at: string | null; // expirationDate del doc
32
+ document_country_id: string | null;
33
+ }
34
+
35
+ /**
36
+ * Documento de identidad presentado en el KYC.
37
+ * Combina datos OCR con la URL firmada S3 del archivo correspondiente.
20
38
  */
21
39
  export class ExpedienteIdentityDocument {
22
40
  key: string; // filename en S3, ej. "PASSPORT_FRONT.png"
23
- signed_url: string; // URL firmada TTL corto
41
+ signed_url: string;
24
42
  signed_url_expires_at: string | null;
25
- type_of_document: string | null; // "passport", "ine", "selfie", "liveness"
43
+ type_of_document: string | null;
26
44
  document_number: string | null;
27
45
  verification_date: string | null;
28
46
  country_id: string | null;
@@ -39,6 +57,7 @@ export class ExpedienteIdentityRiskProfile {
39
57
 
40
58
  export class ExpedienteIdentityResponse {
41
59
  personal_data: ExpedienteIdentityPersonalData;
42
- documents: ExpedienteIdentityDocument[];
60
+ kyc: ExpedienteIdentityKyc | null;
43
61
  risk_profile: ExpedienteIdentityRiskProfile | null;
62
+ documents: ExpedienteIdentityDocument[];
44
63
  }