@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,146 @@
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 { SubProviderMetadata } from './SubProviderMetadata';
13
+ import type { ResultCollectionMethod } from './ResultCollectionMethod';
14
+ import type { IntegrationLaunchMethod } from './IntegrationLaunchMethod';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface ProviderContract
19
+ */
20
+ export interface ProviderContract {
21
+ /**
22
+ * The ID of the Provider for this contract.
23
+ * @type {string}
24
+ * @memberof ProviderContract
25
+ */
26
+ id: string;
27
+ /**
28
+ * The Provider's Name as it appears in Trinsic's Dashboard and Widget
29
+ * @type {string}
30
+ * @memberof ProviderContract
31
+ */
32
+ name: string;
33
+ /**
34
+ * The Provider's description as it appears in Trinsic's Widget.
35
+ *
36
+ * This is flavor text, not a full, human-readable description of the provider.
37
+ * @type {string}
38
+ * @memberof ProviderContract
39
+ */
40
+ description: string;
41
+ /**
42
+ * A URL pointing to the Provider's logo on Trinsic's CDN.
43
+ *
44
+ * May be a PNG, JPG, or SVG image.
45
+ * @type {string}
46
+ * @memberof ProviderContract
47
+ */
48
+ logoUrl: string;
49
+ /**
50
+ * Whether the Provider is available for use in your App.
51
+ *
52
+ * If `false`, you will need to contact Trinsic to enable this Provider for your App.
53
+ * @type {boolean}
54
+ * @memberof ProviderContract
55
+ */
56
+ available: boolean;
57
+ /**
58
+ * The geographies within the Regions the Provider is available.
59
+ * @type {Array<string>}
60
+ * @memberof ProviderContract
61
+ */
62
+ geography: Array<string>;
63
+ /**
64
+ * The regions within which the Provider is available.
65
+ * @type {Array<string>}
66
+ * @memberof ProviderContract
67
+ */
68
+ regions: Array<string>;
69
+ /**
70
+ * Relevant only to Advanced Provider Sessions.
71
+ *
72
+ * The `LaunchMethod` which must be supported to launch the Provider Session in Advanced Provider Sessions.
73
+ * @type {IntegrationLaunchMethod}
74
+ * @memberof ProviderContract
75
+ */
76
+ launchMethod: IntegrationLaunchMethod;
77
+ /**
78
+ * Relevant only to Advanced Provider Sessions.
79
+ *
80
+ * The `CollectionMethod` which must be supported to launch the Provider Session in Advanced Provider Sessions.
81
+ * @type {ResultCollectionMethod}
82
+ * @memberof ProviderContract
83
+ */
84
+ collectionMethod: ResultCollectionMethod;
85
+ /**
86
+ * If `true`, then the results for this Provider may not be available immediately after the user is redirected back
87
+ * to your application. In this case, the `GetSessionResults` API must be called until results are available.
88
+ *
89
+ * This is an uncommon scenario, and typically only applies to Providers which use a biometric check or traditional document scan.
90
+ * @type {boolean}
91
+ * @memberof ProviderContract
92
+ */
93
+ resultsMayBeDelayedAfterRedirect: boolean;
94
+ /**
95
+ * Relevant only to Advanced Provider Sessions.
96
+ *
97
+ * Whether the Provider requires the `RefreshStepContent` capability.
98
+ *
99
+ * For example, Samsung Wallet's deep links expire every 30 seconds, and must be refreshed periodically for a
100
+ * resilient user flow.
101
+ * @type {boolean}
102
+ * @memberof ProviderContract
103
+ */
104
+ hasRefreshableContent: boolean;
105
+ /**
106
+ * Relevant to Hosted Provider Sessions and Advanced Provider Sessions.
107
+ *
108
+ * If `true`, this Provider requires provider-specific input on Session creation.
109
+ * If this input is not provided, Trinsic's Hosted UI will be invoked to collect the input from the user.
110
+ * @type {boolean}
111
+ * @memberof ProviderContract
112
+ */
113
+ requiresInput: boolean;
114
+ /**
115
+ * Whether there exists a Trinsic-hosted UI for this Provider.
116
+ *
117
+ * This is `true` for any Provider which is not a simple, OIDC-like redirect flow.
118
+ * @type {boolean}
119
+ * @memberof ProviderContract
120
+ */
121
+ hasTrinsicInterface: boolean;
122
+ /**
123
+ * Whether this Provider can be fully whitelabeled/OEMed through the Advanced Provider Sessions API.
124
+ *
125
+ * If `false`, the Provider may still be launched through Advanced Provider Sessions;
126
+ * however, it will necessarily require a Trinsic-hosted UI to function.
127
+ * @type {boolean}
128
+ * @memberof ProviderContract
129
+ */
130
+ supportsAdvancedProviderSessions: boolean;
131
+ /**
132
+ * Metadata about the sub-providers which are available for this Provider.
133
+ *
134
+ * For example, Italy's SPID is a Provider which aggregates access to multiple sub-providers.
135
+ * @type {Array<SubProviderMetadata>}
136
+ * @memberof ProviderContract
137
+ */
138
+ subProviders?: Array<SubProviderMetadata> | null;
139
+ }
140
+ /**
141
+ * Check if a given object implements the ProviderContract interface.
142
+ */
143
+ export declare function instanceOfProviderContract(value: object): value is ProviderContract;
144
+ export declare function ProviderContractFromJSON(json: any): ProviderContract;
145
+ export declare function ProviderContractFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderContract;
146
+ export declare function ProviderContractToJSON(value?: ProviderContract | null): any;
@@ -0,0 +1,103 @@
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.instanceOfProviderContract = instanceOfProviderContract;
17
+ exports.ProviderContractFromJSON = ProviderContractFromJSON;
18
+ exports.ProviderContractFromJSONTyped = ProviderContractFromJSONTyped;
19
+ exports.ProviderContractToJSON = ProviderContractToJSON;
20
+ const SubProviderMetadata_1 = require("./SubProviderMetadata");
21
+ const ResultCollectionMethod_1 = require("./ResultCollectionMethod");
22
+ const IntegrationLaunchMethod_1 = require("./IntegrationLaunchMethod");
23
+ /**
24
+ * Check if a given object implements the ProviderContract interface.
25
+ */
26
+ function instanceOfProviderContract(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ if (!('description' in value) || value['description'] === undefined)
32
+ return false;
33
+ if (!('logoUrl' in value) || value['logoUrl'] === undefined)
34
+ return false;
35
+ if (!('available' in value) || value['available'] === undefined)
36
+ return false;
37
+ if (!('geography' in value) || value['geography'] === undefined)
38
+ return false;
39
+ if (!('regions' in value) || value['regions'] === undefined)
40
+ return false;
41
+ if (!('launchMethod' in value) || value['launchMethod'] === undefined)
42
+ return false;
43
+ if (!('collectionMethod' in value) || value['collectionMethod'] === undefined)
44
+ return false;
45
+ if (!('resultsMayBeDelayedAfterRedirect' in value) || value['resultsMayBeDelayedAfterRedirect'] === undefined)
46
+ return false;
47
+ if (!('hasRefreshableContent' in value) || value['hasRefreshableContent'] === undefined)
48
+ return false;
49
+ if (!('requiresInput' in value) || value['requiresInput'] === undefined)
50
+ return false;
51
+ if (!('hasTrinsicInterface' in value) || value['hasTrinsicInterface'] === undefined)
52
+ return false;
53
+ if (!('supportsAdvancedProviderSessions' in value) || value['supportsAdvancedProviderSessions'] === undefined)
54
+ return false;
55
+ return true;
56
+ }
57
+ function ProviderContractFromJSON(json) {
58
+ return ProviderContractFromJSONTyped(json, false);
59
+ }
60
+ function ProviderContractFromJSONTyped(json, ignoreDiscriminator) {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+ 'id': json['id'],
66
+ 'name': json['name'],
67
+ 'description': json['description'],
68
+ 'logoUrl': json['logoUrl'],
69
+ 'available': json['available'],
70
+ 'geography': json['geography'],
71
+ 'regions': json['regions'],
72
+ 'launchMethod': (0, IntegrationLaunchMethod_1.IntegrationLaunchMethodFromJSON)(json['launchMethod']),
73
+ 'collectionMethod': (0, ResultCollectionMethod_1.ResultCollectionMethodFromJSON)(json['collectionMethod']),
74
+ 'resultsMayBeDelayedAfterRedirect': json['resultsMayBeDelayedAfterRedirect'],
75
+ 'hasRefreshableContent': json['hasRefreshableContent'],
76
+ 'requiresInput': json['requiresInput'],
77
+ 'hasTrinsicInterface': json['hasTrinsicInterface'],
78
+ 'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
79
+ 'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataFromJSON)),
80
+ };
81
+ }
82
+ function ProviderContractToJSON(value) {
83
+ if (value == null) {
84
+ return value;
85
+ }
86
+ return {
87
+ 'id': value['id'],
88
+ 'name': value['name'],
89
+ 'description': value['description'],
90
+ 'logoUrl': value['logoUrl'],
91
+ 'available': value['available'],
92
+ 'geography': value['geography'],
93
+ 'regions': value['regions'],
94
+ 'launchMethod': (0, IntegrationLaunchMethod_1.IntegrationLaunchMethodToJSON)(value['launchMethod']),
95
+ 'collectionMethod': (0, ResultCollectionMethod_1.ResultCollectionMethodToJSON)(value['collectionMethod']),
96
+ 'resultsMayBeDelayedAfterRedirect': value['resultsMayBeDelayedAfterRedirect'],
97
+ 'hasRefreshableContent': value['hasRefreshableContent'],
98
+ 'requiresInput': value['requiresInput'],
99
+ 'hasTrinsicInterface': value['hasTrinsicInterface'],
100
+ 'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
101
+ 'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataToJSON)),
102
+ };
103
+ }
@@ -33,12 +33,6 @@ export interface ProviderInfo {
33
33
  * @memberof ProviderInfo
34
34
  */
35
35
  logoUrl: string;
36
- /**
37
- * List of child provider id's where the provider allows deep-launching of a specific provider.
38
- * @type {Array<string>}
39
- * @memberof ProviderInfo
40
- */
41
- childProviderIds?: Array<string>;
42
36
  }
