@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
@@ -13,49 +13,150 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { OutputFrejaAddress } from './OutputFrejaAddress';
17
+ import {
18
+ OutputFrejaAddressFromJSON,
19
+ OutputFrejaAddressFromJSONTyped,
20
+ OutputFrejaAddressToJSON,
21
+ OutputFrejaAddressToJSONTyped,
22
+ } from './OutputFrejaAddress';
23
+ import type { OutputFrejaDocument } from './OutputFrejaDocument';
24
+ import {
25
+ OutputFrejaDocumentFromJSON,
26
+ OutputFrejaDocumentFromJSONTyped,
27
+ OutputFrejaDocumentToJSON,
28
+ OutputFrejaDocumentToJSONTyped,
29
+ } from './OutputFrejaDocument';
30
+
16
31
  /**
17
- * Exposed properties for the `a-freja-eid-login` Provider which do not directly map to the normalized IdentityData model.
32
+ * Exposed properties for the `freja` Provider which do not directly map to the normalized IdentityData model.
18
33
  * @export
19
34
  * @interface FrejaProviderOutput
20
35
  */
21
36
  export interface FrejaProviderOutput {
22
37
  /**
23
- * The first name of the verified individual
38
+ * The individual's full name.
24
39
  * @type {string}
25
40
  * @memberof FrejaProviderOutput
26
41
  */
27
- firstName: string;
42
+ name?: string | null;
28
43
  /**
29
- * The last name of the verified individual
44
+ * The individual's first name.
30
45
  * @type {string}
31
46
  * @memberof FrejaProviderOutput
32
47
  */
33
- lastName: string;
48
+ givenName?: string | null;
34
49
  /**
35
- * The value returned by Freja in the "ssn" field.
50
+ * The individual's last name.
51
+ * @type {string}
52
+ * @memberof FrejaProviderOutput
53
+ */
54
+ familyName?: string | null;
55
+ /**
56
+ * The date of birth of the individual.
36
57
  *
37
- * The actual value of this field depends on the country of origin used to create the Freja credential. It is typically
38
- * a Social Security Number, National Identification Number, or equivalent personal identifier.
58
+ * Formatted as an ISO 8601 Date.
59
+ * @type {Date}
60
+ * @memberof FrejaProviderOutput
61
+ */
62
+ dateOfBirth?: Date | null;
63
+ /**
64
+ * The individual's primary email address within Freja.
65
+ * @type {string}
66
+ * @memberof FrejaProviderOutput
67
+ */
68
+ email?: string | null;
69
+ /**
70
+ * A boolean which indicates whether the individual's primary email address has been verified by Freja.
71
+ * @type {boolean}
72
+ * @memberof FrejaProviderOutput
73
+ */
74
+ emailVerified?: boolean | null;
75
+ /**
76
+ * An array of all associated email addresses of the individual.
77
+ * @type {Array<string>}
78
+ * @memberof FrejaProviderOutput
79
+ */
80
+ allEmailAddresses?: Array<string> | null;
81
+ /**
82
+ * The individual's primary address on file.
83
+ * @type {OutputFrejaAddress}
84
+ * @memberof FrejaProviderOutput
85
+ */
86
+ primaryPhysicalAddress?: OutputFrejaAddress | null;
87
+ /**
88
+ * A list of all associated addresses of the individual.
89
+ * @type {Array<OutputFrejaAddress>}
90
+ * @memberof FrejaProviderOutput
91
+ */
92
+ allPhysicalAddresses?: Array<OutputFrejaAddress> | null;
93
+ /**
94
+ * The individual's age in years.
95
+ * @type {number}
96
+ * @memberof FrejaProviderOutput
97
+ */
98
+ age?: number | null;
99
+ /**
100
+ * The individual's phone number in the E.164 format.
101
+ * @type {string}
102
+ * @memberof FrejaProviderOutput
103
+ */
104
+ phoneNumber?: string | null;
105
+ /**
106
+ * Whether the individual's phone number has been verified by Freja.
107
+ * @type {boolean}
108
+ * @memberof FrejaProviderOutput
109
+ */
110
+ phoneNumberVerified?: boolean | null;
111
+ /**
112
+ * The individual's personal identity number. The actual value of this field depends on the country of origin used to
113
+ * create the Freja credential. It is typically a Social Security Number, National Identification Number, or equivalent
114
+ * personal identifier.
115
+ * @type {string}
116
+ * @memberof FrejaProviderOutput
117
+ */
118
+ personalIdentityNumber?: string | null;
119
+ /**
120
+ * The ISO 3166-1 alpha-2 country code associated with the individual's country of origin.
121
+ * @type {string}
122
+ * @memberof FrejaProviderOutput
123
+ */
124
+ country?: string | null;
125
+ /**
126
+ * The underlying document, such as a passport, used to create the Freja credential.
127
+ * @type {OutputFrejaDocument}
128
+ * @memberof FrejaProviderOutput
129
+ */
130
+ document?: OutputFrejaDocument | null;
131
+ /**
132
+ * The Freja registration level associated with this individual. This can be BASIC, EXTENDED, or PLUS.
133
+ * * BASIC: Individual has a registered account with Freja.
134
+ * * EXTENDED: Individual has an official identity document verified by Freja.
135
+ * * PLUS: Individual has undergone in-person verification with Freja.
136
+ * @type {string}
137
+ * @memberof FrejaProviderOutput
138
+ */
139
+ registrationLevel?: string | null;
140
+ /**
141
+ * The relying party user identifier for this individual. This is an identifier specific to the individual and the
142
+ * relying party (your service).
39
143
  * @type {string}
40
144
  * @memberof FrejaProviderOutput
41
145
  */
42
- personalNumber: string;
146
+ relyingPartyUserId?: string | null;
43
147
  /**
44
- * The 2-digit ISO country code of the country which issued the personal number.
148
+ * The Freja transaction reference for this verification. This is an identifier specific to the verification
149
+ * transaction.
45
150
  * @type {string}
46
151
  * @memberof FrejaProviderOutput
47
152
  */
48
- personalNumberCountry: string;
153
+ transactionReference?: string | null;
49
154
  }
