@trinsic/api 3.0.1 → 3.0.2-preview1

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 (205) hide show
  1. package/.openapi-generator/FILES +27 -0
  2. package/dist/apis/ProvidersApi.d.ts +28 -1
  3. package/dist/apis/ProvidersApi.js +37 -0
  4. package/dist/apis/VerificationProfilesApi.d.ts +6 -2
  5. package/dist/apis/VerificationProfilesApi.js +8 -2
  6. package/dist/esm/apis/ProvidersApi.d.ts +28 -1
  7. package/dist/esm/apis/ProvidersApi.js +38 -1
  8. package/dist/esm/apis/VerificationProfilesApi.d.ts +6 -2
  9. package/dist/esm/apis/VerificationProfilesApi.js +8 -2
  10. package/dist/esm/models/AadhaarClaims.d.ts +125 -0
  11. package/dist/esm/models/AadhaarClaims.js +69 -0
  12. package/dist/esm/models/AadhaarLanguage.d.ts +55 -0
  13. package/dist/esm/models/AadhaarLanguage.js +44 -0
  14. package/dist/esm/models/AadhaarLocalizedClaims.d.ts +99 -0
  15. package/dist/esm/models/AadhaarLocalizedClaims.js +64 -0
  16. package/dist/esm/models/AppleWalletInput.d.ts +13 -0
  17. package/dist/esm/models/AppleWalletInput.js +3 -0
  18. package/dist/esm/models/ConnectIdAddress.d.ts +58 -0
  19. package/dist/esm/models/ConnectIdAddress.js +49 -0
  20. package/dist/esm/models/ConnectIdAgeVerification.d.ts +38 -0
  21. package/dist/esm/models/ConnectIdAgeVerification.js +43 -0
  22. package/dist/esm/models/ConnectIdBeneficiaryAccount.d.ts +52 -0
  23. package/dist/esm/models/ConnectIdBeneficiaryAccount.js +47 -0
  24. package/dist/esm/models/ConnectIdProviderOutput.d.ts +97 -0
  25. package/dist/esm/models/ConnectIdProviderOutput.js +64 -0
  26. package/dist/esm/models/CzechMojeIdAddressOutput.d.ts +62 -0
  27. package/dist/esm/models/CzechMojeIdAddressOutput.js +51 -0
  28. package/dist/esm/models/CzechMojeIdProviderOutput.d.ts +177 -0
  29. package/dist/esm/models/CzechMojeIdProviderOutput.js +86 -0
  30. package/dist/esm/models/DigilockerAadhaarProviderOutput.d.ts +82 -0
  31. package/dist/esm/models/DigilockerAadhaarProviderOutput.js +57 -0
  32. package/dist/esm/models/FaydaProviderOutput.d.ts +20 -0
  33. package/dist/esm/models/FaydaProviderOutput.js +6 -0
  34. package/dist/esm/models/FinnishTrustNetworkProviderOutput.d.ts +123 -0
  35. package/dist/esm/models/FinnishTrustNetworkProviderOutput.js +61 -0
  36. package/dist/esm/models/FranceIdentiteInput.d.ts +35 -0
  37. package/dist/esm/models/FranceIdentiteInput.js +42 -0
  38. package/dist/esm/models/FranceIdentiteProviderOutput.d.ts +33 -0
  39. package/dist/esm/models/FranceIdentiteProviderOutput.js +44 -0
  40. package/dist/esm/models/FrejaIndirectProviderOutput.d.ts +53 -0
  41. package/dist/esm/models/FrejaIndirectProviderOutput.js +55 -0
  42. package/dist/esm/models/FrejaProviderOutput.d.ts +103 -11
  43. package/dist/esm/models/FrejaProviderOutput.js +38 -16
  44. package/dist/esm/models/GetProviderResponse.d.ts +33 -0
  45. package/dist/esm/models/GetProviderResponse.js +44 -0
  46. package/dist/esm/models/GoogleWalletInput.d.ts +11 -0
  47. package/dist/esm/models/GoogleWalletInput.js +3 -0
  48. package/dist/esm/models/IntegrationStep.d.ts +1 -1
  49. package/dist/esm/models/NigeriaNinLookup2ProviderOutput.d.ts +112 -0
  50. package/dist/esm/models/NigeriaNinLookup2ProviderOutput.js +69 -0
  51. package/dist/esm/models/NorwegianBankIdProviderOutput.d.ts +97 -0
  52. package/dist/esm/models/NorwegianBankIdProviderOutput.js +55 -0
  53. package/dist/esm/models/OneIdProviderAddress.d.ts +56 -0
  54. package/dist/esm/models/OneIdProviderAddress.js +49 -0
  55. package/dist/esm/models/OneIdProviderOutput.d.ts +63 -0
  56. package/dist/esm/models/OneIdProviderOutput.js +52 -0
  57. package/dist/esm/models/OutputFrejaAddress.d.ts +50 -0
  58. package/dist/esm/models/OutputFrejaAddress.js +47 -0
  59. package/dist/esm/models/OutputFrejaDocument.d.ts +56 -0
  60. package/dist/esm/models/OutputFrejaDocument.js +47 -0
  61. package/dist/esm/models/PhilippinesDigitalNidProviderOutput.d.ts +64 -0
  62. package/dist/esm/models/PhilippinesDigitalNidProviderOutput.js +20 -0
  63. package/dist/esm/models/PhilippinesPhysicalNidProviderOutput.d.ts +54 -1
  64. package/dist/esm/models/PhilippinesPhysicalNidProviderOutput.js +16 -0
  65. package/dist/esm/models/ProviderInput.d.ts +21 -0
  66. package/dist/esm/models/ProviderInput.js +9 -0
  67. package/dist/esm/models/ProviderOutput.d.ts +82 -3
  68. package/dist/esm/models/ProviderOutput.js +35 -2
  69. package/dist/esm/models/Raw18013DocumentRequest.d.ts +60 -0
  70. package/dist/esm/models/Raw18013DocumentRequest.js +47 -0
  71. package/dist/esm/models/Raw18013RequestInput.d.ts +38 -0
  72. package/dist/esm/models/Raw18013RequestInput.js +44 -0
  73. package/dist/esm/models/RecommendProvidersResponse.d.ts +6 -0
  74. package/dist/esm/models/RecommendProvidersResponse.js +4 -0
  75. package/dist/esm/models/SamsungWalletInput.d.ts +37 -0
  76. package/dist/esm/models/SamsungWalletInput.js +42 -0
  77. package/dist/esm/models/UkEvisaLookupInput.d.ts +38 -0
  78. package/dist/esm/models/UkEvisaLookupInput.js +47 -0
  79. package/dist/esm/models/UnitedKingdomEvisaProviderOutput.d.ts +106 -0
  80. package/dist/esm/models/UnitedKingdomEvisaProviderOutput.js +61 -0
  81. package/dist/esm/models/VerificationProfileResponse.d.ts +6 -0
  82. package/dist/esm/models/VerificationProfileResponse.js +4 -0
  83. package/dist/esm/models/YotiDeeplinkProviderOutput.d.ts +112 -0
  84. package/dist/esm/models/YotiDeeplinkProviderOutput.js +65 -0
  85. package/dist/esm/models/index.d.ts +27 -0
  86. package/dist/esm/models/index.js +27 -0
  87. package/dist/models/AadhaarClaims.d.ts +125 -0
  88. package/dist/models/AadhaarClaims.js +76 -0
  89. package/dist/models/AadhaarLanguage.d.ts +55 -0
  90. package/dist/models/AadhaarLanguage.js +51 -0
  91. package/dist/models/AadhaarLocalizedClaims.d.ts +99 -0
  92. package/dist/models/AadhaarLocalizedClaims.js +71 -0
  93. package/dist/models/AppleWalletInput.d.ts +13 -0
  94. package/dist/models/AppleWalletInput.js +3 -0
  95. package/dist/models/ConnectIdAddress.d.ts +58 -0
  96. package/dist/models/ConnectIdAddress.js +56 -0
  97. package/dist/models/ConnectIdAgeVerification.d.ts +38 -0
  98. package/dist/models/ConnectIdAgeVerification.js +50 -0
  99. package/dist/models/ConnectIdBeneficiaryAccount.d.ts +52 -0
  100. package/dist/models/ConnectIdBeneficiaryAccount.js +54 -0
  101. package/dist/models/ConnectIdProviderOutput.d.ts +97 -0
  102. package/dist/models/ConnectIdProviderOutput.js +71 -0
  103. package/dist/models/CzechMojeIdAddressOutput.d.ts +62 -0
  104. package/dist/models/CzechMojeIdAddressOutput.js +58 -0
  105. package/dist/models/CzechMojeIdProviderOutput.d.ts +177 -0
  106. package/dist/models/CzechMojeIdProviderOutput.js +93 -0
  107. package/dist/models/DigilockerAadhaarProviderOutput.d.ts +82 -0
  108. package/dist/models/DigilockerAadhaarProviderOutput.js +64 -0
  109. package/dist/models/FaydaProviderOutput.d.ts +20 -0
  110. package/dist/models/FaydaProviderOutput.js +6 -0
  111. package/dist/models/FinnishTrustNetworkProviderOutput.d.ts +123 -0
  112. package/dist/models/FinnishTrustNetworkProviderOutput.js +68 -0
  113. package/dist/models/FranceIdentiteInput.d.ts +35 -0
  114. package/dist/models/FranceIdentiteInput.js +49 -0
  115. package/dist/models/FranceIdentiteProviderOutput.d.ts +33 -0
  116. package/dist/models/FranceIdentiteProviderOutput.js +51 -0
  117. package/dist/models/FrejaIndirectProviderOutput.d.ts +53 -0
  118. package/dist/models/FrejaIndirectProviderOutput.js +62 -0
  119. package/dist/models/FrejaProviderOutput.d.ts +103 -11
  120. package/dist/models/FrejaProviderOutput.js +38 -16
  121. package/dist/models/GetProviderResponse.d.ts +33 -0
  122. package/dist/models/GetProviderResponse.js +51 -0
  123. package/dist/models/GoogleWalletInput.d.ts +11 -0
  124. package/dist/models/GoogleWalletInput.js +3 -0
  125. package/dist/models/IntegrationStep.d.ts +1 -1
  126. package/dist/models/NigeriaNinLookup2ProviderOutput.d.ts +112 -0
  127. package/dist/models/NigeriaNinLookup2ProviderOutput.js +76 -0
  128. package/dist/models/NorwegianBankIdProviderOutput.d.ts +97 -0
  129. package/dist/models/NorwegianBankIdProviderOutput.js +62 -0
  130. package/dist/models/OneIdProviderAddress.d.ts +56 -0
  131. package/dist/models/OneIdProviderAddress.js +56 -0
  132. package/dist/models/OneIdProviderOutput.d.ts +63 -0
  133. package/dist/models/OneIdProviderOutput.js +59 -0
  134. package/dist/models/OutputFrejaAddress.d.ts +50 -0
  135. package/dist/models/OutputFrejaAddress.js +54 -0
  136. package/dist/models/OutputFrejaDocument.d.ts +56 -0
  137. package/dist/models/OutputFrejaDocument.js +54 -0
  138. package/dist/models/PhilippinesDigitalNidProviderOutput.d.ts +64 -0
  139. package/dist/models/PhilippinesDigitalNidProviderOutput.js +20 -0
  140. package/dist/models/PhilippinesPhysicalNidProviderOutput.d.ts +54 -1
  141. package/dist/models/PhilippinesPhysicalNidProviderOutput.js +16 -0
  142. package/dist/models/ProviderInput.d.ts +21 -0
  143. package/dist/models/ProviderInput.js +9 -0
  144. package/dist/models/ProviderOutput.d.ts +82 -3
  145. package/dist/models/ProviderOutput.js +35 -2
  146. package/dist/models/Raw18013DocumentRequest.d.ts +60 -0
  147. package/dist/models/Raw18013DocumentRequest.js +54 -0
  148. package/dist/models/Raw18013RequestInput.d.ts +38 -0
  149. package/dist/models/Raw18013RequestInput.js +51 -0
  150. package/dist/models/RecommendProvidersResponse.d.ts +6 -0
  151. package/dist/models/RecommendProvidersResponse.js +4 -0
  152. package/dist/models/SamsungWalletInput.d.ts +37 -0
  153. package/dist/models/SamsungWalletInput.js +49 -0
  154. package/dist/models/UkEvisaLookupInput.d.ts +38 -0
  155. package/dist/models/UkEvisaLookupInput.js +54 -0
  156. package/dist/models/UnitedKingdomEvisaProviderOutput.d.ts +106 -0
  157. package/dist/models/UnitedKingdomEvisaProviderOutput.js +68 -0
  158. package/dist/models/VerificationProfileResponse.d.ts +6 -0
  159. package/dist/models/VerificationProfileResponse.js +4 -0
  160. package/dist/models/YotiDeeplinkProviderOutput.d.ts +112 -0
  161. package/dist/models/YotiDeeplinkProviderOutput.js +72 -0
  162. package/dist/models/index.d.ts +27 -0
  163. package/dist/models/index.js +27 -0
  164. package/package.json +1 -1
  165. package/src/apis/ProvidersApi.ts +66 -0
  166. package/src/apis/VerificationProfilesApi.ts +15 -3
  167. package/src/models/AadhaarClaims.ts +186 -0
  168. package/src/models/AadhaarLanguage.ts +90 -0
  169. package/src/models/AadhaarLocalizedClaims.ts +161 -0
  170. package/src/models/AppleWalletInput.ts +21 -0
  171. package/src/models/ConnectIdAddress.ts +99 -0
  172. package/src/models/ConnectIdAgeVerification.ts +73 -0
  173. package/src/models/ConnectIdBeneficiaryAccount.ts +91 -0
  174. package/src/models/ConnectIdProviderOutput.ts +169 -0
  175. package/src/models/CzechMojeIdAddressOutput.ts +105 -0
  176. package/src/models/CzechMojeIdProviderOutput.ts +261 -0
  177. package/src/models/DigilockerAadhaarProviderOutput.ts +141 -0
  178. package/src/models/FaydaProviderOutput.ts +26 -0
  179. package/src/models/FinnishTrustNetworkProviderOutput.ts +176 -0
  180. package/src/models/FranceIdentiteInput.ts +75 -0
  181. package/src/models/FranceIdentiteProviderOutput.ts +74 -0
  182. package/src/models/FrejaIndirectProviderOutput.ts +96 -0
  183. package/src/models/FrejaProviderOutput.ts +152 -23
  184. package/src/models/GetProviderResponse.ts +74 -0
  185. package/src/models/GoogleWalletInput.ts +19 -0
  186. package/src/models/IntegrationStep.ts +1 -1
  187. package/src/models/NigeriaNinLookup2ProviderOutput.ts +170 -0
  188. package/src/models/NorwegianBankIdProviderOutput.ts +144 -0
  189. package/src/models/OneIdProviderAddress.ts +97 -0
  190. package/src/models/OneIdProviderOutput.ts +113 -0
  191. package/src/models/OutputFrejaAddress.ts +89 -0
  192. package/src/models/OutputFrejaDocument.ts +95 -0
  193. package/src/models/PhilippinesDigitalNidProviderOutput.ts +84 -0
  194. package/src/models/PhilippinesPhysicalNidProviderOutput.ts +70 -1
  195. package/src/models/ProviderInput.ts +45 -0
  196. package/src/models/ProviderOutput.ts +172 -5
  197. package/src/models/Raw18013DocumentRequest.ts +93 -0
  198. package/src/models/Raw18013RequestInput.ts +79 -0
  199. package/src/models/RecommendProvidersResponse.ts +9 -0
  200. package/src/models/SamsungWalletInput.ts +77 -0
  201. package/src/models/UkEvisaLookupInput.ts +75 -0
  202. package/src/models/UnitedKingdomEvisaProviderOutput.ts +159 -0
  203. package/src/models/VerificationProfileResponse.ts +9 -0
  204. package/src/models/YotiDeeplinkProviderOutput.ts +180 -0
  205. package/src/models/index.ts +27 -0
