@finos_sdk/sdk-ekyc 1.2.9 → 1.3.2

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.
@@ -3,10 +3,10 @@ import { NfcConfig, NfcError } from './src/types/ekycNFCType';
3
3
  import { SDKEkycResultWithEvent, SDKEkycResultStringWithEvent } from './src/types/ekycType';
4
4
  import { C06Config } from './src/types/ekycC06Type';
5
5
  import { OcrConfig } from './src/types/ekycOCRType';
6
- import { LivenessConfig } from './src/types/ekycLivenessType';
6
+ import { LivenessConfig, SDKFaceDetectStatus } from './src/types/ekycLivenessType';
7
7
  import { FaceServiceConfig } from './src/types/ekycFaceType';
8
8
  import { SmsOtpConfig, SmsOtpResult, SmsOtpError } from './src/types/ekycSmsOtpType';
9
- import { UserEsignModel, ESignInitResult, ESignOpenSessionResult, ESignCertificate, ESignSignRequest, ESignError, ESignAuthenticateResult } from './src/types/ekycESignType';
9
+ import { ESignInitResult, ESignOpenSessionResult, ESignCertificate, ESignSignRequest, ESignError } from './src/types/ekycESignType';
10
10
  export declare const SDK_VERSION: string;
11
11
  export declare const SDK_NAME: string;
