@trinsic/api 2.0.0-alpha2 → 2.0.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.
Files changed (235) hide show
  1. package/.openapi-generator/FILES +16 -3
  2. package/dist/apis/AttachmentsApi.d.ts +4 -4
  3. package/dist/apis/AttachmentsApi.js +2 -2
  4. package/dist/apis/NetworkApi.d.ts +32 -9
  5. package/dist/apis/NetworkApi.js +38 -4
  6. package/dist/apis/SessionsApi.d.ts +8 -8
  7. package/dist/apis/SessionsApi.js +4 -4
  8. package/dist/esm/apis/AttachmentsApi.d.ts +4 -4
  9. package/dist/esm/apis/AttachmentsApi.js +2 -2
  10. package/dist/esm/apis/NetworkApi.d.ts +32 -9
  11. package/dist/esm/apis/NetworkApi.js +39 -5
  12. package/dist/esm/apis/SessionsApi.d.ts +8 -8
  13. package/dist/esm/apis/SessionsApi.js +4 -4
  14. package/dist/esm/models/AadhaarInput.d.ts +2 -2
  15. package/dist/esm/models/AadhaarInput.js +1 -1
  16. package/dist/esm/models/Address.d.ts +8 -8
  17. package/dist/esm/models/AttachmentAccessKeys.d.ts +4 -4
  18. package/dist/esm/models/BangladeshNationalIdInput.d.ts +4 -4
  19. package/dist/esm/models/BangladeshNationalIdInput.js +1 -1
  20. package/dist/esm/models/BrazilDigitalCnhInput.d.ts +3 -3
  21. package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +3 -3
  22. package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +1 -1
  23. package/dist/esm/models/CreateHostedProviderSessionResponse.d.ts +13 -1
  24. package/dist/esm/models/CreateHostedProviderSessionResponse.js +7 -1
  25. package/dist/esm/models/CreateWidgetSessionRequest.d.ts +8 -7
  26. package/dist/esm/models/CreateWidgetSessionRequest.js +3 -3
  27. package/dist/esm/models/CreateWidgetSessionResponse.d.ts +13 -1
  28. package/dist/esm/models/CreateWidgetSessionResponse.js +7 -1
  29. package/dist/esm/models/DocumentData.d.ts +6 -6
  30. package/dist/esm/models/DocumentData.js +2 -2
  31. package/dist/esm/models/DocumentScanAttachments.d.ts +1 -1
  32. package/dist/esm/models/GetSessionResultResponse.d.ts +1 -1
  33. package/dist/esm/models/HttpValidationProblemDetails.d.ts +5 -5
  34. package/dist/esm/models/IdentityData.d.ts +10 -4
  35. package/dist/esm/models/IdentityData.js +2 -0
  36. package/dist/esm/models/IdinInput.d.ts +33 -0
  37. package/dist/esm/models/IdinInput.js +38 -0
  38. package/dist/esm/models/IndonesiaNikInput.d.ts +43 -0
  39. package/dist/esm/models/IndonesiaNikInput.js +48 -0
  40. package/dist/esm/models/IntegrationLaunchMethod.d.ts +1 -1
  41. package/dist/esm/models/IntegrationLaunchMethod.js +1 -1
  42. package/dist/esm/models/IntegrationStep.d.ts +1 -1
  43. package/dist/esm/models/KenyaNidInput.d.ts +61 -0
  44. package/dist/esm/models/KenyaNidInput.js +58 -0
  45. package/dist/esm/models/Language.d.ts +26 -0
  46. package/dist/esm/models/Language.js +42 -0
  47. package/dist/esm/models/ListProviderContractsResponse.d.ts +32 -0
  48. package/dist/esm/models/ListProviderContractsResponse.js +41 -0
  49. package/dist/esm/models/MexicoCurpInput.d.ts +31 -0
  50. package/dist/esm/models/MexicoCurpInput.js +40 -0
  51. package/dist/esm/models/MobileIdInput.d.ts +44 -0
  52. package/dist/esm/models/MobileIdInput.js +43 -0
  53. package/dist/esm/models/NigeriaNinInput.d.ts +67 -0
  54. package/dist/esm/models/NigeriaNinInput.js +58 -0
  55. package/dist/esm/models/PersonData.d.ts +10 -10
  56. package/dist/esm/models/PersonData.js +1 -1
  57. package/dist/esm/models/PhilippineMatchInput.d.ts +5 -5
  58. package/dist/esm/models/PhilippineMatchInput.js +1 -1
  59. package/dist/esm/models/PhilippineQRInput.d.ts +2 -2
  60. package/dist/esm/models/ProblemDetails.d.ts +5 -5
  61. package/dist/esm/models/ProviderAttachments.d.ts +1 -1
  62. package/dist/esm/models/ProviderContract.d.ts +146 -0
  63. package/dist/esm/models/ProviderContract.js +97 -0
  64. package/dist/esm/models/ProviderInfo.d.ts +0 -6
  65. package/dist/esm/models/ProviderInfo.js +0 -2
  66. package/dist/esm/models/ProviderInformation.d.ts +4 -4
  67. package/dist/esm/models/ProviderInformation.js +1 -5
  68. package/dist/esm/models/ProviderInput.d.ts +95 -14
  69. package/dist/esm/models/ProviderInput.js +35 -2
  70. package/dist/esm/models/RecommendRequest.d.ts +4 -21
  71. package/dist/esm/models/RecommendRequest.js +3 -8
  72. package/dist/esm/models/RecommendationInfo.d.ts +55 -0
  73. package/dist/esm/models/RecommendationInfo.js +44 -0
  74. package/dist/esm/models/RefreshStepContentRequest.d.ts +1 -1
  75. package/dist/esm/models/ResultCollection.d.ts +8 -2
  76. package/dist/esm/models/ResultCollection.js +3 -1
  77. package/dist/esm/models/Session.d.ts +1 -1
  78. package/dist/esm/models/SmartIdInput.d.ts +31 -0
  79. package/dist/esm/models/SmartIdInput.js +38 -0
  80. package/dist/esm/models/SouthAfricaNidInput.d.ts +49 -0
  81. package/dist/esm/models/SouthAfricaNidInput.js +52 -0
  82. package/dist/esm/models/SpidInput.d.ts +33 -0
  83. package/dist/esm/models/SpidInput.js +38 -0
  84. package/dist/esm/models/SubProviderMetadata.d.ts +54 -0
  85. package/dist/esm/models/SubProviderMetadata.js +52 -0
  86. package/dist/esm/models/TrinsicTestDatabaseLookupInput.d.ts +66 -0
  87. package/dist/esm/models/TrinsicTestDatabaseLookupInput.js +44 -0
  88. package/dist/esm/models/TrinsicTestSubProvidersInput.d.ts +35 -0
  89. package/dist/esm/models/TrinsicTestSubProvidersInput.js +38 -0
  90. package/dist/esm/models/index.d.ts +16 -3
  91. package/dist/esm/models/index.js +16 -3
  92. package/dist/models/AadhaarInput.d.ts +2 -2
  93. package/dist/models/AadhaarInput.js +1 -1
  94. package/dist/models/Address.d.ts +8 -8
  95. package/dist/models/AttachmentAccessKeys.d.ts +4 -4
  96. package/dist/models/BangladeshNationalIdInput.d.ts +4 -4
  97. package/dist/models/BangladeshNationalIdInput.js +1 -1
  98. package/dist/models/BrazilDigitalCnhInput.d.ts +3 -3
  99. package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +3 -3
  100. package/dist/models/CreateHostedProviderSessionRequest.d.ts +1 -1
  101. package/dist/models/CreateHostedProviderSessionResponse.d.ts +13 -1
  102. package/dist/models/CreateHostedProviderSessionResponse.js +7 -1
  103. package/dist/models/CreateWidgetSessionRequest.d.ts +8 -7
  104. package/dist/models/CreateWidgetSessionRequest.js +3 -3
  105. package/dist/models/CreateWidgetSessionResponse.d.ts +13 -1
  106. package/dist/models/CreateWidgetSessionResponse.js +7 -1
  107. package/dist/models/DocumentData.d.ts +6 -6
  108. package/dist/models/DocumentData.js +2 -2
  109. package/dist/models/DocumentScanAttachments.d.ts +1 -1
  110. package/dist/models/GetSessionResultResponse.d.ts +1 -1
  111. package/dist/models/HttpValidationProblemDetails.d.ts +5 -5
  112. package/dist/models/IdentityData.d.ts +10 -4
  113. package/dist/models/IdentityData.js +2 -0
  114. package/dist/models/IdinInput.d.ts +33 -0
  115. package/dist/models/IdinInput.js +44 -0
  116. package/dist/models/IndonesiaNikInput.d.ts +43 -0
  117. package/dist/models/IndonesiaNikInput.js +54 -0
  118. package/dist/models/IntegrationLaunchMethod.d.ts +1 -1
  119. package/dist/models/IntegrationLaunchMethod.js +1 -1
  120. package/dist/models/IntegrationStep.d.ts +1 -1
  121. package/dist/models/KenyaNidInput.d.ts +61 -0
  122. package/dist/models/KenyaNidInput.js +64 -0
  123. package/dist/models/Language.d.ts +26 -0
  124. package/dist/models/Language.js +49 -0
  125. package/dist/models/ListProviderContractsResponse.d.ts +32 -0
  126. package/dist/models/ListProviderContractsResponse.js +47 -0
  127. package/dist/models/MexicoCurpInput.d.ts +31 -0
  128. package/dist/models/MexicoCurpInput.js +46 -0
  129. package/dist/models/MobileIdInput.d.ts +44 -0
  130. package/dist/models/MobileIdInput.js +49 -0
  131. package/dist/models/NigeriaNinInput.d.ts +67 -0
  132. package/dist/models/NigeriaNinInput.js +64 -0
  133. package/dist/models/PersonData.d.ts +10 -10
  134. package/dist/models/PersonData.js +1 -1
  135. package/dist/models/PhilippineMatchInput.d.ts +5 -5
  136. package/dist/models/PhilippineMatchInput.js +1 -1
  137. package/dist/models/PhilippineQRInput.d.ts +2 -2
  138. package/dist/models/ProblemDetails.d.ts +5 -5
  139. package/dist/models/ProviderAttachments.d.ts +1 -1
  140. package/dist/models/ProviderContract.d.ts +146 -0
  141. package/dist/models/ProviderContract.js +103 -0
  142. package/dist/models/ProviderInfo.d.ts +0 -6
  143. package/dist/models/ProviderInfo.js +0 -2
  144. package/dist/models/ProviderInformation.d.ts +4 -4
  145. package/dist/models/ProviderInformation.js +1 -5
  146. package/dist/models/ProviderInput.d.ts +95 -14
  147. package/dist/models/ProviderInput.js +35 -2
  148. package/dist/models/RecommendRequest.d.ts +4 -21
  149. package/dist/models/RecommendRequest.js +3 -8
  150. package/dist/models/RecommendationInfo.d.ts +55 -0
  151. package/dist/models/RecommendationInfo.js +50 -0
  152. package/dist/models/RefreshStepContentRequest.d.ts +1 -1
  153. package/dist/models/ResultCollection.d.ts +8 -2
  154. package/dist/models/ResultCollection.js +3 -1
  155. package/dist/models/Session.d.ts +1 -1
  156. package/dist/models/SmartIdInput.d.ts +31 -0
  157. package/dist/models/SmartIdInput.js +44 -0
  158. package/dist/models/SouthAfricaNidInput.d.ts +49 -0
  159. package/dist/models/SouthAfricaNidInput.js +58 -0
  160. package/dist/models/SpidInput.d.ts +33 -0
  161. package/dist/models/SpidInput.js +44 -0
  162. package/dist/models/SubProviderMetadata.d.ts +54 -0
  163. package/dist/models/SubProviderMetadata.js +58 -0
  164. package/dist/models/TrinsicTestDatabaseLookupInput.d.ts +66 -0
  165. package/dist/models/TrinsicTestDatabaseLookupInput.js +50 -0
  166. package/dist/models/TrinsicTestSubProvidersInput.d.ts +35 -0
  167. package/dist/models/TrinsicTestSubProvidersInput.js +44 -0
  168. package/dist/models/index.d.ts +16 -3
  169. package/dist/models/index.js +16 -3
  170. package/package.json +1 -1
  171. package/src/apis/AttachmentsApi.ts +4 -4
  172. package/src/apis/NetworkApi.ts +62 -8
  173. package/src/apis/SessionsApi.ts +8 -8
  174. package/src/models/AadhaarInput.ts +3 -3
  175. package/src/models/Address.ts +8 -8
  176. package/src/models/AttachmentAccessKeys.ts +4 -4
  177. package/src/models/BangladeshNationalIdInput.ts +5 -5
  178. package/src/models/BrazilDigitalCnhInput.ts +11 -11
  179. package/src/models/CreateAdvancedProviderSessionRequest.ts +29 -29
  180. package/src/models/CreateHostedProviderSessionRequest.ts +1 -1
  181. package/src/models/CreateHostedProviderSessionResponse.ts +24 -8
  182. package/src/models/CreateWidgetSessionRequest.ts +18 -17
  183. package/src/models/CreateWidgetSessionResponse.ts +22 -6
  184. package/src/models/DocumentData.ts +8 -8
  185. package/src/models/DocumentScanAttachments.ts +1 -1
  186. package/src/models/GetSessionResultResponse.ts +1 -1
  187. package/src/models/HttpValidationProblemDetails.ts +5 -5
  188. package/src/models/IdentityData.ts +12 -4
  189. package/src/models/IdinInput.ts +62 -0
  190. package/src/models/IndonesiaNikInput.ts +79 -0
  191. package/src/models/IntegrationLaunchMethod.ts +1 -1
  192. package/src/models/IntegrationStep.ts +1 -1
  193. package/src/models/KenyaNidInput.ts +105 -0
  194. package/src/models/Language.ts +51 -0
  195. package/src/models/ListProviderContractsResponse.ts +68 -0
  196. package/src/models/MexicoCurpInput.ts +61 -0
  197. package/src/models/MobileIdInput.ts +85 -0
  198. package/src/models/NigeriaNinInput.ts +112 -0
  199. package/src/models/PersonData.ts +11 -11
  200. package/src/models/PhilippineMatchInput.ts +6 -6
  201. package/src/models/PhilippineQRInput.ts +2 -2
  202. package/src/models/ProblemDetails.ts +5 -5
  203. package/src/models/ProviderAttachments.ts +1 -1
  204. package/src/models/ProviderContract.ts +235 -0
  205. package/src/models/ProviderInfo.ts +0 -8
  206. package/src/models/ProviderInformation.ts +4 -7
  207. package/src/models/ProviderInput.ts +182 -24
  208. package/src/models/RecommendRequest.ts +12 -29
  209. package/src/models/RecommendationInfo.ts +90 -0
  210. package/src/models/RefreshStepContentRequest.ts +1 -1
  211. package/src/models/ResultCollection.ts +10 -3
  212. package/src/models/Session.ts +8 -8
  213. package/src/models/SmartIdInput.ts +60 -0
  214. package/src/models/SouthAfricaNidInput.ts +88 -0
  215. package/src/models/SpidInput.ts +62 -0
  216. package/src/models/StepRefreshInfo.ts +2 -2
  217. package/src/models/SubProviderMetadata.ts +93 -0
  218. package/src/models/TrinsicTestDatabaseLookupInput.ts +101 -0
  219. package/src/models/TrinsicTestSubProvidersInput.ts +64 -0
  220. package/src/models/index.ts +16 -3
  221. package/dist/esm/models/KnownAddress.d.ts +0 -74
  222. package/dist/esm/models/KnownAddress.js +0 -52
  223. package/dist/esm/models/KnownIdentityData.d.ts +0 -34
  224. package/dist/esm/models/KnownIdentityData.js +0 -39
  225. package/dist/esm/models/KnownPersonData.d.ts +0 -74
  226. package/dist/esm/models/KnownPersonData.js +0 -53
  227. package/dist/models/KnownAddress.d.ts +0 -74
  228. package/dist/models/KnownAddress.js +0 -58
  229. package/dist/models/KnownIdentityData.d.ts +0 -34
  230. package/dist/models/KnownIdentityData.js +0 -45
  231. package/dist/models/KnownPersonData.d.ts +0 -74
  232. package/dist/models/KnownPersonData.js +0 -59
  233. package/src/models/KnownAddress.ts +0 -117
  234. package/src/models/KnownIdentityData.ts +0 -69
  235. package/src/models/KnownPersonData.ts +0 -123