@@ -0,0 +1,112 @@
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 { YotiStructuredPostalAddress } from './YotiStructuredPostalAddress';
13
+ import type { YotiDocumentDetails } from './YotiDocumentDetails';
14
+ /**
15
+ * Exposed properties for the `yoti-deeplink` Provider which do not directly map to the normalized IdentityData model.
16
+ * @export
17
+ * @interface YotiDeeplinkProviderOutput
18
+ */
19
+ export interface YotiDeeplinkProviderOutput {
20
+ /**
21
+ * The unique id for your service of the individual. This is not shared between different services so if the user logs into a different service, the user will have a new id for the other service.
22
+ * @type {string}
23
+ * @memberof YotiDeeplinkProviderOutput
24
+ */
25
+ rememberMeId?: string | null;
26
+ /**
27
+ * The email address of the individual
28
+ * @type {string}
29
+ * @memberof YotiDeeplinkProviderOutput
30
+ */
31
+ email?: string | null;
32
+ /**
33
+ * The given name of the individual. This can correspond to first and middle names in English.
34
+ * @type {string}
35
+ * @memberof YotiDeeplinkProviderOutput
36
+ */
37
+ givenName?: string | null;
38
+ /**
39
+ * The family name of the individual
40
+ * @type {string}
41
+ * @memberof YotiDeeplinkProviderOutput
42
+ */
43
+ familyName?: string | null;
44
+ /**
45
+ * Full name of the individual which is composed of the given and family name.
46
+ * Unverified full name may be safe to use. For example, Aadhaar card provides full name, but due to certain limitations of verifying Aadhaar, Yoti is unable to verify this property so it is listed as "unverified".
47
+ * @type {string}
48
+ * @memberof YotiDeeplinkProviderOutput
49
+ */
50
+ fullName?: string | null;
51
+ /**
52
+ * The date of birth of the individual.
53
+ * Unverified date of birth may be safe to use. For example, Aadhaar card provides date of birth, but due to certain limitations of verifying Aadhaar, Yoti is unable to verify this property so it is listed as "unverified".
54
+ * @type {Date}
55
+ * @memberof YotiDeeplinkProviderOutput
56
+ */
57
+ dateOfBirth?: Date | null;
58
+ /**
59
+ * The gender of the individual. Depending on the source or country, gender may not be verified. This is a setting that can be configured while setting up scopes.
60
+ *
61
+ * Unverified gender may be safe to use. For example, Aadhaar card provides gender, but due to certain limitations of verifying Aadhaar, Yoti is unable to verify this property so it is listed as "unverified".
62
+ * In some countries
63
+ * Possible values:
64
+ * - "MALE"
65
+ * - "FEMALE"
66
+ * - "TRANSGENDER"
67
+ * - "OTHER"
68
+ * @type {string}
69
+ * @memberof YotiDeeplinkProviderOutput
70
+ */
71
+ gender?: string | null;
72
+ /**
73
+ * The nationality of the individual as a ISO alpha-3 code
74
+ * @type {string}
75
+ * @memberof YotiDeeplinkProviderOutput
76
+ */
77
+ nationality?: string | null;
78
+ /**
79
+ * The mobile phone number of the individual. This number was verified with a one time password (OTP) during the user's registration with Yoti. In some cases, Yoti may do additional checks against its sources to confirm the user's identity.
80
+ * @type {string}
81
+ * @memberof YotiDeeplinkProviderOutput
82
+ */
83
+ mobileNumber?: string | null;
84
+ /**
85
+ * A structured postal address for the individual that comes from the underlying document or can be manually added. In the case of being manually added, the address is considered "unverified".
86
+ * Unverified addresses may be safe to use. For example, Aadhaar card provides an address, but due to certain limitations of verifying Aadhaar, Yoti is unable to verify this property so it is listed as "unverified".
87
+ * @type {YotiStructuredPostalAddress}
88
+ * @memberof YotiDeeplinkProviderOutput
89
+ */
90
+ structuredPostalAddress?: YotiStructuredPostalAddress | null;
91
+ /**
92
+ * The whole address for the individual that comes from the underlying document or can be manually added. In the case of being manually added, the address is considered "unverified". The format of this will be different for each country.
93
+ * Refer to `StructuredPostalAddress` for a detailed version of the address.
94
+ * @type {string}
95
+ * @memberof YotiDeeplinkProviderOutput
96
+ */
97
+ postalAddress?: string | null;
98
+ /**
99
+ * The details of the underlying document used to help create the Yoti credential
100
+ * @type {YotiDocumentDetails}
101
+ * @memberof YotiDeeplinkProviderOutput
102
+ */
103
+ documentDetails?: YotiDocumentDetails | null;
104
+ }
105
+ /**
106
+ * Check if a given object implements the YotiDeeplinkProviderOutput interface.
107
+ */
108
+ export declare function instanceOfYotiDeeplinkProviderOutput(value: object): value is YotiDeeplinkProviderOutput;
109
+ export declare function YotiDeeplinkProviderOutputFromJSON(json: any): YotiDeeplinkProviderOutput;
110
+ export declare function YotiDeeplinkProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): YotiDeeplinkProviderOutput;
111
+ export declare function YotiDeeplinkProviderOutputToJSON(json: any): YotiDeeplinkProviderOutput;
112
+ export declare function YotiDeeplinkProviderOutputToJSONTyped(value?: YotiDeeplinkProviderOutput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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.instanceOfYotiDeeplinkProviderOutput = instanceOfYotiDeeplinkProviderOutput;
17
+ exports.YotiDeeplinkProviderOutputFromJSON = YotiDeeplinkProviderOutputFromJSON;
18
+ exports.YotiDeeplinkProviderOutputFromJSONTyped = YotiDeeplinkProviderOutputFromJSONTyped;
19
+ exports.YotiDeeplinkProviderOutputToJSON = YotiDeeplinkProviderOutputToJSON;
20
+ exports.YotiDeeplinkProviderOutputToJSONTyped = YotiDeeplinkProviderOutputToJSONTyped;
21
+ const YotiStructuredPostalAddress_1 = require("./YotiStructuredPostalAddress");
22
+ const YotiDocumentDetails_1 = require("./YotiDocumentDetails");
23
+ /**
24
+ * Check if a given object implements the YotiDeeplinkProviderOutput interface.
25
+ */
26
+ function instanceOfYotiDeeplinkProviderOutput(value) {
27
+ return true;
28
+ }
29
+ function YotiDeeplinkProviderOutputFromJSON(json) {
30
+ return YotiDeeplinkProviderOutputFromJSONTyped(json, false);
31
+ }
32
+ function YotiDeeplinkProviderOutputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'rememberMeId': json['rememberMeId'] == null ? undefined : json['rememberMeId'],
38
+ 'email': json['email'] == null ? undefined : json['email'],
39
+ 'givenName': json['givenName'] == null ? undefined : json['givenName'],
40
+ 'familyName': json['familyName'] == null ? undefined : json['familyName'],
41
+ 'fullName': json['fullName'] == null ? undefined : json['fullName'],
42
+ 'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
43
+ 'gender': json['gender'] == null ? undefined : json['gender'],
44
+ 'nationality': json['nationality'] == null ? undefined : json['nationality'],
45
+ 'mobileNumber': json['mobileNumber'] == null ? undefined : json['mobileNumber'],
46
+ 'structuredPostalAddress': json['structuredPostalAddress'] == null ? undefined : (0, YotiStructuredPostalAddress_1.YotiStructuredPostalAddressFromJSON)(json['structuredPostalAddress']),
47
+ 'postalAddress': json['postalAddress'] == null ? undefined : json['postalAddress'],
48
+ 'documentDetails': json['documentDetails'] == null ? undefined : (0, YotiDocumentDetails_1.YotiDocumentDetailsFromJSON)(json['documentDetails']),
49
+ };
50
+ }
51
+ function YotiDeeplinkProviderOutputToJSON(json) {
52
+ return YotiDeeplinkProviderOutputToJSONTyped(json, false);
53
+ }
54
+ function YotiDeeplinkProviderOutputToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'rememberMeId': value['rememberMeId'],
60
+ 'email': value['email'],
61
+ 'givenName': value['givenName'],
62
+ 'familyName': value['familyName'],
63
+ 'fullName': value['fullName'],
64
+ 'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
65
+ 'gender': value['gender'],
66
+ 'nationality': value['nationality'],
67
+ 'mobileNumber': value['mobileNumber'],
68
+ 'structuredPostalAddress': (0, YotiStructuredPostalAddress_1.YotiStructuredPostalAddressToJSON)(value['structuredPostalAddress']),
69
+ 'postalAddress': value['postalAddress'],
70
+ 'documentDetails': (0, YotiDocumentDetails_1.YotiDocumentDetailsToJSON)(value['documentDetails']),
71
+ };
72
+ }
@@ -1,4 +1,7 @@
1
+ export * from './AadhaarClaims';
1
2
  export * from './AadhaarInput';
