@trinsic/api 2.0.0-alpha3 → 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 (146) hide show
  1. package/.openapi-generator/FILES +11 -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 +28 -5
  5. package/dist/apis/NetworkApi.js +36 -2
  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 +28 -5
  11. package/dist/esm/apis/NetworkApi.js +37 -3
  12. package/dist/esm/apis/SessionsApi.d.ts +8 -8
  13. package/dist/esm/apis/SessionsApi.js +4 -4
  14. package/dist/esm/models/CreateHostedProviderSessionResponse.d.ts +13 -1
  15. package/dist/esm/models/CreateHostedProviderSessionResponse.js +7 -1
  16. package/dist/esm/models/CreateWidgetSessionRequest.d.ts +6 -5
  17. package/dist/esm/models/CreateWidgetSessionRequest.js +3 -3
  18. package/dist/esm/models/CreateWidgetSessionResponse.d.ts +13 -1
  19. package/dist/esm/models/CreateWidgetSessionResponse.js +7 -1
  20. package/dist/esm/models/IdentityData.d.ts +6 -0
  21. package/dist/esm/models/IdentityData.js +2 -0
  22. package/dist/esm/models/IdinInput.d.ts +33 -0
  23. package/dist/esm/models/IdinInput.js +38 -0
  24. package/dist/esm/models/IntegrationLaunchMethod.d.ts +1 -1
  25. package/dist/esm/models/IntegrationLaunchMethod.js +1 -1
  26. package/dist/esm/models/Language.d.ts +26 -0
  27. package/dist/esm/models/Language.js +42 -0
  28. package/dist/esm/models/ListProviderContractsResponse.d.ts +32 -0
  29. package/dist/esm/models/ListProviderContractsResponse.js +41 -0
  30. package/dist/esm/models/MobileIdInput.d.ts +44 -0
  31. package/dist/esm/models/MobileIdInput.js +43 -0
  32. package/dist/esm/models/ProviderContract.d.ts +146 -0
  33. package/dist/esm/models/ProviderContract.js +97 -0
  34. package/dist/esm/models/ProviderInfo.d.ts +0 -6
  35. package/dist/esm/models/ProviderInfo.js +0 -2
  36. package/dist/esm/models/ProviderInformation.d.ts +4 -4
  37. package/dist/esm/models/ProviderInformation.js +1 -5
  38. package/dist/esm/models/ProviderInput.d.ts +62 -16
  39. package/dist/esm/models/ProviderInput.js +23 -5
  40. package/dist/esm/models/RecommendRequest.d.ts +4 -27
  41. package/dist/esm/models/RecommendRequest.js +3 -10
  42. package/dist/esm/models/RecommendationInfo.d.ts +55 -0
  43. package/dist/esm/models/RecommendationInfo.js +44 -0
  44. package/dist/esm/models/ResultCollection.d.ts +8 -2
  45. package/dist/esm/models/ResultCollection.js +3 -1
  46. package/dist/esm/models/SmartIdInput.d.ts +31 -0
  47. package/dist/esm/models/SmartIdInput.js +38 -0
  48. package/dist/esm/models/SpidInput.d.ts +33 -0
  49. package/dist/esm/models/SpidInput.js +38 -0
  50. package/dist/esm/models/SubProviderMetadata.d.ts +54 -0
  51. package/dist/esm/models/SubProviderMetadata.js +52 -0
  52. package/dist/esm/models/TrinsicTestDatabaseLookupInput.d.ts +66 -0
  53. package/dist/esm/models/TrinsicTestDatabaseLookupInput.js +44 -0
  54. package/dist/esm/models/TrinsicTestSubProvidersInput.d.ts +35 -0
  55. package/dist/esm/models/TrinsicTestSubProvidersInput.js +38 -0
  56. package/dist/esm/models/index.d.ts +11 -3
  57. package/dist/esm/models/index.js +11 -3
  58. package/dist/models/CreateHostedProviderSessionResponse.d.ts +13 -1
  59. package/dist/models/CreateHostedProviderSessionResponse.js +7 -1
  60. package/dist/models/CreateWidgetSessionRequest.d.ts +6 -5
  61. package/dist/models/CreateWidgetSessionRequest.js +3 -3
  62. package/dist/models/CreateWidgetSessionResponse.d.ts +13 -1
  63. package/dist/models/CreateWidgetSessionResponse.js +7 -1
  64. package/dist/models/IdentityData.d.ts +6 -0
  65. package/dist/models/IdentityData.js +2 -0
  66. package/dist/models/IdinInput.d.ts +33 -0
  67. package/dist/models/IdinInput.js +44 -0
  68. package/dist/models/IntegrationLaunchMethod.d.ts +1 -1
  69. package/dist/models/IntegrationLaunchMethod.js +1 -1
  70. package/dist/models/Language.d.ts +26 -0
  71. package/dist/models/Language.js +49 -0
  72. package/dist/models/ListProviderContractsResponse.d.ts +32 -0
  73. package/dist/models/ListProviderContractsResponse.js +47 -0
  74. package/dist/models/MobileIdInput.d.ts +44 -0
  75. package/dist/models/MobileIdInput.js +49 -0
  76. package/dist/models/ProviderContract.d.ts +146 -0
  77. package/dist/models/ProviderContract.js +103 -0
  78. package/dist/models/ProviderInfo.d.ts +0 -6
  79. package/dist/models/ProviderInfo.js +0 -2
  80. package/dist/models/ProviderInformation.d.ts +4 -4
  81. package/dist/models/ProviderInformation.js +1 -5
  82. package/dist/models/ProviderInput.d.ts +62 -16
  83. package/dist/models/ProviderInput.js +23 -5
  84. package/dist/models/RecommendRequest.d.ts +4 -27
  85. package/dist/models/RecommendRequest.js +3 -10
  86. package/dist/models/RecommendationInfo.d.ts +55 -0
  87. package/dist/models/RecommendationInfo.js +50 -0
  88. package/dist/models/ResultCollection.d.ts +8 -2
  89. package/dist/models/ResultCollection.js +3 -1
  90. package/dist/models/SmartIdInput.d.ts +31 -0
  91. package/dist/models/SmartIdInput.js +44 -0
  92. package/dist/models/SpidInput.d.ts +33 -0
  93. package/dist/models/SpidInput.js +44 -0
  94. package/dist/models/SubProviderMetadata.d.ts +54 -0
  95. package/dist/models/SubProviderMetadata.js +58 -0
  96. package/dist/models/TrinsicTestDatabaseLookupInput.d.ts +66 -0
  97. package/dist/models/TrinsicTestDatabaseLookupInput.js +50 -0
  98. package/dist/models/TrinsicTestSubProvidersInput.d.ts +35 -0
  99. package/dist/models/TrinsicTestSubProvidersInput.js +44 -0
  100. package/dist/models/index.d.ts +11 -3
  101. package/dist/models/index.js +11 -3
  102. package/package.json +1 -1
  103. package/src/apis/AttachmentsApi.ts +4 -4
  104. package/src/apis/NetworkApi.ts +58 -4
  105. package/src/apis/SessionsApi.ts +8 -8
  106. package/src/models/BrazilDigitalCnhInput.ts +8 -8
  107. package/src/models/CreateAdvancedProviderSessionRequest.ts +26 -26
  108. package/src/models/CreateHostedProviderSessionResponse.ts +24 -8
  109. package/src/models/CreateWidgetSessionRequest.ts +16 -15
  110. package/src/models/CreateWidgetSessionResponse.ts +22 -6
  111. package/src/models/IdentityData.ts +8 -0
  112. package/src/models/IdinInput.ts +62 -0
  113. package/src/models/IntegrationLaunchMethod.ts +1 -1
  114. package/src/models/Language.ts +51 -0
  115. package/src/models/ListProviderContractsResponse.ts +68 -0
  116. package/src/models/MobileIdInput.ts +85 -0
  117. package/src/models/ProviderContract.ts +235 -0
  118. package/src/models/ProviderInfo.ts +0 -8
  119. package/src/models/ProviderInformation.ts +4 -7
  120. package/src/models/ProviderInput.ts +128 -40
  121. package/src/models/RecommendRequest.ts +12 -37
  122. package/src/models/RecommendationInfo.ts +90 -0
  123. package/src/models/ResultCollection.ts +10 -3
  124. package/src/models/Session.ts +7 -7
  125. package/src/models/SmartIdInput.ts +60 -0
  126. package/src/models/SpidInput.ts +62 -0
  127. package/src/models/StepRefreshInfo.ts +2 -2
  128. package/src/models/SubProviderMetadata.ts +93 -0
  129. package/src/models/TrinsicTestDatabaseLookupInput.ts +101 -0
  130. package/src/models/TrinsicTestSubProvidersInput.ts +64 -0
  131. package/src/models/index.ts +11 -3
  132. package/dist/esm/models/KnownAddress.d.ts +0 -74
  133. package/dist/esm/models/KnownAddress.js +0 -52
  134. package/dist/esm/models/KnownIdentityData.d.ts +0 -34
  135. package/dist/esm/models/KnownIdentityData.js +0 -39
  136. package/dist/esm/models/KnownPersonData.d.ts +0 -74
  137. package/dist/esm/models/KnownPersonData.js +0 -53
  138. package/dist/models/KnownAddress.d.ts +0 -74
  139. package/dist/models/KnownAddress.js +0 -58
  140. package/dist/models/KnownIdentityData.d.ts +0 -34
  141. package/dist/models/KnownIdentityData.js +0 -45
  142. package/dist/models/KnownPersonData.d.ts +0 -74
  143. package/dist/models/KnownPersonData.js +0 -59
  144. package/src/models/KnownAddress.ts +0 -117
  145. package/src/models/KnownIdentityData.ts +0 -69
  146. 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,97 @@
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
+ import { SubProviderMetadataFromJSON, SubProviderMetadataToJSON, } from './SubProviderMetadata';
15
+ import { ResultCollectionMethodFromJSON, ResultCollectionMethodToJSON, } from './ResultCollectionMethod';
16
+ import { IntegrationLaunchMethodFromJSON, IntegrationLaunchMethodToJSON, } from './IntegrationLaunchMethod';
17
+ /**
18
+ * Check if a given object implements the ProviderContract interface.
19
+ */
20
+ export function instanceOfProviderContract(value) {
21
+ if (!('id' in value) || value['id'] === undefined)
22
+ return false;
23
+ if (!('name' in value) || value['name'] === undefined)
24
+ return false;
25
+ if (!('description' in value) || value['description'] === undefined)
26
+ return false;
27
+ if (!('logoUrl' in value) || value['logoUrl'] === undefined)
28
+ return false;
29
+ if (!('available' in value) || value['available'] === undefined)
30
+ return false;
31
+ if (!('geography' in value) || value['geography'] === undefined)
32
+ return false;
33
+ if (!('regions' in value) || value['regions'] === undefined)
34
+ return false;
35
+ if (!('launchMethod' in value) || value['launchMethod'] === undefined)
36
+ return false;
37
+ if (!('collectionMethod' in value) || value['collectionMethod'] === undefined)
38
+ return false;
39
+ if (!('resultsMayBeDelayedAfterRedirect' in value) || value['resultsMayBeDelayedAfterRedirect'] === undefined)
40
+ return false;
41
+ if (!('hasRefreshableContent' in value) || value['hasRefreshableContent'] === undefined)
42
+ return false;
43
+ if (!('requiresInput' in value) || value['requiresInput'] === undefined)
44
+ return false;
45
+ if (!('hasTrinsicInterface' in value) || value['hasTrinsicInterface'] === undefined)
46
+ return false;
47
+ if (!('supportsAdvancedProviderSessions' in value) || value['supportsAdvancedProviderSessions'] === undefined)
48
+ return false;
49
+ return true;
50
+ }
51
+ export function ProviderContractFromJSON(json) {
52
+ return ProviderContractFromJSONTyped(json, false);
53
+ }
54
+ export function ProviderContractFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'id': json['id'],
60
+ 'name': json['name'],
61
+ 'description': json['description'],
62
+ 'logoUrl': json['logoUrl'],
63
+ 'available': json['available'],
64
+ 'geography': json['geography'],
65
+ 'regions': json['regions'],
66
+ 'launchMethod': IntegrationLaunchMethodFromJSON(json['launchMethod']),
67
+ 'collectionMethod': ResultCollectionMethodFromJSON(json['collectionMethod']),
68
+ 'resultsMayBeDelayedAfterRedirect': json['resultsMayBeDelayedAfterRedirect'],
69
+ 'hasRefreshableContent': json['hasRefreshableContent'],
70
+ 'requiresInput': json['requiresInput'],
71
+ 'hasTrinsicInterface': json['hasTrinsicInterface'],
72
+ 'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
73
+ 'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadataFromJSON)),
74
+ };
75
+ }
76
+ export function ProviderContractToJSON(value) {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+ return {
81
+ 'id': value['id'],
82
+ 'name': value['name'],
83
+ 'description': value['description'],
84
+ 'logoUrl': value['logoUrl'],
85
+ 'available': value['available'],
86
+ 'geography': value['geography'],
87
+ 'regions': value['regions'],
88
+ 'launchMethod': IntegrationLaunchMethodToJSON(value['launchMethod']),
89
+ 'collectionMethod': ResultCollectionMethodToJSON(value['collectionMethod']),
90
+ 'resultsMayBeDelayedAfterRedirect': value['resultsMayBeDelayedAfterRedirect'],
91
+ 'hasRefreshableContent': value['hasRefreshableContent'],
92
+ 'requiresInput': value['requiresInput'],
93
+ 'hasTrinsicInterface': value['hasTrinsicInterface'],
94
+ 'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
95
+ 'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadataToJSON)),
96
+ };
97
+ }
@@ -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> | null;
42
36
  }
