@finos_sdk/sdk-ekyc 1.2.2 → 1.2.9

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 (85) hide show
  1. package/LICENSE +13 -10
  2. package/README.md +41 -42
  3. package/android/build.gradle +42 -11
  4. package/android/gradle.properties +7 -1
  5. package/android/settings.gradle +53 -0
  6. package/android/src/main/java/finos/sdk/ekyc/EKYCModule.kt +791 -81
  7. package/dist/EKYCModule.d.ts +73 -0
  8. package/dist/EKYCModule.js +663 -71
  9. package/dist/index.d.ts +6 -1
  10. package/dist/index.js +5 -1
  11. package/dist/package.json +31 -21
  12. package/dist/src/modules/FinosEKYCModule.d.ts +149 -0
  13. package/dist/src/modules/FinosEKYCModule.js +485 -2
  14. package/dist/src/modules/FinosESignModule.d.ts +270 -0
  15. package/dist/src/modules/FinosESignModule.js +752 -0
  16. package/dist/src/types/ekycESignType.d.ts +67 -0
  17. package/dist/src/types/ekycESignType.js +2 -0
  18. package/dist/src/types/ekycSmsOtpType.d.ts +52 -0
  19. package/dist/src/types/ekycSmsOtpType.js +2 -0
  20. package/package.json +31 -21
  21. package/src/modules/FinosEKYCModule.ts +572 -2
  22. package/src/modules/FinosESignModule.ts +919 -0
  23. package/src/modules/README.md +3 -3
  24. package/src/types/ekycESignType.ts +76 -0
  25. package/src/types/ekycSmsOtpType.ts +59 -0
  26. package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.2/c06-1.2.2-sources.jar +0 -0
  27. package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.2/c06-1.2.2.aar +0 -0
  28. package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.2/c06-1.2.2.module +0 -110
  29. package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.2/c06-1.2.2.pom +0 -37
  30. package/android/SDKeKYC/finos/sdk/ekyc/c06/maven-metadata-local.xml +0 -13
  31. package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.2/ekyc-1.2.2-sources.jar +0 -0
  32. package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.2/ekyc-1.2.2.aar +0 -0
  33. package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.2/ekyc-1.2.2.module +0 -201
  34. package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.2/ekyc-1.2.2.pom +0 -73
  35. package/android/SDKeKYC/finos/sdk/ekyc/ekyc/maven-metadata-local.xml +0 -13
  36. package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.2/ekycui-1.2.2-sources.jar +0 -0
  37. package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.2/ekycui-1.2.2.aar +0 -0
  38. package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.2/ekycui-1.2.2.module +0 -131
  39. package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.2/ekycui-1.2.2.pom +0 -43
  40. package/android/SDKeKYC/finos/sdk/ekyc/ekycui/maven-metadata-local.xml +0 -13
  41. package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.2/faceservice-1.2.2-sources.jar +0 -0
  42. package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.2/faceservice-1.2.2.aar +0 -0
  43. package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.2/faceservice-1.2.2.module +0 -110
  44. package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.2/faceservice-1.2.2.pom +0 -37
  45. package/android/SDKeKYC/finos/sdk/ekyc/faceservice/maven-metadata-local.xml +0 -13
  46. package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.2/liveness-1.2.2-sources.jar +0 -0
  47. package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.2/liveness-1.2.2.aar +0 -0
  48. package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.2/liveness-1.2.2.module +0 -138
  49. package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.2/liveness-1.2.2.pom +0 -55
  50. package/android/SDKeKYC/finos/sdk/ekyc/liveness/maven-metadata-local.xml +0 -13
  51. package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.2/nfc-1.2.2-sources.jar +0 -0
  52. package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.2/nfc-1.2.2.aar +0 -0
  53. package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.2/nfc-1.2.2.module +0 -131
  54. package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.2/nfc-1.2.2.pom +0 -55
  55. package/android/SDKeKYC/finos/sdk/ekyc/nfc/maven-metadata-local.xml +0 -13
  56. package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.2/ocr-1.2.2-sources.jar +0 -0
  57. package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.2/ocr-1.2.2.aar +0 -0
  58. package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.2/ocr-1.2.2.module +0 -124
  59. package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.2/ocr-1.2.2.pom +0 -43
  60. package/android/SDKeKYC/finos/sdk/ekyc/ocr/maven-metadata-local.xml +0 -13
  61. package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.2/qrcode-1.2.2-sources.jar +0 -0
  62. package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.2/qrcode-1.2.2.aar +0 -0
  63. package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.2/qrcode-1.2.2.module +0 -138
  64. package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.2/qrcode-1.2.2.pom +0 -55
  65. package/android/SDKeKYC/finos/sdk/ekyc/qrcode/maven-metadata-local.xml +0 -13
  66. package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.2/sdkcore-1.2.2-sources.jar +0 -0
  67. package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.2/sdkcore-1.2.2.aar +0 -0
  68. package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.2/sdkcore-1.2.2.module +0 -341
  69. package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.2/sdkcore-1.2.2.pom +0 -139
  70. package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/maven-metadata-local.xml +0 -13
  71. package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.2/sdkcorecamera-1.2.2-sources.jar +0 -0
  72. package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.2/sdkcorecamera-1.2.2.aar +0 -0
  73. package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.2/sdkcorecamera-1.2.2.module +0 -201
  74. package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.2/sdkcorecamera-1.2.2.pom +0 -85
  75. package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/maven-metadata-local.xml +0 -13
  76. package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.2/sdkui-1.2.2-sources.jar +0 -0
  77. package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.2/sdkui-1.2.2.aar +0 -0
  78. package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.2/sdkui-1.2.2.module +0 -208
  79. package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.2/sdkui-1.2.2.pom +0 -103
  80. package/android/SDKeKYC/finos/sdk/ekyc/sdkui/maven-metadata-local.xml +0 -13
  81. package/android/src/main/AndroidManifest.xml +0 -22
  82. package/android/src/main/build.gradle +0 -31
  83. package/dist/App.d.ts +0 -3
  84. package/dist/App.js +0 -497
  85. package/dist/finos_sdk-sdk-ekyc-1.2.2.tgz +0 -0