3
+ export * from './AadhaarLanguage';
4
+ export * from './AadhaarLocalizedClaims';
2
5
  export * from './AddRedirectUriRequest';
3
6
  export * from './AddRedirectUriResponse';
4
7
  export * from './Address';
@@ -11,6 +14,10 @@ export * from './BelgiumIdCardProviderOutput';
11
14
  export * from './BrazilCpfCheckInput';
12
15
  export * from './BrazilDigitalCnhInput';
13
16
  export * from './CancelSessionResponse';
17
+ export * from './ConnectIdAddress';
18
+ export * from './ConnectIdAgeVerification';
19
+ export * from './ConnectIdBeneficiaryAccount';
20
+ export * from './ConnectIdProviderOutput';
14
21
  export * from './ContractAttachment';
15
22
  export * from './ContractAttribute';
16
23
  export * from './CoteDIvoireNidLookup2Input';
@@ -21,12 +28,19 @@ export * from './CreateHostedProviderSessionResponse';
21
28
  export * from './CreateVerificationProfileResponse';
22
29
  export * from './CreateWidgetSessionRequest';
23
30
  export * from './CreateWidgetSessionResponse';
31
+ export * from './CzechMojeIdAddressOutput';
32
+ export * from './CzechMojeIdProviderOutput';
24
33
  export * from './CzechiaMojeIdProviderOutput';