50
155
 
51
156
  /**
52
157
  * Check if a given object implements the FrejaProviderOutput interface.
53
158
  */
54
159
  export function instanceOfFrejaProviderOutput(value: object): value is FrejaProviderOutput {
55
- if (!('firstName' in value) || value['firstName'] === undefined) return false;
56
- if (!('lastName' in value) || value['lastName'] === undefined) return false;
57
- if (!('personalNumber' in value) || value['personalNumber'] === undefined) return false;
58
- if (!('personalNumberCountry' in value) || value['personalNumberCountry'] === undefined) return false;
59
160
  return true;
60
161
  }
61
162
 
@@ -69,10 +170,24 @@ export function FrejaProviderOutputFromJSONTyped(json: any, ignoreDiscriminator:
69
170
  }
70
171
  return {
71
172
 
72
- 'firstName': json['firstName'],
73
- 'lastName': json['lastName'],
74
- 'personalNumber': json['personalNumber'],
75
- 'personalNumberCountry': json['personalNumberCountry'],
173
+ 'name': json['name'] == null ? undefined : json['name'],
174
+ 'givenName': json['givenName'] == null ? undefined : json['givenName'],
175
+ 'familyName': json['familyName'] == null ? undefined : json['familyName'],
176
+ 'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
177
+ 'email': json['email'] == null ? undefined : json['email'],
178
+ 'emailVerified': json['emailVerified'] == null ? undefined : json['emailVerified'],
179
+ 'allEmailAddresses': json['allEmailAddresses'] == null ? undefined : json['allEmailAddresses'],
180
+ 'primaryPhysicalAddress': json['primaryPhysicalAddress'] == null ? undefined : OutputFrejaAddressFromJSON(json['primaryPhysicalAddress']),
181
+ 'allPhysicalAddresses': json['allPhysicalAddresses'] == null ? undefined : ((json['allPhysicalAddresses'] as Array<any>).map(OutputFrejaAddressFromJSON)),
182
+ 'age': json['age'] == null ? undefined : json['age'],
183
+ 'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
184
+ 'phoneNumberVerified': json['phoneNumberVerified'] == null ? undefined : json['phoneNumberVerified'],
185
+ 'personalIdentityNumber': json['personalIdentityNumber'] == null ? undefined : json['personalIdentityNumber'],
186
+ 'country': json['country'] == null ? undefined : json['country'],
187
+ 'document': json['document'] == null ? undefined : OutputFrejaDocumentFromJSON(json['document']),
188
+ 'registrationLevel': json['registrationLevel'] == null ? undefined : json['registrationLevel'],
189
+ 'relyingPartyUserId': json['relyingPartyUserId'] == null ? undefined : json['relyingPartyUserId'],
190
+ 'transactionReference': json['transactionReference'] == null ? undefined : json['transactionReference'],
76
191
  };
