zmp-sdk 2.35.4 → 2.36.0

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.
package/apis/index.d.ts CHANGED
@@ -20,209 +20,10 @@ declare enum Events {
20
20
  OpenApp = "h5.event.open.mp",
21
21
  AppClose = "h5.event.action.close",
22
22
  PaymentCallback = "payment.callback",
23
- PaymentResult = "action.payment.result"
23
+ PaymentResult = "action.payment.result",
24
+ PaymentClose = "action.payment.close"
24
25
  }
25
26
 
26
- type AsyncCallbackFailObject = {
27
- code: number;
28
- message?: string | undefined;
29
- api?: string | undefined;
30
- [key: string]: any;
31
- };
32
- type AsyncCallback<T = any> = {
33
- success?: ((res: T) => void) | undefined;
34
- fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
35
- };
36
- type AsyncVoidCallback = {
37
- success?: () => void;
38
- fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
39
- };
40
- type GetLocationReturns = {
41
- /** latitude */
42
- latitude?: string;
43
- /** longitude */
44
- longitude?: string;
45
- /** timestamp */
46
- timestamp?: string;
47
- /** provider */
48
- provider?: string;
49
- token?: string;
50
- };
51
- interface SystemInfo {
52
- /** Mini app version */
53
- version: string;
54
- /** SDK version */
55
- apiVersion: string;
56
- /** Zalo version */
57
- zaloVersion: string;
58
- /** Client platform */
59
- platform: string;
60
- /** Language set in Zalo */
61
- language: string;
62
- /** Language set in Zalo */
63
- zaloLanguage: string;
64
- /** Theme set in Zalo */
65
- zaloTheme: string;
66
- }
67
- type SetStorageReturns = {
68
- errorKeys: string[];
69
- };
70
- type GetStorageReturns = {
71
- [key: string]: any;
72
- };
73
- type StorageInfo = {
74
- currentSize: number;
75
- limitSize: number;
76
- };
77
- type RemoveStorageReturns = {
78
- errorKeys: string[];
79
- };
80
- type GetUserInfoReturns = {
81
- userInfo: {
82
- id: string;
83
- name: string;
84
- avatar: string;
85
- idByOA?: string;
86
- isSensitive?: boolean;
87
- followedOA?: boolean;
88
- };
89
- };
90
- type GetNetworkTypeReturns = {
91
- networkType: NetworkType;
92
- };
93
- type iBeaconInfo = {
94
- /** The iBeacon device broadcast UUID. */
95
- uuid: string;
96
- /** The iBeacon device primary ID. */
97
- major: string;
98
- /** The iBeacon device secondary ID. */
99
- minor: string;
100
- /** The iBeacon device distance. */
101
- distance: number;
102
- /** The signal strength of the device. */
103
- rssi: number;
104
- };
105
- type GetBeaconDiscoveryReturns = {
106
- beacons: Array<iBeaconInfo>;
107
- };
108
- type ScanQRCodeReturns = {
109
- content: string;
110
- };
111
- type OpenPostFeedReturns = {
112
- status: 0 | 1;
113
- shareType: 0 | 1 | 2;
114
- numberOfUser: number;
115
- };
116
- type OpenShareSheetReturns = {
117
- status: 0 | 2 | 1;
118
- shareType: 0 | 2 | 1;
119
- numberOfUser: number;
120
- };
121
- type RequestCameraPermissionReturns = {
122
- userAllow: boolean;
123
- message: string;
124
- };
125
- type CheckZaloCameraPermissionReturns = {
126
- userAllow: boolean;
127
- };
128
- type OpenBioAuthenticationReturns = {
129
- code: number;
130
- message: string;
131
- data: {
132
- domain: string;
133
- code: number;
134
- message: string;
135
- payToken: string;
136
- };
137
- };
138
- type CheckStateBioAuthenticationReturns = {
139
- bioState: string;
140
- };
141
- type KeepScreenReturns = {
142
- success: boolean;
143
- };
144
- type OpenWebviewReturns = {
145
- success: boolean;
146
- };
147
- type GetAppInfoReturns = {
148
- description: string;
149
- version: string;
150
- name: string;
151
- appUrl: string;
152
- qrCodeUrl: string;
153
- logoUrl?: string;
154
- };
155
- type GetPhoneNumberReturns = {
156
- number?: string;
157
- token?: string;
158
- };
159
- type OpenProfilePickerReturns = {
160
- users: {
161
- id: string;
162
- profile: {
163
- name: string;
164
- avatar: string;
165
- };
166
- code: number;
167
- message: string;
168
- }[];
169
- };
170
- type OpenMediaPickerReturns = {
171
- data: string;
172
- };
173
- /**
174
- * Context info
175
- */
176
- type ContextInfo = {
177
- type?: string;
178
- id?: string;
179
- };
180
- type GetAuthCodeReturns = {
181
- authCode: string;
182
- authCodeVerify: string;
183
- };
184
- type GetZPITokenReturns = {
185
- utoken: string;
186
- gtoken: string;
187
- zpp: string;
188
- zpt: string;
189
- };
190
- type ChooseImageReturns = {
191
- filePaths: Array<string>;
192
- tempFiles: Array<{
193
- path: string;
194
- size: number;
195
- }>;
196
- };
197
- type CreateOrderReturns = {
198
- orderId: string;
199
- };
200
- type CheckTransactionReturns = {
201
- msg: string;
202
- orderId: string;
203
- transId: string;
204
- resultCode: number;
205
- transTime: string;
206
- createdAt: string;
207
- };
208
- type CreateOrderIAPReturns = {
209
- orderId: string;
210
- };
211
- type AuthenResponse = {
212
- [key: string]: boolean;
213
- };
214
- type GetSettingReturn = {
215
- authSetting: AuthenResponse;
216
- };
217
-
218
- declare function login(args?: AsyncCallback<string>): Promise<string>;
219
-
220
- declare function getAccessToken(args?: AsyncCallback<string>): Promise<string>;
221
-
222
- declare function getVersion(): string;
223
-
224
- declare function getSystemInfo(): SystemInfo;
225
-
226
27
  declare type Primitive = string | number | symbol | bigint | boolean | null | undefined;