package/dist/index.d.ts CHANGED
@@ -1,14 +1,19 @@
1
1
  import sdkEKYC, { SDKeKYC, SDK_VERSION, SDK_NAME } from './EKYCModule';
2
2
  import { FinosEKYC, FinosEKYCModule } from './src/modules/FinosEKYCModule';
3
+ import { FinosESign, FinosESignModule } from './src/modules/FinosESignModule';
3
4
  export default sdkEKYC;
4
5
  export { sdkEKYC, SDKeKYC };
5
6
  export { FinosEKYC, FinosEKYCModule };
6
- export type { NfcConfig, NFCData } from './src/types/ekycNFCType';
7
+ export { FinosESign, FinosESignModule };
8
+ export type { NfcConfig, NFCData, NfcInfo } from './src/types/ekycNFCType';
7
9
  export type { C06Config } from './src/types/ekycC06Type';
8
10
  export type { OcrConfig } from './src/types/ekycOCRType';
9
11
  export type { LivenessConfig } from './src/types/ekycLivenessType';
10
12
  export type { FaceServiceConfig } from './src/types/ekycFaceType';
11
13
  export type { SDKEkycResultWithEvent, SDKEkycResultStringWithEvent } from './src/types/ekycType';
12
14
  export type { NfcError } from './src/types/ekycNFCType';
15
+ export type { SDKTransactionResponse } from './src/types/ekycTransactionType';
16
+ export type { SmsOtpConfig, SmsOtpResult, SmsOtpError } from './src/types/ekycSmsOtpType';
17
+ export type { UserEsignModel, ESignInitResult, ESignOpenSessionResult, ESignCertificate, ESignSignRequest, ESignError, ESignAuthenticateResult } from './src/types/ekycESignType';
13
18
  export { parseNfcResponse } from './src/utils/utils';