34
+ export * from './DigilockerAadhaarProviderOutput';
25
35
  export * from './DocumentData';
26
36
  export * from './DocumentType';
27
37
  export * from './EstoniaIdCardProviderOutput';
28
38
  export * from './FaydaProviderOutput';
29
39
  export * from './FinlandIdCardProviderOutput';
40
+ export * from './FinnishTrustNetworkProviderOutput';
41
+ export * from './FranceIdentiteInput';
42
+ export * from './FranceIdentiteProviderOutput';
43
+ export * from './FrejaIndirectProviderOutput';
30
44
  export * from './FrejaProviderOutput';
31
45
  export * from './FrenchNumeriqueGivenName';
32
46
  export * from './FrenchNumeriqueNationality';
@@ -34,6 +48,7 @@ export * from './FrenchNumeriquePhone';
34
48
  export * from './FrenchNumeriqueProviderOutput';
35
49
  export * from './GetAttachmentRequest';
36
50
  export * from './GetAttachmentResponse';
51
+ export * from './GetProviderResponse';
37
52
  export * from './GetSessionResponse';
38
53
  export * from './GetSessionResultRequest';
39
54
  export * from './GetSessionResultResponse';
@@ -80,9 +95,15 @@ export * from './MobileIdProviderOutput';
80
95
  export * from './NigeriaNinBiometric2Input';
