@dcloudio/uni-app-x 0.7.121 → 0.7.122

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 (110) hide show
  1. package/README.md +87 -0
  2. package/package.json +1 -1
  3. package/types/dom2-internal/UniCommon.d.ts +7 -2
  4. package/types/dom2-internal/UniNativeDefines.d.ts +7 -2
  5. package/types/uni/uts-plugin-api/global.d.ts +8 -0
  6. package/types/uni/uts-plugin-api/index.d.ts +8 -0
  7. package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
  8. package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
  9. package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
  10. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +323 -1294
  11. package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/global.d.ts +35 -0
  12. package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/index.d.ts +17 -0
  13. package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/interface.d.ts +944 -0
  14. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
  15. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/global.d.ts +16 -6
  16. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/index.d.ts +9 -3
  17. package/types/uni/uts-plugin-api/lib/uni-compass/utssdk/interface.d.ts +353 -0
  18. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +2 -0
  19. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +1 -0
  20. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +144 -110
  21. package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
  22. package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
  23. package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
  24. package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
  25. package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
  26. package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
  27. package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/global.d.ts +23 -0
  28. package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/index.d.ts +11 -0
  29. package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/interface.d.ts +418 -0
  30. package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
  31. package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
  32. package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
  33. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +2 -0
  34. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +1 -0
  35. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +83 -124
  36. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
  37. package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/global.d.ts +27 -0
  38. package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/index.d.ts +13 -0
  39. package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
  40. package/types/uni/uts-plugin-biz/global.d.ts +9 -0
  41. package/types/uni/uts-plugin-biz/index.d.ts +9 -0
  42. package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
  43. package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
  44. package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
  45. package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/global.d.ts +59 -0
  46. package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/index.d.ts +29 -0
  47. package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/interface.d.ts +371 -0
  48. package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/global.d.ts +35 -0
  49. package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/index.d.ts +17 -0
  50. package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/interface.d.ts +944 -0
  51. package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/global.d.ts +35 -0
  52. package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/index.d.ts +17 -0
  53. package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/interface.d.ts +353 -0
  54. package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
  55. package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
  56. package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
  57. package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
  58. package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
  59. package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
  60. package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
  61. package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
  62. package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
  63. package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/global.d.ts +57 -0
  64. package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/index.d.ts +28 -0
  65. package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/interface.d.ts +1172 -0
  66. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +6 -1
  67. package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/global.d.ts +27 -0
  68. package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/index.d.ts +13 -0
  69. package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
  70. package/types/uni/uts-plugin-component/global.d.ts +8 -1
  71. package/types/uni/uts-plugin-component/index.d.ts +8 -1
  72. package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
  73. package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
  74. package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
  75. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +1342 -371
  76. package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/global.d.ts +35 -0
  77. package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/index.d.ts +17 -0
  78. package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/interface.d.ts +944 -0
  79. package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
  80. package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/global.d.ts +35 -0
  81. package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/index.d.ts +17 -0
  82. package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/interface.d.ts +353 -0
  83. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +2 -0
  84. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +1 -0
  85. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +144 -110
  86. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +13 -4
  87. package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
  88. package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
  89. package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
  90. package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
  91. package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
  92. package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
  93. package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/global.d.ts +23 -0
  94. package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/index.d.ts +11 -0
  95. package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/interface.d.ts +420 -0
  96. package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
  97. package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
  98. package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
  99. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +2 -0
  100. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +1 -0
  101. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +132 -75
  102. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
  103. package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/global.d.ts +27 -0
  104. package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/index.d.ts +13 -0
  105. package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
  106. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +0 -12
  107. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +0 -1
  108. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +0 -917
  109. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +0 -1095
  110. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +0 -253
