@trinsic/api 3.0.0 → 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 (215) hide show
  1. package/.openapi-generator/FILES +29 -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/KenyaNidLookup2Address.d.ts +90 -0
  50. package/dist/esm/models/KenyaNidLookup2Address.js +49 -0
  51. package/dist/esm/models/KenyaNidLookup2ProviderOutput.d.ts +114 -0
  52. package/dist/esm/models/KenyaNidLookup2ProviderOutput.js +74 -0
  53. package/dist/esm/models/NigeriaNinLookup2ProviderOutput.d.ts +112 -0
  54. package/dist/esm/models/NigeriaNinLookup2ProviderOutput.js +69 -0
  55. package/dist/esm/models/NorwegianBankIdProviderOutput.d.ts +97 -0
  56. package/dist/esm/models/NorwegianBankIdProviderOutput.js +55 -0
  57. package/dist/esm/models/OneIdProviderAddress.d.ts +56 -0
  58. package/dist/esm/models/OneIdProviderAddress.js +49 -0
  59. package/dist/esm/models/OneIdProviderOutput.d.ts +63 -0
  60. package/dist/esm/models/OneIdProviderOutput.js +52 -0
  61. package/dist/esm/models/OutputFrejaAddress.d.ts +50 -0
  62. package/dist/esm/models/OutputFrejaAddress.js +47 -0
  63. package/dist/esm/models/OutputFrejaDocument.d.ts +56 -0
  64. package/dist/esm/models/OutputFrejaDocument.js +47 -0
  65. package/dist/esm/models/PhilippinesDigitalNidProviderOutput.d.ts +64 -0
  66. package/dist/esm/models/PhilippinesDigitalNidProviderOutput.js +20 -0
  67. package/dist/esm/models/PhilippinesPhysicalNidProviderOutput.d.ts +54 -1
  68. package/dist/esm/models/PhilippinesPhysicalNidProviderOutput.js +16 -0
  69. package/dist/esm/models/ProviderInput.d.ts +21 -0
  70. package/dist/esm/models/ProviderInput.js +9 -0
  71. package/dist/esm/models/ProviderOutput.d.ts +89 -3
  72. package/dist/esm/models/ProviderOutput.js +38 -2
  73. package/dist/esm/models/Raw18013DocumentRequest.d.ts +60 -0
  74. package/dist/esm/models/Raw18013DocumentRequest.js +47 -0
  75. package/dist/esm/models/Raw18013RequestInput.d.ts +38 -0
  76. package/dist/esm/models/Raw18013RequestInput.js +44 -0
  77. package/dist/esm/models/RecommendProvidersResponse.d.ts +6 -0
  78. package/dist/esm/models/RecommendProvidersResponse.js +4 -0
  79. package/dist/esm/models/SamsungWalletInput.d.ts +37 -0
  80. package/dist/esm/models/SamsungWalletInput.js +42 -0
  81. package/dist/esm/models/UkEvisaLookupInput.d.ts +38 -0
  82. package/dist/esm/models/UkEvisaLookupInput.js +47 -0
  83. package/dist/esm/models/UnitedKingdomEvisaProviderOutput.d.ts +106 -0
  84. package/dist/esm/models/UnitedKingdomEvisaProviderOutput.js +61 -0
  85. package/dist/esm/models/VerificationProfileResponse.d.ts +6 -0
  86. package/dist/esm/models/VerificationProfileResponse.js +4 -0
  87. package/dist/esm/models/YotiDeeplinkProviderOutput.d.ts +112 -0
  88. package/dist/esm/models/YotiDeeplinkProviderOutput.js +65 -0
  89. package/dist/esm/models/index.d.ts +29 -0
  90. package/dist/esm/models/index.js +29 -0
  91. package/dist/models/AadhaarClaims.d.ts +125 -0
  92. package/dist/models/AadhaarClaims.js +76 -0
  93. package/dist/models/AadhaarLanguage.d.ts +55 -0
  94. package/dist/models/AadhaarLanguage.js +51 -0
  95. package/dist/models/AadhaarLocalizedClaims.d.ts +99 -0
  96. package/dist/models/AadhaarLocalizedClaims.js +71 -0
  97. package/dist/models/AppleWalletInput.d.ts +13 -0
  98. package/dist/models/AppleWalletInput.js +3 -0
  99. package/dist/models/ConnectIdAddress.d.ts +58 -0
  100. package/dist/models/ConnectIdAddress.js +56 -0
  101. package/dist/models/ConnectIdAgeVerification.d.ts +38 -0
  102. package/dist/models/ConnectIdAgeVerification.js +50 -0
  103. package/dist/models/ConnectIdBeneficiaryAccount.d.ts +52 -0
  104. package/dist/models/ConnectIdBeneficiaryAccount.js +54 -0
  105. package/dist/models/ConnectIdProviderOutput.d.ts +97 -0
  106. package/dist/models/ConnectIdProviderOutput.js +71 -0
  107. package/dist/models/CzechMojeIdAddressOutput.d.ts +62 -0
  108. package/dist/models/CzechMojeIdAddressOutput.js +58 -0
  109. package/dist/models/CzechMojeIdProviderOutput.d.ts +177 -0
  110. package/dist/models/CzechMojeIdProviderOutput.js +93 -0
  111. package/dist/models/DigilockerAadhaarProviderOutput.d.ts +82 -0
  112. package/dist/models/DigilockerAadhaarProviderOutput.js +64 -0
  113. package/dist/models/FaydaProviderOutput.d.ts +20 -0
  114. package/dist/models/FaydaProviderOutput.js +6 -0
  115. package/dist/models/FinnishTrustNetworkProviderOutput.d.ts +123 -0
  116. package/dist/models/FinnishTrustNetworkProviderOutput.js +68 -0
  117. package/dist/models/FranceIdentiteInput.d.ts +35 -0
  118. package/dist/models/FranceIdentiteInput.js +49 -0
  119. package/dist/models/FranceIdentiteProviderOutput.d.ts +33 -0
  120. package/dist/models/FranceIdentiteProviderOutput.js +51 -0
  121. package/dist/models/FrejaIndirectProviderOutput.d.ts +53 -0
  122. package/dist/models/FrejaIndirectProviderOutput.js +62 -0
  123. package/dist/models/FrejaProviderOutput.d.ts +103 -11
  124. package/dist/models/FrejaProviderOutput.js +38 -16
  125. package/dist/models/GetProviderResponse.d.ts +33 -0
  126. package/dist/models/GetProviderResponse.js +51 -0
  127. package/dist/models/GoogleWalletInput.d.ts +11 -0
  128. package/dist/models/GoogleWalletInput.js +3 -0
  129. package/dist/models/IntegrationStep.d.ts +1 -1
  130. package/dist/models/KenyaNidLookup2Address.d.ts +90 -0
  131. package/dist/models/KenyaNidLookup2Address.js +56 -0
  132. package/dist/models/KenyaNidLookup2ProviderOutput.d.ts +114 -0
  133. package/dist/models/KenyaNidLookup2ProviderOutput.js +81 -0
  134. package/dist/models/NigeriaNinLookup2ProviderOutput.d.ts +112 -0
  135. package/dist/models/NigeriaNinLookup2ProviderOutput.js +76 -0
  136. package/dist/models/NorwegianBankIdProviderOutput.d.ts +97 -0
  137. package/dist/models/NorwegianBankIdProviderOutput.js +62 -0
  138. package/dist/models/OneIdProviderAddress.d.ts +56 -0
  139. package/dist/models/OneIdProviderAddress.js +56 -0
  140. package/dist/models/OneIdProviderOutput.d.ts +63 -0
  141. package/dist/models/OneIdProviderOutput.js +59 -0
  142. package/dist/models/OutputFrejaAddress.d.ts +50 -0
  143. package/dist/models/OutputFrejaAddress.js +54 -0
  144. package/dist/models/OutputFrejaDocument.d.ts +56 -0
  145. package/dist/models/OutputFrejaDocument.js +54 -0
  146. package/dist/models/PhilippinesDigitalNidProviderOutput.d.ts +64 -0
  147. package/dist/models/PhilippinesDigitalNidProviderOutput.js +20 -0
  148. package/dist/models/PhilippinesPhysicalNidProviderOutput.d.ts +54 -1
  149. package/dist/models/PhilippinesPhysicalNidProviderOutput.js +16 -0
  150. package/dist/models/ProviderInput.d.ts +21 -0
  151. package/dist/models/ProviderInput.js +9 -0
  152. package/dist/models/ProviderOutput.d.ts +89 -3
  153. package/dist/models/ProviderOutput.js +38 -2
  154. package/dist/models/Raw18013DocumentRequest.d.ts +60 -0
  155. package/dist/models/Raw18013DocumentRequest.js +54 -0
  156. package/dist/models/Raw18013RequestInput.d.ts +38 -0
  157. package/dist/models/Raw18013RequestInput.js +51 -0
  158. package/dist/models/RecommendProvidersResponse.d.ts +6 -0
  159. package/dist/models/RecommendProvidersResponse.js +4 -0
  160. package/dist/models/SamsungWalletInput.d.ts +37 -0
  161. package/dist/models/SamsungWalletInput.js +49 -0
  162. package/dist/models/UkEvisaLookupInput.d.ts +38 -0
  163. package/dist/models/UkEvisaLookupInput.js +54 -0
  164. package/dist/models/UnitedKingdomEvisaProviderOutput.d.ts +106 -0
  165. package/dist/models/UnitedKingdomEvisaProviderOutput.js +68 -0
  166. package/dist/models/VerificationProfileResponse.d.ts +6 -0
  167. package/dist/models/VerificationProfileResponse.js +4 -0
  168. package/dist/models/YotiDeeplinkProviderOutput.d.ts +112 -0
  169. package/dist/models/YotiDeeplinkProviderOutput.js +72 -0
  170. package/dist/models/index.d.ts +29 -0
  171. package/dist/models/index.js +29 -0
  172. package/package.json +1 -1
  173. package/src/apis/ProvidersApi.ts +66 -0
  174. package/src/apis/VerificationProfilesApi.ts +15 -3
  175. package/src/models/AadhaarClaims.ts +186 -0
  176. package/src/models/AadhaarLanguage.ts +90 -0
  177. package/src/models/AadhaarLocalizedClaims.ts +161 -0
  178. package/src/models/AppleWalletInput.ts +21 -0
  179. package/src/models/ConnectIdAddress.ts +99 -0
  180. package/src/models/ConnectIdAgeVerification.ts +73 -0
  181. package/src/models/ConnectIdBeneficiaryAccount.ts +91 -0
  182. package/src/models/ConnectIdProviderOutput.ts +169 -0
  183. package/src/models/CzechMojeIdAddressOutput.ts +105 -0
  184. package/src/models/CzechMojeIdProviderOutput.ts +261 -0
  185. package/src/models/DigilockerAadhaarProviderOutput.ts +141 -0
  186. package/src/models/FaydaProviderOutput.ts +26 -0
  187. package/src/models/FinnishTrustNetworkProviderOutput.ts +176 -0
  188. package/src/models/FranceIdentiteInput.ts +75 -0
  189. package/src/models/FranceIdentiteProviderOutput.ts +74 -0
  190. package/src/models/FrejaIndirectProviderOutput.ts +96 -0
  191. package/src/models/FrejaProviderOutput.ts +152 -23
  192. package/src/models/GetProviderResponse.ts +74 -0
  193. package/src/models/GoogleWalletInput.ts +19 -0
  194. package/src/models/IntegrationStep.ts +1 -1
  195. package/src/models/KenyaNidLookup2Address.ts +131 -0
  196. package/src/models/KenyaNidLookup2ProviderOutput.ts +180 -0
  197. package/src/models/NigeriaNinLookup2ProviderOutput.ts +170 -0
  198. package/src/models/NorwegianBankIdProviderOutput.ts +144 -0
  199. package/src/models/OneIdProviderAddress.ts +97 -0
  200. package/src/models/OneIdProviderOutput.ts +113 -0
  201. package/src/models/OutputFrejaAddress.ts +89 -0
  202. package/src/models/OutputFrejaDocument.ts +95 -0
  203. package/src/models/PhilippinesDigitalNidProviderOutput.ts +84 -0
  204. package/src/models/PhilippinesPhysicalNidProviderOutput.ts +70 -1
  205. package/src/models/ProviderInput.ts +45 -0
  206. package/src/models/ProviderOutput.ts +187 -5
  207. package/src/models/Raw18013DocumentRequest.ts +93 -0
  208. package/src/models/Raw18013RequestInput.ts +79 -0
  209. package/src/models/RecommendProvidersResponse.ts +9 -0
  210. package/src/models/SamsungWalletInput.ts +77 -0
  211. package/src/models/UkEvisaLookupInput.ts +75 -0
  212. package/src/models/UnitedKingdomEvisaProviderOutput.ts +159 -0
  213. package/src/models/VerificationProfileResponse.ts +9 -0
  214. package/src/models/YotiDeeplinkProviderOutput.ts +180 -0
  215. package/src/models/index.ts +29 -0
