@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,50 @@
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.instanceOfRecommendationInfo = instanceOfRecommendationInfo;
17
+ exports.RecommendationInfoFromJSON = RecommendationInfoFromJSON;
18
+ exports.RecommendationInfoFromJSONTyped = RecommendationInfoFromJSONTyped;
19
+ exports.RecommendationInfoToJSON = RecommendationInfoToJSON;
20
+ /**
21
+ * Check if a given object implements the RecommendationInfo interface.
22
+ */
23
+ function instanceOfRecommendationInfo(value) {
24
+ return true;
25
+ }
26
+ function RecommendationInfoFromJSON(json) {
27
+ return RecommendationInfoFromJSONTyped(json, false);
28
+ }
29
+ function RecommendationInfoFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
35
+ 'countries': json['countries'] == null ? undefined : json['countries'],
36
+ 'subdivisions': json['subdivisions'] == null ? undefined : json['subdivisions'],
37
+ 'ipAddresses': json['ipAddresses'] == null ? undefined : json['ipAddresses'],
38
+ };
39
+ }
40
+ function RecommendationInfoToJSON(value) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'phoneNumber': value['phoneNumber'],
46
+ 'countries': value['countries'],
47
+ 'subdivisions': value['subdivisions'],
48
+ 'ipAddresses': value['ipAddresses'],
49
+ };
50
+ }
@@ -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.
@@ -23,11 +23,17 @@ export interface ResultCollection {
23
23
  */
24
24
  method: ResultCollectionMethod;
25
25
  /**
26
- * If the method is `PollResult`, this is the key that should be used to poll for the results.
26
+ * The `resultsAccessKey` for the Acceptance Session.
27
+ *
28
+ * This is an encrypted payload which contains the decryption key necessary to access the Session's Data Vault.
29
+ *
30
+ * Save this securely in your systems; it must be passed back with any API call which requires access to the Session's Data Vault.
31
+ *
32
+ * Trinsic cannot access a Session's Data Vault without this key.
27
33
  * @type {string}
28
34
  * @memberof ResultCollection
29
35
  */
30
- resultsAccessKey?: string;
36
+ resultsAccessKey: string;
31
37
  }