227
28
 
228
29
  declare namespace util {
@@ -1165,6 +966,210 @@ declare enum ZodFirstPartyTypeKind {
1165
966
  ZodPipeline = "ZodPipeline"
1166
967
  }
1167
968
 
969
+ type AsyncCallbackFailObject = {
970
+ code: number;
971
+ message?: string | undefined;
972
+ api?: string | undefined;
973
+ [key: string]: any;
974
+ };
975
+ type AsyncCallback<T = any> = {
976
+ success?: ((res: T) => void) | undefined;
977
+ fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
978
+ };
979
+ type AsyncVoidCallback = {
980
+ success?: () => void;
981
+ fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
982
+ };
983
+ type GetLocationReturns = {
984
+ /** latitude */
985
+ latitude?: string;
986
+ /** longitude */
987
+ longitude?: string;
988
+ /** timestamp */
989
+ timestamp?: string;
990
+ /** provider */
991
+ provider?: string;
992
+ token?: string;
993
+ };
994
+ interface SystemInfo {
995
+ /** Mini app version */
996
+ version: string;
997
+ /** SDK version */
998
+ apiVersion: string;
999
+ /** Zalo version */
1000
+ zaloVersion: string;
1001
+ /** Client platform */
1002
+ platform: string;
1003
+ /** Language set in Zalo */
1004
+ language: string;
1005
+ /** Language set in Zalo */
1006
+ zaloLanguage: string;
1007
+ /** Theme set in Zalo */
1008
+ zaloTheme: string;
1009
+ }
1010
+ type SetStorageReturns = {
1011
+ errorKeys: string[];
1012
+ };
1013
+ type GetStorageReturns = {
1014
+ [key: string]: any;
1015
+ };
1016
+ type StorageInfo = {
1017
+ currentSize: number;
1018
+ limitSize: number;
1019
+ };
1020
+ type RemoveStorageReturns = {
1021
+ errorKeys: string[];
1022
+ };
1023
+ type GetUserInfoReturns = {
1024
+ userInfo: {
1025
+ id: string;
1026
+ name: string;
1027
+ avatar: string;
1028
+ idByOA?: string;
1029
+ isSensitive?: boolean;
1030
+ followedOA?: boolean;
1031
+ };
1032
+ };
1033
+ type GetNetworkTypeReturns = {
1034
+ networkType: NetworkType;
1035
+ };
1036
+ type iBeaconInfo = {
1037
+ /** The iBeacon device broadcast UUID. */
1038
+ uuid: string;
1039
+ /** The iBeacon device primary ID. */
1040
+ major: string;
1041
+ /** The iBeacon device secondary ID. */
1042
+ minor: string;
1043
+ /** The iBeacon device distance. */
1044
+ distance: number;
1045
+ /** The signal strength of the device. */
1046
+ rssi: number;
1047
+ };
1048
+ type GetBeaconDiscoveryReturns = {
1049
+ beacons: Array<iBeaconInfo>;
1050
+ };
1051
+ type ScanQRCodeReturns = {
1052
+ content: string;
1053
+ };
1054
+ type OpenPostFeedReturns = {
1055
+ status: 0 | 1;
1056
+ shareType: 0 | 1 | 2;
1057
+ numberOfUser: number;
1058
+ };
1059
+ type OpenShareSheetReturns = {
1060
+ status: 0 | 2 | 1;
1061
+ shareType: 0 | 2 | 1;
1062
+ numberOfUser: number;
1063
+ };
1064
+ type RequestCameraPermissionReturns = {
1065
+ userAllow: boolean;
1066
+ message: string;
1067
+ };
1068
+ type CheckZaloCameraPermissionReturns = {
1069
+ userAllow: boolean;
1070
+ };
1071
+ type OpenBioAuthenticationReturns = {
1072
+ code: number;
1073
+ message: string;
1074
+ data: {
1075
+ domain: string;
1076
+ code: number;
1077
+ message: string;
1078
+ payToken: string;
1079
+ };
1080
+ };
1081
+ type CheckStateBioAuthenticationReturns = {
1082
+ bioState: string;
1083
+ };
1084
+ type KeepScreenReturns = {
1085
+ success: boolean;
1086
+ };
1087
+ type OpenWebviewReturns = {
1088
+ success: boolean;
1089
+ };
1090
+ type GetAppInfoReturns = {
1091
+ description: string;
1092
+ version: string;
1093
+ name: string;
1094
+ appUrl: string;
1095
+ qrCodeUrl: string;
1096
+ logoUrl?: string;
1097
+ };
1098
+ type GetPhoneNumberReturns = {
1099
+ number?: string;
1100
+ token?: string;
1101
+ };
1102
+ type OpenProfilePickerReturns = {
1103
+ users: {
1104
+ id: string;
1105
+ profile: {
1106
+ name: string;
1107
+ avatar: string;
1108
+ };
1109
+ code: number;
1110
+ message: string;
1111
+ }[];
1112
+ };
1113
+ type OpenMediaPickerReturns = {
1114
+ data: string;
1115
+ };
1116
+ /**
1117
+ * Context info
1118
+ */
1119
+ type ContextInfo = {
1120
+ type?: string;
1121
+ id?: string;
1122
+ };
1123
+ type GetAuthCodeReturns = {
1124
+ authCode: string;
1125
+ authCodeVerify: string;
1126
+ };
1127
+ type GetZPITokenReturns = {
1128
+ utoken: string;
1129
+ gtoken: string;
1130
+ zpp: string;
1131
+ zpt: string;
1132
+ };
1133
+ type ChooseImageReturns = {
1134
+ filePaths: Array<string>;
1135
+ tempFiles: Array<{
1136
+ path: string;
1137
+ size: number;
1138
+ }>;
1139
+ };
1140
+ type CreateOrderReturns = {
1141
+ orderId: string;
1142
+ };
1143
+ type CheckTransactionReturns = {
1144
+ err: number;
1145
+ msg: string;
1146
+ orderId: string;
1147
+ transId: string;
1148
+ resultCode: number;
1149
+ transTime: string;
1150
+ createdAt: string;
1151
+ path?: string;
1152
+ };
1153
+ type CreateOrderIAPReturns = {
1154
+ orderId: string;
1155
+ };
1156
+ declare const AuthenScopeProperty: ZodEnum<["scope.userInfo", "scope.userLocation", "scope.userPhonenumber"]>;
1157
+ type AuthenScopeType = TypeOf<typeof AuthenScopeProperty>;
1158
+ type AuthenResponse = Partial<{
1159
+ [key in AuthenScopeType]: boolean;
1160
+ }>;
1161
+ type GetSettingReturn = {
1162
+ authSetting: AuthenResponse;
1163
+ };
1164
+
1165
+ declare function login(args?: AsyncCallback<string>): Promise<string>;
1166
+
1167
+ declare function getAccessToken(args?: AsyncCallback<string>): Promise<string>;
1168
+
1169
+ declare function getVersion(): string;
1170
+
1171
+ declare function getSystemInfo(): SystemInfo;
1172
+
1168
1173
  declare const setNavigationBarTitleArgs: ZodOptional<ZodObject<{
1169
1174
  title: ZodString;
1170
1175
  }, "strip", ZodTypeAny, {
@@ -1414,15 +1419,15 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
1414
1419
  imageUrl?: string | undefined;
1415
1420
  }>;
1416
1421
  }, "strip", ZodTypeAny, {
1422
+ type: "image";
1417
1423
  data: {
1418
1424
  imageUrl?: string | undefined;
1419
1425
  };
1420
- type: "image";
1421
1426
  }, {
1427
+ type: "image";
1422
1428
  data: {
1423
1429
  imageUrl?: string | undefined;
1424
1430
  };
1425
- type: "image";
1426
1431
  }>, ZodObject<{
1427
1432
  type: ZodEnum<["link"]>;
1428
1433
  data: ZodObject<{
@@ -1442,21 +1447,21 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
1442
1447
  link: string;
1443
1448
  }>;
1444
1449
  }, "strip", ZodTypeAny, {
1450
+ type: "link";
1445
1451
  data: {
1446
1452
  description?: string | undefined;
1447
1453
  title?: string | undefined;
1448
1454
  thumb?: string | undefined;
1449
1455
  link: string;
1450
1456
  };
1451
- type: "link";
1452
1457
  }, {
1458
+ type: "link";
1453
1459
  data: {
1454
1460
  description?: string | undefined;
1455
1461
  title?: string | undefined;
1456
1462
  thumb?: string | undefined;
1457
1463
  link: string;
1458
1464
  };
1459
- type: "link";
1460
1465
  }>, ZodObject<{
1461
1466
  type: ZodEnum<["profile"]>;
1462
1467
  data: ZodObject<{
@@ -1467,15 +1472,15 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
1467
1472
  id?: string | undefined;
1468
1473
  }>;
1469
1474
  }, "strip", ZodTypeAny, {
1475
+ type: "profile";
1470
1476
  data: {
1471
1477
  id?: string | undefined;
1472
1478
  };
1473
- type: "profile";
1474
1479
  }, {
1480
+ type: "profile";
1475
1481
  data: {
1476
1482
  id?: string | undefined;
1477
1483
  };
1478
- type: "profile";
1479
1484
  }>]>[];