@@ -0,0 +1,44 @@
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.instanceOfTrinsicTestSubProvidersInput = instanceOfTrinsicTestSubProvidersInput;
17
+ exports.TrinsicTestSubProvidersInputFromJSON = TrinsicTestSubProvidersInputFromJSON;
18
+ exports.TrinsicTestSubProvidersInputFromJSONTyped = TrinsicTestSubProvidersInputFromJSONTyped;
19
+ exports.TrinsicTestSubProvidersInputToJSON = TrinsicTestSubProvidersInputToJSON;
20
+ /**
21
+ * Check if a given object implements the TrinsicTestSubProvidersInput interface.
22
+ */
23
+ function instanceOfTrinsicTestSubProvidersInput(value) {
24
+ return true;
25
+ }
26
+ function TrinsicTestSubProvidersInputFromJSON(json) {
27
+ return TrinsicTestSubProvidersInputFromJSONTyped(json, false);
28
+ }
29
+ function TrinsicTestSubProvidersInputFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'subProviderId': json['subProviderId'] == null ? undefined : json['subProviderId'],
35
+ };
36
+ }
37
+ function TrinsicTestSubProvidersInputToJSON(value) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'subProviderId': value['subProviderId'],
43
+ };
44
+ }
@@ -21,25 +21,32 @@ export * from './GetSessionResultRequest';
21
21
  export * from './GetSessionResultResponse';