43
37
  /**
44
38
  * Check if a given object implements the ProviderInfo interface.
@@ -40,7 +40,6 @@ function ProviderInfoFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'id': json['id'],
41
41
  'name': json['name'],
42
42
  'logoUrl': json['logoUrl'],
43
- 'childProviderIds': json['childProviderIds'] == null ? undefined : json['childProviderIds'],
44
43
  };
45
44
  }
46
45
  function ProviderInfoToJSON(value) {
@@ -51,6 +50,5 @@ function ProviderInfoToJSON(value) {
51
50
  'id': value['id'],
52
51
  'name': value['name'],
53
52
  'logoUrl': value['logoUrl'],
54
- 'childProviderIds': value['childProviderIds'],
55
53
  };
56
54
  }
@@ -20,19 +20,19 @@ export interface ProviderInformation {
20
20
  * @type {string}
21
21
  * @memberof ProviderInformation
22
22
  */
23
- providerId: string;
23
+ readonly providerId: string;
24
24
  /**
25
25
  *
26
26
  * @type {string}
27
27
  * @memberof ProviderInformation
28
28
  */
29
- providerDisplayName: string;
29
+ readonly providerDisplayName: string;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
33
  * @memberof ProviderInformation
34
34
  */
35
- providerLogo: string;
35
+ readonly providerLogo: string;
36
36
  }
