@dcloudio/uni-app-x 0.7.38 → 0.7.40

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