zmp-sdk 2.29.0 → 2.30.1

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 (47) hide show
  1. package/apis/apis/clearStorage.js +1 -1
  2. package/apis/apis/configAppView.js +1 -1
  3. package/apis/apis/onCallbackData.js +1 -1
  4. package/apis/apis/onNetworkStatusChange.js +1 -1
  5. package/apis/apis/openWebview.js +1 -1
  6. package/apis/apis/startBeaconDiscovery.js +1 -1
  7. package/apis/common/apis/general/hideKeyboard.js +1 -1
  8. package/apis/common/apis/general/keepScreen.js +1 -1
  9. package/apis/common/apis/general/openChat.js +1 -1
  10. package/apis/common/apis/general/openMiniApp.js +1 -1
  11. package/apis/common/apis/general/openOutApp.js +1 -1
  12. package/apis/common/apis/general/openPhone.js +1 -1
  13. package/apis/common/apis/general/openProfile.js +1 -1
  14. package/apis/common/apis/general/openSMS.js +1 -1
  15. package/apis/common/apis/general/openWebview.js +1 -1
  16. package/apis/common/apis/general/payment/checkTransaction.js +1 -1
  17. package/apis/common/apis/general/payment/createOrder.js +1 -1
  18. package/apis/common/apis/general/payment/createOrderIAP.js +1 -1
  19. package/apis/common/apis/general/requestCameraPermission.js +1 -1
  20. package/apis/common/apis/general/saveImageToGallery.js +1 -1
  21. package/apis/common/apis/general/sendDataToPreviousMiniApp.js +1 -1
  22. package/apis/common/apis/general/showToast.js +1 -1
  23. package/apis/common/apis/general/startBeaconDiscovery.js +1 -1
  24. package/apis/common/apis/general/stopBeaconDiscovery.js +1 -1
  25. package/apis/common/apis/general/storage/nativeStorage.js +1 -1
  26. package/apis/common/apis/general/unfollowOA.js +1 -1
  27. package/apis/common/apis/general/vibrate.js +1 -1
  28. package/apis/common/apis/general/view.js +1 -1
  29. package/apis/common/apis/general/viewOAQr.js +1 -1
  30. package/apis/common/call/zaloNative.js +1 -1
  31. package/apis/common/eventEmitter.js +1 -1
  32. package/apis/common/token.js +1 -1
  33. package/apis/common/utils.js +1 -1
  34. package/apis/index.d.ts +76 -57
  35. package/apis/package.json.js +1 -1
  36. package/apis/types/enum.js +1 -1
  37. package/apis/utils/common.js +1 -1
  38. package/apis/utils/decorator.js +1 -1
  39. package/apis/utils/query-string.js +1 -1
  40. package/browser.min.js +2 -2
  41. package/index.d.ts +82 -63
  42. package/index.es.js +2 -2
  43. package/index.js +2 -2
  44. package/index.umd.js +3 -3
  45. package/package.json +1 -1
  46. package/zmp-sdk-v2.30.0.tgz +0 -0
  47. package/zmp-sdk-v2.28.6.tgz +0 -0
