@dcloudio/uni-app-x 0.7.24 → 0.7.26

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 (338) hide show
  1. package/.prettierrc +5 -5
  2. package/README.md +1 -1
  3. package/index.d.ts +1 -1
  4. package/options.d.ts +9 -9
  5. package/package.json +27 -27
  6. package/types/app.d.ts +1002 -1002
  7. package/types/index.d.ts +7 -7
  8. package/types/native/AsyncApiResult.d.ts +7 -7
  9. package/types/native/CSSStyleDeclaration.d.ts +25 -25
  10. package/types/native/CanvasRenderingContext2D.d.ts +3635 -3634
  11. package/types/native/DOMRect.d.ts +56 -56
  12. package/types/native/DrawableContext.d.ts +162 -162
  13. package/types/native/INavigationBar.d.ts +22 -22
  14. package/types/native/IUniElement.d.ts +2928 -2928
  15. package/types/native/IUniError.d.ts +20 -20
  16. package/types/native/IUniForm.d.ts +9 -9
  17. package/types/native/IUniNativeViewElement.d.ts +124 -124
  18. package/types/native/NativeLoadFontFaceOptions.d.ts +11 -11
  19. package/types/native/NodeData.d.ts +22 -22
  20. package/types/native/PageNode.d.ts +6 -6
  21. package/types/native/Path2D.d.ts +269 -269
  22. package/types/native/SnapshotOptions.d.ts +63 -63
  23. package/types/native/SourceError.d.ts +46 -46
  24. package/types/native/UTSAndroidHookProxy.d.ts +14 -14
  25. package/types/native/UniAggregateError.d.ts +19 -19
  26. package/types/native/UniCallbackWrapper.d.ts +7 -7
  27. package/types/native/UniCanvasElement.d.ts +9 -9
  28. package/types/native/UniCustomEvent.d.ts +24 -24
  29. package/types/native/UniDocument.d.ts +83 -83
  30. package/types/native/UniElement.d.ts +79 -79
  31. package/types/native/UniError.d.ts +70 -70
  32. package/types/native/UniEvent.d.ts +92 -92
  33. package/types/native/UniFormControl.d.ts +8 -8
  34. package/types/native/UniFormControlElement.d.ts +14 -14
  35. package/types/native/UniImageErrorEvent.d.ts +33 -33
  36. package/types/native/UniImageLoadEvent.d.ts +37 -37
  37. package/types/native/UniInputBlurEvent.d.ts +36 -36
  38. package/types/native/UniInputConfirmEvent.d.ts +30 -30
  39. package/types/native/UniInputEvent.d.ts +38 -38
  40. package/types/native/UniInputFocusEvent.d.ts +53 -53
  41. package/types/native/{UniApp.d.ts → UniNativeApp.d.ts} +205 -205
  42. package/types/native/UniNativePage.d.ts +270 -270
  43. package/types/native/UniNestedPreScrollEvent.d.ts +45 -45
  44. package/types/native/UniPageEvent.d.ts +10 -10
  45. package/types/native/UniPageManager.d.ts +27 -27
  46. package/types/native/UniPageScrollEvent.d.ts +13 -13
  47. package/types/native/UniPointerEvent.d.ts +74 -74
  48. package/types/native/UniProvider.d.ts +32 -32
  49. package/types/native/UniRefresherEvent.d.ts +18 -18
  50. package/types/native/UniResizeEvent.d.ts +34 -34
  51. package/types/native/UniResizeObserver.d.ts +184 -184
  52. package/types/native/UniRichTextItemClickEvent.d.ts +41 -41
  53. package/types/native/UniScrollEvent.d.ts +42 -42
  54. package/types/native/UniScrollToLowerEvent.d.ts +23 -23
  55. package/types/native/UniScrollToUpperEvent.d.ts +23 -23
  56. package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
  57. package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
  58. package/types/native/UniSwiperAnimationFinishEvent.d.ts +44 -44
  59. package/types/native/UniSwiperChangeEvent.d.ts +44 -44
  60. package/types/native/UniSwiperTransitionEvent.d.ts +24 -24
  61. package/types/native/UniTabTapEvent.d.ts +18 -18
  62. package/types/native/UniTabsElement.d.ts +59 -59
  63. package/types/native/UniTextElement.d.ts +34 -34
  64. package/types/native/UniTextareaFocusEvent.d.ts +54 -54
  65. package/types/native/UniTouchEvent.d.ts +64 -64
  66. package/types/native/UniVideoElement.d.ts +83 -83
  67. package/types/native/UniWebViewDownloadEvent.d.ts +52 -52
  68. package/types/native/UniWebViewElement.d.ts +10 -10
  69. package/types/native/UniWebViewErrorEvent.d.ts +59 -59
  70. package/types/native/UniWebViewLoadEvent.d.ts +41 -41
  71. package/types/native/UniWebViewLoadingEvent.d.ts +41 -41
  72. package/types/native/UniWebViewMessageEvent.d.ts +36 -36
  73. package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
  74. package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
  75. package/types/native/WebViewStyles.d.ts +20 -20
  76. package/types/native/global.d.ts +616 -616
  77. package/types/native/index.d.ts +71 -71
  78. package/types/native-global/index.d.ts +1 -1
  79. package/types/page.d.ts +1872 -1682
  80. package/types/process.d.ts +5 -5
  81. package/types/uni/base/index.d.ts +3 -3
  82. package/types/uni/env/index.d.ts +103 -103
  83. package/types/uni/global.d.ts +6 -6
  84. package/types/uni/index.d.ts +4 -4
  85. package/types/uni/uts-plugin-api/global.d.ts +60 -58
  86. package/types/uni/uts-plugin-api/index.d.ts +60 -58
  87. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +26 -26
  88. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -12
  89. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +231 -231
  90. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -10
  91. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -4
  92. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -77
  93. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +60 -60
  94. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +29 -29
  95. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +171 -171
  96. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -10
  97. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -4
  98. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -77
  99. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +22 -22
  100. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +10 -10
  101. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +332 -332
  102. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -40
  103. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -19
  104. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -203
  105. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +12 -12
  106. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +5 -5
  107. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1733 -1733
  108. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -20
  109. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -9
  110. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -152
  111. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
  112. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
  113. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -61
  114. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
  115. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
  116. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +464 -464
  117. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
  118. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
  119. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +137 -137
  120. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -28
  121. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -13
  122. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1341 -1366
  123. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +18 -16
  124. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +8 -7
  125. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +312 -305
  126. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
  127. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
  128. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +97 -97
  129. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -80
  130. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -39
  131. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -174
  132. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +150 -142
  133. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +74 -70
  134. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +1992 -1881
  135. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
  136. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
  137. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
  138. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
  139. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +455 -455
  140. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
  141. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
  142. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +818 -818
  143. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +12 -12
  144. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +5 -5
  145. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +297 -297
  146. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
  147. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
  148. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +657 -657
  149. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
  150. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
  151. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +81 -81
  152. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -12
  153. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -5
  154. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +155 -155
  155. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
  156. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
  157. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +159 -159
  158. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -24
  159. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -11
  160. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +1008 -1008
  161. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +8 -8
  162. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +4 -4
  163. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
  164. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -8
  165. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -4
  166. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +32 -32
  167. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +15 -15
  168. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
  169. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
  170. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +163 -163
  171. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +36 -36
  172. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +17 -17
  173. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +634 -521
  174. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/global.d.ts +16 -16
  175. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +7 -7
  176. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +980 -980
  177. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +30 -30
  178. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +14 -14
  179. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +2139 -2138
  180. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
  181. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
  182. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +207 -207
  183. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
  184. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
  185. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
  186. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
  187. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +169 -169
  188. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -22
  189. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -10
  190. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -60
  191. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +26 -26
  192. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +12 -12
  193. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +581 -581
  194. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -24
  195. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -11
  196. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -100
  197. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +196 -160
  198. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +97 -79
  199. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1657 -1386
  200. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +68 -68
  201. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +33 -33
  202. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +1002 -1002
  203. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +72 -72
  204. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +35 -35
  205. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1539 -1539
  206. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/global.d.ts +66 -0
  207. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/index.d.ts +32 -0
  208. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1592 -0
  209. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/global.d.ts +8 -0
  210. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/index.d.ts +4 -0
  211. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/interface.d.ts +1 -0
  212. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
  213. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
  214. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -24
  215. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -11
  216. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -70
  217. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +26 -26
  218. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +12 -12
  219. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +153 -153
  220. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -32
  221. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -15
  222. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +527 -527
  223. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -8
  224. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -4
  225. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -8
  226. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -4
  227. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +78 -78
  228. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +38 -38
  229. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +28 -28
  230. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +13 -13
  231. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +189 -189
  232. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
  233. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
  234. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2695 -2695
  235. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
  236. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
  237. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +38 -38
  238. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -24
  239. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -11
  240. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -73
  241. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +22 -22
  242. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +10 -10
  243. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +120 -120
  244. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
  245. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
  246. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +600 -600
  247. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +148 -148
  248. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +73 -73
  249. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +1106 -1106
  250. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -42
  251. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -20
  252. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -112
  253. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -55
  254. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
  255. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
  256. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +854 -854
  257. package/types/uni/uts-plugin-biz/global.d.ts +4 -4
  258. package/types/uni/uts-plugin-biz/index.d.ts +4 -4
  259. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +44 -36
  260. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +21 -17
  261. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +224 -141
  262. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
  263. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
  264. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +160 -160
  265. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +60 -60
  266. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +29 -29
  267. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +46 -46
  268. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +22 -22
  269. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +207 -207
  270. package/types/uni/uts-plugin-component/global.d.ts +1 -1
  271. package/types/uni/uts-plugin-component/index.d.ts +1 -1
  272. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +64 -64
  273. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +31 -31
  274. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +522 -522
  275. package/types/uni/uts-plugin-extend/README.md +3 -3
  276. package/types/uni/uts-plugin-extend/global.d.ts +14 -14
  277. package/types/uni/uts-plugin-extend/index.d.ts +14 -14
  278. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -12
  279. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -1
  280. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -365
  281. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -23
  282. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -10
  283. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -710
  284. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -21
  285. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -9
  286. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -151
  287. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -25
  288. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -11
  289. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -363
  290. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -11
  291. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -4
  292. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -224
  293. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -53
  294. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -25
  295. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +487 -487
  296. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -13
  297. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -5
  298. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -126
  299. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -7
  300. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -1
  301. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -296
  302. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -15
  303. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -1
  304. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -229
  305. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -14
  306. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -1
  307. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -559
  308. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -9
  309. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -1
  310. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -163
  311. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -21
  312. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -9
  313. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -143
  314. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -7
  315. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -1
  316. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -106
  317. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -9
  318. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -1
  319. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -165
  320. package/types/uni-cloud/index.d.ts +67 -67
  321. package/types/uni-cloud/interface.d.ts +987 -987
  322. package/types/uni-cloud/unicloud-db/index.ts +317 -317
  323. package/types/uni-global/index.d.ts +1 -1
  324. package/types/vue/CheckboxGroupChangeEvent.d.ts +41 -41
  325. package/types/vue/LifeCycle.d.ts +55 -55
  326. package/types/vue/PickerViewChangeEvent.d.ts +41 -41
  327. package/types/vue/ProgressActiveendEvent.d.ts +32 -32
  328. package/types/vue/RadioGroupChangeEvent.d.ts +41 -41
  329. package/types/vue/SliderChangeEvent.d.ts +35 -35
  330. package/types/vue/SwitchChangeEvent.d.ts +32 -32
  331. package/types/vue/UniCanvasElement.d.ts +275 -275
  332. package/types/vue/UniCloudDBElement.d.ts +217 -217
  333. package/types/vue/UniFormElement.d.ts +54 -54
  334. package/types/vue/UniNavigatorElement.d.ts +11 -11
  335. package/types/vue/global.d.ts +191 -191
  336. package/types/vue/index.d.ts +10 -10
  337. package/types/vue-global/index.d.ts +1 -1
  338. package/uts-plugin.d.ts +27 -27
