assentify-sdk-react-native 0.0.1

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 (195) hide show
  1. package/LICENSE +3 -0
  2. package/README.md +65 -0
  3. package/android/build.gradle +111 -0
  4. package/android/gradle.properties +9 -0
  5. package/android/src/main/AndroidManifest.xml +55 -0
  6. package/android/src/main/java/com/assentifysdk/AndroidProgressBarModule.kt +33 -0
  7. package/android/src/main/java/com/assentifysdk/AssentifySdkBaseModule.kt +39 -0
  8. package/android/src/main/java/com/assentifysdk/AssentifySdkModule.kt +432 -0
  9. package/android/src/main/java/com/assentifysdk/AssentifySdkPackage.kt +19 -0
  10. package/android/src/main/java/com/assentifysdk/FaceMatchActivity.kt +309 -0
  11. package/android/src/main/java/com/assentifysdk/ImageToBase64Converter.kt +40 -0
  12. package/android/src/main/java/com/assentifysdk/ReactApplicationContextObject.kt +14 -0
  13. package/android/src/main/java/com/assentifysdk/ScanIDActivity.kt +431 -0
  14. package/android/src/main/java/com/assentifysdk/ScanOtherActivity.kt +328 -0
  15. package/android/src/main/java/com/assentifysdk/ScanPassportActivity.kt +364 -0
  16. package/android/src/main/java/com/assentifysdk/StepsKeys.kt +91 -0
  17. package/android/src/main/res/drawable/back_icon.png +0 -0
  18. package/android/src/main/res/drawable/button_rounded_background.xml +6 -0
  19. package/android/src/main/res/drawable/card.gif +0 -0
  20. package/android/src/main/res/drawable/expire.png +0 -0
  21. package/android/src/main/res/drawable/id.gif +0 -0
  22. package/android/src/main/res/drawable/id_warning.png +0 -0
  23. package/android/src/main/res/drawable/info_icon.png +0 -0
  24. package/android/src/main/res/drawable/info_rounded_background.xml +6 -0
  25. package/android/src/main/res/drawable/passport.gif +0 -0
  26. package/android/src/main/res/drawable/rounded_background.xml +3 -0
  27. package/android/src/main/res/drawable/sending.png +0 -0
  28. package/android/src/main/res/drawable/warning.png +0 -0
  29. package/android/src/main/res/drawable/zoom_in.png +0 -0
  30. package/android/src/main/res/drawable/zoom_out.png +0 -0
  31. package/android/src/main/res/layout/activity_face_scan.xml +242 -0
  32. package/android/src/main/res/layout/activity_scan.xml +297 -0
  33. package/android/src/main/res/raw/sending_video.MP4 +0 -0
  34. package/android/src/main/res/values/colors.xml +8 -0
  35. package/android/src/main/res/values/strings.xml +3 -0
  36. package/android/src/main/res/values/styles.xml +4 -0
  37. package/assentify-sdk.podspec +43 -0
  38. package/ios/AssentifySdkBaseModule.swift +15 -0
  39. package/ios/Info.plist +27 -0
  40. package/ios/NativeAssentifySdk-Bridging-Header.h +3 -0
  41. package/ios/NativeAssentifySdk.mm +45 -0
  42. package/ios/NativeAssentifySdk.swift +460 -0
  43. package/ios/Resources/card.gif +0 -0
  44. package/ios/Resources/expire.png +0 -0
  45. package/ios/Resources/id.gif +0 -0
  46. package/ios/Resources/id_warning.png +0 -0
  47. package/ios/Resources/info_icon.png +0 -0
  48. package/ios/Resources/passport.gif +0 -0
  49. package/ios/Resources/sending.png +0 -0
  50. package/ios/Resources/warning.png +0 -0
  51. package/ios/Resources/zoom_in.png +0 -0
  52. package/ios/Resources/zoom_out.png +0 -0
  53. package/ios/UIComponents/RNIOSProgressBar.h +4 -0
  54. package/ios/UIComponents/RNIOSProgressBar.m +34 -0
  55. package/ios/UIComponents/RNPassportScanner.m +26 -0
  56. package/ios/UIComponents/RNPassportScanner.swift +245 -0
  57. package/ios/UIComponents/RNTMapManager.h +4 -0
  58. package/ios/UIComponents/RNTMapManager.m +19 -0
  59. package/ios/View/DataDecoder.swift +469 -0
  60. package/ios/View/FaceMatchController.swift +258 -0
  61. package/ios/View/IDCardController.swift +360 -0
  62. package/ios/View/OtherController.swift +283 -0
  63. package/ios/View/PassportController.swift +302 -0
  64. package/ios/View/UI.swift +298 -0
  65. package/lib/commonjs/AssentifyProvider.js +202 -0
  66. package/lib/commonjs/AssentifyProvider.js.map +1 -0
  67. package/lib/commonjs/AssentifyWrapper.js +76 -0
  68. package/lib/commonjs/AssentifyWrapper.js.map +1 -0
  69. package/lib/commonjs/Language.js +27 -0
  70. package/lib/commonjs/Language.js.map +1 -0
  71. package/lib/commonjs/helpers/index.js +2 -0
  72. package/lib/commonjs/helpers/index.js.map +1 -0
  73. package/lib/commonjs/helpers/parsers/FaceMatchParser.js +27 -0
  74. package/lib/commonjs/helpers/parsers/FaceMatchParser.js.map +1 -0
  75. package/lib/commonjs/helpers/parsers/IDCardParser.js +25 -0
  76. package/lib/commonjs/helpers/parsers/IDCardParser.js.map +1 -0
  77. package/lib/commonjs/helpers/parsers/OtherIDParser.js +29 -0
  78. package/lib/commonjs/helpers/parsers/OtherIDParser.js.map +1 -0
  79. package/lib/commonjs/helpers/parsers/PassportParser.js +25 -0
  80. package/lib/commonjs/helpers/parsers/PassportParser.js.map +1 -0
  81. package/lib/commonjs/index.js +49 -0
  82. package/lib/commonjs/index.js.map +1 -0
  83. package/lib/commonjs/types.js +42 -0
  84. package/lib/commonjs/types.js.map +1 -0
  85. package/lib/module/AssentifyProvider.js +193 -0
  86. package/lib/module/AssentifyProvider.js.map +1 -0
  87. package/lib/module/AssentifyWrapper.js +70 -0
  88. package/lib/module/AssentifyWrapper.js.map +1 -0
  89. package/lib/module/Language.js +21 -0
  90. package/lib/module/Language.js.map +1 -0
  91. package/lib/module/helpers/index.js +2 -0
  92. package/lib/module/helpers/index.js.map +1 -0
  93. package/lib/module/helpers/parsers/FaceMatchParser.js +21 -0
  94. package/lib/module/helpers/parsers/FaceMatchParser.js.map +1 -0
  95. package/lib/module/helpers/parsers/IDCardParser.js +19 -0
  96. package/lib/module/helpers/parsers/IDCardParser.js.map +1 -0
  97. package/lib/module/helpers/parsers/OtherIDParser.js +23 -0
  98. package/lib/module/helpers/parsers/OtherIDParser.js.map +1 -0
  99. package/lib/module/helpers/parsers/PassportParser.js +19 -0
  100. package/lib/module/helpers/parsers/PassportParser.js.map +1 -0
  101. package/lib/module/index.js +6 -0
  102. package/lib/module/index.js.map +1 -0
  103. package/lib/module/types.js +36 -0
  104. package/lib/module/types.js.map +1 -0
  105. package/lib/typescript/babel.config.d.ts +3 -0
  106. package/lib/typescript/babel.config.d.ts.map +1 -0
  107. package/lib/typescript/commitlint.config.d.ts +7 -0
  108. package/lib/typescript/commitlint.config.d.ts.map +1 -0
  109. package/lib/typescript/example/babel.config.d.ts +8 -0
  110. package/lib/typescript/example/babel.config.d.ts.map +1 -0
  111. package/lib/typescript/example/index.d.ts +2 -0
  112. package/lib/typescript/example/index.d.ts.map +1 -0
  113. package/lib/typescript/example/jest.config.d.ts +2 -0
  114. package/lib/typescript/example/jest.config.d.ts.map +1 -0
  115. package/lib/typescript/example/metro.config.d.ts +3 -0
  116. package/lib/typescript/example/metro.config.d.ts.map +1 -0
  117. package/lib/typescript/example/react-native.config.d.ts +6 -0
  118. package/lib/typescript/example/react-native.config.d.ts.map +1 -0
  119. package/lib/typescript/example/src/App.d.ts +3 -0
  120. package/lib/typescript/example/src/App.d.ts.map +1 -0
  121. package/lib/typescript/example/src/Home.d.ts +4 -0
  122. package/lib/typescript/example/src/Home.d.ts.map +1 -0
  123. package/lib/typescript/example/src/navigator.d.ts +4 -0
  124. package/lib/typescript/example/src/navigator.d.ts.map +1 -0
  125. package/lib/typescript/lib/commonjs/AssentifyProvider.d.ts +3 -0
  126. package/lib/typescript/lib/commonjs/AssentifyProvider.d.ts.map +1 -0
  127. package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts +11 -0
  128. package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts.map +1 -0
  129. package/lib/typescript/lib/commonjs/Language.d.ts +22 -0
  130. package/lib/typescript/lib/commonjs/Language.d.ts.map +1 -0
  131. package/lib/typescript/lib/commonjs/helpers/index.d.ts +1 -0
  132. package/lib/typescript/lib/commonjs/helpers/index.d.ts.map +1 -0
  133. package/lib/typescript/lib/commonjs/helpers/parsers/FaceMatchParser.d.ts +12 -0
  134. package/lib/typescript/lib/commonjs/helpers/parsers/FaceMatchParser.d.ts.map +1 -0
  135. package/lib/typescript/lib/commonjs/helpers/parsers/IDCardParser.d.ts +11 -0
  136. package/lib/typescript/lib/commonjs/helpers/parsers/IDCardParser.d.ts.map +1 -0
  137. package/lib/typescript/lib/commonjs/helpers/parsers/OtherIDParser.d.ts +13 -0
  138. package/lib/typescript/lib/commonjs/helpers/parsers/OtherIDParser.d.ts.map +1 -0
  139. package/lib/typescript/lib/commonjs/helpers/parsers/PassportParser.d.ts +11 -0
  140. package/lib/typescript/lib/commonjs/helpers/parsers/PassportParser.d.ts.map +1 -0
  141. package/lib/typescript/lib/commonjs/index.d.ts +2 -0
  142. package/lib/typescript/lib/commonjs/index.d.ts.map +1 -0
  143. package/lib/typescript/lib/commonjs/types.d.ts +18 -0
  144. package/lib/typescript/lib/commonjs/types.d.ts.map +1 -0
  145. package/lib/typescript/lib/module/AssentifyProvider.d.ts +3 -0
  146. package/lib/typescript/lib/module/AssentifyProvider.d.ts.map +1 -0
  147. package/lib/typescript/lib/module/AssentifyWrapper.d.ts +10 -0
  148. package/lib/typescript/lib/module/AssentifyWrapper.d.ts.map +1 -0
  149. package/lib/typescript/lib/module/Language.d.ts +21 -0
  150. package/lib/typescript/lib/module/Language.d.ts.map +1 -0
  151. package/lib/typescript/lib/module/helpers/index.d.ts +1 -0
  152. package/lib/typescript/lib/module/helpers/index.d.ts.map +1 -0
  153. package/lib/typescript/lib/module/helpers/parsers/FaceMatchParser.d.ts +11 -0
  154. package/lib/typescript/lib/module/helpers/parsers/FaceMatchParser.d.ts.map +1 -0
  155. package/lib/typescript/lib/module/helpers/parsers/IDCardParser.d.ts +10 -0
  156. package/lib/typescript/lib/module/helpers/parsers/IDCardParser.d.ts.map +1 -0
  157. package/lib/typescript/lib/module/helpers/parsers/OtherIDParser.d.ts +12 -0
  158. package/lib/typescript/lib/module/helpers/parsers/OtherIDParser.d.ts.map +1 -0
  159. package/lib/typescript/lib/module/helpers/parsers/PassportParser.d.ts +10 -0
  160. package/lib/typescript/lib/module/helpers/parsers/PassportParser.d.ts.map +1 -0
  161. package/lib/typescript/lib/module/index.d.ts +12 -0
  162. package/lib/typescript/lib/module/index.d.ts.map +1 -0
  163. package/lib/typescript/lib/module/types.d.ts +17 -0
  164. package/lib/typescript/lib/module/types.d.ts.map +1 -0
  165. package/lib/typescript/src/AssentifyProvider.d.ts +4 -0
  166. package/lib/typescript/src/AssentifyProvider.d.ts.map +1 -0
  167. package/lib/typescript/src/AssentifyWrapper.d.ts +12 -0
  168. package/lib/typescript/src/AssentifyWrapper.d.ts.map +1 -0
  169. package/lib/typescript/src/Language.d.ts +22 -0
  170. package/lib/typescript/src/Language.d.ts.map +1 -0
  171. package/lib/typescript/src/helpers/index.d.ts +1 -0
  172. package/lib/typescript/src/helpers/index.d.ts.map +1 -0
  173. package/lib/typescript/src/helpers/parsers/FaceMatchParser.d.ts +4 -0
  174. package/lib/typescript/src/helpers/parsers/FaceMatchParser.d.ts.map +1 -0
  175. package/lib/typescript/src/helpers/parsers/IDCardParser.d.ts +4 -0
  176. package/lib/typescript/src/helpers/parsers/IDCardParser.d.ts.map +1 -0
  177. package/lib/typescript/src/helpers/parsers/OtherIDParser.d.ts +4 -0
  178. package/lib/typescript/src/helpers/parsers/OtherIDParser.d.ts.map +1 -0
  179. package/lib/typescript/src/helpers/parsers/PassportParser.d.ts +4 -0
  180. package/lib/typescript/src/helpers/parsers/PassportParser.d.ts.map +1 -0
  181. package/lib/typescript/src/index.d.ts +12 -0
  182. package/lib/typescript/src/index.d.ts.map +1 -0
  183. package/lib/typescript/src/types.d.ts +308 -0
  184. package/lib/typescript/src/types.d.ts.map +1 -0
  185. package/package.json +201 -0
  186. package/src/AssentifyProvider.tsx +189 -0
  187. package/src/AssentifyWrapper.ts +142 -0
  188. package/src/Language.ts +22 -0
  189. package/src/helpers/index.ts +1 -0
  190. package/src/helpers/parsers/FaceMatchParser.ts +28 -0
  191. package/src/helpers/parsers/IDCardParser.ts +27 -0
  192. package/src/helpers/parsers/OtherIDParser.ts +31 -0
  193. package/src/helpers/parsers/PassportParser.ts +27 -0
  194. package/src/index.ts +6 -0
  195. package/src/types.ts +373 -0