37
37
  /**
38
38
  * Check if a given object implements the ProviderInformation interface.
@@ -40,4 +40,4 @@ export interface ProviderInformation {
40
40
  export declare function instanceOfProviderInformation(value: object): value is ProviderInformation;
41
41
  export declare function ProviderInformationFromJSON(json: any): ProviderInformation;
42
42
  export declare function ProviderInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderInformation;
43
- export declare function ProviderInformationToJSON(value?: ProviderInformation | null): any;
43
+ export declare function ProviderInformationToJSON(value?: Omit<ProviderInformation, 'providerId' | 'providerDisplayName' | 'providerLogo'> | null): any;
@@ -46,9 +46,5 @@ function ProviderInformationToJSON(value) {
46
46
  if (value == null) {
47
47
  return value;
48
48
  }
49
- return {
50
- 'providerId': value['providerId'],
51
- 'providerDisplayName': value['providerDisplayName'],
52
- 'providerLogo': value['providerLogo'],
53
- };
49
+ return {};
54
50
  }
@@ -9,12 +9,23 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { PhilippineQRInput } from './PhilippineQRInput';
13
12
  import type { BangladeshNationalIdInput } from './BangladeshNationalIdInput';
14
- import type { AadhaarInput } from './AadhaarInput';
15
13
  import type { BrazilCpfCheckInput } from './BrazilCpfCheckInput';
14
+ import type { MexicoCurpInput } from './MexicoCurpInput';
16
15
  import type { BrazilDigitalCnhInput } from './BrazilDigitalCnhInput';
16
+ import type { TrinsicTestSubProvidersInput } from './TrinsicTestSubProvidersInput';
17
+ import type { SpidInput } from './SpidInput';
18
+ import type { SouthAfricaNidInput } from './SouthAfricaNidInput';
17
19
  import type { PhilippineMatchInput } from './PhilippineMatchInput';
20
+ import type { PhilippineQRInput } from './PhilippineQRInput';
21
+ import type { AadhaarInput } from './AadhaarInput';
22
+ import type { KenyaNidInput } from './KenyaNidInput';
23
+ import type { NigeriaNinInput } from './NigeriaNinInput';
24
+ import type { SmartIdInput } from './SmartIdInput';
25
+ import type { MobileIdInput } from './MobileIdInput';
26
+ import type { TrinsicTestDatabaseLookupInput } from './TrinsicTestDatabaseLookupInput';
27
+ import type { IndonesiaNikInput } from './IndonesiaNikInput';
28
+ import type { IdinInput } from './IdinInput';
18
29
  /**
19
30
  *
20
31
  * @export
@@ -22,41 +33,111 @@ import type { PhilippineMatchInput } from './PhilippineMatchInput';
22
33
  */