32
38
  /**
33
39
  * Check if a given object implements the ResultCollection interface.
@@ -24,6 +24,8 @@ const ResultCollectionMethod_1 = require("./ResultCollectionMethod");
24
24
  function instanceOfResultCollection(value) {
25
25
  if (!('method' in value) || value['method'] === undefined)
26
26
  return false;
27
+ if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined)
28
+ return false;
27
29
  return true;
28
30
  }
29
31
  function ResultCollectionFromJSON(json) {
@@ -35,7 +37,7 @@ function ResultCollectionFromJSONTyped(json, ignoreDiscriminator) {
35
37
  }
36
38
  return {
37
39
  'method': (0, ResultCollectionMethod_1.ResultCollectionMethodFromJSON)(json['method']),
38
- 'resultsAccessKey': json['resultsAccessKey'] == null ? undefined : json['resultsAccessKey'],
40
+ 'resultsAccessKey': json['resultsAccessKey'],
39
41
  };
40
42
  }
41
43
  function ResultCollectionToJSON(value) {
@@ -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,31 @@
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 SmartIdInput
16
+ */
17
+ export interface SmartIdInput {
18
+ /**
19
+ * The user's Smart ID Document Number
20
+ * @type {string}
21
+ * @memberof SmartIdInput
22
+ */
23
+ smartIdDocumentNumber?: string | null;
24
+ }
25
+ /**
26
+ * Check if a given object implements the SmartIdInput interface.
27
+ */
28
+ export declare function instanceOfSmartIdInput(value: object): value is SmartIdInput;
29
+ export declare function SmartIdInputFromJSON(json: any): SmartIdInput;
30
+ export declare function SmartIdInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SmartIdInput;
31
+ export declare function SmartIdInputToJSON(value?: SmartIdInput | null): any;
@@ -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.instanceOfSmartIdInput = instanceOfSmartIdInput;
17
+ exports.SmartIdInputFromJSON = SmartIdInputFromJSON;
18
+ exports.SmartIdInputFromJSONTyped = SmartIdInputFromJSONTyped;
19
+ exports.SmartIdInputToJSON = SmartIdInputToJSON;
20
+ /**
21
+ * Check if a given object implements the SmartIdInput interface.
22
+ */
23
+ function instanceOfSmartIdInput(value) {
24
+ return true;
25
+ }
26
+ function SmartIdInputFromJSON(json) {
27
+ return SmartIdInputFromJSONTyped(json, false);
28
+ }
29
+ function SmartIdInputFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'smartIdDocumentNumber': json['smartIdDocumentNumber'] == null ? undefined : json['smartIdDocumentNumber'],
35
+ };
36
+ }
37
+ function SmartIdInputToJSON(value) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'smartIdDocumentNumber': value['smartIdDocumentNumber'],
43
+ };
44
+ }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Trinsic API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SouthAfricaNidInput
16
+ */
17
+ export interface SouthAfricaNidInput {
18
+ /**
19
+ * The user's full name as it appears in their National ID
20
+ * @type {string}
21
+ * @memberof SouthAfricaNidInput
22
+ */
23
+ fullName: string;
24
+ /**
25
+ * The user's date of birth, in `YYYY-MM-DD` format
26
+ * @type {Date}
27
+ * @memberof SouthAfricaNidInput
28
+ */
29
+ dateOfBirth: Date;
30
+ /**
31
+ * The user's gender as it appears in their National ID (e.g., male, female)
32
+ * @type {string}
33
+ * @memberof SouthAfricaNidInput
34
+ */
35
+ gender: string;
36
+ /**
37
+ * The user's South African National ID number
38
+ * @type {string}
39
+ * @memberof SouthAfricaNidInput
40
+ */
41
+ nationalIdNumber: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the SouthAfricaNidInput interface.
45
+ */
46
+ export declare function instanceOfSouthAfricaNidInput(value: object): value is SouthAfricaNidInput;
47
+ export declare function SouthAfricaNidInputFromJSON(json: any): SouthAfricaNidInput;
48
+ export declare function SouthAfricaNidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SouthAfricaNidInput;
49
+ export declare function SouthAfricaNidInputToJSON(value?: SouthAfricaNidInput | null): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Trinsic API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSouthAfricaNidInput = instanceOfSouthAfricaNidInput;
17
+ exports.SouthAfricaNidInputFromJSON = SouthAfricaNidInputFromJSON;
18
+ exports.SouthAfricaNidInputFromJSONTyped = SouthAfricaNidInputFromJSONTyped;
19
+ exports.SouthAfricaNidInputToJSON = SouthAfricaNidInputToJSON;
20
+ /**
21
+ * Check if a given object implements the SouthAfricaNidInput interface.
22
+ */
23
+ function instanceOfSouthAfricaNidInput(value) {
24
+ if (!('fullName' in value) || value['fullName'] === undefined)
25
+ return false;
26
+ if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined)
27
+ return false;
28
+ if (!('gender' in value) || value['gender'] === undefined)
29
+ return false;
30
+ if (!('nationalIdNumber' in value) || value['nationalIdNumber'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function SouthAfricaNidInputFromJSON(json) {
35
+ return SouthAfricaNidInputFromJSONTyped(json, false);
36
+ }
37
+ function SouthAfricaNidInputFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'fullName': json['fullName'],
43
+ 'dateOfBirth': (new Date(json['dateOfBirth'])),
44
+ 'gender': json['gender'],
45
+ 'nationalIdNumber': json['nationalIdNumber'],
46
+ };
47
+ }
48
+ function SouthAfricaNidInputToJSON(value) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'fullName': value['fullName'],
54
+ 'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0, 10)),
55
+ 'gender': value['gender'],
56
+ 'nationalIdNumber': value['nationalIdNumber'],
57
+ };
58
+ }
@@ -0,0 +1,33 @@
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 SpidInput
16
+ */
17
+ export interface SpidInput {
18
+ /**
19
+ * The ID of the specific IDP to invoke within SPID.
20
+ *
21
+ * If not specified, the user will be prompted to select an IDP.
22
+ * @type {string}
23
+ * @memberof SpidInput
24
+ */
25
+ subProviderId?: string | null;
26
+ }
27
+ /**
28
+ * Check if a given object implements the SpidInput interface.
29
+ */
30
+ export declare function instanceOfSpidInput(value: object): value is SpidInput;
31
+ export declare function SpidInputFromJSON(json: any): SpidInput;
32
+ export declare function SpidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SpidInput;
33
+ export declare function SpidInputToJSON(value?: SpidInput | null): any;
@@ -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.instanceOfSpidInput = instanceOfSpidInput;
17
+ exports.SpidInputFromJSON = SpidInputFromJSON;
18
+ exports.SpidInputFromJSONTyped = SpidInputFromJSONTyped;
19
+ exports.SpidInputToJSON = SpidInputToJSON;
20
+ /**
21
+ * Check if a given object implements the SpidInput interface.
22
+ */
23
+ function instanceOfSpidInput(value) {
24
+ return true;
25
+ }
26
+ function SpidInputFromJSON(json) {
27
+ return SpidInputFromJSONTyped(json, false);
28
+ }
29
+ function SpidInputFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'subProviderId': json['subProviderId'] == null ? undefined : json['subProviderId'],
35
+ };
36
+ }
37
+ function SpidInputToJSON(value) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'subProviderId': value['subProviderId'],
43
+ };
44
+ }
@@ -0,0 +1,54 @@
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
+ * Information about a sub-provider.
14
+ * @export
15
+ * @interface SubProviderMetadata
16
+ */
17
+ export interface SubProviderMetadata {
18
+ /**
19
+ * The ID of the sub-provider.
20
+ *
21
+ * This cannot be used as a standalone Provider ID when creating a Session. It must
22
+ * be passed in via the Provider-specific input.
23
+ * @type {string}
24
+ * @memberof SubProviderMetadata
25
+ */
26
+ id: string;
27
+ /**
28
+ * The name of the sub-provider
29
+ * @type {string}
30
+ * @memberof SubProviderMetadata
31
+ */
32
+ name: string;
33
+ /**
34
+ * Flavor text for the sub-provider
35
+ * @type {string}
36
+ * @memberof SubProviderMetadata
37
+ */
38
+ description: string;
39
+ /**
40
+ * A URL pointing to the logo on Trinsic's CDN.
41
+ *
42
+ * May be a PNG, JPG, or SVG image.
43
+ * @type {string}
44
+ * @memberof SubProviderMetadata
45
+ */
46
+ logoUrl: string;
47
+ }
48
+ /**
49
+ * Check if a given object implements the SubProviderMetadata interface.
50
+ */
51
+ export declare function instanceOfSubProviderMetadata(value: object): value is SubProviderMetadata;
52
+ export declare function SubProviderMetadataFromJSON(json: any): SubProviderMetadata;
53
+ export declare function SubProviderMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubProviderMetadata;
54
+ export declare function SubProviderMetadataToJSON(value?: SubProviderMetadata | null): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Trinsic API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSubProviderMetadata = instanceOfSubProviderMetadata;
17
+ exports.SubProviderMetadataFromJSON = SubProviderMetadataFromJSON;
18
+ exports.SubProviderMetadataFromJSONTyped = SubProviderMetadataFromJSONTyped;
19
+ exports.SubProviderMetadataToJSON = SubProviderMetadataToJSON;
20
+ /**
21
+ * Check if a given object implements the SubProviderMetadata interface.
22
+ */
23
+ function instanceOfSubProviderMetadata(value) {
24
+ if (!('id' in value) || value['id'] === undefined)
25
+ return false;
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('description' in value) || value['description'] === undefined)
29
+ return false;
30
+ if (!('logoUrl' in value) || value['logoUrl'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function SubProviderMetadataFromJSON(json) {
35
+ return SubProviderMetadataFromJSONTyped(json, false);
36
+ }
37
+ function SubProviderMetadataFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'id': json['id'],
43
+ 'name': json['name'],
44
+ 'description': json['description'],
45
+ 'logoUrl': json['logoUrl'],
46
+ };
47
+ }
48
+ function SubProviderMetadataToJSON(value) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'id': value['id'],
54
+ 'name': value['name'],
55
+ 'description': value['description'],
56
+ 'logoUrl': value['logoUrl'],
57
+ };
58
+ }
@@ -0,0 +1,66 @@
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 TrinsicTestDatabaseLookupInput
16
+ */
17
+ export interface TrinsicTestDatabaseLookupInput {
18
+ /**
19
+ * The given name to use for the output of the test Session.
20
+ *
21
+ * This is required; if not provided, Trinsic's Fallback UI will be invoked to collect it
22
+ * from the user.
23
+ *
24
+ * Can be any non-empty value.
25
+ * @type {string}
26
+ * @memberof TrinsicTestDatabaseLookupInput
27
+ */
28
+ givenName?: string | null;
29
+ /**
30
+ * The family name to use for the output of the test Session.
31
+ *
32
+ * This is required; if not provided, Trinsic's Fallback UI will be invoked to collect it
33
+ * from the user.
34
+ *
35
+ * Can be any non-empty value.
36
+ * @type {string}
37
+ * @memberof TrinsicTestDatabaseLookupInput
38
+ */
39
+ familyName?: string | null;
40
+ /**
41
+ * A 6-digit code; must be "123456" for the Session to succeed.
42
+ *
43
+ * This is required; if not provided, Trinsic's Fallback UI will be invoked to collect it
44
+ * from the user.
45
+ *
46
+ * Any other value will cause the Session to fail.
47
+ * @type {string}
48
+ * @memberof TrinsicTestDatabaseLookupInput
49
+ */
50
+ identityCode?: string | null;
51
+ /**
52
+ * An optional selfie image, base64-encoded.
53
+ *
54
+ * Will replace the existing test selfie attachment output if provided.
55
+ * @type {string}
56
+ * @memberof TrinsicTestDatabaseLookupInput
57
+ */
58
+ selfieBase64?: string | null;
59
+ }
60
+ /**
61
+ * Check if a given object implements the TrinsicTestDatabaseLookupInput interface.
62
+ */
63
+ export declare function instanceOfTrinsicTestDatabaseLookupInput(value: object): value is TrinsicTestDatabaseLookupInput;
64
+ export declare function TrinsicTestDatabaseLookupInputFromJSON(json: any): TrinsicTestDatabaseLookupInput;
65
+ export declare function TrinsicTestDatabaseLookupInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrinsicTestDatabaseLookupInput;
66
+ export declare function TrinsicTestDatabaseLookupInputToJSON(value?: TrinsicTestDatabaseLookupInput | null): any;
@@ -0,0 +1,50 @@
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.instanceOfTrinsicTestDatabaseLookupInput = instanceOfTrinsicTestDatabaseLookupInput;
17
+ exports.TrinsicTestDatabaseLookupInputFromJSON = TrinsicTestDatabaseLookupInputFromJSON;
18
+ exports.TrinsicTestDatabaseLookupInputFromJSONTyped = TrinsicTestDatabaseLookupInputFromJSONTyped;
19
+ exports.TrinsicTestDatabaseLookupInputToJSON = TrinsicTestDatabaseLookupInputToJSON;
20
+ /**
21
+ * Check if a given object implements the TrinsicTestDatabaseLookupInput interface.
22
+ */
23
+ function instanceOfTrinsicTestDatabaseLookupInput(value) {
24
+ return true;
25
+ }
26
+ function TrinsicTestDatabaseLookupInputFromJSON(json) {
27
+ return TrinsicTestDatabaseLookupInputFromJSONTyped(json, false);
28
+ }
29
+ function TrinsicTestDatabaseLookupInputFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'givenName': json['givenName'] == null ? undefined : json['givenName'],
35
+ 'familyName': json['familyName'] == null ? undefined : json['familyName'],
36
+ 'identityCode': json['identityCode'] == null ? undefined : json['identityCode'],
37
+ 'selfieBase64': json['selfieBase64'] == null ? undefined : json['selfieBase64'],
38
+ };
39
+ }
40
+ function TrinsicTestDatabaseLookupInputToJSON(value) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'givenName': value['givenName'],
46
+ 'familyName': value['familyName'],
47
+ 'identityCode': value['identityCode'],
48
+ 'selfieBase64': value['selfieBase64'],
49
+ };
50
+ }
@@ -0,0 +1,35 @@
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 TrinsicTestSubProvidersInput
16
+ */
17
+ export interface TrinsicTestSubProvidersInput {
18
+ /**
19
+ * The ID of the specific IDP to invoke within the test federated provider.
20
+ *
21
+ * Valid options are `sub-provider-a` and `sub-provider-b`.
22
+ *
23
+ * If not specified, the user will be prompted to select one.
24
+ * @type {string}
25
+ * @memberof TrinsicTestSubProvidersInput
26
+ */
27
+ subProviderId?: string | null;
28
+ }
29
+ /**
30
+ * Check if a given object implements the TrinsicTestSubProvidersInput interface.
31
+ */
32
+ export declare function instanceOfTrinsicTestSubProvidersInput(value: object): value is TrinsicTestSubProvidersInput;
33
+ export declare function TrinsicTestSubProvidersInputFromJSON(json: any): TrinsicTestSubProvidersInput;
34
+ export declare function TrinsicTestSubProvidersInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrinsicTestSubProvidersInput;
35
+ export declare function TrinsicTestSubProvidersInputToJSON(value?: TrinsicTestSubProvidersInput | null): any;