@@ -0,0 +1,170 @@
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
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * Exposed properties for the `nigeria-nin-lookup-2` Provider which do not directly map to the normalized IdentityData model.
18
+ * @export
19
+ * @interface NigeriaNinLookup2ProviderOutput
20
+ */
21
+ export interface NigeriaNinLookup2ProviderOutput {
22
+ /**
23
+ * The first name (given name) of the ID holder.
24
+ * @type {string}
25
+ * @memberof NigeriaNinLookup2ProviderOutput
26
+ */
27
+ firstName: string;
28
+ /**
29
+ * The middle name of the ID holder.
30
+ * @type {string}
31
+ * @memberof NigeriaNinLookup2ProviderOutput
32
+ */
33
+ middleName?: string | null;
34
+ /**
35
+ * The surname (family name) of the ID holder.
36
+ * @type {string}
37
+ * @memberof NigeriaNinLookup2ProviderOutput
38
+ */
39
+ surname: string;
40
+ /**
41
+ * The sex of the ID holder.
42
+ *
43
+ * Possible values:
44
+ * - Male
45
+ * - Female
46
+ * @type {string}
47
+ * @memberof NigeriaNinLookup2ProviderOutput
48
+ */
49
+ sex?: string | null;
50
+ /**
51
+ * The date of birth of the ID holder.
52
+ * @type {Date}
53
+ * @memberof NigeriaNinLookup2ProviderOutput
54
+ */
55
+ dateOfBirth?: Date | null;
56
+ /**
57
+ * Country of birth as an ISO 3166-1 alpha-2 code.
58
+ * @type {string}
59
+ * @memberof NigeriaNinLookup2ProviderOutput
60
+ */
61
+ birthCountry?: string | null;
62
+ /**
63
+ * National Identification Number (NIN).
64
+ *
65
+ * This is a unique, permanent identifier assigned by the National Identity Management Commission
66
+ * upon enrollment.
67
+ *
68
+ * Format: 11 numeric digits (regex: /^[0-9]{11}$/). The digits are validated using the Verhoeff
69
+ * algorithm, meaning the last digit serves as a check digit.
70
+ * @type {string}
71
+ * @memberof NigeriaNinLookup2ProviderOutput
72
+ */
73
+ nationalIdentityNumber: string;
74
+ /**
75
+ * Phone number registered with the National Identity Management Commission.
76
+ * @type {string}
77
+ * @memberof NigeriaNinLookup2ProviderOutput
78
+ */
79
+ phoneNumber?: string | null;
80
+ /**
81
+ * Email address registered with the National Identity Management Commission.
82
+ * @type {string}
83
+ * @memberof NigeriaNinLookup2ProviderOutput
84
+ */
85
+ email?: string | null;
86
+ /**
87
+ * Full residential address as a single string, normalized to lowercase without delimiters.
88
+ * @type {string}
89
+ * @memberof NigeriaNinLookup2ProviderOutput
90
+ */
91
+ address?: string | null;
92
+ /**
93
+ * Local Government Area of residence.
94
+ *
95
+ * Nigeria is divided into 774 Local Government Areas (LGAs), which are the third-tier
96
+ * administrative divisions below states and the Federal Capital Territory. LGAs are roughly
97
+ * equivalent to counties or municipalities in other countries.
98
+ * @type {string}
99
+ * @memberof NigeriaNinLookup2ProviderOutput
100
+ */
101
+ localGovernmentArea?: string | null;
102
+ /**
103
+ * State of residence.
104
+ * @type {string}
105
+ * @memberof NigeriaNinLookup2ProviderOutput
106
+ */
107
+ state?: string | null;
108
+ }
109
+
110
+ /**
111
+ * Check if a given object implements the NigeriaNinLookup2ProviderOutput interface.
112
+ */
113
+ export function instanceOfNigeriaNinLookup2ProviderOutput(value: object): value is NigeriaNinLookup2ProviderOutput {
114
+ if (!('firstName' in value) || value['firstName'] === undefined) return false;
115
+ if (!('surname' in value) || value['surname'] === undefined) return false;
116
+ if (!('nationalIdentityNumber' in value) || value['nationalIdentityNumber'] === undefined) return false;
117
+ return true;
118
+ }
119
+
120
+ export function NigeriaNinLookup2ProviderOutputFromJSON(json: any): NigeriaNinLookup2ProviderOutput {
121
+ return NigeriaNinLookup2ProviderOutputFromJSONTyped(json, false);
122
+ }
123
+
124
+ export function NigeriaNinLookup2ProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): NigeriaNinLookup2ProviderOutput {
125
+ if (json == null) {
126
+ return json;
127
+ }
128
+ return {
129
+
130
+ 'firstName': json['firstName'],
131
+ 'middleName': json['middleName'] == null ? undefined : json['middleName'],
132
+ 'surname': json['surname'],
133
+ 'sex': json['sex'] == null ? undefined : json['sex'],
134
+ 'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
135
+ 'birthCountry': json['birthCountry'] == null ? undefined : json['birthCountry'],
136
+ 'nationalIdentityNumber': json['nationalIdentityNumber'],
137
+ 'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
138
+ 'email': json['email'] == null ? undefined : json['email'],
139
+ 'address': json['address'] == null ? undefined : json['address'],
140
+ 'localGovernmentArea': json['localGovernmentArea'] == null ? undefined : json['localGovernmentArea'],
141
+ 'state': json['state'] == null ? undefined : json['state'],
142
+ };
143
+ }
144
+
145
+ export function NigeriaNinLookup2ProviderOutputToJSON(json: any): NigeriaNinLookup2ProviderOutput {
146
+ return NigeriaNinLookup2ProviderOutputToJSONTyped(json, false);
147
+ }
148
+
149
+ export function NigeriaNinLookup2ProviderOutputToJSONTyped(value?: NigeriaNinLookup2ProviderOutput | null, ignoreDiscriminator: boolean = false): any {
150
+ if (value == null) {
151
+ return value;
152
+ }
153
+
154
+ return {
155
+
156
+ 'firstName': value['firstName'],
157
+ 'middleName': value['middleName'],
158
+ 'surname': value['surname'],
159
+ 'sex': value['sex'],
160
+ 'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth'] as any).toISOString().substring(0,10)),
161
+ 'birthCountry': value['birthCountry'],
162
+ 'nationalIdentityNumber': value['nationalIdentityNumber'],
163
+ 'phoneNumber': value['phoneNumber'],
164
+ 'email': value['email'],
165
+ 'address': value['address'],
166
+ 'localGovernmentArea': value['localGovernmentArea'],
167
+ 'state': value['state'],
168
+ };
169
+ }
170
+
@@ -0,0 +1,144 @@
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
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * Exposed properties for the `norway-bankid` Provider which do not directly map to the normalized IdentityData model.
18
+ * @export
19
+ * @interface NorwegianBankIdProviderOutput
20
+ */
21
+ export interface NorwegianBankIdProviderOutput {
22
+ /**
23
+ * The full name of the individual.
24
+ * @type {string}
25
+ * @memberof NorwegianBankIdProviderOutput
26
+ */
27
+ fullName?: string | null;
28
+ /**
29
+ * The date of birth of the individual.
30
+ * @type {Date}
31
+ * @memberof NorwegianBankIdProviderOutput
32
+ */
33
+ dateOfBirth?: Date | null;
34
+ /**
35
+ * The personal identifier for Norwegian BankID.
36
+ *
37
+ * This uniquely identifies the user in the Norwegian BankID system and is considered a stable identifier to use.
38
+ * @type {string}
39
+ * @memberof NorwegianBankIdProviderOutput
40
+ */
41
+ personalIdentifier?: string | null;
42
+ /**
43
+ * The 11-digit Norwegian National Identity Number (fødselsnummer) of the verified individual.
44
+ *
45
+ * This is in the format DDMMYYZZZCC, where:
46
+ * - DDMMYY is the date of birth (In some cases, this is not the date of birth due to no available identity numbers for some dates
47
+ * - ZZZ is an individual number, indicating gender
48
+ * - CC is a checksum character
49
+ *
50
+ * If ZZZ is even, the individual is female.
51
+ * If ZZZ is odd, the individual is male.
52
+ * @type {string}
53
+ * @memberof NorwegianBankIdProviderOutput
54
+ */
55
+ nationalIdentityNumber?: string | null;
56
+ /**
57
+ * The given name of the individual.
58
+ * @type {string}
59
+ * @memberof NorwegianBankIdProviderOutput
60
+ */
61
+ givenName?: string | null;
62
+ /**
63
+ * The family name of the individual.
64
+ * @type {string}
65
+ * @memberof NorwegianBankIdProviderOutput
66
+ */
67
+ familyName?: string | null;
68
+ /**
69
+ * The level of assurance (LOA) for the verification.
70
+ *
71
+ * The LOA refers to the degree of confidence in the claimed identity of a person.
72
+ * The European Digital Identity Framework (EUDI) measures the confidence of the digital identity's verification and authentication strength by a set of requirements for different levels.
73
+ * To learn more, see: https://ec.europa.eu/digital-building-blocks/sites/spaces/DIGITAL/pages/467110081/eIDAS+Levels+of+Assurance
74
+ *
75
+ * Possible values:
76
+ * - Low: The user has self asserted their identity and multifactor authentication is not required.
77
+ * - Substantial: The user has performed either a remote or in-person identity verification and multifactor authentication is required.
78
+ * - High: The user has performed an in-person identity proofing with an authorized representative and has strong cryptographic authentication requirements such as using a smart card.
79
+ * @type {string}
80
+ * @memberof NorwegianBankIdProviderOutput
81
+ */
82
+ levelOfAssurance?: string | null;
83
+ /**
84
+ * The authentication method used by the individual.
85
+ *
86
+ * Possible values:
87
+ * - urn:bankid:bis - BankID with Biometrics
88
+ * - urn:bankid:bid - Standard BankID with High Assurance
89
+ * @type {string}
90
+ * @memberof NorwegianBankIdProviderOutput
91
+ */
92
+ authenticationMethod?: string | null;
93
+ }
94
+
95
+ /**
96
+ * Check if a given object implements the NorwegianBankIdProviderOutput interface.
97
+ */
98
+ export function instanceOfNorwegianBankIdProviderOutput(value: object): value is NorwegianBankIdProviderOutput {
99
+ return true;
100
+ }
101
+
102
+ export function NorwegianBankIdProviderOutputFromJSON(json: any): NorwegianBankIdProviderOutput {
103
+ return NorwegianBankIdProviderOutputFromJSONTyped(json, false);
104
+ }
105
+
106
+ export function NorwegianBankIdProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): NorwegianBankIdProviderOutput {
107
+ if (json == null) {
108
+ return json;
109
+ }
110
+ return {
111
+
112
+ 'fullName': json['fullName'] == null ? undefined : json['fullName'],
113
+ 'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
114
+ 'personalIdentifier': json['personalIdentifier'] == null ? undefined : json['personalIdentifier'],
115
+ 'nationalIdentityNumber': json['nationalIdentityNumber'] == null ? undefined : json['nationalIdentityNumber'],
116
+ 'givenName': json['givenName'] == null ? undefined : json['givenName'],
117
+ 'familyName': json['familyName'] == null ? undefined : json['familyName'],
118
+ 'levelOfAssurance': json['levelOfAssurance'] == null ? undefined : json['levelOfAssurance'],
119
+ 'authenticationMethod': json['authenticationMethod'] == null ? undefined : json['authenticationMethod'],
120
+ };
121
+ }
122
+
123
+ export function NorwegianBankIdProviderOutputToJSON(json: any): NorwegianBankIdProviderOutput {
124
+ return NorwegianBankIdProviderOutputToJSONTyped(json, false);
125
+ }
126
+
127
+ export function NorwegianBankIdProviderOutputToJSONTyped(value?: NorwegianBankIdProviderOutput | null, ignoreDiscriminator: boolean = false): any {
128
+ if (value == null) {
129
+ return value;
130
+ }
131
+
132
+ return {
133
+
134
+ 'fullName': value['fullName'],
135
+ 'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth'] as any).toISOString().substring(0,10)),
136
+ 'personalIdentifier': value['personalIdentifier'],
137
+ 'nationalIdentityNumber': value['nationalIdentityNumber'],
138
+ 'givenName': value['givenName'],
139
+ 'familyName': value['familyName'],
140
+ 'levelOfAssurance': value['levelOfAssurance'],
141
+ 'authenticationMethod': value['authenticationMethod'],
142
+ };
143
+ }
144
+
@@ -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
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface OneIdProviderAddress
20
+ */
21
+ export interface OneIdProviderAddress {
22
+ /**
23
+ * The line or street portion of the address.
24
+ * @type {string}
25
+ * @memberof OneIdProviderAddress
26
+ */
27
+ streetAddress?: string | null;
28
+ /**
29
+ * The locality or city portion of the address.
30
+ * @type {string}
31
+ * @memberof OneIdProviderAddress
32
+ */
33
+ locality?: string | null;
34
+ /**
35
+ * The region or subdivision portion of the address.
36
+ * @type {string}
37
+ * @memberof OneIdProviderAddress
38
+ */
39
+ region?: string | null;
40
+ /**
41
+ * The postal code of the address.
42
+ * @type {string}
43
+ * @memberof OneIdProviderAddress
44
+ */
45
+ postalCode?: string | null;
46
+ /**
47
+ * The alpha-2 country code of the address.
48
+ * @type {string}
49
+ * @memberof OneIdProviderAddress
50
+ */
51
+ countryCode?: string | null;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the OneIdProviderAddress interface.
56
+ */
57
+ export function instanceOfOneIdProviderAddress(value: object): value is OneIdProviderAddress {
58
+ return true;
59
+ }
60
+
61
+ export function OneIdProviderAddressFromJSON(json: any): OneIdProviderAddress {
62
+ return OneIdProviderAddressFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function OneIdProviderAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): OneIdProviderAddress {
66
+ if (json == null) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'streetAddress': json['streetAddress'] == null ? undefined : json['streetAddress'],
72
+ 'locality': json['locality'] == null ? undefined : json['locality'],
73
+ 'region': json['region'] == null ? undefined : json['region'],
74
+ 'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
75
+ 'countryCode': json['countryCode'] == null ? undefined : json['countryCode'],
76
+ };
77
+ }
78
+
79
+ export function OneIdProviderAddressToJSON(json: any): OneIdProviderAddress {
80
+ return OneIdProviderAddressToJSONTyped(json, false);
81
+ }
82
+
83
+ export function OneIdProviderAddressToJSONTyped(value?: OneIdProviderAddress | null, ignoreDiscriminator: boolean = false): any {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+
88
+ return {
89
+
90
+ 'streetAddress': value['streetAddress'],
91
+ 'locality': value['locality'],
92
+ 'region': value['region'],
93
+ 'postalCode': value['postalCode'],
94
+ 'countryCode': value['countryCode'],
95
+ };
96
+ }
97
+
@@ -0,0 +1,113 @@
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
+
15
+ import { mapValues } from '../runtime';
16
+ import type { OneIdProviderAddress } from './OneIdProviderAddress';
17
+ import {
18
+ OneIdProviderAddressFromJSON,
19
+ OneIdProviderAddressFromJSONTyped,
20
+ OneIdProviderAddressToJSON,
21
+ OneIdProviderAddressToJSONTyped,
22
+ } from './OneIdProviderAddress';
23
+
24
+ /**
25
+ * Exposed properties for the `oneid` Provider which do not directly map to the normalized IdentityData model.
26
+ * @export
27
+ * @interface OneIdProviderOutput
28
+ */
29
+ export interface OneIdProviderOutput {
30
+ /**
31
+ * The OpenID Connect (OIDC) subject identifier (sub).
32
+ * @type {string}
33
+ * @memberof OneIdProviderOutput
34
+ */
35
+ sub?: string | null;
36
+ /**
37
+ * The individual's full name.
38
+ * @type {string}
39
+ * @memberof OneIdProviderOutput
40
+ */
41
+ fullName?: string | null;
42
+ /**
43
+ * The individual's given name.
44
+ * @type {string}
45
+ * @memberof OneIdProviderOutput
46
+ */
47
+ givenName?: string | null;
48
+ /**
49
+ * The individual's family name.
50
+ * @type {string}
51
+ * @memberof OneIdProviderOutput
52
+ */
53
+ familyName?: string | null;
54
+ /**
55
+ * The date of birth of the individual.
56
+ * @type {Date}
57
+ * @memberof OneIdProviderOutput
58
+ */
59
+ birthdate?: Date | null;
60
+ /**
61
+ * The address of the individual.
62
+ * @type {OneIdProviderAddress}
63
+ * @memberof OneIdProviderOutput
64
+ */
65
+ address?: OneIdProviderAddress | null;
66
+ }
67
+
68
+ /**
69
+ * Check if a given object implements the OneIdProviderOutput interface.
70
+ */
71
+ export function instanceOfOneIdProviderOutput(value: object): value is OneIdProviderOutput {
72
+ return true;
73
+ }
74
+
75
+ export function OneIdProviderOutputFromJSON(json: any): OneIdProviderOutput {
76
+ return OneIdProviderOutputFromJSONTyped(json, false);
77
+ }
78
+
79
+ export function OneIdProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): OneIdProviderOutput {
80
+ if (json == null) {
81
+ return json;
82
+ }
83
+ return {
84
+
85
+ 'sub': json['sub'] == null ? undefined : json['sub'],
86
+ 'fullName': json['fullName'] == null ? undefined : json['fullName'],
87
+ 'givenName': json['givenName'] == null ? undefined : json['givenName'],
88
+ 'familyName': json['familyName'] == null ? undefined : json['familyName'],
89
+ 'birthdate': json['birthdate'] == null ? undefined : (new Date(json['birthdate'])),
90
+ 'address': json['address'] == null ? undefined : OneIdProviderAddressFromJSON(json['address']),
91
+ };
92
+ }
93
+
94
+ export function OneIdProviderOutputToJSON(json: any): OneIdProviderOutput {
95
+ return OneIdProviderOutputToJSONTyped(json, false);
96
+ }
97
+
98
+ export function OneIdProviderOutputToJSONTyped(value?: OneIdProviderOutput | null, ignoreDiscriminator: boolean = false): any {
99
+ if (value == null) {
100
+ return value;
101
+ }
102
+
103
+ return {
104
+
105
+ 'sub': value['sub'],
106
+ 'fullName': value['fullName'],
107
+ 'givenName': value['givenName'],
108
+ 'familyName': value['familyName'],
109
+ 'birthdate': value['birthdate'] == null ? undefined : ((value['birthdate'] as any).toISOString().substring(0,10)),
110
+ 'address': OneIdProviderAddressToJSON(value['address']),
111
+ };
112
+ }
113
+
@@ -0,0 +1,89 @@
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
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface OutputFrejaAddress
20
+ */
21
+ export interface OutputFrejaAddress {
22
+ /**
23
+ * The line1 portion of the address. Incorporates all address details that are not included by city, postal code, and country.
24
+ * @type {string}
25
+ * @memberof OutputFrejaAddress
26
+ */
27
+ line1?: string | null;
28
+ /**
29
+ * The name of the city associated with the address.
30
+ * @type {string}
31
+ * @memberof OutputFrejaAddress
32
+ */
33
+ city?: string | null;
34
+ /**
35
+ * The postal code associated with the address.
36
+ * @type {string}
37
+ * @memberof OutputFrejaAddress
38
+ */
39
+ postalCode?: string | null;
40
+ /**
41
+ * The ISO 3166-1 alpha-2 country code associated with the address.
42
+ * @type {string}
43
+ * @memberof OutputFrejaAddress
44
+ */
45
+ country?: string | null;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the OutputFrejaAddress interface.
50
+ */
51
+ export function instanceOfOutputFrejaAddress(value: object): value is OutputFrejaAddress {
52
+ return true;
53
+ }
54
+
55
+ export function OutputFrejaAddressFromJSON(json: any): OutputFrejaAddress {
56
+ return OutputFrejaAddressFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function OutputFrejaAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): OutputFrejaAddress {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'line1': json['line1'] == null ? undefined : json['line1'],
66
+ 'city': json['city'] == null ? undefined : json['city'],
67
+ 'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
68
+ 'country': json['country'] == null ? undefined : json['country'],
69
+ };
70
+ }
71
+
72
+ export function OutputFrejaAddressToJSON(json: any): OutputFrejaAddress {
73
+ return OutputFrejaAddressToJSONTyped(json, false);
74
+ }
75
+
76
+ export function OutputFrejaAddressToJSONTyped(value?: OutputFrejaAddress | null, ignoreDiscriminator: boolean = false): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+
81
+ return {
82
+
83
+ 'line1': value['line1'],
84
+ 'city': value['city'],
85
+ 'postalCode': value['postalCode'],
86
+ 'country': value['country'],
87
+ };
88
+ }
89
+