23
34
  export interface ProviderInput {
24
35
  /**
25
- * Input for the `f-india-aadhaar-match` integration
36
+ * Input for the `f-indonesia-nik` provider
37
+ * @type {IndonesiaNikInput}
38
+ * @memberof ProviderInput
39
+ */
40
+ indonesiaNik?: IndonesiaNikInput | null;
41
+ /**
42
+ * Input for the `f-mexico-curp` provider
43
+ * @type {MexicoCurpInput}
44
+ * @memberof ProviderInput
45
+ */
46
+ mexicoCurp?: MexicoCurpInput | null;
47
+ /**
48
+ * Input for the `f-south-africa-nid` provider
49
+ * @type {SouthAfricaNidInput}
50
+ * @memberof ProviderInput
51
+ */
52
+ southAfricaNid?: SouthAfricaNidInput | null;
53
+ /**
54
+ * Input for the `f-kenya-nid` provider
55
+ * @type {KenyaNidInput}
56
+ * @memberof ProviderInput
57
+ */
58
+ kenyaNid?: KenyaNidInput | null;
59
+ /**
60
+ * Input for the `f-nigeria-nin` provider
61
+ * @type {NigeriaNinInput}
62
+ * @memberof ProviderInput
63
+ */
64
+ nigeriaNin?: NigeriaNinInput | null;
65
+ /**
66
+ * Input for the `f-india-aadhaar-match` provider
26
67
  * @type {AadhaarInput}
27
68
  * @memberof ProviderInput
28
69
  */
29
- aadhaar?: AadhaarInput;
70
+ aadhaar?: AadhaarInput | null;
30
71
  /**
31
- * Input for the `bangladesh-nid` integration
72
+ * Input for the `bangladesh-nid` provider
32
73
  * @type {BangladeshNationalIdInput}
33
74
  * @memberof ProviderInput
34
75
  */
35
- bangladeshNationalId?: BangladeshNationalIdInput;
76
+ bangladeshNationalId?: BangladeshNationalIdInput | null;
36
77
  /**
37
- * Input for the `g-brazil-cpf` integration
78
+ * Input for the `g-brazil-cpf` provider
38
79
  * @type {BrazilCpfCheckInput}
39
80
  * @memberof ProviderInput
40
81
  */
41
- brazilCpfCheck?: BrazilCpfCheckInput;
82
+ brazilCpfCheck?: BrazilCpfCheckInput | null;
42
83
  /**
43
- * Input for the `g-brazil-digital-cnh` integration
84
+ * Input for the `g-brazil-digital-cnh` provider
44
85
  * @type {BrazilDigitalCnhInput}
45
86
  * @memberof ProviderInput
46
87
  */
47
- brazilDigitalCnh?: BrazilDigitalCnhInput;
88
+ brazilDigitalCnh?: BrazilDigitalCnhInput | null;
48
89
  /**
49
- * Input for the `b-philsys-biometric` integration
90
+ * Input for the `b-philsys-biometric` provider
50
91
  * @type {PhilippineMatchInput}
51
92
  * @memberof ProviderInput
52
93
  */
53
- philippineMatch?: PhilippineMatchInput;
94
+ philippineMatch?: PhilippineMatchInput | null;
54
95
  /**
55
- * Input for the `b-philippine-qr-digital-national-id` and `b-philippine-qr-ephill-id` integrations
96
+ * Input for the `b-philippine-qr-digital-national-id` and `b-philippine-qr-ephill-id` providers
56
97
  * @type {PhilippineQRInput}
57
98
  * @memberof ProviderInput
58
99
  */
59
- philippineQR?: PhilippineQRInput;
100
+ philippineQR?: PhilippineQRInput | null;
101
+ /**
102
+ * Input for the `smart-id` provider
103
+ * @type {SmartIdInput}
104
+ * @memberof ProviderInput
105
+ */
106
+ smartId?: SmartIdInput | null;
107
+ /**
108
+ * Input for the `mobile-id` provider
109
+ * @type {MobileIdInput}
110
+ * @memberof ProviderInput
111
+ */
112
+ mobileId?: MobileIdInput | null;
113
+ /**
114
+ * Input for the `idin` provider
115
+ * @type {IdinInput}
116
+ * @memberof ProviderInput
117
+ */
118
+ idin?: IdinInput | null;
119
+ /**
120
+ * Input for the `spid` provider
121
+ * @type {SpidInput}
122
+ * @memberof ProviderInput
123
+ */
124
+ spid?: SpidInput | null;
125
+ /**
126
+ * *TEST MODE ONLY.*
127
+ *
128
+ * Input for the `trinsic-test-database-lookup` provider
129
+ * @type {TrinsicTestDatabaseLookupInput}
130
+ * @memberof ProviderInput
131
+ */
132
+ trinsicTestDatabaseLookup?: TrinsicTestDatabaseLookupInput | null;
133
+ /**
134
+ * *TEST MODE ONLY.*
135
+ *
136
+ * Input for the `trinsic-test-sub-providers` provider
137
+ * @type {TrinsicTestSubProvidersInput}
138
+ * @memberof ProviderInput
139
+ */
140
+ trinsicTestSubProviders?: TrinsicTestSubProvidersInput | null;
60
141
  }
