@authme/identity-verification 2.8.38 → 2.8.41

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.
@@ -193,6 +193,7 @@
193
193
  "sdk.general.verify.error.getCloser": "Move closer",
194
194
  "sdk.general.verify.error.missmatch": "Align your ID within the frame",
195
195
  "sdk.general.verify.error.motion": "Please keep the ID card and the device still",
196
+ "sdk.liveness.detection.motion": "Please keep your face and device still",
196
197
  "sdk.general.verify.error.needCloseMouth": "Close your mouth",
197
198
  "sdk.general.verify.error.needDeformationFrontal": "Align the card with the designated shape",
198
199
  "sdk.general.verify.error.needFaceToCamera": "Look straight ahead",
@@ -209,7 +210,7 @@
209
210
  "sdk.general.verify.error.stagePass": "Starting next direction",
210
211
  "sdk.general.verify.error.switchCamera": "Blurry document? Tap to switch the camera",
211
212
  "sdk.general.verify.error.wrongCardType": "Wrong document",
212
- "sdk.general.verify.success": "Detection successful, identifying...",
213
+ "sdk.general.verify.success": "Identifying...",
213
214
  "sdk.guard.verify.allowCamera": "Please allow camera access for identity verification",
214
215
  "sdk.guard.verify.content.step1": "Please hold the ID within the frame, ensure the edges are not obscured, and verify the document is clear and without glare.\n\n\n\n\n\n\n",
215
216
  "sdk.guard.verify.guide.fraudDescribe": "Please hold your ID, follow the animation prompts to flip it, and make sure each angle turns into a green frame before proceeding",
@@ -233,7 +234,7 @@
233
234
  "sdk.liveness.detection.header": "Liveness Detection",
234
235
  "sdk.liveness.detection.infopageHint.environment": "Detect in well-lit area",
235
236
  "sdk.liveness.detection.infopageHint.face": "Please ensure there are no obstructions on your face",
236
- "sdk.liveness.detection.needMoreFrame": "Detection successful, identifying...",
237
+ "sdk.liveness.detection.needMoreFrame": "Identifying...",
237
238
  "sdk.liveness.detection.step": "Position your face within the frame",
238
239
  "sdk.liveness.detection.subtitle": "Ready to start capturing your face",
239
240
  "sdk.liveness.detection.title": "Face Verification",
@@ -193,6 +193,7 @@
193
193
  "sdk.general.verify.error.getCloser": "もっと近づけてください",
194
194
  "sdk.general.verify.error.missmatch": "書類を枠内に入れて撮影してください",
195
195
  "sdk.general.verify.error.motion": "身分証明書とデバイスを動かさずに静止させてください",
196
+ "sdk.liveness.detection.motion": "顔とデバイスを静止させてください",
196
197
  "sdk.general.verify.error.needCloseMouth": "口を閉じてください",
197
198
  "sdk.general.verify.error.needDeformationFrontal": "ガイド枠にカードを合わせてください。",
198
199
  "sdk.general.verify.error.needFaceToCamera": "カメラに向かって",
@@ -209,7 +210,7 @@
209
210
  "sdk.general.verify.error.stagePass": "次の方向へ進み始めます",
210
211
  "sdk.general.verify.error.switchCamera": "身分証がぼやけていませんか?\nクリックしてレンズを切り替えましょう",
211
212
  "sdk.general.verify.error.wrongCardType": "誤った書類です",
212
- "sdk.general.verify.success": "検出に成功しました。識別中です...",
213
+ "sdk.general.verify.success": "識別中です...",
213
214
  "sdk.guard.verify.allowCamera": "カメラへのアクセスを許可して身分認証を行ってください",
214
215
  "sdk.guard.verify.content.step1": "書類を手に持ち枠内に置いてください。枠を覆わないようにし、証明書がはっきりして反射していないことを確認してください\"。",
