@dcloudio/uni-app-x 0.7.38 → 0.7.39
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.
- package/package.json +1 -1
- package/types/UniPage.d.ts +4 -0
- package/types/native/CanvasRenderingContext2D.d.ts +1 -1
- package/types/native/IUniElement.d.ts +105 -44
- package/types/native/global.d.ts +14 -8
- package/types/page.d.ts +45 -3
- package/types/uni/env/index.d.ts +81 -81
- package/types/uni/uni-map-tencent-map.d.ts +7 -7
- package/types/uni/uts-plugin-api/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/index.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +73 -73
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +331 -331
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +73 -73
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +628 -628
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +414 -153
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1218 -1987
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +6 -6
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +156 -81
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +315 -315
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +2530 -2126
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +490 -490
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2138 -2005
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +663 -113
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +217 -217
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +809 -809
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +274 -274
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +969 -969
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +106 -106
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +23 -23
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +41 -41
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +88 -88
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1680 -1528
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +16 -16
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3620 -3618
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +621 -621
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +22 -22
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2602 -2391
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +26 -26
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +77 -77
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +857 -857
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +17 -17
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1057 -516
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1660 -1660
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1746 -1746
- package/types/uni/uts-plugin-biz/global.d.ts +1 -0
- package/types/uni/uts-plugin-biz/index.d.ts +1 -0
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +84 -0
- package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/interface.d.ts +46 -46
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +72 -20
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +126 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +63 -12
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +308 -308
- package/types/uni/uts-plugin-extend/global.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/global.d.ts +7 -0
- package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/index.d.ts +0 -0
- package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +77 -77
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +11 -11
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +6 -6
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +1 -1
- package/types/uni-cloud/interface.d.ts +13 -13
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +0 -24
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +0 -11
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +0 -217
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +0 -21
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +0 -9
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +0 -151
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +0 -11
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +0 -4
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +0 -224
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +0 -53
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +0 -25
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +0 -487
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +0 -9
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +0 -165
- /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/global.d.ts +0 -0
- /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/index.d.ts +0 -0
|
@@ -1,224 +1,224 @@
|
|
|
1
1
|
|
|
2
2
|
export interface Uni {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
3
|
+
/**
|
|
4
|
+
* 开始 SOTER 生物认证
|
|
5
|
+
*
|
|
6
|
+
* @tutorial https://uniapp.dcloud.net.cn/api/system/authentication.html#startsoterauthentication
|
|
7
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/authentication.html#startsoterauthentication
|
|
8
|
+
*
|
|
9
|
+
* @uniPlatform {
|
|
10
|
+
* "app": {
|
|
11
|
+
* "android": {
|
|
12
|
+
* "osVer": "5.0",
|
|
13
|
+
* "uniVer": "√",
|
|
14
|
+
* "unixVer": "x"
|
|
15
|
+
* },
|
|
16
|
+
* "ios": {
|
|
17
|
+
* "osVer": "12.0",
|
|
18
|
+
* "uniVer": "√",
|
|
19
|
+
* "unixVer": "x"
|
|
20
|
+
* },
|
|
21
|
+
* "harmony": {
|
|
22
|
+
* "osVer": "3.0",
|
|
23
|
+
* "uniVer": "4.31",
|
|
24
|
+
* "unixVer": "x"
|
|
25
|
+
* }
|
|
26
|
+
* },
|
|
27
|
+
* "web": {
|
|
28
|
+
* "uniVer": "x",
|
|
29
|
+
* "unixVer": "x"
|
|
30
|
+
* },
|
|
31
|
+
* "mp":{
|
|
32
|
+
* weixin: {
|
|
33
|
+
* hostVer: '√',
|
|
34
|
+
* uniVer: '√',
|
|
35
|
+
* unixVer: '4.41'
|
|
36
|
+
* },
|
|
37
|
+
* alipay: {
|
|
38
|
+
* hostVer: 'x',
|
|
39
|
+
* uniVer: 'x',
|
|
40
|
+
* unixVer: 'x'
|
|
41
|
+
* },
|
|
42
|
+
* baidu: {
|
|
43
|
+
* hostVer: 'x',
|
|
44
|
+
* uniVer: 'x',
|
|
45
|
+
* unixVer: 'x'
|
|
46
|
+
* },
|
|
47
|
+
* toutiao: {
|
|
48
|
+
* hostVer: 'x',
|
|
49
|
+
* uniVer: 'x',
|
|
50
|
+
* unixVer: 'x'
|
|
51
|
+
* },
|
|
52
|
+
* lark: {
|
|
53
|
+
* hostVer: 'x',
|
|
54
|
+
* uniVer: 'x',
|
|
55
|
+
* unixVer: 'x'
|
|
56
|
+
* },
|
|
57
|
+
* qq: {
|
|
58
|
+
* hostVer: 'x',
|
|
59
|
+
* uniVer: 'x',
|
|
60
|
+
* unixVer: 'x'
|
|
61
|
+
* },
|
|
62
|
+
* kuaishou: {
|
|
63
|
+
* hostVer: 'x',
|
|
64
|
+
* uniVer: 'x',
|
|
65
|
+
* unixVer: 'x'
|
|
66
|
+
* },
|
|
67
|
+
* jd: {
|
|
68
|
+
* hostVer: 'x',
|
|
69
|
+
* uniVer: 'x',
|
|
70
|
+
* unixVer: 'x'
|
|
71
|
+
* }
|
|
72
|
+
* }
|
|
73
|
+
* }
|
|
74
|
+
*/
|
|
75
|
+
startSoterAuthentication: StartSoterAuthentication;
|
|
76
|
+
/**
|
|
77
|
+
* 获取本机支持的 SOTER 生物认证方式
|
|
78
|
+
*
|
|
79
|
+
* @tutorial https://uniapp.dcloud.net.cn/api/system/authentication.html#checkissupportsoterauthentication
|
|
80
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/authentication.html#checkissupportsoterauthentication
|
|
81
|
+
*
|
|
82
|
+
* @uniPlatform {
|
|
83
|
+
* "app": {
|
|
84
|
+
* "android": {
|
|
85
|
+
* "osVer": "5.0",
|
|
86
|
+
* "uniVer": "√",
|
|
87
|
+
* "unixVer": "x"
|
|
88
|
+
* },
|
|
89
|
+
* "ios": {
|
|
90
|
+
* "osVer": "12.0",
|
|
91
|
+
* "uniVer": "√",
|
|
92
|
+
* "unixVer": "x"
|
|
93
|
+
* },
|
|
94
|
+
* "harmony": {
|
|
95
|
+
* "osVer": "3.0",
|
|
96
|
+
* "uniVer": "4.31",
|
|
97
|
+
* "unixVer": "x"
|
|
98
|
+
* }
|
|
99
|
+
* },
|
|
100
|
+
* "web": {
|
|
101
|
+
* "uniVer": "x",
|
|
102
|
+
* "unixVer": "x"
|
|
103
|
+
* },
|
|
104
|
+
* "mp":{
|
|
105
|
+
* weixin: {
|
|
106
|
+
* hostVer: '√',
|
|
107
|
+
* uniVer: '√',
|
|
108
|
+
* unixVer: '4.41'
|
|
109
|
+
* },
|
|
110
|
+
* alipay: {
|
|
111
|
+
* hostVer: 'x',
|
|
112
|
+
* uniVer: 'x',
|
|
113
|
+
* unixVer: 'x'
|
|
114
|
+
* },
|
|
115
|
+
* baidu: {
|
|
116
|
+
* hostVer: 'x',
|
|
117
|
+
* uniVer: 'x',
|
|
118
|
+
* unixVer: 'x'
|
|
119
|
+
* },
|
|
120
|
+
* toutiao: {
|
|
121
|
+
* hostVer: 'x',
|
|
122
|
+
* uniVer: 'x',
|
|
123
|
+
* unixVer: 'x'
|
|
124
|
+
* },
|
|
125
|
+
* lark: {
|
|
126
|
+
* hostVer: 'x',
|
|
127
|
+
* uniVer: 'x',
|
|
128
|
+
* unixVer: 'x'
|
|
129
|
+
* },
|
|
130
|
+
* qq: {
|
|
131
|
+
* hostVer: 'x',
|
|
132
|
+
* uniVer: 'x',
|
|
133
|
+
* unixVer: 'x'
|
|
134
|
+
* },
|
|
135
|
+
* kuaishou: {
|
|
136
|
+
* hostVer: 'x',
|
|
137
|
+
* uniVer: 'x',
|
|
138
|
+
* unixVer: 'x'
|
|
139
|
+
* },
|
|
140
|
+
* jd: {
|
|
141
|
+
* hostVer: 'x',
|
|
142
|
+
* uniVer: 'x',
|
|
143
|
+
* unixVer: 'x'
|
|
144
|
+
* }
|
|
145
|
+
* }
|
|
146
|
+
* }
|
|
147
|
+
*/
|
|
148
|
+
checkIsSupportSoterAuthentication: CheckIsSupportSoterAuthentication;
|
|
149
|
+
/**
|
|
150
|
+
* 获取设备内是否录入如指纹等生物信息
|
|
151
|
+
*
|
|
152
|
+
* @tutorial https://uniapp.dcloud.net.cn/api/system/authentication.html#checkissoterenrolledindevice
|
|
153
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/authentication.html#checkissoterenrolledindevice
|
|
154
|
+
*
|
|
155
|
+
* @uniPlatform {
|
|
156
|
+
* "app": {
|
|
157
|
+
* "android": {
|
|
158
|
+
* "osVer": "5.0",
|
|
159
|
+
* "uniVer": "√",
|
|
160
|
+
* "unixVer": "x"
|
|
161
|
+
* },
|
|
162
|
+
* "ios": {
|
|
163
|
+
* "osVer": "12.0",
|
|
164
|
+
* "uniVer": "√",
|
|
165
|
+
* "unixVer": "x"
|
|
166
|
+
* },
|
|
167
|
+
* "harmony": {
|
|
168
|
+
* "osVer": "3.0",
|
|
169
|
+
* "uniVer": "4.31",
|
|
170
|
+
* "unixVer": "x"
|
|
171
|
+
* }
|
|
172
|
+
* },
|
|
173
|
+
* "web": {
|
|
174
|
+
* "uniVer": "x",
|
|
175
|
+
* "unixVer": "x"
|
|
176
|
+
* },
|
|
177
|
+
* "mp":{
|
|
178
|
+
* weixin: {
|
|
179
|
+
* hostVer: '√',
|
|
180
|
+
* uniVer: '√',
|
|
181
|
+
* unixVer: '4.41'
|
|
182
|
+
* },
|
|
183
|
+
* alipay: {
|
|
184
|
+
* hostVer: 'x',
|
|
185
|
+
* uniVer: 'x',
|
|
186
|
+
* unixVer: 'x'
|
|
187
|
+
* },
|
|
188
|
+
* baidu: {
|
|
189
|
+
* hostVer: 'x',
|
|
190
|
+
* uniVer: 'x',
|
|
191
|
+
* unixVer: 'x'
|
|
192
|
+
* },
|
|
193
|
+
* toutiao: {
|
|
194
|
+
* hostVer: 'x',
|
|
195
|
+
* uniVer: 'x',
|
|
196
|
+
* unixVer: 'x'
|
|
197
|
+
* },
|
|
198
|
+
* lark: {
|
|
199
|
+
* hostVer: 'x',
|
|
200
|
+
* uniVer: 'x',
|
|
201
|
+
* unixVer: 'x'
|
|
202
|
+
* },
|
|
203
|
+
* qq: {
|
|
204
|
+
* hostVer: 'x',
|
|
205
|
+
* uniVer: 'x',
|
|
206
|
+
* unixVer: 'x'
|
|
207
|
+
* },
|
|
208
|
+
* kuaishou: {
|
|
209
|
+
* hostVer: 'x',
|
|
210
|
+
* uniVer: 'x',
|
|
211
|
+
* unixVer: 'x'
|
|
212
|
+
* },
|
|
213
|
+
* jd: {
|
|
214
|
+
* hostVer: 'x',
|
|
215
|
+
* uniVer: 'x',
|
|
216
|
+
* unixVer: 'x'
|
|
217
|
+
* }
|
|
218
|
+
* }
|
|
219
|
+
* }
|
|
220
|
+
*/
|
|
221
|
+
checkIsSoterEnrolledInDevice: CheckIsSoterEnrolledInDevice;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
export type StartSoterAuthentication = (options: StartSoterAuthenticationOptions) => void;
|
|
@@ -226,92 +226,92 @@ export type StartSoterAuthentication = (options: StartSoterAuthenticationOptions
|
|
|
226
226
|
* 生物认证方式
|
|
227
227
|
*/
|
|
228
228
|
export type SoterAuthMode =
|
|
229
|
-
/**
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
'fingerPrint' |
|
|
233
|
-
/**
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
'facial' |
|
|
237
|
-
/**
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
'speech';
|
|
229
|
+
/**
|
|
230
|
+
* 指纹识别
|
|
231
|
+
*/
|
|
232
|
+
'fingerPrint' |
|
|
233
|
+
/**
|
|
234
|
+
* 人脸识别(暂未支持)
|
|
235
|
+
*/
|
|
236
|
+
'facial' |
|
|
237
|
+
/**
|
|
238
|
+
* 声纹识别(暂未支持)
|
|
239
|
+
*/
|
|
240
|
+
'speech';
|
|
241
241
|
|
|
242
242
|
export type StartSoterAuthenticationSuccess = {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
243
|
+
/**
|
|
244
|
+
* 错误码
|
|
245
|
+
*/
|
|
246
|
+
errCode: number,
|
|
247
|
+
/**
|
|
248
|
+
* 生物认证方式
|
|
249
|
+
* - fingerPrint: 指纹识别
|
|
250
|
+
* - facial: 人脸识别(暂未支持)
|
|
251
|
+
* - speech: 声纹识别(暂未支持)
|
|
252
|
+
*/
|
|
253
|
+
authMode: SoterAuthMode,
|
|
254
|
+
/**
|
|
255
|
+
* 在设备安全区域(TEE)内获得的本机安全信息以及本次认证信息
|
|
256
|
+
*/
|
|
257
|
+
resultJSON?: string | null,
|
|
258
|
+
/**
|
|
259
|
+
* 用SOTER安全密钥对 resultJSON 的签名(SHA256 with RSA/PSS, saltlen=20)
|
|
260
|
+
*/
|
|
261
|
+
resultJSONSignature?: string | null,
|
|
262
|
+
/**
|
|
263
|
+
* 接口调用结果
|
|
264
|
+
*/
|
|
265
|
+
errMsg: string
|
|
266
266
|
};
|
|
267
267
|
export type StartSoterAuthenticationSuccessCallback = (result: StartSoterAuthenticationSuccess) => void;
|
|
268
268
|
export type StartSoterAuthenticationFail = UniError;
|
|
269
269
|
export type UniError = {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
270
|
+
errSubject: string,
|
|
271
|
+
errCode: number,
|
|
272
|
+
errMsg: string,
|
|
273
|
+
data?: object | null,
|
|
274
|
+
cause?: any | null
|
|
275
275
|
};
|
|
276
276
|
export type StartSoterAuthenticationFailCallback = (result: StartSoterAuthenticationFail) => void;
|
|
277
277
|
export type StartSoterAuthenticationComplete = any;
|
|
278
278
|
export type StartSoterAuthenticationCompleteCallback = (result: StartSoterAuthenticationComplete) => void;
|
|
279
279
|
export type StartSoterAuthenticationOptions = {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
280
|
+
/**
|
|
281
|
+
* 请求使用的可接受的生物认证方式
|
|
282
|
+
*/
|
|
283
|
+
requestAuthModes: SoterAuthMode[],
|
|
284
|
+
/**
|
|
285
|
+
* 挑战因子
|
|
286
|
+
*/
|
|
287
|
+
challenge?: string | null,
|
|
288
|
+
/**
|
|
289
|
+
* 验证描述,即识别过程中显示在界面上的对话框提示内容
|
|
290
|
+
*/
|
|
291
|
+
authContent?: string | null,
|
|
292
|
+
/**
|
|
293
|
+
* 接口调用成功的回调函数
|
|
294
|
+
*/
|
|
295
|
+
success?: StartSoterAuthenticationSuccessCallback | null,
|
|
296
|
+
/**
|
|
297
|
+
* 接口调用失败的回调函数
|
|
298
|
+
*/
|
|
299
|
+
fail?: StartSoterAuthenticationFailCallback | null,
|
|
300
|
+
/**
|
|
301
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
302
|
+
*/
|
|
303
|
+
complete?: StartSoterAuthenticationCompleteCallback | null
|
|
304
304
|
};
|
|
305
305
|
export type CheckIsSupportSoterAuthentication = (options: CheckIsSupportSoterAuthenticationOptions) => void;
|
|
306
306
|
export type CheckIsSupportSoterAuthenticationSuccess = {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
307
|
+
/**
|
|
308
|
+
* 接口调用成功的回调函数
|
|
309
|
+
*/
|
|
310
|
+
supportMode: SoterAuthMode[],
|
|
311
|
+
/**
|
|
312
|
+
* 接口调用结果
|
|
313
|
+
*/
|
|
314
|
+
errMsg: string
|
|
315
315
|
};
|
|
316
316
|
export type CheckIsSupportSoterAuthenticationSuccessCallback = (result: CheckIsSupportSoterAuthenticationSuccess) => void;
|
|
317
317
|
export type CheckIsSupportSoterAuthenticationFail = UniError;
|
|
@@ -319,30 +319,30 @@ export type CheckIsSupportSoterAuthenticationFailCallback = (result: CheckIsSupp
|
|
|
319
319
|
export type CheckIsSupportSoterAuthenticationComplete = any;
|
|
320
320
|
export type CheckIsSupportSoterAuthenticationCompleteCallback = (result: CheckIsSupportSoterAuthenticationComplete) => void;
|
|
321
321
|
export type CheckIsSupportSoterAuthenticationOptions = {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
322
|
+
/**
|
|
323
|
+
* 接口调用成功的回调函数
|
|
324
|
+
*/
|
|
325
|
+
success?: CheckIsSupportSoterAuthenticationSuccessCallback | null,
|
|
326
|
+
/**
|
|
327
|
+
* 接口调用失败的回调函数
|
|
328
|
+
*/
|
|
329
|
+
fail?: CheckIsSupportSoterAuthenticationFailCallback | null,
|
|
330
|
+
/**
|
|
331
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
332
|
+
*/
|
|
333
|
+
complete?: CheckIsSupportSoterAuthenticationCompleteCallback | null
|
|
334
334
|
};
|
|
335
335
|
export type CheckIsSoterEnrolledInDevice = (options: CheckIsSoterEnrolledInDeviceOptions) => void;
|
|
336
336
|
export type CheckIsSoterEnrolledInDeviceSuccess = {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
337
|
+
/**
|
|
338
|
+
* 是否已录入信息
|
|
339
|
+
* @type boolean
|
|
340
|
+
*/
|
|
341
|
+
isEnrolled: boolean,
|
|
342
|
+
/**
|
|
343
|
+
* 错误信息
|
|
344
|
+
*/
|
|
345
|
+
errMsg: string
|
|
346
346
|
};
|
|
347
347
|
export type CheckIsSoterEnrolledInDeviceSuccessCallback = (result: CheckIsSoterEnrolledInDeviceSuccess) => void;
|
|
348
348
|
export type CheckIsSoterEnrolledInDeviceFail = UniError;
|
|
@@ -350,23 +350,23 @@ export type CheckIsSoterEnrolledInDeviceFailCallback = (result: CheckIsSoterEnro
|
|
|
350
350
|
export type CheckIsSoterEnrolledInDeviceComplete = any;
|
|
351
351
|
export type CheckIsSoterEnrolledInDeviceCompleteCallback = (result: CheckIsSoterEnrolledInDeviceComplete) => void;
|
|
352
352
|
export type CheckIsSoterEnrolledInDeviceOptions = {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
353
|
+
/**
|
|
354
|
+
* 生物认证方式
|
|
355
|
+
* - fingerPrint: 指纹识别
|
|
356
|
+
* - facial: 人脸识别(暂未支持)
|
|
357
|
+
* - speech: 声纹识别(暂未支持)
|
|
358
|
+
*/
|
|
359
|
+
checkAuthMode: SoterAuthMode,
|
|
360
|
+
/**
|
|
361
|
+
* 接口调用成功的回调函数
|
|
362
|
+
*/
|
|
363
|
+
success?: CheckIsSoterEnrolledInDeviceSuccessCallback | null,
|
|
364
|
+
/**
|
|
365
|
+
* 接口调用失败的回调函数
|
|
366
|
+
*/
|
|
367
|
+
fail?: CheckIsSoterEnrolledInDeviceFailCallback | null,
|
|
368
|
+
/**
|
|
369
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
370
|
+
*/
|
|
371
|
+
complete?: CheckIsSoterEnrolledInDeviceCompleteCallback | null
|
|
372
372
|
};
|