14
19
  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.FinosEKYCModule = exports.FinosEKYC = exports.SDKeKYC = exports.sdkEKYC = void 0;
26
+ exports.SDK_NAME = exports.SDK_VERSION = exports.parseNfcResponse = 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; } });
@@ -32,6 +32,10 @@ Object.defineProperty(exports, "SDK_NAME", { enumerable: true, get: function ()
32
32
  const FinosEKYCModule_1 = require("./src/modules/FinosEKYCModule");
33
33
  Object.defineProperty(exports, "FinosEKYC", { enumerable: true, get: function () { return FinosEKYCModule_1.FinosEKYC; } });
34
34
  Object.defineProperty(exports, "FinosEKYCModule", { enumerable: true, get: function () { return FinosEKYCModule_1.FinosEKYCModule; } });
35
+ const FinosESignModule_1 = require("./src/modules/FinosESignModule");
36
+ Object.defineProperty(exports, "FinosESign", { enumerable: true, get: function () { return FinosESignModule_1.FinosESign; } });
37
+ Object.defineProperty(exports, "FinosESignModule", { enumerable: true, get: function () { return FinosESignModule_1.FinosESignModule; } });
38
+ console.log('✅ SDK modules loaded successfully');
35
39
  // Export main SDK instance and class (legacy)
36
40
  exports.default = EKYCModule_1.default;
37
41
  // Export utility functions
package/dist/package.json CHANGED
@@ -1,32 +1,32 @@
1
1
  {
2
2
  "name": "@finos_sdk/sdk-ekyc",
3
- "version": "1.2.2",
4
- "description": "React Native SDK for eKYC - Vietnamese CCCD NFC reading, OCR, Liveness detection, Face matching, and C06 residence verification",
3
+ "version": "1.2.9",
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",
7
7
  "files": [
8
8
  "dist",
9
9
  "react-native.config.js",
10
- "android/src",
10
+ "android/src/main/java",
11
11
  "android/build.gradle",
12
+ "android/settings.gradle",
12
13
  "android/gradle.properties",
13
14
  "android/gradle/wrapper/**",
14
15
  "android/gradlew",
15
16
  "android/gradlew.bat",
16
17
  "android/consumer-rules.pro",
17
- "android/SDKeKYC/**",
18
18
  "src/**"
19
19
  ],
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "git+https://github.com/finos/sdk-ekyc.git"
22
+ "url": "git+https://github.com/finosvn/finos.ekyc.sdk.git"
23
23
  },
24
24
  "author": "FinOS",
25
25
  "license": "MIT",
26
26
  "bugs": {
27
- "url": "https://github.com/finos/sdk-ekyc/issues"
27
+ "url": "https://github.com/finosvn/finos.ekyc.sdk/issues"
28
28
  },
29
- "homepage": "https://github.com/finos/sdk-ekyc#readme",
29
+ "homepage": "https://github.com/finosvn/finos.ekyc.sdk#readme",
30
30
  "keywords": [
31
31
  "react-native",
32
32
  "ekyc",
@@ -42,36 +42,46 @@
42
42
  "typescript"
43
43
  ],
44
44
  "scripts": {
45
- "android": "npx react-native run-android",
45
+ "android": "npm run build && npm run bundle:android && npx react-native run-android",
46
+ "bundle:android": "mkdir -p android/app/src/main/assets && curl -s \"http://localhost:8081/index.bundle?platform=android&dev=false&minify=false\" -o android/app/src/main/assets/index.android.bundle || echo \"⚠️ Metro không chạy, bỏ qua bundle\"",
47
+ "android:log": "npm run build && npm run bundle:android && npx react-native run-android && sleep 8 && npm run log:all",
48
+ "reload": "npm run log:reload",
46
49
  "ios": "react-native run-ios",
47
- "start": "react-native start --reset-cache",
50
+ "start": "react-native start",
51
+ "reset": "react-native start --reset-cache",
48
52
  "clean": "cd android && ./gradlew clean && cd ..",
49
53
  "npm-install": "npm install",
50
- "build": "tsc",
54
+ "build": "npx --package=typescript tsc",
51
55
  "prepare": "npm run build",
52
56
  "publish-sdk-local": "npm pack",
53
57
  "publish-sdk": "npm run build && npm publish --access public",
54
58
  "publish-sdk-version": "npm run build && npm version patch --force && npm publish --access public",
55
59
  "prepublishOnly": "npm run build",
56
- "unpublish:1.2.2": "node -e \"if(process.env.CONFIRM_UNPUBLISH==='YES'){process.exit(0)}else{console.error('Set CONFIRM_UNPUBLISH=YES to confirm');process.exit(1)}\" && npm unpublish @finos_sdk/sdk-ekyc@1.2.2"
60
+ "unpublish:1.2.2": "node -e \"if(process.env.CONFIRM_UNPUBLISH==='YES'){process.exit(0)}else{console.error('Set CONFIRM_UNPUBLISH=YES to confirm');process.exit(1)}\" && npm unpublish @finos_sdk/sdk-ekyc@1.2.2",
61
+ "log:android": "npx react-native log-android",
62
+ "log:ios": "npx react-native log-ios",
63
+ "log:sdk": "./watch-sdk-logs.sh",
64
+ "log:buffer": "./watch-logs-with-buffer.sh",
65
+ "log:native": "./watch-native-logs.sh",
66
+ "log:all": "./watch-all-logs.sh",
67
+ "log:reload": "./reload-and-watch.sh",
68
+ "log:clear": "adb logcat -c && echo '✅ Logs cleared'"
57
69
  },
58
70
  "dependencies": {
59
71
  "react": "18.3.1",
60
- "react-native": "0.76.9",
61
- "tsyringe": "^4.10.0",
62
- "reflect-metadata": "^0.2.1"
72
+ "react-native": "0.77.0",
73
+ "reflect-metadata": "^0.2.1",
74
+ "tsyringe": "^4.10.0"
63
75
  },
64
76
  "devDependencies": {
65
77
  "@babel/core": "^7.25.2",
66
78
  "@babel/preset-env": "^7.25.3",
67
79
  "@babel/runtime": "^7.25.0",
68
- "@react-native-community/cli": "15.0.1",
69
- "@react-native-community/cli-platform-android": "15.0.1",
70
- "@react-native-community/cli-platform-ios": "15.0.1",
71
- "@react-native/babel-preset": "0.76.9",
72
- "@react-native/eslint-config": "0.76.9",
73
- "@react-native/metro-config": "0.76.9",
74
- "@react-native/typescript-config": "0.76.9",
80
+ "@react-native-community/cli": "16.0.3",
81
+ "@react-native/babel-preset": "0.77.0",
82
+ "@react-native/eslint-config": "0.77.0",
83
+ "@react-native/metro-config": "0.77.0",
84
+ "@react-native/typescript-config": "0.77.0",
75
85
  "@types/react": "^18.2.6",
76
86
  "@types/react-test-renderer": "^18.0.0",
77
87
  "babel-jest": "^29.6.3",
@@ -5,6 +5,8 @@ import { C06Config } from '../types/ekycC06Type';
5
5
  import { OcrConfig } from '../types/ekycOCRType';
6
6
  import { LivenessConfig } from '../types/ekycLivenessType';
7
7
  import { FaceServiceConfig } from '../types/ekycFaceType';
8
+ import { SmsOtpConfig, SmsOtpResult, SmsOtpError } from '../types/ekycSmsOtpType';
9
+ import { UserEsignModel, ESignInitResult, ESignOpenSessionResult, ESignCertificate, ESignSignRequest, ESignError, ESignAuthenticateResult } from '../types/ekycESignType';
8
10
  /**
9
11
  * Finos eKYC SDK Module
10
12
  *
@@ -44,6 +46,11 @@ export declare class FinosEKYCModule {
44
46
  * Check if SDK is initialized
45
47
  */
46
48
  isSDKReady(): boolean;
49
+ /**
50
+ * Set transaction ID
51
+ * @param transactionId Transaction ID string
52
+ */
53
+ setTransactionId(transactionId: string): Promise<boolean>;
47
54
  /**
48
55
  * Start NFC scanning for Vietnamese CCCD
49
56
  * @param config NFC configuration
@@ -134,6 +141,146 @@ export declare class FinosEKYCModule {
134
141
  * Remove all event listeners
135
142
  */
136
143
  removeAllListeners(): void;
144
+ /**
145
+ * Send SMS OTP
146
+ * @param config SMS OTP configuration
147
+ */
148
+ sendOtp(config: SmsOtpConfig): Promise<SmsOtpResult>;
149
+ /**
150
+ * Verify SMS OTP
151
+ * @param config SMS OTP configuration (must include requestId)
152
+ * @param otpCode OTP code from SMS
153
+ */
154
+ verifyOtp(config: SmsOtpConfig, otpCode: string): Promise<SmsOtpResult>;
155
+ /**
156
+ * Resend SMS OTP
157
+ * @param config SMS OTP configuration (must include requestId)
158
+ */
159
+ resendOtp(config: SmsOtpConfig): Promise<SmsOtpResult>;
160
+ onSmsOtpSendSuccess(callback: (data: SmsOtpResult) => void): import("react-native").EmitterSubscription | null;
161
+ onSmsOtpVerifySuccess(callback: (data: SmsOtpResult) => void): import("react-native").EmitterSubscription | null;
162
+ onSmsOtpResendSuccess(callback: (data: SmsOtpResult) => void): import("react-native").EmitterSubscription | null;
163
+ onSmsOtpError(callback: (error: SmsOtpError) => void): import("react-native").EmitterSubscription | null;
164
+ /**
165
+ * Initialize eSign SDK
166
+ */
167
+ initializeESign(): Promise<ESignInitResult>;
168
+ /**
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)
175
+ */
176
+ openSessionId(accessToken?: string, username?: string, rememberMe?: boolean, userEsignModel?: UserEsignModel, privateKeyFilePath?: string): Promise<ESignOpenSessionResult>;
177
+ /**
178
+ * Register device for eSign
179
+ * @param recoverCode 8-digit recovery code
180
+ * @param pinCode 6-digit PIN code
181
+ * @param fcmToken Optional FCM token
182
+ */
183
+ registerDevice(recoverCode: string, pinCode: string, fcmToken?: string): Promise<{
184
+ code: string;
185
+ message: string;
186
+ }>;
187
+ /**
188
+ * List eSign certificates
189
+ * @param pageNumber Page number (default: 1)
190
+ * @param pageSize Page size (default: 10)
191
+ */
192
+ listCerts(pageNumber?: number, pageSize?: number): Promise<{
193
+ certs: ESignCertificate[];
194
+ }>;
195
+ /**
196
+ * Verify eSign certificate
197
+ * @param serial Certificate serial number
198
+ */
199
+ verifyCert(serial: string): Promise<{
200
+ code: string;
201
+ message: string;
202
+ }>;
203
+ /**
204
+ * List eSign sign requests
205
+ * @param pageNumber Page number (default: 1)
206
+ * @param pageSize Page size (default: 10)
207
+ */
208
+ listSignRequest(pageNumber?: number, pageSize?: number): Promise<{
209
+ requests: ESignSignRequest[];
210
+ }>;
211
+ /**
212
+ * Confirm eSign signature
213
+ * @param signRequestId Sign request ID
214
+ * @param pinCode 6-digit PIN code
215
+ * @param authId Optional auth ID
216
+ * @param authData Optional auth data
217
+ * @param confirm Confirm the signature (default: true)
218
+ */
219
+ confirmSign(signRequestId: string, pinCode: string, authId?: string, authData?: string, confirm?: boolean): Promise<{
220
+ code: string;
221
+ message: string;
222
+ }>;
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
+ /**
230
+ * Register remote signing certificate
231
+ * @param accessToken JWT access token
232
+ * @param requestJson JSON request body
233
+ */
234
+ registerRemoteSigning(accessToken: string, requestJson: string): Promise<{
235
+ response: string;
236
+ }>;
237
+ /**
238
+ * Sign PDF document
239
+ * @param accessToken JWT access token
240
+ * @param requestJson JSON request body
241
+ */
242
+ signPdf(accessToken: string, requestJson: string): Promise<{
243
+ response: string;
244
+ }>;
245
+ /**
246
+ * Send confirmation document
247
+ * @param accessToken JWT access token
248
+ * @param requestJson JSON string containing request data
249
+ */
250
+ sendConfirmationDocument(accessToken: string, requestJson: string): Promise<{
251
+ response: string;
252
+ }>;
253
+ onESignInitSuccess(callback: (data: ESignInitResult) => void): import("react-native").EmitterSubscription | null;
254
+ onESignOpenSessionSuccess(callback: (data: ESignOpenSessionResult) => void): import("react-native").EmitterSubscription | null;
255
+ onESignRegisterDeviceSuccess(callback: (data: {
256
+ code: string;
257
+ message: string;
258
+ }) => void): import("react-native").EmitterSubscription | null;
259
+ onESignListCertsSuccess(callback: (data: {
260
+ certs: ESignCertificate[];
261
+ }) => void): import("react-native").EmitterSubscription | null;
262
+ onESignVerifyCertSuccess(callback: (data: {
263
+ code: string;
264
+ message: string;
265
+ }) => void): import("react-native").EmitterSubscription | null;
266
+ onESignListSignRequestSuccess(callback: (data: {
267
+ requests: ESignSignRequest[];
268
+ }) => void): import("react-native").EmitterSubscription | null;
269
+ onESignConfirmSignSuccess(callback: (data: {
270
+ code: string;
271
+ message: string;
272
+ }) => void): import("react-native").EmitterSubscription | null;
273
+ onESignAuthenticateSuccess(callback: (data: ESignAuthenticateResult) => void): import("react-native").EmitterSubscription | null;
274
+ onESignRegisterRemoteSigningSuccess(callback: (data: {
275
+ response: string;
276
+ }) => void): import("react-native").EmitterSubscription | null;
277
+ onESignSignPdfSuccess(callback: (data: {
278
+ response: string;
279
+ }) => void): import("react-native").EmitterSubscription | null;
280
+ onESignSendConfirmationDocumentSuccess(callback: (data: {
281
+ response: string;
282
+ }) => void): import("react-native").EmitterSubscription | null;
283
+ onESignError(callback: (error: ESignError) => void): import("react-native").EmitterSubscription | null;
137
284
  /**
138
285
  * Start eKYC UI with flow (like MainActivity.kt)
139
286
  * @param appKey Main app key
@@ -203,5 +350,7 @@ export type { OcrConfig } from '../types/ekycOCRType';
203
350
  export type { LivenessConfig } from '../types/ekycLivenessType';
204
351
  export type { FaceServiceConfig } from '../types/ekycFaceType';
205
352
  export type { SDKEkycResultWithEvent, SDKEkycResultStringWithEvent } from '../types/ekycType';
353
+ export type { SmsOtpConfig, SmsOtpResult, SmsOtpError } from '../types/ekycSmsOtpType';
354
+ export type { UserEsignModel, ESignInitResult, ESignOpenSessionResult, ESignCertificate, ESignSignRequest, ESignError, ESignAuthenticateResult } from '../types/ekycESignType';
206
355
  export { SDK_VERSION, SDK_NAME };
207
356
  export default FinosEKYC;