81
96
  export * from './NigeriaNinInput';
82
97
  export * from './NigeriaNinLookup2Input';
98
+ export * from './NigeriaNinLookup2ProviderOutput';
83
99
  export * from './NigeriaNinMatch2Input';
84
100
  export * from './NigeriaNinMatch2InputSex';
101
+ export * from './NorwegianBankIdProviderOutput';
102
+ export * from './OneIdProviderAddress';
103
+ export * from './OneIdProviderOutput';
85
104
  export * from './OrderDirection';
105
+ export * from './OutputFrejaAddress';
106
+ export * from './OutputFrejaDocument';
86
107
  export * from './PersonData';
87
108
  export * from './PeruDniAddress';
88
109
  export * from './PeruDniLookupInput';
@@ -100,6 +121,8 @@ export * from './Provider';
100
121
  export * from './ProviderHealth';
101
122
  export * from './ProviderInput';
102
123
  export * from './ProviderOutput';
124
+ export * from './Raw18013DocumentRequest';
125
+ export * from './Raw18013RequestInput';
103
126
  export * from './RecommendProviderHealthOption';
104
127
  export * from './RecommendProviderInformation';
105
128
  export * from './RecommendProvidersRequest';
@@ -110,6 +133,7 @@ export * from './RefreshStepContentRequest';
110
133
  export * from './RefreshStepContentResponse';