215
216
  "sdk.guard.verify.guide.fraudDescribe": "身分証明書を手に持ち、アニメーションの指示に従って回転させてください。すべての角度が緑の枠になると通過できます",
@@ -233,7 +234,7 @@
233
234
  "sdk.liveness.detection.header": "顔認証",
234
235
  "sdk.liveness.detection.infopageHint.environment": "明るい場所で撮影してください",
235
236
  "sdk.liveness.detection.infopageHint.face": "顔には何も覆っていないことを確認してください",
236
- "sdk.liveness.detection.needMoreFrame": "検出に成功しました。識別中です...",
237
+ "sdk.liveness.detection.needMoreFrame": "識別中です...",
237
238
  "sdk.liveness.detection.step": "顔を枠内に入れます",
238
239
  "sdk.liveness.detection.subtitle": "顔写真撮影を行います",
239
240
  "sdk.liveness.detection.title": "顔認識",
@@ -193,6 +193,7 @@
193
193
  "sdk.general.verify.error.getCloser": "靠近一點",
194
194
  "sdk.general.verify.error.missmatch": "請將證件置於框內",
195
195
  "sdk.general.verify.error.motion": "請保持身分證與裝置靜止",
196
+ "sdk.liveness.detection.motion": "請保持人臉和裝置靜止",
196
197
  "sdk.general.verify.error.needCloseMouth": "緊閉嘴巴",
197
198
  "sdk.general.verify.error.needDeformationFrontal": "對齊卡片形狀",
198
199
  "sdk.general.verify.error.needFaceToCamera": "將臉正對相機",
@@ -209,7 +210,7 @@
209
210
  "sdk.general.verify.error.stagePass": "即將開始下個方向",
210
211
  "sdk.general.verify.error.switchCamera": "證件模糊?點擊切換鏡頭",
211
212
  "sdk.general.verify.error.wrongCardType": "錯誤證件",
212
- "sdk.general.verify.success": "偵測成功,辨識中…",
213
+ "sdk.general.verify.success": "辨識中…",
213
214
  "sdk.guard.verify.allowCamera": "請允許相機存取,以進行身分驗證",
214
215
  "sdk.guard.verify.content.step1": "請手持身分證置於方框內,盡量不遮蔽邊框,並確認證件清晰無反光",
215
216
  "sdk.guard.verify.guide.fraudDescribe": "請手持證件,依動畫提示翻轉,每個角度皆須變為綠框才能通過",
@@ -233,7 +234,7 @@
233
234
  "sdk.liveness.detection.header": "人臉辨識",
234
235
  "sdk.liveness.detection.infopageHint.environment": "在環境光線充足的地方進行",
235
236
  "sdk.liveness.detection.infopageHint.face": "請確保臉上沒有任何遮蔽物",
236
- "sdk.liveness.detection.needMoreFrame": "偵測成功,辨識中…",
237
+ "sdk.liveness.detection.needMoreFrame": "辨識中…",
237
238
  "sdk.liveness.detection.step": "請依指示拍攝人臉",
238
239
  "sdk.liveness.detection.subtitle": "即將進行人臉拍攝",
239
240
  "sdk.liveness.detection.title": "人臉辨識",
package/index.cjs CHANGED
@@ -29087,6 +29087,7 @@ const fasRecognitionResultMapping = fasRecognitionResult => {
29087
29087
  [liveness.FasRecognitionResult.Pass]: core.StatusDescription.Pass,
29088
29088
  [liveness.FasRecognitionResult.Error]: core.StatusDescription.Error,
29089
29089
  [liveness.FasRecognitionResult.NeedMoreFrame]: core.StatusDescription.NeedMoreFrame,
29090
+ [liveness.FasRecognitionResult.Motion]: core.StatusDescription.Motion,
29090
29091
  [liveness.FasRecognitionResult.NeedFaceToCamera]: core.StatusDescription.NeedFaceToCamera
29091
29092
  };