22
22
  export * from './HttpValidationProblemDetails';
23
23
  export * from './IdentityData';
24
+ export * from './IdinInput';
25
+ export * from './IndonesiaNikInput';
24
26
  export * from './IntegrationCapability';
25
27
  export * from './IntegrationLaunchMethod';
26
28
  export * from './IntegrationStep';
27
- export * from './KnownAddress';
28
- export * from './KnownIdentityData';
29
- export * from './KnownPersonData';
29
+ export * from './KenyaNidInput';
30
+ export * from './Language';
31
+ export * from './ListProviderContractsResponse';
30
32
  export * from './ListProvidersResponse';
31
33
  export * from './ListSessionsResponse';
34
+ export * from './MexicoCurpInput';
35
+ export * from './MobileIdInput';
36
+ export * from './NigeriaNinInput';
32
37
  export * from './OrderDirection';
33
38
  export * from './PersonData';
34
39
  export * from './PhilippineMatchInput';
35
40
  export * from './PhilippineQRInput';
36
41
  export * from './ProblemDetails';
37
42
  export * from './ProviderAttachments';
43
+ export * from './ProviderContract';
38
44
  export * from './ProviderInfo';
39
45
  export * from './ProviderInformation';
40
46
  export * from './ProviderInput';
41
47
  export * from './RecommendRequest';