@@ -1,1342 +1,371 @@
1
-
2
- export interface Uni {
3
- /**
4
- * 开始 SOTER 生物认证
5
- *
6
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/bio-auth.html#startsoterauthentication
7
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/authentication.html#startsoterauthentication
8
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/bio-auth.html#startsoterauthentication
9
- *
1
+
2
+ export interface Uni {
3
+ /**
4
+ * 开始 生物认证
5
+ *
6
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/bio-auth.html#startsoterauthentication
7
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/authentication.html#startsoterauthentication
8
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/bio-auth.html#startsoterauthentication
9
+ *
10
10
  * @uniPlatform {
11
- * "app": {
12
- * "android": {
13
- * "osVer": "5.0",
14
- * "uniVer": "",
15
- * "unixVer": "x"
16
- * },
17
- * "ios": {
18
- * "osVer": "12.0",
19
- * "uniVer": "",
20
- * "unixVer": "x"
21
- * },
22
- * "harmony": {
23
- * "osVer": "3.0",
11
+ * "app": {
12
+ * "android": {
13
+ * "osVer": "5.0",
14
+ * "uniVer": "2.3.8",
15
+ * "unixVer": "5.08"
16
+ * },
17
+ * "ios": {
18
+ * "osVer": "12.0",
19
+ * "uniVer": "2.3.8",
20
+ * "unixVer": "5.08"
21
+ * },
22
+ * "harmony": {
23
+ * "osVer": "3.0",
24
24
  * "uniVer": "4.31",
25
25
  * "unixVer": "4.61",
26
26
  * "unixVaporVer": "5.0"
27
- * }
28
- * },
27
+ * }
28
+ * },
29
29
  * "web": {
30
30
  * "uniVer": "x",
31
31
  * "unixVer": "x"
32
32
  * },
33
- * "mp": {
34
- * "weixin": {
35
- * "hostVer": "1.5.0",
36
- * "uniVer": "√",
37
- * "unixVer": "4.41"
38
- * },
39
- * "alipay": {
40
- * "hostVer": "x",
41
- * "uniVer": "x",
42
- * "unixVer": "x"
43
- * },
44
- * "baidu": {
45
- * "hostVer": "x",
46
- * "uniVer": "x",
47
- * "unixVer": "x"
48
- * },
49
- * "toutiao": {
50
- * "hostVer": "x",
51
- * "uniVer": "x",
52
- * "unixVer": "x"
53
- * },
54
- * "lark": {
55
- * "hostVer": "x",
56
- * "uniVer": "x",
57
- * "unixVer": "x"
58
- * },
59
- * "qq": {
60
- * "hostVer": "x",
61
- * "uniVer": "x",
62
- * "unixVer": "x"
63
- * },
64
- * "kuaishou": {
65
- * "hostVer": "x",
66
- * "uniVer": "x",
67
- * "unixVer": "x"
68
- * },
69
- * "jd": {
70
- * "hostVer": "x",
71
- * "uniVer": "x",
72
- * "unixVer": "x"
73
- * }
74
- * }
33
+ * "mp":{
34
+ * "weixin": {
35
+ * "hostVer": "",
36
+ * "uniVer": "√",
37
+ * "unixVer": "4.41"
38
+ * },
39
+ * "alipay": {
40
+ * "hostVer": "x",
41
+ * "uniVer": "x",
42
+ * "unixVer": "x"
43
+ * },
44
+ * "baidu": {
45
+ * "hostVer": "x",
46
+ * "uniVer": "x",
47
+ * "unixVer": "x"
48
+ * },
49
+ * "toutiao": {
50
+ * "hostVer": "x",
51
+ * "uniVer": "x",
52
+ * "unixVer": "x"
53
+ * },
54
+ * "lark": {
55
+ * "hostVer": "x",
56
+ * "uniVer": "x",
57
+ * "unixVer": "x"
58
+ * },
59
+ * "qq": {
60
+ * "hostVer": "x",
61
+ * "uniVer": "x",
62
+ * "unixVer": "x"
63
+ * },
64
+ * "kuaishou": {
65
+ * "hostVer": "x",
66
+ * "uniVer": "x",
67
+ * "unixVer": "x"
68
+ * },
69
+ * "jd": {
70
+ * "hostVer": "x",
71
+ * "uniVer": "x",
72
+ * "unixVer": "x"
73
+ * }
74
+ * }
75
75
  * }
76
- * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/soter/wx.startSoterAuthentication.html
77
- */
78
- startSoterAuthentication(options: StartSoterAuthenticationOptions): void;
79
- /**
80
- * 获取本机支持的 SOTER 生物认证方式
81
- *
82
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/bio-auth.html#checkissupportsoterauthentication
83
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/bio-auth.html#checkissupportsoterauthentication
84
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/authentication.html#checkissupportsoterauthentication
85
- *
76
+ */
77
+ startSoterAuthentication(options: StartSoterAuthenticationOptions): void;
78
+ /**
79
+ * 获取本机支持的 生物认证方式
80
+ *
81
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/bio-auth.html#checkissupportsoterauthentication
82
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/bio-auth.html#checkissupportsoterauthentication
83
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/authentication.html#checkissupportsoterauthentication
84
+ *
86
85
  * @uniPlatform {
87
- * "app": {
88
- * "android": {
89
- * "osVer": "5.0",
90
- * "uniVer": "",
91
- * "unixVer": "x"
92
- * },
93
- * "ios": {
94
- * "osVer": "12.0",
95
- * "uniVer": "",
96
- * "unixVer": "x"
97
- * },
98
- * "harmony": {
99
- * "osVer": "3.0",
86
+ * "app": {
87
+ * "android": {
88
+ * "osVer": "5.0",
89
+ * "uniVer": "2.3.8",
90
+ * "unixVer": "5.08"
91
+ * },
92
+ * "ios": {
93
+ * "osVer": "12.0",
94
+ * "uniVer": "2.3.8",
95
+ * "unixVer": "5.08"
96
+ * },
97
+ * "harmony": {
98
+ * "osVer": "3.0",
100
99
  * "uniVer": "4.31",
101
100
  * "unixVer": "4.61",
102
101
  * "unixVaporVer": "5.0"
103
- * }
104
- * },
102
+ * }
103
+ * },
105
104
  * "web": {
106
105
  * "uniVer": "x",
107
106
  * "unixVer": "x"
108
107
  * },
109
- * "mp": {
110
- * "weixin": {
111
- * "hostVer": "1.5.0",
112
- * "uniVer": "√",
113
- * "unixVer": "4.41"
114
- * },
115
- * "alipay": {
116
- * "hostVer": "x",
117
- * "uniVer": "x",
118
- * "unixVer": "x"
119
- * },
120
- * "baidu": {
121
- * "hostVer": "x",
122
- * "uniVer": "x",
123
- * "unixVer": "x"
124
- * },
125
- * "toutiao": {
126
- * "hostVer": "x",
127
- * "uniVer": "x",
128
- * "unixVer": "x"
129
- * },
130
- * "lark": {
131
- * "hostVer": "x",
132
- * "uniVer": "x",
133
- * "unixVer": "x"
134
- * },
135
- * "qq": {
136
- * "hostVer": "x",
137
- * "uniVer": "x",
138
- * "unixVer": "x"
139
- * },
140
- * "kuaishou": {
141
- * "hostVer": "x",
142
- * "uniVer": "x",
143
- * "unixVer": "x"
144
- * },
145
- * "jd": {
146
- * "hostVer": "x",
147
- * "uniVer": "x",
148
- * "unixVer": "x"
149
- * }
150
- * }
108
+ * "mp":{
109
+ * "weixin": {
110
+ * "hostVer": "",
111
+ * "uniVer": "√",
112
+ * "unixVer": "4.41"
113
+ * },
114
+ * "alipay": {
115
+ * "hostVer": "x",
116
+ * "uniVer": "x",
117
+ * "unixVer": "x"
118
+ * },
119
+ * "baidu": {
120
+ * "hostVer": "x",
121
+ * "uniVer": "x",
122
+ * "unixVer": "x"
123
+ * },
124
+ * "toutiao": {
125
+ * "hostVer": "x",
126
+ * "uniVer": "x",
127
+ * "unixVer": "x"
128
+ * },
129
+ * "lark": {
130
+ * "hostVer": "x",
131
+ * "uniVer": "x",
132
+ * "unixVer": "x"
133
+ * },
134
+ * "qq": {
135
+ * "hostVer": "x",
136
+ * "uniVer": "x",
137
+ * "unixVer": "x"
138
+ * },
139
+ * "kuaishou": {
140
+ * "hostVer": "x",
141
+ * "uniVer": "x",
142
+ * "unixVer": "x"
143
+ * },
144
+ * "jd": {
145
+ * "hostVer": "x",
146
+ * "uniVer": "x",
147
+ * "unixVer": "x"
148
+ * }
149
+ * }
151
150
  * }
152
- * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/soter/wx.checkIsSupportSoterAuthentication.html
153
- */
154
- checkIsSupportSoterAuthentication(options: CheckIsSupportSoterAuthenticationOptions): void;
155
- /**
156
- * 获取设备内是否录入如指纹等生物信息
157
- *
158
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/bio-auth.html#checkissoterenrolledindevice
159
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/bio-auth.html#checkissoterenrolledindevice
160
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/authentication.html#checkissoterenrolledindevice
161
- *
151
+ */
152
+ checkIsSupportSoterAuthentication(options: CheckIsSupportSoterAuthenticationOptions): void;
153
+ /**
154
+ * 获取设备内是否录入如指纹等生物信息
155
+ *
156
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/bio-auth.html#checkissoterenrolledindevice
157
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/bio-auth.html#checkissoterenrolledindevice
158
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/authentication.html#checkissoterenrolledindevice
159
+ *
162
160
  * @uniPlatform {
163
- * "app": {
164
- * "android": {
165
- * "osVer": "5.0",
166
- * "uniVer": "",
167
- * "unixVer": "x"
168
- * },
169
- * "ios": {
170
- * "osVer": "12.0",
171
- * "uniVer": "",
172
- * "unixVer": "x"
173
- * },
174
- * "harmony": {
175
- * "osVer": "3.0",
161
+ * "app": {
162
+ * "android": {
163
+ * "osVer": "5.0",
164
+ * "uniVer": "2.3.8",
165
+ * "unixVer": "5.08"
166
+ * },
167
+ * "ios": {
168
+ * "osVer": "12.0",
169
+ * "uniVer": "2.3.8",
170
+ * "unixVer": "5.08"
171
+ * },
172
+ * "harmony": {
173
+ * "osVer": "3.0",
176
174
  * "uniVer": "4.31",
177
175
  * "unixVer": "4.61",
178
176
  * "unixVaporVer": "5.0"
179
- * }
180
- * },
177
+ * }
178
+ * },
181
179
  * "web": {
182
180
  * "uniVer": "x",
183
181
  * "unixVer": "x"
184
182
  * },
185
- * "mp": {
186
- * "weixin": {
187
- * "hostVer": "1.6.0",
188
- * "uniVer": "√",
189
- * "unixVer": "4.41"
190
- * },
191
- * "alipay": {
192
- * "hostVer": "x",
193
- * "uniVer": "x",
194
- * "unixVer": "x"
195
- * },
196
- * "baidu": {
197
- * "hostVer": "x",
198
- * "uniVer": "x",
199
- * "unixVer": "x"
200
- * },
201
- * "toutiao": {
202
- * "hostVer": "x",
203
- * "uniVer": "x",
204
- * "unixVer": "x"
205
- * },
206
- * "lark": {
207
- * "hostVer": "x",
208
- * "uniVer": "x",
209
- * "unixVer": "x"
210
- * },
211
- * "qq": {
212
- * "hostVer": "x",
213
- * "uniVer": "x",
214
- * "unixVer": "x"
215
- * },
216
- * "kuaishou": {
217
- * "hostVer": "x",
218
- * "uniVer": "x",
219
- * "unixVer": "x"
220
- * },
221
- * "jd": {
222
- * "hostVer": "x",
223
- * "uniVer": "x",
224
- * "unixVer": "x"
225
- * }
226
- * }
183
+ * "mp":{
184
+ * "weixin": {
185
+ * "hostVer": "",
186
+ * "uniVer": "√",
187
+ * "unixVer": "4.41"
188
+ * },
189
+ * "alipay": {
190
+ * "hostVer": "x",
191
+ * "uniVer": "x",
192
+ * "unixVer": "x"
193
+ * },
194
+ * "baidu": {
195
+ * "hostVer": "x",
196
+ * "uniVer": "x",
197
+ * "unixVer": "x"
198
+ * },
199
+ * "toutiao": {
200
+ * "hostVer": "x",
201
+ * "uniVer": "x",
202
+ * "unixVer": "x"
203
+ * },
204
+ * "lark": {
205
+ * "hostVer": "x",
206
+ * "uniVer": "x",
207
+ * "unixVer": "x"
208
+ * },
209
+ * "qq": {
210
+ * "hostVer": "x",
211
+ * "uniVer": "x",
212
+ * "unixVer": "x"
213
+ * },
214
+ * "kuaishou": {
215
+ * "hostVer": "x",
216
+ * "uniVer": "x",
217
+ * "unixVer": "x"
218
+ * },
219
+ * "jd": {
220
+ * "hostVer": "x",
221
+ * "uniVer": "x",
222
+ * "unixVer": "x"
223
+ * }
224
+ * }
227
225
  * }
228
- * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/soter/wx.checkIsSoterEnrolledInDevice.html
229
- */
230
- checkIsSoterEnrolledInDevice(options: CheckIsSoterEnrolledInDeviceOptions): void;
231
- }
232
-
233
- export type StartSoterAuthentication = (options: StartSoterAuthenticationOptions) => void;
234
- /**
235
- * 生物认证方式
236
- */
237
- export type SoterAuthMode =
238
- /**
239
- * 指纹识别
240
- */
241
- 'fingerPrint' |
242
- /**
243
- * 人脸识别
244
- */
245
- 'facial' |
246
- /**
247
- * 声纹识别(暂未支持)
248
- */
249
- 'speech';
250
-
251
- export type StartSoterAuthenticationSuccess = {
252
- /**
226
+ */
227
+ checkIsSoterEnrolledInDevice(options: CheckIsSoterEnrolledInDeviceOptions): void;
228
+ }
229
+
230
+ export type StartSoterAuthentication = (options: StartSoterAuthenticationOptions) => void;
231
+ /**
232
+ * 生物认证方式
233
+ */
234
+ export type SoterAuthMode =
235
+ /**
236
+ * 指纹识别
237
+ */
238
+ 'fingerPrint' |
239
+ /**
240
+ * 人脸识别
241
+ */
242
+ 'facial' |
243
+ /**
244
+ * 声纹识别(暂未支持)
245
+ */
246
+ 'speech';
247
+
248
+ export type StartSoterAuthenticationSuccess = {
249
+ /**
253
250
  * 错误码
254
- * @uniPlatform {
255
- * "mp": {
256
- * "weixin": {
257
- * "hostVer": "√",
258
- * "uniVer": "√",
259
- * "unixVer": "4.41"
260
- * },
261
- * "alipay": {
262
- * "hostVer": "-",
263
- * "uniVer": "-",
264
- * "unixVer": "-"
265
- * },
266
- * "baidu": {
267
- * "hostVer": "-",
268
- * "uniVer": "-",
269
- * "unixVer": "-"
270
- * },
271
- * "toutiao": {
272
- * "hostVer": "-",
273
- * "uniVer": "-",
274
- * "unixVer": "-"
275
- * },
276
- * "lark": {
277
- * "hostVer": "-",
278
- * "uniVer": "-",
279
- * "unixVer": "-"
280
- * },
281
- * "qq": {
282
- * "hostVer": "-",
283
- * "uniVer": "-",
284
- * "unixVer": "-"
285
- * },
286
- * "kuaishou": {
287
- * "hostVer": "-",
288
- * "uniVer": "-",
289
- * "unixVer": "-"
290
- * },
291
- * "jd": {
292
- * "hostVer": "-",
293
- * "uniVer": "-",
294
- * "unixVer": "-"
295
- * }
296
- * }
297
- * }
298
- */
299
- errCode: number,
300
- /**
301
- * 生物认证方式
302
- * - fingerPrint: 指纹识别
303
- * - facial: 人脸识别
251
+ */
252
+ errCode: number,
253
+ /**
254
+ * 生物认证方式
255
+ * - fingerPrint: 指纹识别
256
+ * - facial: 人脸识别
304
257
  * - speech: 声纹识别(暂未支持)
305
- * @uniPlatform {
306
- * "mp": {
307
- * "weixin": {
308
- * "hostVer": "√",
309
- * "uniVer": "√",
310
- * "unixVer": "4.41"
311
- * },
312
- * "alipay": {
313
- * "hostVer": "-",
314
- * "uniVer": "-",
315
- * "unixVer": "-"
316
- * },
317
- * "baidu": {
318
- * "hostVer": "-",
319
- * "uniVer": "-",
320
- * "unixVer": "-"
321
- * },
322
- * "toutiao": {
323
- * "hostVer": "-",
324
- * "uniVer": "-",
325
- * "unixVer": "-"
326
- * },
327
- * "lark": {
328
- * "hostVer": "-",
329
- * "uniVer": "-",
330
- * "unixVer": "-"
331
- * },
332
- * "qq": {
333
- * "hostVer": "-",
334
- * "uniVer": "-",
335
- * "unixVer": "-"
336
- * },
337
- * "kuaishou": {
338
- * "hostVer": "-",
339
- * "uniVer": "-",
340
- * "unixVer": "-"
341
- * },
342
- * "jd": {
343
- * "hostVer": "-",
344
- * "uniVer": "-",
345
- * "unixVer": "-"
346
- * }
347
- * }
348
- * }
349
- */
350
- authMode: SoterAuthMode,
351
- /**
258
+ */
259
+ authMode: SoterAuthMode,
260
+ /**
352
261
  * 在设备安全区域(TEE)内获得的本机安全信息以及本次认证信息
353
- * @uniPlatform {
354
- * "mp": {
355
- * "weixin": {
356
- * "hostVer": "√",
357
- * "uniVer": "√",
358
- * "unixVer": "4.41"
359
- * },
360
- * "alipay": {
361
- * "hostVer": "-",
362
- * "uniVer": "-",
363
- * "unixVer": "-"
364
- * },
365
- * "baidu": {
366
- * "hostVer": "-",
367
- * "uniVer": "-",
368
- * "unixVer": "-"
369
- * },
370
- * "toutiao": {
371
- * "hostVer": "-",
372
- * "uniVer": "-",
373
- * "unixVer": "-"
374
- * },
375
- * "lark": {
376
- * "hostVer": "-",
377
- * "uniVer": "-",
378
- * "unixVer": "-"
379
- * },
380
- * "qq": {
381
- * "hostVer": "-",
382
- * "uniVer": "-",
383
- * "unixVer": "-"
384
- * },
385
- * "kuaishou": {
386
- * "hostVer": "-",
387
- * "uniVer": "-",
388
- * "unixVer": "-"
389
- * },
390
- * "jd": {
391
- * "hostVer": "-",
392
- * "uniVer": "-",
393
- * "unixVer": "-"
394
- * }
395
- * }
396
- * }
397
- */
398
- resultJSON?: string | null,
399
- /**
400
- * 用SOTER安全密钥对 resultJSON 的签名(SHA256 with RSA/PSS, saltlen=20)
401
- * @uniPlatform {
402
- * "mp": {
403
- * "weixin": {
404
- * "hostVer": "√",
405
- * "uniVer": "√",
406
- * "unixVer": "4.41"
407
- * },
408
- * "alipay": {
409
- * "hostVer": "-",
410
- * "uniVer": "-",
411
- * "unixVer": "-"
412
- * },
413
- * "baidu": {
414
- * "hostVer": "-",
415
- * "uniVer": "-",
416
- * "unixVer": "-"
417
- * },
418
- * "toutiao": {
419
- * "hostVer": "-",
420
- * "uniVer": "-",
421
- * "unixVer": "-"
422
- * },
423
- * "lark": {
424
- * "hostVer": "-",
425
- * "uniVer": "-",
426
- * "unixVer": "-"
427
- * },
428
- * "qq": {
429
- * "hostVer": "-",
430
- * "uniVer": "-",
431
- * "unixVer": "-"
432
- * },
433
- * "kuaishou": {
434
- * "hostVer": "-",
435
- * "uniVer": "-",
436
- * "unixVer": "-"
437
- * },
438
- * "jd": {
439
- * "hostVer": "-",
440
- * "uniVer": "-",
441
- * "unixVer": "-"
442
- * }
443
- * }
444
- * }
445
- */
446
- resultJSONSignature?: string | null,
447
- /**
262
+ */
263
+ resultJSON?: string | null,
264
+ /**
265
+ * 用安全密钥对 resultJSON 的签名(SHA256 with RSA/PSS, saltlen=20)
266
+ */
267
+ resultJSONSignature?: string | null,
268
+ /**
448
269
  * 接口调用结果
449
- * @uniPlatform {
450
- * "mp": {
451
- * "weixin": {
452
- * "hostVer": "√",
453
- * "uniVer": "√",
454
- * "unixVer": "4.41"
455
- * },
456
- * "alipay": {
457
- * "hostVer": "-",
458
- * "uniVer": "-",
459
- * "unixVer": "-"
460
- * },
461
- * "baidu": {
462
- * "hostVer": "-",
463
- * "uniVer": "-",
464
- * "unixVer": "-"
465
- * },
466
- * "toutiao": {
467
- * "hostVer": "-",
468
- * "uniVer": "-",
469
- * "unixVer": "-"
470
- * },
471
- * "lark": {
472
- * "hostVer": "-",
473
- * "uniVer": "-",
474
- * "unixVer": "-"
475
- * },
476
- * "qq": {
477
- * "hostVer": "-",
478
- * "uniVer": "-",
479
- * "unixVer": "-"
480
- * },
481
- * "kuaishou": {
482
- * "hostVer": "-",
483
- * "uniVer": "-",
484
- * "unixVer": "-"
485
- * },
486
- * "jd": {
487
- * "hostVer": "-",
488
- * "uniVer": "-",
489
- * "unixVer": "-"
490
- * }
491
- * }
492
- * }
493
- */
494
- errMsg: string
495
- };
496
- export type StartSoterAuthenticationSuccessCallback = (result: StartSoterAuthenticationSuccess) => void;
497
- export type StartSoterAuthenticationFail = UniError;
498
- export type StartSoterAuthenticationFailCallback = (result: StartSoterAuthenticationFail) => void;
499
- export type StartSoterAuthenticationComplete = any;
500
- export type StartSoterAuthenticationCompleteCallback = (result: StartSoterAuthenticationComplete) => void;
501
- export type StartSoterAuthenticationOptions = {
502
- /**
270
+ */
271
+ errMsg: string
272
+ };
273
+ export type StartSoterAuthenticationSuccessCallback = (result: StartSoterAuthenticationSuccess) => void;
274
+ export type StartSoterAuthenticationFail = UniError;
275
+ export type StartSoterAuthenticationFailCallback = (result: StartSoterAuthenticationFail) => void;
276
+ export type StartSoterAuthenticationComplete = any;
277
+ export type StartSoterAuthenticationCompleteCallback = (result: StartSoterAuthenticationComplete) => void;
278
+ export type StartSoterAuthenticationOptions = {
279
+ /**
503
280
  * 请求使用的可接受的生物认证方式
504
- * @uniPlatform {
505
- * "mp": {
506
- * "weixin": {
507
- * "hostVer": "√",
508
- * "uniVer": "√",
509
- * "unixVer": "4.41"
510
- * },
511
- * "alipay": {
512
- * "hostVer": "-",
513
- * "uniVer": "-",
514
- * "unixVer": "-"
515
- * },
516
- * "baidu": {
517
- * "hostVer": "-",
518
- * "uniVer": "-",
519
- * "unixVer": "-"
520
- * },
521
- * "toutiao": {
522
- * "hostVer": "-",
523
- * "uniVer": "-",
524
- * "unixVer": "-"
525
- * },
526
- * "lark": {
527
- * "hostVer": "-",
528
- * "uniVer": "-",
529
- * "unixVer": "-"
530
- * },
531
- * "qq": {
532
- * "hostVer": "-",
533
- * "uniVer": "-",
534
- * "unixVer": "-"
535
- * },
536
- * "kuaishou": {
537
- * "hostVer": "-",
538
- * "uniVer": "-",
539
- * "unixVer": "-"
540
- * },
541
- * "jd": {
542
- * "hostVer": "-",
543
- * "uniVer": "-",
544
- * "unixVer": "-"
545
- * }
546
- * }
547
- * }
548
- */
549
- requestAuthModes: SoterAuthMode[],
550
- /**
281
+ */
282
+ requestAuthModes: SoterAuthMode[],
283
+ /**
551
284
  * 挑战因子
552
- * @uniPlatform {
553
- * "mp": {
554
- * "weixin": {
555
- * "hostVer": "√",
556
- * "uniVer": "√",
557
- * "unixVer": "4.41"
558
- * },
559
- * "alipay": {
560
- * "hostVer": "-",
561
- * "uniVer": "-",
562
- * "unixVer": "-"
563
- * },
564
- * "baidu": {
565
- * "hostVer": "-",
566
- * "uniVer": "-",
567
- * "unixVer": "-"
568
- * },
569
- * "toutiao": {
570
- * "hostVer": "-",
571
- * "uniVer": "-",
572
- * "unixVer": "-"
573
- * },
574
- * "lark": {
575
- * "hostVer": "-",
576
- * "uniVer": "-",
577
- * "unixVer": "-"
578
- * },
579
- * "qq": {
580
- * "hostVer": "-",
581
- * "uniVer": "-",
582
- * "unixVer": "-"
583
- * },
584
- * "kuaishou": {
585
- * "hostVer": "-",
586
- * "uniVer": "-",
587
- * "unixVer": "-"
588
- * },
589
- * "jd": {
590
- * "hostVer": "-",
591
- * "uniVer": "-",
592
- * "unixVer": "-"
593
- * }
594
- * }
595
- * }
596
- */
597
- challenge?: string | null,
598
- /**
285
+ */
286
+ challenge?: string | null,
287
+ /**
599
288
  * 验证描述,即识别过程中显示在界面上的对话框提示内容
600
- * @uniPlatform {
601
- * "mp": {
602
- * "weixin": {
603
- * "hostVer": "√",
604
- * "uniVer": "√",
605
- * "unixVer": "4.41"
606
- * },
607
- * "alipay": {
608
- * "hostVer": "-",
609
- * "uniVer": "-",
610
- * "unixVer": "-"
611
- * },
612
- * "baidu": {
613
- * "hostVer": "-",
614
- * "uniVer": "-",
615
- * "unixVer": "-"
616
- * },
617
- * "toutiao": {
618
- * "hostVer": "-",
619
- * "uniVer": "-",
620
- * "unixVer": "-"
621
- * },
622
- * "lark": {
623
- * "hostVer": "-",
624
- * "uniVer": "-",
625
- * "unixVer": "-"
626
- * },
627
- * "qq": {
628
- * "hostVer": "-",
629
- * "uniVer": "-",
630
- * "unixVer": "-"
631
- * },
632
- * "kuaishou": {
633
- * "hostVer": "-",
634
- * "uniVer": "-",
635
- * "unixVer": "-"
636
- * },
637
- * "jd": {
638
- * "hostVer": "-",
639
- * "uniVer": "-",
640
- * "unixVer": "-"
641
- * }
642
- * }
643
- * }
644
- */
645
- authContent?: string | null,
646
- /**
289
+ */
290
+ authContent?: string | null,
291
+ /**
647
292
  * 接口调用成功的回调函数
648
- * @uniPlatform {
649
- * "mp": {
650
- * "weixin": {
651
- * "hostVer": "√",
652
- * "uniVer": "√",
653
- * "unixVer": "4.41"
654
- * },
655
- * "alipay": {
656
- * "hostVer": "-",
657
- * "uniVer": "-",
658
- * "unixVer": "-"
659
- * },
660
- * "baidu": {
661
- * "hostVer": "-",
662
- * "uniVer": "-",
663
- * "unixVer": "-"
664
- * },
665
- * "toutiao": {
666
- * "hostVer": "-",
667
- * "uniVer": "-",
668
- * "unixVer": "-"
669
- * },
670
- * "lark": {
671
- * "hostVer": "-",
672
- * "uniVer": "-",
673
- * "unixVer": "-"
674
- * },
675
- * "qq": {
676
- * "hostVer": "-",
677
- * "uniVer": "-",
678
- * "unixVer": "-"
679
- * },
680
- * "kuaishou": {
681
- * "hostVer": "-",
682
- * "uniVer": "-",
683
- * "unixVer": "-"
684
- * },
685
- * "jd": {
686
- * "hostVer": "-",
687
- * "uniVer": "-",
688
- * "unixVer": "-"
689
- * }
690
- * }
691
- * }
692
- */
693
- success?: StartSoterAuthenticationSuccessCallback | null,
694
- /**
293
+ */
294
+ success?: StartSoterAuthenticationSuccessCallback | null,
295
+ /**
695
296
  * 接口调用失败的回调函数
696
- * @uniPlatform {
697
- * "mp": {
698
- * "weixin": {
699
- * "hostVer": "√",
700
- * "uniVer": "√",
701
- * "unixVer": "4.41"
702
- * },
703
- * "alipay": {
704
- * "hostVer": "-",
705
- * "uniVer": "-",
706
- * "unixVer": "-"
707
- * },
708
- * "baidu": {
709
- * "hostVer": "-",
710
- * "uniVer": "-",
711
- * "unixVer": "-"
712
- * },
713
- * "toutiao": {
714
- * "hostVer": "-",
715
- * "uniVer": "-",
716
- * "unixVer": "-"
717
- * },
718
- * "lark": {
719
- * "hostVer": "-",
720
- * "uniVer": "-",
721
- * "unixVer": "-"
722
- * },
723
- * "qq": {
724
- * "hostVer": "-",
725
- * "uniVer": "-",
726
- * "unixVer": "-"
727
- * },
728
- * "kuaishou": {
729
- * "hostVer": "-",
730
- * "uniVer": "-",
731
- * "unixVer": "-"
732
- * },
733
- * "jd": {
734
- * "hostVer": "-",
735
- * "uniVer": "-",
736
- * "unixVer": "-"
737
- * }
738
- * }
739
- * }
740
- */
741
- fail?: StartSoterAuthenticationFailCallback | null,
742
- /**
297
+ */
298
+ fail?: StartSoterAuthenticationFailCallback | null,
299
+ /**
743
300
  * 接口调用结束的回调函数(调用成功、失败都会执行)
744
- * @uniPlatform {
745
- * "mp": {
746
- * "weixin": {
747
- * "hostVer": "√",
748
- * "uniVer": "√",
749
- * "unixVer": "4.41"
750
- * },
751
- * "alipay": {
752
- * "hostVer": "-",
753
- * "uniVer": "-",
754
- * "unixVer": "-"
755
- * },
756
- * "baidu": {
757
- * "hostVer": "-",
758
- * "uniVer": "-",
759
- * "unixVer": "-"
760
- * },
761
- * "toutiao": {
762
- * "hostVer": "-",
763
- * "uniVer": "-",
764
- * "unixVer": "-"
765
- * },
766
- * "lark": {
767
- * "hostVer": "-",
768
- * "uniVer": "-",
769
- * "unixVer": "-"
770
- * },
771
- * "qq": {
772
- * "hostVer": "-",
773
- * "uniVer": "-",
774
- * "unixVer": "-"
775
- * },
776
- * "kuaishou": {
777
- * "hostVer": "-",
778
- * "uniVer": "-",
779
- * "unixVer": "-"
780
- * },
781
- * "jd": {
782
- * "hostVer": "-",
783
- * "uniVer": "-",
784
- * "unixVer": "-"
785
- * }
786
- * }
787
- * }
788
- */
789
- complete?: StartSoterAuthenticationCompleteCallback | null
790
- };
791
- export type CheckIsSupportSoterAuthentication = (options: CheckIsSupportSoterAuthenticationOptions) => void;
792
- export type CheckIsSupportSoterAuthenticationSuccess = {
793
- /**
301
+ */
302
+ complete?: StartSoterAuthenticationCompleteCallback | null
303
+ };
304
+ export type CheckIsSupportSoterAuthentication = (options: CheckIsSupportSoterAuthenticationOptions) => void;
305
+ export type CheckIsSupportSoterAuthenticationSuccess = {
306
+ /**
794
307
  * 接口调用成功的回调函数
795
- * @uniPlatform {
796
- * "mp": {
797
- * "weixin": {
798
- * "hostVer": "√",
799
- * "uniVer": "√",
800
- * "unixVer": "4.41"
801
- * },
802
- * "alipay": {
803
- * "hostVer": "-",
804
- * "uniVer": "-",
805
- * "unixVer": "-"
806
- * },
807
- * "baidu": {
808
- * "hostVer": "-",
809
- * "uniVer": "-",
810
- * "unixVer": "-"
811
- * },
812
- * "toutiao": {
813
- * "hostVer": "-",
814
- * "uniVer": "-",
815
- * "unixVer": "-"
816
- * },
817
- * "lark": {
818
- * "hostVer": "-",
819
- * "uniVer": "-",
820
- * "unixVer": "-"
821
- * },
822
- * "qq": {
823
- * "hostVer": "-",
824
- * "uniVer": "-",
825
- * "unixVer": "-"
826
- * },
827
- * "kuaishou": {
828
- * "hostVer": "-",
829
- * "uniVer": "-",
830
- * "unixVer": "-"
831
- * },
832
- * "jd": {
833
- * "hostVer": "-",
834
- * "uniVer": "-",
835
- * "unixVer": "-"
836
- * }
837
- * }
838
- * }
839
- */
840
- supportMode: SoterAuthMode[],
841
- /**
308
+ */
309
+ supportMode: SoterAuthMode[],
310
+ /**
842
311
  * 接口调用结果
843
- * @uniPlatform {
844
- * "mp": {
845
- * "weixin": {
846
- * "hostVer": "√",
847
- * "uniVer": "√",
848
- * "unixVer": "4.41"
849
- * },
850
- * "alipay": {
851
- * "hostVer": "-",
852
- * "uniVer": "-",
853
- * "unixVer": "-"
854
- * },
855
- * "baidu": {
856
- * "hostVer": "-",
857
- * "uniVer": "-",
858
- * "unixVer": "-"
859
- * },
860
- * "toutiao": {
861
- * "hostVer": "-",
862
- * "uniVer": "-",
863
- * "unixVer": "-"
864
- * },
865
- * "lark": {
866
- * "hostVer": "-",
867
- * "uniVer": "-",
868
- * "unixVer": "-"
869
- * },
870
- * "qq": {
871
- * "hostVer": "-",
872
- * "uniVer": "-",
873
- * "unixVer": "-"
874
- * },
875
- * "kuaishou": {
876
- * "hostVer": "-",
877
- * "uniVer": "-",
878
- * "unixVer": "-"
879
- * },
880
- * "jd": {
881
- * "hostVer": "-",
882
- * "uniVer": "-",
883
- * "unixVer": "-"
884
- * }
885
- * }
886
- * }
887
- */
888
- errMsg: string
889
- };
890
- export type CheckIsSupportSoterAuthenticationSuccessCallback = (result: CheckIsSupportSoterAuthenticationSuccess) => void;
891
- export type CheckIsSupportSoterAuthenticationFail = UniError;
892
- export type CheckIsSupportSoterAuthenticationFailCallback = (result: CheckIsSupportSoterAuthenticationFail) => void;
893
- export type CheckIsSupportSoterAuthenticationComplete = any;
894
- export type CheckIsSupportSoterAuthenticationCompleteCallback = (result: CheckIsSupportSoterAuthenticationComplete) => void;
895
- export type CheckIsSupportSoterAuthenticationOptions = {
896
- /**
312
+ */
313
+ errMsg: string
314
+ };
315
+ export type CheckIsSupportSoterAuthenticationSuccessCallback = (result: CheckIsSupportSoterAuthenticationSuccess) => void;
316
+ export type CheckIsSupportSoterAuthenticationFail = UniError;
317
+ export type CheckIsSupportSoterAuthenticationFailCallback = (result: CheckIsSupportSoterAuthenticationFail) => void;
318
+ export type CheckIsSupportSoterAuthenticationComplete = any;
319
+ export type CheckIsSupportSoterAuthenticationCompleteCallback = (result: CheckIsSupportSoterAuthenticationComplete) => void;
320
+ export type CheckIsSupportSoterAuthenticationOptions = {
321
+ /**
897
322
  * 接口调用成功的回调函数
898
- * @uniPlatform {
899
- * "mp": {
900
- * "weixin": {
901
- * "hostVer": "√",
902
- * "uniVer": "√",
903
- * "unixVer": "4.41"
904
- * },
905
- * "alipay": {
906
- * "hostVer": "-",
907
- * "uniVer": "-",
908
- * "unixVer": "-"
909
- * },
910
- * "baidu": {
911
- * "hostVer": "-",
912
- * "uniVer": "-",
913
- * "unixVer": "-"
914
- * },
915
- * "toutiao": {
916
- * "hostVer": "-",
917
- * "uniVer": "-",
918
- * "unixVer": "-"
919
- * },
920
- * "lark": {
921
- * "hostVer": "-",
922
- * "uniVer": "-",
923
- * "unixVer": "-"
924
- * },
925
- * "qq": {
926
- * "hostVer": "-",
927
- * "uniVer": "-",
928
- * "unixVer": "-"
929
- * },
930
- * "kuaishou": {
931
- * "hostVer": "-",
932
- * "uniVer": "-",
933
- * "unixVer": "-"
934
- * },
935
- * "jd": {
936
- * "hostVer": "-",
937
- * "uniVer": "-",
938
- * "unixVer": "-"
939
- * }
940
- * }
941
- * }
942
- */
943
- success?: CheckIsSupportSoterAuthenticationSuccessCallback | null,
944
- /**
323
+ */
324
+ success?: CheckIsSupportSoterAuthenticationSuccessCallback | null,
325
+ /**
945
326
  * 接口调用失败的回调函数
946
- * @uniPlatform {
947
- * "mp": {
948
- * "weixin": {
949
- * "hostVer": "√",
950
- * "uniVer": "√",
951
- * "unixVer": "4.41"
952
- * },
953
- * "alipay": {
954
- * "hostVer": "-",
955
- * "uniVer": "-",
956
- * "unixVer": "-"
957
- * },
958
- * "baidu": {
959
- * "hostVer": "-",
960
- * "uniVer": "-",
961
- * "unixVer": "-"
962
- * },
963
- * "toutiao": {
964
- * "hostVer": "-",
965
- * "uniVer": "-",
966
- * "unixVer": "-"
967
- * },
968
- * "lark": {
969
- * "hostVer": "-",
970
- * "uniVer": "-",
971
- * "unixVer": "-"
972
- * },
973
- * "qq": {
974
- * "hostVer": "-",
975
- * "uniVer": "-",
976
- * "unixVer": "-"
977
- * },
978
- * "kuaishou": {
979
- * "hostVer": "-",
980
- * "uniVer": "-",
981
- * "unixVer": "-"
982
- * },
983
- * "jd": {
984
- * "hostVer": "-",
985
- * "uniVer": "-",
986
- * "unixVer": "-"
987
- * }
988
- * }
989
- * }
990
- */
991
- fail?: CheckIsSupportSoterAuthenticationFailCallback | null,
992
- /**
327
+ */
328
+ fail?: CheckIsSupportSoterAuthenticationFailCallback | null,
329
+ /**
993
330
  * 接口调用结束的回调函数(调用成功、失败都会执行)
994
- * @uniPlatform {
995
- * "mp": {
996
- * "weixin": {
997
- * "hostVer": "√",
998
- * "uniVer": "√",
999
- * "unixVer": "4.41"
1000
- * },
1001
- * "alipay": {
1002
- * "hostVer": "-",
1003
- * "uniVer": "-",
1004
- * "unixVer": "-"
1005
- * },
1006
- * "baidu": {
1007
- * "hostVer": "-",
1008
- * "uniVer": "-",
1009
- * "unixVer": "-"
1010
- * },
1011
- * "toutiao": {
1012
- * "hostVer": "-",
1013
- * "uniVer": "-",
1014
- * "unixVer": "-"
1015
- * },
1016
- * "lark": {
1017
- * "hostVer": "-",
1018
- * "uniVer": "-",
1019
- * "unixVer": "-"
1020
- * },
1021
- * "qq": {
1022
- * "hostVer": "-",
1023
- * "uniVer": "-",
1024
- * "unixVer": "-"
1025
- * },
1026
- * "kuaishou": {
1027
- * "hostVer": "-",
1028
- * "uniVer": "-",
1029
- * "unixVer": "-"
1030
- * },
1031
- * "jd": {
1032
- * "hostVer": "-",
1033
- * "uniVer": "-",
1034
- * "unixVer": "-"
1035
- * }
1036
- * }
1037
- * }
1038
- */
1039
- complete?: CheckIsSupportSoterAuthenticationCompleteCallback | null
1040
- };
1041
- export type CheckIsSoterEnrolledInDevice = (options: CheckIsSoterEnrolledInDeviceOptions) => void;
1042
- export type CheckIsSoterEnrolledInDeviceSuccess = {
1043
- /**
1044
- * 是否已录入信息
331
+ */
332
+ complete?: CheckIsSupportSoterAuthenticationCompleteCallback | null
333
+ };
334
+ export type CheckIsSoterEnrolledInDevice = (options: CheckIsSoterEnrolledInDeviceOptions) => void;
335
+ export type CheckIsSoterEnrolledInDeviceSuccess = {
336
+ /**
337
+ * 是否已录入信息
1045
338
  * @type boolean
1046
- * @uniPlatform {
1047
- * "mp": {
1048
- * "weixin": {
1049
- * "hostVer": "√",
1050
- * "uniVer": "√",
1051
- * "unixVer": "4.41"
1052
- * },
1053
- * "alipay": {
1054
- * "hostVer": "-",
1055
- * "uniVer": "-",
1056
- * "unixVer": "-"
1057
- * },
1058
- * "baidu": {
1059
- * "hostVer": "-",
1060
- * "uniVer": "-",
1061
- * "unixVer": "-"
1062
- * },
1063
- * "toutiao": {
1064
- * "hostVer": "-",
1065
- * "uniVer": "-",
1066
- * "unixVer": "-"
1067
- * },
1068
- * "lark": {
1069
- * "hostVer": "-",
1070
- * "uniVer": "-",
1071
- * "unixVer": "-"
1072
- * },
1073
- * "qq": {
1074
- * "hostVer": "-",
1075
- * "uniVer": "-",
1076
- * "unixVer": "-"
1077
- * },
1078
- * "kuaishou": {
1079
- * "hostVer": "-",
1080
- * "uniVer": "-",
1081
- * "unixVer": "-"
1082
- * },
1083
- * "jd": {
1084
- * "hostVer": "-",
1085
- * "uniVer": "-",
1086
- * "unixVer": "-"
1087
- * }
1088
- * }
1089
- * }
1090
- */
1091
- isEnrolled: boolean,
1092
- /**
339
+ */
340
+ isEnrolled: boolean,
341
+ /**
1093
342
  * 错误信息
1094
- * @uniPlatform {
1095
- * "mp": {
1096
- * "weixin": {
1097
- * "hostVer": "√",
1098
- * "uniVer": "√",
1099
- * "unixVer": "4.41"
1100
- * },
1101
- * "alipay": {
1102
- * "hostVer": "-",
1103
- * "uniVer": "-",
1104
- * "unixVer": "-"
1105
- * },
1106
- * "baidu": {
1107
- * "hostVer": "-",
1108
- * "uniVer": "-",
1109
- * "unixVer": "-"
1110
- * },
1111
- * "toutiao": {
1112
- * "hostVer": "-",
1113
- * "uniVer": "-",
1114
- * "unixVer": "-"
1115
- * },
1116
- * "lark": {
1117
- * "hostVer": "-",
1118
- * "uniVer": "-",
1119
- * "unixVer": "-"
1120
- * },
1121
- * "qq": {
1122
- * "hostVer": "-",
1123
- * "uniVer": "-",
1124
- * "unixVer": "-"
1125
- * },
1126
- * "kuaishou": {
1127
- * "hostVer": "-",
1128
- * "uniVer": "-",
1129
- * "unixVer": "-"
1130
- * },
1131
- * "jd": {
1132
- * "hostVer": "-",
1133
- * "uniVer": "-",
1134
- * "unixVer": "-"
1135
- * }
1136
- * }
1137
- * }
1138
- */
1139
- errMsg: string
1140
- };
1141
- export type CheckIsSoterEnrolledInDeviceSuccessCallback = (result: CheckIsSoterEnrolledInDeviceSuccess) => void;
1142
- export type CheckIsSoterEnrolledInDeviceFail = UniError;
1143
- export type CheckIsSoterEnrolledInDeviceFailCallback = (result: CheckIsSoterEnrolledInDeviceFail) => void;
1144
- export type CheckIsSoterEnrolledInDeviceComplete = any;
1145
- export type CheckIsSoterEnrolledInDeviceCompleteCallback = (result: CheckIsSoterEnrolledInDeviceComplete) => void;
1146
- export type CheckIsSoterEnrolledInDeviceOptions = {
1147
- /**
1148
- * 生物认证方式
1149
- * - fingerPrint: 指纹识别
1150
- * - facial: 人脸识别(暂未支持)
343
+ */
344
+ errMsg: string
345
+ };
346
+ export type CheckIsSoterEnrolledInDeviceSuccessCallback = (result: CheckIsSoterEnrolledInDeviceSuccess) => void;
347
+ export type CheckIsSoterEnrolledInDeviceFail = UniError;
348
+ export type CheckIsSoterEnrolledInDeviceFailCallback = (result: CheckIsSoterEnrolledInDeviceFail) => void;
349
+ export type CheckIsSoterEnrolledInDeviceComplete = any;
350
+ export type CheckIsSoterEnrolledInDeviceCompleteCallback = (result: CheckIsSoterEnrolledInDeviceComplete) => void;
351
+ export type CheckIsSoterEnrolledInDeviceOptions = {
352
+ /**
353
+ * 生物认证方式
354
+ * - fingerPrint: 指纹识别
355
+ * - facial: 人脸识别(暂未支持)
1151
356
  * - speech: 声纹识别(暂未支持)
1152
- * @uniPlatform {
1153
- * "mp": {
1154
- * "weixin": {
1155
- * "hostVer": "√",
1156
- * "uniVer": "√",
1157
- * "unixVer": "4.41"
1158
- * },
1159
- * "alipay": {
1160
- * "hostVer": "-",
1161
- * "uniVer": "-",
1162
- * "unixVer": "-"
1163
- * },
1164
- * "baidu": {
1165
- * "hostVer": "-",
1166
- * "uniVer": "-",
1167
- * "unixVer": "-"
1168
- * },
1169
- * "toutiao": {
1170
- * "hostVer": "-",
1171
- * "uniVer": "-",
1172
- * "unixVer": "-"
1173
- * },
1174
- * "lark": {
1175
- * "hostVer": "-",
1176
- * "uniVer": "-",
1177
- * "unixVer": "-"
1178
- * },
1179
- * "qq": {
1180
- * "hostVer": "-",
1181
- * "uniVer": "-",
1182
- * "unixVer": "-"
1183
- * },
1184
- * "kuaishou": {
1185
- * "hostVer": "-",
1186
- * "uniVer": "-",
1187
- * "unixVer": "-"
1188
- * },
1189
- * "jd": {
1190
- * "hostVer": "-",
1191
- * "uniVer": "-",
1192
- * "unixVer": "-"
1193
- * }
1194
- * }
1195
- * }
1196
- */
1197
- checkAuthMode: SoterAuthMode,
1198
- /**
357
+ */
358
+ checkAuthMode: SoterAuthMode,
359
+ /**
1199
360
  * 接口调用成功的回调函数
1200
- * @uniPlatform {
1201
- * "mp": {
1202
- * "weixin": {
1203
- * "hostVer": "√",
1204
- * "uniVer": "√",
1205
- * "unixVer": "4.41"
1206
- * },
1207
- * "alipay": {
1208
- * "hostVer": "-",
1209
- * "uniVer": "-",
1210
- * "unixVer": "-"
1211
- * },
1212
- * "baidu": {
1213
- * "hostVer": "-",
1214
- * "uniVer": "-",
1215
- * "unixVer": "-"
1216
- * },
1217
- * "toutiao": {
1218
- * "hostVer": "-",
1219
- * "uniVer": "-",
1220
- * "unixVer": "-"
1221
- * },
1222
- * "lark": {
1223
- * "hostVer": "-",
1224
- * "uniVer": "-",
1225
- * "unixVer": "-"
1226
- * },
1227
- * "qq": {
1228
- * "hostVer": "-",
1229
- * "uniVer": "-",
1230
- * "unixVer": "-"
1231
- * },
1232
- * "kuaishou": {
1233
- * "hostVer": "-",
1234
- * "uniVer": "-",
1235
- * "unixVer": "-"
1236
- * },
1237
- * "jd": {
1238
- * "hostVer": "-",
1239
- * "uniVer": "-",
1240
- * "unixVer": "-"
1241
- * }
1242
- * }
1243
- * }
1244
- */
1245
- success?: CheckIsSoterEnrolledInDeviceSuccessCallback | null,
1246
- /**
361
+ */
362
+ success?: CheckIsSoterEnrolledInDeviceSuccessCallback | null,
363
+ /**
1247
364
  * 接口调用失败的回调函数
1248
- * @uniPlatform {
1249
- * "mp": {
1250
- * "weixin": {
1251
- * "hostVer": "√",
1252
- * "uniVer": "√",
1253
- * "unixVer": "4.41"
1254
- * },
1255
- * "alipay": {
1256
- * "hostVer": "-",
1257
- * "uniVer": "-",
1258
- * "unixVer": "-"
1259
- * },
1260
- * "baidu": {
1261
- * "hostVer": "-",
1262
- * "uniVer": "-",
1263
- * "unixVer": "-"
1264
- * },
1265
- * "toutiao": {
1266
- * "hostVer": "-",
1267
- * "uniVer": "-",
1268
- * "unixVer": "-"
1269
- * },
1270
- * "lark": {
1271
- * "hostVer": "-",
1272
- * "uniVer": "-",
1273
- * "unixVer": "-"
1274
- * },
1275
- * "qq": {
1276
- * "hostVer": "-",
1277
- * "uniVer": "-",
1278
- * "unixVer": "-"
1279
- * },
1280
- * "kuaishou": {
1281
- * "hostVer": "-",
1282
- * "uniVer": "-",
1283
- * "unixVer": "-"
1284
- * },
1285
- * "jd": {
1286
- * "hostVer": "-",
1287
- * "uniVer": "-",
1288
- * "unixVer": "-"
1289
- * }
1290
- * }
1291
- * }
1292
- */
1293
- fail?: CheckIsSoterEnrolledInDeviceFailCallback | null,
1294
- /**
365
+ */
366
+ fail?: CheckIsSoterEnrolledInDeviceFailCallback | null,
367
+ /**
1295
368
  * 接口调用结束的回调函数(调用成功、失败都会执行)
1296
- * @uniPlatform {
1297
- * "mp": {
1298
- * "weixin": {
1299
- * "hostVer": "√",
1300
- * "uniVer": "√",
1301
- * "unixVer": "4.41"
1302
- * },
1303
- * "alipay": {
1304
- * "hostVer": "-",
1305
- * "uniVer": "-",
1306
- * "unixVer": "-"
1307
- * },
1308
- * "baidu": {
1309
- * "hostVer": "-",
1310
- * "uniVer": "-",
1311
- * "unixVer": "-"
1312
- * },
1313
- * "toutiao": {
1314
- * "hostVer": "-",
1315
- * "uniVer": "-",
1316
- * "unixVer": "-"
1317
- * },
1318
- * "lark": {
1319
- * "hostVer": "-",
1320
- * "uniVer": "-",
1321
- * "unixVer": "-"
1322
- * },
1323
- * "qq": {
1324
- * "hostVer": "-",
1325
- * "uniVer": "-",
1326
- * "unixVer": "-"
1327
- * },
1328
- * "kuaishou": {
1329
- * "hostVer": "-",
1330
- * "uniVer": "-",
1331
- * "unixVer": "-"
1332
- * },
1333
- * "jd": {
1334
- * "hostVer": "-",
1335
- * "uniVer": "-",
1336
- * "unixVer": "-"
1337
- * }
1338
- * }
1339
- * }
1340
- */
1341
- complete?: CheckIsSoterEnrolledInDeviceCompleteCallback | null
1342
- };
369
+ */
370
+ complete?: CheckIsSoterEnrolledInDeviceCompleteCallback | null
371
+ };