@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.
- package/README.md +87 -0
- package/package.json +1 -1
- package/types/dom2-internal/UniCommon.d.ts +7 -2
- package/types/dom2-internal/UniNativeDefines.d.ts +7 -2
- package/types/uni/uts-plugin-api/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +323 -1294
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/interface.d.ts +944 -0
- package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/global.d.ts +16 -6
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/index.d.ts +9 -3
- package/types/uni/uts-plugin-api/lib/uni-compass/utssdk/interface.d.ts +353 -0
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +144 -110
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
- package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/interface.d.ts +418 -0
- package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
- package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +83 -124
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
- package/types/uni/uts-plugin-biz/global.d.ts +9 -0
- package/types/uni/uts-plugin-biz/index.d.ts +9 -0
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/global.d.ts +59 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/index.d.ts +29 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/interface.d.ts +371 -0
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/interface.d.ts +944 -0
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/interface.d.ts +353 -0
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
- package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
- package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
- package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
- package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/global.d.ts +57 -0
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/index.d.ts +28 -0
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/interface.d.ts +1172 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +6 -1
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
- package/types/uni/uts-plugin-component/global.d.ts +8 -1
- package/types/uni/uts-plugin-component/index.d.ts +8 -1
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
- package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +1342 -371
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/interface.d.ts +944 -0
- package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/interface.d.ts +353 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +144 -110
- package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +13 -4
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
- package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/interface.d.ts +420 -0
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +132 -75
- package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +0 -12
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +0 -917
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +0 -1095
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +0 -253
|
@@ -0,0 +1,371 @@
|
|
|
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
|
+
* @uniPlatform {
|
|
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
|
+
* "uniVer": "4.31",
|
|
25
|
+
* "unixVer": "4.61",
|
|
26
|
+
* "unixVaporVer": "5.0"
|
|
27
|
+
* }
|
|
28
|
+
* },
|
|
29
|
+
* "web": {
|
|
30
|
+
* "uniVer": "x",
|
|
31
|
+
* "unixVer": "x"
|
|
32
|
+
* },
|
|
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
|
+
* }
|
|
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
|
+
*
|
|
85
|
+
* @uniPlatform {
|
|
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",
|
|
99
|
+
* "uniVer": "4.31",
|
|
100
|
+
* "unixVer": "4.61",
|
|
101
|
+
* "unixVaporVer": "5.0"
|
|
102
|
+
* }
|
|
103
|
+
* },
|
|
104
|
+
* "web": {
|
|
105
|
+
* "uniVer": "x",
|
|
106
|
+
* "unixVer": "x"
|
|
107
|
+
* },
|
|
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
|
+
* }
|
|
150
|
+
* }
|
|
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
|
+
*
|
|
160
|
+
* @uniPlatform {
|
|
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",
|
|
174
|
+
* "uniVer": "4.31",
|
|
175
|
+
* "unixVer": "4.61",
|
|
176
|
+
* "unixVaporVer": "5.0"
|
|
177
|
+
* }
|
|
178
|
+
* },
|
|
179
|
+
* "web": {
|
|
180
|
+
* "uniVer": "x",
|
|
181
|
+
* "unixVer": "x"
|
|
182
|
+
* },
|
|
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
|
+
* }
|
|
225
|
+
* }
|
|
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
|
+
/**
|
|
250
|
+
* 错误码
|
|
251
|
+
*/
|
|
252
|
+
errCode: number,
|
|
253
|
+
/**
|
|
254
|
+
* 生物认证方式
|
|
255
|
+
* - fingerPrint: 指纹识别
|
|
256
|
+
* - facial: 人脸识别
|
|
257
|
+
* - speech: 声纹识别(暂未支持)
|
|
258
|
+
*/
|
|
259
|
+
authMode: SoterAuthMode,
|
|
260
|
+
/**
|
|
261
|
+
* 在设备安全区域(TEE)内获得的本机安全信息以及本次认证信息
|
|
262
|
+
*/
|
|
263
|
+
resultJSON?: string | null,
|
|
264
|
+
/**
|
|
265
|
+
* 用安全密钥对 resultJSON 的签名(SHA256 with RSA/PSS, saltlen=20)
|
|
266
|
+
*/
|
|
267
|
+
resultJSONSignature?: string | null,
|
|
268
|
+
/**
|
|
269
|
+
* 接口调用结果
|
|
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
|
+
/**
|
|
280
|
+
* 请求使用的可接受的生物认证方式
|
|
281
|
+
*/
|
|
282
|
+
requestAuthModes: SoterAuthMode[],
|
|
283
|
+
/**
|
|
284
|
+
* 挑战因子
|
|
285
|
+
*/
|
|
286
|
+
challenge?: string | null,
|
|
287
|
+
/**
|
|
288
|
+
* 验证描述,即识别过程中显示在界面上的对话框提示内容
|
|
289
|
+
*/
|
|
290
|
+
authContent?: string | null,
|
|
291
|
+
/**
|
|
292
|
+
* 接口调用成功的回调函数
|
|
293
|
+
*/
|
|
294
|
+
success?: StartSoterAuthenticationSuccessCallback | null,
|
|
295
|
+
/**
|
|
296
|
+
* 接口调用失败的回调函数
|
|
297
|
+
*/
|
|
298
|
+
fail?: StartSoterAuthenticationFailCallback | null,
|
|
299
|
+
/**
|
|
300
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
301
|
+
*/
|
|
302
|
+
complete?: StartSoterAuthenticationCompleteCallback | null
|
|
303
|
+
};
|
|
304
|
+
export type CheckIsSupportSoterAuthentication = (options: CheckIsSupportSoterAuthenticationOptions) => void;
|
|
305
|
+
export type CheckIsSupportSoterAuthenticationSuccess = {
|
|
306
|
+
/**
|
|
307
|
+
* 接口调用成功的回调函数
|
|
308
|
+
*/
|
|
309
|
+
supportMode: SoterAuthMode[],
|
|
310
|
+
/**
|
|
311
|
+
* 接口调用结果
|
|
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
|
+
/**
|
|
322
|
+
* 接口调用成功的回调函数
|
|
323
|
+
*/
|
|
324
|
+
success?: CheckIsSupportSoterAuthenticationSuccessCallback | null,
|
|
325
|
+
/**
|
|
326
|
+
* 接口调用失败的回调函数
|
|
327
|
+
*/
|
|
328
|
+
fail?: CheckIsSupportSoterAuthenticationFailCallback | null,
|
|
329
|
+
/**
|
|
330
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
331
|
+
*/
|
|
332
|
+
complete?: CheckIsSupportSoterAuthenticationCompleteCallback | null
|
|
333
|
+
};
|
|
334
|
+
export type CheckIsSoterEnrolledInDevice = (options: CheckIsSoterEnrolledInDeviceOptions) => void;
|
|
335
|
+
export type CheckIsSoterEnrolledInDeviceSuccess = {
|
|
336
|
+
/**
|
|
337
|
+
* 是否已录入信息
|
|
338
|
+
* @type boolean
|
|
339
|
+
*/
|
|
340
|
+
isEnrolled: boolean,
|
|
341
|
+
/**
|
|
342
|
+
* 错误信息
|
|
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: 人脸识别(暂未支持)
|
|
356
|
+
* - speech: 声纹识别(暂未支持)
|
|
357
|
+
*/
|
|
358
|
+
checkAuthMode: SoterAuthMode,
|
|
359
|
+
/**
|
|
360
|
+
* 接口调用成功的回调函数
|
|
361
|
+
*/
|
|
362
|
+
success?: CheckIsSoterEnrolledInDeviceSuccessCallback | null,
|
|
363
|
+
/**
|
|
364
|
+
* 接口调用失败的回调函数
|
|
365
|
+
*/
|
|
366
|
+
fail?: CheckIsSoterEnrolledInDeviceFailCallback | null,
|
|
367
|
+
/**
|
|
368
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
369
|
+
*/
|
|
370
|
+
complete?: CheckIsSoterEnrolledInDeviceCompleteCallback | null
|
|
371
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
CalendarRepeatInterval as CalendarRepeatIntervalOrigin,
|
|
4
|
+
CalendarErrorCode as CalendarErrorCodeOrigin,
|
|
5
|
+
ICalendarError as ICalendarErrorOrigin,
|
|
6
|
+
CalendarSuccess as CalendarSuccessOrigin,
|
|
7
|
+
CalendarFail as CalendarFailOrigin,
|
|
8
|
+
CalendarSuccessCallback as CalendarSuccessCallbackOrigin,
|
|
9
|
+
CalendarFailCallback as CalendarFailCallbackOrigin,
|
|
10
|
+
CalendarComplete as CalendarCompleteOrigin,
|
|
11
|
+
CalendarCompleteCallback as CalendarCompleteCallbackOrigin,
|
|
12
|
+
AddPhoneCalendarOptions as AddPhoneCalendarOptionsOrigin,
|
|
13
|
+
AddPhoneRepeatCalendarOptions as AddPhoneRepeatCalendarOptionsOrigin,
|
|
14
|
+
AddPhoneCalendar as AddPhoneCalendarOrigin,
|
|
15
|
+
AddPhoneRepeatCalendar as AddPhoneRepeatCalendarOrigin,
|
|
16
|
+
Uni as UniOrigin
|
|
17
|
+
} from './interface'
|
|
18
|
+
|
|
19
|
+
declare global {
|
|
20
|
+
type CalendarRepeatInterval = CalendarRepeatIntervalOrigin
|
|
21
|
+
type CalendarErrorCode = CalendarErrorCodeOrigin
|
|
22
|
+
type ICalendarError = ICalendarErrorOrigin
|
|
23
|
+
type CalendarSuccess = CalendarSuccessOrigin
|
|
24
|
+
type CalendarFail = CalendarFailOrigin
|
|
25
|
+
type CalendarSuccessCallback = CalendarSuccessCallbackOrigin
|
|
26
|
+
type CalendarFailCallback = CalendarFailCallbackOrigin
|
|
27
|
+
type CalendarComplete = CalendarCompleteOrigin
|
|
28
|
+
type CalendarCompleteCallback = CalendarCompleteCallbackOrigin
|
|
29
|
+
type AddPhoneCalendarOptions = AddPhoneCalendarOptionsOrigin
|
|
30
|
+
type AddPhoneRepeatCalendarOptions = AddPhoneRepeatCalendarOptionsOrigin
|
|
31
|
+
type AddPhoneCalendar = AddPhoneCalendarOrigin
|
|
32
|
+
type AddPhoneRepeatCalendar = AddPhoneRepeatCalendarOrigin
|
|
33
|
+
interface Uni extends UniOrigin { }
|
|
34
|
+
}
|
|
35
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
export {
|
|
3
|
+
CalendarRepeatInterval,
|
|
4
|
+
CalendarErrorCode,
|
|
5
|
+
ICalendarError,
|
|
6
|
+
CalendarSuccess,
|
|
7
|
+
CalendarFail,
|
|
8
|
+
CalendarSuccessCallback,
|
|
9
|
+
CalendarFailCallback,
|
|
10
|
+
CalendarComplete,
|
|
11
|
+
CalendarCompleteCallback,
|
|
12
|
+
AddPhoneCalendarOptions,
|
|
13
|
+
AddPhoneRepeatCalendarOptions,
|
|
14
|
+
AddPhoneCalendar,
|
|
15
|
+
AddPhoneRepeatCalendar,
|
|
16
|
+
} from './interface'
|
|
17
|
+
|