@dcloudio/uni-app-x 0.7.58 → 0.7.60

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 (104) hide show
  1. package/package.json +6 -2
  2. package/types/app.d.ts +16 -8
  3. package/types/index.d.ts +1 -0
  4. package/types/native/CSSStyleDeclaration.d.ts +31 -6
  5. package/types/native/DOMRect.d.ts +60 -10
  6. package/types/native/IUniElement.d.ts +459 -2
  7. package/types/native/UniElement.d.ts +3 -2
  8. package/types/native/UniFormControl.d.ts +1 -1
  9. package/types/native/UniPage.d.ts +2 -2
  10. package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -0
  11. package/types/native/UniSwiperChangeEvent.d.ts +1 -0
  12. package/types/native/UniWebViewContentHeightChangeEvent.d.ts +31 -0
  13. package/types/native/UniWebViewElement.d.ts +3 -1
  14. package/types/native/WebViewStyles.d.ts +1 -1
  15. package/types/native/global.d.ts +10 -0
  16. package/types/native/index.d.ts +1 -0
  17. package/types/page.d.ts +134 -22
  18. package/types/uni/env/index.d.ts +5 -5
  19. package/types/uni/uni-camera-global.d.ts +4 -0
  20. package/types/uni/uni-camera.d.ts +10 -9
  21. package/types/uni/uts-plugin-api/global.d.ts +3 -0
  22. package/types/uni/uts-plugin-api/index.d.ts +3 -0
  23. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +3 -2
  24. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +3 -2
  25. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +9 -6
  26. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/global.d.ts +8 -0
  27. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/index.d.ts +4 -0
  28. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
  29. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +3 -2
  30. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +4 -4
  31. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +4 -0
  32. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +2 -0
  33. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +22 -10
  34. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +11 -11
  35. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +3 -2
  36. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +2 -2
  37. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +2 -2
  38. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +2 -0
  39. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +1 -0
  40. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +47 -1
  41. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +5 -3
  42. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +8 -8
  43. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +4 -1
  44. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +3 -0
  45. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +256 -236
  46. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
  47. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +3 -3
  48. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +12 -11
  49. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +2 -2
  50. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +1 -1
  51. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +4 -4
  52. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +8 -8
  53. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +8 -6
  54. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
  55. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +32 -5
  56. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +7 -16
  57. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
  58. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +1 -1
  59. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +4 -4
  60. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +263 -425
  61. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +27 -7
  62. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +4 -0
  63. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +2 -0
  64. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +296 -181
  65. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +259 -321
  66. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +80 -696
  67. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +10 -8
  68. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +8 -0
  69. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +4 -0
  70. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +4235 -3525
  71. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +401 -344
  72. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +4 -0
  73. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +2 -0
  74. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +778 -290
  75. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +2 -2
  76. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +11 -11
  77. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +5 -5
  78. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +24 -24
  79. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +4 -4
  80. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/global.d.ts +4 -0
  81. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/index.d.ts +2 -0
  82. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +2268 -1281
  83. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +3 -0
  84. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +10 -10
  85. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +2 -2
  86. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +4 -4
  87. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +36 -0
  88. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +17 -0
  89. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +180 -0
  90. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/global.d.ts +8 -0
  91. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/index.d.ts +4 -0
  92. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -0
  93. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +2 -2
  94. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +20 -20
  95. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +18 -18
  96. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +135 -76
  97. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +5 -5
  98. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +26 -26
  99. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +14 -14
  100. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +30 -0
  101. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +15 -0
  102. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +350 -1
  103. package/types/uni-cloud/interface.d.ts +233 -0
  104. package/types/vite.d.ts +269 -0
