@authme/identity-verification 2.1.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 (84) hide show
  1. package/CHANGELOG.md +943 -0
  2. package/README.md +7 -0
  3. package/assets/locale/en_US.json +132 -0
  4. package/assets/locale/zh_Hant_TW.json +132 -0
  5. package/assets/styles/style.css +806 -0
  6. package/package.json +19 -0
  7. package/src/index.d.ts +4 -0
  8. package/src/index.js +8 -0
  9. package/src/index.js.map +1 -0
  10. package/src/lib/identity-verification-feature-identity-verification.d.ts +26 -0
  11. package/src/lib/identity-verification-feature-identity-verification.js +105 -0
  12. package/src/lib/identity-verification-feature-identity-verification.js.map +1 -0
  13. package/src/lib/interface/config.interface.d.ts +32 -0
  14. package/src/lib/interface/config.interface.js +24 -0
  15. package/src/lib/interface/config.interface.js.map +1 -0
  16. package/src/lib/interface/index.d.ts +1 -0
  17. package/src/lib/interface/index.js +5 -0
  18. package/src/lib/interface/index.js.map +1 -0
  19. package/src/lib/interface/result.model.d.ts +13 -0
  20. package/src/lib/interface/result.model.js +3 -0
  21. package/src/lib/interface/result.model.js.map +1 -0
  22. package/src/lib/lottie/arrow_down.d.ts +215 -0
  23. package/src/lib/lottie/arrow_down.js +203 -0
  24. package/src/lib/lottie/arrow_down.js.map +1 -0
  25. package/src/lib/lottie/arrow_left.d.ts +215 -0
  26. package/src/lib/lottie/arrow_left.js +203 -0
  27. package/src/lib/lottie/arrow_left.js.map +1 -0
  28. package/src/lib/lottie/arrow_right.d.ts +215 -0
  29. package/src/lib/lottie/arrow_right.js +203 -0
  30. package/src/lib/lottie/arrow_right.js.map +1 -0
  31. package/src/lib/lottie/arrow_up.d.ts +215 -0
  32. package/src/lib/lottie/arrow_up.js +203 -0
  33. package/src/lib/lottie/arrow_up.js.map +1 -0
  34. package/src/lib/lottie/card_lr.d.ts +182 -0
  35. package/src/lib/lottie/card_lr.js +1903 -0
  36. package/src/lib/lottie/card_lr.js.map +1 -0
  37. package/src/lib/lottie/card_ud.d.ts +182 -0
  38. package/src/lib/lottie/card_ud.js +1937 -0
  39. package/src/lib/lottie/card_ud.js.map +1 -0
  40. package/src/lib/lottie/index.d.ts +9 -0
  41. package/src/lib/lottie/index.js +13 -0
  42. package/src/lib/lottie/index.js.map +1 -0
  43. package/src/lib/lottie/scan.d.ts +562 -0
  44. package/src/lib/lottie/scan.js +384 -0
  45. package/src/lib/lottie/scan.js.map +1 -0
  46. package/src/lib/lottie/success.d.ts +946 -0
  47. package/src/lib/lottie/success.js +509 -0
  48. package/src/lib/lottie/success.js.map +1 -0
  49. package/src/lib/lottie/tutorial.d.ts +1449 -0
  50. package/src/lib/lottie/tutorial.js +3683 -0
  51. package/src/lib/lottie/tutorial.js.map +1 -0
  52. package/src/lib/module/liveness-verify.module.d.ts +12 -0
  53. package/src/lib/module/liveness-verify.module.js +189 -0
  54. package/src/lib/module/liveness-verify.module.js.map +1 -0
  55. package/src/lib/module/liveness.module.d.ts +12 -0
  56. package/src/lib/module/liveness.module.js +160 -0
  57. package/src/lib/module/liveness.module.js.map +1 -0
  58. package/src/lib/module/mrz.module.d.ts +11 -0
  59. package/src/lib/module/mrz.module.js +142 -0
  60. package/src/lib/module/mrz.module.js.map +1 -0
  61. package/src/lib/module/ocr.module.d.ts +12 -0
  62. package/src/lib/module/ocr.module.js +220 -0
  63. package/src/lib/module/ocr.module.js.map +1 -0
  64. package/src/lib/operator/index.d.ts +16 -0
  65. package/src/lib/operator/index.js +38 -0
  66. package/src/lib/operator/index.js.map +1 -0
  67. package/src/lib/ui/basic.d.ts +13 -0
  68. package/src/lib/ui/basic.js +62 -0
  69. package/src/lib/ui/basic.js.map +1 -0
  70. package/src/lib/ui/index.d.ts +2 -0
  71. package/src/lib/ui/index.js +6 -0
  72. package/src/lib/ui/index.js.map +1 -0
  73. package/src/lib/ui/liveness-flow.d.ts +16 -0
  74. package/src/lib/ui/liveness-flow.js +154 -0
  75. package/src/lib/ui/liveness-flow.js.map +1 -0
  76. package/src/lib/ui/liveness.ui.d.ts +9 -0
  77. package/src/lib/ui/liveness.ui.js +51 -0
  78. package/src/lib/ui/liveness.ui.js.map +1 -0
  79. package/src/lib/ui/ocr-flow.d.ts +73 -0
  80. package/src/lib/ui/ocr-flow.js +664 -0
  81. package/src/lib/ui/ocr-flow.js.map +1 -0
  82. package/src/lib/ui/ocr.ui.d.ts +43 -0
  83. package/src/lib/ui/ocr.ui.js +193 -0
  84. package/src/lib/ui/ocr.ui.js.map +1 -0
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # identity-verification-feature-identity-verification
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Running unit tests
6
+
7
+ Run `nx test identity-verification-feature-identity-verification` to execute the unit tests via [Jest](https://jestjs.io).
@@ -0,0 +1,132 @@
1
+ {
2
+ "home.environment": "Environment",
3
+ "home.liveness": "Liveness",
4
+ "home.healthIdentification": "Health ID card",
5
+ "home.privacy": "Privacy",
6
+ "home.activeLiveness": "Active liveness",
7
+ "home.verify": "Verification",
8
+ "home.passportIdentification": "Passport",
9
+ "home.initSDK": "Initialize SDK",
10
+ "home.idCardIdentification": "ID card",
11
+ "home.passiveLiveness": "Passive liveness",
12
+ "home.clientId": "Customer ID",
13
+ "home.licenseIdentification": "Driving license",
14
+ "home.notFinish": "Incomplete",
15
+ "home.register": "Enrollment",
16
+ "verify.idCard": "ID card",
17
+ "verify.step1Title": "Step.1 fraud detection",
18
+ "verify.step1Describe": "Please hold your ID card and position within the frame, try not to cover the frame, and make sure the ID card is clear and not reflective",
19
+ "verify.step2Title": "Step.2 take the photo of your ID card",
20
+ "verify.allowCamera": "Please enable camera access for verification",
21
+ "verify.startVerifyBtn": "Get started",
22
+ "verify.understandBtn": "I got it",
23
+ "verify.fraudDescribe": "Please flip your ID card according to the instructions",
24
+ "verify.idCardFrontSide": "Align the front of your ID card within the frame",
25
+ "verify.frontSide": "Front",
26
+ "verify.idCardFlipLeft": "Hold your ID card and tilt it left",
27
+ "verify.idCardFlipRight": "Hold your ID card and tilt it right",
28
+ "verify.idCardFlipUp": "Hold your ID card and tilt it up",
29
+ "verify.idCardFlipDown": "Hold your ID card and tilt it down",
30
+ "verify.clearBtn": "Confirm",
31
+ "verify.retryBtn": "Try again",
32
+ "verify.confirmIdCardFront": "Confirm the front of your ID card",
33
+ "verify.confirmBtn": "Confirm",
34
+ "verify.idCardBackSide": "Frame the back of your ID card in a box",
35
+ "verify.backSide": "Back",
36
+ "verify.confirmIdCardBack": "Confirm the back of your ID card",
37
+ "verify.uploading": "Uploading",
38
+ "verify.error.noCard": "No document found",
39
+ "verify.error.mismatch": "Align your card within the frame",
40
+ "verify.error.reflective": "The document is too dark or has reflective area",
41
+ "verify.error.wrongCardType": "Wrong document",
42
+ "verify.error.blur": "Blurry image",
43
+ "verify.error.blurDescribe": "The photo is blurry, please try again",
44
+ "verify.healthFrontSide": "Align the front of your Health ID card within the frame",
45
+ "verify.confirmHealthFront": "Confirm the front of your Health ID card",
46
+ "verify.licenseFrontSide": "Align the front of your driving license within the frame",
47
+ "verify.licenseBackSide": "Align the back of your driving license within the frame",
48
+ "verify.confirmLicenseFront": "Confirm the front of your driving license",
49
+ "verify.confirmLicenseBack": "Confirm the back of your driving license",
50
+ "verify.passportFrontSide": "Align the front of the passport within the frame",
51
+ "confirm.idNumber": "ID number",
52
+ "confirm.issueCity": "Place of issue",
53
+ "confirm.placeOfBirth": "Place of birth",
54
+ "confirm.confirmBtn": "Confirm",
55
+ "confirm.gender": "Sex",
56
+ "confirm.father": "Father",
57
+ "confirm.militaryService": "Military service",
58
+ "confirm.dateOfBirth": "Date of birth",
59
+ "confirm.dateOfIssue": "Date of issue",
60
+ "confirm.issueReason": "Type of issue",
61
+ "confirm.address": "Address",
62
+ "confirm.idCard": "ID card",
63
+ "confirm.mother": "Mother",
64
+ "confirm.spouse": "Spouse",
65
+ "confirm.serialNumber": "Card number",
66
+ "confirm.name": "Name",
67
+ "confirm.healthCard": "Health ID card",
68
+ "confirm.cardNumber": "Card number",
69
+ "confirm.type": "License type",
70
+ "confirm.issue": "Date of issue",
71
+ "confirm.controlNo": "Jurisdiction number",
72
+ "confirm.licenseNo": "License number",
73
+ "confirm.condition": "License class",
74
+ "confirm.driverLicense": "Driving license",
75
+ "confirm.expiry": "Date of expiry",
76
+ "confirm.birthDate": "Date of birth",
77
+ "confirm.nationality": "Nationality",
78
+ "confirm.givenName": "Given name",
79
+ "confirm.documentNumber": "Number",
80
+ "confirm.expiryDate": "Date of expiry",
81
+ "confirm.passport": "Passport",
82
+ "confirm.personaNumber": "ID number",
83
+ "confirm.documentType": "Document type",
84
+ "confirm.surname": "Surname",
85
+ "confirm.country": "Country",
86
+ "verify.ocrSuccess": "Identifying...",
87
+ "verify.error.serverError": "Server error",
88
+ "verify.error.retryBtn": "Retry",
89
+ "verify.error.timeout": "Your request timed out, please retry to complete verification",
90
+ "verify.error.updateVersion": "Update to the latest version",
91
+ "verify.error.updateVersionDescribe": "Current version is not supported, please update to the latest one",
92
+ "verify.error.gyro": "Tilt your phone",
93
+ "verify.error.gyroDescribe": "Avoid holding your phone in vertical or horizontal position",
94
+ "liveness.title": "Frame your face",
95
+ "liveness.needMoreFrame": "Identifying...",
96
+ "liveness.error.faceNotAtCenter": "Align your face",
97
+ "liveness.error.faceTooLarge": "Move farther",
98
+ "liveness.error.needOpenEyes": "Make sure the eyes are not covered",
99
+ "liveness.error.noFace": "Your face is not detected",
100
+ "liveness.error.needFaceToCamera": "Look straight ahead",
101
+ "liveness.error.faceMasked": "Make sure your face is not covered",
102
+ "liveness.error.faceTooSmall": "Move closer",
103
+ "liveness.error.openEyes": "Open your eyes",
104
+ "liveness.error.needCloseMouth": "Close your mouth",
105
+ "liveness.error.needOpenMouth": "Open your mouth",
106
+ "liveness.error.needSmile": "Please smile",
107
+ "liveness.uploading": "Uploading",
108
+ "camera.error.lowResolution": "Camera resolution is too low",
109
+ "camera.error.notFound": "Camera is not working",
110
+ "network.error.offline": "Can't connect to the Internet",
111
+ "general.loading": "Loading",
112
+ "verify.fraud.hintTitle": "Please confirm when you operate",
113
+ "verify.fraud.hintText": "1. Make sure there is sufficient light and avoid back light\n2. Align within the frame",
114
+ "livenessVerify.error.customerNotFound": "Your account has not been registered",
115
+ "livenessVerify.error.deactivateCustomer": "Your account is deactivated",
116
+ "livenessVerify.error.customerInProgress": "Pending",
117
+ "livenessVerify.error.unexpectedError": "An unexpected error occurred",
118
+ "verify.header.idCard": "Take the photo of ID card",
119
+ "verify.header.passport": "Take the photo of passport",
120
+ "verify.header.driverLicense": "Take the photo of driving license",
121
+ "verify.header.healthCard": "Take the photo of health ID card",
122
+ "verify.header.step": "Step {{current}}/{{total}}",
123
+ "liveness.header.liveness": "Liveness Detection",
124
+ "home.title": "Real Name Authentication",
125
+ "home.input.placeHolder": "Please input",
126
+ "confirm.personalNumber": "ID number",
127
+ "browser.error.notSupport": "",
128
+ "confirm.sex": "",
129
+ "error.screenSize.title": "",
130
+ "error.screenSize.content": "",
131
+ "home.idCardFraud": ""
132
+ }
@@ -0,0 +1,132 @@
1
+ {
2
+ "home.environment": "環境",
3
+ "home.liveness": "活體",
4
+ "home.healthIdentification": "健保卡辨識",
5
+ "home.privacy": "Privacy",
6
+ "home.activeLiveness": "主動活體",
7
+ "home.verify": "驗證",
8
+ "home.passportIdentification": "護照辨識",
9
+ "home.initSDK": "初始化SDK",
10
+ "home.idCardIdentification": "身分證辨識",
11
+ "home.passiveLiveness": "被動活體",
12
+ "home.clientId": "客戶 ID",
13
+ "home.licenseIdentification": "駕照辨識",
14
+ "home.notFinish": "未完成",
15
+ "home.register": "註冊",
16
+ "verify.idCard": "身分證驗證",
17
+ "verify.step1Title": "Step.1 防偽驗證",
18
+ "verify.step1Describe": "請手持身分證置於方框內,盡量不遮蔽邊框,並確認證件清晰無反光",
19
+ "verify.step2Title": "Step.2 拍攝身分證",
20
+ "verify.allowCamera": "請允許相機存取,以進行身分驗證",
21
+ "verify.startVerifyBtn": "開始驗證",
22
+ "verify.understandBtn": "我知道了",
23
+ "verify.fraudDescribe": "為了驗證您的身分證真偽,請依照動畫所示翻轉身分證",
24
+ "verify.idCardFrontSide": "將身分證正面置於方框中拍攝",
25
+ "verify.frontSide": "正面",
26
+ "verify.idCardFlipLeft": "請手持身分證向左翻轉",
27
+ "verify.idCardFlipRight": "請手持身分證向右翻轉",
28
+ "verify.idCardFlipUp": "請手持身分證向上翻轉",
29
+ "verify.idCardFlipDown": "請手持身分證向下翻轉",
30
+ "verify.clearBtn": "很清楚",
31
+ "verify.retryBtn": "重新拍攝",
32
+ "verify.confirmIdCardFront": "確認身分證正面",
33
+ "verify.confirmBtn": "確定",
34
+ "verify.idCardBackSide": "將身分證背面置於方框中拍攝",
35
+ "verify.backSide": "背面",
36
+ "verify.confirmIdCardBack": "確認身分證背面",
37
+ "verify.uploading": "上傳中",
38
+ "verify.error.noCard": "未偵測到證件",
39
+ "verify.error.mismatch": "請將證件對齊框內",
40
+ "verify.error.reflective": "證件過暗或有反光區域",
41
+ "verify.error.wrongCardType": "錯誤證件",
42
+ "verify.error.blur": "證件模糊",
43
+ "verify.error.blurDescribe": "證件照片模糊導致無法辨識,請重新拍攝",
44
+ "verify.healthFrontSide": "將健保卡正面置於方框中拍攝",
45
+ "verify.confirmHealthFront": "確認健保卡正面",
46
+ "verify.licenseFrontSide": "將駕照正面置於方框中拍攝",
47
+ "verify.licenseBackSide": "將駕照背面置於方框中拍攝",
48
+ "verify.confirmLicenseFront": "確認駕照正面",
49
+ "verify.confirmLicenseBack": "確認駕照背面",
50
+ "verify.passportFrontSide": "將護照正面置於方框中拍攝",
51
+ "confirm.idNumber": "統一編號",
52
+ "confirm.issueCity": "發證地點",
53
+ "confirm.placeOfBirth": "出生地",
54
+ "confirm.confirmBtn": "確認",
55
+ "confirm.gender": "性別",
56
+ "confirm.father": "父",
57
+ "confirm.militaryService": "役別",
58
+ "confirm.dateOfBirth": "出生年月日",
59
+ "confirm.dateOfIssue": "發證日期",
60
+ "confirm.issueReason": "發證類型",
61
+ "confirm.address": "住址",
62
+ "confirm.idCard": "身分證",
63
+ "confirm.mother": "母",
64
+ "confirm.spouse": "配偶",
65
+ "confirm.serialNumber": "編號",
66
+ "confirm.name": "姓名",
67
+ "confirm.healthCard": "健保卡",
68
+ "confirm.cardNumber": "卡號",
69
+ "confirm.type": "駕照種類",
70
+ "confirm.issue": "發照日期",
71
+ "confirm.controlNo": "管轄編號",
72
+ "confirm.licenseNo": "駕照號碼",
73
+ "confirm.condition": "持照條件",
74
+ "confirm.driverLicense": "駕駛執照",
75
+ "confirm.expiry": "有效日期",
76
+ "confirm.birthDate": "出生日期",
77
+ "confirm.nationality": "國籍",
78
+ "confirm.givenName": "名字",
79
+ "confirm.documentNumber": "證件號碼",
80
+ "confirm.expiryDate": "護照有效日期",
81
+ "confirm.passport": "護照",
82
+ "confirm.personaNumber": "身分證統一編號",
83
+ "confirm.documentType": "證件類型",
84
+ "confirm.surname": "姓氏",
85
+ "confirm.country": "國家",
86
+ "verify.ocrSuccess": "偵測成功,辨識中…",
87
+ "verify.error.serverError": "伺服器錯誤",
88
+ "verify.error.retryBtn": "重試",
89
+ "verify.error.timeout": "使用逾時,請重新進入並完成身分識別",
90
+ "verify.error.updateVersion": "更新為最新版本",
91
+ "verify.error.updateVersionDescribe": "目前不支援此版本,請更新為最新版本",
92
+ "verify.error.gyro": "垂直或平行於地面",
93
+ "verify.error.gyroDescribe": "請避免將手機垂直或平行於地面",
94
+ "liveness.title": "將人臉放入邊框中",
95
+ "liveness.needMoreFrame": "偵測成功,辨識中…",
96
+ "liveness.error.faceNotAtCenter": "將臉部與邊框對齊",
97
+ "liveness.error.faceTooLarge": "離遠一點",
98
+ "liveness.error.needOpenEyes": "確保眼睛無遮蔽",
99
+ "liveness.error.noFace": "未偵測到人臉",
100
+ "liveness.error.needFaceToCamera": "將臉正對相機",
101
+ "liveness.error.faceMasked": "確保臉部無遮蔽",
102
+ "liveness.error.faceTooSmall": "靠近一點",
103
+ "liveness.error.openEyes": "眼睛開開",
104
+ "liveness.error.needCloseMouth": "緊閉嘴巴",
105
+ "liveness.error.needOpenMouth": "張開嘴巴",
106
+ "liveness.error.needSmile": "請微笑",
107
+ "liveness.uploading": "上傳中",
108
+ "camera.error.lowResolution": "相機解析度過低",
109
+ "camera.error.notFound": "無法使用相機",
110
+ "network.error.offline": "無法連線上網",
111
+ "general.loading": "載入中",
112
+ "verify.fraud.hintTitle": "請確認您操作時",
113
+ "verify.fraud.hintText": "1.光源充足且避免背光\n2.對其白色邊框",
114
+ "livenessVerify.error.customerNotFound": "客戶未註冊",
115
+ "livenessVerify.error.deactivateCustomer": "客戶已停用",
116
+ "livenessVerify.error.customerInProgress": "註冊審核中",
117
+ "livenessVerify.error.unexpectedError": "發生意外錯誤",
118
+ "verify.header.idCard": "拍攝身分證",
119
+ "verify.header.passport": "拍攝護照",
120
+ "verify.header.driverLicense": "拍攝駕照",
121
+ "verify.header.healthCard": "拍攝健保卡",
122
+ "verify.header.step": "第{{current}}/{{total}}步",
123
+ "liveness.header.liveness": "人臉辨識",
124
+ "home.title": "實名認證",
125
+ "home.input.placeHolder": "請輸入",
126
+ "confirm.personalNumber": "身分證統一編號",
127
+ "browser.error.notSupport": "不支援的瀏覽器",
128
+ "confirm.sex": "性別",
129
+ "error.screenSize.title": "畫面範圍不足",
130
+ "error.screenSize.content": "畫面範圍過小,無法進行證件拍攝,請將畫面範圍放大",
131
+ "home.idCardFraud": "身分證防偽辨識"
132
+ }