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/index.d.ts CHANGED
@@ -168,7 +168,8 @@ declare enum Events {
168
168
  OpenApp = "h5.event.open.mp",
169
169
  AppClose = "h5.event.action.close",
170
170
  PaymentCallback = "payment.callback",
171
- PaymentResult = "action.payment.result"
171
+ PaymentResult = "action.payment.result",
172
+ PaymentClose = "action.payment.close"
172
173
  }
173
174
  declare enum JumpStatus {
174
175
  DOING = "doing",
@@ -285,209 +286,6 @@ type LogData = {
285
286
  data: any;
286
287
  };
287
288
 
288
- type AsyncCallbackFailObject = {
289
- code: number;
290
- message?: string | undefined;
291
- api?: string | undefined;
292
- [key: string]: any;
293
- };
294
- type IAPPayTypeType = "SUBSCRIPTION" | "ONETIME";
295
- type IAPMethodType = "IAP" | "IAP_SANDBOX";
296
- type ProrationModeType = "UNKNOW" | "DEFERRED" | "IMMEDIATE_AND_CHARGE_FULL_PRICE";
297
- type AsyncCallback<T = any> = {
298
- success?: ((res: T) => void) | undefined;
299
- fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
300
- };
301
- type AsyncVoidCallback = {
302
- success?: () => void;
303
- fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
304
- };
305
- type GetLocationReturns = {
306
- /** latitude */
307
- latitude?: string;
308
- /** longitude */
309
- longitude?: string;
310
- /** timestamp */
311
- timestamp?: string;
312
- /** provider */
313
- provider?: string;
314
- token?: string;
315
- };
316
- interface SystemInfo {
317
- /** Mini app version */
318
- version: string;
319
- /** SDK version */
320
- apiVersion: string;
321
- /** Zalo version */
322
- zaloVersion: string;
323
- /** Client platform */
324
- platform: string;
325
- /** Language set in Zalo */
326
- language: string;
327
- /** Language set in Zalo */
328
- zaloLanguage: string;
329
- /** Theme set in Zalo */
330
- zaloTheme: string;
331
- }
332
- type SetStorageReturns = {
333
- errorKeys: string[];
334
- };
335
- type GetStorageReturns = {
336
- [key: string]: any;
337
- };
338
- type StorageInfo = {
339
- currentSize: number;
340
- limitSize: number;
341
- };
342
- type RemoveStorageReturns = {
343
- errorKeys: string[];
344
- };
345
- type GetUserInfoReturns = {
346
- userInfo: {
347
- id: string;
348
- name: string;
349
- avatar: string;
350
- idByOA?: string;
351
- isSensitive?: boolean;
352
- followedOA?: boolean;
353
- };
354
- };
355
- type GetNetworkTypeReturns = {
356
- networkType: NetworkType;
357
- };
358
- type iBeaconInfo = {
359
- /** The iBeacon device broadcast UUID. */
360
- uuid: string;
361
- /** The iBeacon device primary ID. */
362
- major: string;
363
- /** The iBeacon device secondary ID. */
364
- minor: string;
365
- /** The iBeacon device distance. */
366
- distance: number;
367
- /** The signal strength of the device. */
368
- rssi: number;
369
- };
370
- type GetBeaconDiscoveryReturns = {
371
- beacons: Array<iBeaconInfo>;
372
- };
373
- type ScanQRCodeReturns = {
374
- content: string;
375
- };
376
- type OpenPostFeedReturns = {
377
- status: 0 | 1;
378
- shareType: 0 | 1 | 2;
379
- numberOfUser: number;
380
- };
381
- type OpenShareSheetReturns = {
382
- status: 0 | 2 | 1;
383
- shareType: 0 | 2 | 1;
384
- numberOfUser: number;
385
- };
386
- type RequestCameraPermissionReturns = {
387
- userAllow: boolean;
388
- message: string;
389
- };
390
- type CheckZaloCameraPermissionReturns = {
391
- userAllow: boolean;
392
- };
393
- type OpenBioAuthenticationReturns = {
394
- code: number;
395
- message: string;
396
- data: {
397
- domain: string;
398
- code: number;
399
- message: string;
400
- payToken: string;
401
- };
402
- };
403
- type CheckStateBioAuthenticationReturns = {
404
- bioState: string;
405
- };
406
- type KeepScreenReturns = {
407
- success: boolean;
408
- };
409
- type OpenWebviewReturns = {
410
- success: boolean;
411
- };
412
- type GetAppInfoReturns = {
413
- description: string;
414
- version: string;
415
- name: string;
416
- appUrl: string;
417
- qrCodeUrl: string;
418
- logoUrl?: string;
419
- };
420
- type GetPhoneNumberReturns = {
421
- number?: string;
422
- token?: string;
423
- };
424
- type OpenProfilePickerReturns = {
425
- users: {
426
- id: string;
427
- profile: {
428
- name: string;
429
- avatar: string;
430
- };
431
- code: number;
432
- message: string;
433
- }[];
434
- };
435
- type OpenMediaPickerReturns = {
436
- data: string;
437
- };
438
- /**
439
- * Context info
440
- */
441
- type ContextInfo = {
442
- type?: string;
443
- id?: string;
444
- };
445
- type GetAuthCodeReturns = {
446
- authCode: string;
447
- authCodeVerify: string;
448
- };
449
- type GetZPITokenReturns = {
450
- utoken: string;
451
- gtoken: string;
452
- zpp: string;
453
- zpt: string;
454
- };
455
- type ChooseImageReturns = {
456
- filePaths: Array<string>;
457
- tempFiles: Array<{
458
- path: string;
459
- size: number;
460
- }>;
461
- };
462
- type CreateOrderReturns = {
463
- orderId: string;
464
- };
465
- type CheckTransactionReturns = {
466
- msg: string;
467
- orderId: string;
468
- transId: string;
469
- resultCode: number;
470
- transTime: string;
471
- createdAt: string;
472
- };
473
- type CreateOrderIAPReturns = {
474
- orderId: string;
475
- };
476
- type AuthenResponse = {
477
- [key: string]: boolean;
478
- };
479
- type GetSettingReturn = {
480
- authSetting: AuthenResponse;
481
- };
482
-
483
- declare function login(args?: AsyncCallback<string>): Promise<string>;
484
-
485
- declare function getAccessToken(args?: AsyncCallback<string>): Promise<string>;
486
-
487
- declare function getVersion(): string;
488
-
489
- declare function getSystemInfo(): SystemInfo;
490
-
491
289
  declare type Primitive = string | number | symbol | bigint | boolean | null | undefined;
492
290
 
493
291
  declare namespace util {
@@ -1430,6 +1228,213 @@ declare enum ZodFirstPartyTypeKind {
1430
1228
  ZodPipeline = "ZodPipeline"
1431
1229
  }
1432
1230
 
1231
+ type AsyncCallbackFailObject = {
1232
+ code: number;
1233
+ message?: string | undefined;
1234
+ api?: string | undefined;
1235
+ [key: string]: any;
1236
+ };
1237
+ type IAPPayTypeType = "SUBSCRIPTION" | "ONETIME";
1238
+ type IAPMethodType = "IAP" | "IAP_SANDBOX";
1239
+ type ProrationModeType = "UNKNOW" | "DEFERRED" | "IMMEDIATE_AND_CHARGE_FULL_PRICE";
1240
+ type AsyncCallback<T = any> = {
1241
+ success?: ((res: T) => void) | undefined;
1242
+ fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
1243
+ };
1244
+ type AsyncVoidCallback = {
1245
+ success?: () => void;
1246
+ fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
1247
+ };
1248
+ type GetLocationReturns = {
1249
+ /** latitude */
1250
+ latitude?: string;
1251
+ /** longitude */
1252
+ longitude?: string;
1253
+ /** timestamp */
1254
+ timestamp?: string;
1255
+ /** provider */
1256
+ provider?: string;
1257
+ token?: string;
1258
+ };
1259
+ interface SystemInfo {
1260
+ /** Mini app version */
1261
+ version: string;
1262
+ /** SDK version */
1263
+ apiVersion: string;
1264
+ /** Zalo version */
1265
+ zaloVersion: string;
1266
+ /** Client platform */
1267
+ platform: string;
1268
+ /** Language set in Zalo */
1269
+ language: string;
1270
+ /** Language set in Zalo */
1271
+ zaloLanguage: string;
1272
+ /** Theme set in Zalo */
1273
+ zaloTheme: string;
1274
+ }
1275
+ type SetStorageReturns = {
1276
+ errorKeys: string[];
1277
+ };
1278
+ type GetStorageReturns = {
1279
+ [key: string]: any;
1280
+ };
1281
+ type StorageInfo = {
1282
+ currentSize: number;
1283
+ limitSize: number;
1284
+ };
1285
+ type RemoveStorageReturns = {
1286
+ errorKeys: string[];
1287
+ };
1288
+ type GetUserInfoReturns = {
1289
+ userInfo: {
1290
+ id: string;
1291
+ name: string;
1292
+ avatar: string;
1293
+ idByOA?: string;
1294
+ isSensitive?: boolean;
1295
+ followedOA?: boolean;
1296
+ };
1297
+ };
1298
+ type GetNetworkTypeReturns = {
1299
+ networkType: NetworkType;
1300
+ };
1301
+ type iBeaconInfo = {
1302
+ /** The iBeacon device broadcast UUID. */
1303
+ uuid: string;
1304
+ /** The iBeacon device primary ID. */
1305
+ major: string;
1306
+ /** The iBeacon device secondary ID. */
1307
+ minor: string;
1308
+ /** The iBeacon device distance. */
1309
+ distance: number;
1310
+ /** The signal strength of the device. */
1311
+ rssi: number;
1312
+ };
1313
+ type GetBeaconDiscoveryReturns = {
1314
+ beacons: Array<iBeaconInfo>;
1315
+ };
1316
+ type ScanQRCodeReturns = {
1317
+ content: string;
1318
+ };
1319
+ type OpenPostFeedReturns = {
1320
+ status: 0 | 1;
1321
+ shareType: 0 | 1 | 2;
1322
+ numberOfUser: number;
1323
+ };
1324
+ type OpenShareSheetReturns = {
1325
+ status: 0 | 2 | 1;
1326
+ shareType: 0 | 2 | 1;
1327
+ numberOfUser: number;
1328
+ };
1329
+ type RequestCameraPermissionReturns = {
1330
+ userAllow: boolean;
1331
+ message: string;
1332
+ };
1333
+ type CheckZaloCameraPermissionReturns = {
1334
+ userAllow: boolean;
1335
+ };
1336
+ type OpenBioAuthenticationReturns = {
1337
+ code: number;
1338
+ message: string;
1339
+ data: {
1340
+ domain: string;
1341
+ code: number;
1342
+ message: string;
1343
+ payToken: string;
1344
+ };
1345
+ };
1346
+ type CheckStateBioAuthenticationReturns = {
1347
+ bioState: string;
1348
+ };
1349
+ type KeepScreenReturns = {
1350
+ success: boolean;
1351
+ };
1352
+ type OpenWebviewReturns = {
1353
+ success: boolean;
1354
+ };
1355
+ type GetAppInfoReturns = {
1356
+ description: string;
1357
+ version: string;
1358
+ name: string;
1359
+ appUrl: string;
1360
+ qrCodeUrl: string;
1361
+ logoUrl?: string;
1362
+ };
1363
+ type GetPhoneNumberReturns = {
1364
+ number?: string;
1365
+ token?: string;
1366
+ };
1367
+ type OpenProfilePickerReturns = {
1368
+ users: {
1369
+ id: string;
1370
+ profile: {
1371
+ name: string;
1372
+ avatar: string;
1373
+ };
1374
+ code: number;
1375
+ message: string;
1376
+ }[];
1377
+ };
1378
+ type OpenMediaPickerReturns = {
1379
+ data: string;
1380
+ };
1381
+ /**
1382
+ * Context info
1383
+ */
1384
+ type ContextInfo = {
1385
+ type?: string;
1386
+ id?: string;
1387
+ };
1388
+ type GetAuthCodeReturns = {
1389
+ authCode: string;
1390
+ authCodeVerify: string;
1391
+ };
1392
+ type GetZPITokenReturns = {
1393
+ utoken: string;
1394
+ gtoken: string;
1395
+ zpp: string;
1396
+ zpt: string;
1397
+ };
1398
+ type ChooseImageReturns = {
1399
+ filePaths: Array<string>;
1400
+ tempFiles: Array<{
1401
+ path: string;
1402
+ size: number;
1403
+ }>;
1404
+ };
1405
+ type CreateOrderReturns = {
1406
+ orderId: string;
1407
+ };
1408
+ type CheckTransactionReturns = {
1409
+ err: number;
1410
+ msg: string;
1411
+ orderId: string;
1412
+ transId: string;
1413
+ resultCode: number;
1414
+ transTime: string;
1415
+ createdAt: string;
1416
+ path?: string;
1417
+ };
1418
+ type CreateOrderIAPReturns = {
1419
+ orderId: string;
1420
+ };
1421
+ declare const AuthenScopeProperty: ZodEnum<["scope.userInfo", "scope.userLocation", "scope.userPhonenumber"]>;
1422
+ type AuthenScopeType = TypeOf<typeof AuthenScopeProperty>;
1423
+ type AuthenResponse = Partial<{
1424
+ [key in AuthenScopeType]: boolean;
1425
+ }>;
1426
+ type GetSettingReturn = {
1427
+ authSetting: AuthenResponse;
1428
+ };
1429
+
1430
+ declare function login(args?: AsyncCallback<string>): Promise<string>;
1431
+
1432
+ declare function getAccessToken(args?: AsyncCallback<string>): Promise<string>;
1433
+
1434
+ declare function getVersion(): string;
1435
+
1436
+ declare function getSystemInfo(): SystemInfo;
1437
+
1433
1438
  declare const setNavigationBarTitleArgs: ZodOptional<ZodObject<{
1434
1439
  title: ZodString;
1435
1440
  }, "strip", ZodTypeAny, {
@@ -1679,15 +1684,15 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
1679
1684
  imageUrl?: string | undefined;
1680
1685
  }>;
1681
1686
  }, "strip", ZodTypeAny, {
1687
+ type: "image";
1682
1688
  data: {
1683
1689
  imageUrl?: string | undefined;
1684
1690
  };
1685
- type: "image";
1686
1691
  }, {
1692
+ type: "image";
1687
1693
  data: {
1688
1694
  imageUrl?: string | undefined;
1689
1695
  };
1690
- type: "image";
1691
1696
  }>, ZodObject<{
1692
1697
  type: ZodEnum<["link"]>;
1693
1698
  data: ZodObject<{
@@ -1707,21 +1712,21 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
1707
1712
  link: string;
1708
1713
  }>;
1709
1714
  }, "strip", ZodTypeAny, {
1715
+ type: "link";
1710
1716
  data: {
1711
1717
  description?: string | undefined;
1712
1718
  title?: string | undefined;
1713
1719
  thumb?: string | undefined;
1714
1720
  link: string;
1715
1721
  };
1716
- type: "link";
1717
1722
  }, {
1723
+ type: "link";
1718
1724
  data: {
1719
1725
  description?: string | undefined;
1720
1726
  title?: string | undefined;
1721
1727
  thumb?: string | undefined;
1722
1728
  link: string;
1723
1729
  };
1724
- type: "link";
1725
1730
  }>, ZodObject<{
1726
1731
  type: ZodEnum<["profile"]>;
1727
1732
  data: ZodObject<{
@@ -1732,15 +1737,15 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
1732
1737
  id?: string | undefined;
1733
1738
  }>;
1734
1739
  }, "strip", ZodTypeAny, {
1740
+ type: "profile";
1735
1741
  data: {
1736
1742
  id?: string | undefined;
1737
1743
  };
1738
- type: "profile";
1739
1744
  }, {
1745
+ type: "profile";
1740
1746
  data: {
1741
1747
  id?: string | undefined;
1742
1748
  };
1743
- type: "profile";
1744
1749
  }>]>[];
