@trinsic/api 2.0.0-alpha2 → 2.0.0-alpha3

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.
Files changed (141) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/dist/apis/NetworkApi.d.ts +4 -4
  3. package/dist/apis/NetworkApi.js +2 -2
  4. package/dist/esm/apis/NetworkApi.d.ts +4 -4
  5. package/dist/esm/apis/NetworkApi.js +2 -2
  6. package/dist/esm/models/AadhaarInput.d.ts +2 -2
  7. package/dist/esm/models/AadhaarInput.js +1 -1
  8. package/dist/esm/models/Address.d.ts +8 -8
  9. package/dist/esm/models/AttachmentAccessKeys.d.ts +4 -4
  10. package/dist/esm/models/BangladeshNationalIdInput.d.ts +4 -4
  11. package/dist/esm/models/BangladeshNationalIdInput.js +1 -1
  12. package/dist/esm/models/BrazilDigitalCnhInput.d.ts +3 -3
  13. package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +3 -3
  14. package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +1 -1
  15. package/dist/esm/models/CreateHostedProviderSessionResponse.d.ts +1 -1
  16. package/dist/esm/models/CreateWidgetSessionRequest.d.ts +3 -3
  17. package/dist/esm/models/CreateWidgetSessionResponse.d.ts +1 -1
  18. package/dist/esm/models/DocumentData.d.ts +6 -6
  19. package/dist/esm/models/DocumentData.js +2 -2
  20. package/dist/esm/models/DocumentScanAttachments.d.ts +1 -1
  21. package/dist/esm/models/GetSessionResultResponse.d.ts +1 -1
  22. package/dist/esm/models/HttpValidationProblemDetails.d.ts +5 -5
  23. package/dist/esm/models/IdentityData.d.ts +4 -4
  24. package/dist/esm/models/IndonesiaNikInput.d.ts +43 -0
  25. package/dist/esm/models/IndonesiaNikInput.js +48 -0
  26. package/dist/esm/models/IntegrationStep.d.ts +1 -1
  27. package/dist/esm/models/KenyaNidInput.d.ts +61 -0
  28. package/dist/esm/models/KenyaNidInput.js +58 -0
  29. package/dist/esm/models/KnownAddress.d.ts +8 -8
  30. package/dist/esm/models/KnownIdentityData.d.ts +1 -1
  31. package/dist/esm/models/KnownPersonData.d.ts +8 -8
  32. package/dist/esm/models/MexicoCurpInput.d.ts +31 -0
  33. package/dist/esm/models/MexicoCurpInput.js +40 -0
  34. package/dist/esm/models/NigeriaNinInput.d.ts +67 -0
  35. package/dist/esm/models/NigeriaNinInput.js +58 -0
  36. package/dist/esm/models/PersonData.d.ts +10 -10
  37. package/dist/esm/models/PersonData.js +1 -1
  38. package/dist/esm/models/PhilippineMatchInput.d.ts +5 -5
  39. package/dist/esm/models/PhilippineMatchInput.js +1 -1
  40. package/dist/esm/models/PhilippineQRInput.d.ts +2 -2
  41. package/dist/esm/models/ProblemDetails.d.ts +5 -5
  42. package/dist/esm/models/ProviderAttachments.d.ts +1 -1
  43. package/dist/esm/models/ProviderInfo.d.ts +1 -1
  44. package/dist/esm/models/ProviderInput.d.ts +41 -6
  45. package/dist/esm/models/ProviderInput.js +15 -0
  46. package/dist/esm/models/RecommendRequest.d.ts +10 -4
  47. package/dist/esm/models/RecommendRequest.js +2 -0
  48. package/dist/esm/models/RefreshStepContentRequest.d.ts +1 -1
  49. package/dist/esm/models/ResultCollection.d.ts +1 -1
  50. package/dist/esm/models/Session.d.ts +1 -1
  51. package/dist/esm/models/SouthAfricaNidInput.d.ts +49 -0
  52. package/dist/esm/models/SouthAfricaNidInput.js +52 -0
  53. package/dist/esm/models/index.d.ts +5 -0
  54. package/dist/esm/models/index.js +5 -0
  55. package/dist/models/AadhaarInput.d.ts +2 -2
  56. package/dist/models/AadhaarInput.js +1 -1
  57. package/dist/models/Address.d.ts +8 -8
  58. package/dist/models/AttachmentAccessKeys.d.ts +4 -4
  59. package/dist/models/BangladeshNationalIdInput.d.ts +4 -4
  60. package/dist/models/BangladeshNationalIdInput.js +1 -1
  61. package/dist/models/BrazilDigitalCnhInput.d.ts +3 -3
  62. package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +3 -3
  63. package/dist/models/CreateHostedProviderSessionRequest.d.ts +1 -1
  64. package/dist/models/CreateHostedProviderSessionResponse.d.ts +1 -1
  65. package/dist/models/CreateWidgetSessionRequest.d.ts +3 -3
  66. package/dist/models/CreateWidgetSessionResponse.d.ts +1 -1
  67. package/dist/models/DocumentData.d.ts +6 -6
  68. package/dist/models/DocumentData.js +2 -2
  69. package/dist/models/DocumentScanAttachments.d.ts +1 -1
  70. package/dist/models/GetSessionResultResponse.d.ts +1 -1
  71. package/dist/models/HttpValidationProblemDetails.d.ts +5 -5
  72. package/dist/models/IdentityData.d.ts +4 -4
  73. package/dist/models/IndonesiaNikInput.d.ts +43 -0
  74. package/dist/models/IndonesiaNikInput.js +54 -0
  75. package/dist/models/IntegrationStep.d.ts +1 -1
  76. package/dist/models/KenyaNidInput.d.ts +61 -0
  77. package/dist/models/KenyaNidInput.js +64 -0
  78. package/dist/models/KnownAddress.d.ts +8 -8
  79. package/dist/models/KnownIdentityData.d.ts +1 -1
  80. package/dist/models/KnownPersonData.d.ts +8 -8
  81. package/dist/models/MexicoCurpInput.d.ts +31 -0
  82. package/dist/models/MexicoCurpInput.js +46 -0
  83. package/dist/models/NigeriaNinInput.d.ts +67 -0
  84. package/dist/models/NigeriaNinInput.js +64 -0
  85. package/dist/models/PersonData.d.ts +10 -10
  86. package/dist/models/PersonData.js +1 -1
  87. package/dist/models/PhilippineMatchInput.d.ts +5 -5
  88. package/dist/models/PhilippineMatchInput.js +1 -1
  89. package/dist/models/PhilippineQRInput.d.ts +2 -2
  90. package/dist/models/ProblemDetails.d.ts +5 -5
  91. package/dist/models/ProviderAttachments.d.ts +1 -1
  92. package/dist/models/ProviderInfo.d.ts +1 -1
  93. package/dist/models/ProviderInput.d.ts +41 -6
  94. package/dist/models/ProviderInput.js +15 -0
  95. package/dist/models/RecommendRequest.d.ts +10 -4
  96. package/dist/models/RecommendRequest.js +2 -0
  97. package/dist/models/RefreshStepContentRequest.d.ts +1 -1
  98. package/dist/models/ResultCollection.d.ts +1 -1
  99. package/dist/models/Session.d.ts +1 -1
  100. package/dist/models/SouthAfricaNidInput.d.ts +49 -0
  101. package/dist/models/SouthAfricaNidInput.js +58 -0
  102. package/dist/models/index.d.ts +5 -0
  103. package/dist/models/index.js +5 -0
  104. package/package.json +1 -1
  105. package/src/apis/NetworkApi.ts +4 -4
  106. package/src/models/AadhaarInput.ts +3 -3
  107. package/src/models/Address.ts +8 -8
  108. package/src/models/AttachmentAccessKeys.ts +4 -4
  109. package/src/models/BangladeshNationalIdInput.ts +5 -5
  110. package/src/models/BrazilDigitalCnhInput.ts +3 -3
  111. package/src/models/CreateAdvancedProviderSessionRequest.ts +3 -3
  112. package/src/models/CreateHostedProviderSessionRequest.ts +1 -1
  113. package/src/models/CreateHostedProviderSessionResponse.ts +1 -1
  114. package/src/models/CreateWidgetSessionRequest.ts +3 -3
  115. package/src/models/CreateWidgetSessionResponse.ts +1 -1
  116. package/src/models/DocumentData.ts +8 -8
  117. package/src/models/DocumentScanAttachments.ts +1 -1
  118. package/src/models/GetSessionResultResponse.ts +1 -1
  119. package/src/models/HttpValidationProblemDetails.ts +5 -5
  120. package/src/models/IdentityData.ts +4 -4
  121. package/src/models/IndonesiaNikInput.ts +79 -0
  122. package/src/models/IntegrationStep.ts +1 -1
  123. package/src/models/KenyaNidInput.ts +105 -0
  124. package/src/models/KnownAddress.ts +8 -8
  125. package/src/models/KnownIdentityData.ts +1 -1
  126. package/src/models/KnownPersonData.ts +8 -8
  127. package/src/models/MexicoCurpInput.ts +61 -0
  128. package/src/models/NigeriaNinInput.ts +112 -0
  129. package/src/models/PersonData.ts +11 -11
  130. package/src/models/PhilippineMatchInput.ts +6 -6
  131. package/src/models/PhilippineQRInput.ts +2 -2
  132. package/src/models/ProblemDetails.ts +5 -5
  133. package/src/models/ProviderAttachments.ts +1 -1
  134. package/src/models/ProviderInfo.ts +1 -1
  135. package/src/models/ProviderInput.ts +76 -6
  136. package/src/models/RecommendRequest.ts +12 -4
  137. package/src/models/RefreshStepContentRequest.ts +1 -1
  138. package/src/models/ResultCollection.ts +1 -1
  139. package/src/models/Session.ts +1 -1
  140. package/src/models/SouthAfricaNidInput.ts +88 -0
  141. package/src/models/index.ts +5 -0
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Trinsic API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfNigeriaNinInput = instanceOfNigeriaNinInput;
17
+ exports.NigeriaNinInputFromJSON = NigeriaNinInputFromJSON;
18
+ exports.NigeriaNinInputFromJSONTyped = NigeriaNinInputFromJSONTyped;
19
+ exports.NigeriaNinInputToJSON = NigeriaNinInputToJSON;
20
+ /**
21
+ * Check if a given object implements the NigeriaNinInput interface.
22
+ */
23
+ function instanceOfNigeriaNinInput(value) {
24
+ if (!('firstName' in value) || value['firstName'] === undefined)
25
+ return false;
26
+ if (!('lastName' in value) || value['lastName'] === undefined)
27
+ return false;
28
+ if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined)
29
+ return false;
30
+ if (!('nationalIdNumber' in value) || value['nationalIdNumber'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function NigeriaNinInputFromJSON(json) {
35
+ return NigeriaNinInputFromJSONTyped(json, false);
36
+ }
37
+ function NigeriaNinInputFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'firstName': json['firstName'],
43
+ 'middleName': json['middleName'] == null ? undefined : json['middleName'],
44
+ 'lastName': json['lastName'],
45
+ 'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
46
+ 'dateOfBirth': (new Date(json['dateOfBirth'])),
47
+ 'gender': json['gender'] == null ? undefined : json['gender'],
48
+ 'nationalIdNumber': json['nationalIdNumber'],
49
+ };
50
+ }
51
+ function NigeriaNinInputToJSON(value) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'firstName': value['firstName'],
57
+ 'middleName': value['middleName'],
58
+ 'lastName': value['lastName'],
59
+ 'phoneNumber': value['phoneNumber'],
60
+ 'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0, 10)),
61
+ 'gender': value['gender'],
62
+ 'nationalIdNumber': value['nationalIdNumber'],
63
+ };
64
+ }
@@ -22,61 +22,61 @@ export interface PersonData {
22
22
  * @type {string}
23
23
  * @memberof PersonData
24
24
  */
25
- givenName?: string;
25
+ givenName?: string | null;
26
26
  /**
27
27
  *
28
28
  * @type {string}
29
29
  * @memberof PersonData
30
30
  */
31
- familyName?: string;
31
+ familyName?: string | null;
32
32
  /**
33
33
  *
34
34
  * @type {string}
35
35
  * @memberof PersonData
36
36
  */
37
- middleName?: string;
37
+ middleName?: string | null;
38
38
  /**
39
39
  *
40
40
  * @type {string}
41
41
  * @memberof PersonData
42
42
  */
43
- fullName?: string;
43
+ fullName?: string | null;
44
44
  /**
45
45
  *
46
46
  * @type {string}
47
47
  * @memberof PersonData
48
48
  */
49
- suffix?: string;
49
+ suffix?: string | null;
50
50
  /**
51
51
  *
52
52
  * @type {string}
53
53
  * @memberof PersonData
54
54
  */
55
- nationality?: string;
55
+ nationality?: string | null;
56
56
  /**
57
57
  *
58
58
  * @type {Sex}
59
59
  * @memberof PersonData
60
60
  */
61
- sex?: Sex;
61
+ sex?: Sex | null;
62
62
  /**
63
63
  *
64
64
  * @type {string}
65
65
  * @memberof PersonData
66
66
  */
67
- phoneNumber?: string;
67
+ phoneNumber?: string | null;
68
68
  /**
69
69
  *
70
70
  * @type {Address}
71
71
  * @memberof PersonData
72
72
  */
73
- address?: Address;
73
+ address?: Address | null;
74
74
  /**
75
75
  *
76
76
  * @type {Date}
77
77
  * @memberof PersonData
78
78
  */
79
- dateOfBirth?: Date;
79
+ dateOfBirth?: Date | null;
80
80
  }
81
81
  /**
82
82
  * Check if a given object implements the PersonData interface.
@@ -59,6 +59,6 @@ function PersonDataToJSON(value) {
59
59
  'sex': (0, Sex_1.SexToJSON)(value['sex']),
60
60
  'phoneNumber': value['phoneNumber'],
61
61
  'address': (0, Address_1.AddressToJSON)(value['address']),
62
- 'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth']).toISOString().substring(0, 10)),
62
+ 'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
63
63
  };
64
64
  }
@@ -20,31 +20,31 @@ export interface PhilippineMatchInput {
20
20
  * @type {string}
21
21
  * @memberof PhilippineMatchInput
22
22
  */
23
- givenName?: string;
23
+ givenName?: string | null;
24
24
  /**
25
25
  * The user's middle name
26
26
  * @type {string}
27
27
  * @memberof PhilippineMatchInput
28
28
  */
29
- middleName?: string;
29
+ middleName?: string | null;
30
30
  /**
31
31
  * The user's family / last name
32
32
  * @type {string}
33
33
  * @memberof PhilippineMatchInput
34
34
  */
35
- familyName?: string;
35
+ familyName?: string | null;
36
36
  /**
37
37
  * The user's name suffix
38
38
  * @type {string}
39
39
  * @memberof PhilippineMatchInput
40
40
  */
41
- suffix?: string;
41
+ suffix?: string | null;
42
42
  /**
43
43
  * The user's date of birth, in `YYYY-MM-DD` format
44
44
  * @type {Date}
45
45
  * @memberof PhilippineMatchInput
46
46
  */
47
- dateOfBirth?: Date;
47
+ dateOfBirth?: Date | null;
48
48
  }
49
49
  /**
50
50
  * Check if a given object implements the PhilippineMatchInput interface.
@@ -47,6 +47,6 @@ function PhilippineMatchInputToJSON(value) {
47
47
  'middleName': value['middleName'],
48
48
  'familyName': value['familyName'],
49
49
  'suffix': value['suffix'],
50
- 'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth']).toISOString().substring(0, 10)),
50
+ 'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
51
51
  };
52
52
  }
@@ -20,13 +20,13 @@ export interface PhilippineQRInput {
20
20
  * @type {string}
21
21
  * @memberof PhilippineQRInput
22
22
  */
23
- qrCodeText?: string;
23
+ qrCodeText?: string | null;
24
24
  /**
25
25
  * The raw bytes of the image containing the user's QR code.
26
26
  * @type {string}
27
27
  * @memberof PhilippineQRInput
28
28
  */
29
- qrCodeImage?: string;
29
+ qrCodeImage?: string | null;
30
30
  }
31
31
  /**
32
32
  * Check if a given object implements the PhilippineQRInput interface.
@@ -21,31 +21,31 @@ export interface ProblemDetails {
21
21
  * @type {string}
22
22
  * @memberof ProblemDetails
23
23
  */
24
- type?: string;
24
+ type?: string | null;
25
25
  /**
26
26
  *
27
27
  * @type {string}
28
28
  * @memberof ProblemDetails
29
29
  */
30
- title?: string;
30
+ title?: string | null;
31
31
  /**
32
32
  *
33
33
  * @type {number}
34
34
  * @memberof ProblemDetails
35
35
  */
36
- status?: number;
36
+ status?: number | null;
37
37
  /**
38
38
  *
39
39
  * @type {string}
40
40
  * @memberof ProblemDetails
41
41
  */
42
- detail?: string;
42
+ detail?: string | null;
43
43
  /**
44
44
  *
45
45
  * @type {string}
46
46
  * @memberof ProblemDetails
47
47
  */
48
- instance?: string;
48
+ instance?: string | null;
49
49
  }
50
50
  /**
51
51
  * Check if a given object implements the ProblemDetails interface.
@@ -21,7 +21,7 @@ export interface ProviderAttachments {
21
21
  * @type {DocumentScanAttachments}
22
22
  * @memberof ProviderAttachments
23
23
  */
24
- documentScan?: DocumentScanAttachments;
24
+ documentScan?: DocumentScanAttachments | null;
25
25
  }
26
26
  /**
27
27
  * Check if a given object implements the ProviderAttachments interface.
@@ -38,7 +38,7 @@ export interface ProviderInfo {
38
38
  * @type {Array<string>}
39
39
  * @memberof ProviderInfo
40
40
  */
41
- childProviderIds?: Array<string>;
41
+ childProviderIds?: Array<string> | null;
42
42
  }
43
43
  /**
44
44
  * Check if a given object implements the ProviderInfo interface.
@@ -12,8 +12,13 @@
12
12
  import type { PhilippineQRInput } from './PhilippineQRInput';
13
13
  import type { BangladeshNationalIdInput } from './BangladeshNationalIdInput';
14
14
  import type { AadhaarInput } from './AadhaarInput';
15
+ import type { KenyaNidInput } from './KenyaNidInput';
16
+ import type { NigeriaNinInput } from './NigeriaNinInput';
15
17
  import type { BrazilCpfCheckInput } from './BrazilCpfCheckInput';
18
+ import type { MexicoCurpInput } from './MexicoCurpInput';
16
19
  import type { BrazilDigitalCnhInput } from './BrazilDigitalCnhInput';
20
+ import type { IndonesiaNikInput } from './IndonesiaNikInput';
21
+ import type { SouthAfricaNidInput } from './SouthAfricaNidInput';
17
22
  import type { PhilippineMatchInput } from './PhilippineMatchInput';
18
23
  /**
19
24
  *
@@ -21,42 +26,72 @@ import type { PhilippineMatchInput } from './PhilippineMatchInput';
21
26
  * @interface ProviderInput
22
27
  */
23
28
  export interface ProviderInput {
29
+ /**
30
+ * Input for the `f-indonesia-nik` integration
31
+ * @type {IndonesiaNikInput}
32
+ * @memberof ProviderInput
33
+ */
34
+ indonesiaNik?: IndonesiaNikInput | null;
35
+ /**
36
+ * Input for the `f-mexico-curp` integration
37
+ * @type {MexicoCurpInput}
38
+ * @memberof ProviderInput
39
+ */
40
+ mexicoCurp?: MexicoCurpInput | null;
41
+ /**
42
+ * Input for the `f-south-africa-nid` integration
43
+ * @type {SouthAfricaNidInput}
44
+ * @memberof ProviderInput
45
+ */
46
+ southAfricaNid?: SouthAfricaNidInput | null;
47
+ /**
48
+ * Input for the `f-kenya-nid` integration
49
+ * @type {KenyaNidInput}
50
+ * @memberof ProviderInput
51
+ */
52
+ kenyaNid?: KenyaNidInput | null;
53
+ /**
54
+ * Input for the `f-nigeria-nin` integration
55
+ * @type {NigeriaNinInput}
56
+ * @memberof ProviderInput
57
+ */
58
+ nigeriaNin?: NigeriaNinInput | null;
24
59
  /**
25
60
  * Input for the `f-india-aadhaar-match` integration
26
61
  * @type {AadhaarInput}
27
62
  * @memberof ProviderInput
28
63
  */
29
- aadhaar?: AadhaarInput;
64
+ aadhaar?: AadhaarInput | null;
30
65
  /**
31
66
  * Input for the `bangladesh-nid` integration
32
67
  * @type {BangladeshNationalIdInput}
33
68
  * @memberof ProviderInput
34
69
  */
35
- bangladeshNationalId?: BangladeshNationalIdInput;
70
+ bangladeshNationalId?: BangladeshNationalIdInput | null;
36
71
  /**
37
72
  * Input for the `g-brazil-cpf` integration
38
73
  * @type {BrazilCpfCheckInput}
39
74
  * @memberof ProviderInput
40
75
  */
41
- brazilCpfCheck?: BrazilCpfCheckInput;
76
+ brazilCpfCheck?: BrazilCpfCheckInput | null;
42
77
  /**
43
78
  * Input for the `g-brazil-digital-cnh` integration
44
79
  * @type {BrazilDigitalCnhInput}
45
80
  * @memberof ProviderInput
46
81
  */
47
- brazilDigitalCnh?: BrazilDigitalCnhInput;
82
+ brazilDigitalCnh?: BrazilDigitalCnhInput | null;
48
83
  /**
49
84
  * Input for the `b-philsys-biometric` integration
50
85
  * @type {PhilippineMatchInput}
51
86
  * @memberof ProviderInput
52
87
  */
53
- philippineMatch?: PhilippineMatchInput;
88
+ philippineMatch?: PhilippineMatchInput | null;
54
89
  /**
55
90
  * Input for the `b-philippine-qr-digital-national-id` and `b-philippine-qr-ephill-id` integrations
56
91
  * @type {PhilippineQRInput}
57
92
  * @memberof ProviderInput
58
93
  */
59
- philippineQR?: PhilippineQRInput;
94
+ philippineQR?: PhilippineQRInput | null;
60
95
  }
61
96
  /**
62
97
  * Check if a given object implements the ProviderInput interface.
@@ -20,8 +20,13 @@ exports.ProviderInputToJSON = ProviderInputToJSON;
20
20
  const PhilippineQRInput_1 = require("./PhilippineQRInput");
21
21
  const BangladeshNationalIdInput_1 = require("./BangladeshNationalIdInput");
22
22
  const AadhaarInput_1 = require("./AadhaarInput");
23
+ const KenyaNidInput_1 = require("./KenyaNidInput");
24
+ const NigeriaNinInput_1 = require("./NigeriaNinInput");
23
25
  const BrazilCpfCheckInput_1 = require("./BrazilCpfCheckInput");
26
+ const MexicoCurpInput_1 = require("./MexicoCurpInput");
24
27
  const BrazilDigitalCnhInput_1 = require("./BrazilDigitalCnhInput");
28
+ const IndonesiaNikInput_1 = require("./IndonesiaNikInput");
29
+ const SouthAfricaNidInput_1 = require("./SouthAfricaNidInput");
25
30
  const PhilippineMatchInput_1 = require("./PhilippineMatchInput");
26
31
  /**
27
32
  * Check if a given object implements the ProviderInput interface.
@@ -37,6 +42,11 @@ function ProviderInputFromJSONTyped(json, ignoreDiscriminator) {
37
42
  return json;
38
43
  }
39
44
  return {
45
+ 'indonesiaNik': json['indonesiaNik'] == null ? undefined : (0, IndonesiaNikInput_1.IndonesiaNikInputFromJSON)(json['indonesiaNik']),
46
+ 'mexicoCurp': json['mexicoCurp'] == null ? undefined : (0, MexicoCurpInput_1.MexicoCurpInputFromJSON)(json['mexicoCurp']),
47
+ 'southAfricaNid': json['southAfricaNid'] == null ? undefined : (0, SouthAfricaNidInput_1.SouthAfricaNidInputFromJSON)(json['southAfricaNid']),
48
+ 'kenyaNid': json['kenyaNid'] == null ? undefined : (0, KenyaNidInput_1.KenyaNidInputFromJSON)(json['kenyaNid']),
49
+ 'nigeriaNin': json['nigeriaNin'] == null ? undefined : (0, NigeriaNinInput_1.NigeriaNinInputFromJSON)(json['nigeriaNin']),
40
50
  'aadhaar': json['aadhaar'] == null ? undefined : (0, AadhaarInput_1.AadhaarInputFromJSON)(json['aadhaar']),
41
51
  'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined : (0, BangladeshNationalIdInput_1.BangladeshNationalIdInputFromJSON)(json['bangladeshNationalId']),
42
52
  'brazilCpfCheck': json['brazilCpfCheck'] == null ? undefined : (0, BrazilCpfCheckInput_1.BrazilCpfCheckInputFromJSON)(json['brazilCpfCheck']),
@@ -50,6 +60,11 @@ function ProviderInputToJSON(value) {
50
60
  return value;
51
61
  }
52
62
  return {
63
+ 'indonesiaNik': (0, IndonesiaNikInput_1.IndonesiaNikInputToJSON)(value['indonesiaNik']),
64
+ 'mexicoCurp': (0, MexicoCurpInput_1.MexicoCurpInputToJSON)(value['mexicoCurp']),
65
+ 'southAfricaNid': (0, SouthAfricaNidInput_1.SouthAfricaNidInputToJSON)(value['southAfricaNid']),
66
+ 'kenyaNid': (0, KenyaNidInput_1.KenyaNidInputToJSON)(value['kenyaNid']),
67
+ 'nigeriaNin': (0, NigeriaNinInput_1.NigeriaNinInputToJSON)(value['nigeriaNin']),
53
68
  'aadhaar': (0, AadhaarInput_1.AadhaarInputToJSON)(value['aadhaar']),
54
69
  'bangladeshNationalId': (0, BangladeshNationalIdInput_1.BangladeshNationalIdInputToJSON)(value['bangladeshNationalId']),
55
70
  'brazilCpfCheck': (0, BrazilCpfCheckInput_1.BrazilCpfCheckInputToJSON)(value['brazilCpfCheck']),
@@ -20,25 +20,31 @@ export interface RecommendRequest {
20
20
  * @type {string}
21
21
  * @memberof RecommendRequest
22
22
  */
23
- phoneNumber?: string;
23
+ phoneNumber?: string | null;
24
24
  /**
25
25
  * A list of countries, in alpha-2 ISO 3166 format, you wish to specify for the recommendation, this can include the user's country of residence, nationality, etc.
26
26
  * @type {Array<string>}
27
27
  * @memberof RecommendRequest
28
28
  */
29
- countries?: Array<string>;
29
+ countries?: Array<string> | null;
30
30
  /**
31
31
  * If one of the countries has subdivisions, for example the US states, you can specify a list of these to further refine the recommendation (e.g., CA, UT, NY)
32
32
  * @type {Array<string>}
33
33
  * @memberof RecommendRequest
34
34
  */
35
- subdivisions?: Array<string>;
35
+ subdivisions?: Array<string> | null;
36
+ /**
37
+ * Provide the IP addresses of the user you wish to generate a recommendation for. Will be used to look up the user's geographic location.
38
+ * @type {Array<string>}
39
+ * @memberof RecommendRequest
40
+ */
41
+ ipAddresses?: Array<string> | null;
36
42
  /**
37
43
  * If true, the recommendation will include providers that are disabled for the app
38
44
  * @type {boolean}
39
45
  * @memberof RecommendRequest
40
46
  */
41
- includeDisabledProviders?: boolean;
47
+ includeDisabledProviders?: boolean | null;
42
48
  }
43
49
  /**
44
50
  * Check if a given object implements the RecommendRequest interface.
@@ -34,6 +34,7 @@ function RecommendRequestFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
35
35
  'countries': json['countries'] == null ? undefined : json['countries'],
36
36
  'subdivisions': json['subdivisions'] == null ? undefined : json['subdivisions'],
37
+ 'ipAddresses': json['ipAddresses'] == null ? undefined : json['ipAddresses'],
37
38
  'includeDisabledProviders': json['includeDisabledProviders'] == null ? undefined : json['includeDisabledProviders'],
38
39
  };
39
40
  }
@@ -45,6 +46,7 @@ function RecommendRequestToJSON(value) {
45
46
  'phoneNumber': value['phoneNumber'],
46
47
  'countries': value['countries'],
47
48
  'subdivisions': value['subdivisions'],
49
+ 'ipAddresses': value['ipAddresses'],
48
50
  'includeDisabledProviders': value['includeDisabledProviders'],
49
51
  };
50
52
  }
@@ -20,7 +20,7 @@ export interface RefreshStepContentRequest {
20
20
  * @type {string}
21
21
  * @memberof RefreshStepContentRequest
22
22
  */
23
- resultsAccessKey?: string;
23
+ resultsAccessKey?: string | null;
24
24
  }
25
25
  /**
26
26
  * Check if a given object implements the RefreshStepContentRequest interface.
@@ -27,7 +27,7 @@ export interface ResultCollection {
27
27
  * @type {string}
28
28
  * @memberof ResultCollection
29
29
  */
30
- resultsAccessKey?: string;
30
+ resultsAccessKey?: string | null;
31
31
  }
32
32
  /**
33
33
  * Check if a given object implements the ResultCollection interface.
@@ -46,7 +46,7 @@ export interface Session {
46
46
  * @type {SessionErrorCode}
47
47
  * @memberof Session
48
48
  */
49
- errorCode?: SessionErrorCode;
49
+ errorCode?: SessionErrorCode | null;
50
50
  /**
51
51
  * The unix timestamp, in seconds, when this session was created
52
52
  * @type {number}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Trinsic API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SouthAfricaNidInput
16
+ */
17
+ export interface SouthAfricaNidInput {
18
+ /**
19
+ * The user's full name as it appears in their National ID
20
+ * @type {string}
21
+ * @memberof SouthAfricaNidInput
22
+ */
23
+ fullName: string;
24
+ /**
25
+ * The user's date of birth, in `YYYY-MM-DD` format
26
+ * @type {Date}
27
+ * @memberof SouthAfricaNidInput
28
+ */
29
+ dateOfBirth: Date;
30
+ /**
31
+ * The user's gender as it appears in their National ID (e.g., male, female)
32
+ * @type {string}
33
+ * @memberof SouthAfricaNidInput
34
+ */
35
+ gender: string;
36
+ /**
37
+ * The user's South African National ID number
38
+ * @type {string}
39
+ * @memberof SouthAfricaNidInput
40
+ */
41
+ nationalIdNumber: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the SouthAfricaNidInput interface.
45
+ */
46
+ export declare function instanceOfSouthAfricaNidInput(value: object): value is SouthAfricaNidInput;
47
+ export declare function SouthAfricaNidInputFromJSON(json: any): SouthAfricaNidInput;
48
+ export declare function SouthAfricaNidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SouthAfricaNidInput;
49
+ export declare function SouthAfricaNidInputToJSON(value?: SouthAfricaNidInput | null): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Trinsic API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSouthAfricaNidInput = instanceOfSouthAfricaNidInput;
17
+ exports.SouthAfricaNidInputFromJSON = SouthAfricaNidInputFromJSON;
18
+ exports.SouthAfricaNidInputFromJSONTyped = SouthAfricaNidInputFromJSONTyped;
19
+ exports.SouthAfricaNidInputToJSON = SouthAfricaNidInputToJSON;
20
+ /**
21
+ * Check if a given object implements the SouthAfricaNidInput interface.
22
+ */
23
+ function instanceOfSouthAfricaNidInput(value) {
24
+ if (!('fullName' in value) || value['fullName'] === undefined)
25
+ return false;
26
+ if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined)
27
+ return false;
28
+ if (!('gender' in value) || value['gender'] === undefined)
29
+ return false;
30
+ if (!('nationalIdNumber' in value) || value['nationalIdNumber'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function SouthAfricaNidInputFromJSON(json) {
35
+ return SouthAfricaNidInputFromJSONTyped(json, false);
36
+ }
37
+ function SouthAfricaNidInputFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'fullName': json['fullName'],
43
+ 'dateOfBirth': (new Date(json['dateOfBirth'])),
44
+ 'gender': json['gender'],
45
+ 'nationalIdNumber': json['nationalIdNumber'],
46
+ };
47
+ }
48
+ function SouthAfricaNidInputToJSON(value) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'fullName': value['fullName'],
54
+ 'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0, 10)),
55
+ 'gender': value['gender'],
56
+ 'nationalIdNumber': value['nationalIdNumber'],
57
+ };
58
+ }
@@ -21,14 +21,18 @@ export * from './GetSessionResultRequest';
21
21
  export * from './GetSessionResultResponse';
22
22
  export * from './HttpValidationProblemDetails';
23
23
  export * from './IdentityData';
24
+ export * from './IndonesiaNikInput';
24
25
  export * from './IntegrationCapability';
25
26
  export * from './IntegrationLaunchMethod';
26
27
  export * from './IntegrationStep';
28
+ export * from './KenyaNidInput';
27
29
  export * from './KnownAddress';
28
30
  export * from './KnownIdentityData';
29
31
  export * from './KnownPersonData';
30
32
  export * from './ListProvidersResponse';
31
33
  export * from './ListSessionsResponse';
34
+ export * from './MexicoCurpInput';
35
+ export * from './NigeriaNinInput';
32
36
  export * from './OrderDirection';
33
37
  export * from './PersonData';
34
38
  export * from './PhilippineMatchInput';
@@ -48,4 +52,5 @@ export * from './Session';
48
52
  export * from './SessionErrorCode';
49
53
  export * from './SessionOrdering';
50
54
  export * from './Sex';
55
+ export * from './SouthAfricaNidInput';
51
56
  export * from './StepRefreshInfo';
@@ -39,14 +39,18 @@ __exportStar(require("./GetSessionResultRequest"), exports);
39
39
  __exportStar(require("./GetSessionResultResponse"), exports);
40
40
  __exportStar(require("./HttpValidationProblemDetails"), exports);
41
41
  __exportStar(require("./IdentityData"), exports);
42
+ __exportStar(require("./IndonesiaNikInput"), exports);
42
43
  __exportStar(require("./IntegrationCapability"), exports);
43
44
  __exportStar(require("./IntegrationLaunchMethod"), exports);
44
45
  __exportStar(require("./IntegrationStep"), exports);
46
+ __exportStar(require("./KenyaNidInput"), exports);
45
47
  __exportStar(require("./KnownAddress"), exports);
46
48
  __exportStar(require("./KnownIdentityData"), exports);
47
49
  __exportStar(require("./KnownPersonData"), exports);
48
50
  __exportStar(require("./ListProvidersResponse"), exports);
49
51
  __exportStar(require("./ListSessionsResponse"), exports);
52
+ __exportStar(require("./MexicoCurpInput"), exports);
53
+ __exportStar(require("./NigeriaNinInput"), exports);
50
54
  __exportStar(require("./OrderDirection"), exports);
51
55
  __exportStar(require("./PersonData"), exports);
52
56
  __exportStar(require("./PhilippineMatchInput"), exports);
@@ -66,4 +70,5 @@ __exportStar(require("./Session"), exports);
66
70
  __exportStar(require("./SessionErrorCode"), exports);
67
71
  __exportStar(require("./SessionOrdering"), exports);
68
72
  __exportStar(require("./Sex"), exports);
73
+ __exportStar(require("./SouthAfricaNidInput"), exports);
69
74
  __exportStar(require("./StepRefreshInfo"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trinsic/api",
3
- "version": "2.0.0-alpha2",
3
+ "version": "2.0.0-alpha3",
4
4
  "description": "Trinsic API TypeScript library.",
5
5
  "author": "Trinsic",
6
6
  "repository": {