43
37
  /**
44
38
  * Check if a given object implements the ProviderInfo interface.
@@ -34,7 +34,6 @@ export function ProviderInfoFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'id': json['id'],
35
35
  'name': json['name'],
36
36
  'logoUrl': json['logoUrl'],
37
- 'childProviderIds': json['childProviderIds'] == null ? undefined : json['childProviderIds'],
38
37
  };
39
38
  }
40
39
  export function ProviderInfoToJSON(value) {
@@ -45,6 +44,5 @@ export function ProviderInfoToJSON(value) {
45
44
  'id': value['id'],
46
45
  'name': value['name'],
47
46
  'logoUrl': value['logoUrl'],
48
- 'childProviderIds': value['childProviderIds'],
49
47
  };
50
48
  }
@@ -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;
@@ -40,9 +40,5 @@ export function ProviderInformationToJSON(value) {
40
40
  if (value == null) {
41
41
  return value;
42
42
  }
43
- return {
44
- 'providerId': value['providerId'],
45
- 'providerDisplayName': value['providerDisplayName'],
46
- 'providerLogo': value['providerLogo'],
47
- };
43
+ return {};
48
44
  }
@@ -9,17 +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
- import type { KenyaNidInput } from './KenyaNidInput';
16
- import type { NigeriaNinInput } from './NigeriaNinInput';
17
13
  import type { BrazilCpfCheckInput } from './BrazilCpfCheckInput';
18
14
  import type { MexicoCurpInput } from './MexicoCurpInput';
19
15
  import type { BrazilDigitalCnhInput } from './BrazilDigitalCnhInput';
20
- import type { IndonesiaNikInput } from './IndonesiaNikInput';
16
+ import type { TrinsicTestSubProvidersInput } from './TrinsicTestSubProvidersInput';
17
+ import type { SpidInput } from './SpidInput';
21
18
  import type { SouthAfricaNidInput } from './SouthAfricaNidInput';
22
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';
23
29
  /**
24
30
  *
25
31
  * @export
@@ -27,71 +33,111 @@ import type { PhilippineMatchInput } from './PhilippineMatchInput';
27
33
  */