77
192
  }
78
193
 
@@ -87,10 +202,24 @@ export function FrejaProviderOutputToJSONTyped(value?: FrejaProviderOutput | nul
87
202
 
88
203
  return {
89
204
 
90
- 'firstName': value['firstName'],
91
- 'lastName': value['lastName'],
92
- 'personalNumber': value['personalNumber'],
93
- 'personalNumberCountry': value['personalNumberCountry'],
205
+ 'name': value['name'],
206
+ 'givenName': value['givenName'],
207
+ 'familyName': value['familyName'],
208
+ 'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth'] as any).toISOString().substring(0,10)),
209
+ 'email': value['email'],
210
+ 'emailVerified': value['emailVerified'],
211
+ 'allEmailAddresses': value['allEmailAddresses'],
212
+ 'primaryPhysicalAddress': OutputFrejaAddressToJSON(value['primaryPhysicalAddress']),
213
+ 'allPhysicalAddresses': value['allPhysicalAddresses'] == null ? undefined : ((value['allPhysicalAddresses'] as Array<any>).map(OutputFrejaAddressToJSON)),
214
+ 'age': value['age'],
215
+ 'phoneNumber': value['phoneNumber'],
216
+ 'phoneNumberVerified': value['phoneNumberVerified'],
217
+ 'personalIdentityNumber': value['personalIdentityNumber'],
218
+ 'country': value['country'],
219
+ 'document': OutputFrejaDocumentToJSON(value['document']),
220
+ 'registrationLevel': value['registrationLevel'],
221
+ 'relyingPartyUserId': value['relyingPartyUserId'],
222
+ 'transactionReference': value['transactionReference'],
94
223
  };
95
224
  }
96
225
 