@@ -2,8 +2,9 @@ export interface Uni {
2
2
  /**
3
3
  * 登录
4
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
5
+ * @tutorial https://uniapp.dcloud.net.cn/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
7
8
  *
8
9
  * @uniPlatform {
9
10
  * "app": {
@@ -85,8 +86,9 @@ export interface Uni {
85
86
  /**
86
87
  * 获取用户信息
87
88
  *
88
- * @tutorial https://uniapp.dcloud.net.cn/api/plugins/login.html#getuserinfo
89
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/plugins/login.html#getuserinfo
89
+ * @tutorial https://uniapp.dcloud.net.cn/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
90
92
  *
91
93
  * @uniPlatform {
92
94
  * "app": {
@@ -245,337 +247,162 @@ export type LoginSuccess = {
245
247
  errMsg: string,
246
248
  /**
247
249
  * 登录服务商提供的登录信息,服务商不同返回的结果不完全相同
248
- * @uniPlatform {
249
- * "mp": {
250
- * "weixin": {
251
- * "hostVer": "",
252
- * "uniVer": "√",
253
- * "unixVer": "4.41"
254
- * },
255
- * "alipay": {
256
- * "hostVer": "-",
257
- * "uniVer": "-",
258
- * "unixVer": "-"
259
- * },
260
- * "baidu": {
261
- * "hostVer": "-",
262
- * "uniVer": "-",
263
- * "unixVer": "-"
264
- * },
265
- * "toutiao": {
266
- * "hostVer": "-",
267
- * "uniVer": "-",
268
- * "unixVer": "-"
269
- * },
270
- * "lark": {
271
- * "hostVer": "-",
272
- * "uniVer": "-",
273
- * "unixVer": "-"
274
- * },
275
- * "qq": {
276
- * "hostVer": "-",
277
- * "uniVer": "-",
278
- * "unixVer": "-"
279
- * },
280
- * "kuaishou": {
281
- * "hostVer": "-",
282
- * "uniVer": "-",
283
- * "unixVer": "-"
284
- * },
285
- * "jd": {
286
- * "hostVer": "-",
287
- * "uniVer": "-",
288
- * "unixVer": "-"
289
- * }
290
- * }
291
- * }
292
- */
250
+ * @uniPlatform {
251
+ * "app": {
252
+ * "android": {
253
+ * "osVer": "5.0",
254
+ * "uniVer": "√",
255
+ * "unixVer": "x"
256
+ * },
257
+ * "ios": {
258
+ * "osVer": "12.0",
259
+ * "uniVer": "",
260
+ * "unixVer": "x"
261
+ * },
262
+ * "harmony": {
263
+ * "osVer": "3.0",
264
+ * "uniVer": "4.31",
265
+ * "unixVer": "4.61"
266
+ * }
267
+ * }
268
+ * }
269
+ */
293
270
  authResult: any,
294
271
  /**
295
272
  * 小程序用户临时登录凭证
296
273
  * @uniPlatform {
297
- * "mp": {
298
- * "weixin": {
299
- * "hostVer": "",
274
+ * "app": {
275
+ * "android": {
276
+ * "osVer": "5.0",
277
+ * "uniVer": "√",
278
+ * "unixVer": "x"
279
+ * },
280
+ * "ios": {
281
+ * "osVer": "12.0",
300
282
  * "uniVer": "√",
301
- * "unixVer": "4.41"
302
- * },
303
- * "alipay": {
304
- * "hostVer": "-",
305
- * "uniVer": "-",
306
- * "unixVer": "-"
307
- * },
308
- * "baidu": {
309
- * "hostVer": "-",
310
- * "uniVer": "-",
311
- * "unixVer": "-"
312
- * },
313
- * "toutiao": {
314
- * "hostVer": "-",
315
- * "uniVer": "-",
316
- * "unixVer": "-"
317
- * },
318
- * "lark": {
319
- * "hostVer": "-",
320
- * "uniVer": "-",
321
- * "unixVer": "-"
322
- * },
323
- * "qq": {
324
- * "hostVer": "-",
325
- * "uniVer": "-",
326
- * "unixVer": "-"
327
- * },
328
- * "kuaishou": {
329
- * "hostVer": "-",
330
- * "uniVer": "-",
331
- * "unixVer": "-"
332
- * },
333
- * "jd": {
334
- * "hostVer": "-",
335
- * "uniVer": "-",
336
- * "unixVer": "-"
337
- * }
338
- * }
283
+ * "unixVer": "x"
284
+ * },
285
+ * "harmony": {
286
+ * "osVer": "3.0",
287
+ * "uniVer": "4.31",
288
+ * "unixVer": "4.61"
289
+ * }
290
+ * }
339
291
  * }
340
292
  */
341
293
  code: string,
342
294
  /**
343
295
  * 头条小程序当前设备标识
344
296
  * @uniPlatform {
345
- * "mp": {
346
- * "weixin": {
347
- * "hostVer": "",
348
- * "uniVer": "",
349
- * "unixVer": "4.41"
350
- * },
351
- * "alipay": {
352
- * "hostVer": "-",
353
- * "uniVer": "-",
354
- * "unixVer": "-"
355
- * },
356
- * "baidu": {
357
- * "hostVer": "-",
358
- * "uniVer": "-",
359
- * "unixVer": "-"
360
- * },
361
- * "toutiao": {
362
- * "hostVer": "-",
363
- * "uniVer": "-",
364
- * "unixVer": "-"
365
- * },
366
- * "lark": {
367
- * "hostVer": "-",
368
- * "uniVer": "-",
369
- * "unixVer": "-"
370
- * },
371
- * "qq": {
372
- * "hostVer": "-",
373
- * "uniVer": "-",
374
- * "unixVer": "-"
375
- * },
376
- * "kuaishou": {
377
- * "hostVer": "-",
378
- * "uniVer": "-",
379
- * "unixVer": "-"
380
- * },
381
- * "jd": {
382
- * "hostVer": "-",
383
- * "uniVer": "-",
384
- * "unixVer": "-"
385
- * }
386
- * }
297
+ * "app": {
298
+ * "android": {
299
+ * "osVer": "x",
300
+ * "uniVer": "x",
301
+ * "unixVer": "x"
302
+ * },
303
+ * "ios": {
304
+ * "osVer": "x",
305
+ * "uniVer": "x",
306
+ * "unixVer": "x"
307
+ * },
308
+ * "harmony": {
309
+ * "osVer": "x",
310
+ * "uniVer": "x",
311
+ * "unixVer": "x"
312
+ * }
313
+ * }
387
314
  * }
388
315
  */
389
316
  anonymousCode?: string | null,
390
317
  /**
391
318
  * 支付宝小程序授权码
392
319
  * @uniPlatform {
393
- * "mp": {
394
- * "weixin": {
395
- * "hostVer": "",
396
- * "uniVer": "",
397
- * "unixVer": "4.41"
398
- * },
399
- * "alipay": {
400
- * "hostVer": "-",
401
- * "uniVer": "-",
402
- * "unixVer": "-"
403
- * },
404
- * "baidu": {
405
- * "hostVer": "-",
406
- * "uniVer": "-",
407
- * "unixVer": "-"
408
- * },
409
- * "toutiao": {
410
- * "hostVer": "-",
411
- * "uniVer": "-",
412
- * "unixVer": "-"
413
- * },
414
- * "lark": {
415
- * "hostVer": "-",
416
- * "uniVer": "-",
417
- * "unixVer": "-"
418
- * },
419
- * "qq": {
420
- * "hostVer": "-",
421
- * "uniVer": "-",
422
- * "unixVer": "-"
423
- * },
424
- * "kuaishou": {
425
- * "hostVer": "-",
426
- * "uniVer": "-",
427
- * "unixVer": "-"
428
- * },
429
- * "jd": {
430
- * "hostVer": "-",
431
- * "uniVer": "-",
432
- * "unixVer": "-"
433
- * }
434
- * }
320
+ * "app": {
321
+ * "android": {
322
+ * "osVer": "x",
323
+ * "uniVer": "x",
324
+ * "unixVer": "x"
325
+ * },
326
+ * "ios": {
327
+ * "osVer": "x",
328
+ * "uniVer": "x",
329
+ * "unixVer": "x"
330
+ * },
331
+ * "harmony": {
332
+ * "osVer": "x",
333
+ * "uniVer": "x",
334
+ * "unixVer": "x"
335
+ * }
336
+ * }
435
337
  * }
436
338
  */
437
339
  authCode?: string | null,
438
340
  /**
439
341
  * 支付宝小程序登录失败的授权类型,key是授权失败的 scope,value 是对应的错误码
440
342
  * @uniPlatform {
441
- * "mp": {
442
- * "weixin": {
443
- * "hostVer": "",
444
- * "uniVer": "",
445
- * "unixVer": "4.41"
446
- * },
447
- * "alipay": {
448
- * "hostVer": "-",
449
- * "uniVer": "-",
450
- * "unixVer": "-"
451
- * },
452
- * "baidu": {
453
- * "hostVer": "-",
454
- * "uniVer": "-",
455
- * "unixVer": "-"
456
- * },
457
- * "toutiao": {
458
- * "hostVer": "-",
459
- * "uniVer": "-",
460
- * "unixVer": "-"
461
- * },
462
- * "lark": {
463
- * "hostVer": "-",
464
- * "uniVer": "-",
465
- * "unixVer": "-"
466
- * },
467
- * "qq": {
468
- * "hostVer": "-",
469
- * "uniVer": "-",
470
- * "unixVer": "-"
471
- * },
472
- * "kuaishou": {
473
- * "hostVer": "-",
474
- * "uniVer": "-",
475
- * "unixVer": "-"
476
- * },
477
- * "jd": {
478
- * "hostVer": "-",
479
- * "uniVer": "-",
480
- * "unixVer": "-"
481
- * }
482
- * }
343
+ * "app": {
344
+ * "android": {
345
+ * "osVer": "x",
346
+ * "uniVer": "x",
347
+ * "unixVer": "x"
348
+ * },
349
+ * "ios": {
350
+ * "osVer": "x",
351
+ * "uniVer": "x",
352
+ * "unixVer": "x"
353
+ * },
354
+ * "harmony": {
355
+ * "osVer": "x",
356
+ * "uniVer": "x",
357
+ * "unixVer": "x"
358
+ * }
359
+ * }
483
360
  * }
484
361
  */
485
362
  authErrorScope?: any | null,
486
363
  /**
487
364
  * 支付宝小程序登录成功的授权 scope
488
365
  * @uniPlatform {
489
- * "mp": {
490
- * "weixin": {
491
- * "hostVer": "",
492
- * "uniVer": "",
493
- * "unixVer": "4.41"
494
- * },
495
- * "alipay": {
496
- * "hostVer": "-",
497
- * "uniVer": "-",
498
- * "unixVer": "-"
499
- * },
500
- * "baidu": {
501
- * "hostVer": "-",
502
- * "uniVer": "-",
503
- * "unixVer": "-"
504
- * },
505
- * "toutiao": {
506
- * "hostVer": "-",
507
- * "uniVer": "-",
508
- * "unixVer": "-"
509
- * },
510
- * "lark": {
511
- * "hostVer": "-",
512
- * "uniVer": "-",
513
- * "unixVer": "-"
514
- * },
515
- * "qq": {
516
- * "hostVer": "-",
517
- * "uniVer": "-",
518
- * "unixVer": "-"
519
- * },
520
- * "kuaishou": {
521
- * "hostVer": "-",
522
- * "uniVer": "-",
523
- * "unixVer": "-"
524
- * },
525
- * "jd": {
526
- * "hostVer": "-",
527
- * "uniVer": "-",
528
- * "unixVer": "-"
529
- * }
530
- * }
531
- * }
532
- */
533
- authSucessScope?: (string[]) | null,
534
- /**
535
- * 苹果登录成功返回的信息
536
- * @uniPlatform {
537
- * "mp": {
538
- * "weixin": {
539
- * "hostVer": "√",
540
- * "uniVer": "√",
541
- * "unixVer": "4.41"
542
- * },
543
- * "alipay": {
544
- * "hostVer": "-",
545
- * "uniVer": "-",
546
- * "unixVer": "-"
547
- * },
548
- * "baidu": {
549
- * "hostVer": "-",
550
- * "uniVer": "-",
551
- * "unixVer": "-"
552
- * },
553
- * "toutiao": {
554
- * "hostVer": "-",
555
- * "uniVer": "-",
556
- * "unixVer": "-"
557
- * },
558
- * "lark": {
559
- * "hostVer": "-",
560
- * "uniVer": "-",
561
- * "unixVer": "-"
562
- * },
563
- * "qq": {
564
- * "hostVer": "-",
565
- * "uniVer": "-",
566
- * "unixVer": "-"
567
- * },
568
- * "kuaishou": {
569
- * "hostVer": "-",
570
- * "uniVer": "-",
571
- * "unixVer": "-"
572
- * },
573
- * "jd": {
574
- * "hostVer": "-",
575
- * "uniVer": "-",
576
- * "unixVer": "-"
577
- * }
578
- * }
366
+ * "app": {
367
+ * "android": {
368
+ * "osVer": "x",
369
+ * "uniVer": "x",
370
+ * "unixVer": "x"
371
+ * },
372
+ * "ios": {
373
+ * "osVer": "x",
374
+ * "uniVer": "x",
375
+ * "unixVer": "x"
376
+ * },
377
+ * "harmony": {
378
+ * "osVer": "x",
379
+ * "uniVer": "x",
380
+ * "unixVer": "x"
381
+ * }
382
+ * }
383
+ * }
384
+ */
385
+ authSucessScope?: (string[]) | null,
386
+ /**
387
+ * 苹果登录成功返回的信息
388
+ * @uniPlatform {
389
+ * "app": {
390
+ * "android": {
391
+ * "osVer": "x",
392
+ * "uniVer": "x",
393
+ * "unixVer": "x"
394
+ * },
395
+ * "ios": {
396
+ * "osVer": "x",
397
+ * "uniVer": "x",
398
+ * "unixVer": "x"
399
+ * },
400
+ * "harmony": {
401
+ * "osVer": "x",
402
+ * "uniVer": "x",
403
+ * "unixVer": "x"
404
+ * }
405
+ * }
579
406
  * }
580
407
  */
581
408
  appleInfo?: AppleLoginAppleInfo | null
@@ -603,7 +430,7 @@ export type LoginOptions = {
603
430
  * },
604
431
  * "harmony": {
605
432
  * "osVer": "3.0",
606
- * "uniVer": "4.27",
433
+ * "uniVer": "4.31",
607
434
  * "unixVer": "4.61"
608
435
  * }
609
436
  * },