28
34
  export interface ProviderInput {
29
35
  /**
30
- * Input for the `f-indonesia-nik` integration
36
+ * Input for the `f-indonesia-nik` provider
31
37
  * @type {IndonesiaNikInput}
32
38
  * @memberof ProviderInput
33
39
  */
34
40
  indonesiaNik?: IndonesiaNikInput | null;
35
41
  /**
36
- * Input for the `f-mexico-curp` integration
42
+ * Input for the `f-mexico-curp` provider
37
43
  * @type {MexicoCurpInput}
38
44
  * @memberof ProviderInput
39
45
  */
40
46
  mexicoCurp?: MexicoCurpInput | null;
41
47
  /**
42
- * Input for the `f-south-africa-nid` integration
48
+ * Input for the `f-south-africa-nid` provider
43
49
  * @type {SouthAfricaNidInput}
44
50
  * @memberof ProviderInput
45
51
  */
46
52
  southAfricaNid?: SouthAfricaNidInput | null;
47
53
  /**
48
- * Input for the `f-kenya-nid` integration
54
+ * Input for the `f-kenya-nid` provider
49
55
  * @type {KenyaNidInput}
50
56
  * @memberof ProviderInput
51
57
  */
52
58
  kenyaNid?: KenyaNidInput | null;
53
59
  /**
54
- * Input for the `f-nigeria-nin` integration
60
+ * Input for the `f-nigeria-nin` provider
55
61
  * @type {NigeriaNinInput}
56
62
  * @memberof ProviderInput
57
63
  */
58
64
  nigeriaNin?: NigeriaNinInput | null;
59
65
  /**
60
- * Input for the `f-india-aadhaar-match` integration
66
+ * Input for the `f-india-aadhaar-match` provider
61
67
  * @type {AadhaarInput}
62
68
  * @memberof ProviderInput
63
69
  */
64
70
  aadhaar?: AadhaarInput | null;
65
71
  /**
66
- * Input for the `bangladesh-nid` integration
72
+ * Input for the `bangladesh-nid` provider
67
73
  * @type {BangladeshNationalIdInput}
68
74
  * @memberof ProviderInput
69
75
  */
70
76
  bangladeshNationalId?: BangladeshNationalIdInput | null;
71
77
  /**
72
- * Input for the `g-brazil-cpf` integration
78
+ * Input for the `g-brazil-cpf` provider
73
79
  * @type {BrazilCpfCheckInput}
74
80
  * @memberof ProviderInput
75
81
  */
76
82
  brazilCpfCheck?: BrazilCpfCheckInput | null;
77
83
  /**
78
- * Input for the `g-brazil-digital-cnh` integration
84
+ * Input for the `g-brazil-digital-cnh` provider
79
85
  * @type {BrazilDigitalCnhInput}
80
86
  * @memberof ProviderInput
81
87
  */
82
88
  brazilDigitalCnh?: BrazilDigitalCnhInput | null;
83
89
  /**
84
- * Input for the `b-philsys-biometric` integration
90
+ * Input for the `b-philsys-biometric` provider
85
91
  * @type {PhilippineMatchInput}
86
92
  * @memberof ProviderInput
87
93
  */
88
94
  philippineMatch?: PhilippineMatchInput | null;
89
95
  /**
90
- * 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
91
97
  * @type {PhilippineQRInput}
92
98
  * @memberof ProviderInput
93
99
  */
94
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;
95
141
  }