61
142
  /**
62
143
  * Check if a given object implements the ProviderInput interface.
@@ -17,12 +17,23 @@ exports.instanceOfProviderInput = instanceOfProviderInput;
17
17
  exports.ProviderInputFromJSON = ProviderInputFromJSON;
18
18
  exports.ProviderInputFromJSONTyped = ProviderInputFromJSONTyped;
19
19
  exports.ProviderInputToJSON = ProviderInputToJSON;
20
- const PhilippineQRInput_1 = require("./PhilippineQRInput");
21
20
  const BangladeshNationalIdInput_1 = require("./BangladeshNationalIdInput");
22
- const AadhaarInput_1 = require("./AadhaarInput");
23
21
  const BrazilCpfCheckInput_1 = require("./BrazilCpfCheckInput");
22
+ const MexicoCurpInput_1 = require("./MexicoCurpInput");
24
23
  const BrazilDigitalCnhInput_1 = require("./BrazilDigitalCnhInput");
24
+ const TrinsicTestSubProvidersInput_1 = require("./TrinsicTestSubProvidersInput");
25
+ const SpidInput_1 = require("./SpidInput");
26
+ const SouthAfricaNidInput_1 = require("./SouthAfricaNidInput");
25
27
  const PhilippineMatchInput_1 = require("./PhilippineMatchInput");
28
+ const PhilippineQRInput_1 = require("./PhilippineQRInput");
29
+ const AadhaarInput_1 = require("./AadhaarInput");
30
+ const KenyaNidInput_1 = require("./KenyaNidInput");
31
+ const NigeriaNinInput_1 = require("./NigeriaNinInput");
32
+ const SmartIdInput_1 = require("./SmartIdInput");
33
+ const MobileIdInput_1 = require("./MobileIdInput");
34
+ const TrinsicTestDatabaseLookupInput_1 = require("./TrinsicTestDatabaseLookupInput");
35
+ const IndonesiaNikInput_1 = require("./IndonesiaNikInput");
36
+ const IdinInput_1 = require("./IdinInput");
26
37
  /**
27
38
  * Check if a given object implements the ProviderInput interface.
28
39
  */
