@dcloudio/uni-app-x 0.7.112 → 0.7.113

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 (379) hide show
  1. package/package.json +1 -1
  2. package/types/dom2-internal/UniNativeView.d.ts +1 -0
  3. package/types/dom2-internal/UniPage.d.ts +16 -0
  4. package/types/native/CSSStyleDeclaration.d.ts +172 -172
  5. package/types/native/CanvasRenderingContext2D.d.ts +4720 -4720
  6. package/types/native/DrawableContext.d.ts +1893 -1893
  7. package/types/native/IUniElement.d.ts +7468 -7468
  8. package/types/native/IUniNativeViewElement.d.ts +327 -327
  9. package/types/native/SnapshotOptions.d.ts +337 -62
  10. package/types/native/UniPage.d.ts +1305 -1305
  11. package/types/native/UniResizeObserver.d.ts +749 -749
  12. package/types/native/UniSwiperAnimationFinishEvent.d.ts +59 -59
  13. package/types/native/UniSwiperChangeEvent.d.ts +58 -58
  14. package/types/page.d.ts +3154 -3112
  15. package/types/uni/uts-plugin-api/global.d.ts +8 -0
  16. package/types/uni/uts-plugin-api/index.d.ts +8 -0
  17. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +1672 -911
  18. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +126 -126
  19. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +14 -14
  20. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +154 -154
  21. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +14 -14
  22. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/global.d.ts +55 -0
  23. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/index.d.ts +27 -0
  24. package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/interface.d.ts +1155 -0
  25. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +9 -6
  26. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +5 -3
  27. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +978 -972
  28. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/global.d.ts +25 -0
  29. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/index.d.ts +12 -0
  30. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +978 -0
  31. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +358 -358
  32. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +8 -8
  33. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +78 -78
  34. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +490 -479
  35. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +214 -214
  36. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/interface.d.ts +126 -126
  37. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +30 -30
  38. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +39 -0
  39. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +19 -0
  40. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +856 -0
  41. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +338 -338
  42. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +147 -147
  43. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +397 -397
  44. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +6363 -6359
  45. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +554 -554
  46. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2149 -2149
  47. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1340 -1340
  48. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +1707 -1707
  49. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +307 -307
  50. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +310 -310
  51. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +5 -5
  52. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +129 -129
  53. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +757 -757
  54. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +5881 -5879
  55. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +442 -442
  56. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/global.d.ts +9 -0
  57. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/index.d.ts +5 -0
  58. package/types/uni/uts-plugin-api/lib/uni-input/utssdk/interface.d.ts +0 -0
  59. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +171 -171
  60. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +1 -1
  61. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +536 -536
  62. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +2914 -2910
  63. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +24 -24
  64. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +208 -208
  65. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +785 -785
  66. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +4243 -4243
  67. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1979 -1963
  68. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +5 -3
  69. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +229 -229
  70. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +753 -753
  71. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +84 -84
  72. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +790 -788
  73. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +447 -447
  74. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +498 -498
  75. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +1552 -1548
  76. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +58 -58
  77. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +30 -30
  78. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2513 -2513
  79. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +81 -81
  80. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +351 -351
  81. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +107 -107
  82. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +584 -584
  83. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +722 -722
  84. package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/interface.d.ts +292 -292
  85. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +358 -358
  86. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +657 -657
  87. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/global.d.ts +9 -0
  88. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/index.d.ts +5 -0
  89. package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/interface.d.ts +0 -0
  90. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1010 -1010
  91. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/global.d.ts +47 -0
  92. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/index.d.ts +23 -0
  93. package/types/uni/uts-plugin-api/lib/uni-video/utssdk/interface.d.ts +926 -0
  94. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/global.d.ts +29 -0
  95. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/index.d.ts +14 -0
  96. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/interface.d.ts +452 -0
  97. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1442 -1442
  98. package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +220 -220
  99. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +65 -65
  100. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +981 -981
  101. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +26 -26
  102. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +1155 -0
  103. package/types/uni/uts-plugin-component/.temp/uni-camera.d.ts +38 -0
  104. package/types/uni/uts-plugin-component/.temp/uni-camera.ts +52 -0
  105. package/types/uni/uts-plugin-component/.temp/uni-canvas/utssdk/interface.uts +976 -0
  106. package/types/uni/uts-plugin-component/.temp/uni-canvas-dom2/utssdk/interface.uts +976 -0
  107. package/types/uni/uts-plugin-component/.temp/uni-editor.d.ts +171 -0
  108. package/types/uni/uts-plugin-component/.temp/uni-editor.ts +237 -0
  109. package/types/uni/uts-plugin-component/.temp/uni-form.d.ts +2 -0
  110. package/types/uni/uts-plugin-component/.temp/uni-form.ts +1 -0
  111. package/types/uni/uts-plugin-component/.temp/uni-input/utssdk/interface.uts +0 -0
  112. package/types/uni/uts-plugin-component/.temp/uni-map-tencent.d.ts +56 -0
  113. package/types/uni/uts-plugin-component/.temp/uni-map-tencent.ts +88 -0
  114. package/types/uni/uts-plugin-component/.temp/uni-match-media.d.ts +2 -0
  115. package/types/uni/uts-plugin-component/.temp/uni-match-media.ts +2 -0
  116. package/types/uni/uts-plugin-component/.temp/uni-navigator.d.ts +2 -0
  117. package/types/uni/uts-plugin-component/.temp/uni-navigator.ts +1 -0
  118. package/types/uni/uts-plugin-component/.temp/uni-page-container.d.ts +0 -0
  119. package/types/uni/uts-plugin-component/.temp/uni-page-container.ts +2 -0
  120. package/types/uni/uts-plugin-component/.temp/uni-progress.d.ts +2 -0
  121. package/types/uni/uts-plugin-component/.temp/uni-progress.ts +1 -0
  122. package/types/uni/uts-plugin-component/.temp/uni-rich-text.d.ts +7 -0
  123. package/types/uni/uts-plugin-component/.temp/uni-rich-text.ts +12 -0
  124. package/types/uni/uts-plugin-component/.temp/uni-textarea/utssdk/interface.uts +0 -0
  125. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +936 -0
  126. package/types/uni/uts-plugin-component/.temp/uni-video.d.ts +134 -0
  127. package/types/uni/uts-plugin-component/.temp/uni-video.ts +180 -0
  128. package/types/uni/uts-plugin-component/.temp/uni-web-view/utssdk/interface.uts +452 -0
  129. package/types/uni/uts-plugin-component/.temp/uni-web-view.d.ts +51 -0
  130. package/types/uni/uts-plugin-component/.temp/uni-web-view.ts +86 -0
  131. package/types/uni/uts-plugin-component/global.d.ts +79 -0
  132. package/types/uni/uts-plugin-component/index.d.ts +79 -0
  133. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/global.d.ts +29 -0
  134. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/index.d.ts +14 -0
  135. package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/interface.d.ts +1673 -0
  136. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/global.d.ts +25 -0
  137. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -0
  138. package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/interface.d.ts +226 -0
  139. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +11 -0
  140. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +5 -0
  141. package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +79 -0
  142. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/global.d.ts +59 -0
  143. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/index.d.ts +29 -0
  144. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +371 -0
  145. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/global.d.ts +9 -0
  146. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/index.d.ts +5 -0
  147. package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
  148. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +11 -0
  149. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +5 -0
  150. package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +79 -0
  151. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +978 -976
  152. package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +978 -976
  153. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/global.d.ts +25 -0
  154. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/index.d.ts +12 -0
  155. package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/interface.d.ts +423 -0
  156. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/global.d.ts +33 -0
  157. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/index.d.ts +16 -0
  158. package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/interface.d.ts +499 -0
  159. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/global.d.ts +45 -0
  160. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/index.d.ts +22 -0
  161. package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/interface.d.ts +217 -0
  162. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/global.d.ts +33 -0
  163. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/index.d.ts +16 -0
  164. package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +3379 -0
  165. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/global.d.ts +21 -0
  166. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/index.d.ts +10 -0
  167. package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +153 -0
  168. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +19 -0
  169. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +9 -0
  170. package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -0
  171. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/global.d.ts +21 -0
  172. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/index.d.ts +10 -0
  173. package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/interface.d.ts +560 -0
  174. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/global.d.ts +15 -0
  175. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/index.d.ts +7 -0
  176. package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/interface.d.ts +214 -0
  177. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/global.d.ts +23 -0
  178. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/index.d.ts +11 -0
  179. package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/interface.d.ts +158 -0
  180. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/global.d.ts +29 -0
  181. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/index.d.ts +14 -0
  182. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/interface.d.ts +2304 -0
  183. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +39 -0
  184. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +19 -0
  185. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +856 -0
  186. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/global.d.ts +25 -0
  187. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/index.d.ts +13 -0
  188. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +181 -0
  189. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/global.d.ts +17 -0
  190. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/index.d.ts +8 -0
  191. package/types/uni/uts-plugin-component/lib/uni-event/utssdk/interface.d.ts +338 -0
  192. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/global.d.ts +27 -0
  193. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/index.d.ts +13 -0
  194. package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/interface.d.ts +147 -0
  195. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/global.d.ts +81 -0
  196. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/index.d.ts +40 -0
  197. package/types/uni/uts-plugin-component/lib/uni-file/utssdk/interface.d.ts +397 -0
  198. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/global.d.ts +151 -0
  199. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/index.d.ts +75 -0
  200. package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/interface.d.ts +6428 -0
  201. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +11 -0
  202. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +5 -0
  203. package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +37 -0
  204. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +13 -0
  205. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +6 -0
  206. package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +620 -0
  207. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/global.d.ts +15 -0
  208. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/index.d.ts +7 -0
  209. package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2220 -0
  210. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +17 -0
  211. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +8 -0
  212. package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1406 -0
  213. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/global.d.ts +15 -0
  214. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/index.d.ts +7 -0
  215. package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/interface.d.ts +1774 -0
  216. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/global.d.ts +11 -0
  217. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/index.d.ts +5 -0
  218. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/interface.d.ts +82 -0
  219. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +13 -0
  220. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +6 -0
  221. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +374 -0
  222. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +13 -0
  223. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +6 -0
  224. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +377 -0
  225. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +21 -0
  226. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +11 -0
  227. package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +736 -0
  228. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/global.d.ts +33 -0
  229. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/index.d.ts +16 -0
  230. package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/interface.d.ts +420 -0
  231. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/global.d.ts +23 -0
  232. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/index.d.ts +11 -0
  233. package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/interface.d.ts +199 -0
  234. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/global.d.ts +37 -0
  235. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/index.d.ts +18 -0
  236. package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/interface.d.ts +757 -0
  237. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/global.d.ts +33 -0
  238. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/index.d.ts +16 -0
  239. package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/interface.d.ts +6084 -0
  240. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/global.d.ts +13 -0
  241. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/index.d.ts +6 -0
  242. package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/interface.d.ts +508 -0
  243. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/global.d.ts +25 -0
  244. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/index.d.ts +12 -0
  245. package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/interface.d.ts +125 -0
  246. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/global.d.ts +17 -0
  247. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/index.d.ts +8 -0
  248. package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/interface.d.ts +171 -0
  249. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/global.d.ts +45 -0
  250. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/index.d.ts +22 -0
  251. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/interface.d.ts +234 -0
  252. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/global.d.ts +29 -0
  253. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/index.d.ts +14 -0
  254. package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/interface.d.ts +603 -0
  255. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/global.d.ts +61 -0
  256. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/index.d.ts +30 -0
  257. package/types/uni/uts-plugin-component/lib/uni-location/utssdk/interface.d.ts +3443 -0
  258. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/global.d.ts +9 -0
  259. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/index.d.ts +5 -0
  260. package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/interface.d.ts +3 -0
  261. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/global.d.ts +9 -0
  262. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/index.d.ts +5 -0
  263. package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/interface.d.ts +3 -0
  264. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/global.d.ts +29 -0
  265. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/index.d.ts +14 -0
  266. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/interface.d.ts +386 -0
  267. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/global.d.ts +157 -0
  268. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/index.d.ts +78 -0
  269. package/types/uni/uts-plugin-component/lib/uni-media/utssdk/interface.d.ts +5245 -0
  270. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/global.d.ts +43 -0
  271. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/index.d.ts +21 -0
  272. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/interface.d.ts +291 -0
  273. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/global.d.ts +69 -0
  274. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/index.d.ts +34 -0
  275. package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/interface.d.ts +1047 -0
  276. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/global.d.ts +109 -0
  277. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/index.d.ts +54 -0
  278. package/types/uni/uts-plugin-component/lib/uni-network/utssdk/interface.d.ts +4462 -0
  279. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/global.d.ts +71 -0
  280. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/index.d.ts +35 -0
  281. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/interface.d.ts +2142 -0
  282. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/global.d.ts +9 -0
  283. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/index.d.ts +5 -0
  284. package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/interface.d.ts +1 -0
  285. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/global.d.ts +17 -0
  286. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/index.d.ts +9 -0
  287. package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/interface.d.ts +48 -0
  288. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +25 -0
  289. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +12 -0
  290. package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +256 -0
  291. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/global.d.ts +29 -0
  292. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/index.d.ts +14 -0
  293. package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/interface.d.ts +823 -0
  294. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/global.d.ts +27 -0
  295. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/index.d.ts +13 -0
  296. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/interface.d.ts +155 -0
  297. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/global.d.ts +33 -0
  298. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/index.d.ts +16 -0
  299. package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/interface.d.ts +856 -0
  300. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/global.d.ts +9 -0
  301. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/index.d.ts +5 -0
  302. package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/interface.d.ts +3 -0
  303. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/global.d.ts +9 -0
  304. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/index.d.ts +5 -0
  305. package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -0
  306. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/global.d.ts +9 -0
  307. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/index.d.ts +5 -0
  308. package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/interface.d.ts +5 -0
  309. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/global.d.ts +19 -0
  310. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/index.d.ts +10 -0
  311. package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/interface.d.ts +26 -0
  312. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/global.d.ts +47 -0
  313. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/index.d.ts +23 -0
  314. package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/interface.d.ts +520 -0
  315. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +31 -0
  316. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +15 -0
  317. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +568 -0
  318. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/global.d.ts +33 -0
  319. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/index.d.ts +16 -0
  320. package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/interface.d.ts +1693 -0
  321. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/global.d.ts +29 -0
  322. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/index.d.ts +14 -0
  323. package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/interface.d.ts +191 -0
  324. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/global.d.ts +21 -0
  325. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/index.d.ts +10 -0
  326. package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/interface.d.ts +2999 -0
  327. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/global.d.ts +21 -0
  328. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/index.d.ts +10 -0
  329. package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +713 -0
  330. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/global.d.ts +59 -0
  331. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/index.d.ts +29 -0
  332. package/types/uni/uts-plugin-component/lib/uni-route/utssdk/interface.d.ts +2731 -0
  333. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/global.d.ts +11 -0
  334. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/index.d.ts +5 -0
  335. package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/interface.d.ts +81 -0
  336. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/global.d.ts +25 -0
  337. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/index.d.ts +12 -0
  338. package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/interface.d.ts +429 -0
  339. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/global.d.ts +57 -0
  340. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/index.d.ts +28 -0
  341. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +314 -0
  342. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/global.d.ts +41 -0
  343. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/index.d.ts +20 -0
  344. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/interface.d.ts +584 -0
  345. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/global.d.ts +9 -0
  346. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/index.d.ts +5 -0
  347. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/interface.d.ts +3 -0
  348. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/global.d.ts +27 -0
  349. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/index.d.ts +13 -0
  350. package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/interface.d.ts +722 -0
  351. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/global.d.ts +47 -0
  352. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/index.d.ts +23 -0
  353. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/interface.d.ts +446 -0
  354. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/global.d.ts +21 -0
  355. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/index.d.ts +10 -0
  356. package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/interface.d.ts +330 -0
  357. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/global.d.ts +79 -0
  358. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/index.d.ts +39 -0
  359. package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/interface.d.ts +1030 -0
  360. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/global.d.ts +149 -0
  361. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/index.d.ts +74 -0
  362. package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/interface.d.ts +1221 -0
  363. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/global.d.ts +53 -0
  364. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/index.d.ts +26 -0
  365. package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/interface.d.ts +1141 -0
  366. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +0 -22
  367. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +0 -11
  368. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +862 -872
  369. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/global.d.ts +4 -14
  370. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/index.d.ts +2 -7
  371. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/interface.d.ts +14 -51
  372. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/global.d.ts +113 -0
  373. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/index.d.ts +56 -0
  374. package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/interface.d.ts +1661 -0
  375. package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/interface.d.ts +17 -17
  376. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/global.d.ts +59 -0
  377. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/index.d.ts +29 -0
  378. package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/interface.d.ts +1939 -0
  379. package/types/vue/LifeCycle.d.ts +865 -854