42
48
  export * from './RecommendResponse';
49
+ export * from './RecommendationInfo';
43
50
  export * from './RefreshStepContentRequest';
44
51
  export * from './RefreshStepContentResponse';
45
52
  export * from './ResultCollection';
@@ -48,4 +55,10 @@ export * from './Session';
48
55
  export * from './SessionErrorCode';
49
56
  export * from './SessionOrdering';
50
57
  export * from './Sex';
58
+ export * from './SmartIdInput';
59
+ export * from './SouthAfricaNidInput';
60
+ export * from './SpidInput';
51
61
  export * from './StepRefreshInfo';
62
+ export * from './SubProviderMetadata';
63
+ export * from './TrinsicTestDatabaseLookupInput';
64
+ export * from './TrinsicTestSubProvidersInput';
@@ -39,25 +39,32 @@ __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("./IdinInput"), exports);
43
+ __exportStar(require("./IndonesiaNikInput"), exports);
42
44
  __exportStar(require("./IntegrationCapability"), exports);
43
45
  __exportStar(require("./IntegrationLaunchMethod"), exports);
44
46
  __exportStar(require("./IntegrationStep"), exports);
45
- __exportStar(require("./KnownAddress"), exports);
46
- __exportStar(require("./KnownIdentityData"), exports);
47
- __exportStar(require("./KnownPersonData"), exports);
47
+ __exportStar(require("./KenyaNidInput"), exports);
48
+ __exportStar(require("./Language"), exports);
49
+ __exportStar(require("./ListProviderContractsResponse"), exports);
48
50
  __exportStar(require("./ListProvidersResponse"), exports);