@@ -0,0 +1,1592 @@
1
+ export interface Uni {
2
+ /**
3
+ * 登录
4
+ *
5
+ * @tutorial https://uniapp.dcloud.net.cn/api/plugins/login.html#login
6
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/plugins/login.html#login
7
+ *
8
+ * @uniPlatform {
9
+ * "app": {
10
+ * "android": {
11
+ * "osVer": "5.0",
12
+ * "uniVer": "√",
13
+ * "unixVer": "x"
14
+ * },
15
+ * "ios": {
16
+ * "osVer": "12.0",
17
+ * "uniVer": "√",
18
+ * "unixVer": "x"
19
+ * },
20
+ * "harmony": {
21
+ * "osVer": "3.0",
22
+ * "uniVer": "4.27",
23
+ * "unixVer": "x"
24
+ * }
25
+ * },
26
+ * "mp": {
27
+ * "weixin": {
28
+ * "hostVer": "√",
29
+ * "uniVer": "√",
30
+ * "unixVer": "x"
31
+ * },
32
+ * "alipay": {
33
+ * "hostVer": "√",
34
+ * "uniVer": "√",
35
+ * "unixVer": "x"
36
+ * },
37
+ * "baidu": {
38
+ * "hostVer": "√",
39
+ * "uniVer": "√",
40
+ * "unixVer": "x"
41
+ * },
42
+ * "toutiao": {
43
+ * "hostVer": "√",
44
+ * "uniVer": "√",
45
+ * "unixVer": "x"
46
+ * },
47
+ * "lark": {
48
+ * "hostVer": "√",
49
+ * "uniVer": "√",
50
+ * "unixVer": "x"
51
+ * },
52
+ * "qq": {
53
+ * "hostVer": "√",
54
+ * "uniVer": "√",
55
+ * "unixVer": "x"
56
+ * },
57
+ * "kuaishou": {
58
+ * "hostVer": "√",
59
+ * "uniVer": "√",
60
+ * "unixVer": "x"
61
+ * },
62
+ * "jd": {
63
+ * "hostVer": "√",
64
+ * "uniVer": "√",
65
+ * "unixVer": "x"
66
+ * },
67
+ * "360": {
68
+ * "hostVer": "√",
69
+ * "uniVer": "√",
70
+ * "unixVer": "x"
71
+ * }
72
+ * },
73
+ * "quickapp": {
74
+ * "uniVer": "√",
75
+ * "unixVer": "√"
76
+ * },
77
+ * "web": {
78
+ * "uniVer": "x",
79
+ * "unixVer": "x"
80
+ * }
81
+ * }
82
+ */
83
+ login: Login;
84
+ /**
85
+ * 获取用户信息
86
+ *
87
+ * @tutorial https://uniapp.dcloud.net.cn/api/plugins/login.html#getuserinfo
88
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/plugins/login.html#getuserinfo
89
+ *
90
+ * @uniPlatform {
91
+ * "app": {
92
+ * "android": {
93
+ * "osVer": "5.0",
94
+ * "uniVer": "√",
95
+ * "unixVer": "x"
96
+ * },
97
+ * "ios": {
98
+ * "osVer": "12.0",
99
+ * "uniVer": "√",
100
+ * "unixVer": "x"
101
+ * },
102
+ * "harmony": {
103
+ * "osVer": "3.0",
104
+ * "uniVer": "4.27",
105
+ * "unixVer": "x"
106
+ * }
107
+ * },
108
+ * "mp": {
109
+ * "weixin": {
110
+ * "hostVer": "√",
111
+ * "uniVer": "√",
112
+ * "unixVer": "x"
113
+ * },
114
+ * "alipay": {
115
+ * "hostVer": "√",
116
+ * "uniVer": "√",
117
+ * "unixVer": "x"
118
+ * },
119
+ * "baidu": {
120
+ * "hostVer": "√",
121
+ * "uniVer": "√",
122
+ * "unixVer": "x"
123
+ * },
124
+ * "toutiao": {
125
+ * "hostVer": "√",
126
+ * "uniVer": "√",
127
+ * "unixVer": "x"
128
+ * },
129
+ * "lark": {
130
+ * "hostVer": "√",
131
+ * "uniVer": "√",
132
+ * "unixVer": "x"
133
+ * },
134
+ * "qq": {
135
+ * "hostVer": "√",
136
+ * "uniVer": "√",
137
+ * "unixVer": "x"
138
+ * },
139
+ * "kuaishou": {
140
+ * "hostVer": "√",
141
+ * "uniVer": "√",
142
+ * "unixVer": "x"
143
+ * },
144
+ * "jd": {
145
+ * "hostVer": "√",
146
+ * "uniVer": "√",
147
+ * "unixVer": "x"
148
+ * },
149
+ * "360": {
150
+ * "hostVer": "√",
151
+ * "uniVer": "√",
152
+ * "unixVer": "x"
153
+ * }
154
+ * },
155
+ * "quickapp": {
156
+ * "uniVer": "√",
157
+ * "unixVer": "√"
158
+ * },
159
+ * "web": {
160
+ * "uniVer": "x",
161
+ * "unixVer": "x"
162
+ * }
163
+ * }
164
+ */
165
+ getUserInfo: GetUserInfo;
166
+ }
167
+ export interface UniOAuthProvider extends UniProvider {
168
+ login(options : LoginOptions) : void;
169
+ getUserInfo(options : GetUserInfoOptions) : void;
170
+ }
171
+ export type Login = (options: LoginOptions) => void;
172
+
173
+ export type AppleLoginAppleInfo = {
174
+ /**
175
+ * 应用程序用来与服务器交互的令牌
176
+ */
177
+ authorizationCode?: string | null,
178
+ /**
179
+ * 返回身份的全名
180
+ */
181
+ fullName?: any | null,
182
+ /**
183
+ * 一个JSON Web令牌(JWT),可以安全地将用户信息传递给应用程序
184
+ */
185
+ identityToken?: string | null,
186
+ /**
187
+ * 指示用户是否为真人
188
+ */
189
+ realUserStatus?: number | null,
190
+ /**
191
+ * 验证用户的标识符
192
+ */
193
+ user?: string | null
194
+ };
195
+ export type LoginSuccess = {
196
+ /**
197
+ * 描述信息
198
+ */
199
+ errMsg: string,
200
+ /**
201
+ * 登录服务商提供的登录信息,服务商不同返回的结果不完全相同
202
+ */
203
+ authResult: any,
204
+ /**
205
+ * 小程序用户临时登录凭证
206
+ */
207
+ code: string,
208
+ /**
209
+ * 头条小程序当前设备标识
210
+ */
211
+ anonymousCode?: string | null,
212
+ /**
213
+ * 支付宝小程序授权码
214
+ */
215
+ authCode?: string | null,
216
+ /**
217
+ * 支付宝小程序登录失败的授权类型,key是授权失败的 scope,value 是对应的错误码
218
+ */
219
+ authErrorScope?: any | null,
220
+ /**
221
+ * 支付宝小程序登录成功的授权 scope
222
+ */
223
+ authSucessScope?: (string[]) | null,
224
+ /**
225
+ * 苹果登录成功返回的信息
226
+ */
227
+ appleInfo?: AppleLoginAppleInfo | null
228
+ };
229
+ export type LoginSuccessCallback = (result: LoginSuccess) => void;
230
+ export type LoginFail = IUniError;
231
+ export type LoginFailCallback = (result: LoginFail) => void;
232
+ export type LoginComplete = any;
233
+ export type LoginCompleteCallback = (result: LoginComplete) => void;
234
+ export type LoginOptions = {
235
+ /**
236
+ * 授权登录服务提供商,通过uni.getProvider获取,如果不设置则弹出分享列表选择界面
237
+ *
238
+ * @uniPlatform {
239
+ * "app": {
240
+ * "android": {
241
+ * "osVer": "5.0",
242
+ * "uniVer": "√",
243
+ * "unixVer": "x"
244
+ * },
245
+ * "ios": {
246
+ * "osVer": "12.0",
247
+ * "uniVer": "√",
248
+ * "unixVer": "x"
249
+ * },
250
+ * "harmony": {
251
+ * "osVer": "3.0",
252
+ * "uniVer": "4.27",
253
+ * "unixVer": "x"
254
+ * }
255
+ * },
256
+ * "mp": {
257
+ * "weixin": {
258
+ * "hostVer": "x",
259
+ * "uniVer": "x",
260
+ * "unixVer": "x"
261
+ * },
262
+ * "alipay": {
263
+ * "hostVer": "x",
264
+ * "uniVer": "x",
265
+ * "unixVer": "x"
266
+ * },
267
+ * "baidu": {
268
+ * "hostVer": "x",
269
+ * "uniVer": "x",
270
+ * "unixVer": "x"
271
+ * },
272
+ * "toutiao": {
273
+ * "hostVer": "x",
274
+ * "uniVer": "x",
275
+ * "unixVer": "x"
276
+ * },
277
+ * "lark": {
278
+ * "hostVer": "x",
279
+ * "uniVer": "x",
280
+ * "unixVer": "x"
281
+ * },
282
+ * "qq": {
283
+ * "hostVer": "x",
284
+ * "uniVer": "x",
285
+ * "unixVer": "x"
286
+ * },
287
+ * "kuaishou": {
288
+ * "hostVer": "x",
289
+ * "uniVer": "x",
290
+ * "unixVer": "x"
291
+ * },
292
+ * "jd": {
293
+ * "hostVer": "x",
294
+ * "uniVer": "x",
295
+ * "unixVer": "x"
296
+ * },
297
+ * "360": {
298
+ * "hostVer": "x",
299
+ * "uniVer": "x",
300
+ * "unixVer": "x"
301
+ * }
302
+ * },
303
+ * "quickapp": {
304
+ * "uniVer": "x",
305
+ * "unixVer": "x"
306
+ * },
307
+ * "web": {
308
+ * "uniVer": "x",
309
+ * "unixVer": "x"
310
+ * }
311
+ * }
312
+ */
313
+ provider?:
314
+ /**
315
+ * 微信登录
316
+ */
317
+ 'weixin' |
318
+ /**
319
+ * QQ登录
320
+ */
321
+ 'qq' |
322
+ /**
323
+ * 新浪微博登录
324
+ */
325
+ 'sinaweibo' |
326
+ /**
327
+ * 小米登录
328
+ */
329
+ 'xiaomi' |
330
+ /**
331
+ * Apple登录
332
+ */
333
+ 'apple' |
334
+ /**
335
+ * 一键登录
336
+ */
337
+ 'univerify' |
338
+ /**
339
+ * 华为 HarmonyOS Next 华为账号登录
340
+ */
341
+ 'huawei' | null,
342
+ /**
343
+ * 授权类型,默认 auth_base。支持 auth_base(静默授权)/ auth_user(主动授权) / auth_zhima(芝麻信用)
344
+ *
345
+ * @uniPlatform {
346
+ * "mp": {
347
+ * "alipay": {
348
+ * "hostVer": "√",
349
+ * "uniVer": "√",
350
+ * "unixVer": "x"
351
+ * }
352
+ * }
353
+ * }
354
+ */
355
+ scopes?: any | null,
356
+ /**
357
+ * 超时时间,单位 ms
358
+ * @uniPlatform {
359
+ * "mp": {
360
+ * "weixin": {
361
+ * "hostVer": "√",
362
+ * "uniVer": "√",
363
+ * "unixVer": "x"
364
+ * },
365
+ * "baidu": {
366
+ * "hostVer": "√",
367
+ * "uniVer": "√",
368
+ * "unixVer": "x"
369
+ * },
370
+ * "jd": {
371
+ * "hostVer": "√",
372
+ * "uniVer": "√",
373
+ * "unixVer": "x"
374
+ * }
375
+ * }
376
+ * }
377
+ */
378
+ timeout?: number | null,
379
+ /**
380
+ * 一键登录页面样式
381
+ *
382
+ * @uniPlatform {
383
+ * "app": {
384
+ * "android": {
385
+ * "osVer": "5.0",
386
+ * "uniVer": "3.0.0",
387
+ * "unixVer": "x"
388
+ * },
389
+ * "ios": {
390
+ * "osVer": "12.0",
391
+ * "uniVer": "3.0.0",
392
+ * "unixVer": "x"
393
+ * },
394
+ * "harmony": {
395
+ * "osVer": "x",
396
+ * "uniVer": "x",
397
+ * "unixVer": "x"
398
+ * }
399
+ * },
400
+ * "web": {
401
+ * "uniVer": "x",
402
+ * "unixVer": "x"
403
+ * }
404
+ * }
405
+ */
406
+ univerifyStyle?: UniverifyStyle | null,
407
+ /**
408
+ * 微信登录仅请求授权认证
409
+ *
410
+ * @uniPlatform {
411
+ * "app": {
412
+ * "android": {
413
+ * "osVer": "5.0",
414
+ * "uniVer": "3.2.6",
415
+ * "unixVer": "x"
416
+ * },
417
+ * "ios": {
418
+ * "osVer": "12.0",
419
+ * "uniVer": "3.2.6",
420
+ * "unixVer": "x"
421
+ * },
422
+ * "harmony": {
423
+ * "osVer": "x",
424
+ * "uniVer": "x",
425
+ * "unixVer": "x"
426
+ * }
427
+ * },
428
+ * "web": {
429
+ * "uniVer": "x",
430
+ * "unixVer": "x"
431
+ * }
432
+ * }
433
+ */
434
+ onlyAuthorize?: boolean | null,
435
+ /**
436
+ * 接口调用成功的回调函数
437
+ */
438
+ success?: LoginSuccessCallback | null,
439
+ /**
440
+ * 接口调用失败的回调函数
441
+ */
442
+ fail?: LoginFailCallback | null,
443
+ /**
444
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
445
+ */
446
+ complete?: LoginCompleteCallback | null
447
+ };
448
+
449
+ export type UniverifyIconStyles = {
450
+ /**
451
+ * 图标地址
452
+ *
453
+ * 仅支持本地路径,默认为应用图标。
454
+ */
455
+ path: string,
456
+ /**
457
+ * 图标宽度
458
+ *
459
+ * 格式为“XXpx",默认值为"60px"。
460
+ */
461
+ width?: string | null,
462
+ /**
463
+ * 图标高度
464
+ *
465
+ * 格式为“XXpx",默认值为"60px"。
466
+ */
467
+ height?: string | null
468
+ };
469
+ export type UniverifyPhoneNumStyles = {
470
+ /**
471
+ * 字体颜色
472
+ *
473
+ * 格式为"#RRGGBB",默认值为"#000000"。
474
+ */
475
+ color?: string | null,
476
+ /**
477
+ * 字体大小
478
+ *
479
+ * 格式为“XXpx",默认值为"18px"。注意:字体加粗显示。
480
+ */
481
+ fontSize?: string | null
482
+ };
483
+ export type UniverifySloganStyles = {
484
+ /**
485
+ * 字体颜色
486
+ *
487
+ * 格式为"#RRGGBB",默认值为"#8a8b90"。
488
+ */
489
+ color?: string | null,
490
+ /**
491
+ * 字体大小
492
+ *
493
+ * 格式为“XXpx",默认值为"12px"。
494
+ */
495
+ fontSize?: string | null
496
+ };
497
+ export type UniverifyAuthButtonStyles = {
498
+ /**
499
+ * 正常状态按钮颜色
500
+ *
501
+ * 格式为"#RRGGBB",默认值为"#3479f5"。
502
+ */
503
+ normalColor?: string | null,
504
+ /**
505
+ * 按下状态按钮颜色
506
+ *
507
+ * 格式为"#RRGGBB",默认值为"#2861c5"。
508
+ */
509
+ highlightColor?: string | null,
510
+ /**
511
+ * 不可点击状态按钮颜色
512
+ *
513
+ * 格式为"#RRGGBB",默认值为"#73aaf5"。 注意:仅iOS平台支持。
514
+ */
515
+ disabledColor?: string | null,
516
+ /**
517
+ * 按钮宽度
518
+ *
519
+ * 格式为“XXpx",默认值为自适应,距离屏幕左右"32px"。
520
+ */
521
+ width?: string | null,
522
+ /**
523
+ * 按钮高度
524
+ *
525
+ * 格式为“XXpx",默认值为"94px"。
526
+ */
527
+ height?: string | null,
528
+ /**
529
+ * 按钮上文字颜色
530
+ *
531
+ * 格式为"#RRGGBB",默认值为"#ffffff"。
532
+ */
533
+ textColor?: string | null,
534
+ /**
535
+ * 按钮上文字内容
536
+ *
537
+ * 默认值为"本机号码一键登录"。
538
+ */
539
+ title?: string | null,
540
+ /**
541
+ * 授权按钮圆角
542
+ *
543
+ * 格式为“XXpx",默认值:"24px" (按钮高度的一半)
544
+ */
545
+ borderRadius?: string | null
546
+ };
547
+ export type UniverifyOtherButtonStyles = {
548
+ /**
549
+ * 是否显示其它按钮
550
+ *
551
+ * 可取值: true - 显示其它按钮;false - 不显示其它按钮。 默认值为true。
552
+ * @type boolean
553
+ */
554
+ visible?: boolean | null,
555
+ /**
556
+ * 正常状态按钮颜色
557
+ *
558
+ * 格式为"#RRGGBB",默认值为"#f8f8f8"。
559
+ */
560
+ normalColor?: string | null,
561
+ /**
562
+ * 按下状态按钮颜色
563
+ *
564
+ * 格式为"#RRGGBB",默认值为"#dedede"。
565
+ */
566
+ highlightColor?: string | null,
567
+ /**
568
+ * 按钮宽度
569
+ *
570
+ * 格式为“XXpx",默认值为自适应,距离屏幕左右"32px"。
571
+ */
572
+ width?: string | null,
573
+ /**
574
+ * 按钮高度
575
+ *
576
+ * 格式为“XXpx",默认值为"94px"。
577
+ */
578
+ height?: string | null,
579
+ /**
580
+ * 按钮上文字颜色
581
+ *
582
+ * 格式为"#RRGGBB",默认值为"#000000"。
583
+ */
584
+ textColor?: string | null,
585
+ /**
586
+ * 按钮上文字内容
587
+ *
588
+ * 默认值为"本机号码一键登录"。
589
+ */
590
+ title?: string | null,
591
+ /**
592
+ * 按钮边框宽度
593
+ *
594
+ * 格式为“XXpx",默认值为"1px"。 注意:仅iOS平台支持。
595
+ */
596
+ borderWidth?: string | null,
597
+ /**
598
+ * 按钮边框颜色
599
+ *
600
+ * 格式为"#RRGGBB",默认值为"#c5c5c5"。 注意:仅iOS平台支持。
601
+ */
602
+ borderColor?: string | null,
603
+ /**
604
+ * 其他登录按钮圆角
605
+ *
606
+ * 格式为“XXpx",默认值:"24px" (按钮高度的一半)
607
+ */
608
+ borderRadius?: string | null
609
+ };
610
+ export type UniverifyPrivacyItemStyles = {
611
+ /**
612
+ * 链接地址
613
+ *
614
+ * http/https开头的协议链接地址。
615
+ */
616
+ url: string,
617
+ /**
618
+ * 协议链接文字
619
+ */
620
+ title: string
621
+ };
622
+ export type UniverifyPrivacyTermsStyles = {
623
+ /**
624
+ * 默认是否勾选同意协议选择框
625
+ *
626
+ * ture表示勾选,false表示不勾选。默认值为true。
627
+ * HBuilderX3.1.0+版本新增支持。
628
+ * @type boolean
629
+ */
630
+ defaultCheckBoxState?: boolean | null,
631
+ /**
632
+ * 普通文字颜色
633
+ *
634
+ * 格式为"#RRGGBB",默认值为"#8a8b90"。
635
+ */
636
+ textColor?: string | null,
637
+ /**
638
+ * 协议链接文字颜色
639
+ *
640
+ * 格式为"#RRGGBB",默认值为"#1d4788"。
641
+ */
642
+ termsColor?: string | null,
643
+ /**
644
+ * 服务协议前文本内容
645
+ *
646
+ * 默认值为"我已阅读并同意"。
647
+ */
648
+ prefix?: string | null,
649
+ /**
650
+ * 服务协议后文本内容
651
+ *
652
+ * 默认值为"并使用本机号码登录"。
653
+ */
654
+ suffix?: string | null,
655
+ /**
656
+ * 字体大小
657
+ *
658
+ * 格式为“XXpx",默认值为"12px"。
659
+ */
660
+ fontSize?: string | null,
661
+ /**
662
+ * 服务协议
663
+ *
664
+ * 自定义服务协议,可设置使用手机号码登录的协议,最多可设置两个协议。 注意:运营商的服务协议链接会自动添加到自定义服务协议之前。
665
+ */
666
+ privacyItems?: (UniverifyPrivacyItemStyles[]) | null
667
+ };
668
+ export type UniVerifyButtonListItem = {
669
+ /**
670
+ * 该按钮标识,会原样返回。
671
+ */
672
+ provider: string,
673
+ /**
674
+ * 图片路径
675
+ *
676
+ * 仅支持本地图片
677
+ */
678
+ iconPath: string
679
+ };
680
+ export type UniVerifyButtonsStyles = {
681
+ /**
682
+ * 自定义登录按钮图标宽度
683
+ *
684
+ * 单位为px,默认值为45px。
685
+ * 按指定宽度缩放,高度等比例缩放。
686
+ */
687
+ iconWidth?: string | null,
688
+ /**
689
+ * 自定义登录按钮列表
690
+ */
691
+ list: UniVerifyButtonListItem[]
692
+ };
693
+ export type UniverifyStyle = {
694
+ /**
695
+ * 是否全屏模式。
696
+ *
697
+ * true表示全屏模式,false表示非全屏模式,默认值为false。
698
+ * @type boolean
699
+ */
700
+ fullScreen?: boolean | null,
701
+ /**
702
+ * 授权界面背景颜色。
703
+ *
704
+ * 格式为"#RRGGBB",默认值为"#FFFFF"。
705
+ */
706
+ backgroundColor?: string | null,
707
+ /**
708
+ * 背景图片
709
+ */
710
+ backgroundImage?: string | null,
711
+ /**
712
+ * 授权界面图标样式。
713
+ *
714
+ * 可设置自定义图标,默认为应用图标。
715
+ */
716
+ icon?: UniverifyIconStyles | null,
717
+ /**
718
+ * 授权界面电话号码样式
719
+ *
720
+ * 可设置自定义电话号码文字颜色、大小等。
721
+ */
722
+ phoneNum?: UniverifyPhoneNumStyles | null,
723
+ /**
724
+ * 授权界面服务说明样式
725
+ *
726
+ * 可设置自定义服务说明文字颜色、大小等。
727
+ */
728
+ slogan?: UniverifySloganStyles | null,
729
+ /**
730
+ * 授权界面其他登录按钮样式
731
+ *
732
+ * 可设置自定义其他登录按钮背景颜色、文本内容、大小等。
733
+ */
734
+ authButton?: UniverifyAuthButtonStyles | null,
735
+ /**
736
+ * 支付宝小程序登录成功的授权 scope
737
+ */
738
+ otherLoginButton?: UniverifyOtherButtonStyles | null,
739
+ /**
740
+ * 授权界面服务协议样式
741
+ *
742
+ * 自定义设置服务器协议文字颜色、文本内容,添加自定义服务协议链接等。
743
+ */
744
+ privacyTerms?: UniverifyPrivacyTermsStyles | null,
745
+ /**
746
+ * 自定义登录按钮列表样式
747
+ *
748
+ * 自定义设置更多登录按钮列表,如其它三方登录等。
749
+ * 注意:HBuilderX3.1.14+版本支持。
750
+ */
751
+ buttons?: UniVerifyButtonsStyles | null
752
+ };
753
+ export type GetUserInfo = (options: GetUserInfoOptions) => void;
754
+ export type UserInfo = {
755
+ /**
756
+ * 用户昵称
757
+ */
758
+ nickName: string,
759
+ /**
760
+ * 该服务商唯一用户标识
761
+ * @uniPlatform {
762
+ * "app": {
763
+ * "android": {
764
+ * "osVer": "5.0",
765
+ * "uniVer": "√",
766
+ * "unixVer": "x"
767
+ * },
768
+ * "ios": {
769
+ * "osVer": "12.0",
770
+ * "uniVer": "√",
771
+ * "unixVer": "x"
772
+ * },
773
+ * "harmony": {
774
+ * "osVer": "3.0",
775
+ * "uniVer": "4.27",
776
+ * "unixVer": "x"
777
+ * }
778
+ * },
779
+ * "mp": {
780
+ * "weixin": {
781
+ * "hostVer": "x",
782
+ * "uniVer": "x",
783
+ * "unixVer": "x"
784
+ * },
785
+ * "alipay": {
786
+ * "hostVer": "x",
787
+ * "uniVer": "x",
788
+ * "unixVer": "x"
789
+ * },
790
+ * "baidu": {
791
+ * "hostVer": "x",
792
+ * "uniVer": "x",
793
+ * "unixVer": "x"
794
+ * },
795
+ * "toutiao": {
796
+ * "hostVer": "x",
797
+ * "uniVer": "x",
798
+ * "unixVer": "x"
799
+ * },
800
+ * "lark": {
801
+ * "hostVer": "x",
802
+ * "uniVer": "x",
803
+ * "unixVer": "x"
804
+ * },
805
+ * "qq": {
806
+ * "hostVer": "x",
807
+ * "uniVer": "x",
808
+ * "unixVer": "x"
809
+ * },
810
+ * "kuaishou": {
811
+ * "hostVer": "x",
812
+ * "uniVer": "x",
813
+ * "unixVer": "x"
814
+ * },
815
+ * "jd": {
816
+ * "hostVer": "x",
817
+ * "uniVer": "x",
818
+ * "unixVer": "x"
819
+ * },
820
+ * "360": {
821
+ * "hostVer": "x",
822
+ * "uniVer": "x",
823
+ * "unixVer": "x"
824
+ * }
825
+ * },
826
+ * "quickapp": {
827
+ * "uniVer": "x",
828
+ * "unixVer": "x"
829
+ * },
830
+ * "web": {
831
+ * "uniVer": "x",
832
+ * "unixVer": "x"
833
+ * }
834
+ * }
835
+ */
836
+ openId?: string | null,
837
+ /**
838
+ * 用户头像
839
+ */
840
+ avatarUrl: string
841
+ };
842
+ export type GetUserInfoSuccess = {
843
+ /**
844
+ * 用户信息对象,不包含 openid 等敏感信息
845
+ * @uniPlatform {
846
+ * "app": {
847
+ * "android": {
848
+ * "osVer": "5.0",
849
+ * "uniVer": "√",
850
+ * "unixVer": "x"
851
+ * },
852
+ * "ios": {
853
+ * "osVer": "12.0",
854
+ * "uniVer": "√",
855
+ * "unixVer": "x"
856
+ * },
857
+ * "harmony": {
858
+ * "osVer": "3.0",
859
+ * "uniVer": "4.27",
860
+ * "unixVer": "x"
861
+ * }
862
+ * },
863
+ * "mp": {
864
+ * "weixin": {
865
+ * "hostVer": "√",
866
+ * "uniVer": "√",
867
+ * "unixVer": "x"
868
+ * },
869
+ * "alipay": {
870
+ * "hostVer": "√",
871
+ * "uniVer": "√",
872
+ * "unixVer": "x"
873
+ * },
874
+ * "baidu": {
875
+ * "hostVer": "√",
876
+ * "uniVer": "√",
877
+ * "unixVer": "x"
878
+ * },
879
+ * "toutiao": {
880
+ * "hostVer": "√",
881
+ * "uniVer": "√",
882
+ * "unixVer": "x"
883
+ * },
884
+ * "lark": {
885
+ * "hostVer": "√",
886
+ * "uniVer": "√",
887
+ * "unixVer": "x"
888
+ * },
889
+ * "qq": {
890
+ * "hostVer": "√",
891
+ * "uniVer": "√",
892
+ * "unixVer": "x"
893
+ * },
894
+ * "kuaishou": {
895
+ * "hostVer": "√",
896
+ * "uniVer": "√",
897
+ * "unixVer": "x"
898
+ * },
899
+ * "jd": {
900
+ * "hostVer": "√",
901
+ * "uniVer": "√",
902
+ * "unixVer": "x"
903
+ * },
904
+ * "360": {
905
+ * "hostVer": "x",
906
+ * "uniVer": "x",
907
+ * "unixVer": "x"
908
+ * }
909
+ * },
910
+ * "quickapp": {
911
+ * "uniVer": "x",
912
+ * "unixVer": "x"
913
+ * },
914
+ * "web": {
915
+ * "uniVer": "x",
916
+ * "unixVer": "x"
917
+ * }
918
+ * }
919
+ */
920
+ userInfo: UserInfo,
921
+ /**
922
+ * 不包括敏感信息的原始数据字符串,用于计算签名。
923
+ * @uniPlatform {
924
+ * "app": {
925
+ * "android": {
926
+ * "osVer": "5.0",
927
+ * "uniVer": "x",
928
+ * "unixVer": "x"
929
+ * },
930
+ * "ios": {
931
+ * "osVer": "12.0",
932
+ * "uniVer": "x",
933
+ * "unixVer": "x"
934
+ * },
935
+ * "harmony": {
936
+ * "osVer": "3.0",
937
+ * "uniVer": "x",
938
+ * "unixVer": "x"
939
+ * }
940
+ * },
941
+ * "mp": {
942
+ * "weixin": {
943
+ * "hostVer": "√",
944
+ * "uniVer": "√",
945
+ * "unixVer": "x"
946
+ * },
947
+ * "alipay": {
948
+ * "hostVer": "x",
949
+ * "uniVer": "x",
950
+ * "unixVer": "x"
951
+ * },
952
+ * "baidu": {
953
+ * "hostVer": "x",
954
+ * "uniVer": "x",
955
+ * "unixVer": "x"
956
+ * },
957
+ * "toutiao": {
958
+ * "hostVer": "√",
959
+ * "uniVer": "√",
960
+ * "unixVer": "x"
961
+ * },
962
+ * "lark": {
963
+ * "hostVer": "√",
964
+ * "uniVer": "√",
965
+ * "unixVer": "x"
966
+ * },
967
+ * "qq": {
968
+ * "hostVer": "x",
969
+ * "uniVer": "x",
970
+ * "unixVer": "x"
971
+ * },
972
+ * "kuaishou": {
973
+ * "hostVer": "√",
974
+ * "uniVer": "√",
975
+ * "unixVer": "x"
976
+ * },
977
+ * "jd": {
978
+ * "hostVer": "√",
979
+ * "uniVer": "√",
980
+ * "unixVer": "x"
981
+ * },
982
+ * "360": {
983
+ * "hostVer": "x",
984
+ * "uniVer": "x",
985
+ * "unixVer": "x"
986
+ * }
987
+ * },
988
+ * "quickapp": {
989
+ * "uniVer": "x",
990
+ * "unixVer": "x"
991
+ * },
992
+ * "web": {
993
+ * "uniVer": "x",
994
+ * "unixVer": "x"
995
+ * }
996
+ * }
997
+ */
998
+ rawData?: string | null,
999
+ /**
1000
+ * 使用 sha1( rawData + sessionkey ) 得到字符串,用于校验用户信息,仅微信小程序生效。
1001
+ * @uniPlatform {
1002
+ * "app": {
1003
+ * "android": {
1004
+ * "osVer": "5.0",
1005
+ * "uniVer": "x",
1006
+ * "unixVer": "x"
1007
+ * },
1008
+ * "ios": {
1009
+ * "osVer": "12.0",
1010
+ * "uniVer": "x",
1011
+ * "unixVer": "x"
1012
+ * },
1013
+ * "harmony": {
1014
+ * "osVer": "3.0",
1015
+ * "uniVer": "x",
1016
+ * "unixVer": "x"
1017
+ * }
1018
+ * },
1019
+ * "mp": {
1020
+ * "weixin": {
1021
+ * "hostVer": "√",
1022
+ * "uniVer": "√",
1023
+ * "unixVer": "x"
1024
+ * },
1025
+ * "alipay": {
1026
+ * "hostVer": "x",
1027
+ * "uniVer": "x",
1028
+ * "unixVer": "x"
1029
+ * },
1030
+ * "baidu": {
1031
+ * "hostVer": "x",
1032
+ * "uniVer": "x",
1033
+ * "unixVer": "x"
1034
+ * },
1035
+ * "toutiao": {
1036
+ * "hostVer": "√",
1037
+ * "uniVer": "√",
1038
+ * "unixVer": "x"
1039
+ * },
1040
+ * "lark": {
1041
+ * "hostVer": "√",
1042
+ * "uniVer": "√",
1043
+ * "unixVer": "x"
1044
+ * },
1045
+ * "qq": {
1046
+ * "hostVer": "x",
1047
+ * "uniVer": "x",
1048
+ * "unixVer": "x"
1049
+ * },
1050
+ * "kuaishou": {
1051
+ * "hostVer": "√",
1052
+ * "uniVer": "√",
1053
+ * "unixVer": "x"
1054
+ * },
1055
+ * "jd": {
1056
+ * "hostVer": "√",
1057
+ * "uniVer": "√",
1058
+ * "unixVer": "x"
1059
+ * },
1060
+ * "360": {
1061
+ * "hostVer": "x",
1062
+ * "uniVer": "x",
1063
+ * "unixVer": "x"
1064
+ * }
1065
+ * },
1066
+ * "quickapp": {
1067
+ * "uniVer": "x",
1068
+ * "unixVer": "x"
1069
+ * },
1070
+ * "web": {
1071
+ * "uniVer": "x",
1072
+ * "unixVer": "x"
1073
+ * }
1074
+ * }
1075
+ */
1076
+ signature?: string | null,
1077
+ /**
1078
+ * 包括敏感数据在内的完整用户信息的加密数据,详细见加密数据解密算法,仅微信小程序生效。
1079
+ * @uniPlatform {
1080
+ * "app": {
1081
+ * "android": {
1082
+ * "osVer": "5.0",
1083
+ * "uniVer": "x",
1084
+ * "unixVer": "x"
1085
+ * },
1086
+ * "ios": {
1087
+ * "osVer": "12.0",
1088
+ * "uniVer": "x",
1089
+ * "unixVer": "x"
1090
+ * },
1091
+ * "harmony": {
1092
+ * "osVer": "3.0",
1093
+ * "uniVer": "x",
1094
+ * "unixVer": "x"
1095
+ * }
1096
+ * },
1097
+ * "mp": {
1098
+ * "weixin": {
1099
+ * "hostVer": "√",
1100
+ * "uniVer": "√",
1101
+ * "unixVer": "x"
1102
+ * },
1103
+ * "alipay": {
1104
+ * "hostVer": "x",
1105
+ * "uniVer": "x",
1106
+ * "unixVer": "x"
1107
+ * },
1108
+ * "baidu": {
1109
+ * "hostVer": "x",
1110
+ * "uniVer": "x",
1111
+ * "unixVer": "x"
1112
+ * },
1113
+ * "toutiao": {
1114
+ * "hostVer": "√",
1115
+ * "uniVer": "√",
1116
+ * "unixVer": "x"
1117
+ * },
1118
+ * "lark": {
1119
+ * "hostVer": "√",
1120
+ * "uniVer": "√",
1121
+ * "unixVer": "x"
1122
+ * },
1123
+ * "qq": {
1124
+ * "hostVer": "x",
1125
+ * "uniVer": "x",
1126
+ * "unixVer": "x"
1127
+ * },
1128
+ * "kuaishou": {
1129
+ * "hostVer": "√",
1130
+ * "uniVer": "√",
1131
+ * "unixVer": "x"
1132
+ * },
1133
+ * "jd": {
1134
+ * "hostVer": "√",
1135
+ * "uniVer": "√",
1136
+ * "unixVer": "x"
1137
+ * },
1138
+ * "360": {
1139
+ * "hostVer": "x",
1140
+ * "uniVer": "x",
1141
+ * "unixVer": "x"
1142
+ * }
1143
+ * },
1144
+ * "quickapp": {
1145
+ * "uniVer": "x",
1146
+ * "unixVer": "x"
1147
+ * },
1148
+ * "web": {
1149
+ * "uniVer": "x",
1150
+ * "unixVer": "x"
1151
+ * }
1152
+ * }
1153
+ */
1154
+ encryptedData?: string | null,
1155
+ /**
1156
+ * 加密算法的初始向量,详细见加密数据解密算法,仅微信小程序生效。
1157
+ * @uniPlatform {
1158
+ * "app": {
1159
+ * "android": {
1160
+ * "osVer": "5.0",
1161
+ * "uniVer": "x",
1162
+ * "unixVer": "x"
1163
+ * },
1164
+ * "ios": {
1165
+ * "osVer": "12.0",
1166
+ * "uniVer": "x",
1167
+ * "unixVer": "x"
1168
+ * },
1169
+ * "harmony": {
1170
+ * "osVer": "3.0",
1171
+ * "uniVer": "x",
1172
+ * "unixVer": "x"
1173
+ * }
1174
+ * },
1175
+ * "mp": {
1176
+ * "weixin": {
1177
+ * "hostVer": "√",
1178
+ * "uniVer": "√",
1179
+ * "unixVer": "x"
1180
+ * },
1181
+ * "alipay": {
1182
+ * "hostVer": "x",
1183
+ * "uniVer": "x",
1184
+ * "unixVer": "x"
1185
+ * },
1186
+ * "baidu": {
1187
+ * "hostVer": "x",
1188
+ * "uniVer": "x",
1189
+ * "unixVer": "x"
1190
+ * },
1191
+ * "toutiao": {
1192
+ * "hostVer": "√",
1193
+ * "uniVer": "√",
1194
+ * "unixVer": "x"
1195
+ * },
1196
+ * "lark": {
1197
+ * "hostVer": "√",
1198
+ * "uniVer": "√",
1199
+ * "unixVer": "x"
1200
+ * },
1201
+ * "qq": {
1202
+ * "hostVer": "x",
1203
+ * "uniVer": "x",
1204
+ * "unixVer": "x"
1205
+ * },
1206
+ * "kuaishou": {
1207
+ * "hostVer": "√",
1208
+ * "uniVer": "√",
1209
+ * "unixVer": "x"
1210
+ * },
1211
+ * "jd": {
1212
+ * "hostVer": "√",
1213
+ * "uniVer": "√",
1214
+ * "unixVer": "x"
1215
+ * },
1216
+ * "360": {
1217
+ * "hostVer": "x",
1218
+ * "uniVer": "x",
1219
+ * "unixVer": "x"
1220
+ * }
1221
+ * },
1222
+ * "quickapp": {
1223
+ * "uniVer": "x",
1224
+ * "unixVer": "x"
1225
+ * },
1226
+ * "web": {
1227
+ * "uniVer": "x",
1228
+ * "unixVer": "x"
1229
+ * }
1230
+ * }
1231
+ */
1232
+ iv?: string | null,
1233
+ /**
1234
+ * 描述信息
1235
+ */
1236
+ errMsg: string
1237
+ };
1238
+ export type GetUserInfoSuccessCallback = (result: GetUserInfoSuccess) => void;
1239
+ export type GetUserInfoFail = IUniError;
1240
+ export type GetUserInfoFailCallback = (result: GetUserInfoFail) => void;
1241
+ export type GetUserInfoComplete = any;
1242
+ export type GetUserInfoCompleteCallback = (result: GetUserInfoComplete) => void;
1243
+ export type GetUserInfoOptions = {
1244
+ /**
1245
+ * 授权登录服务提供商,通过uni.getProvider获取
1246
+ * @uniPlatform {
1247
+ * "app": {
1248
+ * "android": {
1249
+ * "osVer": "5.0",
1250
+ * "uniVer": "√",
1251
+ * "unixVer": "x"
1252
+ * },
1253
+ * "ios": {
1254
+ * "osVer": "12.0",
1255
+ * "uniVer": "√",
1256
+ * "unixVer": "x"
1257
+ * },
1258
+ * "harmony": {
1259
+ * "osVer": "3.0",
1260
+ * "uniVer": "4.27",
1261
+ * "unixVer": "x"
1262
+ * }
1263
+ * },
1264
+ * "mp": {
1265
+ * "weixin": {
1266
+ * "hostVer": "x",
1267
+ * "uniVer": "x",
1268
+ * "unixVer": "x"
1269
+ * },
1270
+ * "alipay": {
1271
+ * "hostVer": "x",
1272
+ * "uniVer": "x",
1273
+ * "unixVer": "x"
1274
+ * },
1275
+ * "baidu": {
1276
+ * "hostVer": "x",
1277
+ * "uniVer": "x",
1278
+ * "unixVer": "x"
1279
+ * },
1280
+ * "toutiao": {
1281
+ * "hostVer": "x",
1282
+ * "uniVer": "x",
1283
+ * "unixVer": "x"
1284
+ * },
1285
+ * "lark": {
1286
+ * "hostVer": "x",
1287
+ * "uniVer": "x",
1288
+ * "unixVer": "x"
1289
+ * },
1290
+ * "qq": {
1291
+ * "hostVer": "x",
1292
+ * "uniVer": "x",
1293
+ * "unixVer": "x"
1294
+ * },
1295
+ * "kuaishou": {
1296
+ * "hostVer": "x",
1297
+ * "uniVer": "x",
1298
+ * "unixVer": "x"
1299
+ * },
1300
+ * "jd": {
1301
+ * "hostVer": "x",
1302
+ * "uniVer": "x",
1303
+ * "unixVer": "x"
1304
+ * },
1305
+ * "360": {
1306
+ * "hostVer": "x",
1307
+ * "uniVer": "x",
1308
+ * "unixVer": "x"
1309
+ * }
1310
+ * },
1311
+ * "quickapp": {
1312
+ * "uniVer": "x",
1313
+ * "unixVer": "x"
1314
+ * },
1315
+ * "web": {
1316
+ * "uniVer": "x",
1317
+ * "unixVer": "x"
1318
+ * }
1319
+ * }
1320
+ */
1321
+ provider?:
1322
+ /**
1323
+ * 微信登录
1324
+ */
1325
+ 'weixin' |
1326
+ /**
1327
+ * QQ登录
1328
+ */
1329
+ 'qq' |
1330
+ /**
1331
+ * 新浪微博登录
1332
+ */
1333
+ 'sinaweibo' |
1334
+ /**
1335
+ * 小米登录
1336
+ */
1337
+ 'xiaomi' |
1338
+ /**
1339
+ * Apple登录
1340
+ */
1341
+ 'apple' |
1342
+ /**
1343
+ * 华为 HarmonyOS Next 华为账号登录
1344
+ */
1345
+ 'huawei' | null,
1346
+ /**
1347
+ * 是否带上登录态信息,仅微信小程序生效。
1348
+ * @uniPlatform {
1349
+ * "app": {
1350
+ * "android": {
1351
+ * "osVer": "x",
1352
+ * "uniVer": "x",
1353
+ * "unixVer": "x"
1354
+ * },
1355
+ * "ios": {
1356
+ * "osVer": "x",
1357
+ * "uniVer": "x",
1358
+ * "unixVer": "x"
1359
+ * },
1360
+ * "harmony": {
1361
+ * "osVer": "x",
1362
+ * "uniVer": "x",
1363
+ * "unixVer": "x"
1364
+ * }
1365
+ * },
1366
+ * "mp": {
1367
+ * "weixin": {
1368
+ * "hostVer": "√",
1369
+ * "uniVer": "√",
1370
+ * "unixVer": "x"
1371
+ * },
1372
+ * "alipay": {
1373
+ * "hostVer": "x",
1374
+ * "uniVer": "x",
1375
+ * "unixVer": "x"
1376
+ * },
1377
+ * "baidu": {
1378
+ * "hostVer": "x",
1379
+ * "uniVer": "x",
1380
+ * "unixVer": "x"
1381
+ * },
1382
+ * "toutiao": {
1383
+ * "hostVer": "√",
1384
+ * "uniVer": "√",
1385
+ * "unixVer": "x"
1386
+ * },
1387
+ * "lark": {
1388
+ * "hostVer": "√",
1389
+ * "uniVer": "√",
1390
+ * "unixVer": "x"
1391
+ * },
1392
+ * "qq": {
1393
+ * "hostVer": "x",
1394
+ * "uniVer": "x",
1395
+ * "unixVer": "x"
1396
+ * },
1397
+ * "kuaishou": {
1398
+ * "hostVer": "√",
1399
+ * "uniVer": "√",
1400
+ * "unixVer": "x"
1401
+ * },
1402
+ * "jd": {
1403
+ * "hostVer": "x",
1404
+ * "uniVer": "x",
1405
+ * "unixVer": "x"
1406
+ * },
1407
+ * "360": {
1408
+ * "hostVer": "x",
1409
+ * "uniVer": "x",
1410
+ * "unixVer": "x"
1411
+ * }
1412
+ * },
1413
+ * "quickapp": {
1414
+ * "uniVer": "x",
1415
+ * "unixVer": "x"
1416
+ * },
1417
+ * "web": {
1418
+ * "uniVer": "x",
1419
+ * "unixVer": "x"
1420
+ * }
1421
+ * }
1422
+ */
1423
+ withCredentials?: boolean | null,
1424
+ /**
1425
+ * 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。默认为en,仅微信小程序生效。
1426
+ * @uniPlatform {
1427
+ * "app": {
1428
+ * "android": {
1429
+ * "osVer": "x",
1430
+ * "uniVer": "x",
1431
+ * "unixVer": "x"
1432
+ * },
1433
+ * "ios": {
1434
+ * "osVer": "x",
1435
+ * "uniVer": "x",
1436
+ * "unixVer": "x"
1437
+ * },
1438
+ * "harmony": {
1439
+ * "osVer": "x",
1440
+ * "uniVer": "x",
1441
+ * "unixVer": "x"
1442
+ * }
1443
+ * },
1444
+ * "mp": {
1445
+ * "weixin": {
1446
+ * "hostVer": "√",
1447
+ * "uniVer": "√",
1448
+ * "unixVer": "x"
1449
+ * },
1450
+ * "alipay": {
1451
+ * "hostVer": "x",
1452
+ * "uniVer": "x",
1453
+ * "unixVer": "x"
1454
+ * },
1455
+ * "baidu": {
1456
+ * "hostVer": "x",
1457
+ * "uniVer": "x",
1458
+ * "unixVer": "x"
1459
+ * },
1460
+ * "toutiao": {
1461
+ * "hostVer": "x",
1462
+ * "uniVer": "x",
1463
+ * "unixVer": "x"
1464
+ * },
1465
+ * "lark": {
1466
+ * "hostVer": "x",
1467
+ * "uniVer": "x",
1468
+ * "unixVer": "x"
1469
+ * },
1470
+ * "qq": {
1471
+ * "hostVer": "x",
1472
+ * "uniVer": "x",
1473
+ * "unixVer": "x"
1474
+ * },
1475
+ * "kuaishou": {
1476
+ * "hostVer": "x",
1477
+ * "uniVer": "x",
1478
+ * "unixVer": "x"
1479
+ * },
1480
+ * "jd": {
1481
+ * "hostVer": "x",
1482
+ * "uniVer": "x",
1483
+ * "unixVer": "x"
1484
+ * },
1485
+ * "360": {
1486
+ * "hostVer": "x",
1487
+ * "uniVer": "x",
1488
+ * "unixVer": "x"
1489
+ * }
1490
+ * },
1491
+ * "quickapp": {
1492
+ * "uniVer": "x",
1493
+ * "unixVer": "x"
1494
+ * },
1495
+ * "web": {
1496
+ * "uniVer": "x",
1497
+ * "unixVer": "x"
1498
+ * }
1499
+ * }
1500
+ */
1501
+ lang?: string | null,
1502
+ /**
1503
+ * 超时时间,单位 ms
1504
+ * @uniPlatform {
1505
+ * "app": {
1506
+ * "android": {
1507
+ * "osVer": "x",
1508
+ * "uniVer": "x",
1509
+ * "unixVer": "x"
1510
+ * },
1511
+ * "ios": {
1512
+ * "osVer": "x",
1513
+ * "uniVer": "x",
1514
+ * "unixVer": "x"
1515
+ * },
1516
+ * "harmony": {
1517
+ * "osVer": "x",
1518
+ * "uniVer": "x",
1519
+ * "unixVer": "x"
1520
+ * }
1521
+ * },
1522
+ * "mp": {
1523
+ * "weixin": {
1524
+ * "hostVer": "√",
1525
+ * "uniVer": "√",
1526
+ * "unixVer": "x"
1527
+ * },
1528
+ * "alipay": {
1529
+ * "hostVer": "x",
1530
+ * "uniVer": "x",
1531
+ * "unixVer": "x"
1532
+ * },
1533
+ * "baidu": {
1534
+ * "hostVer": "x",
1535
+ * "uniVer": "x",
1536
+ * "unixVer": "x"
1537
+ * },
1538
+ * "toutiao": {
1539
+ * "hostVer": "x",
1540
+ * "uniVer": "x",
1541
+ * "unixVer": "x"
1542
+ * },
1543
+ * "lark": {
1544
+ * "hostVer": "x",
1545
+ * "uniVer": "x",
1546
+ * "unixVer": "x"
1547
+ * },
1548
+ * "qq": {
1549
+ * "hostVer": "x",
1550
+ * "uniVer": "x",
1551
+ * "unixVer": "x"
1552
+ * },
1553
+ * "kuaishou": {
1554
+ * "hostVer": "x",
1555
+ * "uniVer": "x",
1556
+ * "unixVer": "x"
1557
+ * },
1558
+ * "jd": {
1559
+ * "hostVer": "x",
1560
+ * "uniVer": "x",
1561
+ * "unixVer": "x"
1562
+ * },
1563
+ * "360": {
1564
+ * "hostVer": "x",
1565
+ * "uniVer": "x",
1566
+ * "unixVer": "x"
1567
+ * }
1568
+ * },
1569
+ * "quickapp": {
1570
+ * "uniVer": "x",
1571
+ * "unixVer": "x"
1572
+ * },
1573
+ * "web": {
1574
+ * "uniVer": "x",
1575
+ * "unixVer": "x"
1576
+ * }
1577
+ * }
1578
+ */
1579
+ timeout?: number | null,
1580
+ /**
1581
+ * 接口调用成功的回调函数
1582
+ */
1583
+ success?: GetUserInfoSuccessCallback | null,
1584
+ /**
1585
+ * 接口调用失败的回调函数
1586
+ */
1587
+ fail?: GetUserInfoFailCallback | null,
1588
+ /**
1589
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1590
+ */
1591
+ complete?: GetUserInfoCompleteCallback | null
1592
+ };