1480
1485
  declare function openPostFeed(args: AsyncCallback<OpenPostFeedReturns> & TypeOf<(typeof openPostFeedArgs)[0]>): Promise<OpenPostFeedReturns>;
1481
1486
 
@@ -1513,17 +1518,17 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1513
1518
  imageUrl: string;
1514
1519
  }>;
1515
1520
  }, "strip", ZodTypeAny, {
1521
+ type: "image";
1516
1522
  data: {
1517
1523
  imageUrls?: string[] | undefined;
1518
1524
  imageUrl: string;
1519
1525
  };
1520
- type: "image";
1521
1526
  }, {
1527
+ type: "image";
1522
1528
  data: {
1523
1529
  imageUrls?: string[] | undefined;
1524
1530
  imageUrl: string;
1525
1531
  };
1526
- type: "image";
1527
1532
  }>, ZodObject<{
1528
1533
  type: ZodEnum<["link"]>;
1529
1534
  data: ZodObject<{
@@ -1537,17 +1542,17 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1537
1542
  link: string;
1538
1543
  }>;
1539
1544
  }, "strip", ZodTypeAny, {
1545
+ type: "link";
1540
1546
  data: {
1541
1547
  chatOnly?: boolean | undefined;
1542
1548
  link: string;
1543
1549
  };
1544
- type: "link";
1545
1550
  }, {
1551
+ type: "link";
1546
1552
  data: {
1547
1553
  chatOnly?: boolean | undefined;
1548
1554
  link: string;
1549
1555
  };
1550
- type: "link";
1551
1556
  }>, ZodObject<{
1552
1557
  type: ZodEnum<["oa"]>;
1553
1558
  data: ZodObject<{
@@ -1558,15 +1563,15 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1558
1563
  id: string;
1559
1564
  }>;
1560
1565
  }, "strip", ZodTypeAny, {
1566
+ type: "oa";
1561
1567
  data: {
1562
1568
  id: string;
1563
1569
  };
1564
- type: "oa";
1565
1570
  }, {
1571
+ type: "oa";
1566
1572
  data: {
1567
1573
  id: string;
1568
1574
  };
1569
- type: "oa";
1570
1575
  }>, ZodObject<{
1571
1576
  type: ZodEnum<["gif"]>;
1572
1577
  data: ZodObject<{
@@ -1586,21 +1591,21 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1586
1591
  gifUrl: string;
1587
1592
  }>;
1588
1593
  }, "strip", ZodTypeAny, {
1594
+ type: "gif";
1589
1595
  data: {
1590
1596
  imageUrl?: string | undefined;
1591
1597
  width?: number | undefined;
1592
1598
  height?: number | undefined;
1593
1599
  gifUrl: string;
1594
1600
  };
1595
- type: "gif";
1596
1601
  }, {
1602
+ type: "gif";
1597
1603
  data: {
1598
1604
  imageUrl?: string | undefined;
1599
1605
  width?: number | undefined;
1600
1606
  height?: number | undefined;
1601
1607
  gifUrl: string;
1602
1608
  };
1603
- type: "gif";
1604
1609
  }>, ZodObject<{
1605
1610
  type: ZodEnum<["video"]>;
1606
1611
  data: ZodObject<{
@@ -1620,21 +1625,21 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1620
1625
  videoUrl: string;
1621
1626
  }>;
1622
1627
  }, "strip", ZodTypeAny, {
1628
+ type: "video";
1623
1629
  data: {
1624
1630
  width?: number | undefined;
1625
1631
  height?: number | undefined;
1626
1632
  videoThumb: string;
1627
1633
  videoUrl: string;
1628
1634
  };
1629
- type: "video";
1630
1635
  }, {
1636
+ type: "video";
1631
1637
  data: {
1632
1638
  width?: number | undefined;
1633
1639
  height?: number | undefined;
1634
1640
  videoThumb: string;
1635
1641
  videoUrl: string;
1636
1642
  };
1637
- type: "video";
1638
1643
  }>, ZodObject<{
1639
1644
  type: ZodEnum<["zmp", "zmp_deep_link"]>;
1640
1645
  data: ZodObject<{
@@ -1643,32 +1648,32 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1643
1648
  path: ZodOptional<ZodString>;
1644
1649
  description: ZodOptional<ZodDefault<ZodString>>;
1645
1650
  }, "strip", ZodTypeAny, {
1646
- description?: string | undefined;
1647
1651
  path?: string | undefined;
1652
+ description?: string | undefined;
1648
1653
  title: string;
1649
1654
  thumbnail: string;
1650
1655
  }, {
1651
- description?: string | undefined;
1652
1656
  path?: string | undefined;
1657
+ description?: string | undefined;
1653
1658
  title: string;
1654
1659
  thumbnail: string;
1655
1660
  }>;
1656
1661
  }, "strip", ZodTypeAny, {
1662
+ type: "zmp" | "zmp_deep_link";
1657
1663
  data: {
1658
- description?: string | undefined;
1659
1664
  path?: string | undefined;
1665
+ description?: string | undefined;
1660
1666
  title: string;
1661
1667
  thumbnail: string;
1662
1668
  };
1663
- type: "zmp" | "zmp_deep_link";
1664
1669
  }, {
1670
+ type: "zmp" | "zmp_deep_link";
1665
1671
  data: {
1666
- description?: string | undefined;
1667
1672
  path?: string | undefined;
1673
+ description?: string | undefined;
1668
1674
  title: string;
1669
1675
  thumbnail: string;
1670
1676
  };
1671
- type: "zmp" | "zmp_deep_link";
1672
1677
  }>]>[];