@@ -0,0 +1,74 @@
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 { Provider } from './Provider';
17
+ import {
18
+ ProviderFromJSON,
19
+ ProviderFromJSONTyped,
20
+ ProviderToJSON,
21
+ ProviderToJSONTyped,
22
+ } from './Provider';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GetProviderResponse
28
+ */
29
+ export interface GetProviderResponse {
30
+ /**
31
+ * The provider available to this organization
32
+ * @type {Provider}
33
+ * @memberof GetProviderResponse
34
+ */
35
+ provider: Provider;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the GetProviderResponse interface.
40
+ */
41
+ export function instanceOfGetProviderResponse(value: object): value is GetProviderResponse {
42
+ if (!('provider' in value) || value['provider'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function GetProviderResponseFromJSON(json: any): GetProviderResponse {
47
+ return GetProviderResponseFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function GetProviderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProviderResponse {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'provider': ProviderFromJSON(json['provider']),
57
+ };
58
+ }
59
+
60
+ export function GetProviderResponseToJSON(json: any): GetProviderResponse {
61
+ return GetProviderResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetProviderResponseToJSONTyped(value?: GetProviderResponse | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'provider': ProviderToJSON(value['provider']),
72
+ };
73
+ }
74
+
@@ -20,6 +20,13 @@ import {
20
20
  MdlExchangeMechanismToJSON,
21
21
  MdlExchangeMechanismToJSONTyped,
22
22
  } from './MdlExchangeMechanism';
23
+ import type { Raw18013RequestInput } from './Raw18013RequestInput';
24
+ import {
25
+ Raw18013RequestInputFromJSON,
26
+ Raw18013RequestInputFromJSONTyped,
27
+ Raw18013RequestInputToJSON,
28
+ Raw18013RequestInputToJSONTyped,
29
+ } from './Raw18013RequestInput';
23
30
 
24
31
  /**
25
32
  *
@@ -35,6 +42,16 @@ export interface GoogleWalletInput {
35
42
  * @memberof GoogleWalletInput
36
43
  */
37
44
  exchangeMechanism?: MdlExchangeMechanism | null;
45
+ /**
46
+ * **Preview feature: not suitable for production use cases**
47
+ *
48
+ * The raw 18013-7 exchange request to use for this verification.
49
+ *
50
+ * If set, this overrides any default configuration on your Verification Profile.
51
+ * @type {Raw18013RequestInput}
52
+ * @memberof GoogleWalletInput
53
+ */
54
+ previewRaw18013Request?: Raw18013RequestInput | null;
38
55
  }
39
56
 
40
57
 
@@ -57,6 +74,7 @@ export function GoogleWalletInputFromJSONTyped(json: any, ignoreDiscriminator: b
57
74
  return {
58
75
 
59
76
  'exchangeMechanism': json['exchangeMechanism'] == null ? undefined : MdlExchangeMechanismFromJSON(json['exchangeMechanism']),
77
+ 'previewRaw18013Request': json['preview_raw18013Request'] == null ? undefined : Raw18013RequestInputFromJSON(json['preview_raw18013Request']),
60
78
  };
61
79
  }
62
80
 
@@ -72,6 +90,7 @@ export function GoogleWalletInputToJSONTyped(value?: GoogleWalletInput | null, i
72
90
  return {
73
91
 
74
92
  'exchangeMechanism': MdlExchangeMechanismToJSON(value['exchangeMechanism']),
93
+ 'preview_raw18013Request': Raw18013RequestInputToJSON(value['previewRaw18013Request']),
75
94
  };
76
95
  }
77
96
 
@@ -29,7 +29,7 @@ import {
29
29
  } from './IntegrationLaunchMethod';
30
30
 
31
31
  /**
32
- * A step to perform in the process of executing an Direct Provider Session
32
+ * A step to perform in the process of executing a Direct Provider Session
33
33
  * @export
34
34
  * @interface IntegrationStep
35
35
  */
@@ -0,0 +1,131 @@
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
+ * Represents a Kenya address as stored in the IPRS (Integrated Population Registration System) database.
18
+ *
19
+ * The structure reflects the pre-2010 provincial administration system: District > Division > Location.
20
+ * Since the 2010 constitutional change to counties, these legacy administrative divisions are still
21
+ * maintained in IPRS records for historical continuity.
22
+ *
23
+ * The raw address from IPRS is a newline-separated string with labeled administrative components.
24
+ * Example format:
25
+ *
26
+ * ```
27
+ * P O BOX 41842 NAIROBI
28
+ * PARLIAMENT BUILDINGS
29
+ * LOCATION - CITY SQUARE
30
+ * DIVISION - CENTRAL
31
+ * DISTRICT - NAIROBI
32
+ * ```
33
+ *
34
+ * The first lines contain informal address details (village, P.O. Box) while the suffixed lines
35
+ * contain official administrative designations prefixed with labels like "LOCATION -", "DIVISION -", "DISTRICT -".
36
+ * @export
37
+ * @interface KenyaNidLookup2Address
38
+ */
39
+ export interface KenyaNidLookup2Address {
40
+ /**
41
+ * The district where the person resides.
42
+ *
43
+ * This is the highest level of the pre-2010 administrative hierarchy stored in IPRS. Districts were
44
+ * the primary administrative units under Kenya's provincial system before the change to counties in 2010.
45
+ * Districts roughly correspond to sub-counties in the current administrative structure.
46
+ * @type {string}
47
+ * @memberof KenyaNidLookup2Address
48
+ */
49
+ district?: string | null;
50
+ /**
51
+ * The division within the district.
52
+ *
53
+ * This is the second level of the pre-2010 administrative hierarchy. Divisions were administrative
54
+ * units between districts and locations.
55
+ * @type {string}
56
+ * @memberof KenyaNidLookup2Address
57
+ */
58
+ division?: string | null;
59
+ /**
60
+ * The location within the division.
61
+ *
62
+ * This is the third level of the pre-2010 administrative hierarchy. Locations were the smallest
63
+ * administrative units.
64
+ * @type {string}
65
+ * @memberof KenyaNidLookup2Address
66
+ */
67
+ location?: string | null;
68
+ /**
69
+ * Additional address lines that appear before the structured administrative parts.
70
+ *
71
+ * May include P.O. Box (format: "P O BOX [number] [location]"), village names, estate names,
72
+ * or other informal locality information.
73
+ * @type {Array<string>}
74
+ * @memberof KenyaNidLookup2Address
75
+ */
76
+ additionalLines?: Array<string> | null;
77
+ /**
78
+ * The raw, unparsed address string as returned from IPRS (Integrated Population Registration System).
79
+ *
80
+ * This preserves the original newline-separated format containing both informal address components
81
+ * (village, P.O. Box) and labeled administrative divisions (LOCATION, DIVISION, DISTRICT).
82
+ * @type {string}
83
+ * @memberof KenyaNidLookup2Address
84
+ */
85
+ raw?: string | null;
86
+ }
87
+
88
+ /**
89
+ * Check if a given object implements the KenyaNidLookup2Address interface.
90
+ */
91
+ export function instanceOfKenyaNidLookup2Address(value: object): value is KenyaNidLookup2Address {
92
+ return true;
93
+ }
94
+
95
+ export function KenyaNidLookup2AddressFromJSON(json: any): KenyaNidLookup2Address {
96
+ return KenyaNidLookup2AddressFromJSONTyped(json, false);
97
+ }
98
+
99
+ export function KenyaNidLookup2AddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): KenyaNidLookup2Address {
100
+ if (json == null) {
101
+ return json;
102
+ }
103
+ return {
104
+
105
+ 'district': json['district'] == null ? undefined : json['district'],
106
+ 'division': json['division'] == null ? undefined : json['division'],
107
+ 'location': json['location'] == null ? undefined : json['location'],
108
+ 'additionalLines': json['additionalLines'] == null ? undefined : json['additionalLines'],
109
+ 'raw': json['raw'] == null ? undefined : json['raw'],
110
+ };
111
+ }
112
+
113
+ export function KenyaNidLookup2AddressToJSON(json: any): KenyaNidLookup2Address {
114
+ return KenyaNidLookup2AddressToJSONTyped(json, false);
115
+ }
116
+
117
+ export function KenyaNidLookup2AddressToJSONTyped(value?: KenyaNidLookup2Address | null, ignoreDiscriminator: boolean = false): any {
118
+ if (value == null) {
119
+ return value;
120
+ }
121
+
122
+ return {
123
+
124
+ 'district': value['district'],
125
+ 'division': value['division'],
126
+ 'location': value['location'],
127
+ 'additionalLines': value['additionalLines'],
128
+ 'raw': value['raw'],
129
+ };
130
+ }
131
+
@@ -0,0 +1,180 @@
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 { KenyaNidLookup2Address } from './KenyaNidLookup2Address';
17
+ import {
18
+ KenyaNidLookup2AddressFromJSON,
19
+ KenyaNidLookup2AddressFromJSONTyped,
20
+ KenyaNidLookup2AddressToJSON,
21
+ KenyaNidLookup2AddressToJSONTyped,
22
+ } from './KenyaNidLookup2Address';
23
+
24
+ /**
25
+ * Exposed properties for the `kenya-nid-lookup-2` Provider which do not directly map to the normalized IdentityData model.
26
+ * @export
27
+ * @interface KenyaNidLookup2ProviderOutput
28
+ */
29
+ export interface KenyaNidLookup2ProviderOutput {
30
+ /**
31
+ * The first name (given name) of the ID holder as recorded in IPRS.
32
+ * @type {string}
33
+ * @memberof KenyaNidLookup2ProviderOutput
34
+ */
35
+ firstName: string;
36
+ /**
37
+ * The surname (family name) of the ID holder as recorded in IPRS.
38
+ * @type {string}
39
+ * @memberof KenyaNidLookup2ProviderOutput
40
+ */
41
+ surname: string;
42
+ /**
43
+ * The other name (middle name) of the ID holder as recorded in IPRS.
44
+ * @type {string}
45
+ * @memberof KenyaNidLookup2ProviderOutput
46
+ */
47
+ otherName?: string | null;
48
+ /**
49
+ * The sex of the ID holder as recorded on the National ID.
50
+ *
51
+ * Possible values:
52
+ * - Male
53
+ * - Female
54
+ * @type {string}
55
+ * @memberof KenyaNidLookup2ProviderOutput
56
+ */
57
+ sex: string;
58
+ /**
59
+ * The date of birth of the ID holder as recorded in IPRS.
60
+ * @type {Date}
61
+ * @memberof KenyaNidLookup2ProviderOutput
62
+ */
63
+ dateOfBirth?: Date | null;
64
+ /**
65
+ * Citizenship status as recorded in the IPRS civil registry database.
66
+ *
67
+ * For the Kenya National ID lookup, this value will always be "Kenyan" as the National ID is only
68
+ * issued to Kenyan citizens. Non-citizens residing in Kenya are issued different identification
69
+ * documents (Alien ID cards, refugee documentation, etc.) which are not supported by this provider.
70
+ * @type {string}
71
+ * @memberof KenyaNidLookup2ProviderOutput
72
+ */
73
+ citizenship: string;
74
+ /**
75
+ * The Kenya National ID Number (Nambari ya Kitambulisho).
76
+ *
77
+ * This is the primary unique identifier for Kenyan citizens in all government systems, issued by
78
+ * the National Registration Bureau (NRB). The format is 1 to 9 numeric digits (regex: /^[0-9]{1,9}$/).
79
+ * This number is assigned upon first registration at age 18 (or upon naturalization for new citizens)
80
+ * and remains constant for life.
81
+ * @type {string}
82
+ * @memberof KenyaNidLookup2ProviderOutput
83
+ */
84
+ idNumber: string;
85
+ /**
86
+ * The physical card serial number printed on the Kenya National ID card.
87
+ *
88
+ * This is distinct from the ID Number and serves as a card issuance tracking identifier maintained
89
+ * by IPRS. This value changes each time a new physical card is issued (loss, damage, renewal).
90
+ * @type {string}
91
+ * @memberof KenyaNidLookup2ProviderOutput
92
+ */
93
+ serialNumber: string;
94
+ /**
95
+ * The date the National ID was issued by the National Registration Bureau (NRB).
96
+ * @type {Date}
97
+ * @memberof KenyaNidLookup2ProviderOutput
98
+ */
99
+ dateOfIssue?: Date | null;
100
+ /**
101
+ * Place of birth as recorded in Kenya's civil registry (IPRS).
102
+ *
103
+ * This is structured according to Kenya's pre-2010 administrative hierarchy (District > Division > Location).
104
+ * @type {KenyaNidLookup2Address}
105
+ * @memberof KenyaNidLookup2ProviderOutput
106
+ */
107
+ placeOfBirth?: KenyaNidLookup2Address | null;
108
+ /**
109
+ * Current residence address as registered in IPRS.
110
+ *
111
+ * This represents the address on file at the time of ID registration or last update, structured
112
+ * according to Kenya's pre-2010 administrative hierarchy (District > Division > Location).
113
+ * @type {KenyaNidLookup2Address}
114
+ * @memberof KenyaNidLookup2ProviderOutput
115
+ */
116
+ placeOfResidence?: KenyaNidLookup2Address | null;
117
+ }
118
+
119
+ /**
120
+ * Check if a given object implements the KenyaNidLookup2ProviderOutput interface.
121
+ */
122
+ export function instanceOfKenyaNidLookup2ProviderOutput(value: object): value is KenyaNidLookup2ProviderOutput {
123
+ if (!('firstName' in value) || value['firstName'] === undefined) return false;
124
+ if (!('surname' in value) || value['surname'] === undefined) return false;
125
+ if (!('sex' in value) || value['sex'] === undefined) return false;
126
+ if (!('citizenship' in value) || value['citizenship'] === undefined) return false;
127
+ if (!('idNumber' in value) || value['idNumber'] === undefined) return false;
128
+ if (!('serialNumber' in value) || value['serialNumber'] === undefined) return false;
129
+ return true;
130
+ }
131
+
132
+ export function KenyaNidLookup2ProviderOutputFromJSON(json: any): KenyaNidLookup2ProviderOutput {
133
+ return KenyaNidLookup2ProviderOutputFromJSONTyped(json, false);
134
+ }
135
+
136
+ export function KenyaNidLookup2ProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): KenyaNidLookup2ProviderOutput {
137
+ if (json == null) {
138
+ return json;
139
+ }
140
+ return {
141
+
142
+ 'firstName': json['firstName'],
143
+ 'surname': json['surname'],
144
+ 'otherName': json['otherName'] == null ? undefined : json['otherName'],
145
+ 'sex': json['sex'],
146
+ 'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
147
+ 'citizenship': json['citizenship'],
148
+ 'idNumber': json['idNumber'],
149
+ 'serialNumber': json['serialNumber'],
150
+ 'dateOfIssue': json['dateOfIssue'] == null ? undefined : (new Date(json['dateOfIssue'])),
151
+ 'placeOfBirth': json['placeOfBirth'] == null ? undefined : KenyaNidLookup2AddressFromJSON(json['placeOfBirth']),
152
+ 'placeOfResidence': json['placeOfResidence'] == null ? undefined : KenyaNidLookup2AddressFromJSON(json['placeOfResidence']),
153
+ };
154
+ }
155
+
156
+ export function KenyaNidLookup2ProviderOutputToJSON(json: any): KenyaNidLookup2ProviderOutput {
157
+ return KenyaNidLookup2ProviderOutputToJSONTyped(json, false);
158
+ }
159
+
160
+ export function KenyaNidLookup2ProviderOutputToJSONTyped(value?: KenyaNidLookup2ProviderOutput | null, ignoreDiscriminator: boolean = false): any {
161
+ if (value == null) {
162
+ return value;
163
+ }
164
+
165
+ return {
166
+
167
+ 'firstName': value['firstName'],
168
+ 'surname': value['surname'],
169
+ 'otherName': value['otherName'],
170
+ 'sex': value['sex'],
171
+ 'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth'] as any).toISOString().substring(0,10)),
172
+ 'citizenship': value['citizenship'],
173
+ 'idNumber': value['idNumber'],
174
+ 'serialNumber': value['serialNumber'],
175
+ 'dateOfIssue': value['dateOfIssue'] == null ? undefined : ((value['dateOfIssue'] as any).toISOString().substring(0,10)),
176
+ 'placeOfBirth': KenyaNidLookup2AddressToJSON(value['placeOfBirth']),
177
+ 'placeOfResidence': KenyaNidLookup2AddressToJSON(value['placeOfResidence']),
178
+ };
179
+ }
180
+