111
134
  export * from './ResultCollection';
112
135
  export * from './ResultCollectionMethod';
136
+ export * from './SamsungWalletInput';
113
137
  export * from './SamsungWalletProviderOutput';
114
138
  export * from './SerbiaIdCardProviderOutput';
115
139
  export * from './Session';
@@ -134,7 +158,10 @@ export * from './SwedenBankIdProviderOutput';
134
158
  export * from './TrinsicTestDatabaseLookupInput';
135
159
  export * from './TrinsicTestSubProvidersInput';
136
160
  export * from './UgandaNidMatch2Input';
161
+ export * from './UkEvisaLookupInput';
162
+ export * from './UnitedKingdomEvisaProviderOutput';
137
163
  export * from './VerificationProfileResponse';
164
+ export * from './YotiDeeplinkProviderOutput';
138
165
  export * from './YotiDocumentDetails';
139
166
  export * from './YotiProviderOutput';
140
167
  export * from './YotiStructuredPostalAddress';
@@ -16,7 +16,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
+ __exportStar(require("./AadhaarClaims"), exports);
19
20
  __exportStar(require("./AadhaarInput"), exports);
21
+ __exportStar(require("./AadhaarLanguage"), exports);
22
+ __exportStar(require("./AadhaarLocalizedClaims"), exports);
20
23
  __exportStar(require("./AddRedirectUriRequest"), exports);
21
24
  __exportStar(require("./AddRedirectUriResponse"), exports);
22
25
  __exportStar(require("./Address"), exports);
@@ -29,6 +32,10 @@ __exportStar(require("./BelgiumIdCardProviderOutput"), exports);
29
32
  __exportStar(require("./BrazilCpfCheckInput"), exports);
30
33
  __exportStar(require("./BrazilDigitalCnhInput"), exports);
31
34
  __exportStar(require("./CancelSessionResponse"), exports);
35
+ __exportStar(require("./ConnectIdAddress"), exports);
36
+ __exportStar(require("./ConnectIdAgeVerification"), exports);
37
+ __exportStar(require("./ConnectIdBeneficiaryAccount"), exports);
38
+ __exportStar(require("./ConnectIdProviderOutput"), exports);
32
39
  __exportStar(require("./ContractAttachment"), exports);
33
40
  __exportStar(require("./ContractAttribute"), exports);
34
41
  __exportStar(require("./CoteDIvoireNidLookup2Input"), exports);
@@ -39,12 +46,19 @@ __exportStar(require("./CreateHostedProviderSessionResponse"), exports);
39
46
  __exportStar(require("./CreateVerificationProfileResponse"), exports);
40
47
  __exportStar(require("./CreateWidgetSessionRequest"), exports);
41
48
  __exportStar(require("./CreateWidgetSessionResponse"), exports);
49
+ __exportStar(require("./CzechMojeIdAddressOutput"), exports);
50
+ __exportStar(require("./CzechMojeIdProviderOutput"), exports);
42
51
  __exportStar(require("./CzechiaMojeIdProviderOutput"), exports);
52
+ __exportStar(require("./DigilockerAadhaarProviderOutput"), exports);
43
53
  __exportStar(require("./DocumentData"), exports);
44
54
  __exportStar(require("./DocumentType"), exports);
45
55
  __exportStar(require("./EstoniaIdCardProviderOutput"), exports);
46
56
  __exportStar(require("./FaydaProviderOutput"), exports);
47
57
  __exportStar(require("./FinlandIdCardProviderOutput"), exports);
58
+ __exportStar(require("./FinnishTrustNetworkProviderOutput"), exports);
59
+ __exportStar(require("./FranceIdentiteInput"), exports);
60
+ __exportStar(require("./FranceIdentiteProviderOutput"), exports);
61
+ __exportStar(require("./FrejaIndirectProviderOutput"), exports);
48
62
  __exportStar(require("./FrejaProviderOutput"), exports);
49
63
  __exportStar(require("./FrenchNumeriqueGivenName"), exports);
50
64
  __exportStar(require("./FrenchNumeriqueNationality"), exports);
@@ -52,6 +66,7 @@ __exportStar(require("./FrenchNumeriquePhone"), exports);
52
66
  __exportStar(require("./FrenchNumeriqueProviderOutput"), exports);
53
67
  __exportStar(require("./GetAttachmentRequest"), exports);
54
68
  __exportStar(require("./GetAttachmentResponse"), exports);
69
+ __exportStar(require("./GetProviderResponse"), exports);
55
70
  __exportStar(require("./GetSessionResponse"), exports);
56
71
  __exportStar(require("./GetSessionResultRequest"), exports);