package/index.d.ts CHANGED
@@ -164,6 +164,7 @@ declare enum Events {
164
164
  AppResumed = "h5.event.resumed",
165
165
  NetworkChanged = "h5.event.connection.changed",
166
166
  OnDataCallback = "h5.event.webview.result",
167
+ WebviewClosed = "h5.event.webview.close",
167
168
  OpenApp = "h5.event.open.mp",
168
169
  AppClose = "h5.event.action.close",
169
170
  PaymentCallback = "payment.callback",
@@ -215,13 +216,13 @@ declare enum MediaPickerType {
215
216
  file = 6
216
217
  }
217
218
  declare enum IAPPayType {
218
- 'SUBSCRIPTION' = "SUBSCRIPTION",
219
- 'ONETIME' = "ONETIME"
219
+ "SUBSCRIPTION" = "SUBSCRIPTION",
220
+ "ONETIME" = "ONETIME"
220
221
  }
221
222
  declare enum ProrationMode {
222
- 'UNKNOW' = 0,
223
- 'DEFERRED' = 1,
224
- 'IMMEDIATE_AND_CHARGE_FULL_PRICE' = 2
223
+ "UNKNOW" = 0,
224
+ "DEFERRED" = 1,
225
+ "IMMEDIATE_AND_CHARGE_FULL_PRICE" = 2
225
226
  }
226
227
  declare enum StatusBarType {
227
228
  normal = 1,
@@ -258,7 +259,7 @@ type Action<T> = {
258
259
  whiteList?: boolean;
259
260
  haveCallback?: boolean;
260
261
  errorList?: {
261
- [K in PlatformType]?: {
262
+ [L in PlatformType]?: {
262
263
  [code: string]: {
263
264
  mapTo: {
264
265
  code: number;
@@ -1426,7 +1427,7 @@ declare const setNavigationBarTitleArgs: ZodOptional<ZodObject<{
1426
1427
  }, {
1427
1428
  title: string;
1428
1429
  }>>[];
1429
- declare function setNavigationBarTitle(args: AsyncVoidCallback & TypeOf<typeof setNavigationBarTitleArgs[0]>): Promise<void>;
1430
+ declare function setNavigationBarTitle(args: AsyncVoidCallback & TypeOf<(typeof setNavigationBarTitleArgs)[0]>): Promise<void>;
1430
1431
 
1431
1432
  declare const setNavigationBarColorArgs: ZodOptional<ZodObject<{
1432
1433
  color: ZodString;
@@ -1441,7 +1442,7 @@ declare const setNavigationBarColorArgs: ZodOptional<ZodObject<{
1441
1442
  statusBarColor?: string | undefined;
1442
1443
  color: string;
1443
1444
  }>>[];
1444
- declare function setNavigationBarColor(args: AsyncVoidCallback & TypeOf<typeof setNavigationBarColorArgs[0]>): Promise<void>;
1445
+ declare function setNavigationBarColor(args: AsyncVoidCallback & TypeOf<(typeof setNavigationBarColorArgs)[0]>): Promise<void>;
1445
1446
 
1446
1447
  declare const setNavigationBarLeftButtonArgs: ZodOptional<ZodObject<{
1447
1448
  type: ZodEnum<["none", "back", "home", "both"]>;
@@ -1450,7 +1451,7 @@ declare const setNavigationBarLeftButtonArgs: ZodOptional<ZodObject<{
1450
1451
  }, {
1451
1452
  type: "none" | "home" | "both" | "back";
1452
1453
  }>>[];
1453
- declare function setNavigationBarLeftButton(args: AsyncVoidCallback & TypeOf<typeof setNavigationBarLeftButtonArgs[0]>): Promise<void>;
1454
+ declare function setNavigationBarLeftButton(args: AsyncVoidCallback & TypeOf<(typeof setNavigationBarLeftButtonArgs)[0]>): Promise<void>;
1454
1455
 
1455
1456
  declare const setStorageArgs: ZodOptional<ZodObject<{
1456
1457
  data: ZodRecord<ZodString, ZodAny>;
@@ -1459,7 +1460,7 @@ declare const setStorageArgs: ZodOptional<ZodObject<{
1459
1460
  }, {
1460
1461
  data: Record<string, any>;
1461
1462
  }>>[];
1462
- declare function setStorage(args: AsyncCallback<SetStorageReturns> & TypeOf<typeof setStorageArgs[0]>): Promise<SetStorageReturns>;
1463
+ declare function setStorage(args: AsyncCallback<SetStorageReturns> & TypeOf<(typeof setStorageArgs)[0]>): Promise<SetStorageReturns>;
1463
1464
 
1464
1465
  declare const getStorageArgs: ZodOptional<ZodObject<{
1465
1466
  keys: ZodArray<ZodString, "many">;
@@ -1468,7 +1469,7 @@ declare const getStorageArgs: ZodOptional<ZodObject<{
1468
1469
  }, {
1469
1470
  keys: string[];
1470
1471
  }>>[];
1471
- declare function getStorage(args: AsyncCallback<GetStorageReturns> & TypeOf<typeof getStorageArgs[0]>): Promise<GetStorageReturns>;
1472
+ declare function getStorage(args: AsyncCallback<GetStorageReturns> & TypeOf<(typeof getStorageArgs)[0]>): Promise<GetStorageReturns>;
1472
1473
 
1473
1474
  declare function getStorageInfo(args?: AsyncCallback<StorageInfo>): Promise<StorageInfo>;
1474
1475
 
@@ -1479,7 +1480,7 @@ declare const removeStorageArgs: ZodOptional<ZodObject<{
1479
1480
  }, {
1480
1481
  keys: string[];
1481
1482
  }>>[];
1482
- declare function removeStorage(args: AsyncCallback<RemoveStorageReturns> & TypeOf<typeof removeStorageArgs[0]>): Promise<RemoveStorageReturns>;
1483
+ declare function removeStorage(args: AsyncCallback<RemoveStorageReturns> & TypeOf<(typeof removeStorageArgs)[0]>): Promise<RemoveStorageReturns>;
1483
1484
 
1484
1485
  declare const clearStorageArgs: ZodOptional<ZodObject<{
1485
1486
  prefix: ZodOptional<ZodString>;
@@ -1488,7 +1489,7 @@ declare const clearStorageArgs: ZodOptional<ZodObject<{
1488
1489
  }, {
1489
1490
  prefix?: string | undefined;
1490
1491
  }>>[];
1491
- declare function clearStorage(args: AsyncVoidCallback & TypeOf<typeof clearStorageArgs[0]>): Promise<void>;
1492
+ declare function clearStorage(args: AsyncVoidCallback & TypeOf<(typeof clearStorageArgs)[0]>): Promise<void>;
1492
1493
 
1493
1494
  declare const getUserInfoArgs: ZodOptional<ZodObject<{
1494
1495
  avatarType: ZodOptional<ZodEnum<["small", "normal", "large"]>>;
@@ -1497,7 +1498,7 @@ declare const getUserInfoArgs: ZodOptional<ZodObject<{
1497
1498
  }, {
1498
1499
  avatarType?: "normal" | "small" | "large" | undefined;
1499
1500
  }>>[];
1500
- declare function getUserInfo(args?: AsyncCallback<GetUserInfoReturns> & TypeOf<typeof getUserInfoArgs[0]>): Promise<GetUserInfoReturns>;
1501
+ declare function getUserInfo(args?: AsyncCallback<GetUserInfoReturns> & TypeOf<(typeof getUserInfoArgs)[0]>): Promise<GetUserInfoReturns>;
1501
1502
 
1502
1503
  declare function getNetworkType(args?: AsyncCallback<GetNetworkTypeReturns>): Promise<GetNetworkTypeReturns>;
1503
1504
 
@@ -1511,7 +1512,7 @@ declare const onNetworkStatusChangeArgs: ZodFunction<ZodTuple<[ZodObject<{
1511
1512
  isConnected: boolean;
1512
1513
  networkType: "none" | "unknown" | "wifi" | "cellular";
1513
1514
  }>], ZodUnknown>, ZodVoid>[];
1514
- declare function onNetworkStatusChange(args: TypeOf<typeof onNetworkStatusChangeArgs[0]>): void;
1515
+ declare function onNetworkStatusChange(args: TypeOf<(typeof onNetworkStatusChangeArgs)[0]>): void;
1515
1516
 
1516
1517
  declare const startBeaconDiscoveryArgs: ZodOptional<ZodObject<{
1517
1518
  scanningType: ZodOptional<ZodDefault<ZodEffects<ZodNumber, number, number>>>;
@@ -1609,7 +1610,7 @@ declare const startBeaconDiscoveryArgs: ZodOptional<ZodObject<{
1609
1610
  }[] | undefined;
1610
1611
  scanFromSource?: string | undefined;
1611
1612
  }>>[];
1612
- declare function startBeaconDiscovery(args: AsyncCallback<boolean> & TypeOf<typeof startBeaconDiscoveryArgs[0]>): Promise<boolean>;
1613
+ declare function startBeaconDiscovery(args: AsyncCallback<boolean> & TypeOf<(typeof startBeaconDiscoveryArgs)[0]>): Promise<boolean>;
1613
1614
 
1614
1615
  declare function stopBeaconDiscovery(args: AsyncCallback<boolean>): Promise<boolean>;
1615
1616
 
@@ -1635,7 +1636,7 @@ declare const openProfileArgs: ZodOptional<ZodObject<{
1635
1636
  type: "user" | "oa" | "aliasOA";
1636
1637
  id: string;
1637
1638
  }>>[];
1638
- declare function openProfile(args: AsyncVoidCallback & TypeOf<typeof openProfileArgs[0]>): Promise<void>;
1639
+ declare function openProfile(args: AsyncVoidCallback & TypeOf<(typeof openProfileArgs)[0]>): Promise<void>;
1639
1640
 
1640
1641
  declare const openChatArgs: ZodOptional<ZodObject<{
1641
1642
  id: ZodString;
@@ -1656,7 +1657,7 @@ declare const openChatArgs: ZodOptional<ZodObject<{
1656
1657
  type: "user" | "oa";
1657
1658
  id: string;
1658
1659
  }>>[];
1659
- declare function openChat(args: AsyncVoidCallback & TypeOf<typeof openChatArgs[0]>): Promise<void>;
1660
+ declare function openChat(args: AsyncVoidCallback & TypeOf<(typeof openChatArgs)[0]>): Promise<void>;
1660
1661
 
1661
1662
  declare const openPostFeedArgs: ZodUnion<[ZodObject<{
1662
1663
  type: ZodEnum<["image"]>;
@@ -1685,29 +1686,29 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
1685
1686
  thumb: ZodOptional<ZodString>;
1686
1687
  description: ZodOptional<ZodDefault<ZodString>>;
1687
1688
  }, "strip", ZodTypeAny, {
1689
+ description?: string | undefined;
1688
1690
  title?: string | undefined;
1689
1691
  thumb?: string | undefined;
1690
- description?: string | undefined;
1691
1692
  link: string;
1692
1693
  }, {
1694
+ description?: string | undefined;
1693
1695
  title?: string | undefined;
1694
1696
  thumb?: string | undefined;
1695
- description?: string | undefined;
1696
1697
  link: string;
1697
1698
  }>;
1698
1699
  }, "strip", ZodTypeAny, {
1699
1700
  data: {
1701
+ description?: string | undefined;
1700
1702
  title?: string | undefined;
1701
1703
  thumb?: string | undefined;
1702
- description?: string | undefined;
1703
1704
  link: string;
1704
1705
  };
1705
1706
  type: "link";
1706
1707
  }, {
1707
1708
  data: {
1709
+ description?: string | undefined;
1708
1710
  title?: string | undefined;
1709
1711
  thumb?: string | undefined;
1710
- description?: string | undefined;
1711
1712
  link: string;
1712
1713
  };
1713
1714
  type: "link";
@@ -1731,7 +1732,7 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
1731
1732
  };
1732
1733
  type: "profile";
1733
1734
  }>]>[];
1734
- declare function openPostFeed(args: AsyncCallback<OpenPostFeedReturns> & TypeOf<typeof openPostFeedArgs[0]>): Promise<OpenPostFeedReturns>;
1735
+ declare function openPostFeed(args: AsyncCallback<OpenPostFeedReturns> & TypeOf<(typeof openPostFeedArgs)[0]>): Promise<OpenPostFeedReturns>;
1735
1736
 
1736
1737
  declare const followOAArgs: ZodOptional<ZodObject<{
1737
1738
  id: ZodString;
@@ -1743,7 +1744,7 @@ declare const followOAArgs: ZodOptional<ZodObject<{
1743
1744
  showDialogConfirm?: boolean | undefined;
1744
1745
  id: string;
1745
1746
  }>>[];
1746
- declare function followOA(args: AsyncVoidCallback & TypeOf<typeof followOAArgs[0]>): Promise<void>;
1747
+ declare function followOA(args: AsyncVoidCallback & TypeOf<(typeof followOAArgs)[0]>): Promise<void>;
1747
1748
 
1748
1749
  declare const unfollowOAArgs: ZodOptional<ZodObject<{
1749
1750
  id: ZodString;
@@ -1752,7 +1753,7 @@ declare const unfollowOAArgs: ZodOptional<ZodObject<{
1752
1753
  }, {
1753
1754
  id: string;
1754
1755
  }>>[];
1755
- declare function unfollowOA(args: AsyncVoidCallback & TypeOf<typeof unfollowOAArgs[0]>): Promise<void>;
1756
+ declare function unfollowOA(args: AsyncVoidCallback & TypeOf<(typeof unfollowOAArgs)[0]>): Promise<void>;
1756
1757
 
1757
1758
  declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1758
1759
  type: ZodEnum<["image"]>;
@@ -1897,34 +1898,34 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1897
1898
  path: ZodOptional<ZodString>;
1898
1899
  description: ZodOptional<ZodDefault<ZodString>>;
1899
1900
  }, "strip", ZodTypeAny, {
1900
- path?: string | undefined;
1901
1901
  description?: string | undefined;
1902
+ path?: string | undefined;
1902
1903
  title: string;
1903
1904
  thumbnail: string;
1904
1905
  }, {
1905
- path?: string | undefined;
1906
1906
  description?: string | undefined;
1907
+ path?: string | undefined;
1907
1908
  title: string;
1908
1909
  thumbnail: string;
1909
1910
  }>;
1910
1911
  }, "strip", ZodTypeAny, {
1911
1912
  data: {
1912
- path?: string | undefined;
1913
1913
  description?: string | undefined;
1914
+ path?: string | undefined;
1914
1915
  title: string;
1915
1916
  thumbnail: string;
1916
1917
  };
1917
1918
  type: "zmp" | "zmp_deep_link";
1918
1919
  }, {
1919
1920
  data: {
1920
- path?: string | undefined;
1921
1921
  description?: string | undefined;
1922
+ path?: string | undefined;
1922
1923
  title: string;
1923
1924
  thumbnail: string;
1924
1925
  };
1925
1926
  type: "zmp" | "zmp_deep_link";
1926
1927
  }>]>[];
1927
- declare function openShareSheet(args: AsyncCallback<OpenShareSheetReturns> & TypeOf<typeof openShareSheetArgs[0]>): Promise<OpenShareSheetReturns>;
1928
+ declare function openShareSheet(args: AsyncCallback<OpenShareSheetReturns> & TypeOf<(typeof openShareSheetArgs)[0]>): Promise<OpenShareSheetReturns>;
1928
1929
 
1929
1930
  declare function requestCameraPermission(args?: AsyncCallback<RequestCameraPermissionReturns>): Promise<RequestCameraPermissionReturns>;
1930
1931
 
@@ -1935,7 +1936,7 @@ declare const createShortcutArgs: ZodOptional<ZodObject<{
1935
1936
  }, {
1936
1937
  params?: Record<string, string> | undefined;
1937
1938
  }>>[];
1938
- declare function createShortcut(args?: AsyncCallback<any> & TypeOf<typeof createShortcutArgs[0]>): Promise<any>;
1939
+ declare function createShortcut(args?: AsyncCallback<any> & TypeOf<(typeof createShortcutArgs)[0]>): Promise<any>;
1939
1940
 
1940
1941
  declare const openBioAuthenticationArgs: ZodOptional<ZodObject<{
1941
1942
  secretData: ZodString;
@@ -1970,7 +1971,7 @@ declare const openBioAuthenticationArgs: ZodOptional<ZodObject<{
1970
1971
  requireFingerprint?: boolean | undefined;
1971
1972
  secretData: string;
1972
1973
  }>>[];
1973
- declare function openBioAuthentication(args: AsyncCallback<OpenBioAuthenticationReturns> & TypeOf<typeof openBioAuthenticationArgs[0]>): Promise<OpenBioAuthenticationReturns>;
1974
+ declare function openBioAuthentication(args: AsyncCallback<OpenBioAuthenticationReturns> & TypeOf<(typeof openBioAuthenticationArgs)[0]>): Promise<OpenBioAuthenticationReturns>;
1974
1975
 
1975
1976
  declare function checkStateBioAuthentication(args?: AsyncCallback<CheckStateBioAuthenticationReturns>): Promise<CheckStateBioAuthenticationReturns>;
1976
1977
 
@@ -1981,7 +1982,7 @@ declare const showToastArgs: ZodOptional<ZodObject<{
1981
1982
  }, {
1982
1983
  message: string;
1983
1984
  }>>[];
1984
- declare function showToast(args: AsyncVoidCallback & TypeOf<typeof showToastArgs[0]>): Promise<void>;
1985
+ declare function showToast(args: AsyncVoidCallback & TypeOf<(typeof showToastArgs)[0]>): Promise<void>;
1985
1986
 
1986
1987
  declare function hideKeyboard(args?: AsyncVoidCallback): Promise<void>;
1987
1988
 
@@ -1992,7 +1993,7 @@ declare const openPhoneArgs: ZodObject<{
1992
1993
  }, {
1993
1994
  phoneNumber: string;
1994
1995
  }>[];
1995
- declare function openPhone(args: AsyncVoidCallback & TypeOf<typeof openPhoneArgs[0]>): Promise<void>;
1996
+ declare function openPhone(args: AsyncVoidCallback & TypeOf<(typeof openPhoneArgs)[0]>): Promise<void>;
1996
1997
 
1997
1998
  declare const openSMSArgs: ZodObject<{
1998
1999
  content: ZodString;
@@ -2004,7 +2005,7 @@ declare const openSMSArgs: ZodObject<{
2004
2005
  content: string;
2005
2006
  phoneNumber: string;
2006
2007
  }>[];
2007
- declare function openSMS(args: AsyncVoidCallback & TypeOf<typeof openSMSArgs[0]>): Promise<void>;
2008
+ declare function openSMS(args: AsyncVoidCallback & TypeOf<(typeof openSMSArgs)[0]>): Promise<void>;
2008
2009
 
2009
2010
  declare const viewOAQrArgs: ZodObject<{
2010
2011
  id: ZodString;
@@ -2016,7 +2017,7 @@ declare const viewOAQrArgs: ZodObject<{
2016
2017
  displayName?: string | undefined;
2017
2018
  id: string;
2018
2019
  }>[];
2019
- declare function viewOAQr(args: AsyncVoidCallback & TypeOf<typeof viewOAQrArgs[0]>): Promise<void>;
2020
+ declare function viewOAQr(args: AsyncVoidCallback & TypeOf<(typeof viewOAQrArgs)[0]>): Promise<void>;
2020
2021
 
2021
2022
  declare const keepScreenArgs: ZodObject<{
2022
2023
  keepScreenOn: ZodBoolean;
@@ -2025,7 +2026,7 @@ declare const keepScreenArgs: ZodObject<{
2025
2026
  }, {
2026
2027
  keepScreenOn: boolean;
2027
2028
  }>[];
2028
- declare function keepScreen(args: AsyncCallback<KeepScreenReturns> & TypeOf<typeof keepScreenArgs[0]>): Promise<void>;
2029
+ declare function keepScreen(args: AsyncCallback<KeepScreenReturns> & TypeOf<(typeof keepScreenArgs)[0]>): Promise<void>;
2029
2030
 
2030
2031
  declare function onKeepScreen(args?: AsyncVoidCallback): Promise<void>;
2031
2032
 
@@ -2041,7 +2042,7 @@ declare const saveImageToGalleryArgs: ZodOptional<ZodObject<{
2041
2042
  imageUrl?: string | undefined;
2042
2043
  imageBase64Data?: string | undefined;
2043
2044
  }>>[];
2044
- declare function saveImageToGallery(args: AsyncVoidCallback & TypeOf<typeof saveImageToGalleryArgs[0]>): Promise<void>;
2045
+ declare function saveImageToGallery(args: AsyncVoidCallback & TypeOf<(typeof saveImageToGalleryArgs)[0]>): Promise<void>;
2045
2046
 
2046
2047
  declare const openMiniAppArgs: ZodObject<{
2047
2048
  appId: ZodString;
@@ -2056,7 +2057,7 @@ declare const openMiniAppArgs: ZodObject<{
2056
2057
  params?: Record<string, string> | undefined;
2057
2058
  appId: string;
2058
2059
  }>[];
2059
- declare function openMiniApp(args: AsyncVoidCallback & TypeOf<typeof openMiniAppArgs[0]>): Promise<void>;
2060
+ declare function openMiniApp(args: AsyncVoidCallback & TypeOf<(typeof openMiniAppArgs)[0]>): Promise<void>;
2060
2061
 
2061
2062
  declare const vibrateArgs: ZodObject<{
2062
2063
  type: ZodDefault<ZodEnum<["oneShot"]>>;
@@ -2068,16 +2069,34 @@ declare const vibrateArgs: ZodObject<{
2068
2069
  type?: "oneShot" | undefined;
2069
2070
  milliseconds?: number | undefined;
2070
2071
  }>[];
2071
- declare function vibrate(args?: AsyncVoidCallback & TypeOf<typeof vibrateArgs[0]>): Promise<void>;
2072
+ declare function vibrate(args?: AsyncVoidCallback & TypeOf<(typeof vibrateArgs)[0]>): Promise<void>;
2072
2073
 
2073
2074
  declare const openWebviewArgs: ZodObject<{
2074
2075
  url: ZodString;
2076
+ config: ZodOptional<ZodObject<{
2077
+ style: ZodOptional<ZodDefault<ZodEnum<["bottomSheet", "normal"]>>>;
2078
+ leftButton: ZodOptional<ZodDefault<ZodEnum<["back", "none"]>>>;
2079
+ }, "strip", ZodTypeAny, {
2080
+ style?: "normal" | "bottomSheet" | undefined;
2081
+ leftButton?: "none" | "back" | undefined;
2082
+ }, {
2083
+ style?: "normal" | "bottomSheet" | undefined;
2084
+ leftButton?: "none" | "back" | undefined;
2085
+ }>>;
2075
2086
  }, "strip", ZodTypeAny, {
2087
+ config?: {
2088
+ style?: "normal" | "bottomSheet" | undefined;
2089
+ leftButton?: "none" | "back" | undefined;
2090
+ } | undefined;
2076
2091
  url: string;
2077
2092
  }, {
2093
+ config?: {
2094
+ style?: "normal" | "bottomSheet" | undefined;
2095
+ leftButton?: "none" | "back" | undefined;
2096
+ } | undefined;
2078
2097
  url: string;
2079
2098
  }>[];
2080
- declare function openWebview(args: AsyncCallback<OpenWebviewReturns> & TypeOf<typeof openWebviewArgs[0]>): Promise<void>;
2099
+ declare function openWebview(args: AsyncCallback<OpenWebviewReturns> & TypeOf<(typeof openWebviewArgs)[0]>): Promise<void>;
2081
2100
 
2082
2101
  declare function getRouteParams(): Record<string, string>;
2083
2102
 
@@ -2090,7 +2109,7 @@ declare const sendDataToPreviousMiniAppArgs: ZodObject<{
2090
2109
  }, {
2091
2110
  data?: any;
2092
2111
  }>[];
2093
- declare function sendDataToPreviousMiniApp(args: AsyncVoidCallback & TypeOf<typeof sendDataToPreviousMiniAppArgs[0]>): Promise<void>;
2112
+ declare function sendDataToPreviousMiniApp(args: AsyncVoidCallback & TypeOf<(typeof sendDataToPreviousMiniAppArgs)[0]>): Promise<void>;
2094
2113
 
2095
2114
  declare function getPhoneNumber(args?: AsyncCallback<GetPhoneNumberReturns>): Promise<GetPhoneNumberReturns>;
2096
2115
 
@@ -2101,7 +2120,7 @@ declare const openProfilePickerArgs: ZodObject<{
2101
2120
  }, {
2102
2121
  maxProfile?: number | undefined;
2103
2122
  }>[];
2104
- declare function openProfilePicker(args?: AsyncCallback<OpenProfilePickerReturns> & TypeOf<typeof openProfilePickerArgs[0]>): Promise<OpenProfilePickerReturns>;
2123
+ declare function openProfilePicker(args?: AsyncCallback<OpenProfilePickerReturns> & TypeOf<(typeof openProfilePickerArgs)[0]>): Promise<OpenProfilePickerReturns>;
2105
2124
 
2106
2125
  declare const connectWifiArgs: ZodObject<{
2107
2126
  SSID: ZodString;
@@ -2116,7 +2135,7 @@ declare const connectWifiArgs: ZodObject<{
2116
2135
  hiddenSSID?: boolean | undefined;
2117
2136
  SSID: string;
2118
2137
  }>[];
2119
- declare function connectWifi(args: AsyncVoidCallback & TypeOf<typeof connectWifiArgs[0]>): Promise<void>;
2138
+ declare function connectWifi(args: AsyncVoidCallback & TypeOf<(typeof connectWifiArgs)[0]>): Promise<void>;
2120
2139
 
2121
2140
  declare const openMediaPickerArgs: ZodObject<{
2122
2141
  type: ZodEnum<["video", "photo", "file", "zcamera", "zcamera_photo", "zcamera_video", "zcamera_scan"]>;
@@ -2155,7 +2174,7 @@ declare const openMediaPickerArgs: ZodObject<{
2155
2174
  type: "video" | "zcamera" | "zcamera_photo" | "zcamera_video" | "zcamera_scan" | "photo" | "file";
2156
2175
  serverUploadUrl: string;
2157
2176
  }>[];
2158
- declare function openMediaPicker(args: AsyncCallback<OpenMediaPickerReturns> & TypeOf<typeof openMediaPickerArgs[0]>): Promise<OpenMediaPickerReturns>;
2177
+ declare function openMediaPicker(args: AsyncCallback<OpenMediaPickerReturns> & TypeOf<(typeof openMediaPickerArgs)[0]>): Promise<OpenMediaPickerReturns>;
2159
2178
 
2160
2179
  declare const getShareableLinkArgs: ZodObject<{
2161
2180
  title: ZodString;
@@ -2165,22 +2184,22 @@ declare const getShareableLinkArgs: ZodObject<{
2165
2184
  }, "strip", ZodTypeAny, {
2166
2185
  path?: string | undefined;
2167
2186
  thumbnail?: string | undefined;
2168
- title: string;
2169
2187
  description: string;
2188
+ title: string;
2170
2189
  }, {
2171
- path?: string | undefined;
2172
2190
  description?: string | undefined;
2191
+ path?: string | undefined;
2173
2192
  thumbnail?: string | undefined;
2174
2193
  title: string;
2175
2194
  }>[];
2176
- declare function getShareableLink(args: AsyncCallback<string> & TypeOf<typeof getShareableLinkArgs[0]>): Promise<string>;
2195
+ declare function getShareableLink(args: AsyncCallback<string> & TypeOf<(typeof getShareableLinkArgs)[0]>): Promise<string>;
2177
2196
 
2178
2197
  declare function closeLoading(args?: AsyncVoidCallback): Promise<void>;
2179
2198
 
2180
2199
  declare function requestUpdateZalo(args?: AsyncVoidCallback): Promise<void>;
2181
2200
 
2182
2201
  declare const onConfirmToExitArgs: ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>[];
2183
- declare function onConfirmToExit(args: TypeOf<typeof onConfirmToExitArgs[0]>): void;
2202
+ declare function onConfirmToExit(args: TypeOf<(typeof onConfirmToExitArgs)[0]>): void;
2184
2203
 
2185
2204
  declare function offConfirmToExit(): void;
2186
2205
 
@@ -2197,7 +2216,7 @@ declare function getAuthCode(args?: AsyncCallback<GetAuthCodeReturns>): Promise<
2197
2216
  declare function getZPIToken(args?: AsyncCallback<GetZPITokenReturns>): Promise<GetZPITokenReturns>;
2198
2217
 
2199
2218
  declare const setAccessTokenArgs: ZodString[];
2200
- declare function setAccessToken(args: TypeOf<typeof setAccessTokenArgs[0]>): void;
2219
+ declare function setAccessToken(args: TypeOf<(typeof setAccessTokenArgs)[0]>): void;
2201
2220
 
2202
2221
  declare const openOutAppArgs: ZodObject<{
2203
2222
  url: ZodString;
@@ -2206,7 +2225,7 @@ declare const openOutAppArgs: ZodObject<{
2206
2225
  }, {
2207
2226
  url: string;
2208
2227
  }>[];
2209
- declare function openOutApp(args: TypeOf<typeof openOutAppArgs[0]>): Promise<void>;
2228
+ declare function openOutApp(args: TypeOf<(typeof openOutAppArgs)[0]>): Promise<void>;
2210
2229
 
2211
2230
  declare const chooseImageArgs: ZodObject<{
2212
2231
  count: ZodDefault<ZodOptional<ZodNumber>>;
@@ -2221,7 +2240,7 @@ declare const chooseImageArgs: ZodObject<{
2221
2240
  sourceType?: ("album" | "camera")[] | undefined;
2222
2241
  cameraType?: "back" | "front" | undefined;
2223
2242
  }>[];
2224
- declare function chooseImage(args: AsyncCallback<ChooseImageReturns> & TypeOf<typeof chooseImageArgs[0]>): Promise<ChooseImageReturns>;
2243
+ declare function chooseImage(args: AsyncCallback<ChooseImageReturns> & TypeOf<(typeof chooseImageArgs)[0]>): Promise<ChooseImageReturns>;
2225
2244
 
2226
2245
  declare function getLocation(args?: AsyncCallback<GetLocationReturns>): Promise<GetLocationReturns>;
2227
2246
 
@@ -2232,7 +2251,7 @@ declare const onCallbackDataArgs: ZodFunction<ZodTuple<[ZodObject<{
2232
2251
  }, {
2233
2252
  data?: any;
2234
2253
  }>], ZodUnknown>, ZodVoid>[];
2235
- declare function onCallbackData(args: TypeOf<typeof onCallbackDataArgs[0]>): void;
2254
+ declare function onCallbackData(args: TypeOf<(typeof onCallbackDataArgs)[0]>): void;
2236
2255
 
2237
2256
  declare const createOrderArgs: ZodObject<{
2238
2257
  amount: ZodUnion<[ZodString, ZodNumber]>;
@@ -2262,7 +2281,7 @@ declare const checkTransactionArgs: ZodObject<{
2262
2281
  }, {
2263
2282
  data: string | Record<string, string>;
2264
2283
  }>[];
2265
- declare function checkTransaction(args: AsyncCallback<CheckTransactionReturns> & TypeOf<typeof checkTransactionArgs[0]>): Promise<CheckTransactionReturns>;
2284
+ declare function checkTransaction(args: AsyncCallback<CheckTransactionReturns> & TypeOf<(typeof checkTransactionArgs)[0]>): Promise<CheckTransactionReturns>;
2266
2285
 
2267
2286
  declare const events: EventEmitter;
2268
2287
 
@@ -2273,7 +2292,7 @@ declare const setAndroidBottomNavigationBarArgs: ZodOptional<ZodObject<{
2273
2292
  }, {
2274
2293
  hide?: boolean | undefined;
2275
2294
  }>>[];
2276
- declare function setAndroidBottomNavigationBar(args: AsyncVoidCallback & TypeOf<typeof setAndroidBottomNavigationBarArgs[0]>): Promise<void>;
2295
+ declare function setAndroidBottomNavigationBar(args: AsyncVoidCallback & TypeOf<(typeof setAndroidBottomNavigationBarArgs)[0]>): Promise<void>;
2277
2296
 
2278
2297
  declare const setIOSBottomSafeAreaArgs: ZodOptional<ZodObject<{
2279
2298
  hide: ZodOptional<ZodDefault<ZodBoolean>>;
@@ -2282,7 +2301,7 @@ declare const setIOSBottomSafeAreaArgs: ZodOptional<ZodObject<{
2282
2301
  }, {
2283
2302
  hide?: boolean | undefined;
2284
2303
  }>>[];
2285
- declare function setIOSBottomSafeArea(args: AsyncVoidCallback & TypeOf<typeof setIOSBottomSafeAreaArgs[0]>): Promise<void>;
2304
+ declare function setIOSBottomSafeArea(args: AsyncVoidCallback & TypeOf<(typeof setIOSBottomSafeAreaArgs)[0]>): Promise<void>;
2286
2305
 
2287
2306
  declare const setStatusBarArgs: ZodOptional<ZodObject<{
2288
2307
  type: ZodOptional<ZodDefault<ZodEnum<["normal", "hidden", "transparent"]>>>;
@@ -2294,7 +2313,7 @@ declare const setStatusBarArgs: ZodOptional<ZodObject<{
2294
2313
  type?: "hidden" | "transparent" | "normal" | undefined;
2295
2314
  color?: string | undefined;
2296
2315
  }>>[];
2297
- declare function setStatusBar(args: AsyncVoidCallback & TypeOf<typeof setStatusBarArgs[0]>): Promise<void>;
2316
+ declare function setStatusBar(args: AsyncVoidCallback & TypeOf<(typeof setStatusBarArgs)[0]>): Promise<void>;
2298
2317
 
2299
2318
  declare const configAppViewArgs: ZodObject<{
2300
2319
  headerTextColor: ZodOptional<ZodEnum<["black", "white"]>>;
@@ -2306,13 +2325,13 @@ declare const configAppViewArgs: ZodObject<{
2306
2325
  textAlign: ZodOptional<ZodDefault<ZodEnum<["left", "center"]>>>;
2307
2326
  }, "strip", ZodTypeAny, {
2308
2327
  title?: string | undefined;
2309
- hide?: boolean | undefined;
2310
2328
  leftButton?: "none" | "back" | undefined;
2329
+ hide?: boolean | undefined;
2311
2330
  textAlign?: "left" | "center" | undefined;
2312
2331
  }, {
2313
2332
  title?: string | undefined;
2314
- hide?: boolean | undefined;
2315
2333
  leftButton?: "none" | "back" | undefined;
2334
+ hide?: boolean | undefined;
2316
2335
  textAlign?: "left" | "center" | undefined;
2317
2336
  }>>;
2318
2337
  statusBarType: ZodOptional<ZodEnum<["normal", "hidden", "transparent"]>>;
@@ -2323,8 +2342,8 @@ declare const configAppViewArgs: ZodObject<{
2323
2342
  headerColor?: string | undefined;
2324
2343
  actionBar?: {
2325
2344
  title?: string | undefined;
2326
- hide?: boolean | undefined;
2327
2345
  leftButton?: "none" | "back" | undefined;
2346
+ hide?: boolean | undefined;
2328
2347
  textAlign?: "left" | "center" | undefined;
2329
2348
  } | undefined;
2330
2349
  statusBarType?: "hidden" | "transparent" | "normal" | undefined;
@@ -2335,15 +2354,15 @@ declare const configAppViewArgs: ZodObject<{
2335
2354
  headerColor?: string | undefined;
2336
2355
  actionBar?: {
2337
2356
  title?: string | undefined;
2338
- hide?: boolean | undefined;
2339
2357
  leftButton?: "none" | "back" | undefined;
2358
+ hide?: boolean | undefined;
2340
2359
  textAlign?: "left" | "center" | undefined;
2341
2360
  } | undefined;
2342
2361
  statusBarType?: "hidden" | "transparent" | "normal" | undefined;
2343
2362
  hideAndroidBottomNavigationBar?: boolean | undefined;
2344
2363
  hideIOSSafeAreaBottom?: boolean | undefined;
2345
2364
  }>[];
2346
- declare function configAppView(args: AsyncVoidCallback & TypeOf<typeof configAppViewArgs[0]>): Promise<void>;
2365
+ declare function configAppView(args: AsyncVoidCallback & TypeOf<(typeof configAppViewArgs)[0]>): Promise<void>;
2347
2366
 
2348
2367
  declare const createOrderIAPArgs: ZodObject<{
2349
2368
  productId: ZodString;
@@ -2361,7 +2380,7 @@ declare const createOrderIAPArgs: ZodObject<{
2361
2380
  prorationMode?: "DEFERRED" | "IMMEDIATE_AND_CHARGE_FULL_PRICE" | undefined;
2362
2381
  productId: string;
2363
2382
  }>[];
2364
- declare function createOrderIAP(args: AsyncCallback<CreateOrderIAPReturns> & TypeOf<typeof createOrderIAPArgs[0]>): Promise<CreateOrderIAPReturns>;
2383
+ declare function createOrderIAP(args: AsyncCallback<CreateOrderIAPReturns> & TypeOf<(typeof createOrderIAPArgs)[0]>): Promise<CreateOrderIAPReturns>;
2365
2384
 
2366
2385
  declare function minimizeApp(args?: AsyncVoidCallback): Promise<void>;
2367
2386