@@ -0,0 +1,2142 @@
1
+ export interface Uni {
2
+ /**
3
+ * 登录
4
+ *
5
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/sign-in.html
6
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/sign-in.html
7
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/plugins/login.html#login
8
+ *
9
+ * @uniPlatform {
10
+ * "app": {
11
+ * "android": {
12
+ * "osVer": "5.0",
13
+ * "uniVer": "√",
14
+ * "unixVer": "5.03"
15
+ * },
16
+ * "ios": {
17
+ * "osVer": "12.0",
18
+ * "uniVer": "√",
19
+ * "unixVer": "5.03"
20
+ * },
21
+ * "harmony": {
22
+ * "osVer": "3.0",
23
+ * "uniVer": "4.31",
24
+ * "unixVer": "4.61",
25
+ * "unixVaporVer": "5.0"
26
+ * }
27
+ * },
28
+ * "mp": {
29
+ * "weixin": {
30
+ * "hostVer": "√",
31
+ * "uniVer": "√",
32
+ * "unixVer": "4.41"
33
+ * },
34
+ * "alipay": {
35
+ * "hostVer": "√",
36
+ * "uniVer": "√",
37
+ * "unixVer": "x"
38
+ * },
39
+ * "baidu": {
40
+ * "hostVer": "√",
41
+ * "uniVer": "√",
42
+ * "unixVer": "x"
43
+ * },
44
+ * "toutiao": {
45
+ * "hostVer": "√",
46
+ * "uniVer": "√",
47
+ * "unixVer": "x"
48
+ * },
49
+ * "lark": {
50
+ * "hostVer": "√",
51
+ * "uniVer": "√",
52
+ * "unixVer": "x"
53
+ * },
54
+ * "qq": {
55
+ * "hostVer": "√",
56
+ * "uniVer": "√",
57
+ * "unixVer": "x"
58
+ * },
59
+ * "kuaishou": {
60
+ * "hostVer": "√",
61
+ * "uniVer": "√",
62
+ * "unixVer": "x"
63
+ * },
64
+ * "jd": {
65
+ * "hostVer": "√",
66
+ * "uniVer": "√",
67
+ * "unixVer": "x"
68
+ * },
69
+ * "360": {
70
+ * "hostVer": "√",
71
+ * "uniVer": "√",
72
+ * "unixVer": "x"
73
+ * }
74
+ * },
75
+ * "quickapp": {
76
+ * "uniVer": "√",
77
+ * "unixVer": "√"
78
+ * },
79
+ * "web": {
80
+ * "uniVer": "x",
81
+ * "unixVer": "x"
82
+ * }
83
+ * }
84
+ */
85
+ login(options: LoginOptions): void;
86
+ /**
87
+ * 获取用户信息
88
+ *
89
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/sign-in.html#getuserinfo
90
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/sign-in.html#getuserinfo
91
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/plugins/login.html#getuserinfo
92
+ *
93
+ * @uniPlatform {
94
+ * "app": {
95
+ * "android": {
96
+ * "osVer": "5.0",
97
+ * "uniVer": "√",
98
+ * "unixVer": "x"
99
+ * },
100
+ * "ios": {
101
+ * "osVer": "12.0",
102
+ * "uniVer": "√",
103
+ * "unixVer": "x"
104
+ * },
105
+ * "harmony": {
106
+ * "osVer": "3.0",
107
+ * "uniVer": "4.31",
108
+ * "unixVer": "4.61",
109
+ * "unixVaporVer": "5.0"
110
+ * }
111
+ * },
112
+ * "mp": {
113
+ * "weixin": {
114
+ * "hostVer": "√",
115
+ * "uniVer": "√",
116
+ * "unixVer": "4.41"
117
+ * },
118
+ * "alipay": {
119
+ * "hostVer": "√",
120
+ * "uniVer": "√",
121
+ * "unixVer": "x"
122
+ * },
123
+ * "baidu": {
124
+ * "hostVer": "√",
125
+ * "uniVer": "√",
126
+ * "unixVer": "x"
127
+ * },
128
+ * "toutiao": {
129
+ * "hostVer": "√",
130
+ * "uniVer": "√",
131
+ * "unixVer": "x"
132
+ * },
133
+ * "lark": {
134
+ * "hostVer": "√",
135
+ * "uniVer": "√",
136
+ * "unixVer": "x"
137
+ * },
138
+ * "qq": {
139
+ * "hostVer": "√",
140
+ * "uniVer": "√",
141
+ * "unixVer": "x"
142
+ * },
143
+ * "kuaishou": {
144
+ * "hostVer": "√",
145
+ * "uniVer": "√",
146
+ * "unixVer": "x"
147
+ * },
148
+ * "jd": {
149
+ * "hostVer": "√",
150
+ * "uniVer": "√",
151
+ * "unixVer": "x"
152
+ * },
153
+ * "360": {
154
+ * "hostVer": "√",
155
+ * "uniVer": "√",
156
+ * "unixVer": "x"
157
+ * }
158
+ * },
159
+ * "quickapp": {
160
+ * "uniVer": "√",
161
+ * "unixVer": "√"
162
+ * },
163
+ * "web": {
164
+ * "uniVer": "x",
165
+ * "unixVer": "x"
166
+ * }
167
+ * }
168
+ */
169
+ getUserInfo(options: GetUserInfoOptions): void;
170
+ }
171
+
172
+
173
+ export interface UniOAuthProvider extends UniProvider {
174
+ login(options: LoginOptions): void;
175
+ getUserInfo(options: GetUserInfoOptions): void;
176
+ }
177
+
178
+
179
+
180
+ export type Login = (options: LoginOptions) => void;
181
+
182
+ export type AppleLoginAppleInfo = {
183
+ /**
184
+ * 应用程序用来与服务器交互的令牌
185
+ */
186
+ authorizationCode?: string | null,
187
+ /**
188
+ * 返回身份的全名
189
+ */
190
+ fullName?: any | null,
191
+ /**
192
+ * 一个JSON Web令牌(JWT),可以安全地将用户信息传递给应用程序
193
+ */
194
+ identityToken?: string | null,
195
+ /**
196
+ * 指示用户是否为真人
197
+ */
198
+ realUserStatus?: number | null,
199
+ /**
200
+ * 验证用户的标识符
201
+ */
202
+ user?: string | null
203
+ };
204
+ export type LoginSuccess = {
205
+ /**
206
+ * 描述信息
207
+ */
208
+ errMsg?: string | null,
209
+ /**
210
+ * 登录服务商提供的登录信息,服务商不同返回的结果不完全相同
211
+ * @uniPlatform {
212
+ * "app": {
213
+ * "android": {
214
+ * "osVer": "5.0",
215
+ * "uniVer": "√",
216
+ * "unixVer": "5.03"
217
+ * },
218
+ * "ios": {
219
+ * "osVer": "12.0",
220
+ * "uniVer": "√",
221
+ * "unixVer": "5.03"
222
+ * },
223
+ * "harmony": {
224
+ * "osVer": "3.0",
225
+ * "uniVer": "4.31",
226
+ * "unixVer": "4.61",
227
+ * "unixVaporVer": "5.0"
228
+ * }
229
+ * }
230
+ * }
231
+ */
232
+ authResult: any,
233
+ /**
234
+ * 小程序用户临时登录凭证
235
+ * @uniPlatform {
236
+ * "app": {
237
+ * "android": {
238
+ * "osVer": "5.0",
239
+ * "uniVer": "√",
240
+ * "unixVer": "5.03"
241
+ * },
242
+ * "ios": {
243
+ * "osVer": "12.0",
244
+ * "uniVer": "√",
245
+ * "unixVer": "5.03"
246
+ * },
247
+ * "harmony": {
248
+ * "osVer": "3.0",
249
+ * "uniVer": "4.31",
250
+ * "unixVer": "4.61",
251
+ * "unixVaporVer": "5.0"
252
+ * }
253
+ * }
254
+ * }
255
+ */
256
+ code: string,
257
+ /**
258
+ * 头条小程序当前设备标识
259
+ * @uniPlatform {
260
+ * "app": {
261
+ * "android": {
262
+ * "osVer": "x",
263
+ * "uniVer": "x",
264
+ * "unixVer": "x"
265
+ * },
266
+ * "ios": {
267
+ * "osVer": "x",
268
+ * "uniVer": "x",
269
+ * "unixVer": "x"
270
+ * },
271
+ * "harmony": {
272
+ * "osVer": "x",
273
+ * "uniVer": "x",
274
+ * "unixVer": "x"
275
+ * }
276
+ * }
277
+ * }
278
+ */
279
+ anonymousCode?: string | null,
280
+ /**
281
+ * 支付宝小程序授权码
282
+ * @uniPlatform {
283
+ * "app": {
284
+ * "android": {
285
+ * "osVer": "x",
286
+ * "uniVer": "x",
287
+ * "unixVer": "x"
288
+ * },
289
+ * "ios": {
290
+ * "osVer": "x",
291
+ * "uniVer": "x",
292
+ * "unixVer": "x"
293
+ * },
294
+ * "harmony": {
295
+ * "osVer": "x",
296
+ * "uniVer": "x",
297
+ * "unixVer": "x"
298
+ * }
299
+ * }
300
+ * }
301
+ */
302
+ authCode?: string | null,
303
+ /**
304
+ * 支付宝小程序登录失败的授权类型,key是授权失败的 scope,value 是对应的错误码
305
+ * @uniPlatform {
306
+ * "app": {
307
+ * "android": {
308
+ * "osVer": "x",
309
+ * "uniVer": "x",
310
+ * "unixVer": "x"
311
+ * },
312
+ * "ios": {
313
+ * "osVer": "x",
314
+ * "uniVer": "x",
315
+ * "unixVer": "x"
316
+ * },
317
+ * "harmony": {
318
+ * "osVer": "x",
319
+ * "uniVer": "x",
320
+ * "unixVer": "x"
321
+ * }
322
+ * }
323
+ * }
324
+ */
325
+ authErrorScope?: any | null,
326
+ /**
327
+ * 支付宝小程序登录成功的授权 scope
328
+ * @uniPlatform {
329
+ * "app": {
330
+ * "android": {
331
+ * "osVer": "x",
332
+ * "uniVer": "x",
333
+ * "unixVer": "x"
334
+ * },
335
+ * "ios": {
336
+ * "osVer": "x",
337
+ * "uniVer": "x",
338
+ * "unixVer": "x"
339
+ * },
340
+ * "harmony": {
341
+ * "osVer": "x",
342
+ * "uniVer": "x",
343
+ * "unixVer": "x"
344
+ * }
345
+ * }
346
+ * }
347
+ */
348
+ authSucessScope?: (string[]) | null,
349
+ /**
350
+ * 苹果登录成功返回的信息
351
+ * @uniPlatform {
352
+ * "app": {
353
+ * "android": {
354
+ * "osVer": "x",
355
+ * "uniVer": "x",
356
+ * "unixVer": "x"
357
+ * },
358
+ * "ios": {
359
+ * "osVer": "x",
360
+ * "uniVer": "x",
361
+ * "unixVer": "x"
362
+ * },
363
+ * "harmony": {
364
+ * "osVer": "x",
365
+ * "uniVer": "x",
366
+ * "unixVer": "x"
367
+ * }
368
+ * }
369
+ * }
370
+ */
371
+ appleInfo?: AppleLoginAppleInfo | null
372
+ };
373
+ export type LoginSuccessCallback = (result: LoginSuccess) => void;
374
+ export type LoginFail = IOauthFail;
375
+ export type LoginFailCallback = (result: LoginFail) => void;
376
+ export type LoginComplete = any;
377
+ export type LoginCompleteCallback = (result: LoginComplete) => void;
378
+ export type LoginOptions = {
379
+ /**
380
+ * 授权登录服务提供商,通过uni.getProvider获取,如果不设置则弹出分享列表选择界面
381
+ *
382
+ * @uniPlatform {
383
+ * "app": {
384
+ * "android": {
385
+ * "osVer": "5.0",
386
+ * "uniVer": "√",
387
+ * "unixVer": "5.03"
388
+ * },
389
+ * "ios": {
390
+ * "osVer": "12.0",
391
+ * "uniVer": "√",
392
+ * "unixVer": "5.03"
393
+ * },
394
+ * "harmony": {
395
+ * "osVer": "3.0",
396
+ * "uniVer": "4.31",
397
+ * "unixVer": "4.61",
398
+ * "unixVaporVer": "5.0"
399
+ * }
400
+ * },
401
+ * "mp": {
402
+ * "weixin": {
403
+ * "hostVer": "x",
404
+ * "uniVer": "x",
405
+ * "unixVer": "x"
406
+ * },
407
+ * "alipay": {
408
+ * "hostVer": "x",
409
+ * "uniVer": "x",
410
+ * "unixVer": "x"
411
+ * },
412
+ * "baidu": {
413
+ * "hostVer": "x",
414
+ * "uniVer": "x",
415
+ * "unixVer": "x"
416
+ * },
417
+ * "toutiao": {
418
+ * "hostVer": "x",
419
+ * "uniVer": "x",
420
+ * "unixVer": "x"
421
+ * },
422
+ * "lark": {
423
+ * "hostVer": "x",
424
+ * "uniVer": "x",
425
+ * "unixVer": "x"
426
+ * },
427
+ * "qq": {
428
+ * "hostVer": "x",
429
+ * "uniVer": "x",
430
+ * "unixVer": "x"
431
+ * },
432
+ * "kuaishou": {
433
+ * "hostVer": "x",
434
+ * "uniVer": "x",
435
+ * "unixVer": "x"
436
+ * },
437
+ * "jd": {
438
+ * "hostVer": "x",
439
+ * "uniVer": "x",
440
+ * "unixVer": "x"
441
+ * },
442
+ * "360": {
443
+ * "hostVer": "x",
444
+ * "uniVer": "x",
445
+ * "unixVer": "x"
446
+ * }
447
+ * },
448
+ * "quickapp": {
449
+ * "uniVer": "x",
450
+ * "unixVer": "x"
451
+ * },
452
+ * "web": {
453
+ * "uniVer": "x",
454
+ * "unixVer": "x"
455
+ * }
456
+ * }
457
+ */
458
+ provider?:
459
+ /**
460
+ * 微信登录
461
+ * @uniPlatform {
462
+ * "app": {
463
+ * "android": {
464
+ * "osVer": "x",
465
+ * "uniVer": "x",
466
+ * "unixVer": "5.03"
467
+ * },
468
+ * "ios": {
469
+ * "osVer": "x",
470
+ * "uniVer": "x",
471
+ * "unixVer": "5.03"
472
+ * },
473
+ * "harmony": {
474
+ * "osVer": "5.0.0",
475
+ * "uniVer": "4.76",
476
+ * "unixVer": "4.81",
477
+ * "unixVaporVer": "5.0"
478
+ * }
479
+ * }
480
+ * }
481
+ */
482
+ 'weixin' |
483
+ /**
484
+ * QQ登录
485
+ * @uniPlatform {
486
+ * "app": {
487
+ * "android": {
488
+ * "osVer": "x",
489
+ * "uniVer": "x",
490
+ * "unixVer": "x"
491
+ * },
492
+ * "ios": {
493
+ * "osVer": "x",
494
+ * "uniVer": "x",
495
+ * "unixVer": "x"
496
+ * },
497
+ * "harmony": {
498
+ * "osVer": "x",
499
+ * "uniVer": "x",
500
+ * "unixVer": "x"
501
+ * }
502
+ * }
503
+ * }
504
+ */
505
+ 'qq' |
506
+ /**
507
+ * 新浪微博登录
508
+ * @uniPlatform {
509
+ * "app": {
510
+ * "android": {
511
+ * "osVer": "x",
512
+ * "uniVer": "x",
513
+ * "unixVer": "x"
514
+ * },
515
+ * "ios": {
516
+ * "osVer": "x",
517
+ * "uniVer": "x",
518
+ * "unixVer": "x"
519
+ * },
520
+ * "harmony": {
521
+ * "osVer": "x",
522
+ * "uniVer": "x",
523
+ * "unixVer": "x"
524
+ * }
525
+ * }
526
+ * }
527
+ */
528
+ 'sinaweibo' |
529
+ /**
530
+ * 小米登录
531
+ * @uniPlatform {
532
+ * "app": {
533
+ * "android": {
534
+ * "osVer": "x",
535
+ * "uniVer": "x",
536
+ * "unixVer": "x"
537
+ * },
538
+ * "ios": {
539
+ * "osVer": "x",
540
+ * "uniVer": "x",
541
+ * "unixVer": "x"
542
+ * },
543
+ * "harmony": {
544
+ * "osVer": "x",
545
+ * "uniVer": "x",
546
+ * "unixVer": "x"
547
+ * }
548
+ * }
549
+ * }
550
+ */
551
+ 'xiaomi' |
552
+ /**
553
+ * Apple登录
554
+ * @uniPlatform {
555
+ * "app": {
556
+ * "android": {
557
+ * "osVer": "x",
558
+ * "uniVer": "x",
559
+ * "unixVer": "x"
560
+ * },
561
+ * "ios": {
562
+ * "osVer": "x",
563
+ * "uniVer": "x",
564
+ * "unixVer": "x"
565
+ * },
566
+ * "harmony": {
567
+ * "osVer": "x",
568
+ * "uniVer": "x",
569
+ * "unixVer": "x"
570
+ * }
571
+ * }
572
+ * }
573
+ */
574
+ 'apple' |
575
+ /**
576
+ * 华为 HarmonyOS 华为账号登录
577
+ * @uniPlatform {
578
+ * "app": {
579
+ * "android": {
580
+ * "osVer": "x",
581
+ * "uniVer": "x",
582
+ * "unixVer": "x"
583
+ * },
584
+ * "ios": {
585
+ * "osVer": "x",
586
+ * "uniVer": "x",
587
+ * "unixVer": "x"
588
+ * },
589
+ * "harmony": {
590
+ * "osVer": "3.0",
591
+ * "uniVer": "x",
592
+ * "unixVer": "4.61",
593
+ * "unixVaporVer": "5.0"
594
+ * }
595
+ * }
596
+ * }
597
+ */
598
+ 'huawei' | null,
599
+ /**
600
+ * 授权类型,默认 auth_base。支持 auth_base(静默授权)/ auth_user(主动授权) / auth_zhima(芝麻信用)
601
+ *
602
+ * @uniPlatform {
603
+ * "app": {
604
+ * "android": {
605
+ * "osVer": "x",
606
+ * "uniVer": "x",
607
+ * "unixVer": "x"
608
+ * },
609
+ * "ios": {
610
+ * "osVer": "x",
611
+ * "uniVer": "x",
612
+ * "unixVer": "x"
613
+ * },
614
+ * "harmony": {
615
+ * "osVer": "x",
616
+ * "uniVer": "x",
617
+ * "unixVer": "x"
618
+ * }
619
+ * }
620
+ * "mp": {
621
+ * "alipay": {
622
+ * "hostVer": "√",
623
+ * "uniVer": "√",
624
+ * "unixVer": "x"
625
+ * }
626
+ * }
627
+ * }
628
+ */
629
+ scopes?: any | null,
630
+ /**
631
+ * 超时时间,单位 ms
632
+ * @uniPlatform {
633
+ * "app": {
634
+ * "android": {
635
+ * "osVer": "x",
636
+ * "uniVer": "x",
637
+ * "unixVer": "x"
638
+ * },
639
+ * "ios": {
640
+ * "osVer": "x",
641
+ * "uniVer": "x",
642
+ * "unixVer": "x"
643
+ * },
644
+ * "harmony": {
645
+ * "osVer": "x",
646
+ * "uniVer": "x",
647
+ * "unixVer": "x"
648
+ * }
649
+ * }
650
+ * "mp": {
651
+ * "weixin": {
652
+ * "hostVer": "√",
653
+ * "uniVer": "√",
654
+ * "unixVer": "2.35"
655
+ * },
656
+ * "baidu": {
657
+ * "hostVer": "√",
658
+ * "uniVer": "√",
659
+ * "unixVer": "x"
660
+ * },
661
+ * "jd": {
662
+ * "hostVer": "√",
663
+ * "uniVer": "√",
664
+ * "unixVer": "x"
665
+ * }
666
+ * }
667
+ * }
668
+ */
669
+ timeout?: number | null,
670
+ /**
671
+ * 微信登录仅请求授权认证
672
+ *
673
+ * @uniPlatform {
674
+ * "app": {
675
+ * "android": {
676
+ * "osVer": "5.0",
677
+ * "uniVer": "3.2.6",
678
+ * "unixVer": "x"
679
+ * },
680
+ * "ios": {
681
+ * "osVer": "12.0",
682
+ * "uniVer": "3.2.6",
683
+ * "unixVer": "x"
684
+ * },
685
+ * "harmony": {
686
+ * "osVer": "5.0.0",
687
+ * "uniVer": "4.76",
688
+ * "unixVer": "4.81",
689
+ * "unixVaporVer": "5.0"
690
+ * }
691
+ * },
692
+ * "web": {
693
+ * "uniVer": "x",
694
+ * "unixVer": "x"
695
+ * }
696
+ * }
697
+ */
698
+ onlyAuthorize?: boolean | null,
699
+ /**
700
+ * 接口调用成功的回调函数
701
+ */
702
+ success?: LoginSuccessCallback | null,
703
+ /**
704
+ * 接口调用失败的回调函数
705
+ */
706
+ fail?: LoginFailCallback | null,
707
+ /**
708
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
709
+ */
710
+ complete?: LoginCompleteCallback | null
711
+ };
712
+
713
+ export type UniverifyIconStyles = {
714
+ /**
715
+ * 图标地址
716
+ *
717
+ * 仅支持本地路径,默认为应用图标。
718
+ */
719
+ path: string,
720
+ /**
721
+ * 图标宽度
722
+ *
723
+ * 格式为“XXpx",默认值为"60px"。
724
+ */
725
+ width?: string | null,
726
+ /**
727
+ * 图标高度
728
+ *
729
+ * 格式为“XXpx",默认值为"60px"。
730
+ */
731
+ height?: string | null
732
+ };
733
+ export type UniverifyPhoneNumStyles = {
734
+ /**
735
+ * 字体颜色
736
+ *
737
+ * 格式为"#RRGGBB",默认值为"#000000"。
738
+ */
739
+ color?: string | null,
740
+ /**
741
+ * 字体大小
742
+ *
743
+ * 格式为“XXpx",默认值为"18px"。注意:字体加粗显示。
744
+ */
745
+ fontSize?: string | null
746
+ };
747
+ export type UniverifySloganStyles = {
748
+ /**
749
+ * 字体颜色
750
+ *
751
+ * 格式为"#RRGGBB",默认值为"#8a8b90"。
752
+ */
753
+ color?: string | null,
754
+ /**
755
+ * 字体大小
756
+ *
757
+ * 格式为“XXpx",默认值为"12px"。
758
+ */
759
+ fontSize?: string | null
760
+ };
761
+ export type UniverifyAuthButtonStyles = {
762
+ /**
763
+ * 正常状态按钮颜色
764
+ *
765
+ * 格式为"#RRGGBB",默认值为"#3479f5"。
766
+ */
767
+ normalColor?: string | null,
768
+ /**
769
+ * 按下状态按钮颜色
770
+ *
771
+ * 格式为"#RRGGBB",默认值为"#2861c5"。
772
+ */
773
+ highlightColor?: string | null,
774
+ /**
775
+ * 不可点击状态按钮颜色
776
+ *
777
+ * 格式为"#RRGGBB",默认值为"#73aaf5"。 注意:仅iOS平台支持。
778
+ */
779
+ disabledColor?: string | null,
780
+ /**
781
+ * 按钮宽度
782
+ *
783
+ * 格式为“XXpx",默认值为自适应,距离屏幕左右"32px"。
784
+ */
785
+ width?: string | null,
786
+ /**
787
+ * 按钮高度
788
+ *
789
+ * 格式为“XXpx",默认值为"94px"。
790
+ */
791
+ height?: string | null,
792
+ /**
793
+ * 按钮上文字颜色
794
+ *
795
+ * 格式为"#RRGGBB",默认值为"#ffffff"。
796
+ */
797
+ textColor?: string | null,
798
+ /**
799
+ * 按钮上文字内容
800
+ *
801
+ * 默认值为"本机号码一键登录"。
802
+ */
803
+ title?: string | null,
804
+ /**
805
+ * 授权按钮圆角
806
+ *
807
+ * 格式为“XXpx",默认值:"24px" (按钮高度的一半)
808
+ */
809
+ borderRadius?: string | null
810
+ };
811
+ export type UniverifyOtherButtonStyles = {
812
+ /**
813
+ * 是否显示其它按钮
814
+ *
815
+ * 可取值: true - 显示其它按钮;false - 不显示其它按钮。 默认值为true。
816
+ * @type boolean
817
+ */
818
+ visible?: boolean | null,
819
+ /**
820
+ * 正常状态按钮颜色
821
+ *
822
+ * 格式为"#RRGGBB",默认值为"#f8f8f8"。
823
+ */
824
+ normalColor?: string | null,
825
+ /**
826
+ * 按下状态按钮颜色
827
+ *
828
+ * 格式为"#RRGGBB",默认值为"#dedede"。
829
+ */
830
+ highlightColor?: string | null,
831
+ /**
832
+ * 按钮宽度
833
+ *
834
+ * 格式为“XXpx",默认值为自适应,距离屏幕左右"32px"。
835
+ */
836
+ width?: string | null,
837
+ /**
838
+ * 按钮高度
839
+ *
840
+ * 格式为“XXpx",默认值为"94px"。
841
+ */
842
+ height?: string | null,
843
+ /**
844
+ * 按钮上文字颜色
845
+ *
846
+ * 格式为"#RRGGBB",默认值为"#000000"。
847
+ */
848
+ textColor?: string | null,
849
+ /**
850
+ * 按钮上文字内容
851
+ *
852
+ * 默认值为"本机号码一键登录"。
853
+ */
854
+ title?: string | null,
855
+ /**
856
+ * 按钮边框宽度
857
+ *
858
+ * 格式为“XXpx",默认值为"1px"。 注意:仅iOS平台支持。
859
+ */
860
+ borderWidth?: string | null,
861
+ /**
862
+ * 按钮边框颜色
863
+ *
864
+ * 格式为"#RRGGBB",默认值为"#c5c5c5"。 注意:仅iOS平台支持。
865
+ */
866
+ borderColor?: string | null,
867
+ /**
868
+ * 其他登录按钮圆角
869
+ *
870
+ * 格式为“XXpx",默认值:"24px" (按钮高度的一半)
871
+ */
872
+ borderRadius?: string | null
873
+ };
874
+ export type UniverifyPrivacyItemStyles = {
875
+ /**
876
+ * 链接地址
877
+ *
878
+ * http/https开头的协议链接地址。
879
+ */
880
+ url: string,
881
+ /**
882
+ * 协议链接文字
883
+ */
884
+ title: string
885
+ };
886
+ export type UniverifyPrivacyTermsStyles = {
887
+ /**
888
+ * 默认是否勾选同意协议选择框
889
+ *
890
+ * ture表示勾选,false表示不勾选。默认值为true。
891
+ * HBuilderX3.1.0+版本新增支持。
892
+ * @type boolean
893
+ */
894
+ defaultCheckBoxState?: boolean | null,
895
+ /**
896
+ * 普通文字颜色
897
+ *
898
+ * 格式为"#RRGGBB",默认值为"#8a8b90"。
899
+ */
900
+ textColor?: string | null,
901
+ /**
902
+ * 协议链接文字颜色
903
+ *
904
+ * 格式为"#RRGGBB",默认值为"#1d4788"。
905
+ */
906
+ termsColor?: string | null,
907
+ /**
908
+ * 服务协议前文本内容
909
+ *
910
+ * 默认值为"我已阅读并同意"。
911
+ */
912
+ prefix?: string | null,
913
+ /**
914
+ * 服务协议后文本内容
915
+ *
916
+ * 默认值为"并使用本机号码登录"。
917
+ */
918
+ suffix?: string | null,
919
+ /**
920
+ * 字体大小
921
+ *
922
+ * 格式为“XXpx",默认值为"12px"。
923
+ */
924
+ fontSize?: string | null,
925
+ /**
926
+ * 服务协议
927
+ *
928
+ * 自定义服务协议,可设置使用手机号码登录的协议,最多可设置两个协议。 注意:运营商的服务协议链接会自动添加到自定义服务协议之前。
929
+ */
930
+ privacyItems?: (UniverifyPrivacyItemStyles[]) | null
931
+ };
932
+ export type UniVerifyButtonListItem = {
933
+ /**
934
+ * 该按钮标识,会原样返回。
935
+ */
936
+ provider: string,
937
+ /**
938
+ * 图片路径
939
+ *
940
+ * 仅支持本地图片
941
+ */
942
+ iconPath: string
943
+ };
944
+ export type UniVerifyButtonsStyles = {
945
+ /**
946
+ * 自定义登录按钮图标宽度
947
+ *
948
+ * 单位为px,默认值为45px。
949
+ * 按指定宽度缩放,高度等比例缩放。
950
+ */
951
+ iconWidth?: string | null,
952
+ /**
953
+ * 自定义登录按钮列表
954
+ */
955
+ list: UniVerifyButtonListItem[]
956
+ };
957
+ export type UniverifyStyle = {
958
+ /**
959
+ * 是否全屏模式。
960
+ *
961
+ * true表示全屏模式,false表示非全屏模式,默认值为false。
962
+ * @type boolean
963
+ */
964
+ fullScreen?: boolean | null,
965
+ /**
966
+ * 授权界面背景颜色。
967
+ *
968
+ * 格式为"#RRGGBB",默认值为"#FFFFF"。
969
+ */
970
+ backgroundColor?: string | null,
971
+ /**
972
+ * 背景图片
973
+ */
974
+ backgroundImage?: string | null,
975
+ /**
976
+ * 授权界面图标样式。
977
+ *
978
+ * 可设置自定义图标,默认为应用图标。
979
+ */
980
+ icon?: UniverifyIconStyles | null,
981
+ /**
982
+ * 授权界面电话号码样式
983
+ *
984
+ * 可设置自定义电话号码文字颜色、大小等。
985
+ */
986
+ phoneNum?: UniverifyPhoneNumStyles | null,
987
+ /**
988
+ * 授权界面服务说明样式
989
+ *
990
+ * 可设置自定义服务说明文字颜色、大小等。
991
+ */
992
+ slogan?: UniverifySloganStyles | null,
993
+ /**
994
+ * 授权界面其他登录按钮样式
995
+ *
996
+ * 可设置自定义其他登录按钮背景颜色、文本内容、大小等。
997
+ */
998
+ authButton?: UniverifyAuthButtonStyles | null,
999
+ /**
1000
+ * 支付宝小程序登录成功的授权 scope
1001
+ */
1002
+ otherLoginButton?: UniverifyOtherButtonStyles | null,
1003
+ /**
1004
+ * 授权界面服务协议样式
1005
+ *
1006
+ * 自定义设置服务器协议文字颜色、文本内容,添加自定义服务协议链接等。
1007
+ */
1008
+ privacyTerms?: UniverifyPrivacyTermsStyles | null,
1009
+ /**
1010
+ * 自定义登录按钮列表样式
1011
+ *
1012
+ * 自定义设置更多登录按钮列表,如其它三方登录等。
1013
+ * 注意:HBuilderX3.1.14+版本支持。
1014
+ */
1015
+ buttons?: UniVerifyButtonsStyles | null
1016
+ };
1017
+
1018
+ export type GetUserInfo = (options: GetUserInfoOptions) => void;
1019
+ export type UserInfo = {
1020
+ /**
1021
+ * 用户昵称
1022
+ */
1023
+ nickName: string,
1024
+ /**
1025
+ * 该服务商唯一用户标识
1026
+ * @uniPlatform {
1027
+ * "app": {
1028
+ * "android": {
1029
+ * "osVer": "5.0",
1030
+ * "uniVer": "√",
1031
+ * "unixVer": "x"
1032
+ * },
1033
+ * "ios": {
1034
+ * "osVer": "12.0",
1035
+ * "uniVer": "√",
1036
+ * "unixVer": "x"
1037
+ * },
1038
+ * "harmony": {
1039
+ * "osVer": "3.0",
1040
+ * "uniVer": "4.31",
1041
+ * "unixVer": "4.61",
1042
+ * "unixVaporVer": "5.0"
1043
+ * }
1044
+ * },
1045
+ * "mp": {
1046
+ * "weixin": {
1047
+ * "hostVer": "x",
1048
+ * "uniVer": "x",
1049
+ * "unixVer": "x"
1050
+ * },
1051
+ * "alipay": {
1052
+ * "hostVer": "x",
1053
+ * "uniVer": "x",
1054
+ * "unixVer": "x"
1055
+ * },
1056
+ * "baidu": {
1057
+ * "hostVer": "x",
1058
+ * "uniVer": "x",
1059
+ * "unixVer": "x"
1060
+ * },
1061
+ * "toutiao": {
1062
+ * "hostVer": "x",
1063
+ * "uniVer": "x",
1064
+ * "unixVer": "x"
1065
+ * },
1066
+ * "lark": {
1067
+ * "hostVer": "x",
1068
+ * "uniVer": "x",
1069
+ * "unixVer": "x"
1070
+ * },
1071
+ * "qq": {
1072
+ * "hostVer": "x",
1073
+ * "uniVer": "x",
1074
+ * "unixVer": "x"
1075
+ * },
1076
+ * "kuaishou": {
1077
+ * "hostVer": "x",
1078
+ * "uniVer": "x",
1079
+ * "unixVer": "x"
1080
+ * },
1081
+ * "jd": {
1082
+ * "hostVer": "x",
1083
+ * "uniVer": "x",
1084
+ * "unixVer": "x"
1085
+ * },
1086
+ * "360": {
1087
+ * "hostVer": "x",
1088
+ * "uniVer": "x",
1089
+ * "unixVer": "x"
1090
+ * }
1091
+ * },
1092
+ * "quickapp": {
1093
+ * "uniVer": "x",
1094
+ * "unixVer": "x"
1095
+ * },
1096
+ * "web": {
1097
+ * "uniVer": "x",
1098
+ * "unixVer": "x"
1099
+ * }
1100
+ * }
1101
+ */
1102
+ openId?: string | null,
1103
+ /**
1104
+ * 用户头像
1105
+ */
1106
+ avatarUrl: string,
1107
+ /**
1108
+ * 用户性别(仅微信登录支持)
1109
+ * @uniPlatform {
1110
+ * "app": {
1111
+ * "android": {
1112
+ * "osVer": "x",
1113
+ * "uniVer": "x",
1114
+ * "unixVer": "x"
1115
+ * },
1116
+ * "ios": {
1117
+ * "osVer": "x",
1118
+ * "uniVer": "x",
1119
+ * "unixVer": "x"
1120
+ * },
1121
+ * "harmony": {
1122
+ * "osVer": "5.0.0",
1123
+ * "uniVer": "4.76",
1124
+ * "unixVer": "4.81",
1125
+ * "unixVaporVer": "5.0"
1126
+ * }
1127
+ * },
1128
+ * "mp": {
1129
+ * "weixin": {
1130
+ * "hostVer": "x",
1131
+ * "uniVer": "x",
1132
+ * "unixVer": "x"
1133
+ * },
1134
+ * "alipay": {
1135
+ * "hostVer": "x",
1136
+ * "uniVer": "x",
1137
+ * "unixVer": "x"
1138
+ * },
1139
+ * "baidu": {
1140
+ * "hostVer": "x",
1141
+ * "uniVer": "x",
1142
+ * "unixVer": "x"
1143
+ * },
1144
+ * "toutiao": {
1145
+ * "hostVer": "x",
1146
+ * "uniVer": "x",
1147
+ * "unixVer": "x"
1148
+ * },
1149
+ * "lark": {
1150
+ * "hostVer": "x",
1151
+ * "uniVer": "x",
1152
+ * "unixVer": "x"
1153
+ * },
1154
+ * "qq": {
1155
+ * "hostVer": "x",
1156
+ * "uniVer": "x",
1157
+ * "unixVer": "x"
1158
+ * },
1159
+ * "kuaishou": {
1160
+ * "hostVer": "x",
1161
+ * "uniVer": "x",
1162
+ * "unixVer": "x"
1163
+ * },
1164
+ * "jd": {
1165
+ * "hostVer": "x",
1166
+ * "uniVer": "x",
1167
+ * "unixVer": "x"
1168
+ * },
1169
+ * "360": {
1170
+ * "hostVer": "x",
1171
+ * "uniVer": "x",
1172
+ * "unixVer": "x"
1173
+ * }
1174
+ * },
1175
+ * "quickapp": {
1176
+ * "uniVer": "x",
1177
+ * "unixVer": "x"
1178
+ * },
1179
+ * "web": {
1180
+ * "uniVer": "x",
1181
+ * "unixVer": "x"
1182
+ * }
1183
+ * }
1184
+ */
1185
+ gender?:
1186
+ /**
1187
+ * 男
1188
+ */
1189
+ '0' |
1190
+ /**
1191
+ * 女
1192
+ */
1193
+ '1' |
1194
+ /**
1195
+ * 保密
1196
+ */
1197
+ '2' | null;
1198
+ };
1199
+ export type GetUserInfoSuccess = {
1200
+ /**
1201
+ * 用户信息对象,不包含 openid 等敏感信息
1202
+ * @uniPlatform {
1203
+ * "app": {
1204
+ * "android": {
1205
+ * "osVer": "5.0",
1206
+ * "uniVer": "√",
1207
+ * "unixVer": "x"
1208
+ * },
1209
+ * "ios": {
1210
+ * "osVer": "12.0",
1211
+ * "uniVer": "√",
1212
+ * "unixVer": "x"
1213
+ * },
1214
+ * "harmony": {
1215
+ * "osVer": "3.0",
1216
+ * "uniVer": "4.31",
1217
+ * "unixVer": "4.61",
1218
+ * "unixVaporVer": "5.0"
1219
+ * }
1220
+ * },
1221
+ * "mp": {
1222
+ * "weixin": {
1223
+ * "hostVer": "√",
1224
+ * "uniVer": "√",
1225
+ * "unixVer": "4.41"
1226
+ * },
1227
+ * "alipay": {
1228
+ * "hostVer": "√",
1229
+ * "uniVer": "√",
1230
+ * "unixVer": "x"
1231
+ * },
1232
+ * "baidu": {
1233
+ * "hostVer": "√",
1234
+ * "uniVer": "√",
1235
+ * "unixVer": "x"
1236
+ * },
1237
+ * "toutiao": {
1238
+ * "hostVer": "√",
1239
+ * "uniVer": "√",
1240
+ * "unixVer": "x"
1241
+ * },
1242
+ * "lark": {
1243
+ * "hostVer": "√",
1244
+ * "uniVer": "√",
1245
+ * "unixVer": "x"
1246
+ * },
1247
+ * "qq": {
1248
+ * "hostVer": "√",
1249
+ * "uniVer": "√",
1250
+ * "unixVer": "x"
1251
+ * },
1252
+ * "kuaishou": {
1253
+ * "hostVer": "√",
1254
+ * "uniVer": "√",
1255
+ * "unixVer": "x"
1256
+ * },
1257
+ * "jd": {
1258
+ * "hostVer": "√",
1259
+ * "uniVer": "√",
1260
+ * "unixVer": "x"
1261
+ * },
1262
+ * "360": {
1263
+ * "hostVer": "x",
1264
+ * "uniVer": "x",
1265
+ * "unixVer": "x"
1266
+ * }
1267
+ * },
1268
+ * "quickapp": {
1269
+ * "uniVer": "x",
1270
+ * "unixVer": "x"
1271
+ * },
1272
+ * "web": {
1273
+ * "uniVer": "x",
1274
+ * "unixVer": "x"
1275
+ * }
1276
+ * }
1277
+ */
1278
+ userInfo: UserInfo,
1279
+ /**
1280
+ * 不包括敏感信息的原始数据字符串,用于计算签名。
1281
+ * @uniPlatform {
1282
+ * "app": {
1283
+ * "android": {
1284
+ * "osVer": "5.0",
1285
+ * "uniVer": "x",
1286
+ * "unixVer": "x"
1287
+ * },
1288
+ * "ios": {
1289
+ * "osVer": "12.0",
1290
+ * "uniVer": "x",
1291
+ * "unixVer": "x"
1292
+ * },
1293
+ * "harmony": {
1294
+ * "osVer": "3.0",
1295
+ * "uniVer": "x",
1296
+ * "unixVer": "x"
1297
+ * }
1298
+ * },
1299
+ * "mp": {
1300
+ * "weixin": {
1301
+ * "hostVer": "√",
1302
+ * "uniVer": "√",
1303
+ * "unixVer": "4.41"
1304
+ * },
1305
+ * "alipay": {
1306
+ * "hostVer": "x",
1307
+ * "uniVer": "x",
1308
+ * "unixVer": "x"
1309
+ * },
1310
+ * "baidu": {
1311
+ * "hostVer": "x",
1312
+ * "uniVer": "x",
1313
+ * "unixVer": "x"
1314
+ * },
1315
+ * "toutiao": {
1316
+ * "hostVer": "√",
1317
+ * "uniVer": "√",
1318
+ * "unixVer": "x"
1319
+ * },
1320
+ * "lark": {
1321
+ * "hostVer": "√",
1322
+ * "uniVer": "√",
1323
+ * "unixVer": "x"
1324
+ * },
1325
+ * "qq": {
1326
+ * "hostVer": "x",
1327
+ * "uniVer": "x",
1328
+ * "unixVer": "x"
1329
+ * },
1330
+ * "kuaishou": {
1331
+ * "hostVer": "√",
1332
+ * "uniVer": "√",
1333
+ * "unixVer": "x"
1334
+ * },
1335
+ * "jd": {
1336
+ * "hostVer": "√",
1337
+ * "uniVer": "√",
1338
+ * "unixVer": "x"
1339
+ * },
1340
+ * "360": {
1341
+ * "hostVer": "x",
1342
+ * "uniVer": "x",
1343
+ * "unixVer": "x"
1344
+ * }
1345
+ * },
1346
+ * "quickapp": {
1347
+ * "uniVer": "x",
1348
+ * "unixVer": "x"
1349
+ * },
1350
+ * "web": {
1351
+ * "uniVer": "x",
1352
+ * "unixVer": "x"
1353
+ * }
1354
+ * }
1355
+ */
1356
+ rawData?: string | null,
1357
+ /**
1358
+ * 使用 sha1( rawData + sessionkey ) 得到字符串,用于校验用户信息,仅微信小程序生效。
1359
+ * @uniPlatform {
1360
+ * "app": {
1361
+ * "android": {
1362
+ * "osVer": "5.0",
1363
+ * "uniVer": "x",
1364
+ * "unixVer": "x"
1365
+ * },
1366
+ * "ios": {
1367
+ * "osVer": "12.0",
1368
+ * "uniVer": "x",
1369
+ * "unixVer": "x"
1370
+ * },
1371
+ * "harmony": {
1372
+ * "osVer": "3.0",
1373
+ * "uniVer": "x",
1374
+ * "unixVer": "x"
1375
+ * }
1376
+ * },
1377
+ * "mp": {
1378
+ * "weixin": {
1379
+ * "hostVer": "√",
1380
+ * "uniVer": "√",
1381
+ * "unixVer": "4.41"
1382
+ * },
1383
+ * "alipay": {
1384
+ * "hostVer": "x",
1385
+ * "uniVer": "x",
1386
+ * "unixVer": "x"
1387
+ * },
1388
+ * "baidu": {
1389
+ * "hostVer": "x",
1390
+ * "uniVer": "x",
1391
+ * "unixVer": "x"
1392
+ * },
1393
+ * "toutiao": {
1394
+ * "hostVer": "√",
1395
+ * "uniVer": "√",
1396
+ * "unixVer": "x"
1397
+ * },
1398
+ * "lark": {
1399
+ * "hostVer": "√",
1400
+ * "uniVer": "√",
1401
+ * "unixVer": "x"
1402
+ * },
1403
+ * "qq": {
1404
+ * "hostVer": "x",
1405
+ * "uniVer": "x",
1406
+ * "unixVer": "x"
1407
+ * },
1408
+ * "kuaishou": {
1409
+ * "hostVer": "√",
1410
+ * "uniVer": "√",
1411
+ * "unixVer": "x"
1412
+ * },
1413
+ * "jd": {
1414
+ * "hostVer": "√",
1415
+ * "uniVer": "√",
1416
+ * "unixVer": "x"
1417
+ * },
1418
+ * "360": {
1419
+ * "hostVer": "x",
1420
+ * "uniVer": "x",
1421
+ * "unixVer": "x"
1422
+ * }
1423
+ * },
1424
+ * "quickapp": {
1425
+ * "uniVer": "x",
1426
+ * "unixVer": "x"
1427
+ * },
1428
+ * "web": {
1429
+ * "uniVer": "x",
1430
+ * "unixVer": "x"
1431
+ * }
1432
+ * }
1433
+ */
1434
+ signature?: string | null,
1435
+ /**
1436
+ * 包括敏感数据在内的完整用户信息的加密数据,详细见加密数据解密算法,仅微信小程序生效。
1437
+ * @uniPlatform {
1438
+ * "app": {
1439
+ * "android": {
1440
+ * "osVer": "5.0",
1441
+ * "uniVer": "x",
1442
+ * "unixVer": "x"
1443
+ * },
1444
+ * "ios": {
1445
+ * "osVer": "12.0",
1446
+ * "uniVer": "x",
1447
+ * "unixVer": "x"
1448
+ * },
1449
+ * "harmony": {
1450
+ * "osVer": "3.0",
1451
+ * "uniVer": "x",
1452
+ * "unixVer": "x"
1453
+ * }
1454
+ * },
1455
+ * "mp": {
1456
+ * "weixin": {
1457
+ * "hostVer": "√",
1458
+ * "uniVer": "√",
1459
+ * "unixVer": "4.41"
1460
+ * },
1461
+ * "alipay": {
1462
+ * "hostVer": "x",
1463
+ * "uniVer": "x",
1464
+ * "unixVer": "x"
1465
+ * },
1466
+ * "baidu": {
1467
+ * "hostVer": "x",
1468
+ * "uniVer": "x",
1469
+ * "unixVer": "x"
1470
+ * },
1471
+ * "toutiao": {
1472
+ * "hostVer": "√",
1473
+ * "uniVer": "√",
1474
+ * "unixVer": "x"
1475
+ * },
1476
+ * "lark": {
1477
+ * "hostVer": "√",
1478
+ * "uniVer": "√",
1479
+ * "unixVer": "x"
1480
+ * },
1481
+ * "qq": {
1482
+ * "hostVer": "x",
1483
+ * "uniVer": "x",
1484
+ * "unixVer": "x"
1485
+ * },
1486
+ * "kuaishou": {
1487
+ * "hostVer": "√",
1488
+ * "uniVer": "√",
1489
+ * "unixVer": "x"
1490
+ * },
1491
+ * "jd": {
1492
+ * "hostVer": "√",
1493
+ * "uniVer": "√",
1494
+ * "unixVer": "x"
1495
+ * },
1496
+ * "360": {
1497
+ * "hostVer": "x",
1498
+ * "uniVer": "x",
1499
+ * "unixVer": "x"
1500
+ * }
1501
+ * },
1502
+ * "quickapp": {
1503
+ * "uniVer": "x",
1504
+ * "unixVer": "x"
1505
+ * },
1506
+ * "web": {
1507
+ * "uniVer": "x",
1508
+ * "unixVer": "x"
1509
+ * }
1510
+ * }
1511
+ */
1512
+ encryptedData?: string | null,
1513
+ /**
1514
+ * 加密算法的初始向量,详细见加密数据解密算法,仅微信小程序生效。
1515
+ * @uniPlatform {
1516
+ * "app": {
1517
+ * "android": {
1518
+ * "osVer": "5.0",
1519
+ * "uniVer": "x",
1520
+ * "unixVer": "x"
1521
+ * },
1522
+ * "ios": {
1523
+ * "osVer": "12.0",
1524
+ * "uniVer": "x",
1525
+ * "unixVer": "x"
1526
+ * },
1527
+ * "harmony": {
1528
+ * "osVer": "3.0",
1529
+ * "uniVer": "x",
1530
+ * "unixVer": "x"
1531
+ * }
1532
+ * },
1533
+ * "mp": {
1534
+ * "weixin": {
1535
+ * "hostVer": "√",
1536
+ * "uniVer": "√",
1537
+ * "unixVer": "4.41"
1538
+ * },
1539
+ * "alipay": {
1540
+ * "hostVer": "x",
1541
+ * "uniVer": "x",
1542
+ * "unixVer": "x"
1543
+ * },
1544
+ * "baidu": {
1545
+ * "hostVer": "x",
1546
+ * "uniVer": "x",
1547
+ * "unixVer": "x"
1548
+ * },
1549
+ * "toutiao": {
1550
+ * "hostVer": "√",
1551
+ * "uniVer": "√",
1552
+ * "unixVer": "x"
1553
+ * },
1554
+ * "lark": {
1555
+ * "hostVer": "√",
1556
+ * "uniVer": "√",
1557
+ * "unixVer": "x"
1558
+ * },
1559
+ * "qq": {
1560
+ * "hostVer": "x",
1561
+ * "uniVer": "x",
1562
+ * "unixVer": "x"
1563
+ * },
1564
+ * "kuaishou": {
1565
+ * "hostVer": "√",
1566
+ * "uniVer": "√",
1567
+ * "unixVer": "x"
1568
+ * },
1569
+ * "jd": {
1570
+ * "hostVer": "√",
1571
+ * "uniVer": "√",
1572
+ * "unixVer": "x"
1573
+ * },
1574
+ * "360": {
1575
+ * "hostVer": "x",
1576
+ * "uniVer": "x",
1577
+ * "unixVer": "x"
1578
+ * }
1579
+ * },
1580
+ * "quickapp": {
1581
+ * "uniVer": "x",
1582
+ * "unixVer": "x"
1583
+ * },
1584
+ * "web": {
1585
+ * "uniVer": "x",
1586
+ * "unixVer": "x"
1587
+ * }
1588
+ * }
1589
+ */
1590
+ iv?: string | null,
1591
+ /**
1592
+ * 描述信息
1593
+ */
1594
+ errMsg: string
1595
+ };
1596
+ export type GetUserInfoSuccessCallback = (result: GetUserInfoSuccess) => void;
1597
+ export type GetUserInfoFail = IUniError;
1598
+ export type GetUserInfoFailCallback = (result: GetUserInfoFail) => void;
1599
+ export type GetUserInfoComplete = any;
1600
+ export type GetUserInfoCompleteCallback = (result: GetUserInfoComplete) => void;
1601
+ export type GetUserInfoOptions = {
1602
+ /**
1603
+ * 授权登录服务提供商,通过uni.getProvider获取
1604
+ * @uniPlatform {
1605
+ * "app": {
1606
+ * "android": {
1607
+ * "osVer": "5.0",
1608
+ * "uniVer": "√",
1609
+ * "unixVer": "x"
1610
+ * },
1611
+ * "ios": {
1612
+ * "osVer": "12.0",
1613
+ * "uniVer": "√",
1614
+ * "unixVer": "x"
1615
+ * },
1616
+ * "harmony": {
1617
+ * "osVer": "3.0",
1618
+ * "uniVer": "4.31",
1619
+ * "unixVer": "4.61",
1620
+ * "unixVaporVer": "5.0"
1621
+ * }
1622
+ * },
1623
+ * "mp": {
1624
+ * "weixin": {
1625
+ * "hostVer": "x",
1626
+ * "uniVer": "x",
1627
+ * "unixVer": "x"
1628
+ * },
1629
+ * "alipay": {
1630
+ * "hostVer": "x",
1631
+ * "uniVer": "x",
1632
+ * "unixVer": "x"
1633
+ * },
1634
+ * "baidu": {
1635
+ * "hostVer": "x",
1636
+ * "uniVer": "x",
1637
+ * "unixVer": "x"
1638
+ * },
1639
+ * "toutiao": {
1640
+ * "hostVer": "x",
1641
+ * "uniVer": "x",
1642
+ * "unixVer": "x"
1643
+ * },
1644
+ * "lark": {
1645
+ * "hostVer": "x",
1646
+ * "uniVer": "x",
1647
+ * "unixVer": "x"
1648
+ * },
1649
+ * "qq": {
1650
+ * "hostVer": "x",
1651
+ * "uniVer": "x",
1652
+ * "unixVer": "x"
1653
+ * },
1654
+ * "kuaishou": {
1655
+ * "hostVer": "x",
1656
+ * "uniVer": "x",
1657
+ * "unixVer": "x"
1658
+ * },
1659
+ * "jd": {
1660
+ * "hostVer": "x",
1661
+ * "uniVer": "x",
1662
+ * "unixVer": "x"
1663
+ * },
1664
+ * "360": {
1665
+ * "hostVer": "x",
1666
+ * "uniVer": "x",
1667
+ * "unixVer": "x"
1668
+ * }
1669
+ * },
1670
+ * "quickapp": {
1671
+ * "uniVer": "x",
1672
+ * "unixVer": "x"
1673
+ * },
1674
+ * "web": {
1675
+ * "uniVer": "x",
1676
+ * "unixVer": "x"
1677
+ * }
1678
+ * }
1679
+ */
1680
+ provider?:
1681
+ /**
1682
+ * 微信登录。
1683
+ * - **推荐**: 使用 uniCloud 提供的云函数登录方式,避免在客户端暴露 appSecret。
1684
+ * 1. [获取微信openid](https://doc.dcloud.net.cn/uniCloud/uni-id/old.html#获取微信openid)
1685
+ * 2. [获取App平台微信登录用户信息](https://doc.dcloud.net.cn/uniCloud/uni-id/old.html#get-weixin-user-info)
1686
+ * @uniPlatform {
1687
+ * "app": {
1688
+ * "android": {
1689
+ * "osVer": "x",
1690
+ * "uniVer": "x",
1691
+ * "unixVer": "x"
1692
+ * },
1693
+ * "ios": {
1694
+ * "osVer": "x",
1695
+ * "uniVer": "x",
1696
+ * "unixVer": "x"
1697
+ * },
1698
+ * "harmony": {
1699
+ * "osVer": "x",
1700
+ * "uniVer": "x",
1701
+ * "unixVer": "x"
1702
+ * }
1703
+ * }
1704
+ * }
1705
+ */
1706
+ 'weixin' |
1707
+ /**
1708
+ * QQ登录
1709
+ * @uniPlatform {
1710
+ * "app": {
1711
+ * "android": {
1712
+ * "osVer": "x",
1713
+ * "uniVer": "x",
1714
+ * "unixVer": "x"
1715
+ * },
1716
+ * "ios": {
1717
+ * "osVer": "x",
1718
+ * "uniVer": "x",
1719
+ * "unixVer": "x"
1720
+ * },
1721
+ * "harmony": {
1722
+ * "osVer": "x",
1723
+ * "uniVer": "x",
1724
+ * "unixVer": "x"
1725
+ * }
1726
+ * }
1727
+ * }
1728
+ */
1729
+ 'qq' |
1730
+ /**
1731
+ * 新浪微博登录
1732
+ * @uniPlatform {
1733
+ * "app": {
1734
+ * "android": {
1735
+ * "osVer": "x",
1736
+ * "uniVer": "x",
1737
+ * "unixVer": "x"
1738
+ * },
1739
+ * "ios": {
1740
+ * "osVer": "x",
1741
+ * "uniVer": "x",
1742
+ * "unixVer": "x"
1743
+ * },
1744
+ * "harmony": {
1745
+ * "osVer": "x",
1746
+ * "uniVer": "x",
1747
+ * "unixVer": "x"
1748
+ * }
1749
+ * }
1750
+ * }
1751
+ */
1752
+ 'sinaweibo' |
1753
+ /**
1754
+ * 小米登录
1755
+ * @uniPlatform {
1756
+ * "app": {
1757
+ * "android": {
1758
+ * "osVer": "x",
1759
+ * "uniVer": "x",
1760
+ * "unixVer": "x"
1761
+ * },
1762
+ * "ios": {
1763
+ * "osVer": "x",
1764
+ * "uniVer": "x",
1765
+ * "unixVer": "x"
1766
+ * },
1767
+ * "harmony": {
1768
+ * "osVer": "x",
1769
+ * "uniVer": "x",
1770
+ * "unixVer": "x"
1771
+ * }
1772
+ * }
1773
+ * }
1774
+ */
1775
+ 'xiaomi' |
1776
+ /**
1777
+ * Apple登录
1778
+ * @uniPlatform {
1779
+ * "app": {
1780
+ * "android": {
1781
+ * "osVer": "x",
1782
+ * "uniVer": "x",
1783
+ * "unixVer": "x"
1784
+ * },
1785
+ * "ios": {
1786
+ * "osVer": "x",
1787
+ * "uniVer": "x",
1788
+ * "unixVer": "x"
1789
+ * },
1790
+ * "harmony": {
1791
+ * "osVer": "x",
1792
+ * "uniVer": "x",
1793
+ * "unixVer": "x"
1794
+ * }
1795
+ * }
1796
+ * }
1797
+ */
1798
+ 'apple' |
1799
+ /**
1800
+ * 华为 HarmonyOS 华为账号登录
1801
+ * @uniPlatform {
1802
+ * "app": {
1803
+ * "android": {
1804
+ * "osVer": "x",
1805
+ * "uniVer": "x",
1806
+ * "unixVer": "x"
1807
+ * },
1808
+ * "ios": {
1809
+ * "osVer": "x",
1810
+ * "uniVer": "x",
1811
+ * "unixVer": "x"
1812
+ * },
1813
+ * "harmony": {
1814
+ * "osVer": "3.0",
1815
+ * "uniVer": "4.31",
1816
+ * "unixVer": "4.61",
1817
+ * "unixVaporVer": "5.0"
1818
+ * }
1819
+ * }
1820
+ * }
1821
+ */
1822
+ 'huawei' | null,
1823
+ /**
1824
+ * 是否带上登录态信息,仅微信小程序生效。
1825
+ * @uniPlatform {
1826
+ * "app": {
1827
+ * "android": {
1828
+ * "osVer": "x",
1829
+ * "uniVer": "x",
1830
+ * "unixVer": "x"
1831
+ * },
1832
+ * "ios": {
1833
+ * "osVer": "x",
1834
+ * "uniVer": "x",
1835
+ * "unixVer": "x"
1836
+ * },
1837
+ * "harmony": {
1838
+ * "osVer": "x",
1839
+ * "uniVer": "x",
1840
+ * "unixVer": "x"
1841
+ * }
1842
+ * },
1843
+ * "mp": {
1844
+ * "weixin": {
1845
+ * "hostVer": "√",
1846
+ * "uniVer": "√",
1847
+ * "unixVer": "4.41"
1848
+ * },
1849
+ * "alipay": {
1850
+ * "hostVer": "x",
1851
+ * "uniVer": "x",
1852
+ * "unixVer": "x"
1853
+ * },
1854
+ * "baidu": {
1855
+ * "hostVer": "x",
1856
+ * "uniVer": "x",
1857
+ * "unixVer": "x"
1858
+ * },
1859
+ * "toutiao": {
1860
+ * "hostVer": "√",
1861
+ * "uniVer": "√",
1862
+ * "unixVer": "x"
1863
+ * },
1864
+ * "lark": {
1865
+ * "hostVer": "√",
1866
+ * "uniVer": "√",
1867
+ * "unixVer": "x"
1868
+ * },
1869
+ * "qq": {
1870
+ * "hostVer": "x",
1871
+ * "uniVer": "x",
1872
+ * "unixVer": "x"
1873
+ * },
1874
+ * "kuaishou": {
1875
+ * "hostVer": "√",
1876
+ * "uniVer": "√",
1877
+ * "unixVer": "x"
1878
+ * },
1879
+ * "jd": {
1880
+ * "hostVer": "x",
1881
+ * "uniVer": "x",
1882
+ * "unixVer": "x"
1883
+ * },
1884
+ * "360": {
1885
+ * "hostVer": "x",
1886
+ * "uniVer": "x",
1887
+ * "unixVer": "x"
1888
+ * }
1889
+ * },
1890
+ * "quickapp": {
1891
+ * "uniVer": "x",
1892
+ * "unixVer": "x"
1893
+ * },
1894
+ * "web": {
1895
+ * "uniVer": "x",
1896
+ * "unixVer": "x"
1897
+ * }
1898
+ * }
1899
+ */
1900
+ withCredentials?: boolean | null,
1901
+ /**
1902
+ * 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。默认为en,仅微信小程序生效。
1903
+ * @uniPlatform {
1904
+ * "app": {
1905
+ * "android": {
1906
+ * "osVer": "x",
1907
+ * "uniVer": "x",
1908
+ * "unixVer": "x"
1909
+ * },
1910
+ * "ios": {
1911
+ * "osVer": "x",
1912
+ * "uniVer": "x",
1913
+ * "unixVer": "x"
1914
+ * },
1915
+ * "harmony": {
1916
+ * "osVer": "x",
1917
+ * "uniVer": "x",
1918
+ * "unixVer": "x"
1919
+ * }
1920
+ * },
1921
+ * "mp": {
1922
+ * "weixin": {
1923
+ * "hostVer": "√",
1924
+ * "uniVer": "√",
1925
+ * "unixVer": "4.41"
1926
+ * },
1927
+ * "alipay": {
1928
+ * "hostVer": "x",
1929
+ * "uniVer": "x",
1930
+ * "unixVer": "x"
1931
+ * },
1932
+ * "baidu": {
1933
+ * "hostVer": "x",
1934
+ * "uniVer": "x",
1935
+ * "unixVer": "x"
1936
+ * },
1937
+ * "toutiao": {
1938
+ * "hostVer": "x",
1939
+ * "uniVer": "x",
1940
+ * "unixVer": "x"
1941
+ * },
1942
+ * "lark": {
1943
+ * "hostVer": "x",
1944
+ * "uniVer": "x",
1945
+ * "unixVer": "x"
1946
+ * },
1947
+ * "qq": {
1948
+ * "hostVer": "x",
1949
+ * "uniVer": "x",
1950
+ * "unixVer": "x"
1951
+ * },
1952
+ * "kuaishou": {
1953
+ * "hostVer": "x",
1954
+ * "uniVer": "x",
1955
+ * "unixVer": "x"
1956
+ * },
1957
+ * "jd": {
1958
+ * "hostVer": "x",
1959
+ * "uniVer": "x",
1960
+ * "unixVer": "x"
1961
+ * },
1962
+ * "360": {
1963
+ * "hostVer": "x",
1964
+ * "uniVer": "x",
1965
+ * "unixVer": "x"
1966
+ * }
1967
+ * },
1968
+ * "quickapp": {
1969
+ * "uniVer": "x",
1970
+ * "unixVer": "x"
1971
+ * },
1972
+ * "web": {
1973
+ * "uniVer": "x",
1974
+ * "unixVer": "x"
1975
+ * }
1976
+ * }
1977
+ */
1978
+ lang?: string | null,
1979
+ /**
1980
+ * 超时时间,单位 ms
1981
+ * @uniPlatform {
1982
+ * "app": {
1983
+ * "android": {
1984
+ * "osVer": "x",
1985
+ * "uniVer": "x",
1986
+ * "unixVer": "x"
1987
+ * },
1988
+ * "ios": {
1989
+ * "osVer": "x",
1990
+ * "uniVer": "x",
1991
+ * "unixVer": "x"
1992
+ * },
1993
+ * "harmony": {
1994
+ * "osVer": "x",
1995
+ * "uniVer": "x",
1996
+ * "unixVer": "x"
1997
+ * }
1998
+ * },
1999
+ * "mp": {
2000
+ * "weixin": {
2001
+ * "hostVer": "√",
2002
+ * "uniVer": "√",
2003
+ * "unixVer": "4.41"
2004
+ * },
2005
+ * "alipay": {
2006
+ * "hostVer": "x",
2007
+ * "uniVer": "x",
2008
+ * "unixVer": "x"
2009
+ * },
2010
+ * "baidu": {
2011
+ * "hostVer": "x",
2012
+ * "uniVer": "x",
2013
+ * "unixVer": "x"
2014
+ * },
2015
+ * "toutiao": {
2016
+ * "hostVer": "x",
2017
+ * "uniVer": "x",
2018
+ * "unixVer": "x"
2019
+ * },
2020
+ * "lark": {
2021
+ * "hostVer": "x",
2022
+ * "uniVer": "x",
2023
+ * "unixVer": "x"
2024
+ * },
2025
+ * "qq": {
2026
+ * "hostVer": "x",
2027
+ * "uniVer": "x",
2028
+ * "unixVer": "x"
2029
+ * },
2030
+ * "kuaishou": {
2031
+ * "hostVer": "x",
2032
+ * "uniVer": "x",
2033
+ * "unixVer": "x"
2034
+ * },
2035
+ * "jd": {
2036
+ * "hostVer": "x",
2037
+ * "uniVer": "x",
2038
+ * "unixVer": "x"
2039
+ * },
2040
+ * "360": {
2041
+ * "hostVer": "x",
2042
+ * "uniVer": "x",
2043
+ * "unixVer": "x"
2044
+ * }
2045
+ * },
2046
+ * "quickapp": {
2047
+ * "uniVer": "x",
2048
+ * "unixVer": "x"
2049
+ * },
2050
+ * "web": {
2051
+ * "uniVer": "x",
2052
+ * "unixVer": "x"
2053
+ * }
2054
+ * }
2055
+ */
2056
+ timeout?: number | null,
2057
+ /**
2058
+ * 接口调用成功的回调函数
2059
+ */
2060
+ success?: GetUserInfoSuccessCallback | null,
2061
+ /**
2062
+ * 接口调用失败的回调函数
2063
+ */
2064
+ fail?: GetUserInfoFailCallback | null,
2065
+ /**
2066
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
2067
+ */
2068
+ complete?: GetUserInfoCompleteCallback | null
2069
+ };
2070
+
2071
+ export interface IOauthFail extends IUniError {
2072
+ errCode : OauthErrorCode
2073
+ };
2074
+
2075
+ /**
2076
+ * 微信登录错误码
2077
+ */
2078
+ export type OauthErrorCode =
2079
+ /**
2080
+ * 未找到微信 APPID
2081
+ */
2082
+ 1310500 |
2083
+ /**
2084
+ * APPID、appIdentifier、bundleId不匹配
2085
+ */
2086
+ 1310501 |
2087
+ /**
2088
+ * 微信可能未安装
2089
+ */
2090
+ 1310502 |
2091
+ /**
2092
+ * 未获取到授权凭证
2093
+ */
2094
+ 1310503 |
2095
+ /**
2096
+ * 未获取到授权 code
2097
+ */
2098
+ 1310504 |
2099
+ /**
2100
+ * 授权凭证无效
2101
+ */
2102
+ 1310505 |
2103
+ /**
2104
+ * 获取用户信息失败
2105
+ */
2106
+ 1310506 |
2107
+ /**
2108
+ * 微信 API 请求失败
2109
+ */
2110
+ 1310507 |
2111
+ /**
2112
+ * 微信登录state验证失败
2113
+ */
2114
+ 1310508 |
2115
+ /**
2116
+ * 用户取消登录
2117
+ */
2118
+ 1310509 |
2119
+ /**
2120
+ * 超时时间必须为正整数
2121
+ */
2122
+ 1310510 |
2123
+ /**
2124
+ * 获取用户信息请求超时
2125
+ */
2126
+ 1310511 |
2127
+ /**
2128
+ * iOS 没有配置对应的URL Scheme
2129
+ */
2130
+ 1310512 |
2131
+ /**
2132
+ * iOS 没有配置对应的Universal Link
2133
+ */
2134
+ 1310513 |
2135
+ /**
2136
+ * 登录请求可能被跨站攻击
2137
+ */
2138
+ 1001502040 |
2139
+ /**
2140
+ * 服务供应商获取失败
2141
+ */
2142
+ 1310600