29092
29093
  return (_a = fasServiceStageMap[fasRecognitionResult]) !== null && _a !== void 0 ? _a : core.StatusDescription.Failed;
@@ -29626,6 +29627,7 @@ function startLiveness(config) {
29626
29627
  })));
29627
29628
  const applyTextByResult = result => {
29628
29629
  // debugLog('fas-response', result);
29630
+ console.log('🔍 FAS Status:', result.eStatus, result);
29629
29631
  sendStatusDescription$2(fasRecognitionResultMapping(result.eStatus));
29630
29632
  switch (result.eStatus) {
29631
29633
  case liveness.FasRecognitionResult.NoFace:
@@ -29683,6 +29685,10 @@ function startLiveness(config) {
29683
29685
  uiComponentLiveness.statusText.textContent = translateService.translate('sdk.general.verify.success');
29684
29686
  setBorderStatus('pass');
29685
29687
  break;
29688
+ case liveness.FasRecognitionResult.Motion:
29689
+ uiComponentLiveness.statusText.textContent = translateService.translate('sdk.liveness.detection.motion');
29690
+ setBorderStatus('pass');
29691
+ break;
29686
29692
  case liveness.FasRecognitionResult.Pass:
29687
29693
  if (result.eStage === liveness.EAuthMeFASServiceStage.Scale) {
29688
29694
  setBorderStatus(null);
@@ -32436,6 +32442,7 @@ function startOCR(config) {
32436
32442
  fraudRetryTimes: 1,
32437
32443
  fraudTimeout: 52,
32438
32444
  fraudMaxFps: 2,
32445
+ ocrMaxFps: 2,
32439
32446
  captureTimeout: config.ocrConfig.captureTimeout
32440
32447
  };
32441
32448
  let cardSizeInfo = {
@@ -33090,7 +33097,7 @@ function startOCR(config) {
33090
33097
  })), rxjs.tap(() => received = true))))));
33091
33098
  };
