@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,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> | null;
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,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.
@@ -17,17 +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
- const KenyaNidInput_1 = require("./KenyaNidInput");
24
- const NigeriaNinInput_1 = require("./NigeriaNinInput");
25
21
  const BrazilCpfCheckInput_1 = require("./BrazilCpfCheckInput");
26
22
  const MexicoCurpInput_1 = require("./MexicoCurpInput");
27
23
  const BrazilDigitalCnhInput_1 = require("./BrazilDigitalCnhInput");
28
- const IndonesiaNikInput_1 = require("./IndonesiaNikInput");
24
+ const TrinsicTestSubProvidersInput_1 = require("./TrinsicTestSubProvidersInput");
25
+ const SpidInput_1 = require("./SpidInput");
29
26
  const SouthAfricaNidInput_1 = require("./SouthAfricaNidInput");
30
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");
31
37
  /**
32
38
  * Check if a given object implements the ProviderInput interface.
33
39
  */
@@ -53,6 +59,12 @@ function ProviderInputFromJSONTyped(json, ignoreDiscriminator) {
53
59
  'brazilDigitalCnh': json['brazilDigitalCnh'] == null ? undefined : (0, BrazilDigitalCnhInput_1.BrazilDigitalCnhInputFromJSON)(json['brazilDigitalCnh']),
54
60
  'philippineMatch': json['philippineMatch'] == null ? undefined : (0, PhilippineMatchInput_1.PhilippineMatchInputFromJSON)(json['philippineMatch']),
55
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']),
56
68
  };
57
69
  }
58
70
  function ProviderInputToJSON(value) {
@@ -71,5 +83,11 @@ function ProviderInputToJSON(value) {
71
83
  'brazilDigitalCnh': (0, BrazilDigitalCnhInput_1.BrazilDigitalCnhInputToJSON)(value['brazilDigitalCnh']),
72
84
  'philippineMatch': (0, PhilippineMatchInput_1.PhilippineMatchInputToJSON)(value['philippineMatch']),
73
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']),
74
92
  };
75
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,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.
@@ -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,11 +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
- 'ipAddresses': json['ipAddresses'] == null ? undefined : json['ipAddresses'],
38
- 'includeDisabledProviders': json['includeDisabledProviders'] == null ? undefined : json['includeDisabledProviders'],
35
+ 'recommendationInfo': json['recommendationInfo'] == null ? undefined : (0, RecommendationInfo_1.RecommendationInfoFromJSON)(json['recommendationInfo']),
39
36
  };
40
37
  }
41
38
  function RecommendRequestToJSON(value) {
@@ -43,10 +40,6 @@ function RecommendRequestToJSON(value) {
43
40
  return value;
44
41
  }
45
42
  return {
46
- 'phoneNumber': value['phoneNumber'],
47
- 'countries': value['countries'],
48
- 'subdivisions': value['subdivisions'],
49
- 'ipAddresses': value['ipAddresses'],
50
- 'includeDisabledProviders': value['includeDisabledProviders'],
43
+ 'recommendationInfo': (0, RecommendationInfo_1.RecommendationInfoToJSON)(value['recommendationInfo']),
51
44
  };
52
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;
@@ -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
+ }
@@ -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 | null;
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) {
@@ -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;