package/src/types.ts ADDED
@@ -0,0 +1,373 @@
1
+ import { type LanguageCode } from './Language';
2
+
3
+
4
+ export interface AssentifySdkCallback {
5
+ onAssentifySdkInitError: (message: string) => string;
6
+ onAssentifySdkInitSuccess: (stepDefinitions: any[]) => string;
7
+ }
8
+
9
+ export type EnvironmentalConditions = {
10
+ BRIGHTNESS_HIGH_THRESHOLD: number;
11
+ BRIGHTNESS_LOW_THRESHOLD: number;
12
+ PREDICTION_LOW_PERCENTAGE: number;
13
+ PREDICTION_HIGH_PERCENTAGE: number;
14
+ CustomColor: string;
15
+ HoldHandColor: string;
16
+ };
17
+
18
+ export interface Assentify {
19
+ initialize: (
20
+ apiKey: string,
21
+ tenantIdentifier: string,
22
+ instanceHash: string,
23
+ processMrz?: boolean,
24
+ storeCapturedDocument?: boolean,
25
+ performLivenessDetection?: boolean,
26
+ storeImageStream?: boolean,
27
+ saveCapturedVideoID?: boolean,
28
+ saveCapturedVideoFace?: boolean,
29
+ ENV_CustomColor?: string,
30
+ enableDetect?: boolean,
31
+ enableGuide?: boolean,
32
+ ) => void;
33
+
34
+ startScanPassport: (
35
+ language: LanguageCode,
36
+ ) => void;
37
+
38
+
39
+ startScanOther: (
40
+ language: LanguageCode,
41
+ ) => void;
42
+
43
+
44
+ startScanIDCard:(kycDocumentDetailsList: KycDocumentDetails[],language: LanguageCode,flippingCard: boolean) => void;
45
+
46
+ startFaceMatch: (
47
+ imageUrl: String,
48
+ showCountDown: boolean
49
+ ) => void;
50
+
51
+
52
+
53
+ submitData:(dataMap: Map<string, string>)=> void;
54
+
55
+ }
56
+
57
+ export type MrzFields = {
58
+ mrz_type?: string;
59
+ mrz_ocr?: string;
60
+ surname?: string;
61
+ name?: string;
62
+ country?: string;
63
+ nationality?: string;
64
+ birth_date?: string;
65
+ birth_date_hash?: string;
66
+ expiry_date?: string;
67
+ expiry_date_hash?: string;
68
+ sex?: string;
69
+ document_type?: string;
70
+ document_number?: string;
71
+ country_of_issuance?: string;
72
+ department_of_issuance?: string;
73
+ office_of_issuance?: string;
74
+ year_of_issuance?: string;
75
+ month_of_issuance?: string;
76
+ management_center_unique_id?: string;
77
+ management_center_unique_id_hash?: string;
78
+ optional_data?: string;
79
+ };
80
+
81
+ export type MrzReading = {
82
+ MrzFields: MrzFields;
83
+ MrzType?: string;
84
+ };
85
+
86
+ export type FaceCoordinates = {
87
+ Angle?: number;
88
+ Confidence?: number;
89
+ CroppedFace?: string;
90
+ Height?: number;
91
+ TopLeftX?: number;
92
+ TopLeftY?: number;
93
+ Width?: number;
94
+ };
95
+
96
+ export type Faces = {
97
+ FaceBytes?: string;
98
+ FaceImageType?: number;
99
+ FaceUrl?: string;
100
+ Id?: string;
101
+ FaceCoordinates: FaceCoordinates;
102
+ };
103
+
104
+ export type IdentificationDocument = {
105
+ mrz_reading?: MrzReading;
106
+ faces?: Faces[];
107
+ imageUrl?: string;
108
+ videoUrl?: string;
109
+ };
110
+
111
+ export type FaceMatchModel = {
112
+ baseImageFace: string;
113
+ secondImageFace: string;
114
+ percentageMatch: number;
115
+ };
116
+
117
+ export type IdCardComponentListItem = {
118
+ componentName: string;
119
+ componentValue: string;
120
+ };
121
+
122
+ export type IdCardResult = {
123
+ componentList: IdCardComponentListItem[];
124
+ };
125
+
126
+ export type OnIdCardCompletedData = {
127
+ idCardImageUrl: string;
128
+ idCardResult: IdCardResult;
129
+ signature: string;
130
+ };
131
+
132
+ export type ImageFace = {
133
+ FaceBytes: any | null;
134
+ FaceCoordinates: any | null;
135
+ FaceImageType: number;
136
+ FaceUrl: string;
137
+ Id: string;
138
+ };
139
+
140
+ export type FaceMatchCallback = {
141
+ BaseImageFace: ImageFace;
142
+ SecondImageFace: ImageFace;
143
+ PercentageMatch: number;
144
+ ChebyDist?: number;
145
+ CityDist?: number;
146
+ Color?: boolean;
147
+ CosDist?: number;
148
+ Gender?: any | null;
149
+ MatchFaceResult?: number;
150
+ MatchName?: any | null;
151
+ Result?: boolean;
152
+ Size?: boolean;
153
+ SubjectId?: any | null;
154
+ };
155
+
156
+ export type KycDocumentDetails = {
157
+ name: string;
158
+ order: number;
159
+ templateProcessingKeyInformation: string;
160
+ };
161
+
162
+ export type Templates = {
163
+ id: number;
164
+ sourceCountryFlag: string;
165
+ sourceCountryCode: string;
166
+ sourceCountry: string;
167
+ kycDocumentType: string;
168
+ kycDocumentDetails: KycDocumentDetails[];
169
+ };
170
+
171
+ export type TemplatesByCountry = {
172
+ id: number;
173
+ name: string;
174
+ sourceCountryCode: string;
175
+ flag: string;
176
+ templates: Templates[];
177
+ };
178
+
179
+ export enum MotionType {
180
+ NO_DETECT,
181
+ HOLD_YOUR_HAND,
182
+ SENDING,
183
+ }
184
+
185
+ export enum ZoomType {
186
+ NO_DETECT,
187
+ ZOOM_IN,
188
+ ZOOM_OUT,
189
+ SENDING,
190
+ }
191
+
192
+ export const MotionTypeObj = {
193
+ NO_DETECT: 'NO_DETECT',
194
+ HOLD_YOUR_HAND: 'HOLD_YOUR_HAND',
195
+ SENDING: 'SENDING',
196
+ };
197
+
198
+ export const ZoomTypeObj = {
199
+ NO_DETECT: 'NO_DETECT',
200
+ ZOOM_IN: 'ZOOM_IN',
201
+ ZOOM_OUT: 'ZOOM_OUT',
202
+ SENDING: 'SENDING',
203
+ };
204
+
205
+ export enum FAILED_RESULT {
206
+ WRONG_TEMPLATE,
207
+ NO_FACE_DETECTED,
208
+ NO_MRZ_DETECTED,
209
+ EXPIRED_DOCUMENT,
210
+ TAMPERED_DOCUMENT,
211
+ TAMPERED_BACK_DOCUMENT,
212
+ FAILED_FRONT_ID,
213
+ FAILED_BACK_ID,
214
+ }
215
+
216
+ export type PassportDataModel = {
217
+ AdditionalDetails: any;
218
+ FaceUrl: string;
219
+ Faces?: Faces[];
220
+ IdCardImageUrl: string;
221
+ ImageUrl: string;
222
+ IsLive: boolean | null;
223
+ IsSuccessful: boolean;
224
+ MrzImage: string;
225
+ MrzReading?: MrzReading;
226
+ OriginalImageUrl: string;
227
+ OutputProperties: any;
228
+ TraceIdentifier: any;
229
+ VideoUrl: string;
230
+ };
231
+
232
+ export type BaseDataModel = {
233
+ FaceMatchDataModel?: string | FaceMatchCallback;
234
+ IdDataModel?: any;
235
+ OtherDataModel?: any;
236
+ PassportDataModel?: string | PassportDataModel;
237
+ };
238
+
239
+ export type ScanningCallback = {
240
+ onError: BaseDataModel;
241
+ onSend: any;
242
+ onRetry: BaseDataModel;
243
+ onClipPreparationComplete: BaseDataModel;
244
+ onStatusUpdated: BaseDataModel;
245
+ onUpdated: BaseDataModel;
246
+ onLivenessUpdate: BaseDataModel;
247
+ onComplete: BaseDataModel;
248
+ onCardDetected: BaseDataModel;
249
+ onMrzExtracted: BaseDataModel;
250
+ onMrzDetected: BaseDataModel;
251
+ onNoMrzDetected: BaseDataModel;
252
+ onFaceDetected: BaseDataModel;
253
+ onNoFaceDetected: BaseDataModel;
254
+ onFaceExtracted: BaseDataModel;
255
+ onQualityCheckAvailable: BaseDataModel;
256
+ onDocumentCaptured: BaseDataModel;
257
+ onDocumentCropped: BaseDataModel;
258
+ onUploadFailed: BaseDataModel;
259
+ onWrongTemplate: BaseDataModel;
260
+ onEnvironmentalConditionsChange: (
261
+ brightness: number,
262
+ motion: MotionType,
263
+ zoom?: ZoomType
264
+ ) => void;
265
+
266
+ SubmitData?: {
267
+ StartSubmitData: boolean;
268
+ instanceHash?: string;
269
+ success: boolean;
270
+ error_message?: string;
271
+ };
272
+ };
273
+
274
+ export type IdentificationDocumentCapture = {
275
+ name: any | null;
276
+ surname: any | null;
277
+ documentType: any | null;
278
+ birthDate: any | null;
279
+ documentNumber: any | null;
280
+ sex: any | null;
281
+ expiryDate: any | null;
282
+ country: any | null;
283
+ nationality: any | null;
284
+ idType: any | null;
285
+ faceCapture: any | null;
286
+ image: any | null;
287
+ isSkippedAfterNFails: any | null;
288
+ isFailedFront: any | null;
289
+ isFailedBack: any | null;
290
+ skippedStatus: any | null;
291
+ capturedVideoFront: any | null;
292
+ capturedVideoBack: any | null;
293
+ livenessStatus: any | null;
294
+ isFrontAuth: any | null;
295
+ isBackAuth: any | null;
296
+ isExpired: any | null;
297
+ isTampering: any | null;
298
+ tamperHeatMap: any | null;
299
+ isBackTampering: any | null;
300
+ backTamperHeatmap: any | null;
301
+ originalFrontImage: any | null;
302
+ originalBackImage: any | null;
303
+ ghostImage: any | null;
304
+ idMaritalStatus: any | null;
305
+ idDateOfIssuance: any | null;
306
+ idCivilRegisterNumber: any | null;
307
+ idPlaceOfResidence: any | null;
308
+ idProvince: any | null;
309
+ idGovernorate: any | null;
310
+ idMothersName: any | null;
311
+ idFathersName: any | null;
312
+ idPlaceOfBirth: any | null;
313
+ idBackImage: any | null;
314
+ idBloodType: any | null;
315
+ idDrivingCategory: any | null;
316
+ idIssuanceAuthority: any | null;
317
+ idArmyStatus: any | null;
318
+ idProfession: any | null;
319
+ idUniqueNumber: any | null;
320
+ idDocumentTypeNumber: any | null;
321
+ idFees: any | null;
322
+ idReference: any | null;
323
+ idRegion: any | null;
324
+ idRegistrationLocation: any | null;
325
+ idFaceColor: any | null;
326
+ idEyeColor: any | null;
327
+ idSpecialMarks: any | null;
328
+ idCountryOfStay: any | null;
329
+ idIdentityNumber: any | null;
330
+ idPresentAddress: any | null;
331
+ idPermanentAddress: any | null;
332
+ idFamilyNumber: any | null;
333
+ identityNumberBack: any | null;
334
+ };
335
+
336
+ export type PassportExtractedModel = {
337
+ outputProperties?: Record<string, any> | null;
338
+ transformedProperties?: Record<string, any> | null;
339
+ extractedData?: Record<string, any> | null;
340
+ imageUrl?: string | null;
341
+ faces?: Faces[] | null;
342
+ identificationDocumentCapture?: IdentificationDocumentCapture | null;
343
+ };
344
+
345
+ export type OtherExtractedModel = {
346
+ outputProperties?: Record<string, any> | null;
347
+ transformedProperties?: Record<string, any> | null;
348
+ extractedData?: Record<string, any> | null;
349
+ additionalDetails?: Record<string, any> | null;
350
+ transformedDetails?: Record<string, any> | null;
351
+ imageUrl?: string | null;
352
+ faces?: Faces[] | null;
353
+ identificationDocumentCapture?: IdentificationDocumentCapture | null;
354
+ };
355
+
356
+ export type IDExtractedModel = {
357
+ outputProperties?: Record<string, any> | null;
358
+ transformedProperties?: Record<string, any> | null;
359
+ extractedData?: Record<string, any> | null;
360
+ imageUrl?: string;
361
+ faces?: Faces[] | null;
362
+ identificationDocumentCapture?: IdentificationDocumentCapture | null;
363
+ };
364
+
365
+ export type FaceExtractedModel = {
366
+ outputProperties?: Record<string, any> | null;
367
+ extractedData?: Record<string, any> | null;
368
+ baseImageFace?: string | null;
369
+ secondImageFace?: string | null;
370
+ percentageMatch?: number;
371
+ isLive?: boolean;
372
+ identificationDocumentCapture?: IdentificationDocumentCapture | null;
373
+ };