57
72
  __exportStar(require("./GetSessionResultResponse"), exports);
@@ -98,9 +113,15 @@ __exportStar(require("./MobileIdProviderOutput"), exports);
98
113
  __exportStar(require("./NigeriaNinBiometric2Input"), exports);
99
114
  __exportStar(require("./NigeriaNinInput"), exports);
100
115
  __exportStar(require("./NigeriaNinLookup2Input"), exports);
116
+ __exportStar(require("./NigeriaNinLookup2ProviderOutput"), exports);
101
117
  __exportStar(require("./NigeriaNinMatch2Input"), exports);
102
118
  __exportStar(require("./NigeriaNinMatch2InputSex"), exports);
119
+ __exportStar(require("./NorwegianBankIdProviderOutput"), exports);
120
+ __exportStar(require("./OneIdProviderAddress"), exports);
121
+ __exportStar(require("./OneIdProviderOutput"), exports);
103
122
  __exportStar(require("./OrderDirection"), exports);
123
+ __exportStar(require("./OutputFrejaAddress"), exports);
124
+ __exportStar(require("./OutputFrejaDocument"), exports);
104
125
  __exportStar(require("./PersonData"), exports);
105
126
  __exportStar(require("./PeruDniAddress"), exports);
106
127
  __exportStar(require("./PeruDniLookupInput"), exports);
@@ -118,6 +139,8 @@ __exportStar(require("./Provider"), exports);
118
139
  __exportStar(require("./ProviderHealth"), exports);
119
140
  __exportStar(require("./ProviderInput"), exports);
120
141
  __exportStar(require("./ProviderOutput"), exports);
142
+ __exportStar(require("./Raw18013DocumentRequest"), exports);
143
+ __exportStar(require("./Raw18013RequestInput"), exports);
121
144
  __exportStar(require("./RecommendProviderHealthOption"), exports);
122
145
  __exportStar(require("./RecommendProviderInformation"), exports);
123
146
  __exportStar(require("./RecommendProvidersRequest"), exports);
@@ -128,6 +151,7 @@ __exportStar(require("./RefreshStepContentRequest"), exports);
128
151
  __exportStar(require("./RefreshStepContentResponse"), exports);
129
152
  __exportStar(require("./ResultCollection"), exports);
130
153
  __exportStar(require("./ResultCollectionMethod"), exports);
154
+ __exportStar(require("./SamsungWalletInput"), exports);
131
155
  __exportStar(require("./SamsungWalletProviderOutput"), exports);
132
156
  __exportStar(require("./SerbiaIdCardProviderOutput"), exports);
133
157
  __exportStar(require("./Session"), exports);
@@ -152,7 +176,10 @@ __exportStar(require("./SwedenBankIdProviderOutput"), exports);
152
176
  __exportStar(require("./TrinsicTestDatabaseLookupInput"), exports);
153
177
  __exportStar(require("./TrinsicTestSubProvidersInput"), exports);
154
178
  __exportStar(require("./UgandaNidMatch2Input"), exports);
179
+ __exportStar(require("./UkEvisaLookupInput"), exports);
180
+ __exportStar(require("./UnitedKingdomEvisaProviderOutput"), exports);
155
181
  __exportStar(require("./VerificationProfileResponse"), exports);
182
+ __exportStar(require("./YotiDeeplinkProviderOutput"), exports);
156
183
  __exportStar(require("./YotiDocumentDetails"), exports);
157
184
  __exportStar(require("./YotiProviderOutput"), exports);