12
12
  declare class SDKeKYC {
@@ -52,8 +52,9 @@ declare class SDKeKYC {
52
52
  onSmsOtpVerifySuccess(callback: (data: SmsOtpResult) => void): EmitterSubscription | null;
53
53
  onSmsOtpResendSuccess(callback: (data: SmsOtpResult) => void): EmitterSubscription | null;
54
54
  onSmsOtpError(callback: (error: SmsOtpError) => void): EmitterSubscription | null;
55
- initializeESign(): Promise<ESignInitResult>;
56
- openSessionId(accessToken?: string, username?: string, rememberMe?: boolean, userEsignModel?: UserEsignModel, privateKeyFilePath?: string): Promise<ESignOpenSessionResult>;
55
+ initializeESign(finosToken?: string): Promise<ESignInitResult>;
56
+ getSdkToken(identity: string, name: string, deviceId: string): Promise<string>;
57
+ openSessionId(accessToken: string | null, username: string | null, rememberMe: boolean | null): Promise<ESignOpenSessionResult>;
57
58
  registerDevice(recoverCode: string, pinCode: string, fcmToken?: string): Promise<{
58
59
  code: string;
59
60
  message: string;
@@ -72,14 +73,13 @@ declare class SDKeKYC {
72
73
  code: string;
73
74
  message: string;
74
75
  }>;
75
- authenticate(username: string, password: string): Promise<ESignAuthenticateResult>;
76
- registerRemoteSigning(accessToken: string, requestJson: string): Promise<{
76
+ registerRemoteSigning(requestJson: string): Promise<{
77
77
  response: string;
78
78
  }>;
79
- signPdf(accessToken: string, requestJson: string): Promise<{
79
+ signPdf(requestJson: string): Promise<{
80
80
  response: string;
81
81
  }>;
82
- sendConfirmationDocument(accessToken: string, requestJson: string): Promise<{
82
+ sendConfirmationDocument(requestJson: string): Promise<{
83
83
  response: string;
84
84
  }>;
85
85
  onESignInitSuccess(callback: (data: ESignInitResult) => void): EmitterSubscription | null;
@@ -102,7 +102,6 @@ declare class SDKeKYC {
102
102
  code: string;
103
103
  message: string;
104
104
  }) => void): EmitterSubscription | null;
105
- onESignAuthenticateSuccess(callback: (data: ESignAuthenticateResult) => void): EmitterSubscription | null;
106
105
  onESignRegisterRemoteSigningSuccess(callback: (data: {
107
106
  response: string;
108
107
  }) => void): EmitterSubscription | null;
@@ -164,4 +163,5 @@ declare class SDKeKYC {
164
163
  }
165
164
  declare const sdkEKYC: SDKeKYC;
166
165
  export { SDKeKYC };
166
+ export { SDKFaceDetectStatus };
167
167
  export default sdkEKYC;
@@ -3,8 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SDKeKYC = exports.SDK_NAME = exports.SDK_VERSION = void 0;
6
+ exports.SDKFaceDetectStatus = exports.SDKeKYC = exports.SDK_NAME = exports.SDK_VERSION = void 0;
7
7
  const react_native_1 = require("react-native");
8
+ const ekycLivenessType_1 = require("./src/types/ekycLivenessType");
9
+ Object.defineProperty(exports, "SDKFaceDetectStatus", { enumerable: true, get: function () { return ekycLivenessType_1.SDKFaceDetectStatus; } });
8
10
  // Version information - dynamically imported from package.json
9
11
  const package_json_1 = __importDefault(require("./package.json"));
10
12
  exports.SDK_VERSION = package_json_1.default.version;
@@ -204,11 +206,13 @@ class SDKeKYC {
204
206
  }
205
207
  }
206
208
  async startLiveness(config) {
207
- var _a;
209
+ var _a, _b, _c;
208
210
  this.validateConfig(config, ['appKey', 'selfieImage', 'transactionId']);
209
211
  const nativeModule = this.ensureNativeModule();
210
212
  try {
211
- return await nativeModule.startLiveness(config.appKey, config.selfieImage, config.usingRandomAction, (_a = config.transactionId) !== null && _a !== void 0 ? _a : '', config.isStraight, config.switchFrontCamera !== undefined ? config.switchFrontCamera : false);
213
+ // Convert SDKFaceDetectStatus enum array to string array
214
+ const customActionsStrings = (_b = (_a = config.customActions) === null || _a === void 0 ? void 0 : _a.map(action => String(action))) !== null && _b !== void 0 ? _b : undefined;
215
+ return await nativeModule.startLiveness(config.appKey, config.selfieImage, (_c = config.transactionId) !== null && _c !== void 0 ? _c : '', config.switchFrontCamera !== undefined ? config.switchFrontCamera : false, config.isActiveLiveness, config.autoCapture, config.isShowCameraFont, customActionsStrings, config.activeActionCount, config.forceCaptureTimeout);
212
216
  }
213
217
  catch (error) {
214
218
  console.error('Liveness Error:', error);
@@ -527,10 +531,10 @@ class SDKeKYC {
527
531
  }
528
532
  }
529
533
  // ==================== eSign Methods ====================
530
- async initializeESign() {
534
+ async initializeESign(finosToken) {
531
535
  const nativeModule = this.ensureNativeModule();
532
536
  try {
533
- const result = await nativeModule.initializeESign();
537
+ const result = await nativeModule.initializeESign(finosToken);
534
538
  return result;
535
539
  }
536
540
  catch (error) {
@@ -538,11 +542,20 @@ class SDKeKYC {
538
542
  throw error;
539
543
  }
540
544
  }
541
- async openSessionId(accessToken, username, rememberMe, userEsignModel, privateKeyFilePath) {
545
+ async getSdkToken(identity, name, deviceId) {
546
+ const nativeModule = this.ensureNativeModule();
547
+ try {
548
+ return await nativeModule.getSdkToken(identity, name, deviceId);
549
+ }
550
+ catch (error) {
551
+ console.error('getSdkToken Error:', error);
552
+ throw error;
553
+ }
554
+ }
555
+ async openSessionId(accessToken, username, rememberMe) {
542
556
  const nativeModule = this.ensureNativeModule();
543
557
  try {
544
- const userEsignModelJson = userEsignModel ? JSON.stringify(userEsignModel) : null;
545
- const result = await nativeModule.openSessionId(accessToken || null, username || null, rememberMe !== undefined ? rememberMe : false, userEsignModelJson, privateKeyFilePath || null);
558
+ const result = await nativeModule.openSessionId(accessToken || null, username || null, rememberMe !== null ? rememberMe : null);
546
559
  return result;
547
560
  }
548
561
  catch (error) {
@@ -553,7 +566,7 @@ class SDKeKYC {
553
566
  async registerDevice(recoverCode, pinCode, fcmToken) {
554
567
  const nativeModule = this.ensureNativeModule();
555
568
  try {
556
- const result = await nativeModule.registerDevice(recoverCode, pinCode, fcmToken || null);
569
+ const result = await nativeModule.registerDevice(recoverCode, pinCode, fcmToken || "");
557
570
  return result;
558
571
  }
559
572
  catch (error) {
@@ -564,7 +577,19 @@ class SDKeKYC {
564
577
  async listCerts(pageNumber = 1, pageSize = 10) {
565
578
  const nativeModule = this.ensureNativeModule();
566
579
  try {
580
+ console.log(`📋 listCerts called with pageNumber=${pageNumber}, pageSize=${pageSize}`);
567
581
  const result = await nativeModule.listCerts(pageNumber, pageSize);
582
+ console.log('📋 listCerts result:', JSON.stringify(result));
583
+ // Validate response format
584
+ if (!result) {
585
+ console.warn('⚠️ listCerts: result is null/undefined, returning empty array');
586
+ return { certs: [] };
587
+ }
588
+ // Ensure certs array exists
589
+ if (!result.certs) {
590
+ console.warn('⚠️ listCerts: result.certs is missing, creating empty array');
591
+ return { certs: [] };
592
+ }
568
593
  return result;
569
594
  }
570
595
  catch (error) {
@@ -575,7 +600,23 @@ class SDKeKYC {
575
600
  async verifyCert(serial) {
576
601
  const nativeModule = this.ensureNativeModule();
577
602
  try {
603
+ console.log(`✅ verifyCert called with serial=${serial}`);
578
604
  const result = await nativeModule.verifyCert(serial);
605
+ console.log('✅ verifyCert result:', JSON.stringify(result));
606
+ // Validate response format
607
+ if (!result) {
608
+ console.warn('⚠️ verifyCert: result is null/undefined');
609
+ throw new Error('verifyCert returned null/undefined result');
610
+ }
611
+ // Ensure code and message exist
612
+ if (!result.code || !result.message) {
613
+ console.warn('⚠️ verifyCert: result missing code or message:', result);
614
+ // Try to create a valid response from what we have
615
+ return {
616
+ code: result.code || 'UNKNOWN',
617
+ message: result.message || 'Unknown response'
618
+ };
619
+ }
579
620
  return result;
580
621
  }
581
622
  catch (error) {
@@ -597,7 +638,7 @@ class SDKeKYC {
597
638
  async confirmSign(signRequestId, pinCode, authId, authData, confirm = true) {
598
639
  const nativeModule = this.ensureNativeModule();
599
640
  try {
600
- const result = await nativeModule.confirmSign(signRequestId, pinCode, authId || null, authData || null, confirm !== undefined ? confirm : true);
641
+ const result = await nativeModule.confirmSign(signRequestId, pinCode, authId || "", authData || "", confirm !== undefined ? confirm : true);
601
642
  return result;
602
643
  }
603
644
  catch (error) {
@@ -605,21 +646,10 @@ class SDKeKYC {
605
646
  throw error;
606
647
  }
607
648
  }
608
- async authenticate(username, password) {
609
- const nativeModule = this.ensureNativeModule();
610
- try {
611
- const result = await nativeModule.authenticate(username, password);
612
- return result;
613
- }
614
- catch (error) {
615
- console.error('eSign Authenticate Error:', error);
616
- throw error;
617
- }
618
- }
619
- async registerRemoteSigning(accessToken, requestJson) {
649
+ async registerRemoteSigning(requestJson) {
620
650
  const nativeModule = this.ensureNativeModule();
621
651
  try {
622
- const result = await nativeModule.registerRemoteSigning(accessToken, requestJson);
652
+ const result = await nativeModule.registerRemoteSigning(requestJson);
623
653
  return result;
624
654
  }
625
655
  catch (error) {
@@ -627,10 +657,31 @@ class SDKeKYC {
627
657
  throw error;
628
658
  }
629
659
  }
630
- async signPdf(accessToken, requestJson) {
660
+ async signPdf(requestJson) {
631
661
  const nativeModule = this.ensureNativeModule();
632
662
  try {
633
- const result = await nativeModule.signPdf(accessToken, requestJson);
663
+ console.log('📄 signPdf called with requestJson length:', (requestJson === null || requestJson === void 0 ? void 0 : requestJson.length) || 0);
664
+ const result = await nativeModule.signPdf(requestJson);
665
+ console.log('📄 signPdf result:', JSON.stringify(result));
666
+ // Validate response format
667
+ if (!result) {
668
+ console.warn('⚠️ signPdf: result is null/undefined');
669
+ throw new Error('signPdf returned null/undefined result');
670
+ }
671
+ // Ensure response field exists
672
+ if (!result.response) {
673
+ console.warn('⚠️ signPdf: result.response is missing:', result);
674
+ // Try to create a valid response from what we have
675
+ // Check if result itself is a string
676
+ if (typeof result === 'string') {
677
+ return { response: result };
678
+ }
679
+ // Check if result has message field
680
+ if (result.message) {
681
+ return { response: result.message };
682
+ }
683
+ throw new Error('signPdf result missing response field');
684
+ }
634
685
  return result;
635
686
  }
636
687
  catch (error) {
@@ -638,10 +689,10 @@ class SDKeKYC {
638
689
  throw error;
639
690
  }
640
691
  }
641
- async sendConfirmationDocument(accessToken, requestJson) {
692
+ async sendConfirmationDocument(requestJson) {
642
693
  const nativeModule = this.ensureNativeModule();
643
694
  try {
644
- const result = await nativeModule.sendConfirmationDocument(accessToken, requestJson);
695
+ const result = await nativeModule.sendConfirmationDocument(requestJson);
645
696
  return result;
646
697
  }
647
698
  catch (error) {
@@ -762,22 +813,6 @@ class SDKeKYC {
762
813
  return null;
763
814
  }
764
815
  }
765
- onESignAuthenticateSuccess(callback) {
766
- try {
767
- const emitter = this.ensureEventEmitter();
768
- if (!emitter) {
769
- console.error('❌ Event emitter not available for onESignAuthenticateSuccess');
770
- return null;
771
- }
772
- const listener = emitter.addListener('onESignAuthenticateSuccess', callback);
773
- this.listeners.push(listener);
774
- return listener;
775
- }
776
- catch (error) {
777
- console.error('Failed to add onESignAuthenticateSuccess listener:', error);
778
- return null;
779
- }
780
- }
781
816
  onESignRegisterRemoteSigningSuccess(callback) {
782
817
  try {
783
818
  const emitter = this.ensureEventEmitter();
package/dist/index.d.ts CHANGED
@@ -9,11 +9,12 @@ export type { NfcConfig, NFCData, NfcInfo } from './src/types/ekycNFCType';
9
9
  export type { C06Config } from './src/types/ekycC06Type';
10
10
  export type { OcrConfig } from './src/types/ekycOCRType';
11
11
  export type { LivenessConfig } from './src/types/ekycLivenessType';
12
+ export { SDKFaceDetectStatus } from './src/types/ekycLivenessType';
12
13
  export type { FaceServiceConfig } from './src/types/ekycFaceType';
13
14
  export type { SDKEkycResultWithEvent, SDKEkycResultStringWithEvent } from './src/types/ekycType';
14
15
  export type { NfcError } from './src/types/ekycNFCType';
15
16
  export type { SDKTransactionResponse } from './src/types/ekycTransactionType';
16
17
  export type { SmsOtpConfig, SmsOtpResult, SmsOtpError } from './src/types/ekycSmsOtpType';
17
- export type { UserEsignModel, ESignInitResult, ESignOpenSessionResult, ESignCertificate, ESignSignRequest, ESignError, ESignAuthenticateResult } from './src/types/ekycESignType';
18
+ export type { ESignInitResult, ESignOpenSessionResult, ESignCertificate, ESignSignRequest, ESignError, ESignAuthenticateResult, UserEsignModel } from './src/types/ekycESignType';
18
19
  export { parseNfcResponse } from './src/utils/utils';
19
20
  export { SDK_VERSION, SDK_NAME };
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.SDK_NAME = exports.SDK_VERSION = exports.parseNfcResponse = exports.FinosESignModule = exports.FinosESign = exports.FinosEKYCModule = exports.FinosEKYC = exports.SDKeKYC = exports.sdkEKYC = void 0;
26
+ exports.SDK_NAME = exports.SDK_VERSION = exports.parseNfcResponse = exports.SDKFaceDetectStatus = exports.FinosESignModule = exports.FinosESign = exports.FinosEKYCModule = exports.FinosEKYC = exports.SDKeKYC = exports.sdkEKYC = void 0;
27
27
  const EKYCModule_1 = __importStar(require("./EKYCModule"));
28
28
  exports.sdkEKYC = EKYCModule_1.default;
29
29
  Object.defineProperty(exports, "SDKeKYC", { enumerable: true, get: function () { return EKYCModule_1.SDKeKYC; } });
@@ -38,6 +38,8 @@ Object.defineProperty(exports, "FinosESignModule", { enumerable: true, get: func
38
38
  console.log('✅ SDK modules loaded successfully');
39
39
  // Export main SDK instance and class (legacy)
40
40
  exports.default = EKYCModule_1.default;
41
+ var ekycLivenessType_1 = require("./src/types/ekycLivenessType");
42
+ Object.defineProperty(exports, "SDKFaceDetectStatus", { enumerable: true, get: function () { return ekycLivenessType_1.SDKFaceDetectStatus; } });
41
43
  // Export utility functions
42
44
  var utils_1 = require("./src/utils/utils");
43
45
  Object.defineProperty(exports, "parseNfcResponse", { enumerable: true, get: function () { return utils_1.parseNfcResponse; } });
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos_sdk/sdk-ekyc",
3
- "version": "1.2.9",
3
+ "version": "1.3.2",
4
4
  "description": "React Native SDK for eKYC - Vietnamese CCCD NFC reading, OCR, Liveness detection, Face matching, and C06, eSign, SmsOTP residence verification",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -6,7 +6,7 @@ import { OcrConfig } from '../types/ekycOCRType';
6
6
  import { LivenessConfig } from '../types/ekycLivenessType';
7
7
  import { FaceServiceConfig } from '../types/ekycFaceType';
8
8
  import { SmsOtpConfig, SmsOtpResult, SmsOtpError } from '../types/ekycSmsOtpType';
9
- import { UserEsignModel, ESignInitResult, ESignOpenSessionResult, ESignCertificate, ESignSignRequest, ESignError, ESignAuthenticateResult } from '../types/ekycESignType';
9
+ import { ESignInitResult, ESignOpenSessionResult, ESignCertificate, ESignSignRequest, ESignError } from '../types/ekycESignType';
10
10
  /**
11
11
  * Finos eKYC SDK Module
12
12
  *
@@ -65,10 +65,16 @@ export declare class FinosEKYCModule {
65
65
  * Start OCR document scanning
66
66
  * @param config OCR configuration
67
67
  */
68
- startOCR(config: OcrConfig): Promise<SDKEkycResultStringWithEvent>;
68
+ startOcr(config: OcrConfig): Promise<SDKEkycResultStringWithEvent>;
69
69
  /**
70
70
  * Start liveness detection
71
- * @param config Liveness configuration (includes switchFrontCamera for camera control)
71
+ * @param config Liveness configuration
72
+ * @param config.isActiveLiveness - Enable active liveness detection (default: false)
73
+ * @param config.autoCapture - Enable auto capture (default: true)
74
+ * @param config.isShowCameraFont - Show camera font (default: true)
75
+ * @param config.customActions - Custom actions array (LEFT, RIGHT, STRAIGHT). If provided, uses these actions instead of random
76
+ * @param config.activeActionCount - Number of random actions (1-10), only used when customActions is null (default: 2)
77
+ * @param config.switchFrontCamera - Use front camera (default: false)
72
78
  */
73
79
  startLiveness(config: LivenessConfig): Promise<SDKEkycResultStringWithEvent>;
74
80
  /**
@@ -116,11 +122,11 @@ export declare class FinosEKYCModule {
116
122
  /**
117
123
  * Listen for OCR success events
118
124
  */
119
- onOCRSuccess(callback: (data: SDKEkycResultStringWithEvent) => void): import("react-native").EmitterSubscription | null;
125
+ onOcrSuccess(callback: (data: SDKEkycResultStringWithEvent) => void): import("react-native").EmitterSubscription | null;
120
126
  /**
121
127
  * Listen for OCR error events
122
128
  */
123
- onOCRError(callback: (error: any) => void): import("react-native").EmitterSubscription | null;
129
+ onOcrError(callback: (error: any) => void): import("react-native").EmitterSubscription | null;
124
130
  /**
125
131
  * Listen for liveness success events
126
132
  */
@@ -158,7 +164,6 @@ export declare class FinosEKYCModule {
158
164
  */
159
165
  resendOtp(config: SmsOtpConfig): Promise<SmsOtpResult>;
160
166
  onSmsOtpSendSuccess(callback: (data: SmsOtpResult) => void): import("react-native").EmitterSubscription | null;
161
- onSmsOtpVerifySuccess(callback: (data: SmsOtpResult) => void): import("react-native").EmitterSubscription | null;
162
167
  onSmsOtpResendSuccess(callback: (data: SmsOtpResult) => void): import("react-native").EmitterSubscription | null;
163
168
  onSmsOtpError(callback: (error: SmsOtpError) => void): import("react-native").EmitterSubscription | null;
164
169
  /**
@@ -166,14 +171,14 @@ export declare class FinosEKYCModule {
166
171
  */
167
172
  initializeESign(): Promise<ESignInitResult>;
168
173
  /**
169
- * Open eSign session
170
- * @param accessToken JWT access token (optional if using userEsignModel)
171
- * @param username Optional username
172
- * @param rememberMe Remember session
173
- * @param userEsignModel User info for auto token creation (optional if using accessToken)
174
- * @param privateKeyFilePath Path to private key file in assets (required if using userEsignModel)
174
+ * Open eSign Session
175
+ * @param accessToken Access token (JWT)
176
+ * @param username Username
177
+ * @param rememberMe Remember me flag
178
+ * @param userEsignModel User info model (for auto-token generation)
179
+ * @param privateKeyFilePath Path to private key file (for auto-token generation)
175
180
  */
176
- openSessionId(accessToken?: string, username?: string, rememberMe?: boolean, userEsignModel?: UserEsignModel, privateKeyFilePath?: string): Promise<ESignOpenSessionResult>;
181
+ openSessionId(accessToken: string | null, username: string | null, rememberMe: boolean | null): Promise<ESignOpenSessionResult>;
177
182
  /**
178
183
  * Register device for eSign
179
184
  * @param recoverCode 8-digit recovery code
@@ -220,18 +225,12 @@ export declare class FinosEKYCModule {
220
225
  code: string;
221
226
  message: string;
222
227
  }>;
223
- /**
224
- * Authenticate with eSign
225
- * @param username eSign username
226
- * @param password eSign password
227
- */
228
- authenticate(username: string, password: string): Promise<ESignAuthenticateResult>;
229
228
  /**
230
229
  * Register remote signing certificate
231
230
  * @param accessToken JWT access token
232
231
  * @param requestJson JSON request body
233
232
  */
234
- registerRemoteSigning(accessToken: string, requestJson: string): Promise<{
233
+ registerRemoteSigning(requestJson: string): Promise<{
235
234
  response: string;
236
235
  }>;
237
236
  /**
@@ -239,7 +238,7 @@ export declare class FinosEKYCModule {
239
238
  * @param accessToken JWT access token
240
239
  * @param requestJson JSON request body
241
240
  */
242
- signPdf(accessToken: string, requestJson: string): Promise<{
241
+ signPdf(requestJson: string): Promise<{
243
242
  response: string;
244
243
  }>;
245
244
  /**
@@ -247,7 +246,7 @@ export declare class FinosEKYCModule {
247
246
  * @param accessToken JWT access token
248
247
  * @param requestJson JSON string containing request data
249
248
  */
250
- sendConfirmationDocument(accessToken: string, requestJson: string): Promise<{
249
+ sendConfirmationDocument(requestJson: string): Promise<{
251
250
  response: string;
252
251
  }>;
253
252
  onESignInitSuccess(callback: (data: ESignInitResult) => void): import("react-native").EmitterSubscription | null;
@@ -270,7 +269,6 @@ export declare class FinosEKYCModule {
270
269
  code: string;
271
270
  message: string;
272
271
  }) => void): import("react-native").EmitterSubscription | null;
273
- onESignAuthenticateSuccess(callback: (data: ESignAuthenticateResult) => void): import("react-native").EmitterSubscription | null;
274
272
  onESignRegisterRemoteSigningSuccess(callback: (data: {
275
273
  response: string;
276
274
  }) => void): import("react-native").EmitterSubscription | null;
@@ -348,9 +346,10 @@ export type { NfcConfig, NfcError } from '../types/ekycNFCType';
348
346
  export type { C06Config } from '../types/ekycC06Type';
349
347
  export type { OcrConfig } from '../types/ekycOCRType';
350
348
  export type { LivenessConfig } from '../types/ekycLivenessType';
349
+ export { SDKFaceDetectStatus } from '../types/ekycLivenessType';
351
350
  export type { FaceServiceConfig } from '../types/ekycFaceType';
352
351
  export type { SDKEkycResultWithEvent, SDKEkycResultStringWithEvent } from '../types/ekycType';
353
352
  export type { SmsOtpConfig, SmsOtpResult, SmsOtpError } from '../types/ekycSmsOtpType';
354
- export type { UserEsignModel, ESignInitResult, ESignOpenSessionResult, ESignCertificate, ESignSignRequest, ESignError, ESignAuthenticateResult } from '../types/ekycESignType';
353
+ export type { ESignInitResult, ESignOpenSessionResult, ESignCertificate, ESignSignRequest, ESignError, ESignAuthenticateResult } from '../types/ekycESignType';
355
354
  export { SDK_VERSION, SDK_NAME };
356
355
  export default FinosEKYC;