49
51
  __exportStar(require("./ListSessionsResponse"), exports);
52
+ __exportStar(require("./MexicoCurpInput"), exports);
53
+ __exportStar(require("./MobileIdInput"), exports);
54
+ __exportStar(require("./NigeriaNinInput"), exports);
50
55
  __exportStar(require("./OrderDirection"), exports);
51
56
  __exportStar(require("./PersonData"), exports);
52
57
  __exportStar(require("./PhilippineMatchInput"), exports);
53
58
  __exportStar(require("./PhilippineQRInput"), exports);
54
59
  __exportStar(require("./ProblemDetails"), exports);
55
60
  __exportStar(require("./ProviderAttachments"), exports);
61
+ __exportStar(require("./ProviderContract"), exports);
56
62
  __exportStar(require("./ProviderInfo"), exports);
57
63
  __exportStar(require("./ProviderInformation"), exports);
58
64
  __exportStar(require("./ProviderInput"), exports);
59
65
  __exportStar(require("./RecommendRequest"), exports);
60
66
  __exportStar(require("./RecommendResponse"), exports);
67
+ __exportStar(require("./RecommendationInfo"), exports);
61
68
  __exportStar(require("./RefreshStepContentRequest"), exports);
62
69
  __exportStar(require("./RefreshStepContentResponse"), exports);
63
70
  __exportStar(require("./ResultCollection"), exports);
@@ -66,4 +73,10 @@ __exportStar(require("./Session"), exports);
66
73
  __exportStar(require("./SessionErrorCode"), exports);
67
74
  __exportStar(require("./SessionOrdering"), exports);
68
75
  __exportStar(require("./Sex"), exports);
76
+ __exportStar(require("./SmartIdInput"), exports);
77
+ __exportStar(require("./SouthAfricaNidInput"), exports);
78
+ __exportStar(require("./SpidInput"), exports);
69
79
  __exportStar(require("./StepRefreshInfo"), exports);