96
142
  /**
97
143
  * Check if a given object implements the ProviderInput interface.
@@ -11,17 +11,23 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { PhilippineQRInputFromJSON, PhilippineQRInputToJSON, } from './PhilippineQRInput';
15
14
  import { BangladeshNationalIdInputFromJSON, BangladeshNationalIdInputToJSON, } from './BangladeshNationalIdInput';
16
- import { AadhaarInputFromJSON, AadhaarInputToJSON, } from './AadhaarInput';
17
- import { KenyaNidInputFromJSON, KenyaNidInputToJSON, } from './KenyaNidInput';
18
- import { NigeriaNinInputFromJSON, NigeriaNinInputToJSON, } from './NigeriaNinInput';
19
15
  import { BrazilCpfCheckInputFromJSON, BrazilCpfCheckInputToJSON, } from './BrazilCpfCheckInput';
20
16
  import { MexicoCurpInputFromJSON, MexicoCurpInputToJSON, } from './MexicoCurpInput';
21
17
  import { BrazilDigitalCnhInputFromJSON, BrazilDigitalCnhInputToJSON, } from './BrazilDigitalCnhInput';
22
- import { IndonesiaNikInputFromJSON, IndonesiaNikInputToJSON, } from './IndonesiaNikInput';
18
+ import { TrinsicTestSubProvidersInputFromJSON, TrinsicTestSubProvidersInputToJSON, } from './TrinsicTestSubProvidersInput';
19
+ import { SpidInputFromJSON, SpidInputToJSON, } from './SpidInput';
23
20
  import { SouthAfricaNidInputFromJSON, SouthAfricaNidInputToJSON, } from './SouthAfricaNidInput';
24
21
  import { PhilippineMatchInputFromJSON, PhilippineMatchInputToJSON, } from './PhilippineMatchInput';
22
+ import { PhilippineQRInputFromJSON, PhilippineQRInputToJSON, } from './PhilippineQRInput';
23
+ import { AadhaarInputFromJSON, AadhaarInputToJSON, } from './AadhaarInput';
24
+ import { KenyaNidInputFromJSON, KenyaNidInputToJSON, } from './KenyaNidInput';
25
+ import { NigeriaNinInputFromJSON, NigeriaNinInputToJSON, } from './NigeriaNinInput';
26
+ import { SmartIdInputFromJSON, SmartIdInputToJSON, } from './SmartIdInput';
27
+ import { MobileIdInputFromJSON, MobileIdInputToJSON, } from './MobileIdInput';
28
+ import { TrinsicTestDatabaseLookupInputFromJSON, TrinsicTestDatabaseLookupInputToJSON, } from './TrinsicTestDatabaseLookupInput';
29
+ import { IndonesiaNikInputFromJSON, IndonesiaNikInputToJSON, } from './IndonesiaNikInput';
30
+ import { IdinInputFromJSON, IdinInputToJSON, } from './IdinInput';
25
31
  /**
26
32
  * Check if a given object implements the ProviderInput interface.
27
33
  */
