@trinsic/api 2.1.1-alpha1 → 2.2.0-alpha1

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 (177) hide show
  1. package/.openapi-generator/FILES +19 -3
  2. package/dist/apis/MdlApi.d.ts +80 -0
  3. package/dist/apis/MdlApi.js +105 -0
  4. package/dist/apis/NetworkApi.d.ts +14 -15
  5. package/dist/apis/NetworkApi.js +13 -11
  6. package/dist/apis/SessionsApi.d.ts +53 -22
  7. package/dist/apis/SessionsApi.js +57 -15
  8. package/dist/apis/index.d.ts +1 -0
  9. package/dist/apis/index.js +1 -0
  10. package/dist/esm/apis/MdlApi.d.ts +80 -0
  11. package/dist/esm/apis/MdlApi.js +101 -0
  12. package/dist/esm/apis/NetworkApi.d.ts +14 -15
  13. package/dist/esm/apis/NetworkApi.js +13 -11
  14. package/dist/esm/apis/SessionsApi.d.ts +53 -22
  15. package/dist/esm/apis/SessionsApi.js +58 -16
  16. package/dist/esm/apis/index.d.ts +1 -0
  17. package/dist/esm/apis/index.js +1 -0
  18. package/dist/esm/models/AppleWalletInput.d.ts +35 -0
  19. package/dist/esm/models/AppleWalletInput.js +42 -0
  20. package/dist/esm/models/{CreateAdvancedProviderSessionRequest.d.ts → CreateDirectProviderSessionRequest.d.ts} +20 -14
  21. package/dist/esm/models/{CreateAdvancedProviderSessionRequest.js → CreateDirectProviderSessionRequest.js} +12 -8
  22. package/dist/esm/models/CreateDirectProviderSessionResponse.d.ts +46 -0
  23. package/dist/esm/models/{CreateAdvancedProviderSessionResponse.js → CreateDirectProviderSessionResponse.js} +8 -8
  24. package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +7 -1
  25. package/dist/esm/models/CreateHostedProviderSessionRequest.js +4 -0
  26. package/dist/esm/models/CreateMdlExchangeRequest.d.ts +102 -0
  27. package/dist/esm/models/CreateMdlExchangeRequest.js +66 -0
  28. package/dist/esm/models/CreateMdlExchangeResponse.d.ts +48 -0
  29. package/dist/esm/models/CreateMdlExchangeResponse.js +51 -0
  30. package/dist/esm/models/CreateWidgetSessionRequest.d.ts +7 -1
  31. package/dist/esm/models/CreateWidgetSessionRequest.js +4 -0
  32. package/dist/esm/models/ExternalMdlFieldData.d.ts +39 -0
  33. package/dist/esm/models/ExternalMdlFieldData.js +48 -0
  34. package/dist/esm/models/FinalizeMdlExchangeRequest.d.ts +50 -0
  35. package/dist/esm/models/FinalizeMdlExchangeRequest.js +55 -0
  36. package/dist/esm/models/FinalizeMdlExchangeResponse.d.ts +55 -0
  37. package/dist/esm/models/FinalizeMdlExchangeResponse.js +54 -0
  38. package/dist/esm/models/GetAttachmentRequest.d.ts +6 -0
  39. package/dist/esm/models/GetAttachmentRequest.js +4 -0
  40. package/dist/esm/models/GoogleWalletInput.d.ts +35 -0
  41. package/dist/esm/models/GoogleWalletInput.js +42 -0
  42. package/dist/esm/models/IdentityData.d.ts +7 -0
  43. package/dist/esm/models/IdentityData.js +3 -0
  44. package/dist/esm/models/{IndonesiaDukcapilBiometricMatchInput.d.ts → IndonesiaDukcapilMatchInput.d.ts} +17 -17
  45. package/dist/esm/models/{IndonesiaDukcapilBiometricMatchInput.js → IndonesiaDukcapilMatchInput.js} +8 -8
  46. package/dist/esm/models/IntegrationCapability.d.ts +1 -0
  47. package/dist/esm/models/IntegrationCapability.js +2 -1
  48. package/dist/esm/models/IntegrationLaunchMethod.d.ts +1 -0
  49. package/dist/esm/models/IntegrationLaunchMethod.js +2 -1
  50. package/dist/esm/models/IntegrationStep.d.ts +1 -1
  51. package/dist/esm/models/Match.d.ts +38 -0
  52. package/dist/esm/models/Match.js +43 -0
  53. package/dist/esm/models/MatchData.d.ts +87 -0
  54. package/dist/esm/models/MatchData.js +60 -0
  55. package/dist/esm/models/MdlCertificateData.d.ts +58 -0
  56. package/dist/esm/models/MdlCertificateData.js +59 -0
  57. package/dist/esm/models/MdlExchangeMechanism.d.ts +25 -0
  58. package/dist/esm/models/MdlExchangeMechanism.js +43 -0
  59. package/dist/esm/models/MdlFieldDataType.d.ts +28 -0
  60. package/dist/esm/models/MdlFieldDataType.js +46 -0
  61. package/dist/esm/models/MdlIdentityData.d.ts +50 -0
  62. package/dist/esm/models/MdlIdentityData.js +52 -0
  63. package/dist/esm/models/ProviderContract.d.ts +18 -8
  64. package/dist/esm/models/ProviderContract.js +4 -0
  65. package/dist/esm/models/ProviderInput.d.ts +18 -4
  66. package/dist/esm/models/ProviderInput.js +9 -3
  67. package/dist/esm/models/RecommendRequest.d.ts +6 -0
  68. package/dist/esm/models/RecommendRequest.js +4 -0
  69. package/dist/esm/models/ResultCollectionMethod.d.ts +1 -0
  70. package/dist/esm/models/ResultCollectionMethod.js +2 -1
  71. package/dist/esm/models/SessionErrorCode.d.ts +2 -0
  72. package/dist/esm/models/SessionErrorCode.js +3 -1
  73. package/dist/esm/models/SubmitNativeChallengeResponseRequest.d.ts +38 -0
  74. package/dist/esm/models/SubmitNativeChallengeResponseRequest.js +47 -0
  75. package/dist/esm/models/SubmitNativeChallengeResponseResponse.d.ts +33 -0
  76. package/dist/esm/models/SubmitNativeChallengeResponseResponse.js +44 -0
  77. package/dist/esm/models/index.d.ts +18 -3
  78. package/dist/esm/models/index.js +18 -3
  79. package/dist/models/AppleWalletInput.d.ts +35 -0
  80. package/dist/models/AppleWalletInput.js +49 -0
  81. package/dist/models/{CreateAdvancedProviderSessionRequest.d.ts → CreateDirectProviderSessionRequest.d.ts} +20 -14
  82. package/dist/models/{CreateAdvancedProviderSessionRequest.js → CreateDirectProviderSessionRequest.js} +17 -13
  83. package/dist/models/CreateDirectProviderSessionResponse.d.ts +46 -0
  84. package/dist/models/{CreateAdvancedProviderSessionResponse.js → CreateDirectProviderSessionResponse.js} +13 -13
  85. package/dist/models/CreateHostedProviderSessionRequest.d.ts +7 -1
  86. package/dist/models/CreateHostedProviderSessionRequest.js +4 -0
  87. package/dist/models/CreateMdlExchangeRequest.d.ts +102 -0
  88. package/dist/models/CreateMdlExchangeRequest.js +73 -0
  89. package/dist/models/CreateMdlExchangeResponse.d.ts +48 -0
  90. package/dist/models/CreateMdlExchangeResponse.js +58 -0
  91. package/dist/models/CreateWidgetSessionRequest.d.ts +7 -1
  92. package/dist/models/CreateWidgetSessionRequest.js +4 -0
  93. package/dist/models/ExternalMdlFieldData.d.ts +39 -0
  94. package/dist/models/ExternalMdlFieldData.js +55 -0
  95. package/dist/models/FinalizeMdlExchangeRequest.d.ts +50 -0
  96. package/dist/models/FinalizeMdlExchangeRequest.js +62 -0
  97. package/dist/models/FinalizeMdlExchangeResponse.d.ts +55 -0
  98. package/dist/models/FinalizeMdlExchangeResponse.js +61 -0
  99. package/dist/models/GetAttachmentRequest.d.ts +6 -0
  100. package/dist/models/GetAttachmentRequest.js +4 -0
  101. package/dist/models/GoogleWalletInput.d.ts +35 -0
  102. package/dist/models/GoogleWalletInput.js +49 -0
  103. package/dist/models/IdentityData.d.ts +7 -0
  104. package/dist/models/IdentityData.js +3 -0
  105. package/dist/models/{IndonesiaDukcapilBiometricMatchInput.d.ts → IndonesiaDukcapilMatchInput.d.ts} +17 -17
  106. package/dist/models/{IndonesiaDukcapilBiometricMatchInput.js → IndonesiaDukcapilMatchInput.js} +13 -13
  107. package/dist/models/IntegrationCapability.d.ts +1 -0
  108. package/dist/models/IntegrationCapability.js +2 -1
  109. package/dist/models/IntegrationLaunchMethod.d.ts +1 -0
  110. package/dist/models/IntegrationLaunchMethod.js +2 -1
  111. package/dist/models/IntegrationStep.d.ts +1 -1
  112. package/dist/models/Match.d.ts +38 -0
  113. package/dist/models/Match.js +50 -0
  114. package/dist/models/MatchData.d.ts +87 -0
  115. package/dist/models/MatchData.js +67 -0
  116. package/dist/models/MdlCertificateData.d.ts +58 -0
  117. package/dist/models/MdlCertificateData.js +66 -0
  118. package/dist/models/MdlExchangeMechanism.d.ts +25 -0
  119. package/dist/models/MdlExchangeMechanism.js +51 -0
  120. package/dist/models/MdlFieldDataType.d.ts +28 -0
  121. package/dist/models/MdlFieldDataType.js +54 -0
  122. package/dist/models/MdlIdentityData.d.ts +50 -0
  123. package/dist/models/MdlIdentityData.js +59 -0
  124. package/dist/models/ProviderContract.d.ts +18 -8
  125. package/dist/models/ProviderContract.js +4 -0
  126. package/dist/models/ProviderInput.d.ts +18 -4
  127. package/dist/models/ProviderInput.js +9 -3
  128. package/dist/models/RecommendRequest.d.ts +6 -0
  129. package/dist/models/RecommendRequest.js +4 -0
  130. package/dist/models/ResultCollectionMethod.d.ts +1 -0
  131. package/dist/models/ResultCollectionMethod.js +2 -1
  132. package/dist/models/SessionErrorCode.d.ts +2 -0
  133. package/dist/models/SessionErrorCode.js +3 -1
  134. package/dist/models/SubmitNativeChallengeResponseRequest.d.ts +38 -0
  135. package/dist/models/SubmitNativeChallengeResponseRequest.js +54 -0
  136. package/dist/models/SubmitNativeChallengeResponseResponse.d.ts +33 -0
  137. package/dist/models/SubmitNativeChallengeResponseResponse.js +51 -0
  138. package/dist/models/index.d.ts +18 -3
  139. package/dist/models/index.js +18 -3
  140. package/package.json +1 -1
  141. package/src/apis/MdlApi.ts +169 -0
  142. package/src/apis/NetworkApi.ts +33 -19
  143. package/src/apis/SessionsApi.ts +116 -33
  144. package/src/apis/index.ts +1 -0
  145. package/src/models/AppleWalletInput.ts +77 -0
  146. package/src/models/{CreateAdvancedProviderSessionRequest.ts → CreateDirectProviderSessionRequest.ts} +25 -16
  147. package/src/models/{CreateAdvancedProviderSessionResponse.ts → CreateDirectProviderSessionResponse.ts} +13 -13
  148. package/src/models/CreateHostedProviderSessionRequest.ts +10 -1
  149. package/src/models/CreateMdlExchangeRequest.ts +159 -0
  150. package/src/models/CreateMdlExchangeResponse.ts +88 -0
  151. package/src/models/CreateWidgetSessionRequest.ts +10 -1
  152. package/src/models/ExternalMdlFieldData.ts +85 -0
  153. package/src/models/FinalizeMdlExchangeRequest.ts +93 -0
  154. package/src/models/FinalizeMdlExchangeResponse.ts +115 -0
  155. package/src/models/GetAttachmentRequest.ts +9 -0
  156. package/src/models/GoogleWalletInput.ts +77 -0
  157. package/src/models/IdentityData.ts +15 -0
  158. package/src/models/{IndonesiaDukcapilBiometricMatchInput.ts → IndonesiaDukcapilMatchInput.ts} +19 -19
  159. package/src/models/IntegrationCapability.ts +2 -1
  160. package/src/models/IntegrationLaunchMethod.ts +2 -1
  161. package/src/models/IntegrationStep.ts +1 -1
  162. package/src/models/Match.ts +73 -0
  163. package/src/models/MatchData.ts +145 -0
  164. package/src/models/MdlCertificateData.ts +104 -0
  165. package/src/models/MdlExchangeMechanism.ts +53 -0
  166. package/src/models/MdlFieldDataType.ts +56 -0
  167. package/src/models/MdlIdentityData.ts +99 -0
  168. package/src/models/ProviderContract.ts +21 -8
  169. package/src/models/ProviderInput.ts +42 -12
  170. package/src/models/RecommendRequest.ts +9 -0
  171. package/src/models/ResultCollectionMethod.ts +2 -1
  172. package/src/models/SessionErrorCode.ts +3 -1
  173. package/src/models/SubmitNativeChallengeResponseRequest.ts +75 -0
  174. package/src/models/SubmitNativeChallengeResponseResponse.ts +74 -0
  175. package/src/models/index.ts +18 -3
  176. package/dist/esm/models/CreateAdvancedProviderSessionResponse.d.ts +0 -46
  177. package/dist/models/CreateAdvancedProviderSessionResponse.d.ts +0 -46