1745
1750
  declare function openPostFeed(args: AsyncCallback<OpenPostFeedReturns> & TypeOf<(typeof openPostFeedArgs)[0]>): Promise<OpenPostFeedReturns>;
1746
1751
 
@@ -1778,17 +1783,17 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1778
1783
  imageUrl: string;
1779
1784
  }>;
1780
1785
  }, "strip", ZodTypeAny, {
1786
+ type: "image";
1781
1787
  data: {
1782
1788
  imageUrls?: string[] | undefined;
1783
1789
  imageUrl: string;
1784
1790
  };
1785
- type: "image";
1786
1791
  }, {
1792
+ type: "image";
1787
1793
  data: {
1788
1794
  imageUrls?: string[] | undefined;
1789
1795
  imageUrl: string;
1790
1796
  };
1791
- type: "image";
1792
1797
  }>, ZodObject<{
1793
1798
  type: ZodEnum<["link"]>;
1794
1799
  data: ZodObject<{
@@ -1802,17 +1807,17 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1802
1807
  link: string;
1803
1808
  }>;
1804
1809
  }, "strip", ZodTypeAny, {
1810
+ type: "link";
1805
1811
  data: {
1806
1812
  chatOnly?: boolean | undefined;
1807
1813
  link: string;
1808
1814
  };
1809
- type: "link";
1810
1815
  }, {
1816
+ type: "link";
1811
1817
  data: {
1812
1818
  chatOnly?: boolean | undefined;
1813
1819
  link: string;
1814
1820
  };
1815
- type: "link";
1816
1821
  }>, ZodObject<{
1817
1822
  type: ZodEnum<["oa"]>;
1818
1823
  data: ZodObject<{
@@ -1823,15 +1828,15 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1823
1828
  id: string;
1824
1829
  }>;
1825
1830
  }, "strip", ZodTypeAny, {
1831
+ type: "oa";
1826
1832
  data: {
1827
1833
  id: string;
1828
1834
  };
1829
- type: "oa";
1830
1835
  }, {
1836
+ type: "oa";
1831
1837
  data: {
1832
1838
  id: string;
1833
1839
  };
1834
- type: "oa";
1835
1840
  }>, ZodObject<{
1836
1841
  type: ZodEnum<["gif"]>;
1837
1842
  data: ZodObject<{
@@ -1851,21 +1856,21 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1851
1856
  gifUrl: string;
1852
1857
  }>;
1853
1858
  }, "strip", ZodTypeAny, {
1859
+ type: "gif";
1854
1860
  data: {
1855
1861
  imageUrl?: string | undefined;
1856
1862
  width?: number | undefined;
1857
1863
  height?: number | undefined;
1858
1864
  gifUrl: string;
1859
1865
  };
1860
- type: "gif";
1861
1866
  }, {
1867
+ type: "gif";
1862
1868
  data: {
1863
1869
  imageUrl?: string | undefined;
1864
1870
  width?: number | undefined;
1865
1871
  height?: number | undefined;
1866
1872
  gifUrl: string;
1867
1873
  };
1868
- type: "gif";
1869
1874
  }>, ZodObject<{
1870
1875
  type: ZodEnum<["video"]>;
1871
1876
  data: ZodObject<{
@@ -1885,21 +1890,21 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1885
1890
  videoUrl: string;
1886
1891
  }>;
1887
1892
  }, "strip", ZodTypeAny, {
1893
+ type: "video";
1888
1894
  data: {
1889
1895
  width?: number | undefined;
1890
1896
  height?: number | undefined;
1891
1897
  videoThumb: string;
1892
1898
  videoUrl: string;
1893
1899
  };
1894
- type: "video";
1895
1900
  }, {
1901
+ type: "video";
1896
1902
  data: {
1897
1903
  width?: number | undefined;
1898
1904
  height?: number | undefined;
1899
1905
  videoThumb: string;
1900
1906
  videoUrl: string;
1901
1907
  };
1902
- type: "video";
1903
1908
  }>, ZodObject<{
1904
1909
  type: ZodEnum<["zmp", "zmp_deep_link"]>;
1905
1910
  data: ZodObject<{
@@ -1908,32 +1913,32 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
1908
1913
  path: ZodOptional<ZodString>;
1909
1914
  description: ZodOptional<ZodDefault<ZodString>>;
1910
1915
  }, "strip", ZodTypeAny, {
1911
- description?: string | undefined;
1912
1916
  path?: string | undefined;
1917
+ description?: string | undefined;
1913
1918
  title: string;
1914
1919
  thumbnail: string;
1915
1920
  }, {
1916
- description?: string | undefined;
1917
1921
  path?: string | undefined;
1922
+ description?: string | undefined;
1918
1923
  title: string;
1919
1924
  thumbnail: string;
1920
1925
  }>;
1921
1926
  }, "strip", ZodTypeAny, {
1927
+ type: "zmp" | "zmp_deep_link";
1922
1928
  data: {
1923
- description?: string | undefined;
1924
1929
  path?: string | undefined;
1930
+ description?: string | undefined;
1925
1931
  title: string;
1926
1932
  thumbnail: string;
1927
1933
  };
1928
- type: "zmp" | "zmp_deep_link";
1929
1934
  }, {
1935
+ type: "zmp" | "zmp_deep_link";
1930
1936
  data: {
1931
- description?: string | undefined;
1932
1937
  path?: string | undefined;
1938
+ description?: string | undefined;
1933
1939
  title: string;
1934
1940
  thumbnail: string;
1935
1941
  };
1936
- type: "zmp" | "zmp_deep_link";
1937
1942
  }>]>[];
