@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,169 @@
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 { ConnectIdBeneficiaryAccount } from './ConnectIdBeneficiaryAccount';
17
+ import {
18
+ ConnectIdBeneficiaryAccountFromJSON,
19
+ ConnectIdBeneficiaryAccountFromJSONTyped,
20
+ ConnectIdBeneficiaryAccountToJSON,
21
+ ConnectIdBeneficiaryAccountToJSONTyped,
22
+ } from './ConnectIdBeneficiaryAccount';
23
+ import type { ConnectIdAgeVerification } from './ConnectIdAgeVerification';
24
+ import {
25
+ ConnectIdAgeVerificationFromJSON,
26
+ ConnectIdAgeVerificationFromJSONTyped,
27
+ ConnectIdAgeVerificationToJSON,
28
+ ConnectIdAgeVerificationToJSONTyped,
29
+ } from './ConnectIdAgeVerification';
30
+ import type { ConnectIdAddress } from './ConnectIdAddress';
31
+ import {
32
+ ConnectIdAddressFromJSON,
33
+ ConnectIdAddressFromJSONTyped,
34
+ ConnectIdAddressToJSON,
35
+ ConnectIdAddressToJSONTyped,
36
+ } from './ConnectIdAddress';
37
+
38
+ /**
39
+ * Exposed properties for the `australia-connect-id` Provider which do not directly map to the normalized IdentityData model.
40
+ * @export
41
+ * @interface ConnectIdProviderOutput
42
+ */
43
+ export interface ConnectIdProviderOutput {
44
+ /**
45
+ * The date of birth of an individual in YYYY-MM-DD format.
46
+ * @type {Date}
47
+ * @memberof ConnectIdProviderOutput
48
+ */
49
+ birthdate?: Date | null;
50
+ /**
51
+ * The given name of an individual.
52
+ * @type {string}
53
+ * @memberof ConnectIdProviderOutput
54
+ */
55
+ givenName?: string | null;
56
+ /**
57
+ * The middle name of an individual.
58
+ * @type {string}
59
+ * @memberof ConnectIdProviderOutput
60
+ */
61
+ middleName?: string | null;
62
+ /**
63
+ * The family/last name of an individual.
64
+ * @type {string}
65
+ * @memberof ConnectIdProviderOutput
66
+ */
67
+ familyName?: string | null;
68
+ /**
69
+ * The phone number of an individual.
70
+ * @type {string}
71
+ * @memberof ConnectIdProviderOutput
72
+ */
73
+ phoneNumber?: string | null;
74
+ /**
75
+ * The email of an individual.
76
+ * @type {string}
77
+ * @memberof ConnectIdProviderOutput
78
+ */
79
+ email?: string | null;
80
+ /**
81
+ * The OpenID Connect (OIDC) subject identifier (sub).
82
+ * @type {string}
83
+ * @memberof ConnectIdProviderOutput
84
+ */
85
+ sub?: string | null;
86
+ /**
87
+ * The age verification claim and whether the individual meets the age requirement.
88
+ * @type {ConnectIdAgeVerification}
89
+ * @memberof ConnectIdProviderOutput
90
+ */
91
+ ageVerification?: ConnectIdAgeVerification | null;
92
+ /**
93
+ * The verification session's transaction number.
94
+ *
95
+ * This is a unique identifier assigned to a single ConnectID transaction flow. It can be used for audit purposes or to flag fraudulent activity.
96
+ * @type {string}
97
+ * @memberof ConnectIdProviderOutput
98
+ */
99
+ transaction?: string | null;
100
+ /**
101
+ * The beneficiary account that has been designated by the individual.
102
+ * @type {ConnectIdBeneficiaryAccount}
103
+ * @memberof ConnectIdProviderOutput
104
+ */
105
+ beneficiaryAccount?: ConnectIdBeneficiaryAccount | null;
106
+ /**
107
+ * The address.
108
+ * @type {ConnectIdAddress}
109
+ * @memberof ConnectIdProviderOutput
110
+ */
111
+ address?: ConnectIdAddress | null;
112
+ }
113
+
114
+ /**
115
+ * Check if a given object implements the ConnectIdProviderOutput interface.
116
+ */
117
+ export function instanceOfConnectIdProviderOutput(value: object): value is ConnectIdProviderOutput {
118
+ return true;
119
+ }
120
+
121
+ export function ConnectIdProviderOutputFromJSON(json: any): ConnectIdProviderOutput {
122
+ return ConnectIdProviderOutputFromJSONTyped(json, false);
123
+ }
124
+
125
+ export function ConnectIdProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConnectIdProviderOutput {
126
+ if (json == null) {
127
+ return json;
128
+ }
129
+ return {
130
+
131
+ 'birthdate': json['birthdate'] == null ? undefined : (new Date(json['birthdate'])),
132
+ 'givenName': json['givenName'] == null ? undefined : json['givenName'],
133
+ 'middleName': json['middleName'] == null ? undefined : json['middleName'],
134
+ 'familyName': json['familyName'] == null ? undefined : json['familyName'],
135
+ 'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
136
+ 'email': json['email'] == null ? undefined : json['email'],
137
+ 'sub': json['sub'] == null ? undefined : json['sub'],
138
+ 'ageVerification': json['ageVerification'] == null ? undefined : ConnectIdAgeVerificationFromJSON(json['ageVerification']),
139
+ 'transaction': json['transaction'] == null ? undefined : json['transaction'],
140
+ 'beneficiaryAccount': json['beneficiaryAccount'] == null ? undefined : ConnectIdBeneficiaryAccountFromJSON(json['beneficiaryAccount']),
141
+ 'address': json['address'] == null ? undefined : ConnectIdAddressFromJSON(json['address']),
142
+ };
143
+ }
144
+
145
+ export function ConnectIdProviderOutputToJSON(json: any): ConnectIdProviderOutput {
146
+ return ConnectIdProviderOutputToJSONTyped(json, false);
147
+ }
148
+
149
+ export function ConnectIdProviderOutputToJSONTyped(value?: ConnectIdProviderOutput | null, ignoreDiscriminator: boolean = false): any {
150
+ if (value == null) {
151
+ return value;
152
+ }
153
+
154
+ return {
155
+
156
+ 'birthdate': value['birthdate'] == null ? undefined : ((value['birthdate'] as any).toISOString().substring(0,10)),
157
+ 'givenName': value['givenName'],
158
+ 'middleName': value['middleName'],
159
+ 'familyName': value['familyName'],
160
+ 'phoneNumber': value['phoneNumber'],
161
+ 'email': value['email'],
162
+ 'sub': value['sub'],
163
+ 'ageVerification': ConnectIdAgeVerificationToJSON(value['ageVerification']),
164
+ 'transaction': value['transaction'],
165
+ 'beneficiaryAccount': ConnectIdBeneficiaryAccountToJSON(value['beneficiaryAccount']),
166
+ 'address': ConnectIdAddressToJSON(value['address']),
167
+ };
168
+ }
169
+
@@ -0,0 +1,105 @@
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 CzechMojeIdAddressOutput
20
+ */
21
+ export interface CzechMojeIdAddressOutput {
22
+ /**
23
+ * The street address line, including house number.
24
+ * @type {string}
25
+ * @memberof CzechMojeIdAddressOutput
26
+ */
27
+ streetAddress?: string | null;
28
+ /**
29
+ * The city or locality.
30
+ * @type {string}
31
+ * @memberof CzechMojeIdAddressOutput
32
+ */
33
+ city?: string | null;
34
+ /**
35
+ * The region or state.
36
+ * @type {string}
37
+ * @memberof CzechMojeIdAddressOutput
38
+ */
39
+ region?: string | null;
40
+ /**
41
+ * The postal code.
42
+ * @type {string}
43
+ * @memberof CzechMojeIdAddressOutput
44
+ */
45
+ postalCode?: string | null;
46
+ /**
47
+ * The ISO 3166-1 alpha-2 country code.
48
+ * @type {string}
49
+ * @memberof CzechMojeIdAddressOutput
50
+ */
51
+ country?: string | null;
52
+ /**
53
+ * The full address as a formatted string, with components separated by newlines.
54
+ * @type {string}
55
+ * @memberof CzechMojeIdAddressOutput
56
+ */
57
+ formattedAddress?: string | null;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the CzechMojeIdAddressOutput interface.
62
+ */
63
+ export function instanceOfCzechMojeIdAddressOutput(value: object): value is CzechMojeIdAddressOutput {
64
+ return true;
65
+ }
66
+
67
+ export function CzechMojeIdAddressOutputFromJSON(json: any): CzechMojeIdAddressOutput {
68
+ return CzechMojeIdAddressOutputFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function CzechMojeIdAddressOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CzechMojeIdAddressOutput {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'streetAddress': json['streetAddress'] == null ? undefined : json['streetAddress'],
78
+ 'city': json['city'] == null ? undefined : json['city'],
79
+ 'region': json['region'] == null ? undefined : json['region'],
80
+ 'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
81
+ 'country': json['country'] == null ? undefined : json['country'],
82
+ 'formattedAddress': json['formattedAddress'] == null ? undefined : json['formattedAddress'],
83
+ };
84
+ }
85
+
86
+ export function CzechMojeIdAddressOutputToJSON(json: any): CzechMojeIdAddressOutput {
87
+ return CzechMojeIdAddressOutputToJSONTyped(json, false);
88
+ }
89
+
90
+ export function CzechMojeIdAddressOutputToJSONTyped(value?: CzechMojeIdAddressOutput | null, ignoreDiscriminator: boolean = false): any {
91
+ if (value == null) {
92
+ return value;
93
+ }
94
+
95
+ return {
96
+
97
+ 'streetAddress': value['streetAddress'],
98
+ 'city': value['city'],
99
+ 'region': value['region'],
100
+ 'postalCode': value['postalCode'],
101
+ 'country': value['country'],
102
+ 'formattedAddress': value['formattedAddress'],
103
+ };
104
+ }
105
+
@@ -0,0 +1,261 @@
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 { CzechMojeIdAddressOutput } from './CzechMojeIdAddressOutput';
17
+ import {
18
+ CzechMojeIdAddressOutputFromJSON,
19
+ CzechMojeIdAddressOutputFromJSONTyped,
20
+ CzechMojeIdAddressOutputToJSON,
21
+ CzechMojeIdAddressOutputToJSONTyped,
22
+ } from './CzechMojeIdAddressOutput';
23
+
24
+ /**
25
+ * Exposed properties for the `czech-moje-id` Provider which do not directly map to the normalized IdentityData model.
26
+ * @export
27
+ * @interface CzechMojeIdProviderOutput
28
+ */
29
+ export interface CzechMojeIdProviderOutput {
30
+ /**
31
+ * The subject identifier (sub) of the verified individual's MojeID account.
32
+ *
33
+ * This is a unique identifier that represents the user within the MojeID system.
34
+ * @type {string}
35
+ * @memberof CzechMojeIdProviderOutput
36
+ */
37
+ subjectIdentifier?: string | null;
38
+ /**
39
+ * The individual's full name.
40
+ * @type {string}
41
+ * @memberof CzechMojeIdProviderOutput
42
+ */
43
+ name?: string | null;
44
+ /**
45
+ * The individual's given (first) name.
46
+ * @type {string}
47
+ * @memberof CzechMojeIdProviderOutput
48
+ */
49
+ givenName?: string | null;
50
+ /**
51
+ * The individual's family (last) name.
52
+ * @type {string}
53
+ * @memberof CzechMojeIdProviderOutput
54
+ */
55
+ familyName?: string | null;
56
+ /**
57
+ * The individual's nickname.
58
+ * @type {string}
59
+ * @memberof CzechMojeIdProviderOutput
60
+ */
61
+ nickname?: string | null;
62
+ /**
63
+ * The individual's email address.
64
+ * @type {string}
65
+ * @memberof CzechMojeIdProviderOutput
66
+ */
67
+ email?: string | null;
68
+ /**
69
+ * Whether the individual's email address has been verified by MojeID.
70
+ * (Verification email and link clicked)
71
+ * @type {boolean}
72
+ * @memberof CzechMojeIdProviderOutput
73
+ */
74
+ emailVerified?: boolean | null;
75
+ /**
76
+ * The individual's phone number.
77
+ * @type {string}
78
+ * @memberof CzechMojeIdProviderOutput
79
+ */
80
+ phoneNumber?: string | null;
81
+ /**
82
+ * An individual's phone number has been verified by MojeID.
83
+ * (SMS verification)
84
+ * @type {boolean}
85
+ * @memberof CzechMojeIdProviderOutput
86
+ */
87
+ phoneNumberVerified?: boolean | null;
88
+ /**
89
+ * The individual's date of birth.
90
+ *
91
+ * Formatted as an ISO 8601 Date.
92
+ * @type {Date}
93
+ * @memberof CzechMojeIdProviderOutput
94
+ */
95
+ dateOfBirth?: Date | null;
96
+ /**
97
+ * The individual's gender as reported by MojeID.
98
+ * @type {string}
99
+ * @memberof CzechMojeIdProviderOutput
100
+ */
101
+ gender?: string | null;
102
+ /**
103
+ * The individual's Czech ID card number.
104
+ * @type {string}
105
+ * @memberof CzechMojeIdProviderOutput
106
+ */
107
+ idCardNumber?: string | null;
108
+ /**
109
+ * The individual's Czech passport number.
110
+ * @type {string}
111
+ * @memberof CzechMojeIdProviderOutput
112
+ */
113
+ passportNumber?: string | null;
114
+ /**
115
+ * The individual's Ministry of Labour and Social Affairs identifier (Czech social security equivalent).
116
+ * @type {string}
117
+ * @memberof CzechMojeIdProviderOutput
118
+ */
119
+ socialSecurityNumber?: string | null;
120
+ /**
121
+ * The individual is an adult (18 years or older).
122
+ * @type {boolean}
123
+ * @memberof CzechMojeIdProviderOutput
124
+ */
125
+ isAdult?: boolean | null;
126
+ /**
127
+ * The MojeID account has been validated.
128
+ *
129
+ * A validated account indicates the individual's identity has been verified
130
+ * to a higher level of assurance within the MojeID system.
131
+ * @type {boolean}
132
+ * @memberof CzechMojeIdProviderOutput
133
+ */
134
+ accountValidated?: boolean | null;
135
+ /**
136
+ * The individual's or organization's Czech Registration ID (ICO), the Czech company registration number.
137
+ * @type {string}
138
+ * @memberof CzechMojeIdProviderOutput
139
+ */
140
+ companyRegistrationNumber?: string | null;
141
+ /**
142
+ * The individual's or organization's Danove Identifikacni Cislo (DIC), the Czech tax identification number.
143
+ * @type {string}
144
+ * @memberof CzechMojeIdProviderOutput
145
+ */
146
+ taxIdentificationNumber?: string | null;
147
+ /**
148
+ * The individual's identity has been verified through the Czech National Identity Authority (NIA).
149
+ *
150
+ * NIA verification indicates a higher level of identity assurance, typically involving government-issued
151
+ * credentials verified through the Czech eGovernment infrastructure.
152
+ * @type {boolean}
153
+ * @memberof CzechMojeIdProviderOutput
154
+ */
155
+ niaVerified?: boolean | null;
156
+ /**
157
+ * Unique login transaction identifier
158
+ * @type {string}
159
+ * @memberof CzechMojeIdProviderOutput
160
+ */
161
+ transactionId?: string | null;
162
+ /**
163
+ * The individual's home (default) address, from the `mojeid_address_def` claim.
164
+ * @type {CzechMojeIdAddressOutput}
165
+ * @memberof CzechMojeIdProviderOutput
166
+ */
167
+ homeAddress?: CzechMojeIdAddressOutput | null;
168
+ /**
169
+ * The individual's billing address, from the `mojeid_address_bill` claim.
170
+ * @type {CzechMojeIdAddressOutput}
171
+ * @memberof CzechMojeIdProviderOutput
172
+ */
173
+ billingAddress?: CzechMojeIdAddressOutput | null;
174
+ /**
175
+ * The individual's shipping address, from the `mojeid_address_ship` claim.
176
+ * @type {CzechMojeIdAddressOutput}
177
+ * @memberof CzechMojeIdProviderOutput
178
+ */
179
+ shippingAddress?: CzechMojeIdAddressOutput | null;
180
+ }
181
+
182
+ /**
183
+ * Check if a given object implements the CzechMojeIdProviderOutput interface.
184
+ */
185
+ export function instanceOfCzechMojeIdProviderOutput(value: object): value is CzechMojeIdProviderOutput {
186
+ return true;
187
+ }
188
+
189
+ export function CzechMojeIdProviderOutputFromJSON(json: any): CzechMojeIdProviderOutput {
190
+ return CzechMojeIdProviderOutputFromJSONTyped(json, false);
191
+ }
192
+
193
+ export function CzechMojeIdProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CzechMojeIdProviderOutput {
194
+ if (json == null) {
195
+ return json;
196
+ }
197
+ return {
198
+
199
+ 'subjectIdentifier': json['subjectIdentifier'] == null ? undefined : json['subjectIdentifier'],
200
+ 'name': json['name'] == null ? undefined : json['name'],
201
+ 'givenName': json['givenName'] == null ? undefined : json['givenName'],
202
+ 'familyName': json['familyName'] == null ? undefined : json['familyName'],
203
+ 'nickname': json['nickname'] == null ? undefined : json['nickname'],
204
+ 'email': json['email'] == null ? undefined : json['email'],
205
+ 'emailVerified': json['emailVerified'] == null ? undefined : json['emailVerified'],
206
+ 'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
207
+ 'phoneNumberVerified': json['phoneNumberVerified'] == null ? undefined : json['phoneNumberVerified'],
208
+ 'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
209
+ 'gender': json['gender'] == null ? undefined : json['gender'],
210
+ 'idCardNumber': json['idCardNumber'] == null ? undefined : json['idCardNumber'],
211
+ 'passportNumber': json['passportNumber'] == null ? undefined : json['passportNumber'],
212
+ 'socialSecurityNumber': json['socialSecurityNumber'] == null ? undefined : json['socialSecurityNumber'],
213
+ 'isAdult': json['isAdult'] == null ? undefined : json['isAdult'],
214
+ 'accountValidated': json['accountValidated'] == null ? undefined : json['accountValidated'],
215
+ 'companyRegistrationNumber': json['companyRegistrationNumber'] == null ? undefined : json['companyRegistrationNumber'],
216
+ 'taxIdentificationNumber': json['taxIdentificationNumber'] == null ? undefined : json['taxIdentificationNumber'],
217
+ 'niaVerified': json['niaVerified'] == null ? undefined : json['niaVerified'],
218
+ 'transactionId': json['transactionId'] == null ? undefined : json['transactionId'],
219
+ 'homeAddress': json['homeAddress'] == null ? undefined : CzechMojeIdAddressOutputFromJSON(json['homeAddress']),
220
+ 'billingAddress': json['billingAddress'] == null ? undefined : CzechMojeIdAddressOutputFromJSON(json['billingAddress']),
221
+ 'shippingAddress': json['shippingAddress'] == null ? undefined : CzechMojeIdAddressOutputFromJSON(json['shippingAddress']),
222
+ };
223
+ }
224
+
225
+ export function CzechMojeIdProviderOutputToJSON(json: any): CzechMojeIdProviderOutput {
226
+ return CzechMojeIdProviderOutputToJSONTyped(json, false);
227
+ }
228
+
229
+ export function CzechMojeIdProviderOutputToJSONTyped(value?: CzechMojeIdProviderOutput | null, ignoreDiscriminator: boolean = false): any {
230
+ if (value == null) {
231
+ return value;
232
+ }
233
+
234
+ return {
235
+
236
+ 'subjectIdentifier': value['subjectIdentifier'],
237
+ 'name': value['name'],
238
+ 'givenName': value['givenName'],
239
+ 'familyName': value['familyName'],
240
+ 'nickname': value['nickname'],
241
+ 'email': value['email'],
242
+ 'emailVerified': value['emailVerified'],
243
+ 'phoneNumber': value['phoneNumber'],
244
+ 'phoneNumberVerified': value['phoneNumberVerified'],
245
+ 'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth'] as any).toISOString().substring(0,10)),
246
+ 'gender': value['gender'],
247
+ 'idCardNumber': value['idCardNumber'],
248
+ 'passportNumber': value['passportNumber'],
249
+ 'socialSecurityNumber': value['socialSecurityNumber'],
250
+ 'isAdult': value['isAdult'],
251
+ 'accountValidated': value['accountValidated'],
252
+ 'companyRegistrationNumber': value['companyRegistrationNumber'],
253
+ 'taxIdentificationNumber': value['taxIdentificationNumber'],
254
+ 'niaVerified': value['niaVerified'],
255
+ 'transactionId': value['transactionId'],
256
+ 'homeAddress': CzechMojeIdAddressOutputToJSON(value['homeAddress']),
257
+ 'billingAddress': CzechMojeIdAddressOutputToJSON(value['billingAddress']),
258
+ 'shippingAddress': CzechMojeIdAddressOutputToJSON(value['shippingAddress']),
259
+ };
260
+ }
261
+
@@ -0,0 +1,141 @@
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 { AadhaarLocalizedClaims } from './AadhaarLocalizedClaims';
17
+ import {
18
+ AadhaarLocalizedClaimsFromJSON,
19
+ AadhaarLocalizedClaimsFromJSONTyped,
20
+ AadhaarLocalizedClaimsToJSON,
21
+ AadhaarLocalizedClaimsToJSONTyped,
22
+ } from './AadhaarLocalizedClaims';
23
+ import type { AadhaarClaims } from './AadhaarClaims';
24
+ import {
25
+ AadhaarClaimsFromJSON,
26
+ AadhaarClaimsFromJSONTyped,
27
+ AadhaarClaimsToJSON,
28
+ AadhaarClaimsToJSONTyped,
29
+ } from './AadhaarClaims';
30
+
31
+ /**
32
+ * Exposed properties for the `india-digilocker-aadhaar` Provider which do not directly map to the normalized IdentityData model.
33
+ * @export
34
+ * @interface DigilockerAadhaarProviderOutput
35
+ */
36
+ export interface DigilockerAadhaarProviderOutput {
37
+ /**
38
+ * The document type from which the identity data was retrieved from.
39
+ *
40
+ * Possible values:
41
+ * - ADHAR
42
+ * - PANCR
43
+ * @type {string}
44
+ * @memberof DigilockerAadhaarProviderOutput
45
+ */
46
+ documentType?: string | null;
47
+ /**
48
+ * Whether the downloaded Aadhaar document signature and certificate chain validation succeeded.
49
+ *
50
+ * In some cases, the document may not be returned, but the data is. When the document is received, a certificate validation is performed. When it is not, the signature can not be validated.
51
+ * @type {boolean}
52
+ * @memberof DigilockerAadhaarProviderOutput
53
+ */
54
+ documentSignatureValidated: boolean;
55
+ /**
56
+ * The timestamp when the signed document was generated and verified.
57
+ *
58
+ * This is parsed as a date-time value. Aadhaar may omit timezone information.
59
+ * @type {Date}
60
+ * @memberof DigilockerAadhaarProviderOutput
61
+ */
62
+ timestamp?: Date | null;
63
+ /**
64
+ * The validity expiration timestamp for the verification document.
65
+ *
66
+ * This is parsed as a date-time value. Aadhaar may omit timezone information.
67
+ * @type {Date}
68
+ * @memberof DigilockerAadhaarProviderOutput
69
+ */
70
+ timeToLive?: Date | null;
71
+ /**
72
+ * The Aadhaar number (UID) value for the individual.
73
+ *
74
+ * This is only the last four digits of the Aadhaar number.
75
+ * @type {string}
76
+ * @memberof DigilockerAadhaarProviderOutput
77
+ */
78
+ aadhaarNumberLastFour?: string | null;
79
+ /**
80
+ * The claims extracted from the signed Aadhaar document.
81
+ * @type {AadhaarClaims}
82
+ * @memberof DigilockerAadhaarProviderOutput
83
+ */
84
+ claims?: AadhaarClaims | null;
85
+ /**
86
+ * The localized claims extracted from the signed Aadhaar document.
87
+ * @type {AadhaarLocalizedClaims}
88
+ * @memberof DigilockerAadhaarProviderOutput
89
+ */
90
+ localizedClaims?: AadhaarLocalizedClaims | null;
91
+ }
92
+
93
+ /**
94
+ * Check if a given object implements the DigilockerAadhaarProviderOutput interface.
95
+ */
96
+ export function instanceOfDigilockerAadhaarProviderOutput(value: object): value is DigilockerAadhaarProviderOutput {
97
+ if (!('documentSignatureValidated' in value) || value['documentSignatureValidated'] === undefined) return false;
98
+ return true;
99
+ }
100
+
101
+ export function DigilockerAadhaarProviderOutputFromJSON(json: any): DigilockerAadhaarProviderOutput {
102
+ return DigilockerAadhaarProviderOutputFromJSONTyped(json, false);
103
+ }
104
+
105
+ export function DigilockerAadhaarProviderOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): DigilockerAadhaarProviderOutput {
106
+ if (json == null) {
107
+ return json;
108
+ }
109
+ return {
110
+
111
+ 'documentType': json['documentType'] == null ? undefined : json['documentType'],
112
+ 'documentSignatureValidated': json['documentSignatureValidated'],
113
+ 'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])),
114
+ 'timeToLive': json['timeToLive'] == null ? undefined : (new Date(json['timeToLive'])),
115
+ 'aadhaarNumberLastFour': json['aadhaarNumberLastFour'] == null ? undefined : json['aadhaarNumberLastFour'],
116
+ 'claims': json['claims'] == null ? undefined : AadhaarClaimsFromJSON(json['claims']),
117
+ 'localizedClaims': json['localizedClaims'] == null ? undefined : AadhaarLocalizedClaimsFromJSON(json['localizedClaims']),
118
+ };
119
+ }
120
+
121
+ export function DigilockerAadhaarProviderOutputToJSON(json: any): DigilockerAadhaarProviderOutput {
122
+ return DigilockerAadhaarProviderOutputToJSONTyped(json, false);
123
+ }
124
+
125
+ export function DigilockerAadhaarProviderOutputToJSONTyped(value?: DigilockerAadhaarProviderOutput | null, ignoreDiscriminator: boolean = false): any {
126
+ if (value == null) {
127
+ return value;
128
+ }
129
+
130
+ return {
131
+
132
+ 'documentType': value['documentType'],
133
+ 'documentSignatureValidated': value['documentSignatureValidated'],
134
+ 'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp'] as any).toISOString()),
135
+ 'timeToLive': value['timeToLive'] == null ? undefined : ((value['timeToLive'] as any).toISOString()),
136
+ 'aadhaarNumberLastFour': value['aadhaarNumberLastFour'],
137
+ 'claims': AadhaarClaimsToJSON(value['claims']),
138
+ 'localizedClaims': AadhaarLocalizedClaimsToJSON(value['localizedClaims']),
139
+ };
140
+ }
141
+