@regulaforensics/document-reader 9.7.952-rc → 9.7.953-rc

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 (65) hide show
  1. package/RNDocumentReader.podspec +2 -2
  2. package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/Config.kt +30 -10
  3. package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/JSONConstructor.kt +12 -1
  4. package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/Utils.kt +1 -1
  5. package/examples/capacitor/README.md +1 -1
  6. package/examples/capacitor/package-lock.json +14 -14
  7. package/examples/capacitor/package.json +3 -3
  8. package/examples/capacitor/scripts/android.sh +3 -1
  9. package/examples/capacitor/scripts/ios.sh +3 -1
  10. package/examples/capacitor/scripts/setup.sh +2 -0
  11. package/examples/ionic/README.md +1 -1
  12. package/examples/ionic/config.xml +0 -2
  13. package/examples/ionic/images/icon.png +0 -0
  14. package/examples/ionic/index.tsx +1 -1
  15. package/examples/ionic/package-lock.json +2396 -2023
  16. package/examples/ionic/package.json +25 -26
  17. package/examples/ionic/patches/cordova-plugin-ionic-webview+5.0.1.patch +23 -0
  18. package/examples/ionic/scripts/android.sh +4 -1
  19. package/examples/ionic/scripts/ios.sh +5 -2
  20. package/examples/ionic/scripts/setup.sh +2 -0
  21. package/examples/ionic/tsconfig.json +1 -1
  22. package/examples/react_native/README.md +1 -1
  23. package/examples/react_native/package-lock.json +539 -638
  24. package/examples/react_native/package.json +3 -3
  25. package/examples/react_native/scripts/android.sh +5 -5
  26. package/examples/react_native/scripts/ios.sh +5 -5
  27. package/examples/react_native/scripts/setup.sh +2 -0
  28. package/ios/RGLWConfig.h +2 -0
  29. package/ios/RGLWConfig.m +25 -5
  30. package/ios/RGLWJSONConstructor.h +2 -0
  31. package/ios/RGLWJSONConstructor.m +12 -0
  32. package/package.json +1 -1
  33. package/plugin.xml +8 -8
  34. package/test/json.tsx +6 -0
  35. package/test/package-lock.json +1 -1
  36. package/test/test.tsx +206 -2
  37. package/www/capacitor/index.js +207 -17
  38. package/www/capacitor/params/process_params/AuthenticityParams.js +15 -0
  39. package/www/capacitor/params/process_params/AuthenticityPropertiesParams.js +31 -0
  40. package/www/capacitor/params/process_params/FaceApiParams.js +5 -1
  41. package/www/capacitor/results/authenticity/Authenticity.js +2 -1
  42. package/www/capacitor/results/authenticity/CheckDiagnose.js +4 -1
  43. package/www/capacitor/results/authenticity/SecurityFeatureType.js +1 -0
  44. package/www/capacitor/results/visual_results/FieldType.js +3 -1
  45. package/www/cordova.js +199 -123
  46. package/www/react-native/index.js +207 -17
  47. package/www/react-native/params/process_params/AuthenticityParams.js +15 -0
  48. package/www/react-native/params/process_params/AuthenticityPropertiesParams.js +31 -0
  49. package/www/react-native/params/process_params/FaceApiParams.js +5 -1
  50. package/www/react-native/results/authenticity/Authenticity.js +2 -1
  51. package/www/react-native/results/authenticity/CheckDiagnose.js +4 -1
  52. package/www/react-native/results/authenticity/SecurityFeatureType.js +1 -0
  53. package/www/react-native/results/visual_results/FieldType.js +3 -1
  54. package/www/types/index.d.ts +206 -19
  55. package/www/types/params/process_params/AuthenticityParams.d.ts +5 -4
  56. package/www/types/params/process_params/AuthenticityPropertiesParams.d.ts +10 -0
  57. package/www/types/params/process_params/FaceApiParams.d.ts +4 -0
  58. package/www/types/params/process_params/ProcessParams.d.ts +3 -2
  59. package/www/types/results/authenticity/Authenticity.d.ts +1 -0
  60. package/www/types/results/authenticity/CheckDiagnose.d.ts +3 -0
  61. package/www/types/results/authenticity/SecurityFeatureType.d.ts +1 -0
  62. package/www/types/results/visual_results/FieldType.d.ts +3 -1
  63. /package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/BluetoothUtil.kt +0 -0
  64. /package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/Main.kt +0 -0
  65. /package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/RNDocumentReaderModule.kt +0 -0