1938
1943
  declare function openShareSheet(args: AsyncCallback<OpenShareSheetReturns> & TypeOf<(typeof openShareSheetArgs)[0]>): Promise<OpenShareSheetReturns>;
1939
1944
 
@@ -2197,8 +2202,8 @@ declare const getShareableLinkArgs: ZodObject<{
2197
2202
  description: string;
2198
2203
  title: string;
2199
2204
  }, {
2200
- description?: string | undefined;
2201
2205
  path?: string | undefined;
2206
+ description?: string | undefined;
2202
2207
  thumbnail?: string | undefined;
2203
2208
  title: string;
2204
2209
  }>[];
@@ -2268,16 +2273,19 @@ declare const createOrderArgs: ZodObject<{
2268
2273
  item: ZodArray<ZodRecord<ZodString, ZodAny>, "many">;
2269
2274
  desc: ZodString;
2270
2275
  extradata: ZodOptional<ZodAny>;
2276
+ payload: ZodOptional<ZodAny>;
2271
2277
  method: ZodOptional<ZodEnum<["MOMO", "ZALOPAY", "MOMO_SANDBOX", "ZALOPAY_SANDBOX", "CC", "CC_SANDBOX", "ATM", "ATM_SANDBOX", "VNPAY", "VNPAY_SANDBOX"]>>;
2272
2278
  }, "strip", ZodTypeAny, {
2273
2279
  method?: "ZALOPAY" | "MOMO" | "ZALOPAY_SANDBOX" | "MOMO_SANDBOX" | "ATM" | "ATM_SANDBOX" | "CC" | "CC_SANDBOX" | "VNPAY" | "VNPAY_SANDBOX" | undefined;
2274
2280
  extradata?: any;
2281
+ payload?: any;
2275
2282
  desc: string;
2276
2283
  amount: string | number;
2277
2284
  item: Record<string, any>[];
2278
2285
  }, {
2279
2286
  method?: "ZALOPAY" | "MOMO" | "ZALOPAY_SANDBOX" | "MOMO_SANDBOX" | "ATM" | "ATM_SANDBOX" | "CC" | "CC_SANDBOX" | "VNPAY" | "VNPAY_SANDBOX" | undefined;
2280
2287
  extradata?: any;
2288
+ payload?: any;
2281
2289
  desc: string;
2282
2290
  amount: string | number;
2283
2291
  item: Record<string, any>[];
@@ -2431,11 +2439,11 @@ declare function checkIsAllowedInteractWithOA(args: AsyncVoidCallback & TypeOf<(
2431
2439
  declare function getSetting(args?: AsyncCallback<GetSettingReturn>): Promise<GetSettingReturn>;
2432
2440
 
2433
2441
  declare const authorizeArgs: ZodOptional<ZodObject<{
2434
- scopes: ZodOptional<ZodArray<ZodString, "many">>;
2442
+ scopes: ZodOptional<ZodArray<ZodEnum<["scope.userInfo", "scope.userLocation", "scope.userPhonenumber"]>, "many">>;
2435
2443
  }, "strip", ZodTypeAny, {
2436
- scopes?: string[] | undefined;
2444
+ scopes?: ("scope.userInfo" | "scope.userLocation" | "scope.userPhonenumber")[] | undefined;
2437
2445
  }, {
2438
- scopes?: string[] | undefined;
2446
+ scopes?: ("scope.userInfo" | "scope.userLocation" | "scope.userPhonenumber")[] | undefined;
2439
2447
  }>>[];
2440
2448
  declare function authorize(args?: AsyncVoidCallback & TypeOf<(typeof authorizeArgs)[0]>): Promise<AuthenResponse>;
2441
2449
 
@@ -2539,4 +2547,4 @@ declare const payment: {
2539
2547
  createOrderIAP: typeof createOrderIAP;
2540
2548
  };
2541
2549
 
2542
- export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, AuthenResponse, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, JumpStatus, KeepScreenReturns, LogData, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, payment as Payment, PickAttr, PlatformType, PostFeedType, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, ScanQRCodeReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, SystemInfo, TextAlignType, VibrateType, addRating, authorize, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createOrder, createOrderIAP, createShortcut, otherApis as default, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getIDToken, getLocation, getNetworkType, getPhoneNumber, getRouteParams, getSetting, getShareableLink, getStorage, getStorageInfo, getSystemInfo, getUserID, getUserInfo, getVersion, getZPIToken, hideKeyboard, iBeaconInfo, interactOA, interactOA as interactOa, checkIsAllowedInteractWithOA as isAllowedInteractWithOA, keepScreen, login, minimizeApp, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, scanQRCode, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };
2550
+ export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, AuthenResponse, AuthenScopeType, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, JumpStatus, KeepScreenReturns, LogData, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, payment as Payment, PickAttr, PlatformType, PostFeedType, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, ScanQRCodeReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, SystemInfo, TextAlignType, VibrateType, addRating, authorize, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createOrder, createOrderIAP, createShortcut, otherApis as default, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getIDToken, getLocation, getNetworkType, getPhoneNumber, getRouteParams, getSetting, getShareableLink, getStorage, getStorageInfo, getSystemInfo, getUserID, getUserInfo, getVersion, getZPIToken, hideKeyboard, iBeaconInfo, interactOA, interactOA as interactOa, checkIsAllowedInteractWithOA as isAllowedInteractWithOA, keepScreen, login, minimizeApp, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, scanQRCode, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };