@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
@@ -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.
@@ -14,8 +14,13 @@
14
14
  import { PhilippineQRInputFromJSON, PhilippineQRInputToJSON, } from './PhilippineQRInput';
15
15
  import { BangladeshNationalIdInputFromJSON, BangladeshNationalIdInputToJSON, } from './BangladeshNationalIdInput';
16
16
  import { AadhaarInputFromJSON, AadhaarInputToJSON, } from './AadhaarInput';
17
+ import { KenyaNidInputFromJSON, KenyaNidInputToJSON, } from './KenyaNidInput';
18
+ import { NigeriaNinInputFromJSON, NigeriaNinInputToJSON, } from './NigeriaNinInput';
17
19
  import { BrazilCpfCheckInputFromJSON, BrazilCpfCheckInputToJSON, } from './BrazilCpfCheckInput';
20
+ import { MexicoCurpInputFromJSON, MexicoCurpInputToJSON, } from './MexicoCurpInput';
18
21
  import { BrazilDigitalCnhInputFromJSON, BrazilDigitalCnhInputToJSON, } from './BrazilDigitalCnhInput';
22
+ import { IndonesiaNikInputFromJSON, IndonesiaNikInputToJSON, } from './IndonesiaNikInput';
23
+ import { SouthAfricaNidInputFromJSON, SouthAfricaNidInputToJSON, } from './SouthAfricaNidInput';
19
24
  import { PhilippineMatchInputFromJSON, PhilippineMatchInputToJSON, } from './PhilippineMatchInput';
20
25
  /**
21
26
  * Check if a given object implements the ProviderInput interface.
@@ -31,6 +36,11 @@ export function ProviderInputFromJSONTyped(json, ignoreDiscriminator) {
31
36
  return json;
32
37
  }
33
38
  return {
39
+ 'indonesiaNik': json['indonesiaNik'] == null ? undefined : IndonesiaNikInputFromJSON(json['indonesiaNik']),
40
+ 'mexicoCurp': json['mexicoCurp'] == null ? undefined : MexicoCurpInputFromJSON(json['mexicoCurp']),
41
+ 'southAfricaNid': json['southAfricaNid'] == null ? undefined : SouthAfricaNidInputFromJSON(json['southAfricaNid']),
42
+ 'kenyaNid': json['kenyaNid'] == null ? undefined : KenyaNidInputFromJSON(json['kenyaNid']),
43
+ 'nigeriaNin': json['nigeriaNin'] == null ? undefined : NigeriaNinInputFromJSON(json['nigeriaNin']),
34
44
  'aadhaar': json['aadhaar'] == null ? undefined : AadhaarInputFromJSON(json['aadhaar']),
35
45
  'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined : BangladeshNationalIdInputFromJSON(json['bangladeshNationalId']),
36
46
  'brazilCpfCheck': json['brazilCpfCheck'] == null ? undefined : BrazilCpfCheckInputFromJSON(json['brazilCpfCheck']),
@@ -44,6 +54,11 @@ export function ProviderInputToJSON(value) {
44
54
  return value;
45
55
  }
46
56
  return {
57
+ 'indonesiaNik': IndonesiaNikInputToJSON(value['indonesiaNik']),
58
+ 'mexicoCurp': MexicoCurpInputToJSON(value['mexicoCurp']),
59
+ 'southAfricaNid': SouthAfricaNidInputToJSON(value['southAfricaNid']),
60
+ 'kenyaNid': KenyaNidInputToJSON(value['kenyaNid']),
61
+ 'nigeriaNin': NigeriaNinInputToJSON(value['nigeriaNin']),
47
62
  'aadhaar': AadhaarInputToJSON(value['aadhaar']),
48
63
  'bangladeshNationalId': BangladeshNationalIdInputToJSON(value['bangladeshNationalId']),
49
64
  'brazilCpfCheck': 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.
@@ -28,6 +28,7 @@ export function RecommendRequestFromJSONTyped(json, ignoreDiscriminator) {
28
28
  'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
29
29
  'countries': json['countries'] == null ? undefined : json['countries'],
30
30
  'subdivisions': json['subdivisions'] == null ? undefined : json['subdivisions'],
31
+ 'ipAddresses': json['ipAddresses'] == null ? undefined : json['ipAddresses'],
31
32
  'includeDisabledProviders': json['includeDisabledProviders'] == null ? undefined : json['includeDisabledProviders'],
32
33
  };
33
34
  }
@@ -39,6 +40,7 @@ export function RecommendRequestToJSON(value) {
39
40
  'phoneNumber': value['phoneNumber'],
40
41
  'countries': value['countries'],
41
42
  'subdivisions': value['subdivisions'],
43
+ 'ipAddresses': value['ipAddresses'],
42
44
  'includeDisabledProviders': value['includeDisabledProviders'],
43
45
  };
44
46
  }
@@ -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,52 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Trinsic API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the SouthAfricaNidInput interface.
16
+ */
17
+ export function instanceOfSouthAfricaNidInput(value) {
18
+ if (!('fullName' in value) || value['fullName'] === undefined)
19
+ return false;
20
+ if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined)
21
+ return false;
22
+ if (!('gender' in value) || value['gender'] === undefined)
23
+ return false;
24
+ if (!('nationalIdNumber' in value) || value['nationalIdNumber'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function SouthAfricaNidInputFromJSON(json) {
29
+ return SouthAfricaNidInputFromJSONTyped(json, false);
30
+ }
31
+ export function SouthAfricaNidInputFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'fullName': json['fullName'],
37
+ 'dateOfBirth': (new Date(json['dateOfBirth'])),
38
+ 'gender': json['gender'],
39
+ 'nationalIdNumber': json['nationalIdNumber'],
40
+ };
41
+ }
42
+ export function SouthAfricaNidInputToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'fullName': value['fullName'],
48
+ 'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0, 10)),
49
+ 'gender': value['gender'],
50
+ 'nationalIdNumber': value['nationalIdNumber'],
51
+ };
52
+ }
@@ -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';
@@ -23,14 +23,18 @@ export * from './GetSessionResultRequest';
23
23
  export * from './GetSessionResultResponse';
24
24
  export * from './HttpValidationProblemDetails';
25
25
  export * from './IdentityData';
26
+ export * from './IndonesiaNikInput';
26
27
  export * from './IntegrationCapability';
27
28
  export * from './IntegrationLaunchMethod';
28
29
  export * from './IntegrationStep';
30
+ export * from './KenyaNidInput';
29
31
  export * from './KnownAddress';
30
32
  export * from './KnownIdentityData';
31
33
  export * from './KnownPersonData';
32
34
  export * from './ListProvidersResponse';
33
35
  export * from './ListSessionsResponse';
36
+ export * from './MexicoCurpInput';
37
+ export * from './NigeriaNinInput';
34
38
  export * from './OrderDirection';
35
39
  export * from './PersonData';
36
40
  export * from './PhilippineMatchInput';
@@ -50,4 +54,5 @@ export * from './Session';
50
54
  export * from './SessionErrorCode';
51
55
  export * from './SessionOrdering';
52
56
  export * from './Sex';
57
+ export * from './SouthAfricaNidInput';
53
58
  export * from './StepRefreshInfo';
@@ -20,13 +20,13 @@ export interface AadhaarInput {
20
20
  * @type {string}
21
21
  * @memberof AadhaarInput
22
22
  */
23
- fullName?: string;
23
+ fullName?: string | null;
24
24
  /**
25
25
  * The user's date of birth, in `YYYY-MM-DD` format
26
26
  * @type {Date}
27
27
  * @memberof AadhaarInput
28
28
  */
29
- dateOfBirth?: Date;
29
+ dateOfBirth?: Date | null;
30
30
  }
31
31
  /**
32
32
  * Check if a given object implements the AadhaarInput interface.
@@ -41,6 +41,6 @@ function AadhaarInputToJSON(value) {
41
41
  }
42
42
  return {
43
43
  'fullName': value['fullName'],
44
- 'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth']).toISOString().substring(0, 10)),
44
+ 'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
45
45
  };
46
46
  }
@@ -20,49 +20,49 @@ export interface Address {
20
20
  * @type {string}
21
21
  * @memberof Address
22
22
  */
23
- line1?: string;
23
+ line1?: string | null;
24
24
  /**
25
25
  *
26
26
  * @type {string}
27
27
  * @memberof Address
28
28
  */