33092
33099
  const autoCapture = canvasSizeInfo => {
33093
- return rxjs.of(canvasSizeInfo).pipe(handleOcrSendFrame(canvasSizeInfo, uiComponentOCR.image, uiComponentBasic.video, config.recognition, 30, false, config.ocrConfig.resultImageFormat, cardType, type), rxjs.tap(x => applyTextByResult(x.result)), rxjs.filter(({
33100
+ return rxjs.of(canvasSizeInfo).pipe(handleOcrSendFrame(canvasSizeInfo, uiComponentOCR.image, uiComponentBasic.video, config.recognition, ocrEngineConfig.ocrMaxFps, false, config.ocrConfig.resultImageFormat, cardType, type), rxjs.tap(x => applyTextByResult(x.result)), rxjs.filter(({
33094
33101
  result
33095
33102
  }) => result.eStatus === idRecognition.EAuthMeCardOCRStatus.Pass || result.eStatus === idRecognition.EAuthMeMRZServiceStatus.Success), rxjs.take(1), rxjs.tap(() => {
33096
33103
  if (countdownCaptureTimer && countdownCaptureTimer.end && !countdownCaptureTimer.end()) {
@@ -35122,7 +35129,8 @@ class MRZModule {
35122
35129
  yield this.mrzService.init();
35123
35130
  yield util.waitTime(100);
35124
35131
  return Object.assign(Object.assign({}, resp.parameters), {
35125
- expiredIn: resp.expiredIn
35132
+ expiredIn: resp.expiredIn,
35133
+ ocrMaxFps: 2
35126
35134
  });
35127
35135
  }),
35128
35136
  ocrStart: (points, type, setBorderType, setCardBorderColor, setBorderSuccess, scanAnimationContainer, successAnimationContainer, frameImage, frameText, faceMode, cardType, retry = false) => __awaiter(this, void 0, void 0, function* () {
@@ -35759,7 +35767,8 @@ class OCRModule {
35759
35767
  yield util.waitTime(100);
35760
35768
  return Object.assign(Object.assign({}, resp.parameters), {
35761
35769
  expiredIn: resp.expiredIn,
35762
- captureTimeout: config.captureTimeout
35770
+ captureTimeout: config.captureTimeout,
35771
+ ocrMaxFps: 2
35763
35772
  });
35764
35773
  }),
35765
35774
  ocrStart: (points, type, setBorderType, setCardBorderColor, setBorderSuccess, scanAnimationContainer, successAnimationContainer, frameImage, frameText, faceMode, cardType, retry = false) => __awaiter(this, void 0, void 0, function* () {
@@ -37343,8 +37352,8 @@ class AuthmeIdentityVerification extends engine.AuthmeFunctionModule {
37343
37352
  }
37344
37353
 
37345
37354
  var name = "authme/sdk";
37346
- var version$1 = "2.8.38";
37347
- var date = "2026-01-21T02:32:26+0000";
37355
+ var version$1 = "2.8.41";
37356
+ var date = "2026-01-30T10:27:23+0000";
37348
37357
  var packageInfo = {
37349
37358
  name: name,
37350
37359
  version: version$1,
package/index.js CHANGED
@@ -29079,6 +29079,7 @@ const fasRecognitionResultMapping = fasRecognitionResult => {
29079
29079
  [FasRecognitionResult.Pass]: StatusDescription.Pass,
29080
29080
  [FasRecognitionResult.Error]: StatusDescription.Error,
29081
29081
  [FasRecognitionResult.NeedMoreFrame]: StatusDescription.NeedMoreFrame,
29082
+ [FasRecognitionResult.Motion]: StatusDescription.Motion,
29082
29083
  [FasRecognitionResult.NeedFaceToCamera]: StatusDescription.NeedFaceToCamera
29083
29084
  };
29084
29085
  return (_a = fasServiceStageMap[fasRecognitionResult]) !== null && _a !== void 0 ? _a : StatusDescription.Failed;
@@ -29618,6 +29619,7 @@ function startLiveness(config) {
29618
29619
  })));
29619
29620
  const applyTextByResult = result => {
29620
29621
  // debugLog('fas-response', result);
29622
+ console.log('🔍 FAS Status:', result.eStatus, result);
29621
29623
  sendStatusDescription$2(fasRecognitionResultMapping(result.eStatus));
29622
29624
  switch (result.eStatus) {
29623
29625
  case FasRecognitionResult.NoFace:
@@ -29675,6 +29677,10 @@ function startLiveness(config) {
29675
29677
  uiComponentLiveness.statusText.textContent = translateService.translate('sdk.general.verify.success');
29676
29678
  setBorderStatus('pass');
29677
29679
  break;
29680
+ case FasRecognitionResult.Motion:
29681
+ uiComponentLiveness.statusText.textContent = translateService.translate('sdk.liveness.detection.motion');
29682
+ setBorderStatus('pass');
29683
+ break;
29678
29684
  case FasRecognitionResult.Pass:
29679
29685
  if (result.eStage === EAuthMeFASServiceStage.Scale) {
29680
29686
  setBorderStatus(null);
@@ -32428,6 +32434,7 @@ function startOCR(config) {
32428
32434
  fraudRetryTimes: 1,
32429
32435
  fraudTimeout: 52,
32430
32436
  fraudMaxFps: 2,
32437
+ ocrMaxFps: 2,
32431
32438
  captureTimeout: config.ocrConfig.captureTimeout
32432
32439
  };
32433
32440
  let cardSizeInfo = {
@@ -33082,7 +33089,7 @@ function startOCR(config) {
33082
33089
  })), tap(() => received = true))))));
33083
33090
  };
33084
33091
  const autoCapture = canvasSizeInfo => {
33085
- return of(canvasSizeInfo).pipe(handleOcrSendFrame(canvasSizeInfo, uiComponentOCR.image, uiComponentBasic.video, config.recognition, 30, false, config.ocrConfig.resultImageFormat, cardType, type), tap(x => applyTextByResult(x.result)), filter(({
33092
+ return of(canvasSizeInfo).pipe(handleOcrSendFrame(canvasSizeInfo, uiComponentOCR.image, uiComponentBasic.video, config.recognition, ocrEngineConfig.ocrMaxFps, false, config.ocrConfig.resultImageFormat, cardType, type), tap(x => applyTextByResult(x.result)), filter(({
33086
33093
  result
33087
33094
  }) => result.eStatus === EAuthMeCardOCRStatus.Pass || result.eStatus === EAuthMeMRZServiceStatus.Success), take(1), tap(() => {
33088
33095
  if (countdownCaptureTimer && countdownCaptureTimer.end && !countdownCaptureTimer.end()) {
@@ -35114,7 +35121,8 @@ class MRZModule {
35114
35121
  yield this.mrzService.init();
35115
35122
  yield waitTime(100);
35116
35123
  return Object.assign(Object.assign({}, resp.parameters), {
35117
- expiredIn: resp.expiredIn
35124
+ expiredIn: resp.expiredIn,
35125
+ ocrMaxFps: 2
35118
35126
  });
35119
35127
  }),
35120
35128
  ocrStart: (points, type, setBorderType, setCardBorderColor, setBorderSuccess, scanAnimationContainer, successAnimationContainer, frameImage, frameText, faceMode, cardType, retry = false) => __awaiter(this, void 0, void 0, function* () {
@@ -35751,7 +35759,8 @@ class OCRModule {
35751
35759
  yield waitTime(100);
35752
35760
  return Object.assign(Object.assign({}, resp.parameters), {
35753
35761
  expiredIn: resp.expiredIn,
35754
- captureTimeout: config.captureTimeout
35762
+ captureTimeout: config.captureTimeout,
35763
+ ocrMaxFps: 2
35755
35764
  });
35756
35765
  }),
35757
35766
  ocrStart: (points, type, setBorderType, setCardBorderColor, setBorderSuccess, scanAnimationContainer, successAnimationContainer, frameImage, frameText, faceMode, cardType, retry = false) => __awaiter(this, void 0, void 0, function* () {
@@ -37335,8 +37344,8 @@ class AuthmeIdentityVerification extends AuthmeFunctionModule {
37335
37344
  }
37336
37345
 
37337
37346
  var name = "authme/sdk";
37338
- var version$1 = "2.8.38";
37339
- var date = "2026-01-21T02:32:26+0000";
37347
+ var version$1 = "2.8.41";
37348
+ var date = "2026-01-30T10:27:23+0000";
37340
37349
  var packageInfo = {
37341
37350
  name: name,
37342
37351
  version: version$1,
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@authme/identity-verification",
3
- "version": "2.8.38",
3
+ "version": "2.8.41",
4
4
  "peerDependencies": {
5
5
  "core-js": "^3.6.0",
6
6
  "lottie-web": "^5.9.2",
7
7
  "rxjs": "^7.4.0",
8
- "@authme/core": "2.8.38",
9
- "@authme/engine": "2.8.38",
10
- "@authme/id-recognition": "2.8.38",
11
- "@authme/liveness": "2.8.38",
12
- "@authme/util": "2.8.38"
8
+ "@authme/core": "2.8.41",
9
+ "@authme/engine": "2.8.41",
10
+ "@authme/id-recognition": "2.8.41",
11
+ "@authme/liveness": "2.8.41",
12
+ "@authme/util": "2.8.41"
13
13
  },
14
14
  "module": "./index.js",
15
15
  "main": "./index.cjs",
@@ -81,6 +81,7 @@ export interface OcrEngineConfig {
81
81
  fraudRetryTimes: number;
82
82
  fraudTimeout: number;
83
83
  fraudMaxFps: number;
84
+ ocrMaxFps: number;
84
85
  expiredIn?: number;
85
86
  captureTimeout?: number;
86
87
  }