80
+ __exportStar(require("./SubProviderMetadata"), exports);
81
+ __exportStar(require("./TrinsicTestDatabaseLookupInput"), exports);
82
+ __exportStar(require("./TrinsicTestSubProvidersInput"), 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",
4
4
  "description": "Trinsic API TypeScript library.",
5
5
  "author": "Trinsic",
6
6
  "repository": {
@@ -40,7 +40,7 @@ export interface GetAttachmentOperationRequest {
40
40
  */
41
41
  export interface AttachmentsApiInterface {
42
42
  /**
43
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
43
+ * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
44
44
  * @summary Get Attachment
45
45
  * @param {GetAttachmentRequest} [getAttachmentRequest]
46
46
  * @param {*} [options] Override http request option.
@@ -50,7 +50,7 @@ export interface AttachmentsApiInterface {
50
50
  getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>>;
51
51
 
52
52
  /**
53
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
53
+ * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
54
54
  * Get Attachment
55
55
  */
56
56
  getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse>;
@@ -63,7 +63,7 @@ export interface AttachmentsApiInterface {
63
63
  export class AttachmentsApi extends runtime.BaseAPI implements AttachmentsApiInterface {
64
64
 
65
65
  /**
66
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
66
+ * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
67
67
  * Get Attachment
68
68
  */
69
69
  async getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>> {
@@ -93,7 +93,7 @@ export class AttachmentsApi extends runtime.BaseAPI implements AttachmentsApiInt
93
93
  }
94
94
 
95
95
  /**
96
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
96
+ * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
97
97
  * Get Attachment
98
98
  */
99
99
  async getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse> {
@@ -15,12 +15,15 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ ListProviderContractsResponse,
18
19
  ListProvidersResponse,
19
20
  ProblemDetails,
20
21
  RecommendRequest,
21
22
  RecommendResponse,
22
23
  } from '../models/index';
23
24
  import {
25
+ ListProviderContractsResponseFromJSON,
26
+ ListProviderContractsResponseToJSON,
24
27
  ListProvidersResponseFromJSON,
25
28
  ListProvidersResponseToJSON,
26
29
  ProblemDetailsFromJSON,
@@ -42,9 +45,24 @@ export interface RecommendProvidersRequest {
42
45
  * @interface NetworkApiInterface
43
46
  */
44
47
  export interface NetworkApiInterface {
48
+ /**
49
+ * List the contracts for all Providers available to your App. If your App is in test mode, this call will only return Providers available in test mode. If your App is not in test mode, this call will only return Providers available in production.
50
+ * @summary List Provider Contracts
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ * @memberof NetworkApiInterface
54
+ */
55
+ listProviderContractsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProviderContractsResponse>>;
56
+
57
+ /**
58
+ * List the contracts for all Providers available to your App. If your App is in test mode, this call will only return Providers available in test mode. If your App is not in test mode, this call will only return Providers available in production.
59
+ * List Provider Contracts
60
+ */
61
+ listProviderContracts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProviderContractsResponse>;
62
+
45
63
  /**
46
64
  * List all identity providers available for use
47
- * @summary List Identity Providers
65
+ * @summary List Providers
48
66
  * @param {*} [options] Override http request option.
49
67
  * @throws {RequiredError}
50
68
  * @memberof NetworkApiInterface
@@ -53,12 +71,12 @@ export interface NetworkApiInterface {
53
71
 
54
72
  /**
55
73
  * List all identity providers available for use
56
- * List Identity Providers
74
+ * List Providers
57
75
  */
58
76
  listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
59
77
 
60
78
  /**
61
- * Generate provider recommendations based on the given signals (phone number, countries, states). This is an experimental feature and may not be accurate
79
+ * Generate provider recommendations based on the given signals (phone number, countries, states).
62
80
  * @summary Recommend Providers
63
81
  * @param {RecommendRequest} [recommendRequest]
64
82
  * @param {*} [options] Override http request option.
@@ -68,7 +86,7 @@ export interface NetworkApiInterface {
68
86
  recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>>;
69
87
 
70
88
  /**
71
- * Generate provider recommendations based on the given signals (phone number, countries, states). This is an experimental feature and may not be accurate
89
+ * Generate provider recommendations based on the given signals (phone number, countries, states).
72
90
  * Recommend Providers
73
91
  */
74
92
  recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse>;
@@ -80,9 +98,45 @@ export interface NetworkApiInterface {
80
98
  */
81
99
  export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
82
100
 
101
+ /**
102
+ * List the contracts for all Providers available to your App. If your App is in test mode, this call will only return Providers available in test mode. If your App is not in test mode, this call will only return Providers available in production.
103
+ * List Provider Contracts
104
+ */
105
+ async listProviderContractsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProviderContractsResponse>> {
106
+ const queryParameters: any = {};
107
+
108
+ const headerParameters: runtime.HTTPHeaders = {};
109
+
110
+ if (this.configuration && this.configuration.accessToken) {
111
+ const token = this.configuration.accessToken;
112
+ const tokenString = await token("Bearer", []);
113
+
114
+ if (tokenString) {
115
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
116
+ }
117
+ }
118
+ const response = await this.request({
119
+ path: `/api/v1/network/providers/contracts`,
120
+ method: 'GET',
121
+ headers: headerParameters,
122
+ query: queryParameters,
123
+ }, initOverrides);
124
+
125
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListProviderContractsResponseFromJSON(jsonValue));
126
+ }
127
+
128
+ /**
129
+ * List the contracts for all Providers available to your App. If your App is in test mode, this call will only return Providers available in test mode. If your App is not in test mode, this call will only return Providers available in production.
130
+ * List Provider Contracts
131
+ */
132
+ async listProviderContracts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProviderContractsResponse> {
133
+ const response = await this.listProviderContractsRaw(initOverrides);
134
+ return await response.value();
135
+ }
136
+
83
137
  /**
84
138
  * List all identity providers available for use
85
- * List Identity Providers
139
+ * List Providers
86
140
  */
87
141
  async listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>> {
88
142
  const queryParameters: any = {};
@@ -109,7 +163,7 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
109
163
 
110
164
  /**
111
165
  * List all identity providers available for use
112
- * List Identity Providers
166
+ * List Providers
113
167
  */
114
168
  async listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse> {
115
169
  const response = await this.listProvidersRaw(initOverrides);
@@ -117,7 +171,7 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
117
171
  }
118
172
 
119
173
  /**
120
- * Generate provider recommendations based on the given signals (phone number, countries, states). This is an experimental feature and may not be accurate
174
+ * Generate provider recommendations based on the given signals (phone number, countries, states).
121
175
  * Recommend Providers
122
176
  */
123
177
  async recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>> {
@@ -147,7 +201,7 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
147
201
  }
148
202
 
149
203
  /**
150
- * Generate provider recommendations based on the given signals (phone number, countries, states). This is an experimental feature and may not be accurate
204
+ * Generate provider recommendations based on the given signals (phone number, countries, states).
151
205
  * Recommend Providers
152
206
  */
153
207
  async recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse> {
@@ -132,7 +132,7 @@ export interface SessionsApiInterface {
132
132
  cancelSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CancelSessionResponse>;
133
133
 
134
134
  /**
135
- * Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
135
+ * Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
136
136
  * @summary Create Advanced Provider Session
137
137
  * @param {CreateAdvancedProviderSessionRequest} [createAdvancedProviderSessionRequest]
138
138
  * @param {*} [options] Override http request option.
@@ -142,7 +142,7 @@ export interface SessionsApiInterface {
142
142
  createAdvancedProviderSessionRaw(requestParameters: CreateAdvancedProviderSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateAdvancedProviderSessionResponse>>;
143
143
 
144
144
  /**
145
- * Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
145
+ * Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
146
146
  * Create Advanced Provider Session
147
147
  */
148
148
  createAdvancedProviderSession(createAdvancedProviderSessionRequest?: CreateAdvancedProviderSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateAdvancedProviderSessionResponse>;
@@ -231,7 +231,7 @@ export interface SessionsApiInterface {
231
231
  listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
232
232
 
233
233
  /**
234
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
234
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
235
235
  * @summary Redact Session
236
236
  * @param {string} sessionId
237
237
  * @param {*} [options] Override http request option.
@@ -241,7 +241,7 @@ export interface SessionsApiInterface {
241
241
  redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
242
242
 
243
243
  /**
244
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
244
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
245
245
  * Redact Session
246
246
  */
247
247
  redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -314,7 +314,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
314
314
  }
315
315
 
316
316
  /**
317
- * Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
317
+ * Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
318
318
  * Create Advanced Provider Session
319
319
  */
320
320
  async createAdvancedProviderSessionRaw(requestParameters: CreateAdvancedProviderSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateAdvancedProviderSessionResponse>> {
@@ -344,7 +344,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
344
344
  }
345
345
 
346
346
  /**
347
- * Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
347
+ * Verify a user\'s identity with a specific provider, handling additional user interaction in your own UI. Signal which kinds of user interactions your UI can handle using the `Capabilities` field. If `FallbackToHostedUi` is `true`, Trinsic\'s hosted UI will automatically be invoked to handle any capabilities you do not support.
348
348
  * Create Advanced Provider Session
349
349
  */
350
350
  async createAdvancedProviderSession(createAdvancedProviderSessionRequest?: CreateAdvancedProviderSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateAdvancedProviderSessionResponse> {
@@ -570,7 +570,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
570
570
  }
571
571
 
572
572
  /**
573
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
573
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
574
574
  * Redact Session
575
575
  */
576
576
  async redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -604,7 +604,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
604
604
  }
605
605
 
606
606
  /**
607
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
607
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
608
608
  * Redact Session
609
609
  */
610
610
  async redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
@@ -24,13 +24,13 @@ export interface AadhaarInput {
24
24
  * @type {string}
25
25
  * @memberof AadhaarInput
26
26
  */
27
- fullName?: string;
27
+ fullName?: string | null;
28
28
  /**
29
29
  * The user's date of birth, in `YYYY-MM-DD` format
30
30
  * @type {Date}
31
31
  * @memberof AadhaarInput
32
32
  */
33
- dateOfBirth?: Date;
33
+ dateOfBirth?: Date | null;
34
34
  }
35
35
 
36
36
  /**
@@ -62,7 +62,7 @@ export function AadhaarInputToJSON(value?: AadhaarInput | null): any {
62
62
  return {
63
63
 
64
64
  'fullName': value['fullName'],
65
- 'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth']).toISOString().substring(0,10)),
65
+ 'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth'] as any).toISOString().substring(0,10)),
66
66
  };
67
67
  }
68
68
 
@@ -24,49 +24,49 @@ export interface Address {
24
24
  * @type {string}
25
25
  * @memberof Address
26
26
  */
27
- line1?: string;
27
+ line1?: string | null;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
31
  * @memberof Address
32
32
  */
33
- line2?: string;
33
+ line2?: string | null;
34
34
  /**
35
35
  *
36
36
  * @type {string}
37
37
  * @memberof Address
38
38
  */
39
- line3?: string;
39
+ line3?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
43
43
  * @memberof Address
44
44
  */
45
- city?: string;
45
+ city?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {string}
49
49
  * @memberof Address
50
50
  */
51
- subdivision?: string;
51
+ subdivision?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {string}
55
55
  * @memberof Address
56
56
  */
57
- postalCode?: string;
57
+ postalCode?: string | null;
58
58
  /**
59
59
  *
60
60
  * @type {string}
61
61
  * @memberof Address
62
62
  */
63
- country?: string;
63
+ country?: string | null;
64
64
  /**
65
65
  *
66
66
  * @type {string}
67
67
  * @memberof Address
68
68
  */
69
- fullAddress?: string;
69
+ fullAddress?: string | null;
70
70
  }
71
71
 
72
72
  /**
@@ -31,25 +31,25 @@ export interface AttachmentAccessKeys {
31
31
  * @type {string}
32
32
  * @memberof AttachmentAccessKeys
33
33
  */
34
- selfie?: string;
34
+ selfie?: string | null;
35
35
  /**
36
36
  *
37
37
  * @type {string}
38
38
  * @memberof AttachmentAccessKeys
39
39
  */
40
- documentFront?: string;
40
+ documentFront?: string | null;
41
41
  /**
42
42
  *
43
43
  * @type {string}
44
44
  * @memberof AttachmentAccessKeys
45
45
  */
46
- documentBack?: string;
46
+ documentBack?: string | null;
47
47
  /**
48
48
  *
49
49
  * @type {string}
50
50
  * @memberof AttachmentAccessKeys
51
51
  */
52
- documentPortrait?: string;
52
+ documentPortrait?: string | null;
53
53
  /**
54
54
  *
55
55
  * @type {ProviderAttachments}
@@ -24,25 +24,25 @@ export interface BangladeshNationalIdInput {
24
24
  * @type {string}
25
25
  * @memberof BangladeshNationalIdInput
26
26
  */
27
- nationalIdNumber?: string;
27
+ nationalIdNumber?: string | null;
28
28
  /**
29
29
  * The user's date of birth, in `YYYY-MM-DD` format
30
30
  * @type {Date}
31
31
  * @memberof BangladeshNationalIdInput
32
32
  */
33
- dateOfBirth?: Date;
33
+ dateOfBirth?: Date | null;
34
34
  /**
35
35
  * The user's full name
36
36
  * @type {string}
37
37
  * @memberof BangladeshNationalIdInput
38
38
  */
39
- name?: string;
39
+ name?: string | null;
40
40
  /**
41
41
  * The base64-encoded bytes of the photo collected from the user
42
42
  * @type {string}
43
43
  * @memberof BangladeshNationalIdInput
44
44
  */
45
- photoBase64?: string;
45
+ photoBase64?: string | null;
46
46
  }
47
47
 
48
48
  /**
@@ -76,7 +76,7 @@ export function BangladeshNationalIdInputToJSON(value?: BangladeshNationalIdInpu
76
76
  return {
77
77
 
78
78
  'nationalIdNumber': value['nationalIdNumber'],
79
- 'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth']).toISOString().substring(0,10)),
79
+ 'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth'] as any).toISOString().substring(0,10)),
80
80
  'name': value['name'],
81
81
  'photoBase64': value['photoBase64'],
82
82
  };
@@ -26,31 +26,31 @@ export interface BrazilDigitalCnhInput {
26
26
  */
27
27
  cpfNumber: string;
28
28
  /**
29
- * The raw bytes of the digital CNH file collected from the user.
30
- *
31
- * TODO: Lucas or JP help me describe these below vvvvvvvv
32
- * This can be:
33
- * - An image containing a physical or digital QR code
34
- * - A PDF file exported from the CNH app
29
+ * The raw bytes of the digital CNH file collected from the user.
30
+ *
31
+ * TODO: Lucas or JP help me describe these below vvvvvvvv
32
+ * This can be:
33
+ * - An image containing a physical or digital QR code
34
+ * - A PDF file exported from the CNH app
35
35
  * - Some scary third thing?
36
36
  * @type {string}
37
37
  * @memberof BrazilDigitalCnhInput
38
38
  */
39
- digitalCnhFile?: string;
39
+ digitalCnhFile?: string | null;
40
40
  /**
41
- * The MIME Type of the file contained in `DigitalCnhFile`.
42
- *
41
+ * The MIME Type of the file contained in `DigitalCnhFile`.
42
+ *
43
43
  * Must be one of `application/pdf`, `image/jpeg`, or `image/png`.
44
44
  * @type {string}
45
45
  * @memberof BrazilDigitalCnhInput
46
46
  */
47
- digitalCnhFileContentType?: string;
47
+ digitalCnhFileContentType?: string | null;
48
48
  /**
49
49
  * The raw bytes of the image of the user's face, collected for biometric comparison.
50
50
  * @type {string}
51
51
  * @memberof BrazilDigitalCnhInput
52
52
  */
53
- facialBiometryPhoto?: string;
53
+ facialBiometryPhoto?: string | null;
54
54
  }
55
55
 
56
56
  /**