@fiado/type-kit 3.1.23 → 3.1.24

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Respuesta del endpoint GET /credit/backoffice/expedientes/{directoryId}/identity (P10 §4.2).
3
- * Compone datos del identity-lambda (people + OCR + signed URLs) con el score
4
- * anti-fraude del risk-profile-business.
3
+ * Compone datos del identity-lambda (people + OCR + signed URLs),
4
+ * address-lambda (dirección mexicana principal) y risk-profile-business (score).
5
5
  */
6
6
  export declare class ExpedienteIdentityPersonalData {
7
7
  full_name: string;
@@ -10,6 +10,7 @@ export declare class ExpedienteIdentityPersonalData {
10
10
  directory_id: string;
11
11
  client_since: string | null;
12
12
  wallet_source: string | null;
13
+ curp: string | null;
13
14
  rfc: string | null;
14
15
  date_of_birth: string | null;
15
16
  sex: string | null;
@@ -17,7 +18,7 @@ export declare class ExpedienteIdentityPersonalData {
17
18
  pep_level: string | null;
18
19
  }
19
20
  /**
20
- * Verificación KYC del cliente (extraída del primer documento vigente).
21
+ * Verificación KYC extraída del primer documento vigente.
21
22
  */
22
23
  export declare class ExpedienteIdentityKyc {
23
24
  status: string | null;
@@ -26,12 +27,36 @@ export declare class ExpedienteIdentityKyc {
26
27
  primary_document_type: string | null;
27
28
  document_number: string | null;
28
29
  document_expires_at: string | null;
30
+ document_issue_date: string | null;
29
31
  document_country_id: string | null;
32
+ document_issue_state: string | null;
30
33
  }
31
34
  /**
32
- * Documento de identidad presentado en el KYC.
33
- * Combina datos OCR con la URL firmada S3 del archivo correspondiente.
35
+ * Dirección registrada del cliente (típicamente la principal mexicana).
34
36
  */
37
+ export declare class ExpedienteIdentityAddress {
38
+ id: string | null;
39
+ street: string | null;
40
+ address_number: string | null;
41
+ internal_number: string | null;
42
+ neighborhood: string | null;
43
+ municipality: string | null;
44
+ region: string | null;
45
+ postal_code: string | null;
46
+ country_id: string | null;
47
+ additional_information: string | null;
48
+ is_principal: boolean;
49
+ status: string | null;
50
+ valid_from: string | null;
51
+ }
52
+ /**
53
+ * Listas de cumplimiento regulatorio.
54
+ */
55
+ export declare class ExpedienteIdentityComplianceLists {
56
+ fiado_list_approved: boolean | null;
57
+ cnbv_list_approved: boolean | null;
58
+ black_list_approved: boolean | null;
59
+ }
35
60
  export declare class ExpedienteIdentityDocument {
36
61
  key: string;
37
62
  signed_url: string;
@@ -52,6 +77,8 @@ export declare class ExpedienteIdentityRiskProfile {
52
77
  export declare class ExpedienteIdentityResponse {
53
78
  personal_data: ExpedienteIdentityPersonalData;
54
79
  kyc: ExpedienteIdentityKyc | null;
80
+ address: ExpedienteIdentityAddress | null;
81
+ compliance_lists: ExpedienteIdentityComplianceLists | null;
55
82
  risk_profile: ExpedienteIdentityRiskProfile | null;
56
83
  documents: ExpedienteIdentityDocument[];
57
84
  }
@@ -1,24 +1,32 @@
1
1
  "use strict";
2
2
  /**
3
3
  * Respuesta del endpoint GET /credit/backoffice/expedientes/{directoryId}/identity (P10 §4.2).
4
- * Compone datos del identity-lambda (people + OCR + signed URLs) con el score
5
- * anti-fraude del risk-profile-business.
4
+ * Compone datos del identity-lambda (people + OCR + signed URLs),
5
+ * address-lambda (dirección mexicana principal) y risk-profile-business (score).
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.ExpedienteIdentityResponse = exports.ExpedienteIdentityRiskProfile = exports.ExpedienteIdentityDocument = exports.ExpedienteIdentityKyc = exports.ExpedienteIdentityPersonalData = void 0;
8
+ exports.ExpedienteIdentityResponse = exports.ExpedienteIdentityRiskProfile = exports.ExpedienteIdentityDocument = exports.ExpedienteIdentityComplianceLists = exports.ExpedienteIdentityAddress = exports.ExpedienteIdentityKyc = exports.ExpedienteIdentityPersonalData = void 0;
9
9
  class ExpedienteIdentityPersonalData {
10
10
  }
11
11
  exports.ExpedienteIdentityPersonalData = ExpedienteIdentityPersonalData;
12
12
  /**
13
- * Verificación KYC del cliente (extraída del primer documento vigente).
13
+ * Verificación KYC extraída del primer documento vigente.
14
14
  */
15
15
  class ExpedienteIdentityKyc {
16
16
  }
17
17
  exports.ExpedienteIdentityKyc = ExpedienteIdentityKyc;
18
18
  /**
19
- * Documento de identidad presentado en el KYC.
20
- * Combina datos OCR con la URL firmada S3 del archivo correspondiente.
19
+ * Dirección registrada del cliente (típicamente la principal mexicana).
21
20
  */
21
+ class ExpedienteIdentityAddress {
22
+ }
23
+ exports.ExpedienteIdentityAddress = ExpedienteIdentityAddress;
24
+ /**
25
+ * Listas de cumplimiento regulatorio.
26
+ */
27
+ class ExpedienteIdentityComplianceLists {
28
+ }
29
+ exports.ExpedienteIdentityComplianceLists = ExpedienteIdentityComplianceLists;
22
30
  class ExpedienteIdentityDocument {
23
31
  }
24
32
  exports.ExpedienteIdentityDocument = ExpedienteIdentityDocument;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.1.23",
3
+ "version": "3.1.24",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,43 +1,70 @@
1
1
  /**
2
2
  * Respuesta del endpoint GET /credit/backoffice/expedientes/{directoryId}/identity (P10 §4.2).
3
- * Compone datos del identity-lambda (people + OCR + signed URLs) con el score
4
- * anti-fraude del risk-profile-business.
3
+ * Compone datos del identity-lambda (people + OCR + signed URLs),
4
+ * address-lambda (dirección mexicana principal) y risk-profile-business (score).
5
5
  */
6
6
 
7
7
  export class ExpedienteIdentityPersonalData {
8
- full_name: string; // latNames + latFirstLastName + latSecondLastName
9
- phone: string | null; // del DirectoryUser
10
- email: string | null; // internalEmail del People
8
+ full_name: string;
9
+ phone: string | null;
10
+ email: string | null;
11
11
  directory_id: string;
12
- client_since: string | null; // DirectoryUser.createDate
13
- wallet_source: string | null; // "FiadoInc"
14
- // Datos adicionales de identificación (opcionales)
12
+ client_since: string | null;
13
+ wallet_source: string | null;
14
+ // Identificación
15
+ curp: string | null;
15
16
  rfc: string | null;
16
17
  date_of_birth: string | null;
17
18
  sex: string | null;
18
19
  nationality: string | null;
19
- pep_level: string | null; // NO_PEP, PEP, etc.
20
+ pep_level: string | null;
20
21
  }
21
22
 
22
23
  /**
23
- * Verificación KYC del cliente (extraída del primer documento vigente).
24
+ * Verificación KYC extraída del primer documento vigente.
24
25
  */
25
26
  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.
27
+ status: string | null;
28
+ verified_at: string | null;
29
+ verification_id: string | null;
30
+ primary_document_type: string | null;
30
31
  document_number: string | null;
31
- document_expires_at: string | null; // expirationDate del doc
32
+ document_expires_at: string | null;
33
+ document_issue_date: string | null;
32
34
  document_country_id: string | null;
35
+ document_issue_state: string | null;
33
36
  }
34
37
 
35
38
  /**
36
- * Documento de identidad presentado en el KYC.
37
- * Combina datos OCR con la URL firmada S3 del archivo correspondiente.
39
+ * Dirección registrada del cliente (típicamente la principal mexicana).
38
40
  */
41
+ export class ExpedienteIdentityAddress {
42
+ id: string | null;
43
+ street: string | null;
44
+ address_number: string | null;
45
+ internal_number: string | null;
46
+ neighborhood: string | null;
47
+ municipality: string | null;
48
+ region: string | null;
49
+ postal_code: string | null;
50
+ country_id: string | null;
51
+ additional_information: string | null;
52
+ is_principal: boolean;
53
+ status: string | null;
54
+ valid_from: string | null;
55
+ }
56
+
57
+ /**
58
+ * Listas de cumplimiento regulatorio.
59
+ */
60
+ export class ExpedienteIdentityComplianceLists {
61
+ fiado_list_approved: boolean | null;
62
+ cnbv_list_approved: boolean | null;
63
+ black_list_approved: boolean | null;
64
+ }
65
+
39
66
  export class ExpedienteIdentityDocument {
40
- key: string; // filename en S3, ej. "PASSPORT_FRONT.png"
67
+ key: string;
41
68
  signed_url: string;
42
69
  signed_url_expires_at: string | null;
43
70
  type_of_document: string | null;
@@ -58,6 +85,8 @@ export class ExpedienteIdentityRiskProfile {
58
85
  export class ExpedienteIdentityResponse {
59
86
  personal_data: ExpedienteIdentityPersonalData;
60
87
  kyc: ExpedienteIdentityKyc | null;
88
+ address: ExpedienteIdentityAddress | null;
89
+ compliance_lists: ExpedienteIdentityComplianceLists | null;
61
90
  risk_profile: ExpedienteIdentityRiskProfile | null;
62
91
  documents: ExpedienteIdentityDocument[];
63
92
  }