158
185
  __exportStar(require("./YotiStructuredPostalAddress"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trinsic/api",
3
- "version": "3.0.1",
3
+ "version": "3.0.2-preview1",
4
4
  "description": "Trinsic API TypeScript library.",
5
5
  "author": "Trinsic",
6
6
  "repository": {
@@ -15,16 +15,23 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ GetProviderResponse,
18
19
  ListProvidersResponse,
19
20
  ProblemDetails,
20
21
  } from '../models/index';
21
22
  import {
23
+ GetProviderResponseFromJSON,
24
+ GetProviderResponseToJSON,
22
25
  ListProvidersResponseFromJSON,
23
26
  ListProvidersResponseToJSON,
24
27
  ProblemDetailsFromJSON,
25
28
  ProblemDetailsToJSON,
26
29
  } from '../models/index';
27
30
 
31
+ export interface GetProviderRequest {
32
+ providerId: string;
33
+ }
34
+
28
35
  export interface ListProvidersRequest {
29
36
  licensed?: boolean;
30
37
  }
@@ -36,6 +43,22 @@ export interface ListProvidersRequest {
36
43
  * @interface ProvidersApiInterface
37
44
  */
38
45
  export interface ProvidersApiInterface {
46
+ /**
47
+ * Get a single identity provider by ID, including its license status.
48
+ * @summary Get Provider
49
+ * @param {string} providerId The ID of the provider to retrieve
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ * @memberof ProvidersApiInterface
53
+ */
54
+ getProviderRaw(requestParameters: GetProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetProviderResponse>>;
55
+
56
+ /**
57
+ * Get a single identity provider by ID, including its license status.
58
+ * Get Provider
59
+ */
60
+ getProvider(providerId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetProviderResponse>;
61
+
39
62
  /**
40
63
  * List all identity providers available to your Organization, including their license status.
41
64
  * @summary List Providers
@@ -59,6 +82,49 @@ export interface ProvidersApiInterface {
59
82
  */
60
83
  export class ProvidersApi extends runtime.BaseAPI implements ProvidersApiInterface {
61
84
 
85
+ /**
86
+ * Get a single identity provider by ID, including its license status.
87
+ * Get Provider
88
+ */
89
+ async getProviderRaw(requestParameters: GetProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetProviderResponse>> {
90
+ if (requestParameters['providerId'] == null) {
91
+ throw new runtime.RequiredError(
92
+ 'providerId',
93
+ 'Required parameter "providerId" was null or undefined when calling getProvider().'
94
+ );
95
+ }
96
+
97
+ const queryParameters: any = {};
98
+
99
+ const headerParameters: runtime.HTTPHeaders = {};
100
+
101
+ if (this.configuration && this.configuration.accessToken) {
102
+ const token = this.configuration.accessToken;
103
+ const tokenString = await token("Bearer", []);
104
+
105
+ if (tokenString) {
106
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
107
+ }
108
+ }
109
+ const response = await this.request({
110
+ path: `/api/v1/providers/{providerId}`.replace(`{${"providerId"}}`, encodeURIComponent(String(requestParameters['providerId']))),
111
+ method: 'GET',
112
+ headers: headerParameters,
113
+ query: queryParameters,
114
+ }, initOverrides);
115
+
116
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetProviderResponseFromJSON(jsonValue));
117
+ }
118
+
119
+ /**
120
+ * Get a single identity provider by ID, including its license status.
121
+ * Get Provider
122
+ */
123
+ async getProvider(providerId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetProviderResponse> {
124
+ const response = await this.getProviderRaw({ providerId: providerId }, initOverrides);
125
+ return await response.value();
126
+ }
127
+
62
128
  /**
63
129
  * List all identity providers available to your Organization, including their license status.
64
130
  * List Providers
@@ -37,6 +37,8 @@ export interface CreateVerificationProfileRequest {
37
37
  primaryColor?: string;
38
38
  providers?: Array<string>;
39
39
  logo?: Blob;
40
+ redactionPeriod?: string;
41
+ sessionExpiration?: string;
40
42
  isProductionUsage?: boolean;
41
43
  }
42
44
 
@@ -64,6 +66,8 @@ export interface VerificationProfilesApiInterface {
64
66
  * @param {string} [primaryColor] The primary color of the verification profile. Must be a 6-character hex string prefixed with a \\\&#39;#\\\&#39; character. Example: #000000
65
67
  * @param {Array<string>} [providers] The list of providers you\\\&#39;d like to select for this profile. We will not currently enable any providers.
66
68
  * @param {Blob} [logo] The logo of the verification profile.
69
+ * @param {string} [redactionPeriod] The redaction period for verification data. Must be between 0 and 31 days, and at least 15 minutes greater than the session expiration. If not specified, defaults to 31 days.
70
+ * @param {string} [sessionExpiration] The session expiration for verification sessions created with this profile. Must be between 15 minutes and 24 hours. Defaults to 1 hour if not specified.
67
71
  * @param {boolean} [isProductionUsage] Whether this profile is for production usage. Only applicable for Live environment profiles. If not specified for Live profiles, defaults to false (Demo).
68
72
  * @param {*} [options] Override http request option.
69
73
  * @throws {RequiredError}
@@ -75,7 +79,7 @@ export interface VerificationProfilesApiInterface {
75
79
  * Creates a new verification profile within your organization.
76
80
  * Create Verification Profile
77
81
  */
78
- createVerificationProfile(alias: string, brandName: string, primaryColor?: string, providers?: Array<string>, logo?: Blob, isProductionUsage?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateVerificationProfileResponse>;
82
+ createVerificationProfile(alias: string, brandName: string, primaryColor?: string, providers?: Array<string>, logo?: Blob, redactionPeriod?: string, sessionExpiration?: string, isProductionUsage?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateVerificationProfileResponse>;
79
83
 
80
84
  /**
81
85
  * Gets a specific verification profile by ID.
@@ -186,6 +190,14 @@ export class VerificationProfilesApi extends runtime.BaseAPI implements Verifica
186
190
  formParams.append('Logo', requestParameters['logo'] as any);
187
191
  }
188
192
 
193
+ if (requestParameters['redactionPeriod'] != null) {
194
+ formParams.append('RedactionPeriod', requestParameters['redactionPeriod'] as any);
195
+ }
196
+
197
+ if (requestParameters['sessionExpiration'] != null) {
198
+ formParams.append('SessionExpiration', requestParameters['sessionExpiration'] as any);
199
+ }
200
+
189
201
  if (requestParameters['isProductionUsage'] != null) {
190
202
  formParams.append('IsProductionUsage', requestParameters['isProductionUsage'] as any);
191
203
  }
@@ -205,8 +217,8 @@ export class VerificationProfilesApi extends runtime.BaseAPI implements Verifica
205
217
  * Creates a new verification profile within your organization.
206
218
  * Create Verification Profile
207
219
  */
208
- async createVerificationProfile(alias: string, brandName: string, primaryColor?: string, providers?: Array<string>, logo?: Blob, isProductionUsage?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateVerificationProfileResponse> {
209
- const response = await this.createVerificationProfileRaw({ alias: alias, brandName: brandName, primaryColor: primaryColor, providers: providers, logo: logo, isProductionUsage: isProductionUsage }, initOverrides);
220
+ async createVerificationProfile(alias: string, brandName: string, primaryColor?: string, providers?: Array<string>, logo?: Blob, redactionPeriod?: string, sessionExpiration?: string, isProductionUsage?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateVerificationProfileResponse> {
221
+ const response = await this.createVerificationProfileRaw({ alias: alias, brandName: brandName, primaryColor: primaryColor, providers: providers, logo: logo, redactionPeriod: redactionPeriod, sessionExpiration: sessionExpiration, isProductionUsage: isProductionUsage }, initOverrides);
210
222
  return await response.value();
211
223
  }
212
224