29
- line2?: string;
29
+ line2?: string | null;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
33
  * @memberof Address
34
34
  */
35
- line3?: string;
35
+ line3?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {string}
39
39
  * @memberof Address
40
40
  */
41
- city?: string;
41
+ city?: string | null;
42
42
  /**
43
43
  *
44
44
  * @type {string}
45
45
  * @memberof Address
46
46
  */
47
- subdivision?: string;
47
+ subdivision?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {string}
51
51
  * @memberof Address
52
52
  */
53
- postalCode?: string;
53
+ postalCode?: string | null;
54
54
  /**
55
55
  *
56
56
  * @type {string}
57
57
  * @memberof Address
58
58
  */
59
- country?: string;
59
+ country?: string | null;
60
60
  /**
61
61
  *
62
62
  * @type {string}
63
63
  * @memberof Address
64
64
  */
65
- fullAddress?: string;
65
+ fullAddress?: string | null;
66
66
  }
67
67
  /**
68
68
  * Check if a given object implements the Address interface.
@@ -21,25 +21,25 @@ export interface AttachmentAccessKeys {
21
21
  * @type {string}
22
22
  * @memberof AttachmentAccessKeys
23
23
  */
24
- selfie?: string;
24
+ selfie?: string | null;
25
25
  /**
26
26
  *
27
27
  * @type {string}
28
28
  * @memberof AttachmentAccessKeys
29
29
  */
30
- documentFront?: string;
30
+ documentFront?: string | null;
31
31
  /**
32
32
  *
33
33
  * @type {string}
34
34
  * @memberof AttachmentAccessKeys
35
35
  */
36
- documentBack?: string;
36
+ documentBack?: string | null;
37
37
  /**
38
38
  *
39
39
  * @type {string}
40
40
  * @memberof AttachmentAccessKeys
41
41
  */
42
- documentPortrait?: string;
42
+ documentPortrait?: string | null;
43
43
  /**
44
44
  *
45
45
  * @type {ProviderAttachments}
@@ -20,25 +20,25 @@ export interface BangladeshNationalIdInput {
20
20
  * @type {string}
21
21
  * @memberof BangladeshNationalIdInput
22
22
  */
23
- nationalIdNumber?: string;
23
+ nationalIdNumber?: string | null;
24
24
  /**
25
25
  * The user's date of birth, in `YYYY-MM-DD` format
26
26
  * @type {Date}
27
27
  * @memberof BangladeshNationalIdInput
28
28
  */
29
- dateOfBirth?: Date;
29
+ dateOfBirth?: Date | null;
30
30
  /**
31
31
  * The user's full name
32
32
  * @type {string}
33
33
  * @memberof BangladeshNationalIdInput
34
34
  */
35
- name?: string;
35
+ name?: string | null;
36
36
  /**
37
37
  * The base64-encoded bytes of the photo collected from the user
38
38
  * @type {string}
39
39
  * @memberof BangladeshNationalIdInput
40
40
  */
41
- photoBase64?: string;
41
+ photoBase64?: string | null;
42
42
  }
43
43
  /**
44
44
  * Check if a given object implements the BangladeshNationalIdInput interface.
@@ -43,7 +43,7 @@ function BangladeshNationalIdInputToJSON(value) {
43
43
  }
44
44
  return {
45
45
  'nationalIdNumber': value['nationalIdNumber'],
46
- 'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth']).toISOString().substring(0, 10)),
46
+ 'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
47
47
  'name': value['name'],
48
48
  'photoBase64': value['photoBase64'],
49
49
  };
@@ -32,7 +32,7 @@ export interface BrazilDigitalCnhInput {
32
32
  * @type {string}
33
33
  * @memberof BrazilDigitalCnhInput
34
34
  */
35
- digitalCnhFile?: string;
35
+ digitalCnhFile?: string | null;
36
36
  /**
37
37
  * The MIME Type of the file contained in `DigitalCnhFile`.
38
38
  *
@@ -40,13 +40,13 @@ export interface BrazilDigitalCnhInput {
40
40
  * @type {string}
41
41
  * @memberof BrazilDigitalCnhInput
42
42
  */