@@ -47,6 +53,12 @@ export function ProviderInputFromJSONTyped(json, ignoreDiscriminator) {
47
53
  'brazilDigitalCnh': json['brazilDigitalCnh'] == null ? undefined : BrazilDigitalCnhInputFromJSON(json['brazilDigitalCnh']),
48
54
  'philippineMatch': json['philippineMatch'] == null ? undefined : PhilippineMatchInputFromJSON(json['philippineMatch']),
49
55
  'philippineQR': json['philippineQR'] == null ? undefined : PhilippineQRInputFromJSON(json['philippineQR']),
56
+ 'smartId': json['smartId'] == null ? undefined : SmartIdInputFromJSON(json['smartId']),
57
+ 'mobileId': json['mobileId'] == null ? undefined : MobileIdInputFromJSON(json['mobileId']),
58
+ 'idin': json['idin'] == null ? undefined : IdinInputFromJSON(json['idin']),
59
+ 'spid': json['spid'] == null ? undefined : SpidInputFromJSON(json['spid']),
60
+ 'trinsicTestDatabaseLookup': json['trinsicTestDatabaseLookup'] == null ? undefined : TrinsicTestDatabaseLookupInputFromJSON(json['trinsicTestDatabaseLookup']),
61
+ 'trinsicTestSubProviders': json['trinsicTestSubProviders'] == null ? undefined : TrinsicTestSubProvidersInputFromJSON(json['trinsicTestSubProviders']),
50
62
  };