@@ -4,7 +4,26 @@ import { RFIDConfig, RFIDCompletion, RFIDProgressCompletion, ChipDetectedComplet
4
4
  import { ScannerConfig } from './config/ScannerConfig';
5
5
  import { RecognizeConfig, ImageInputData } from './config/RecognizeConfig';
6
6
  import { FinalizeConfig } from './config/FinalizeConfig';
7
- export { OnlineProcessingConfig, ImageFormat, OnlineMode, InitConfig, RFIDConfig, RFIDCompletion, RFIDProgressCompletion, ChipDetectedCompletion, RetryReadChipCompletion, PaCertificateCompletion, TaCertificateCompletion, PKDCertificateRequest, TaSignatureCompletion, TASignatureRequest, ScannerConfig, RecognizeConfig, ImageInputData, FinalizeConfig };
7
+ export {
8
+ OnlineProcessingConfig,
9
+ ImageFormat,
10
+ OnlineMode,
11
+ InitConfig,
12
+ RFIDConfig,
13
+ RFIDCompletion,
14
+ RFIDProgressCompletion,
15
+ ChipDetectedCompletion,
16
+ RetryReadChipCompletion,
17
+ PaCertificateCompletion,
18
+ TaCertificateCompletion,
19
+ PKDCertificateRequest,
20
+ TaSignatureCompletion,
21
+ TASignatureRequest,
22
+ ScannerConfig,
23
+ RecognizeConfig,
24
+ ImageInputData,
25
+ FinalizeConfig,
26
+ };
8
27
 
9
28
  import { DocReaderVersion } from './info/DocReaderVersion';
10
29
  import { PrepareProgress, DocumentReaderPrepareCompletion } from './info/PrepareProgress';
@@ -13,7 +32,19 @@ import { DocumentsDatabase } from './info/DocumentsDatabase';
13
32
  import { License } from './info/License';
14
33
  import { DocReaderScenario, Scenario, DocReaderOrientation } from './info/DocReaderScenario';
15
34
  import { RFIDException } from './info/RFIDException';
16
- export { DocReaderVersion, PrepareProgress, DocumentReaderPrepareCompletion, DocReaderException, ErrorCodes, DocumentsDatabase, License, DocReaderScenario, Scenario, DocReaderOrientation, RFIDException };
35
+ export {
36
+ DocReaderVersion,
37
+ PrepareProgress,
38
+ DocumentReaderPrepareCompletion,
39
+ DocReaderException,
40
+ ErrorCodes,
41
+ DocumentsDatabase,
42
+ License,
43
+ DocReaderScenario,
44
+ Scenario,
45
+ DocReaderOrientation,
46
+ RFIDException,
47
+ };
17
48
 
18
49
  import { LCID } from './results/visual_results/LCID';
19
50
  import { GraphicFieldType } from './results/visual_results/GraphicFieldType';
@@ -30,13 +61,38 @@ import { RFIDOrigin } from './results/visual_results/RFIDOrigin';
30
61
  import { TextResult } from './results/visual_results/TextResult';
31
62
  import { TextSource } from './results/visual_results/TextSource';
32
63
  import { GraphicResult } from './results/visual_results/GraphicResult';
33
- export { LCID, GraphicFieldType, Value, Rect, Symbol, Comparison, TextField, Lights, Validity, FieldType, GraphicField, RFIDOrigin, TextResult, TextSource, GraphicResult };
64
+ export {
65
+ LCID,
66
+ GraphicFieldType,
67
+ Value,
68
+ Rect,
69
+ Symbol,
70
+ Comparison,
71
+ TextField,
72
+ Lights,
73
+ Validity,
74
+ FieldType,
75
+ GraphicField,
76
+ RFIDOrigin,
77
+ TextResult,
78
+ TextSource,
79
+ GraphicResult,
80
+ };
34
81
 
35
82
  import { DocumentType, DocFormat, DocType as DocumentTypeEnum } from './results/DocumentType';
36
83
  import { Results, ResultType } from './results/Results';
37
84
  import { TransactionInfo } from './results/TransactionInfo';
38
85
  import { Position, Coordinate } from './results/Position';
39
- export { DocumentType, DocFormat, DocumentTypeEnum, Results, ResultType, TransactionInfo, Position, Coordinate };
86
+ export {
87
+ DocumentType,
88
+ DocFormat,
89
+ DocumentTypeEnum,
90
+ Results,
91
+ ResultType,
92
+ TransactionInfo,
93
+ Position,
94
+ Coordinate,
95
+ };
40
96
 
41
97
  import { RFIDStatus } from './results/status/RFIDStatus';
42
98
  import { ResultsStatus } from './results/status/ResultsStatus';
@@ -44,7 +100,14 @@ import { CheckResult } from './results/status/CheckResult';
44
100
  import { OpticalStatus } from './results/status/OpticalStatus';
45
101
  import { AgeStatus } from './results/status/AgeStatus';
46
102
  import { ProcessingFinishedStatus } from './results/Results';
47
- export { RFIDStatus, ResultsStatus, CheckResult, OpticalStatus, AgeStatus, ProcessingFinishedStatus };
103
+ export {
104
+ RFIDStatus,
105
+ ResultsStatus,
106
+ CheckResult,
107
+ OpticalStatus,
108
+ AgeStatus,
109
+ ProcessingFinishedStatus,
110
+ };
48
111
 
49
112
  import { CheckDiagnose } from './results/authenticity/CheckDiagnose';
50
113
  import { AuthenticityElement } from './results/authenticity/AuthenticityElement';
@@ -52,19 +115,36 @@ import { AuthenticityResult } from './results/authenticity/AuthenticityResult';
52
115
  import { AuthenticityCheck } from './results/authenticity/AuthenticityCheck';
53
116
  import { SecurityFeatureType } from './results/authenticity/SecurityFeatureType';
54
117
  import { Authenticity } from './results/authenticity/Authenticity';
55
- export { CheckDiagnose, AuthenticityElement, AuthenticityResult, AuthenticityCheck, SecurityFeatureType, Authenticity };
118
+ export {
119
+ CheckDiagnose,
120
+ AuthenticityElement,
121
+ AuthenticityResult,
122
+ AuthenticityCheck,
123
+ SecurityFeatureType,
124
+ Authenticity,
125
+ };
56
126
 
57
127
  import { PDF417Info } from './results/barcode/PDF417Info';
58
128
  import { BarcodeStatus } from './results/barcode/BarcodeStatus';
59
129
  import { BarcodeType } from './results/barcode/BarcodeType';
60
130
  import { BarcodeResult } from './results/barcode/BarcodeResult';
61
131
  import { BarcodeField } from './results/barcode/BarcodeField';
62
- export { PDF417Info, BarcodeStatus, BarcodeType, BarcodeResult, BarcodeField };
132
+ export {
133
+ PDF417Info,
134
+ BarcodeStatus,
135
+ BarcodeType,
136
+ BarcodeResult,
137
+ BarcodeField,
138
+ };
63
139
 
64
140
  import { ImageQuality } from './results/image_quality/ImageQuality';
65
141
  import { ImageQualityGroup } from './results/image_quality/ImageQualityGroup';
66
142
  import { ImageQualityCheckType } from './results/image_quality/ImageQualityCheckType';
67
- export { ImageQuality, ImageQualityGroup, ImageQualityCheckType };
143
+ export {
144
+ ImageQuality,
145
+ ImageQualityGroup,
146
+ ImageQualityCheckType,
147
+ };
68
148
 
69
149
  import { LDSParsingErrorCodes } from './results/visible_digital_seals/LDSParsingErrorCodes';
70
150
  import { VDSNCData } from './results/visible_digital_seals/VDSNCData';
@@ -72,7 +152,14 @@ import { BytesData } from './results/visible_digital_seals/BytesData';
72
152
  import { DocFeature } from './results/visible_digital_seals/DocFeature';
73
153
  import { VDSData } from './results/visible_digital_seals/VDSData';
74
154
  import { LDSParsingNotificationCodes } from './results/visible_digital_seals/LDSParsingNotificationCodes';
75
- export { LDSParsingErrorCodes, VDSNCData, BytesData, DocFeature, VDSData, LDSParsingNotificationCodes };
155
+ export {
156
+ LDSParsingErrorCodes,
157
+ VDSNCData,
158
+ BytesData,
159
+ DocFeature,
160
+ VDSData,
161
+ LDSParsingNotificationCodes,
162
+ };
76
163
 
77
164
  import { SecurityObject } from './results/rfid/SecurityObject';
78
165
  import { CardProperties } from './results/rfid/CardProperties';
@@ -94,9 +181,32 @@ import { Application, RFIDApplicationType } from './results/rfid/Application';
94
181
  import { RFIDAccessControlProcedureType } from './results/rfid/RFIDAccessControlProcedureType';
95
182
  import { Extension } from './results/rfid/Extension';
96
183
  import { AccessControlProcedureType } from './results/rfid/AccessControlProcedureType';
97
- export { SecurityObject, CardProperties, DataField, Attribute, SignerInfo, SecurityObjectCertificates, CertificateChain, Authority, File, RFIDValue, RFIDValidity, RFIDDataFileType, CertificateData, FileData, RFIDCertificateType, RFIDSessionData, Application, RFIDApplicationType, RFIDAccessControlProcedureType, Extension, AccessControlProcedureType };
184
+ export {
185
+ SecurityObject,
186
+ CardProperties,
187
+ DataField,
188
+ Attribute,
189
+ SignerInfo,
190
+ SecurityObjectCertificates,
191
+ CertificateChain,
192
+ Authority,
193
+ File,
194
+ RFIDValue,
195
+ RFIDValidity,
196
+ RFIDDataFileType,
197
+ CertificateData,
198
+ FileData,
199
+ RFIDCertificateType,
200
+ RFIDSessionData,
201
+ Application,
202
+ RFIDApplicationType,
203
+ RFIDAccessControlProcedureType,
204
+ Extension,
205
+ AccessControlProcedureType,
206
+ };
98
207
 
99
208
  import { LivenessParams } from './params/process_params/LivenessParams';
209
+ import { AuthenticityPropertiesParams } from './params/process_params/AuthenticityPropertiesParams';
100
210
  import { ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes } from './params/process_params/ProcessParams';
101
211
  import { GlaresCheckParams } from './params/process_params/GlaresCheckParams';
102
212
  import { FaceApiParams } from './params/process_params/FaceApiParams';
@@ -106,10 +216,33 @@ import { AuthenticityParams } from './params/process_params/AuthenticityParams';
106
216
  import { BackendProcessingConfig } from './params/process_params/BackendProcessingConfig';
107
217
  import { Bsi } from './params/process_params/Bsi';
108
218
  import { FaceApiSearchParams } from './params/process_params/FaceApiSearchParams';
109
- export { LivenessParams, ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes, GlaresCheckParams, FaceApiParams, RFIDParams, ImageQA, AuthenticityParams,BackendProcessingConfig, Bsi, FaceApiSearchParams };
219
+ export {
220
+ LivenessParams,
221
+ AuthenticityPropertiesParams,
222
+ ProcessParams,
223
+ MeasureSystem,
224
+ MRZFormat,
225
+ LogLevel,
226
+ MrzDetectionModes,
227
+ GlaresCheckParams,
228
+ FaceApiParams,
229
+ RFIDParams,
230
+ ImageQA,
231
+ AuthenticityParams, BackendProcessingConfig,
232
+ Bsi,
233
+ FaceApiSearchParams,
234
+ };
110
235
 
111
236
  import { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize } from './params/Functionality';
112
- export { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize };
237
+ export {
238
+ Functionality,
239
+ CameraPosition,
240
+ CaptureMode,
241
+ CameraMode,
242
+ CaptureSessionPreset,
243
+ DocReaderFrame,
244
+ CameraSize,
245
+ };
113
246
 
114
247
  import { CustomizationColors } from './params/customization/CustomizationColors';
115
248
  import { CustomizationFonts, Font, FontStyle } from './params/customization/CustomizationFonts';
@@ -118,14 +251,41 @@ import { CustomizationTimings } from './params/customization/CustomizationTiming
118
251
  import { CustomizationMatrices } from './params/customization/CustomizationMatrices';
119
252
  import { CustomizationContentModes, ViewContentMode } from './params/customization/CustomizationContentModes';
120
253
  import { Customization, Cap, FrameShapeType, CustomButtonTag, CustomizationTheme } from './params/customization/Customization';
121
- export { CustomizationColors, CustomizationFonts, CustomizationImages, CustomizationTimings, CustomizationMatrices, CustomizationContentModes, Font, FontStyle, Customization, Cap, FrameShapeType, ViewContentMode, CustomButtonTag, CustomizationTheme };
254
+ export {
255
+ CustomizationColors,
256
+ CustomizationFonts,
257
+ CustomizationImages,
258
+ CustomizationTimings,
259
+ CustomizationMatrices,
260
+ CustomizationContentModes,
261
+ Font,
262
+ FontStyle,
263
+ Customization,
264
+ Cap,
265
+ FrameShapeType,
266
+ ViewContentMode,
267
+ CustomButtonTag,
268
+ CustomizationTheme,
269
+ };
122
270
 
123
271
  import { EPassportDataGroups } from './params/rfid_scenario/EPassportDataGroups';
124
272
  import { EIDDataGroups } from './params/rfid_scenario/EIDDataGroups';
125
273
  import { DTCDataGroup } from './params/rfid_scenario/DTCDataGroup';
126
274
  import { RFIDScenario, RFIDAuthenticationProcedureType, RFIDPasswordType, RFIDSDKProfilerType, RFIDTerminalType, SignManagementAction, RFIDReadingBufferSize } from './params/rfid_scenario/RFIDScenario';
127
275
  import { EDLDataGroups } from './params/rfid_scenario/EDLDataGroups';
128
- export { EPassportDataGroups, EIDDataGroups, DTCDataGroup, RFIDScenario, RFIDAuthenticationProcedureType, RFIDPasswordType, RFIDSDKProfilerType, RFIDTerminalType, SignManagementAction, RFIDReadingBufferSize, EDLDataGroups };
276
+ export {
277
+ EPassportDataGroups,
278
+ EIDDataGroups,
279
+ DTCDataGroup,
280
+ RFIDScenario,
281
+ RFIDAuthenticationProcedureType,
282
+ RFIDPasswordType,
283
+ RFIDSDKProfilerType,
284
+ RFIDTerminalType,
285
+ SignManagementAction,
286
+ RFIDReadingBufferSize,
287
+ EDLDataGroups,
288
+ };
129
289
 
130
290
  import { PAResourcesIssuer } from './rfid/PAResourcesIssuer';
131
291
  import { RFIDErrorCodes } from './rfid/RFIDErrorCodes';
@@ -136,14 +296,37 @@ import { TAChallenge } from './rfid/TAChallenge';
136
296
  import { PACEProtocol } from './rfid/PACEProtocol';
137
297
  import { CAProtocol } from './rfid/CAProtocol';
138
298
  import { PKDCertificate, PKDResourceType } from './rfid/PKDCertificate';
139
- export { PAResourcesIssuer, RFIDErrorCodes, TccParams, RFIDNotification, RFIDNotificationCodes, PAAttribute, TAChallenge, PACEProtocol, CAProtocol, PKDCertificate, PKDResourceType };
299
+ export {
300
+ PAResourcesIssuer,
301
+ RFIDErrorCodes,
302
+ TccParams,
303
+ RFIDNotification,
304
+ RFIDNotificationCodes,
305
+ PAAttribute,
306
+ TAChallenge,
307
+ PACEProtocol,
308
+ CAProtocol,
309
+ PKDCertificate,
310
+ PKDResourceType,
311
+ };
140
312
 
141
313
  import { DataRetrieval, MDLDocRequestPreset, MDLDeviceRetrieval } from './mdl/DataRetrieval';
142
314
  import { DeviceEngagement, MDLDeviceEngagement } from './mdl/DeviceEngagement';
143
315
  import { NameSpaceMDL, MDLIntentToRetain } from './mdl/NameSpaceMDL';
144
316
  import { DocumentRequestMDL, DocumentRequest18013MDL } from './mdl/DocumentRequestMDL';
145
317
  import { DeviceRetrievalMethod } from './mdl/DeviceRetrievalMethod';
146
- export { DataRetrieval, MDLDocRequestPreset, MDLDeviceRetrieval, DeviceEngagement, MDLDeviceEngagement, DeviceRetrievalMethod, DocumentRequest18013MDL, MDLIntentToRetain, NameSpaceMDL, DocumentRequestMDL };
318
+ export {
319
+ DataRetrieval,
320
+ MDLDocRequestPreset,
321
+ MDLDeviceRetrieval,
322
+ DeviceEngagement,
323
+ MDLDeviceEngagement,
324
+ DeviceRetrievalMethod,
325
+ DocumentRequest18013MDL,
326
+ MDLIntentToRetain,
327
+ NameSpaceMDL,
328
+ DocumentRequestMDL,
329
+ };
147
330
 
148
331
 
149
332
  /**
@@ -308,7 +491,11 @@ export class DocumentReader {
308
491
  /** Cancels any ongoing database update or preparation. */
309
492
  cancelDBUpdate(): Promise<boolean>;
310
493
 
311
- /** Removes the current document database. */
494
+ /**
495
+ * Allows you to remove the database from your app.
496
+ *
497
+ * @returns `true` only if the database was removed or absent.
498
+ */
312
499
  removeDatabase(): Promise<boolean>;
313
500
 
314
501
  /** Used to start the processing of the next page of the document once the current one is processed. */
@@ -398,7 +585,7 @@ export class DocumentReader {
398
585
  *
399
586
  * @param data - Required if @param type = {@link MDLDeviceEngagement.QR} and @param withoutUI = `true`.
400
587
  */
401
- engageDevice(type: MDLDeviceEngagement, options?: {withoutUI: boolean, data?: string}): Promise<[engagement: DeviceEngagement | null, error: DocReaderException | null]>;
588
+ engageDevice(type: MDLDeviceEngagement, options?: { withoutUI: boolean, data?: string }): Promise<[engagement: DeviceEngagement | null, error: DocReaderException | null]>;
402
589
 
403
590
  /**
404
591
  * Used to retrieve data.
@@ -407,7 +594,7 @@ export class DocumentReader {
407
594
  *
408
595
  * @param engagement - Required for @param withoutUI = `null` or {@link MDLDeviceRetrieval.BLE}. Not needed for {@link MDLDeviceRetrieval.NFC}
409
596
  */
410
- retrieveData(retrieval: DataRetrieval, options?: {withoutUI?: MDLDeviceRetrieval, engagement?: DeviceEngagement}): Promise<[action: DocReaderAction, results: Results | null, error: DocReaderException | null]>;
597
+ retrieveData(retrieval: DataRetrieval, options?: { withoutUI?: MDLDeviceRetrieval, engagement?: DeviceEngagement }): Promise<[action: DocReaderAction, results: Results | null, error: DocReaderException | null]>;
411
598
  }
412
599
 
413
600
  /**
@@ -1,11 +1,9 @@
1
1
  import { LivenessParams } from "./LivenessParams";
2
+ import { AuthenticityPropertiesParams } from "./AuthenticityPropertiesParams";
2
3
 
3
4
  export declare class AuthenticityParams {
4
- /**
5
- * This parameter is used to enable document liveness check.
6
- */
5
+ /** This parameter is used to enable document liveness check. */
7
6
  useLivenessCheck?: boolean;
8
-
9
7
  livenessParams: LivenessParams;
10
8
  checkUVLuminiscence?: boolean;
11
9
  checkIRB900?: boolean;
@@ -21,6 +19,9 @@ export declare class AuthenticityParams {
21
19
  checkPhotoComparison?: boolean;
22
20
  checkLetterScreen?: boolean;
23
21
  checkSecurityText?: boolean;
22
+ /** Set to true to enable detection of the document properties, such as holder's signature and other attributes. */
23
+ checkProperties?: boolean;
24
+ propertiesParams: AuthenticityPropertiesParams;
24
25
 
25
26
  /**
26
27
  * Allows you to deserialize object.
@@ -0,0 +1,10 @@
1
+ export declare class AuthenticityPropertiesParams {
2
+ /** Set to true to enable detection of the document holder’s signature. */
3
+ checkHoldersSignature?: boolean;
4
+
5
+ /**
6
+ * Allows you to deserialize object.
7
+ * @param jsonObject
8
+ */
9
+ static fromJson(jsonObject: any): AuthenticityPropertiesParams;
10
+ }
@@ -47,6 +47,9 @@ export declare class FaceApiParams {
47
47
  */
48
48
  readonly proxyType?: number;
49
49
 
50
+ /** This parameter allows you to use a liveness transaction id instead of a selfie photo. */
51
+ readonly livenessTransactionId?: string;
52
+
50
53
  constructor(
51
54
  options?: {
52
55
  url?: string,
@@ -57,6 +60,7 @@ export declare class FaceApiParams {
57
60
  proxy?: string,
58
61
  proxyPassword?: string,
59
62
  proxyType?: number,
63
+ livenessTransactionId?: string,
60
64
  }
61
65
  );
62
66
 
@@ -377,9 +377,10 @@ export declare class ProcessParams {
377
377
  */
378
378
  resultTypeOutput?: ResultType[];
379
379
  /**
380
- * This option allows limiting MRZ formats to be recognized by specifying
381
- * them in array.
380
+ * This option allows limiting MRZ formats to be recognized by specifying them in array.
382
381
  *
382
+ * If left empty, all MRZ formats will be recognized, except for 2x30, which is disabled by default.
383
+ *
383
384
  * Unmodifiable property. Use setter instead of editing.
384
385
  */
385
386
  mrzFormatsFilter?: MRZFormat[];
@@ -62,6 +62,7 @@ export declare enum Authenticity {
62
62
  * absence of signs that the image was edited.
63
63
  */
64
64
  MRZ = 8388608,
65
+ PROPERTY = 33554432,
65
66
  /** Status only. */
66
67
  STATUS_ONLY = 2147483648,
67
68
  }
@@ -234,4 +234,7 @@ export declare enum CheckDiagnose {
234
234
  ICAO_IDB_CERTIFICATE_MUST_NOT_BE_PRESENT = 248,
235
235
  /** Incorrect object color. */
236
236
  INCORRECT_OBJECT_COLOR = 250,
237
+ PROPERTY_NO_SIGNATURE = 260,
238
+ PROPERTY_TEXT_AS_SIGNATURE = 261,
239
+ PROPERTY_FINGERPRINT_AS_SIGNATURE = 262,
237
240
  }
@@ -105,4 +105,5 @@ export declare enum SecurityFeatureType {
105
105
  PORTRAIT_COMPARISON_BARCODEVSGHOST = 59,
106
106
  PORTRAIT_COMPARISON_GHOSTVSLIVE = 60,
107
107
  PORTRAIT_COMPARISON_EXTVSGHOST = 61,
108
+ SIGNATURE_PRESENCE = 62,
108
109
  }
@@ -1316,7 +1316,9 @@ export declare enum FieldType {
1316
1316
  JURISDICTION_SPECIFIC_DATA = 703,
1317
1317
  DATA_DATE_OF_EXPIRY = 704,
1318
1318
  CONSUL = 705,
1319
- CANTON_REFERENCE = 706,
1319
+ DLCLASSCODE_B3_FROM = 706,
1320
+ DLCLASSCODE_B3_TO = 707,
1321
+ DLCLASSCODE_B3_NOTES = 708,
1320
1322
  }
1321
1323
 
1322
1324
  export declare namespace FieldType {