43
- digitalCnhFileContentType?: string;
43
+ digitalCnhFileContentType?: string | null;
44
44
  /**
45
45
  * The raw bytes of the image of the user's face, collected for biometric comparison.
46
46
  * @type {string}
47
47
  * @memberof BrazilDigitalCnhInput
48
48
  */
49
- facialBiometryPhoto?: string;
49
+ facialBiometryPhoto?: string | null;
50
50
  }
51
51
  /**
52
52
  * Check if a given object implements the BrazilDigitalCnhInput interface.
@@ -28,7 +28,7 @@ export interface CreateAdvancedProviderSessionRequest {
28
28
  * @type {ProviderInput}
29
29
  * @memberof CreateAdvancedProviderSessionRequest
30
30
  */
31
- providerInput?: ProviderInput;
31
+ providerInput?: ProviderInput | null;
32
32
  /**
33
33
  * The Redirect URL to which the user should be sent after the session is complete.
34
34
  *
@@ -36,7 +36,7 @@ export interface CreateAdvancedProviderSessionRequest {
36
36
  * @type {string}
37
37
  * @memberof CreateAdvancedProviderSessionRequest
38
38
  */
39
- redirectUrl?: string;
39
+ redirectUrl?: string | null;
40
40
  /**
41
41
  * The list of capabilities your integration supports. Capabilities are the core of Trinsic's whitelabel-with-optional-fallback offering.
42
42
  *
@@ -72,7 +72,7 @@ export interface CreateAdvancedProviderSessionRequest {
72
72
  * @type {boolean}
73
73
  * @memberof CreateAdvancedProviderSessionRequest
74
74
  */
75
- fallbackToHostedUI?: boolean;
75
+ fallbackToHostedUI?: boolean | null;
76
76
  }
77
77
  /**
78
78
  * Check if a given object implements the CreateAdvancedProviderSessionRequest interface.
@@ -33,7 +33,7 @@ export interface CreateHostedProviderSessionRequest {
33
33
  * @type {ProviderInput}
34
34
  * @memberof CreateHostedProviderSessionRequest
35
35
  */
36
- providerInput?: ProviderInput;
36
+ providerInput?: ProviderInput | null;
37
37
  }
38
38
  /**
39
39
  * Check if a given object implements the CreateHostedProviderSessionRequest interface.
@@ -32,7 +32,7 @@ export interface CreateHostedProviderSessionResponse {
32
32
  * @type {string}
33
33
  * @memberof CreateHostedProviderSessionResponse
34
34
  */
35
- launchUrl?: string;
35
+ launchUrl?: string | null;
36
36
  }
37
37
  /**
38
38
  * Check if a given object implements the CreateHostedProviderSessionResponse interface.
@@ -24,13 +24,13 @@ export interface CreateWidgetSessionRequest {
24
24
  * @type {string}
25
25
  * @memberof CreateWidgetSessionRequest
26
26
  */
27
- redirectUrl?: string;
27
+ redirectUrl?: string | null;
28
28
  /**
29
29
  * The list of allowed identity providers. If not specified, all available providers will be allowed.
30
30
  * @type {Array<string>}
31
31
  * @memberof CreateWidgetSessionRequest
32
32
  */
33
- providers?: Array<string>;
33
+ providers?: Array<string> | null;
34
34
  /**
35
35
  * Known identity data of an individual being verified.
36
36
  *
@@ -38,7 +38,7 @@ export interface CreateWidgetSessionRequest {
38
38
  * @type {KnownIdentityData}
39
39
  * @memberof CreateWidgetSessionRequest
40
40
  */
41
- knownIdentityData?: KnownIdentityData;
41
+ knownIdentityData?: KnownIdentityData | null;
42
42
  }
43
43
  /**
44
44
  * Check if a given object implements the CreateWidgetSessionRequest interface.
@@ -30,7 +30,7 @@ export interface CreateWidgetSessionResponse {
30
30
  * @type {string}
31
31
  * @memberof CreateWidgetSessionResponse
32
32
  */
33
- launchUrl?: string;
33
+ launchUrl?: string | null;
34
34
  }
35
35
  /**
36
36
  * Check if a given object implements the CreateWidgetSessionResponse interface.