@@ -667,36 +494,163 @@ export type LoginOptions = {
667
494
  provider?:
668
495
  /**
669
496
  * 微信登录
497
+ * @uniPlatform {
498
+ * "app": {
499
+ * "android": {
500
+ * "osVer": "x",
501
+ * "uniVer": "x",
502
+ * "unixVer": "x"
503
+ * },
504
+ * "ios": {
505
+ * "osVer": "x",
506
+ * "uniVer": "x",
507
+ * "unixVer": "x"
508
+ * },
509
+ * "harmony": {
510
+ * "osVer": "x",
511
+ * "uniVer": "x",
512
+ * "unixVer": "x"
513
+ * }
514
+ * }
515
+ * }
670
516
  */
671
517
  'weixin' |
672
518
  /**
673
519
  * QQ登录
520
+ * @uniPlatform {
521
+ * "app": {
522
+ * "android": {
523
+ * "osVer": "x",
524
+ * "uniVer": "x",
525
+ * "unixVer": "x"
526
+ * },
527
+ * "ios": {
528
+ * "osVer": "x",
529
+ * "uniVer": "x",
530
+ * "unixVer": "x"
531
+ * },
532
+ * "harmony": {
533
+ * "osVer": "x",
534
+ * "uniVer": "x",
535
+ * "unixVer": "x"
536
+ * }
537
+ * }
538
+ * }
674
539
  */
675
540
  'qq' |
676
541
  /**
677
542
  * 新浪微博登录
543
+ * @uniPlatform {
544
+ * "app": {
545
+ * "android": {
546
+ * "osVer": "x",
547
+ * "uniVer": "x",
548
+ * "unixVer": "x"
549
+ * },
550
+ * "ios": {
551
+ * "osVer": "x",
552
+ * "uniVer": "x",
553
+ * "unixVer": "x"
554
+ * },
555
+ * "harmony": {
556
+ * "osVer": "x",
557
+ * "uniVer": "x",
558
+ * "unixVer": "x"
559
+ * }
560
+ * }
561
+ * }
678
562
  */
679
563
  'sinaweibo' |
680
564
  /**
681
565
  * 小米登录
566
+ * @uniPlatform {
567
+ * "app": {
568
+ * "android": {
569
+ * "osVer": "x",
570
+ * "uniVer": "x",
571
+ * "unixVer": "x"
572
+ * },
573
+ * "ios": {
574
+ * "osVer": "x",
575
+ * "uniVer": "x",
576
+ * "unixVer": "x"
577
+ * },
578
+ * "harmony": {
579
+ * "osVer": "x",
580
+ * "uniVer": "x",
581
+ * "unixVer": "x"
582
+ * }
583
+ * }
584
+ * }
682
585
  */
683
586
  'xiaomi' |
684
587
  /**
685
588
  * Apple登录
589
+ * @uniPlatform {
590
+ * "app": {
591
+ * "android": {
592
+ * "osVer": "x",
593
+ * "uniVer": "x",
594
+ * "unixVer": "x"
595
+ * },
596
+ * "ios": {
597
+ * "osVer": "x",
598
+ * "uniVer": "x",
599
+ * "unixVer": "x"
600
+ * },
601
+ * "harmony": {
602
+ * "osVer": "x",
603
+ * "uniVer": "x",
604
+ * "unixVer": "x"
605
+ * }
606
+ * }
607
+ * }
686
608
  */
687
609
  'apple' |
688
610
  /**
689
- * 一键登录
690
- */
691
- 'univerify' |
692
- /**
693
- * 华为 HarmonyOS Next 华为账号登录
611
+ * 华为 HarmonyOS 华为账号登录
612
+ * @uniPlatform {
613
+ * "app": {
614
+ * "android": {
615
+ * "osVer": "x",
616
+ * "uniVer": "x",
617
+ * "unixVer": "x"
618
+ * },
619
+ * "ios": {
620
+ * "osVer": "x",
621
+ * "uniVer": "x",
622
+ * "unixVer": "x"
623
+ * },
624
+ * "harmony": {
625
+ * "osVer": "3.0",
626
+ * "uniVer": "x",
627
+ * "unixVer": "4.61"
628
+ * }
629
+ * }
630
+ * }
694
631
  */
695
632
  'huawei' | null,
696
633
  /**
697
634
  * 授权类型,默认 auth_base。支持 auth_base(静默授权)/ auth_user(主动授权) / auth_zhima(芝麻信用)
698
635
  *
699
636
  * @uniPlatform {
637
+ * "app": {
638
+ * "android": {
639
+ * "osVer": "x",
640
+ * "uniVer": "x",
641
+ * "unixVer": "x"
642
+ * },
643
+ * "ios": {
644
+ * "osVer": "x",
645
+ * "uniVer": "x",
646
+ * "unixVer": "x"
647
+ * },
648
+ * "harmony": {
649
+ * "osVer": "x",
650
+ * "uniVer": "x",
651
+ * "unixVer": "x"
652
+ * }
653
+ * }
700
654
  * "mp": {
701
655
  * "alipay": {
702
656
  * "hostVer": "√",
@@ -710,6 +664,23 @@ export type LoginOptions = {
710
664
  /**
711
665
  * 超时时间,单位 ms
712
666
  * @uniPlatform {
667
+ * "app": {
668
+ * "android": {
669
+ * "osVer": "x",
670
+ * "uniVer": "x",
671
+ * "unixVer": "x"
672
+ * },
673
+ * "ios": {
674
+ * "osVer": "x",
675
+ * "uniVer": "x",
676
+ * "unixVer": "x"
677
+ * },
678
+ * "harmony": {
679
+ * "osVer": "x",
680
+ * "uniVer": "x",
681
+ * "unixVer": "x"
682
+ * }
683
+ * }
713
684
  * "mp": {
714
685
  * "weixin": {
715
686
  * "hostVer": "√",
@@ -730,34 +701,6 @@ export type LoginOptions = {
730
701
  * }
731
702
  */
732
703
  timeout?: number | null,
733
- /**
734
- * 一键登录页面样式
735
- *
736
- * @uniPlatform {
737
- * "app": {
738
- * "android": {
739
- * "osVer": "5.0",
740
- * "uniVer": "3.0.0",
741
- * "unixVer": "x"
742
- * },
743
- * "ios": {
744
- * "osVer": "12.0",
745
- * "uniVer": "3.0.0",
746
- * "unixVer": "x"
747
- * },
748
- * "harmony": {
749
- * "osVer": "x",
750
- * "uniVer": "x",
751
- * "unixVer": "x"
752
- * }
753
- * },
754
- * "web": {
755
- * "uniVer": "x",
756
- * "unixVer": "x"
757
- * }
758
- * }
759
- */
760
- univerifyStyle?: UniverifyStyle | null,
761
704
  /**
762
705
  * 微信登录仅请求授权认证
763
706
  *
@@ -1302,7 +1245,7 @@ export type UserInfo = {
1302
1245
  * },
1303
1246
  * "harmony": {
1304
1247
  * "osVer": "3.0",
1305
- * "uniVer": "4.27",
1248
+ * "uniVer": "4.31",
1306
1249
  * "unixVer": "4.61"
1307
1250
  * }
1308
1251
  * },
@@ -1685,7 +1628,7 @@ export type GetUserInfoSuccess = {
1685
1628
  * },
1686
1629
  * "harmony": {
1687
1630
  * "osVer": "3.0",
1688
- * "uniVer": "4.27",
1631
+ * "uniVer": "4.31",
1689
1632
  * "unixVer": "4.61"
1690
1633
  * }
1691
1634
  * },
@@ -2181,7 +2124,7 @@ export type GetUserInfoOptions = {
2181
2124
  * },
2182
2125
  * "harmony": {
2183
2126
  * "osVer": "3.0",
2184
- * "uniVer": "4.27",
2127
+ * "uniVer": "4.31",
2185
2128
  * "unixVer": "4.61"
2186
2129
  * }
2187
2130
  * },
@@ -2245,26 +2188,140 @@ export type GetUserInfoOptions = {
2245
2188
  provider?:
2246
2189
  /**
2247
2190
  * 微信登录
2191
+ * @uniPlatform {
2192
+ * "app": {
2193
+ * "android": {
2194
+ * "osVer": "x",
2195
+ * "uniVer": "x",
2196
+ * "unixVer": "x"
2197
+ * },
2198
+ * "ios": {
2199
+ * "osVer": "x",
2200
+ * "uniVer": "x",
2201
+ * "unixVer": "x"
2202
+ * },
2203
+ * "harmony": {
2204
+ * "osVer": "x",
2205
+ * "uniVer": "x",
2206
+ * "unixVer": "x"
2207
+ * }
2208
+ * }
2209
+ * }
2248
2210
  */
2249
2211
  'weixin' |
2250
2212
  /**
2251
2213
  * QQ登录
2214
+ * @uniPlatform {
2215
+ * "app": {
2216
+ * "android": {
2217
+ * "osVer": "x",
2218
+ * "uniVer": "x",
2219
+ * "unixVer": "x"
2220
+ * },
2221
+ * "ios": {
2222
+ * "osVer": "x",
2223
+ * "uniVer": "x",
2224
+ * "unixVer": "x"
2225
+ * },
2226
+ * "harmony": {
2227
+ * "osVer": "x",
2228
+ * "uniVer": "x",
2229
+ * "unixVer": "x"
2230
+ * }
2231
+ * }
2232
+ * }
2252
2233
  */
2253
2234
  'qq' |
2254
2235
  /**
2255
2236
  * 新浪微博登录
2237
+ * @uniPlatform {
2238
+ * "app": {
2239
+ * "android": {
2240
+ * "osVer": "x",
2241
+ * "uniVer": "x",
2242
+ * "unixVer": "x"
2243
+ * },
2244
+ * "ios": {
2245
+ * "osVer": "x",
2246
+ * "uniVer": "x",
2247
+ * "unixVer": "x"
2248
+ * },
2249
+ * "harmony": {
2250
+ * "osVer": "x",
2251
+ * "uniVer": "x",
2252
+ * "unixVer": "x"
2253
+ * }
2254
+ * }
2255
+ * }
2256
2256
  */
2257
2257
  'sinaweibo' |
2258
2258
  /**
2259
2259
  * 小米登录
2260
+ * @uniPlatform {
2261
+ * "app": {
2262
+ * "android": {
2263
+ * "osVer": "x",
2264
+ * "uniVer": "x",
2265
+ * "unixVer": "x"
2266
+ * },
2267
+ * "ios": {
2268
+ * "osVer": "x",
2269
+ * "uniVer": "x",
2270
+ * "unixVer": "x"
2271
+ * },
2272
+ * "harmony": {
2273
+ * "osVer": "x",
2274
+ * "uniVer": "x",
2275
+ * "unixVer": "x"
2276
+ * }
2277
+ * }
2278
+ * }
2260
2279
  */
2261
2280
  'xiaomi' |
2262
2281
  /**
2263
2282
  * Apple登录
2283
+ * @uniPlatform {
2284
+ * "app": {
2285
+ * "android": {
2286
+ * "osVer": "x",
2287
+ * "uniVer": "x",
2288
+ * "unixVer": "x"
2289
+ * },
2290
+ * "ios": {
2291
+ * "osVer": "x",
2292
+ * "uniVer": "x",
2293
+ * "unixVer": "x"
2294
+ * },
2295
+ * "harmony": {
2296
+ * "osVer": "x",
2297
+ * "uniVer": "x",
2298
+ * "unixVer": "x"
2299
+ * }
2300
+ * }
2301
+ * }
2264
2302
  */
2265
2303
  'apple' |
2266
2304
  /**
2267
- * 华为 HarmonyOS Next 华为账号登录
2305
+ * 华为 HarmonyOS 华为账号登录
2306
+ * @uniPlatform {
2307
+ * "app": {
2308
+ * "android": {
2309
+ * "osVer": "x",
2310
+ * "uniVer": "x",
2311
+ * "unixVer": "x"
2312
+ * },
2313
+ * "ios": {
2314
+ * "osVer": "x",
2315
+ * "uniVer": "x",
2316
+ * "unixVer": "x"
2317
+ * },
2318
+ * "harmony": {
2319
+ * "osVer": "3.0",
2320
+ * "uniVer": "4.31",
2321
+ * "unixVer": "4.61"
2322
+ * }
2323
+ * }
2324
+ * }
2268
2325
  */
2269
2326
  'huawei' | null,
2270
2327
  /**