@@ -0,0 +1,99 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { MdlCertificateData } from './MdlCertificateData';
17
+ import {
18
+ MdlCertificateDataFromJSON,
19
+ MdlCertificateDataFromJSONTyped,
20
+ MdlCertificateDataToJSON,
21
+ MdlCertificateDataToJSONTyped,
22
+ } from './MdlCertificateData';
23
+ import type { ExternalMdlFieldData } from './ExternalMdlFieldData';
24
+ import {
25
+ ExternalMdlFieldDataFromJSON,
26
+ ExternalMdlFieldDataFromJSONTyped,
27
+ ExternalMdlFieldDataToJSON,
28
+ ExternalMdlFieldDataToJSONTyped,
29
+ } from './ExternalMdlFieldData';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface MdlIdentityData
35
+ */
36
+ export interface MdlIdentityData {
37
+ /**
38
+ * Information about the IACA Root Certificate which signed the Issuer Certificate for this mDL.
39
+ * @type {MdlCertificateData}
40
+ * @memberof MdlIdentityData
41
+ */
42
+ iacaRootCertificate: MdlCertificateData;
43
+ /**
44
+ * Information about the Document Signer Certificate which signed the mDL presented by the user.
45
+ * @type {MdlCertificateData}
46
+ * @memberof MdlIdentityData
47
+ */
48
+ documentSignerCertificate: MdlCertificateData;
49
+ /**
50
+ * The namespaces, and fields within those namespaces, which were present in the processed mDL.
51
+ * @type {{ [key: string]: { [key: string]: ExternalMdlFieldData; }; }}
52
+ * @memberof MdlIdentityData
53
+ */
54
+ nameSpaces: { [key: string]: { [key: string]: ExternalMdlFieldData; }; };
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the MdlIdentityData interface.
59
+ */
60
+ export function instanceOfMdlIdentityData(value: object): value is MdlIdentityData {
61
+ if (!('iacaRootCertificate' in value) || value['iacaRootCertificate'] === undefined) return false;
62
+ if (!('documentSignerCertificate' in value) || value['documentSignerCertificate'] === undefined) return false;
63
+ if (!('nameSpaces' in value) || value['nameSpaces'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function MdlIdentityDataFromJSON(json: any): MdlIdentityData {
68
+ return MdlIdentityDataFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function MdlIdentityDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): MdlIdentityData {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'iacaRootCertificate': MdlCertificateDataFromJSON(json['iacaRootCertificate']),
78
+ 'documentSignerCertificate': MdlCertificateDataFromJSON(json['documentSignerCertificate']),
79
+ 'nameSpaces': json['nameSpaces'],
80
+ };
81
+ }
82
+
83
+ export function MdlIdentityDataToJSON(json: any): MdlIdentityData {
84
+ return MdlIdentityDataToJSONTyped(json, false);
85
+ }
86
+
87
+ export function MdlIdentityDataToJSONTyped(value?: MdlIdentityData | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'iacaRootCertificate': MdlCertificateDataToJSON(value['iacaRootCertificate']),
95
+ 'documentSignerCertificate': MdlCertificateDataToJSON(value['documentSignerCertificate']),
96
+ 'nameSpaces': value['nameSpaces'],
97
+ };
98
+ }
99
+
@@ -113,17 +113,17 @@ export interface ProviderContract {
113
113
  */
114
114
  regions: Array<string>;
115
115
  /**
116
- * Relevant only to Advanced Provider Sessions.
116
+ * Relevant only to Direct Provider Sessions.
117
117
  *
118
- * The `LaunchMethod` which must be supported to launch the Provider Session in Advanced Provider Sessions.
118
+ * The `LaunchMethod` which must be supported to launch the Provider Session in Direct Provider Sessions.
119
119
  * @type {IntegrationLaunchMethod}
120
120
  * @memberof ProviderContract
121
121
  */
122
122
  launchMethod: IntegrationLaunchMethod;
123
123
  /**
124
- * Relevant only to Advanced Provider Sessions.
124
+ * Relevant only to Direct Provider Sessions.
125
125
  *
126
- * The `CollectionMethod` which must be supported to launch the Provider Session in Advanced Provider Sessions.
126
+ * The `CollectionMethod` which must be supported to launch the Provider Session in Direct Provider Sessions.
127
127
  * @type {ResultCollectionMethod}
128
128
  * @memberof ProviderContract
129
129
  */
@@ -139,7 +139,7 @@ export interface ProviderContract {
139
139
  */
140
140
  resultsMayBeDelayedAfterRedirect: boolean;
141
141
  /**
142
- * Relevant only to Advanced Provider Sessions.
142
+ * Relevant only to Direct Provider Sessions.
143
143
  *
144
144
  * Whether the Provider requires the `RefreshStepContent` capability.
145
145
  *
@@ -150,7 +150,7 @@ export interface ProviderContract {
150
150
  */
151
151
  hasRefreshableContent: boolean;
152
152
  /**
153
- * Relevant to Hosted Provider Sessions and Advanced Provider Sessions.
153
+ * Relevant to Hosted Provider Sessions and Direct Provider Sessions.
154
154
  *
155
155
  * If `true`, this Provider requires provider-specific input on Session creation.
156
156
  * If this input is not provided, Trinsic's Hosted UI will be invoked to collect the input from the user.
@@ -167,14 +167,24 @@ export interface ProviderContract {
167
167
  */
168
168
  hasTrinsicInterface: boolean;
169
169
  /**
170
- * Whether this Provider can be fully whitelabeled/OEMed through the Advanced Provider Sessions API.
170
+ * Whether this Provider can be fully whitelabeled/OEMed through the Direct Provider Sessions API.
171
171
  *
172
- * If `false`, the Provider may still be launched through Advanced Provider Sessions;
172
+ * If `false`, the Provider may still be launched through Direct Provider Sessions;
173
173
  * however, it will necessarily require a Trinsic-hosted UI to function.
174
174
  * @type {boolean}
175
175
  * @memberof ProviderContract
176
+ * @deprecated
176
177
  */
177
178
  supportsAdvancedProviderSessions: boolean;
179
+ /**
180
+ * Whether this Provider can be fully whitelabeled/OEMed through the Direct Provider Sessions API.
181
+ *
182
+ * If `false`, the Provider may still be launched through Direct Provider Sessions;
183
+ * however, it will necessarily require a Trinsic-hosted UI to function.
184
+ * @type {boolean}
185
+ * @memberof ProviderContract
186
+ */
187
+ supportsDirectProviderSessions: boolean;
178
188
  /**
179
189
  * Information about the fields that this Provider will return in verification results.
180
190
  * @type {Array<ContractField>}
@@ -218,6 +228,7 @@ export function instanceOfProviderContract(value: object): value is ProviderCont
218
228
  if (!('requiresInput' in value) || value['requiresInput'] === undefined) return false;
219
229
  if (!('hasTrinsicInterface' in value) || value['hasTrinsicInterface'] === undefined) return false;
220
230
  if (!('supportsAdvancedProviderSessions' in value) || value['supportsAdvancedProviderSessions'] === undefined) return false;
231
+ if (!('supportsDirectProviderSessions' in value) || value['supportsDirectProviderSessions'] === undefined) return false;
221
232
  if (!('health' in value) || value['health'] === undefined) return false;
222
233
  return true;
223
234
  }
@@ -247,6 +258,7 @@ export function ProviderContractFromJSONTyped(json: any, ignoreDiscriminator: bo
247
258
  'requiresInput': json['requiresInput'],
248
259
  'hasTrinsicInterface': json['hasTrinsicInterface'],
249
260
  'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
261
+ 'supportsDirectProviderSessions': json['supportsDirectProviderSessions'],
250
262
  'availableFields': json['availableFields'] == null ? undefined : ((json['availableFields'] as Array<any>).map(ContractFieldFromJSON)),
251
263
  'subProviders': json['subProviders'] == null ? undefined : ((json['subProviders'] as Array<any>).map(SubProviderMetadataFromJSON)),
252
264
  'health': ProviderHealthFromJSON(json['health']),
@@ -279,6 +291,7 @@ export function ProviderContractToJSONTyped(value?: ProviderContract | null, ign
279
291
  'requiresInput': value['requiresInput'],
280
292
  'hasTrinsicInterface': value['hasTrinsicInterface'],
281
293
  'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
294
+ 'supportsDirectProviderSessions': value['supportsDirectProviderSessions'],
282
295
  'availableFields': value['availableFields'] == null ? undefined : ((value['availableFields'] as Array<any>).map(ContractFieldToJSON)),
283
296
  'subProviders': value['subProviders'] == null ? undefined : ((value['subProviders'] as Array<any>).map(SubProviderMetadataToJSON)),
284
297
  'health': ProviderHealthToJSON(value['health']),
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { AppleWalletInput } from './AppleWalletInput';
17
+ import {
18
+ AppleWalletInputFromJSON,
19
+ AppleWalletInputFromJSONTyped,
20
+ AppleWalletInputToJSON,
21
+ AppleWalletInputToJSONTyped,
22
+ } from './AppleWalletInput';
16
23
  import type { BrazilCpfCheckInput } from './BrazilCpfCheckInput';
17
24
  import {
18
25
  BrazilCpfCheckInputFromJSON,
@@ -55,13 +62,6 @@ import {
55
62
  SouthAfricaNidInputToJSON,
56
63
  SouthAfricaNidInputToJSONTyped,
57
64
  } from './SouthAfricaNidInput';
58
- import type { IndonesiaDukcapilBiometricMatchInput } from './IndonesiaDukcapilBiometricMatchInput';
59
- import {
60
- IndonesiaDukcapilBiometricMatchInputFromJSON,
61
- IndonesiaDukcapilBiometricMatchInputFromJSONTyped,
62
- IndonesiaDukcapilBiometricMatchInputToJSON,
63
- IndonesiaDukcapilBiometricMatchInputToJSONTyped,
64
- } from './IndonesiaDukcapilBiometricMatchInput';
65
65
  import type { PhilippineMatchInput } from './PhilippineMatchInput';
66
66
  import {
67
67
  PhilippineMatchInputFromJSON,
@@ -111,6 +111,13 @@ import {
111
111
  SmartIdInputToJSON,
112
112
  SmartIdInputToJSONTyped,
113
113
  } from './SmartIdInput';
114
+ import type { IndonesiaDukcapilMatchInput } from './IndonesiaDukcapilMatchInput';
115
+ import {
116
+ IndonesiaDukcapilMatchInputFromJSON,
117
+ IndonesiaDukcapilMatchInputFromJSONTyped,
118
+ IndonesiaDukcapilMatchInputToJSON,
119
+ IndonesiaDukcapilMatchInputToJSONTyped,
120
+ } from './IndonesiaDukcapilMatchInput';
114
121
  import type { MobileIdInput } from './MobileIdInput';
115
122
  import {
116
123
  MobileIdInputFromJSON,
@@ -118,6 +125,13 @@ import {
118
125
  MobileIdInputToJSON,
119
126
  MobileIdInputToJSONTyped,
120
127
  } from './MobileIdInput';
128
+ import type { GoogleWalletInput } from './GoogleWalletInput';
129
+ import {
130
+ GoogleWalletInputFromJSON,
131
+ GoogleWalletInputFromJSONTyped,
132
+ GoogleWalletInputToJSON,
133
+ GoogleWalletInputToJSONTyped,
134
+ } from './GoogleWalletInput';
121
135
  import type { TrinsicTestDatabaseLookupInput } from './TrinsicTestDatabaseLookupInput';
122
136
  import {
123
137
  TrinsicTestDatabaseLookupInputFromJSON,
@@ -153,11 +167,11 @@ export interface ProviderInput {
153
167
  */
154
168
  indonesiaNik?: IndonesiaNikInput | null;
155
169
  /**
156
- * Input for the `indonesia-dukcapil-biometric-match` provider
157
- * @type {IndonesiaDukcapilBiometricMatchInput}
170
+ * Input for the `indonesia-dukcapil-match` provider
171
+ * @type {IndonesiaDukcapilMatchInput}
158
172
  * @memberof ProviderInput
159
173
  */
160
- indonesiaDukcapilBiometricMatch?: IndonesiaDukcapilBiometricMatchInput | null;
174
+ indonesiaDukcapilMatch?: IndonesiaDukcapilMatchInput | null;
161
175
  /**
162
176
  * Input for the `mexico-curp-lookup` provider
163
177
  * @type {MexicoCurpInput}
@@ -242,6 +256,18 @@ export interface ProviderInput {
242
256
  * @memberof ProviderInput
243
257
  */
244
258
  spid?: SpidInput | null;
259
+ /**
260
+ * Input for the `google-wallet` provider
261
+ * @type {GoogleWalletInput}
262
+ * @memberof ProviderInput
263
+ */
264
+ googleWallet?: GoogleWalletInput | null;
265
+ /**
266
+ * Input for the `apple-wallet` provider
267
+ * @type {AppleWalletInput}
268
+ * @memberof ProviderInput
269
+ */
270
+ appleWallet?: AppleWalletInput | null;
245
271
  /**
246
272
  * *TEST MODE ONLY.*
247
273
  *
@@ -278,7 +304,7 @@ export function ProviderInputFromJSONTyped(json: any, ignoreDiscriminator: boole
278
304
  return {
279
305
 
280
306
  'indonesiaNik': json['indonesiaNik'] == null ? undefined : IndonesiaNikInputFromJSON(json['indonesiaNik']),
281
- 'indonesiaDukcapilBiometricMatch': json['indonesiaDukcapilBiometricMatch'] == null ? undefined : IndonesiaDukcapilBiometricMatchInputFromJSON(json['indonesiaDukcapilBiometricMatch']),
307
+ 'indonesiaDukcapilMatch': json['indonesiaDukcapilMatch'] == null ? undefined : IndonesiaDukcapilMatchInputFromJSON(json['indonesiaDukcapilMatch']),
282
308
  'mexicoCurp': json['mexicoCurp'] == null ? undefined : MexicoCurpInputFromJSON(json['mexicoCurp']),
283
309
  'southAfricaNid': json['southAfricaNid'] == null ? undefined : SouthAfricaNidInputFromJSON(json['southAfricaNid']),
284
310
  'kenyaNid': json['kenyaNid'] == null ? undefined : KenyaNidInputFromJSON(json['kenyaNid']),
@@ -293,6 +319,8 @@ export function ProviderInputFromJSONTyped(json: any, ignoreDiscriminator: boole
293
319
  'mobileId': json['mobileId'] == null ? undefined : MobileIdInputFromJSON(json['mobileId']),
294
320
  'idin': json['idin'] == null ? undefined : IdinInputFromJSON(json['idin']),
295
321
  'spid': json['spid'] == null ? undefined : SpidInputFromJSON(json['spid']),
322
+ 'googleWallet': json['googleWallet'] == null ? undefined : GoogleWalletInputFromJSON(json['googleWallet']),
323
+ 'appleWallet': json['appleWallet'] == null ? undefined : AppleWalletInputFromJSON(json['appleWallet']),
296
324
  'trinsicTestDatabaseLookup': json['trinsicTestDatabaseLookup'] == null ? undefined : TrinsicTestDatabaseLookupInputFromJSON(json['trinsicTestDatabaseLookup']),
297
325
  'trinsicTestSubProviders': json['trinsicTestSubProviders'] == null ? undefined : TrinsicTestSubProvidersInputFromJSON(json['trinsicTestSubProviders']),
298
326
  };
@@ -310,7 +338,7 @@ export function ProviderInputToJSONTyped(value?: ProviderInput | null, ignoreDis
310
338
  return {
311
339
 
312
340
  'indonesiaNik': IndonesiaNikInputToJSON(value['indonesiaNik']),
313
- 'indonesiaDukcapilBiometricMatch': IndonesiaDukcapilBiometricMatchInputToJSON(value['indonesiaDukcapilBiometricMatch']),
341
+ 'indonesiaDukcapilMatch': IndonesiaDukcapilMatchInputToJSON(value['indonesiaDukcapilMatch']),
314
342
  'mexicoCurp': MexicoCurpInputToJSON(value['mexicoCurp']),
315
343
  'southAfricaNid': SouthAfricaNidInputToJSON(value['southAfricaNid']),
316
344
  'kenyaNid': KenyaNidInputToJSON(value['kenyaNid']),
@@ -325,6 +353,8 @@ export function ProviderInputToJSONTyped(value?: ProviderInput | null, ignoreDis
325
353
  'mobileId': MobileIdInputToJSON(value['mobileId']),
326
354
  'idin': IdinInputToJSON(value['idin']),
327
355
  'spid': SpidInputToJSON(value['spid']),
356
+ 'googleWallet': GoogleWalletInputToJSON(value['googleWallet']),
357
+ 'appleWallet': AppleWalletInputToJSON(value['appleWallet']),
328
358
  'trinsicTestDatabaseLookup': TrinsicTestDatabaseLookupInputToJSON(value['trinsicTestDatabaseLookup']),
329
359
  'trinsicTestSubProviders': TrinsicTestSubProvidersInputToJSON(value['trinsicTestSubProviders']),
330
360
  };
@@ -27,6 +27,12 @@ import {
27
27
  * @interface RecommendRequest
28
28
  */
29
29
  export interface RecommendRequest {
30
+ /**
31
+ * The ID of the VerificationProfile to use for this recommendation.
32
+ * @type {string}
33
+ * @memberof RecommendRequest
34
+ */
35
+ verificationProfileId: string;
30
36
  /**
31
37
  * Information about the user you wish to generate a recommendation for.
32
38
  * @type {RecommendationInfo}
@@ -45,6 +51,7 @@ export interface RecommendRequest {
45
51
  * Check if a given object implements the RecommendRequest interface.
46
52
  */
47
53
  export function instanceOfRecommendRequest(value: object): value is RecommendRequest {
54
+ if (!('verificationProfileId' in value) || value['verificationProfileId'] === undefined) return false;
48
55
  return true;
49
56
  }
50
57
 
@@ -58,6 +65,7 @@ export function RecommendRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
58
65
  }
59
66
  return {
60
67
 
68
+ 'verificationProfileId': json['verificationProfileId'],
61
69
  'recommendationInfo': json['recommendationInfo'] == null ? undefined : RecommendationInfoFromJSON(json['recommendationInfo']),
62
70
  'health': json['health'] == null ? undefined : json['health'],
63
71
  };
@@ -74,6 +82,7 @@ export function RecommendRequestToJSONTyped(value?: RecommendRequest | null, ign
74
82
 
75
83
  return {
76
84
 
85
+ 'verificationProfileId': value['verificationProfileId'],
77
86
  'recommendationInfo': RecommendationInfoToJSON(value['recommendationInfo']),
78
87
  'health': value['health'],
79
88
  };
@@ -19,7 +19,8 @@
19
19
  */
20
20
  export const ResultCollectionMethod = {
21
21
  PollResult: 'PollResult',
22
- CaptureRedirect: 'CaptureRedirect'
22
+ CaptureRedirect: 'CaptureRedirect',
23
+ SubmitNativeChallengeResponse: 'SubmitNativeChallengeResponse'
23
24
  } as const;
24
25
  export type ResultCollectionMethod = typeof ResultCollectionMethod[keyof typeof ResultCollectionMethod];
25
26
 
@@ -27,7 +27,9 @@ export const SessionErrorCode = {
27
27
  InvalidImage: 'InvalidImage',
28
28
  Inauthentic: 'Inauthentic',
29
29
  UnsupportedDocument: 'UnsupportedDocument',
30
- AssuranceLevelNotMet: 'AssuranceLevelNotMet'
30
+ AssuranceLevelNotMet: 'AssuranceLevelNotMet',
31
+ SecurityValidationFailed: 'SecurityValidationFailed',
32
+ InvalidResponse: 'InvalidResponse'
31
33
  } as const;
32
34
  export type SessionErrorCode = typeof SessionErrorCode[keyof typeof SessionErrorCode];
33
35
 
@@ -0,0 +1,75 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SubmitNativeChallengeResponseRequest
20
+ */
21
+ export interface SubmitNativeChallengeResponseRequest {
22
+ /**
23
+ * The Results Access Key for the Session in question
24
+ * @type {string}
25
+ * @memberof SubmitNativeChallengeResponseRequest
26
+ */
27
+ resultsAccessKey: string;
28
+ /**
29
+ * The response token retrieved from a Trinsic UI SDK's performMdlExchange() call.
30
+ * @type {string}
31
+ * @memberof SubmitNativeChallengeResponseRequest
32
+ */
33
+ responseToken: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the SubmitNativeChallengeResponseRequest interface.
38
+ */
39
+ export function instanceOfSubmitNativeChallengeResponseRequest(value: object): value is SubmitNativeChallengeResponseRequest {
40
+ if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined) return false;
41
+ if (!('responseToken' in value) || value['responseToken'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function SubmitNativeChallengeResponseRequestFromJSON(json: any): SubmitNativeChallengeResponseRequest {
46
+ return SubmitNativeChallengeResponseRequestFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SubmitNativeChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubmitNativeChallengeResponseRequest {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'resultsAccessKey': json['resultsAccessKey'],
56
+ 'responseToken': json['responseToken'],
57
+ };
58
+ }
59
+
60
+ export function SubmitNativeChallengeResponseRequestToJSON(json: any): SubmitNativeChallengeResponseRequest {
61
+ return SubmitNativeChallengeResponseRequestToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SubmitNativeChallengeResponseRequestToJSONTyped(value?: SubmitNativeChallengeResponseRequest | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'resultsAccessKey': value['resultsAccessKey'],
72
+ 'responseToken': value['responseToken'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,74 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { Session } from './Session';
17
+ import {
18
+ SessionFromJSON,
19
+ SessionFromJSONTyped,
20
+ SessionToJSON,
21
+ SessionToJSONTyped,
22
+ } from './Session';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SubmitNativeChallengeResponseResponse
28
+ */
29
+ export interface SubmitNativeChallengeResponseResponse {
30
+ /**
31
+ * The Session for which the challenge token was submitted
32
+ * @type {Session}
33
+ * @memberof SubmitNativeChallengeResponseResponse
34
+ */
35
+ session: Session;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the SubmitNativeChallengeResponseResponse interface.
40
+ */
41
+ export function instanceOfSubmitNativeChallengeResponseResponse(value: object): value is SubmitNativeChallengeResponseResponse {
42
+ if (!('session' in value) || value['session'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function SubmitNativeChallengeResponseResponseFromJSON(json: any): SubmitNativeChallengeResponseResponse {
47
+ return SubmitNativeChallengeResponseResponseFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function SubmitNativeChallengeResponseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubmitNativeChallengeResponseResponse {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'session': SessionFromJSON(json['session']),
57
+ };
58
+ }
59
+
60
+ export function SubmitNativeChallengeResponseResponseToJSON(json: any): SubmitNativeChallengeResponseResponse {
61
+ return SubmitNativeChallengeResponseResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SubmitNativeChallengeResponseResponseToJSONTyped(value?: SubmitNativeChallengeResponseResponse | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'session': SessionToJSON(value['session']),
72
+ };
73
+ }
74
+
@@ -2,31 +2,38 @@
2
2
  /* eslint-disable */
3
3
  export * from './AadhaarInput';
4
4
  export * from './Address';
5
+ export * from './AppleWalletInput';
5
6
  export * from './AttachmentAccessKeys';
6
7
  export * from './BangladeshNidInput';
7
8
  export * from './BrazilCpfCheckInput';
8
9
  export * from './BrazilDigitalCnhInput';
9
10
  export * from './CancelSessionResponse';
10
11
  export * from './ContractField';
11
- export * from './CreateAdvancedProviderSessionRequest';
12
- export * from './CreateAdvancedProviderSessionResponse';
12
+ export * from './CreateDirectProviderSessionRequest';
13
+ export * from './CreateDirectProviderSessionResponse';
13
14
  export * from './CreateHostedProviderSessionRequest';
14
15
  export * from './CreateHostedProviderSessionResponse';
16
+ export * from './CreateMdlExchangeRequest';
17
+ export * from './CreateMdlExchangeResponse';
15
18
  export * from './CreateWidgetSessionRequest';
16
19
  export * from './CreateWidgetSessionResponse';
17
20
  export * from './DocumentData';
18
21
  export * from './DocumentScanAttachments';
19
22
  export * from './DocumentType';
23
+ export * from './ExternalMdlFieldData';
20
24
  export * from './FieldAvailability';
25
+ export * from './FinalizeMdlExchangeRequest';
26
+ export * from './FinalizeMdlExchangeResponse';
21
27
  export * from './GetAttachmentRequest';
22
28
  export * from './GetAttachmentResponse';
23
29
  export * from './GetSessionResponse';
24
30
  export * from './GetSessionResultRequest';
25
31
  export * from './GetSessionResultResponse';
32
+ export * from './GoogleWalletInput';
26
33
  export * from './HttpValidationProblemDetails';
27
34
  export * from './IdentityData';
28
35
  export * from './IdinInput';
29
- export * from './IndonesiaDukcapilBiometricMatchInput';
36
+ export * from './IndonesiaDukcapilMatchInput';
30
37
  export * from './IndonesiaNikInput';
31
38
  export * from './IntegrationCapability';
32
39
  export * from './IntegrationLaunchMethod';
@@ -36,6 +43,12 @@ export * from './Language';
36
43
  export * from './ListProviderContractsResponse';
37
44
  export * from './ListProvidersResponse';
38
45
  export * from './ListSessionsResponse';
46
+ export * from './Match';
47
+ export * from './MatchData';
48
+ export * from './MdlCertificateData';
49
+ export * from './MdlExchangeMechanism';
50
+ export * from './MdlFieldDataType';
51
+ export * from './MdlIdentityData';
39
52
  export * from './MexicoCurpInput';
40
53
  export * from './MobileIdInput';
41
54
  export * from './NigeriaNinInput';
@@ -66,5 +79,7 @@ export * from './SouthAfricaNidInput';
66
79
  export * from './SpidInput';
67
80
  export * from './StepRefreshInfo';
68
81
  export * from './SubProviderMetadata';
82
+ export * from './SubmitNativeChallengeResponseRequest';
83
+ export * from './SubmitNativeChallengeResponseResponse';
69
84
  export * from './TrinsicTestDatabaseLookupInput';
70
85
  export * from './TrinsicTestSubProvidersInput';
@@ -1,46 +0,0 @@
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
- import type { ResultCollection } from './ResultCollection';
13
- import type { IntegrationStep } from './IntegrationStep';
14
- /**
15
- *
16
- * @export
17
- * @interface CreateAdvancedProviderSessionResponse
18
- */
19
- export interface CreateAdvancedProviderSessionResponse {
20
- /**
21
- * The ID of the newly-created Acceptance Session
22
- * @type {string}
23
- * @memberof CreateAdvancedProviderSessionResponse
24
- */
25
- sessionId: string;
26
- /**
27
- * The method by which you must collect the results of the Acceptance Session.
28
- * @type {ResultCollection}
29
- * @memberof CreateAdvancedProviderSessionResponse
30
- */
31
- resultCollection: ResultCollection;
32
- /**
33
- * The next step you must take to launch the user into the integration
34
- * @type {IntegrationStep}
35
- * @memberof CreateAdvancedProviderSessionResponse
36
- */
37
- nextStep: IntegrationStep;
38
- }
39
- /**
40
- * Check if a given object implements the CreateAdvancedProviderSessionResponse interface.
41
- */
42
- export declare function instanceOfCreateAdvancedProviderSessionResponse(value: object): value is CreateAdvancedProviderSessionResponse;
43
- export declare function CreateAdvancedProviderSessionResponseFromJSON(json: any): CreateAdvancedProviderSessionResponse;
44
- export declare function CreateAdvancedProviderSessionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAdvancedProviderSessionResponse;
45
- export declare function CreateAdvancedProviderSessionResponseToJSON(json: any): CreateAdvancedProviderSessionResponse;
46
- export declare function CreateAdvancedProviderSessionResponseToJSONTyped(value?: CreateAdvancedProviderSessionResponse | null, ignoreDiscriminator?: boolean): any;