51
63
  }
52
64
  export function ProviderInputToJSON(value) {
@@ -65,5 +77,11 @@ export function ProviderInputToJSON(value) {
65
77
  'brazilDigitalCnh': BrazilDigitalCnhInputToJSON(value['brazilDigitalCnh']),
66
78
  'philippineMatch': PhilippineMatchInputToJSON(value['philippineMatch']),
67
79
  'philippineQR': PhilippineQRInputToJSON(value['philippineQR']),
80
+ 'smartId': SmartIdInputToJSON(value['smartId']),
81
+ 'mobileId': MobileIdInputToJSON(value['mobileId']),
82
+ 'idin': IdinInputToJSON(value['idin']),
83
+ 'spid': SpidInputToJSON(value['spid']),
84
+ 'trinsicTestDatabaseLookup': TrinsicTestDatabaseLookupInputToJSON(value['trinsicTestDatabaseLookup']),
85
+ 'trinsicTestSubProviders': TrinsicTestSubProvidersInputToJSON(value['trinsicTestSubProviders']),
68
86
  };
69
87
  }
@@ -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,35 +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 | null;
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> | null;
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> | null;
36
- /**
37
- * Provide the IP addresses of the user you wish to generate a recommendation for. Will be used to look up the user's geographic location.
38
- * @type {Array<string>}
39
- * @memberof RecommendRequest
40
- */
41
- ipAddresses?: Array<string> | null;
42
- /**
43
- * If true, the recommendation will include providers that are disabled for the app
44
- * @type {boolean}
45
- * @memberof RecommendRequest
46
- */
47
- includeDisabledProviders?: boolean | null;
24
+ recommendationInfo?: RecommendationInfo | null;
48
25
  }