1673
1678
  declare function openShareSheet(args: AsyncCallback<OpenShareSheetReturns> & TypeOf<(typeof openShareSheetArgs)[0]>): Promise<OpenShareSheetReturns>;
1674
1679
 
@@ -1932,8 +1937,8 @@ declare const getShareableLinkArgs: ZodObject<{
1932
1937
  description: string;
1933
1938
  title: string;
1934
1939
  }, {
1935
- description?: string | undefined;
1936
1940
  path?: string | undefined;
1941
+ description?: string | undefined;
1937
1942
  thumbnail?: string | undefined;
1938
1943
  title: string;
1939
1944
  }>[];
@@ -2003,16 +2008,19 @@ declare const createOrderArgs: ZodObject<{
2003
2008
  item: ZodArray<ZodRecord<ZodString, ZodAny>, "many">;
2004
2009
  desc: ZodString;
2005
2010
  extradata: ZodOptional<ZodAny>;
2011
+ payload: ZodOptional<ZodAny>;
2006
2012
  method: ZodOptional<ZodEnum<["MOMO", "ZALOPAY", "MOMO_SANDBOX", "ZALOPAY_SANDBOX", "CC", "CC_SANDBOX", "ATM", "ATM_SANDBOX", "VNPAY", "VNPAY_SANDBOX"]>>;
2007
2013
  }, "strip", ZodTypeAny, {
2008
2014
  method?: "ZALOPAY" | "MOMO" | "ZALOPAY_SANDBOX" | "MOMO_SANDBOX" | "ATM" | "ATM_SANDBOX" | "CC" | "CC_SANDBOX" | "VNPAY" | "VNPAY_SANDBOX" | undefined;
2009
2015
  extradata?: any;
2016
+ payload?: any;
2010
2017
  desc: string;
2011
2018
  amount: string | number;
2012
2019
  item: Record<string, any>[];
2013
2020
  }, {
2014
2021
  method?: "ZALOPAY" | "MOMO" | "ZALOPAY_SANDBOX" | "MOMO_SANDBOX" | "ATM" | "ATM_SANDBOX" | "CC" | "CC_SANDBOX" | "VNPAY" | "VNPAY_SANDBOX" | undefined;
2015
2022
  extradata?: any;
2023
+ payload?: any;
2016
2024
  desc: string;
2017
2025
  amount: string | number;
2018
2026
  item: Record<string, any>[];
@@ -2299,11 +2307,11 @@ declare function checkIsAllowedInteractWithOA(args: AsyncVoidCallback & TypeOf<(
2299
2307
  declare function getSetting(args?: AsyncCallback<GetSettingReturn>): Promise<GetSettingReturn>;
2300
2308
 
2301
2309
  declare const authorizeArgs: ZodOptional<ZodObject<{
2302
- scopes: ZodOptional<ZodArray<ZodString, "many">>;
2310
+ scopes: ZodOptional<ZodArray<ZodEnum<["scope.userInfo", "scope.userLocation", "scope.userPhonenumber"]>, "many">>;
2303
2311
  }, "strip", ZodTypeAny, {
2304
- scopes?: string[] | undefined;
2312
+ scopes?: ("scope.userInfo" | "scope.userLocation" | "scope.userPhonenumber")[] | undefined;
2305
2313
  }, {
2306
- scopes?: string[] | undefined;
2314
+ scopes?: ("scope.userInfo" | "scope.userLocation" | "scope.userPhonenumber")[] | undefined;
2307
2315
  }>>[];
2308
2316
  declare function authorize(args?: AsyncVoidCallback & TypeOf<(typeof authorizeArgs)[0]>): Promise<AuthenResponse>;
2309
2317
 
@@ -1 +1 @@
1
- var r="2.35.4";export{r as version};
1
+ var r="2.36.0";export{r as version};
@@ -1 +1 @@
1
- var e,n,o,a,i,t,c,l,u,r,p,d,m,f,s,h,_;!function(e){e.none="none",e.wifi="wifi",e.cellular="cellular",e.unknown="unknown"}(e||(e={})),function(e){e.wp="wp",e.android="android",e.iOS="iOS",e.unknown="unknown"}(n||(n={})),function(e){e.AppPaused="h5.event.paused",e.AppResumed="h5.event.resumed",e.NetworkChanged="h5.event.connection.changed",e.OnDataCallback="h5.event.webview.result",e.WebviewClosed="h5.event.webview.close",e.OpenApp="h5.event.open.mp",e.AppClose="h5.event.action.close",e.PaymentCallback="payment.callback",e.PaymentResult="action.payment.result"}(o||(o={})),function(e){e.DOING="doing",e.DONE="done"}(a||(a={})),function(e){e[e.user=1]="user",e[e.oa=0]="oa",e[e.aliasOA=2]="aliasOA"}(i||(i={})),function(e){e[e.user=1]="user",e[e.oa=0]="oa"}(t||(t={})),function(e){e[e.image=1]="image",e[e.link=4]="link",e[e.profile=5]="profile"}(c||(c={})),function(e){e[e.image=1]="image",e[e.gif=11]="gif",e[e.video=12]="video",e[e.link=4]="link",e[e.oa=5]="oa",e[e.zmp=20]="zmp",e[e.multi_image=21]="multi_image",e[e.zmp_deep_link=4]="zmp_deep_link"}(l||(l={})),function(e){e[e.auto=1]="auto",e[e.portrait=2]="portrait",e[e.landscape=3]="landscape"}(u||(u={})),function(e){e[e.oneShot=0]="oneShot"}(r||(r={})),function(e){e[e.zcamera=3]="zcamera",e[e.zcamera_photo=1]="zcamera_photo",e[e.zcamera_video=2]="zcamera_video",e[e.zcamera_scan=7]="zcamera_scan",e[e.photo=4]="photo",e[e.video=5]="video",e[e.file=6]="file"}(p||(p={})),function(e){e.SUBSCRIPTION="SUBSCRIPTION",e.ONETIME="ONETIME"}(d||(d={})),function(e){e[e.UNKNOW=0]="UNKNOW",e[e.DEFERRED=1]="DEFERRED",e[e.IMMEDIATE_AND_CHARGE_FULL_PRICE=2]="IMMEDIATE_AND_CHARGE_FULL_PRICE"}(m||(m={})),function(e){e[e.normal=1]="normal",e[e.hidden=0]="hidden",e[e.transparent=2]="transparent"}(f||(f={})),function(e){e[e.show=1]="show",e[e.hide=0]="hide"}(s||(s={})),function(e){e[e.show=1]="show",e[e.hide=0]="hide"}(h||(h={})),function(e){e[e.left=0]="left",e[e.center=1]="center"}(_||(_={}));export{s as AndroidBottomNavigationBarType,t as ChatType,o as Events,d as IAPPayType,h as IOSSafeAreaBottomType,a as JumpStatus,p as MediaPickerType,e as NetworkType,u as OrientationType,n as PlatformType,c as PostFeedType,i as ProfileType,m as ProrationMode,l as ShareSheetType,f as StatusBarType,_ as TextAlignType,r as VibrateType};
1
+ var e,n,o,a,i,t,c,l,u,p,r,d,m,s,f,h,_;!function(e){e.none="none",e.wifi="wifi",e.cellular="cellular",e.unknown="unknown"}(e||(e={})),function(e){e.wp="wp",e.android="android",e.iOS="iOS",e.unknown="unknown"}(n||(n={})),function(e){e.AppPaused="h5.event.paused",e.AppResumed="h5.event.resumed",e.NetworkChanged="h5.event.connection.changed",e.OnDataCallback="h5.event.webview.result",e.WebviewClosed="h5.event.webview.close",e.OpenApp="h5.event.open.mp",e.AppClose="h5.event.action.close",e.PaymentCallback="payment.callback",e.PaymentResult="action.payment.result",e.PaymentClose="action.payment.close"}(o||(o={})),function(e){e.DOING="doing",e.DONE="done"}(a||(a={})),function(e){e[e.user=1]="user",e[e.oa=0]="oa",e[e.aliasOA=2]="aliasOA"}(i||(i={})),function(e){e[e.user=1]="user",e[e.oa=0]="oa"}(t||(t={})),function(e){e[e.image=1]="image",e[e.link=4]="link",e[e.profile=5]="profile"}(c||(c={})),function(e){e[e.image=1]="image",e[e.gif=11]="gif",e[e.video=12]="video",e[e.link=4]="link",e[e.oa=5]="oa",e[e.zmp=20]="zmp",e[e.multi_image=21]="multi_image",e[e.zmp_deep_link=4]="zmp_deep_link"}(l||(l={})),function(e){e[e.auto=1]="auto",e[e.portrait=2]="portrait",e[e.landscape=3]="landscape"}(u||(u={})),function(e){e[e.oneShot=0]="oneShot"}(p||(p={})),function(e){e[e.zcamera=3]="zcamera",e[e.zcamera_photo=1]="zcamera_photo",e[e.zcamera_video=2]="zcamera_video",e[e.zcamera_scan=7]="zcamera_scan",e[e.photo=4]="photo",e[e.video=5]="video",e[e.file=6]="file"}(r||(r={})),function(e){e.SUBSCRIPTION="SUBSCRIPTION",e.ONETIME="ONETIME"}(d||(d={})),function(e){e[e.UNKNOW=0]="UNKNOW",e[e.DEFERRED=1]="DEFERRED",e[e.IMMEDIATE_AND_CHARGE_FULL_PRICE=2]="IMMEDIATE_AND_CHARGE_FULL_PRICE"}(m||(m={})),function(e){e[e.normal=1]="normal",e[e.hidden=0]="hidden",e[e.transparent=2]="transparent"}(s||(s={})),function(e){e[e.show=1]="show",e[e.hide=0]="hide"}(f||(f={})),function(e){e[e.show=1]="show",e[e.hide=0]="hide"}(h||(h={})),function(e){e[e.left=0]="left",e[e.center=1]="center"}(_||(_={}));export{f as AndroidBottomNavigationBarType,t as ChatType,o as Events,d as IAPPayType,h as IOSSafeAreaBottomType,a as JumpStatus,r as MediaPickerType,e as NetworkType,u as OrientationType,n as PlatformType,c as PostFeedType,i as ProfileType,m as ProrationMode,l as ShareSheetType,s as StatusBarType,_ as TextAlignType,p as VibrateType};