@@ -37,12 +48,23 @@ function ProviderInputFromJSONTyped(json, ignoreDiscriminator) {
37
48
  return json;
38
49
  }
39
50
  return {
51
+ 'indonesiaNik': json['indonesiaNik'] == null ? undefined : (0, IndonesiaNikInput_1.IndonesiaNikInputFromJSON)(json['indonesiaNik']),
52
+ 'mexicoCurp': json['mexicoCurp'] == null ? undefined : (0, MexicoCurpInput_1.MexicoCurpInputFromJSON)(json['mexicoCurp']),
53
+ 'southAfricaNid': json['southAfricaNid'] == null ? undefined : (0, SouthAfricaNidInput_1.SouthAfricaNidInputFromJSON)(json['southAfricaNid']),
54
+ 'kenyaNid': json['kenyaNid'] == null ? undefined : (0, KenyaNidInput_1.KenyaNidInputFromJSON)(json['kenyaNid']),
55
+ 'nigeriaNin': json['nigeriaNin'] == null ? undefined : (0, NigeriaNinInput_1.NigeriaNinInputFromJSON)(json['nigeriaNin']),
40
56
  'aadhaar': json['aadhaar'] == null ? undefined : (0, AadhaarInput_1.AadhaarInputFromJSON)(json['aadhaar']),
41
57
  'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined : (0, BangladeshNationalIdInput_1.BangladeshNationalIdInputFromJSON)(json['bangladeshNationalId']),
42
58
  'brazilCpfCheck': json['brazilCpfCheck'] == null ? undefined : (0, BrazilCpfCheckInput_1.BrazilCpfCheckInputFromJSON)(json['brazilCpfCheck']),
43
59
  'brazilDigitalCnh': json['brazilDigitalCnh'] == null ? undefined : (0, BrazilDigitalCnhInput_1.BrazilDigitalCnhInputFromJSON)(json['brazilDigitalCnh']),
44
60
  'philippineMatch': json['philippineMatch'] == null ? undefined : (0, PhilippineMatchInput_1.PhilippineMatchInputFromJSON)(json['philippineMatch']),
45
61
  'philippineQR': json['philippineQR'] == null ? undefined : (0, PhilippineQRInput_1.PhilippineQRInputFromJSON)(json['philippineQR']),
62
+ 'smartId': json['smartId'] == null ? undefined : (0, SmartIdInput_1.SmartIdInputFromJSON)(json['smartId']),
63
+ 'mobileId': json['mobileId'] == null ? undefined : (0, MobileIdInput_1.MobileIdInputFromJSON)(json['mobileId']),
64
+ 'idin': json['idin'] == null ? undefined : (0, IdinInput_1.IdinInputFromJSON)(json['idin']),
65
+ 'spid': json['spid'] == null ? undefined : (0, SpidInput_1.SpidInputFromJSON)(json['spid']),
66
+ 'trinsicTestDatabaseLookup': json['trinsicTestDatabaseLookup'] == null ? undefined : (0, TrinsicTestDatabaseLookupInput_1.TrinsicTestDatabaseLookupInputFromJSON)(json['trinsicTestDatabaseLookup']),
67
+ 'trinsicTestSubProviders': json['trinsicTestSubProviders'] == null ? undefined : (0, TrinsicTestSubProvidersInput_1.TrinsicTestSubProvidersInputFromJSON)(json['trinsicTestSubProviders']),
46
68
  };
47
69
  }
48
70
  function ProviderInputToJSON(value) {
@@ -50,11 +72,22 @@ function ProviderInputToJSON(value) {
50
72
  return value;
51
73
  }
52
74
  return {
75
+ 'indonesiaNik': (0, IndonesiaNikInput_1.IndonesiaNikInputToJSON)(value['indonesiaNik']),
76
+ 'mexicoCurp': (0, MexicoCurpInput_1.MexicoCurpInputToJSON)(value['mexicoCurp']),
77
+ 'southAfricaNid': (0, SouthAfricaNidInput_1.SouthAfricaNidInputToJSON)(value['southAfricaNid']),
78
+ 'kenyaNid': (0, KenyaNidInput_1.KenyaNidInputToJSON)(value['kenyaNid']),
79
+ 'nigeriaNin': (0, NigeriaNinInput_1.NigeriaNinInputToJSON)(value['nigeriaNin']),
53
80
  'aadhaar': (0, AadhaarInput_1.AadhaarInputToJSON)(value['aadhaar']),
54
81
  'bangladeshNationalId': (0, BangladeshNationalIdInput_1.BangladeshNationalIdInputToJSON)(value['bangladeshNationalId']),
55
82
  'brazilCpfCheck': (0, BrazilCpfCheckInput_1.BrazilCpfCheckInputToJSON)(value['brazilCpfCheck']),
56
83
  'brazilDigitalCnh': (0, BrazilDigitalCnhInput_1.BrazilDigitalCnhInputToJSON)(value['brazilDigitalCnh']),
57
84
  'philippineMatch': (0, PhilippineMatchInput_1.PhilippineMatchInputToJSON)(value['philippineMatch']),
58
85
  'philippineQR': (0, PhilippineQRInput_1.PhilippineQRInputToJSON)(value['philippineQR']),
86
+ 'smartId': (0, SmartIdInput_1.SmartIdInputToJSON)(value['smartId']),
87
+ 'mobileId': (0, MobileIdInput_1.MobileIdInputToJSON)(value['mobileId']),
88
+ 'idin': (0, IdinInput_1.IdinInputToJSON)(value['idin']),
89
+ 'spid': (0, SpidInput_1.SpidInputToJSON)(value['spid']),
90
+ 'trinsicTestDatabaseLookup': (0, TrinsicTestDatabaseLookupInput_1.TrinsicTestDatabaseLookupInputToJSON)(value['trinsicTestDatabaseLookup']),
91
+ 'trinsicTestSubProviders': (0, TrinsicTestSubProvidersInput_1.TrinsicTestSubProvidersInputToJSON)(value['trinsicTestSubProviders']),
59
92
  };
60
93
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { RecommendationInfo } from './RecommendationInfo';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -16,29 +17,11 @@
16
17
  */
17
18
  export interface RecommendRequest {
18
19
  /**
19
- * The phone number of the user you wish to generate a recommendation for. Will be used to look up the user's identity in the network
20
- * @type {string}
20
+ * Information about the user you wish to generate a recommendation for.
21
+ * @type {RecommendationInfo}
21
22
  * @memberof RecommendRequest
22
23
  */
23
- phoneNumber?: string;
24
- /**
25
- * A list of countries, in alpha-2 ISO 3166 format, you wish to specify for the recommendation, this can include the user's country of residence, nationality, etc.
26
- * @type {Array<string>}
27
- * @memberof RecommendRequest
28
- */
29
- countries?: Array<string>;
30
- /**
31
- * If one of the countries has subdivisions, for example the US states, you can specify a list of these to further refine the recommendation (e.g., CA, UT, NY)
32
- * @type {Array<string>}
33
- * @memberof RecommendRequest
34
- */
35
- subdivisions?: Array<string>;
36
- /**
37
- * If true, the recommendation will include providers that are disabled for the app
38
- * @type {boolean}
39
- * @memberof RecommendRequest
40
- */
41
- includeDisabledProviders?: boolean;
24
+ recommendationInfo?: RecommendationInfo | null;
42
25
  }
43
26
  /**
44
27
  * Check if a given object implements the RecommendRequest interface.
@@ -17,6 +17,7 @@ exports.instanceOfRecommendRequest = instanceOfRecommendRequest;
17
17
  exports.RecommendRequestFromJSON = RecommendRequestFromJSON;
18
18
  exports.RecommendRequestFromJSONTyped = RecommendRequestFromJSONTyped;
19
19
  exports.RecommendRequestToJSON = RecommendRequestToJSON;
20
+ const RecommendationInfo_1 = require("./RecommendationInfo");
20
21
  /**
21
22
  * Check if a given object implements the RecommendRequest interface.
22
23
  */
@@ -31,10 +32,7 @@ function RecommendRequestFromJSONTyped(json, ignoreDiscriminator) {
31
32
  return json;
32
33
  }
33
34
  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
- 'includeDisabledProviders': json['includeDisabledProviders'] == null ? undefined : json['includeDisabledProviders'],
35
+ 'recommendationInfo': json['recommendationInfo'] == null ? undefined : (0, RecommendationInfo_1.RecommendationInfoFromJSON)(json['recommendationInfo']),
38
36
  };
39
37
  }
40
38
  function RecommendRequestToJSON(value) {
@@ -42,9 +40,6 @@ function RecommendRequestToJSON(value) {
42
40
  return value;
43
41
  }
44
42
  return {
45
- 'phoneNumber': value['phoneNumber'],
46
- 'countries': value['countries'],
47
- 'subdivisions': value['subdivisions'],
48
- 'includeDisabledProviders': value['includeDisabledProviders'],
43
+ 'recommendationInfo': (0, RecommendationInfo_1.RecommendationInfoToJSON)(value['recommendationInfo']),
49
44
  };
50
45
  }
@@ -0,0 +1,55 @@
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 relating to a user; used to generated Identity Provider recommendations.
14
+ * @export
15
+ * @interface RecommendationInfo
16
+ */
17
+ export interface RecommendationInfo {
18
+ /**
19
+ * The phone number of the user you wish to generate a recommendation for.
20
+ *
21
+ * Will be used to look up the user's identity in the network, as well as to determine the user's geographic location.
22
+ * @type {string}
23
+ * @memberof RecommendationInfo
24
+ */
25
+ phoneNumber?: string | null;
26
+ /**
27
+ * A list of countries, in alpha-2 ISO 3166 format, which the user is related to.
28
+ *
29
+ * This can include the user's country of residence, nationality, etc.
30
+ * @type {Array<string>}
31
+ * @memberof RecommendationInfo
32
+ */
33
+ countries?: Array<string> | null;
34
+ /**
35
+ * If one of the countries has subdivisions (for example: US states), specify those related to the user here (e.g., CA, UT, NY)
36
+ * @type {Array<string>}
37
+ * @memberof RecommendationInfo
38
+ */
39
+ subdivisions?: Array<string> | null;
40
+ /**
41
+ * Any IP addresses related to the user.
42
+ *
43
+ * Will be used to determine the user's geographic location.
44
+ * @type {Array<string>}
45
+ * @memberof RecommendationInfo
46
+ */
47
+ ipAddresses?: Array<string> | null;
48
+ }
49
+ /**
50
+ * Check if a given object implements the RecommendationInfo interface.
51
+ */
52
+ export declare function instanceOfRecommendationInfo(value: object): value is RecommendationInfo;
53
+ export declare function RecommendationInfoFromJSON(json: any): RecommendationInfo;
54
+ export declare function RecommendationInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecommendationInfo;
55
+ export declare function RecommendationInfoToJSON(value?: RecommendationInfo | null): any;