49
26
  /**
50
27
  * Check if a given object implements the RecommendRequest interface.
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { RecommendationInfoFromJSON, RecommendationInfoToJSON, } from './RecommendationInfo';
14
15
  /**
15
16
  * Check if a given object implements the RecommendRequest interface.
16
17
  */
@@ -25,11 +26,7 @@ export function RecommendRequestFromJSONTyped(json, ignoreDiscriminator) {
25
26
  return json;
26
27
  }
27
28
  return {
28
- 'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
29
- 'countries': json['countries'] == null ? undefined : json['countries'],
30
- 'subdivisions': json['subdivisions'] == null ? undefined : json['subdivisions'],
31
- 'ipAddresses': json['ipAddresses'] == null ? undefined : json['ipAddresses'],
32
- 'includeDisabledProviders': json['includeDisabledProviders'] == null ? undefined : json['includeDisabledProviders'],
29
+ 'recommendationInfo': json['recommendationInfo'] == null ? undefined : RecommendationInfoFromJSON(json['recommendationInfo']),
33
30
  };
34
31
  }
35
32
  export function RecommendRequestToJSON(value) {
@@ -37,10 +34,6 @@ export function RecommendRequestToJSON(value) {
37
34
  return value;
38
35
  }
39
36
  return {
40
- 'phoneNumber': value['phoneNumber'],
41
- 'countries': value['countries'],
42
- 'subdivisions': value['subdivisions'],
43
- 'ipAddresses': value['ipAddresses'],
44
- 'includeDisabledProviders': value['includeDisabledProviders'],
37
+ 'recommendationInfo': RecommendationInfoToJSON(value['recommendationInfo']),
45
38
  };
46
39
  }
@@ -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;