@alicloud/cams20200606 1.1.0 → 1.2.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/src/client.ts CHANGED
@@ -8,6 +8,90 @@ import OpenApiUtil from '@alicloud/openapi-util';
8
8
  import EndpointUtil from '@alicloud/endpoint-util';
9
9
  import * as $tea from '@alicloud/tea-typescript';
10
10
 
11
+ export class AddChatappPhoneNumberRequest extends $tea.Model {
12
+ cc?: string;
13
+ custSpaceId?: string;
14
+ phoneNumber?: string;
15
+ preValidateId?: string;
16
+ verifiedName?: string;
17
+ static names(): { [key: string]: string } {
18
+ return {
19
+ cc: 'Cc',
20
+ custSpaceId: 'CustSpaceId',
21
+ phoneNumber: 'PhoneNumber',
22
+ preValidateId: 'PreValidateId',
23
+ verifiedName: 'VerifiedName',
24
+ };
25
+ }
26
+
27
+ static types(): { [key: string]: any } {
28
+ return {
29
+ cc: 'string',
30
+ custSpaceId: 'string',
31
+ phoneNumber: 'string',
32
+ preValidateId: 'string',
33
+ verifiedName: 'string',
34
+ };
35
+ }
36
+
37
+ constructor(map?: { [key: string]: any }) {
38
+ super(map);
39
+ }
40
+ }
41
+
42
+ export class AddChatappPhoneNumberResponseBody extends $tea.Model {
43
+ accessDeniedDetail?: string;
44
+ code?: string;
45
+ message?: string;
46
+ requestId?: string;
47
+ static names(): { [key: string]: string } {
48
+ return {
49
+ accessDeniedDetail: 'AccessDeniedDetail',
50
+ code: 'Code',
51
+ message: 'Message',
52
+ requestId: 'RequestId',
53
+ };
54
+ }
55
+
56
+ static types(): { [key: string]: any } {
57
+ return {
58
+ accessDeniedDetail: 'string',
59
+ code: 'string',
60
+ message: 'string',
61
+ requestId: 'string',
62
+ };
63
+ }
64
+
65
+ constructor(map?: { [key: string]: any }) {
66
+ super(map);
67
+ }
68
+ }
69
+
70
+ export class AddChatappPhoneNumberResponse extends $tea.Model {
71
+ headers: { [key: string]: string };
72
+ statusCode: number;
73
+ body: AddChatappPhoneNumberResponseBody;
74
+ static names(): { [key: string]: string } {
75
+ return {
76
+ headers: 'headers',
77
+ statusCode: 'statusCode',
78
+ body: 'body',
79
+ };
80
+ }
81
+
82
+ static types(): { [key: string]: any } {
83
+ return {
84
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
85
+ statusCode: 'number',
86
+ body: AddChatappPhoneNumberResponseBody,
87
+ };
88
+ }
89
+
90
+ constructor(map?: { [key: string]: any }) {
91
+ super(map);
92
+ }
93
+ }
94
+
11
95
  export class BeeBotAssociateRequest extends $tea.Model {
12
96
  chatBotInstanceId?: string;
13
97
  custSpaceId?: string;
@@ -598,6 +682,81 @@ export class ChatappMigrationVerifiedResponse extends $tea.Model {
598
682
  }
599
683
  }
600
684
 
685
+ export class ChatappPhoneNumberDeregisterRequest extends $tea.Model {
686
+ custSpaceId?: string;
687
+ phoneNumber?: string;
688
+ static names(): { [key: string]: string } {
689
+ return {
690
+ custSpaceId: 'CustSpaceId',
691
+ phoneNumber: 'PhoneNumber',
692
+ };
693
+ }
694
+
695
+ static types(): { [key: string]: any } {
696
+ return {
697
+ custSpaceId: 'string',
698
+ phoneNumber: 'string',
699
+ };
700
+ }
701
+
702
+ constructor(map?: { [key: string]: any }) {
703
+ super(map);
704
+ }
705
+ }
706
+
707
+ export class ChatappPhoneNumberDeregisterResponseBody extends $tea.Model {
708
+ accessDeniedDetail?: string;
709
+ code?: string;
710
+ message?: string;
711
+ requestId?: string;
712
+ static names(): { [key: string]: string } {
713
+ return {
714
+ accessDeniedDetail: 'AccessDeniedDetail',
715
+ code: 'Code',
716
+ message: 'Message',
717
+ requestId: 'RequestId',
718
+ };
719
+ }
720
+
721
+ static types(): { [key: string]: any } {
722
+ return {
723
+ accessDeniedDetail: 'string',
724
+ code: 'string',
725
+ message: 'string',
726
+ requestId: 'string',
727
+ };
728
+ }
729
+
730
+ constructor(map?: { [key: string]: any }) {
731
+ super(map);
732
+ }
733
+ }
734
+
735
+ export class ChatappPhoneNumberDeregisterResponse extends $tea.Model {
736
+ headers: { [key: string]: string };
737
+ statusCode: number;
738
+ body: ChatappPhoneNumberDeregisterResponseBody;
739
+ static names(): { [key: string]: string } {
740
+ return {
741
+ headers: 'headers',
742
+ statusCode: 'statusCode',
743
+ body: 'body',
744
+ };
745
+ }
746
+
747
+ static types(): { [key: string]: any } {
748
+ return {
749
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
750
+ statusCode: 'number',
751
+ body: ChatappPhoneNumberDeregisterResponseBody,
752
+ };
753
+ }
754
+
755
+ constructor(map?: { [key: string]: any }) {
756
+ super(map);
757
+ }
758
+ }
759
+
601
760
  export class ChatappPhoneNumberRegisterRequest extends $tea.Model {
602
761
  custSpaceId?: string;
603
762
  phoneNumber?: string;
@@ -1142,32 +1301,20 @@ export class DeleteChatappTemplateResponse extends $tea.Model {
1142
1301
  }
1143
1302
  }
1144
1303
 
1145
- export class GetChatappTemplateDetailRequest extends $tea.Model {
1304
+ export class EnableWhatsappROIMetricRequest extends $tea.Model {
1146
1305
  custSpaceId?: string;
1147
- custWabaId?: string;
1148
1306
  isvCode?: string;
1149
- language?: string;
1150
- templateCode?: string;
1151
- templateType?: string;
1152
1307
  static names(): { [key: string]: string } {
1153
1308
  return {
1154
1309
  custSpaceId: 'CustSpaceId',
1155
- custWabaId: 'CustWabaId',
1156
1310
  isvCode: 'IsvCode',
1157
- language: 'Language',
1158
- templateCode: 'TemplateCode',
1159
- templateType: 'TemplateType',
1160
1311
  };
1161
1312
  }
1162
1313
 
1163
1314
  static types(): { [key: string]: any } {
1164
1315
  return {
1165
1316
  custSpaceId: 'string',
1166
- custWabaId: 'string',
1167
1317
  isvCode: 'string',
1168
- language: 'string',
1169
- templateCode: 'string',
1170
- templateType: 'string',
1171
1318
  };
1172
1319
  }
1173
1320
 
@@ -1176,17 +1323,15 @@ export class GetChatappTemplateDetailRequest extends $tea.Model {
1176
1323
  }
1177
1324
  }
1178
1325
 
1179
- export class GetChatappTemplateDetailResponseBody extends $tea.Model {
1326
+ export class EnableWhatsappROIMetricResponseBody extends $tea.Model {
1180
1327
  accessDeniedDetail?: string;
1181
1328
  code?: string;
1182
- data?: GetChatappTemplateDetailResponseBodyData;
1183
1329
  message?: string;
1184
1330
  requestId?: string;
1185
1331
  static names(): { [key: string]: string } {
1186
1332
  return {
1187
1333
  accessDeniedDetail: 'AccessDeniedDetail',
1188
1334
  code: 'Code',
1189
- data: 'Data',
1190
1335
  message: 'Message',
1191
1336
  requestId: 'RequestId',
1192
1337
  };
@@ -1196,7 +1341,6 @@ export class GetChatappTemplateDetailResponseBody extends $tea.Model {
1196
1341
  return {
1197
1342
  accessDeniedDetail: 'string',
1198
1343
  code: 'string',
1199
- data: GetChatappTemplateDetailResponseBodyData,
1200
1344
  message: 'string',
1201
1345
  requestId: 'string',
1202
1346
  };
@@ -1207,10 +1351,10 @@ export class GetChatappTemplateDetailResponseBody extends $tea.Model {
1207
1351
  }
1208
1352
  }
1209
1353
 
1210
- export class GetChatappTemplateDetailResponse extends $tea.Model {
1354
+ export class EnableWhatsappROIMetricResponse extends $tea.Model {
1211
1355
  headers: { [key: string]: string };
1212
1356
  statusCode: number;
1213
- body: GetChatappTemplateDetailResponseBody;
1357
+ body: EnableWhatsappROIMetricResponseBody;
1214
1358
  static names(): { [key: string]: string } {
1215
1359
  return {
1216
1360
  headers: 'headers',
@@ -1223,7 +1367,7 @@ export class GetChatappTemplateDetailResponse extends $tea.Model {
1223
1367
  return {
1224
1368
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1225
1369
  statusCode: 'number',
1226
- body: GetChatappTemplateDetailResponseBody,
1370
+ body: EnableWhatsappROIMetricResponseBody,
1227
1371
  };
1228
1372
  }
1229
1373
 
@@ -1232,17 +1376,32 @@ export class GetChatappTemplateDetailResponse extends $tea.Model {
1232
1376
  }
1233
1377
  }
1234
1378
 
1235
- export class GetChatappUploadAuthorizationRequest extends $tea.Model {
1379
+ export class GetChatappPhoneNumberMetricRequest extends $tea.Model {
1236
1380
  custSpaceId?: string;
1381
+ end?: number;
1382
+ granularity?: string;
1383
+ isvCode?: string;
1384
+ phoneNumber?: string;
1385
+ start?: number;
1237
1386
  static names(): { [key: string]: string } {
1238
1387
  return {
1239
1388
  custSpaceId: 'CustSpaceId',
1389
+ end: 'End',
1390
+ granularity: 'Granularity',
1391
+ isvCode: 'IsvCode',
1392
+ phoneNumber: 'PhoneNumber',
1393
+ start: 'Start',
1240
1394
  };
1241
1395
  }
1242
1396
 
1243
1397
  static types(): { [key: string]: any } {
1244
1398
  return {
1245
1399
  custSpaceId: 'string',
1400
+ end: 'number',
1401
+ granularity: 'string',
1402
+ isvCode: 'string',
1403
+ phoneNumber: 'string',
1404
+ start: 'number',
1246
1405
  };
1247
1406
  }
1248
1407
 
@@ -1251,10 +1410,10 @@ export class GetChatappUploadAuthorizationRequest extends $tea.Model {
1251
1410
  }
1252
1411
  }
1253
1412
 
1254
- export class GetChatappUploadAuthorizationResponseBody extends $tea.Model {
1413
+ export class GetChatappPhoneNumberMetricResponseBody extends $tea.Model {
1255
1414
  accessDeniedDetail?: string;
1256
1415
  code?: string;
1257
- data?: GetChatappUploadAuthorizationResponseBodyData;
1416
+ data?: GetChatappPhoneNumberMetricResponseBodyData[];
1258
1417
  message?: string;
1259
1418
  requestId?: string;
1260
1419
  static names(): { [key: string]: string } {
@@ -1271,7 +1430,7 @@ export class GetChatappUploadAuthorizationResponseBody extends $tea.Model {
1271
1430
  return {
1272
1431
  accessDeniedDetail: 'string',
1273
1432
  code: 'string',
1274
- data: GetChatappUploadAuthorizationResponseBodyData,
1433
+ data: { 'type': 'array', 'itemType': GetChatappPhoneNumberMetricResponseBodyData },
1275
1434
  message: 'string',
1276
1435
  requestId: 'string',
1277
1436
  };
@@ -1282,10 +1441,10 @@ export class GetChatappUploadAuthorizationResponseBody extends $tea.Model {
1282
1441
  }
1283
1442
  }
1284
1443
 
1285
- export class GetChatappUploadAuthorizationResponse extends $tea.Model {
1444
+ export class GetChatappPhoneNumberMetricResponse extends $tea.Model {
1286
1445
  headers: { [key: string]: string };
1287
1446
  statusCode: number;
1288
- body: GetChatappUploadAuthorizationResponseBody;
1447
+ body: GetChatappPhoneNumberMetricResponseBody;
1289
1448
  static names(): { [key: string]: string } {
1290
1449
  return {
1291
1450
  headers: 'headers',
@@ -1298,7 +1457,7 @@ export class GetChatappUploadAuthorizationResponse extends $tea.Model {
1298
1457
  return {
1299
1458
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1300
1459
  statusCode: 'number',
1301
- body: GetChatappUploadAuthorizationResponseBody,
1460
+ body: GetChatappPhoneNumberMetricResponseBody,
1302
1461
  };
1303
1462
  }
1304
1463
 
@@ -1307,26 +1466,32 @@ export class GetChatappUploadAuthorizationResponse extends $tea.Model {
1307
1466
  }
1308
1467
  }
1309
1468
 
1310
- export class GetChatappVerifyCodeRequest extends $tea.Model {
1469
+ export class GetChatappTemplateDetailRequest extends $tea.Model {
1311
1470
  custSpaceId?: string;
1312
- locale?: string;
1313
- method?: string;
1314
- phoneNumber?: string;
1471
+ custWabaId?: string;
1472
+ isvCode?: string;
1473
+ language?: string;
1474
+ templateCode?: string;
1475
+ templateType?: string;
1315
1476
  static names(): { [key: string]: string } {
1316
1477
  return {
1317
1478
  custSpaceId: 'CustSpaceId',
1318
- locale: 'Locale',
1319
- method: 'Method',
1320
- phoneNumber: 'PhoneNumber',
1479
+ custWabaId: 'CustWabaId',
1480
+ isvCode: 'IsvCode',
1481
+ language: 'Language',
1482
+ templateCode: 'TemplateCode',
1483
+ templateType: 'TemplateType',
1321
1484
  };
1322
1485
  }
1323
1486
 
1324
1487
  static types(): { [key: string]: any } {
1325
1488
  return {
1326
1489
  custSpaceId: 'string',
1327
- locale: 'string',
1328
- method: 'string',
1329
- phoneNumber: 'string',
1490
+ custWabaId: 'string',
1491
+ isvCode: 'string',
1492
+ language: 'string',
1493
+ templateCode: 'string',
1494
+ templateType: 'string',
1330
1495
  };
1331
1496
  }
1332
1497
 
@@ -1335,15 +1500,17 @@ export class GetChatappVerifyCodeRequest extends $tea.Model {
1335
1500
  }
1336
1501
  }
1337
1502
 
1338
- export class GetChatappVerifyCodeResponseBody extends $tea.Model {
1503
+ export class GetChatappTemplateDetailResponseBody extends $tea.Model {
1339
1504
  accessDeniedDetail?: string;
1340
1505
  code?: string;
1506
+ data?: GetChatappTemplateDetailResponseBodyData;
1341
1507
  message?: string;
1342
1508
  requestId?: string;
1343
1509
  static names(): { [key: string]: string } {
1344
1510
  return {
1345
1511
  accessDeniedDetail: 'AccessDeniedDetail',
1346
1512
  code: 'Code',
1513
+ data: 'Data',
1347
1514
  message: 'Message',
1348
1515
  requestId: 'RequestId',
1349
1516
  };
@@ -1353,6 +1520,7 @@ export class GetChatappVerifyCodeResponseBody extends $tea.Model {
1353
1520
  return {
1354
1521
  accessDeniedDetail: 'string',
1355
1522
  code: 'string',
1523
+ data: GetChatappTemplateDetailResponseBodyData,
1356
1524
  message: 'string',
1357
1525
  requestId: 'string',
1358
1526
  };
@@ -1363,10 +1531,10 @@ export class GetChatappVerifyCodeResponseBody extends $tea.Model {
1363
1531
  }
1364
1532
  }
1365
1533
 
1366
- export class GetChatappVerifyCodeResponse extends $tea.Model {
1534
+ export class GetChatappTemplateDetailResponse extends $tea.Model {
1367
1535
  headers: { [key: string]: string };
1368
1536
  statusCode: number;
1369
- body: GetChatappVerifyCodeResponseBody;
1537
+ body: GetChatappTemplateDetailResponseBody;
1370
1538
  static names(): { [key: string]: string } {
1371
1539
  return {
1372
1540
  headers: 'headers',
@@ -1379,7 +1547,7 @@ export class GetChatappVerifyCodeResponse extends $tea.Model {
1379
1547
  return {
1380
1548
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1381
1549
  statusCode: 'number',
1382
- body: GetChatappVerifyCodeResponseBody,
1550
+ body: GetChatappTemplateDetailResponseBody,
1383
1551
  };
1384
1552
  }
1385
1553
 
@@ -1388,26 +1556,38 @@ export class GetChatappVerifyCodeResponse extends $tea.Model {
1388
1556
  }
1389
1557
  }
1390
1558
 
1391
- export class GetMigrationVerifyCodeRequest extends $tea.Model {
1559
+ export class GetChatappTemplateMetricRequest extends $tea.Model {
1392
1560
  custSpaceId?: string;
1393
- locale?: string;
1394
- method?: string;
1395
- phoneNumber?: string;
1561
+ end?: number;
1562
+ granularity?: string;
1563
+ isvCode?: string;
1564
+ language?: string;
1565
+ start?: number;
1566
+ templateCode?: string;
1567
+ templateType?: string;
1396
1568
  static names(): { [key: string]: string } {
1397
1569
  return {
1398
1570
  custSpaceId: 'CustSpaceId',
1399
- locale: 'Locale',
1400
- method: 'Method',
1401
- phoneNumber: 'PhoneNumber',
1571
+ end: 'End',
1572
+ granularity: 'Granularity',
1573
+ isvCode: 'IsvCode',
1574
+ language: 'Language',
1575
+ start: 'Start',
1576
+ templateCode: 'TemplateCode',
1577
+ templateType: 'TemplateType',
1402
1578
  };
1403
1579
  }
1404
1580
 
1405
1581
  static types(): { [key: string]: any } {
1406
1582
  return {
1407
1583
  custSpaceId: 'string',
1408
- locale: 'string',
1409
- method: 'string',
1410
- phoneNumber: 'string',
1584
+ end: 'number',
1585
+ granularity: 'string',
1586
+ isvCode: 'string',
1587
+ language: 'string',
1588
+ start: 'number',
1589
+ templateCode: 'string',
1590
+ templateType: 'string',
1411
1591
  };
1412
1592
  }
1413
1593
 
@@ -1416,10 +1596,10 @@ export class GetMigrationVerifyCodeRequest extends $tea.Model {
1416
1596
  }
1417
1597
  }
1418
1598
 
1419
- export class GetMigrationVerifyCodeResponseBody extends $tea.Model {
1599
+ export class GetChatappTemplateMetricResponseBody extends $tea.Model {
1420
1600
  accessDeniedDetail?: string;
1421
1601
  code?: string;
1422
- data?: GetMigrationVerifyCodeResponseBodyData;
1602
+ data?: GetChatappTemplateMetricResponseBodyData[];
1423
1603
  message?: string;
1424
1604
  requestId?: string;
1425
1605
  static names(): { [key: string]: string } {
@@ -1436,7 +1616,7 @@ export class GetMigrationVerifyCodeResponseBody extends $tea.Model {
1436
1616
  return {
1437
1617
  accessDeniedDetail: 'string',
1438
1618
  code: 'string',
1439
- data: GetMigrationVerifyCodeResponseBodyData,
1619
+ data: { 'type': 'array', 'itemType': GetChatappTemplateMetricResponseBodyData },
1440
1620
  message: 'string',
1441
1621
  requestId: 'string',
1442
1622
  };
@@ -1447,10 +1627,10 @@ export class GetMigrationVerifyCodeResponseBody extends $tea.Model {
1447
1627
  }
1448
1628
  }
1449
1629
 
1450
- export class GetMigrationVerifyCodeResponse extends $tea.Model {
1630
+ export class GetChatappTemplateMetricResponse extends $tea.Model {
1451
1631
  headers: { [key: string]: string };
1452
1632
  statusCode: number;
1453
- body: GetMigrationVerifyCodeResponseBody;
1633
+ body: GetChatappTemplateMetricResponseBody;
1454
1634
  static names(): { [key: string]: string } {
1455
1635
  return {
1456
1636
  headers: 'headers',
@@ -1463,7 +1643,7 @@ export class GetMigrationVerifyCodeResponse extends $tea.Model {
1463
1643
  return {
1464
1644
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1465
1645
  statusCode: 'number',
1466
- body: GetMigrationVerifyCodeResponseBody,
1646
+ body: GetChatappTemplateMetricResponseBody,
1467
1647
  };
1468
1648
  }
1469
1649
 
@@ -1472,20 +1652,17 @@ export class GetMigrationVerifyCodeResponse extends $tea.Model {
1472
1652
  }
1473
1653
  }
1474
1654
 
1475
- export class GetPhoneNumberVerificationStatusRequest extends $tea.Model {
1655
+ export class GetChatappUploadAuthorizationRequest extends $tea.Model {
1476
1656
  custSpaceId?: string;
1477
- phoneNumber?: string;
1478
1657
  static names(): { [key: string]: string } {
1479
1658
  return {
1480
1659
  custSpaceId: 'CustSpaceId',
1481
- phoneNumber: 'PhoneNumber',
1482
1660
  };
1483
1661
  }
1484
1662
 
1485
1663
  static types(): { [key: string]: any } {
1486
1664
  return {
1487
1665
  custSpaceId: 'string',
1488
- phoneNumber: 'string',
1489
1666
  };
1490
1667
  }
1491
1668
 
@@ -1494,13 +1671,15 @@ export class GetPhoneNumberVerificationStatusRequest extends $tea.Model {
1494
1671
  }
1495
1672
  }
1496
1673
 
1497
- export class GetPhoneNumberVerificationStatusResponseBody extends $tea.Model {
1674
+ export class GetChatappUploadAuthorizationResponseBody extends $tea.Model {
1675
+ accessDeniedDetail?: string;
1498
1676
  code?: string;
1499
- data?: GetPhoneNumberVerificationStatusResponseBodyData;
1677
+ data?: GetChatappUploadAuthorizationResponseBodyData;
1500
1678
  message?: string;
1501
1679
  requestId?: string;
1502
1680
  static names(): { [key: string]: string } {
1503
1681
  return {
1682
+ accessDeniedDetail: 'AccessDeniedDetail',
1504
1683
  code: 'Code',
1505
1684
  data: 'Data',
1506
1685
  message: 'Message',
@@ -1510,8 +1689,9 @@ export class GetPhoneNumberVerificationStatusResponseBody extends $tea.Model {
1510
1689
 
1511
1690
  static types(): { [key: string]: any } {
1512
1691
  return {
1692
+ accessDeniedDetail: 'string',
1513
1693
  code: 'string',
1514
- data: GetPhoneNumberVerificationStatusResponseBodyData,
1694
+ data: GetChatappUploadAuthorizationResponseBodyData,
1515
1695
  message: 'string',
1516
1696
  requestId: 'string',
1517
1697
  };
@@ -1522,7 +1702,247 @@ export class GetPhoneNumberVerificationStatusResponseBody extends $tea.Model {
1522
1702
  }
1523
1703
  }
1524
1704
 
1525
- export class GetPhoneNumberVerificationStatusResponse extends $tea.Model {
1705
+ export class GetChatappUploadAuthorizationResponse extends $tea.Model {
1706
+ headers: { [key: string]: string };
1707
+ statusCode: number;
1708
+ body: GetChatappUploadAuthorizationResponseBody;
1709
+ static names(): { [key: string]: string } {
1710
+ return {
1711
+ headers: 'headers',
1712
+ statusCode: 'statusCode',
1713
+ body: 'body',
1714
+ };
1715
+ }
1716
+
1717
+ static types(): { [key: string]: any } {
1718
+ return {
1719
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1720
+ statusCode: 'number',
1721
+ body: GetChatappUploadAuthorizationResponseBody,
1722
+ };
1723
+ }
1724
+
1725
+ constructor(map?: { [key: string]: any }) {
1726
+ super(map);
1727
+ }
1728
+ }
1729
+
1730
+ export class GetChatappVerifyCodeRequest extends $tea.Model {
1731
+ custSpaceId?: string;
1732
+ locale?: string;
1733
+ method?: string;
1734
+ phoneNumber?: string;
1735
+ static names(): { [key: string]: string } {
1736
+ return {
1737
+ custSpaceId: 'CustSpaceId',
1738
+ locale: 'Locale',
1739
+ method: 'Method',
1740
+ phoneNumber: 'PhoneNumber',
1741
+ };
1742
+ }
1743
+
1744
+ static types(): { [key: string]: any } {
1745
+ return {
1746
+ custSpaceId: 'string',
1747
+ locale: 'string',
1748
+ method: 'string',
1749
+ phoneNumber: 'string',
1750
+ };
1751
+ }
1752
+
1753
+ constructor(map?: { [key: string]: any }) {
1754
+ super(map);
1755
+ }
1756
+ }
1757
+
1758
+ export class GetChatappVerifyCodeResponseBody extends $tea.Model {
1759
+ accessDeniedDetail?: string;
1760
+ code?: string;
1761
+ message?: string;
1762
+ requestId?: string;
1763
+ static names(): { [key: string]: string } {
1764
+ return {
1765
+ accessDeniedDetail: 'AccessDeniedDetail',
1766
+ code: 'Code',
1767
+ message: 'Message',
1768
+ requestId: 'RequestId',
1769
+ };
1770
+ }
1771
+
1772
+ static types(): { [key: string]: any } {
1773
+ return {
1774
+ accessDeniedDetail: 'string',
1775
+ code: 'string',
1776
+ message: 'string',
1777
+ requestId: 'string',
1778
+ };
1779
+ }
1780
+
1781
+ constructor(map?: { [key: string]: any }) {
1782
+ super(map);
1783
+ }
1784
+ }
1785
+
1786
+ export class GetChatappVerifyCodeResponse extends $tea.Model {
1787
+ headers: { [key: string]: string };
1788
+ statusCode: number;
1789
+ body: GetChatappVerifyCodeResponseBody;
1790
+ static names(): { [key: string]: string } {
1791
+ return {
1792
+ headers: 'headers',
1793
+ statusCode: 'statusCode',
1794
+ body: 'body',
1795
+ };
1796
+ }
1797
+
1798
+ static types(): { [key: string]: any } {
1799
+ return {
1800
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1801
+ statusCode: 'number',
1802
+ body: GetChatappVerifyCodeResponseBody,
1803
+ };
1804
+ }
1805
+
1806
+ constructor(map?: { [key: string]: any }) {
1807
+ super(map);
1808
+ }
1809
+ }
1810
+
1811
+ export class GetMigrationVerifyCodeRequest extends $tea.Model {
1812
+ custSpaceId?: string;
1813
+ locale?: string;
1814
+ method?: string;
1815
+ phoneNumber?: string;
1816
+ static names(): { [key: string]: string } {
1817
+ return {
1818
+ custSpaceId: 'CustSpaceId',
1819
+ locale: 'Locale',
1820
+ method: 'Method',
1821
+ phoneNumber: 'PhoneNumber',
1822
+ };
1823
+ }
1824
+
1825
+ static types(): { [key: string]: any } {
1826
+ return {
1827
+ custSpaceId: 'string',
1828
+ locale: 'string',
1829
+ method: 'string',
1830
+ phoneNumber: 'string',
1831
+ };
1832
+ }
1833
+
1834
+ constructor(map?: { [key: string]: any }) {
1835
+ super(map);
1836
+ }
1837
+ }
1838
+
1839
+ export class GetMigrationVerifyCodeResponseBody extends $tea.Model {
1840
+ accessDeniedDetail?: string;
1841
+ code?: string;
1842
+ data?: GetMigrationVerifyCodeResponseBodyData;
1843
+ message?: string;
1844
+ requestId?: string;
1845
+ static names(): { [key: string]: string } {
1846
+ return {
1847
+ accessDeniedDetail: 'AccessDeniedDetail',
1848
+ code: 'Code',
1849
+ data: 'Data',
1850
+ message: 'Message',
1851
+ requestId: 'RequestId',
1852
+ };
1853
+ }
1854
+
1855
+ static types(): { [key: string]: any } {
1856
+ return {
1857
+ accessDeniedDetail: 'string',
1858
+ code: 'string',
1859
+ data: GetMigrationVerifyCodeResponseBodyData,
1860
+ message: 'string',
1861
+ requestId: 'string',
1862
+ };
1863
+ }
1864
+
1865
+ constructor(map?: { [key: string]: any }) {
1866
+ super(map);
1867
+ }
1868
+ }
1869
+
1870
+ export class GetMigrationVerifyCodeResponse extends $tea.Model {
1871
+ headers: { [key: string]: string };
1872
+ statusCode: number;
1873
+ body: GetMigrationVerifyCodeResponseBody;
1874
+ static names(): { [key: string]: string } {
1875
+ return {
1876
+ headers: 'headers',
1877
+ statusCode: 'statusCode',
1878
+ body: 'body',
1879
+ };
1880
+ }
1881
+
1882
+ static types(): { [key: string]: any } {
1883
+ return {
1884
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1885
+ statusCode: 'number',
1886
+ body: GetMigrationVerifyCodeResponseBody,
1887
+ };
1888
+ }
1889
+
1890
+ constructor(map?: { [key: string]: any }) {
1891
+ super(map);
1892
+ }
1893
+ }
1894
+
1895
+ export class GetPhoneNumberVerificationStatusRequest extends $tea.Model {
1896
+ custSpaceId?: string;
1897
+ phoneNumber?: string;
1898
+ static names(): { [key: string]: string } {
1899
+ return {
1900
+ custSpaceId: 'CustSpaceId',
1901
+ phoneNumber: 'PhoneNumber',
1902
+ };
1903
+ }
1904
+
1905
+ static types(): { [key: string]: any } {
1906
+ return {
1907
+ custSpaceId: 'string',
1908
+ phoneNumber: 'string',
1909
+ };
1910
+ }
1911
+
1912
+ constructor(map?: { [key: string]: any }) {
1913
+ super(map);
1914
+ }
1915
+ }
1916
+
1917
+ export class GetPhoneNumberVerificationStatusResponseBody extends $tea.Model {
1918
+ code?: string;
1919
+ data?: GetPhoneNumberVerificationStatusResponseBodyData;
1920
+ message?: string;
1921
+ requestId?: string;
1922
+ static names(): { [key: string]: string } {
1923
+ return {
1924
+ code: 'Code',
1925
+ data: 'Data',
1926
+ message: 'Message',
1927
+ requestId: 'RequestId',
1928
+ };
1929
+ }
1930
+
1931
+ static types(): { [key: string]: any } {
1932
+ return {
1933
+ code: 'string',
1934
+ data: GetPhoneNumberVerificationStatusResponseBodyData,
1935
+ message: 'string',
1936
+ requestId: 'string',
1937
+ };
1938
+ }
1939
+
1940
+ constructor(map?: { [key: string]: any }) {
1941
+ super(map);
1942
+ }
1943
+ }
1944
+
1945
+ export class GetPhoneNumberVerificationStatusResponse extends $tea.Model {
1526
1946
  headers: { [key: string]: string };
1527
1947
  statusCode: number;
1528
1948
  body: GetPhoneNumberVerificationStatusResponseBody;
@@ -1622,6 +2042,96 @@ export class GetPreValidatePhoneIdResponse extends $tea.Model {
1622
2042
  }
1623
2043
  }
1624
2044
 
2045
+ export class GetWhatsappConnectionCatalogRequest extends $tea.Model {
2046
+ custSpaceId?: string;
2047
+ ownerId?: number;
2048
+ resourceOwnerAccount?: string;
2049
+ resourceOwnerId?: number;
2050
+ wabaId?: string;
2051
+ static names(): { [key: string]: string } {
2052
+ return {
2053
+ custSpaceId: 'CustSpaceId',
2054
+ ownerId: 'OwnerId',
2055
+ resourceOwnerAccount: 'ResourceOwnerAccount',
2056
+ resourceOwnerId: 'ResourceOwnerId',
2057
+ wabaId: 'WabaId',
2058
+ };
2059
+ }
2060
+
2061
+ static types(): { [key: string]: any } {
2062
+ return {
2063
+ custSpaceId: 'string',
2064
+ ownerId: 'number',
2065
+ resourceOwnerAccount: 'string',
2066
+ resourceOwnerId: 'number',
2067
+ wabaId: 'string',
2068
+ };
2069
+ }
2070
+
2071
+ constructor(map?: { [key: string]: any }) {
2072
+ super(map);
2073
+ }
2074
+ }
2075
+
2076
+ export class GetWhatsappConnectionCatalogResponseBody extends $tea.Model {
2077
+ accessDeniedDetail?: string;
2078
+ code?: string;
2079
+ message?: string;
2080
+ model?: { [key: string]: any };
2081
+ requestId?: string;
2082
+ success?: boolean;
2083
+ static names(): { [key: string]: string } {
2084
+ return {
2085
+ accessDeniedDetail: 'AccessDeniedDetail',
2086
+ code: 'Code',
2087
+ message: 'Message',
2088
+ model: 'Model',
2089
+ requestId: 'RequestId',
2090
+ success: 'Success',
2091
+ };
2092
+ }
2093
+
2094
+ static types(): { [key: string]: any } {
2095
+ return {
2096
+ accessDeniedDetail: 'string',
2097
+ code: 'string',
2098
+ message: 'string',
2099
+ model: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
2100
+ requestId: 'string',
2101
+ success: 'boolean',
2102
+ };
2103
+ }
2104
+
2105
+ constructor(map?: { [key: string]: any }) {
2106
+ super(map);
2107
+ }
2108
+ }
2109
+
2110
+ export class GetWhatsappConnectionCatalogResponse extends $tea.Model {
2111
+ headers: { [key: string]: string };
2112
+ statusCode: number;
2113
+ body: GetWhatsappConnectionCatalogResponseBody;
2114
+ static names(): { [key: string]: string } {
2115
+ return {
2116
+ headers: 'headers',
2117
+ statusCode: 'statusCode',
2118
+ body: 'body',
2119
+ };
2120
+ }
2121
+
2122
+ static types(): { [key: string]: any } {
2123
+ return {
2124
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2125
+ statusCode: 'number',
2126
+ body: GetWhatsappConnectionCatalogResponseBody,
2127
+ };
2128
+ }
2129
+
2130
+ constructor(map?: { [key: string]: any }) {
2131
+ super(map);
2132
+ }
2133
+ }
2134
+
1625
2135
  export class IsvGetAppIdRequest extends $tea.Model {
1626
2136
  type?: string;
1627
2137
  static names(): { [key: string]: string } {
@@ -1737,38 +2247,245 @@ export class ListChatappTemplateRequest extends $tea.Model {
1737
2247
  }
1738
2248
  }
1739
2249
 
1740
- export class ListChatappTemplateShrinkRequest extends $tea.Model {
1741
- auditStatus?: string;
2250
+ export class ListChatappTemplateShrinkRequest extends $tea.Model {
2251
+ auditStatus?: string;
2252
+ custSpaceId?: string;
2253
+ custWabaId?: string;
2254
+ isvCode?: string;
2255
+ language?: string;
2256
+ name?: string;
2257
+ pageShrink?: string;
2258
+ templateType?: string;
2259
+ static names(): { [key: string]: string } {
2260
+ return {
2261
+ auditStatus: 'AuditStatus',
2262
+ custSpaceId: 'CustSpaceId',
2263
+ custWabaId: 'CustWabaId',
2264
+ isvCode: 'IsvCode',
2265
+ language: 'Language',
2266
+ name: 'Name',
2267
+ pageShrink: 'Page',
2268
+ templateType: 'TemplateType',
2269
+ };
2270
+ }
2271
+
2272
+ static types(): { [key: string]: any } {
2273
+ return {
2274
+ auditStatus: 'string',
2275
+ custSpaceId: 'string',
2276
+ custWabaId: 'string',
2277
+ isvCode: 'string',
2278
+ language: 'string',
2279
+ name: 'string',
2280
+ pageShrink: 'string',
2281
+ templateType: 'string',
2282
+ };
2283
+ }
2284
+
2285
+ constructor(map?: { [key: string]: any }) {
2286
+ super(map);
2287
+ }
2288
+ }
2289
+
2290
+ export class ListChatappTemplateResponseBody extends $tea.Model {
2291
+ accessDeniedDetail?: string;
2292
+ code?: string;
2293
+ listTemplate?: ListChatappTemplateResponseBodyListTemplate[];
2294
+ message?: string;
2295
+ requestId?: string;
2296
+ total?: number;
2297
+ static names(): { [key: string]: string } {
2298
+ return {
2299
+ accessDeniedDetail: 'AccessDeniedDetail',
2300
+ code: 'Code',
2301
+ listTemplate: 'ListTemplate',
2302
+ message: 'Message',
2303
+ requestId: 'RequestId',
2304
+ total: 'Total',
2305
+ };
2306
+ }
2307
+
2308
+ static types(): { [key: string]: any } {
2309
+ return {
2310
+ accessDeniedDetail: 'string',
2311
+ code: 'string',
2312
+ listTemplate: { 'type': 'array', 'itemType': ListChatappTemplateResponseBodyListTemplate },
2313
+ message: 'string',
2314
+ requestId: 'string',
2315
+ total: 'number',
2316
+ };
2317
+ }
2318
+
2319
+ constructor(map?: { [key: string]: any }) {
2320
+ super(map);
2321
+ }
2322
+ }
2323
+
2324
+ export class ListChatappTemplateResponse extends $tea.Model {
2325
+ headers: { [key: string]: string };
2326
+ statusCode: number;
2327
+ body: ListChatappTemplateResponseBody;
2328
+ static names(): { [key: string]: string } {
2329
+ return {
2330
+ headers: 'headers',
2331
+ statusCode: 'statusCode',
2332
+ body: 'body',
2333
+ };
2334
+ }
2335
+
2336
+ static types(): { [key: string]: any } {
2337
+ return {
2338
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2339
+ statusCode: 'number',
2340
+ body: ListChatappTemplateResponseBody,
2341
+ };
2342
+ }
2343
+
2344
+ constructor(map?: { [key: string]: any }) {
2345
+ super(map);
2346
+ }
2347
+ }
2348
+
2349
+ export class ListProductRequest extends $tea.Model {
2350
+ after?: string;
2351
+ before?: string;
2352
+ catalogId?: string;
2353
+ custSpaceId?: string;
2354
+ fields?: string;
2355
+ limit?: number;
2356
+ ownerId?: number;
2357
+ resourceOwnerAccount?: string;
2358
+ resourceOwnerId?: number;
2359
+ wabaId?: string;
2360
+ static names(): { [key: string]: string } {
2361
+ return {
2362
+ after: 'After',
2363
+ before: 'Before',
2364
+ catalogId: 'CatalogId',
2365
+ custSpaceId: 'CustSpaceId',
2366
+ fields: 'Fields',
2367
+ limit: 'Limit',
2368
+ ownerId: 'OwnerId',
2369
+ resourceOwnerAccount: 'ResourceOwnerAccount',
2370
+ resourceOwnerId: 'ResourceOwnerId',
2371
+ wabaId: 'WabaId',
2372
+ };
2373
+ }
2374
+
2375
+ static types(): { [key: string]: any } {
2376
+ return {
2377
+ after: 'string',
2378
+ before: 'string',
2379
+ catalogId: 'string',
2380
+ custSpaceId: 'string',
2381
+ fields: 'string',
2382
+ limit: 'number',
2383
+ ownerId: 'number',
2384
+ resourceOwnerAccount: 'string',
2385
+ resourceOwnerId: 'number',
2386
+ wabaId: 'string',
2387
+ };
2388
+ }
2389
+
2390
+ constructor(map?: { [key: string]: any }) {
2391
+ super(map);
2392
+ }
2393
+ }
2394
+
2395
+ export class ListProductResponseBody extends $tea.Model {
2396
+ accessDeniedDetail?: string;
2397
+ code?: string;
2398
+ message?: string;
2399
+ model?: ListProductResponseBodyModel;
2400
+ requestId?: string;
2401
+ success?: boolean;
2402
+ static names(): { [key: string]: string } {
2403
+ return {
2404
+ accessDeniedDetail: 'AccessDeniedDetail',
2405
+ code: 'Code',
2406
+ message: 'Message',
2407
+ model: 'Model',
2408
+ requestId: 'RequestId',
2409
+ success: 'Success',
2410
+ };
2411
+ }
2412
+
2413
+ static types(): { [key: string]: any } {
2414
+ return {
2415
+ accessDeniedDetail: 'string',
2416
+ code: 'string',
2417
+ message: 'string',
2418
+ model: ListProductResponseBodyModel,
2419
+ requestId: 'string',
2420
+ success: 'boolean',
2421
+ };
2422
+ }
2423
+
2424
+ constructor(map?: { [key: string]: any }) {
2425
+ super(map);
2426
+ }
2427
+ }
2428
+
2429
+ export class ListProductResponse extends $tea.Model {
2430
+ headers: { [key: string]: string };
2431
+ statusCode: number;
2432
+ body: ListProductResponseBody;
2433
+ static names(): { [key: string]: string } {
2434
+ return {
2435
+ headers: 'headers',
2436
+ statusCode: 'statusCode',
2437
+ body: 'body',
2438
+ };
2439
+ }
2440
+
2441
+ static types(): { [key: string]: any } {
2442
+ return {
2443
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2444
+ statusCode: 'number',
2445
+ body: ListProductResponseBody,
2446
+ };
2447
+ }
2448
+
2449
+ constructor(map?: { [key: string]: any }) {
2450
+ super(map);
2451
+ }
2452
+ }
2453
+
2454
+ export class ListProductCatalogRequest extends $tea.Model {
2455
+ after?: string;
2456
+ before?: string;
2457
+ businessId?: number;
1742
2458
  custSpaceId?: string;
1743
- custWabaId?: string;
1744
- isvCode?: string;
1745
- language?: string;
1746
- name?: string;
1747
- pageShrink?: string;
1748
- templateType?: string;
2459
+ fields?: string;
2460
+ limit?: number;
2461
+ ownerId?: number;
2462
+ resourceOwnerAccount?: string;
2463
+ resourceOwnerId?: number;
1749
2464
  static names(): { [key: string]: string } {
1750
2465
  return {
1751
- auditStatus: 'AuditStatus',
2466
+ after: 'After',
2467
+ before: 'Before',
2468
+ businessId: 'BusinessId',
1752
2469
  custSpaceId: 'CustSpaceId',
1753
- custWabaId: 'CustWabaId',
1754
- isvCode: 'IsvCode',
1755
- language: 'Language',
1756
- name: 'Name',
1757
- pageShrink: 'Page',
1758
- templateType: 'TemplateType',
2470
+ fields: 'Fields',
2471
+ limit: 'Limit',
2472
+ ownerId: 'OwnerId',
2473
+ resourceOwnerAccount: 'ResourceOwnerAccount',
2474
+ resourceOwnerId: 'ResourceOwnerId',
1759
2475
  };
1760
2476
  }
1761
2477
 
1762
2478
  static types(): { [key: string]: any } {
1763
2479
  return {
1764
- auditStatus: 'string',
2480
+ after: 'string',
2481
+ before: 'string',
2482
+ businessId: 'number',
1765
2483
  custSpaceId: 'string',
1766
- custWabaId: 'string',
1767
- isvCode: 'string',
1768
- language: 'string',
1769
- name: 'string',
1770
- pageShrink: 'string',
1771
- templateType: 'string',
2484
+ fields: 'string',
2485
+ limit: 'number',
2486
+ ownerId: 'number',
2487
+ resourceOwnerAccount: 'string',
2488
+ resourceOwnerId: 'number',
1772
2489
  };
1773
2490
  }
1774
2491
 
@@ -1777,21 +2494,21 @@ export class ListChatappTemplateShrinkRequest extends $tea.Model {
1777
2494
  }
1778
2495
  }
1779
2496
 
1780
- export class ListChatappTemplateResponseBody extends $tea.Model {
2497
+ export class ListProductCatalogResponseBody extends $tea.Model {
1781
2498
  accessDeniedDetail?: string;
1782
2499
  code?: string;
1783
- listTemplate?: ListChatappTemplateResponseBodyListTemplate[];
1784
2500
  message?: string;
2501
+ model?: ListProductCatalogResponseBodyModel;
1785
2502
  requestId?: string;
1786
- total?: number;
2503
+ success?: boolean;
1787
2504
  static names(): { [key: string]: string } {
1788
2505
  return {
1789
2506
  accessDeniedDetail: 'AccessDeniedDetail',
1790
2507
  code: 'Code',
1791
- listTemplate: 'ListTemplate',
1792
2508
  message: 'Message',
2509
+ model: 'Model',
1793
2510
  requestId: 'RequestId',
1794
- total: 'Total',
2511
+ success: 'Success',
1795
2512
  };
1796
2513
  }
1797
2514
 
@@ -1799,10 +2516,10 @@ export class ListChatappTemplateResponseBody extends $tea.Model {
1799
2516
  return {
1800
2517
  accessDeniedDetail: 'string',
1801
2518
  code: 'string',
1802
- listTemplate: { 'type': 'array', 'itemType': ListChatappTemplateResponseBodyListTemplate },
1803
2519
  message: 'string',
2520
+ model: ListProductCatalogResponseBodyModel,
1804
2521
  requestId: 'string',
1805
- total: 'number',
2522
+ success: 'boolean',
1806
2523
  };
1807
2524
  }
1808
2525
 
@@ -1811,10 +2528,10 @@ export class ListChatappTemplateResponseBody extends $tea.Model {
1811
2528
  }
1812
2529
  }
1813
2530
 
1814
- export class ListChatappTemplateResponse extends $tea.Model {
2531
+ export class ListProductCatalogResponse extends $tea.Model {
1815
2532
  headers: { [key: string]: string };
1816
2533
  statusCode: number;
1817
- body: ListChatappTemplateResponseBody;
2534
+ body: ListProductCatalogResponseBody;
1818
2535
  static names(): { [key: string]: string } {
1819
2536
  return {
1820
2537
  headers: 'headers',
@@ -1827,7 +2544,7 @@ export class ListChatappTemplateResponse extends $tea.Model {
1827
2544
  return {
1828
2545
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1829
2546
  statusCode: 'number',
1830
- body: ListChatappTemplateResponseBody,
2547
+ body: ListProductCatalogResponseBody,
1831
2548
  };
1832
2549
  }
1833
2550
 
@@ -3633,6 +4350,40 @@ export class CreateChatappTemplateResponseBodyData extends $tea.Model {
3633
4350
  }
3634
4351
  }
3635
4352
 
4353
+ export class GetChatappPhoneNumberMetricResponseBodyData extends $tea.Model {
4354
+ deliveredCount?: number;
4355
+ end?: number;
4356
+ granularity?: string;
4357
+ phoneNumber?: string;
4358
+ sentCount?: number;
4359
+ start?: number;
4360
+ static names(): { [key: string]: string } {
4361
+ return {
4362
+ deliveredCount: 'DeliveredCount',
4363
+ end: 'End',
4364
+ granularity: 'Granularity',
4365
+ phoneNumber: 'PhoneNumber',
4366
+ sentCount: 'SentCount',
4367
+ start: 'Start',
4368
+ };
4369
+ }
4370
+
4371
+ static types(): { [key: string]: any } {
4372
+ return {
4373
+ deliveredCount: 'number',
4374
+ end: 'number',
4375
+ granularity: 'string',
4376
+ phoneNumber: 'string',
4377
+ sentCount: 'number',
4378
+ start: 'number',
4379
+ };
4380
+ }
4381
+
4382
+ constructor(map?: { [key: string]: any }) {
4383
+ super(map);
4384
+ }
4385
+ }
4386
+
3636
4387
  export class GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs extends $tea.Model {
3637
4388
  action?: string;
3638
4389
  intentCode?: string;
@@ -3783,6 +4534,7 @@ export class GetChatappTemplateDetailResponseBodyData extends $tea.Model {
3783
4534
  messageSendTtlSeconds?: number;
3784
4535
  name?: string;
3785
4536
  qualityScore?: string;
4537
+ reason?: string;
3786
4538
  templateCode?: string;
3787
4539
  templateType?: string;
3788
4540
  static names(): { [key: string]: string } {
@@ -3795,6 +4547,7 @@ export class GetChatappTemplateDetailResponseBodyData extends $tea.Model {
3795
4547
  messageSendTtlSeconds: 'MessageSendTtlSeconds',
3796
4548
  name: 'Name',
3797
4549
  qualityScore: 'QualityScore',
4550
+ reason: 'Reason',
3798
4551
  templateCode: 'TemplateCode',
3799
4552
  templateType: 'TemplateType',
3800
4553
  };
@@ -3810,6 +4563,7 @@ export class GetChatappTemplateDetailResponseBodyData extends $tea.Model {
3810
4563
  messageSendTtlSeconds: 'number',
3811
4564
  name: 'string',
3812
4565
  qualityScore: 'string',
4566
+ reason: 'string',
3813
4567
  templateCode: 'string',
3814
4568
  templateType: 'string',
3815
4569
  };
@@ -3820,6 +4574,71 @@ export class GetChatappTemplateDetailResponseBodyData extends $tea.Model {
3820
4574
  }
3821
4575
  }
3822
4576
 
4577
+ export class GetChatappTemplateMetricResponseBodyDataCliented extends $tea.Model {
4578
+ buttonContent?: string;
4579
+ count?: number;
4580
+ type?: string;
4581
+ static names(): { [key: string]: string } {
4582
+ return {
4583
+ buttonContent: 'ButtonContent',
4584
+ count: 'Count',
4585
+ type: 'Type',
4586
+ };
4587
+ }
4588
+
4589
+ static types(): { [key: string]: any } {
4590
+ return {
4591
+ buttonContent: 'string',
4592
+ count: 'number',
4593
+ type: 'string',
4594
+ };
4595
+ }
4596
+
4597
+ constructor(map?: { [key: string]: any }) {
4598
+ super(map);
4599
+ }
4600
+ }
4601
+
4602
+ export class GetChatappTemplateMetricResponseBodyData extends $tea.Model {
4603
+ cliented?: GetChatappTemplateMetricResponseBodyDataCliented[];
4604
+ deliveredCount?: number;
4605
+ end?: number;
4606
+ language?: string;
4607
+ readCount?: number;
4608
+ sentCount?: number;
4609
+ start?: number;
4610
+ templateCode?: string;
4611
+ static names(): { [key: string]: string } {
4612
+ return {
4613
+ cliented: 'Cliented',
4614
+ deliveredCount: 'DeliveredCount',
4615
+ end: 'End',
4616
+ language: 'Language',
4617
+ readCount: 'ReadCount',
4618
+ sentCount: 'SentCount',
4619
+ start: 'Start',
4620
+ templateCode: 'TemplateCode',
4621
+ };
4622
+ }
4623
+
4624
+ static types(): { [key: string]: any } {
4625
+ return {
4626
+ cliented: { 'type': 'array', 'itemType': GetChatappTemplateMetricResponseBodyDataCliented },
4627
+ deliveredCount: 'number',
4628
+ end: 'number',
4629
+ language: 'string',
4630
+ readCount: 'number',
4631
+ sentCount: 'number',
4632
+ start: 'number',
4633
+ templateCode: 'string',
4634
+ };
4635
+ }
4636
+
4637
+ constructor(map?: { [key: string]: any }) {
4638
+ super(map);
4639
+ }
4640
+ }
4641
+
3823
4642
  export class GetChatappUploadAuthorizationResponseBodyData extends $tea.Model {
3824
4643
  accessKeyId?: string;
3825
4644
  accessKeySecret?: string;
@@ -3952,6 +4771,7 @@ export class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
3952
4771
  auditStatus?: string;
3953
4772
  category?: string;
3954
4773
  language?: string;
4774
+ reason?: string;
3955
4775
  templateCode?: string;
3956
4776
  templateName?: string;
3957
4777
  templateType?: string;
@@ -3960,6 +4780,7 @@ export class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
3960
4780
  auditStatus: 'AuditStatus',
3961
4781
  category: 'Category',
3962
4782
  language: 'Language',
4783
+ reason: 'Reason',
3963
4784
  templateCode: 'TemplateCode',
3964
4785
  templateName: 'TemplateName',
3965
4786
  templateType: 'TemplateType',
@@ -3971,6 +4792,7 @@ export class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
3971
4792
  auditStatus: 'string',
3972
4793
  category: 'string',
3973
4794
  language: 'string',
4795
+ reason: 'string',
3974
4796
  templateCode: 'string',
3975
4797
  templateName: 'string',
3976
4798
  templateType: 'string',
@@ -3982,6 +4804,132 @@ export class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
3982
4804
  }
3983
4805
  }
3984
4806
 
4807
+ export class ListProductResponseBodyModelPagingCursors extends $tea.Model {
4808
+ after?: string;
4809
+ before?: string;
4810
+ static names(): { [key: string]: string } {
4811
+ return {
4812
+ after: 'After',
4813
+ before: 'Before',
4814
+ };
4815
+ }
4816
+
4817
+ static types(): { [key: string]: any } {
4818
+ return {
4819
+ after: 'string',
4820
+ before: 'string',
4821
+ };
4822
+ }
4823
+
4824
+ constructor(map?: { [key: string]: any }) {
4825
+ super(map);
4826
+ }
4827
+ }
4828
+
4829
+ export class ListProductResponseBodyModelPaging extends $tea.Model {
4830
+ cursors?: ListProductResponseBodyModelPagingCursors;
4831
+ static names(): { [key: string]: string } {
4832
+ return {
4833
+ cursors: 'Cursors',
4834
+ };
4835
+ }
4836
+
4837
+ static types(): { [key: string]: any } {
4838
+ return {
4839
+ cursors: ListProductResponseBodyModelPagingCursors,
4840
+ };
4841
+ }
4842
+
4843
+ constructor(map?: { [key: string]: any }) {
4844
+ super(map);
4845
+ }
4846
+ }
4847
+
4848
+ export class ListProductResponseBodyModel extends $tea.Model {
4849
+ data?: { [key: string]: any }[];
4850
+ paging?: ListProductResponseBodyModelPaging;
4851
+ static names(): { [key: string]: string } {
4852
+ return {
4853
+ data: 'Data',
4854
+ paging: 'Paging',
4855
+ };
4856
+ }
4857
+
4858
+ static types(): { [key: string]: any } {
4859
+ return {
4860
+ data: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
4861
+ paging: ListProductResponseBodyModelPaging,
4862
+ };
4863
+ }
4864
+
4865
+ constructor(map?: { [key: string]: any }) {
4866
+ super(map);
4867
+ }
4868
+ }
4869
+
4870
+ export class ListProductCatalogResponseBodyModelPagingCursors extends $tea.Model {
4871
+ after?: string;
4872
+ before?: string;
4873
+ static names(): { [key: string]: string } {
4874
+ return {
4875
+ after: 'After',
4876
+ before: 'Before',
4877
+ };
4878
+ }
4879
+
4880
+ static types(): { [key: string]: any } {
4881
+ return {
4882
+ after: 'string',
4883
+ before: 'string',
4884
+ };
4885
+ }
4886
+
4887
+ constructor(map?: { [key: string]: any }) {
4888
+ super(map);
4889
+ }
4890
+ }
4891
+
4892
+ export class ListProductCatalogResponseBodyModelPaging extends $tea.Model {
4893
+ cursors?: ListProductCatalogResponseBodyModelPagingCursors;
4894
+ static names(): { [key: string]: string } {
4895
+ return {
4896
+ cursors: 'Cursors',
4897
+ };
4898
+ }
4899
+
4900
+ static types(): { [key: string]: any } {
4901
+ return {
4902
+ cursors: ListProductCatalogResponseBodyModelPagingCursors,
4903
+ };
4904
+ }
4905
+
4906
+ constructor(map?: { [key: string]: any }) {
4907
+ super(map);
4908
+ }
4909
+ }
4910
+
4911
+ export class ListProductCatalogResponseBodyModel extends $tea.Model {
4912
+ data?: { [key: string]: any }[];
4913
+ paging?: ListProductCatalogResponseBodyModelPaging;
4914
+ static names(): { [key: string]: string } {
4915
+ return {
4916
+ data: 'Data',
4917
+ paging: 'Paging',
4918
+ };
4919
+ }
4920
+
4921
+ static types(): { [key: string]: any } {
4922
+ return {
4923
+ data: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
4924
+ paging: ListProductCatalogResponseBodyModelPaging,
4925
+ };
4926
+ }
4927
+
4928
+ constructor(map?: { [key: string]: any }) {
4929
+ super(map);
4930
+ }
4931
+ }
4932
+
3985
4933
  export class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
3986
4934
  autofillText?: string;
3987
4935
  isOptOut?: boolean;
@@ -4421,6 +5369,51 @@ export default class Client extends OpenApi {
4421
5369
  return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
4422
5370
  }
4423
5371
 
5372
+ async addChatappPhoneNumberWithOptions(request: AddChatappPhoneNumberRequest, runtime: $Util.RuntimeOptions): Promise<AddChatappPhoneNumberResponse> {
5373
+ Util.validateModel(request);
5374
+ let body : {[key: string ]: any} = { };
5375
+ if (!Util.isUnset(request.cc)) {
5376
+ body["Cc"] = request.cc;
5377
+ }
5378
+
5379
+ if (!Util.isUnset(request.custSpaceId)) {
5380
+ body["CustSpaceId"] = request.custSpaceId;
5381
+ }
5382
+
5383
+ if (!Util.isUnset(request.phoneNumber)) {
5384
+ body["PhoneNumber"] = request.phoneNumber;
5385
+ }
5386
+
5387
+ if (!Util.isUnset(request.preValidateId)) {
5388
+ body["PreValidateId"] = request.preValidateId;
5389
+ }
5390
+
5391
+ if (!Util.isUnset(request.verifiedName)) {
5392
+ body["VerifiedName"] = request.verifiedName;
5393
+ }
5394
+
5395
+ let req = new $OpenApi.OpenApiRequest({
5396
+ body: OpenApiUtil.parseToMap(body),
5397
+ });
5398
+ let params = new $OpenApi.Params({
5399
+ action: "AddChatappPhoneNumber",
5400
+ version: "2020-06-06",
5401
+ protocol: "HTTPS",
5402
+ pathname: "/",
5403
+ method: "POST",
5404
+ authType: "AK",
5405
+ style: "RPC",
5406
+ reqBodyType: "formData",
5407
+ bodyType: "json",
5408
+ });
5409
+ return $tea.cast<AddChatappPhoneNumberResponse>(await this.callApi(params, req, runtime), new AddChatappPhoneNumberResponse({}));
5410
+ }
5411
+
5412
+ async addChatappPhoneNumber(request: AddChatappPhoneNumberRequest): Promise<AddChatappPhoneNumberResponse> {
5413
+ let runtime = new $Util.RuntimeOptions({ });
5414
+ return await this.addChatappPhoneNumberWithOptions(request, runtime);
5415
+ }
5416
+
4424
5417
  /**
4425
5418
  * You can call this operation up to 100 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
4426
5419
  *
@@ -4724,24 +5717,63 @@ export default class Client extends OpenApi {
4724
5717
  */
4725
5718
  async chatappMigrationVerifiedWithOptions(request: ChatappMigrationVerifiedRequest, runtime: $Util.RuntimeOptions): Promise<ChatappMigrationVerifiedResponse> {
4726
5719
  Util.validateModel(request);
4727
- let query = { };
5720
+ let query = { };
5721
+ if (!Util.isUnset(request.custSpaceId)) {
5722
+ query["CustSpaceId"] = request.custSpaceId;
5723
+ }
5724
+
5725
+ if (!Util.isUnset(request.phoneNumber)) {
5726
+ query["PhoneNumber"] = request.phoneNumber;
5727
+ }
5728
+
5729
+ if (!Util.isUnset(request.verifyCode)) {
5730
+ query["VerifyCode"] = request.verifyCode;
5731
+ }
5732
+
5733
+ let req = new $OpenApi.OpenApiRequest({
5734
+ query: OpenApiUtil.query(query),
5735
+ });
5736
+ let params = new $OpenApi.Params({
5737
+ action: "ChatappMigrationVerified",
5738
+ version: "2020-06-06",
5739
+ protocol: "HTTPS",
5740
+ pathname: "/",
5741
+ method: "POST",
5742
+ authType: "AK",
5743
+ style: "RPC",
5744
+ reqBodyType: "formData",
5745
+ bodyType: "json",
5746
+ });
5747
+ return $tea.cast<ChatappMigrationVerifiedResponse>(await this.callApi(params, req, runtime), new ChatappMigrationVerifiedResponse({}));
5748
+ }
5749
+
5750
+ /**
5751
+ * You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
5752
+ *
5753
+ * @param request ChatappMigrationVerifiedRequest
5754
+ * @return ChatappMigrationVerifiedResponse
5755
+ */
5756
+ async chatappMigrationVerified(request: ChatappMigrationVerifiedRequest): Promise<ChatappMigrationVerifiedResponse> {
5757
+ let runtime = new $Util.RuntimeOptions({ });
5758
+ return await this.chatappMigrationVerifiedWithOptions(request, runtime);
5759
+ }
5760
+
5761
+ async chatappPhoneNumberDeregisterWithOptions(request: ChatappPhoneNumberDeregisterRequest, runtime: $Util.RuntimeOptions): Promise<ChatappPhoneNumberDeregisterResponse> {
5762
+ Util.validateModel(request);
5763
+ let body : {[key: string ]: any} = { };
4728
5764
  if (!Util.isUnset(request.custSpaceId)) {
4729
- query["CustSpaceId"] = request.custSpaceId;
5765
+ body["CustSpaceId"] = request.custSpaceId;
4730
5766
  }
4731
5767
 
4732
5768
  if (!Util.isUnset(request.phoneNumber)) {
4733
- query["PhoneNumber"] = request.phoneNumber;
4734
- }
4735
-
4736
- if (!Util.isUnset(request.verifyCode)) {
4737
- query["VerifyCode"] = request.verifyCode;
5769
+ body["PhoneNumber"] = request.phoneNumber;
4738
5770
  }
4739
5771
 
4740
5772
  let req = new $OpenApi.OpenApiRequest({
4741
- query: OpenApiUtil.query(query),
5773
+ body: OpenApiUtil.parseToMap(body),
4742
5774
  });
4743
5775
  let params = new $OpenApi.Params({
4744
- action: "ChatappMigrationVerified",
5776
+ action: "ChatappPhoneNumberDeregister",
4745
5777
  version: "2020-06-06",
4746
5778
  protocol: "HTTPS",
4747
5779
  pathname: "/",
@@ -4751,18 +5783,12 @@ export default class Client extends OpenApi {
4751
5783
  reqBodyType: "formData",
4752
5784
  bodyType: "json",
4753
5785
  });
4754
- return $tea.cast<ChatappMigrationVerifiedResponse>(await this.callApi(params, req, runtime), new ChatappMigrationVerifiedResponse({}));
5786
+ return $tea.cast<ChatappPhoneNumberDeregisterResponse>(await this.callApi(params, req, runtime), new ChatappPhoneNumberDeregisterResponse({}));
4755
5787
  }
4756
5788
 
4757
- /**
4758
- * You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
4759
- *
4760
- * @param request ChatappMigrationVerifiedRequest
4761
- * @return ChatappMigrationVerifiedResponse
4762
- */
4763
- async chatappMigrationVerified(request: ChatappMigrationVerifiedRequest): Promise<ChatappMigrationVerifiedResponse> {
5789
+ async chatappPhoneNumberDeregister(request: ChatappPhoneNumberDeregisterRequest): Promise<ChatappPhoneNumberDeregisterResponse> {
4764
5790
  let runtime = new $Util.RuntimeOptions({ });
4765
- return await this.chatappMigrationVerifiedWithOptions(request, runtime);
5791
+ return await this.chatappPhoneNumberDeregisterWithOptions(request, runtime);
4766
5792
  }
4767
5793
 
4768
5794
  /**
@@ -5101,8 +6127,91 @@ export default class Client extends OpenApi {
5101
6127
  return await this.deleteChatappTemplateWithOptions(request, runtime);
5102
6128
  }
5103
6129
 
6130
+ async enableWhatsappROIMetricWithOptions(request: EnableWhatsappROIMetricRequest, runtime: $Util.RuntimeOptions): Promise<EnableWhatsappROIMetricResponse> {
6131
+ Util.validateModel(request);
6132
+ let query = { };
6133
+ if (!Util.isUnset(request.custSpaceId)) {
6134
+ query["CustSpaceId"] = request.custSpaceId;
6135
+ }
6136
+
6137
+ if (!Util.isUnset(request.isvCode)) {
6138
+ query["IsvCode"] = request.isvCode;
6139
+ }
6140
+
6141
+ let req = new $OpenApi.OpenApiRequest({
6142
+ query: OpenApiUtil.query(query),
6143
+ });
6144
+ let params = new $OpenApi.Params({
6145
+ action: "EnableWhatsappROIMetric",
6146
+ version: "2020-06-06",
6147
+ protocol: "HTTPS",
6148
+ pathname: "/",
6149
+ method: "POST",
6150
+ authType: "AK",
6151
+ style: "RPC",
6152
+ reqBodyType: "formData",
6153
+ bodyType: "json",
6154
+ });
6155
+ return $tea.cast<EnableWhatsappROIMetricResponse>(await this.callApi(params, req, runtime), new EnableWhatsappROIMetricResponse({}));
6156
+ }
6157
+
6158
+ async enableWhatsappROIMetric(request: EnableWhatsappROIMetricRequest): Promise<EnableWhatsappROIMetricResponse> {
6159
+ let runtime = new $Util.RuntimeOptions({ });
6160
+ return await this.enableWhatsappROIMetricWithOptions(request, runtime);
6161
+ }
6162
+
6163
+ async getChatappPhoneNumberMetricWithOptions(request: GetChatappPhoneNumberMetricRequest, runtime: $Util.RuntimeOptions): Promise<GetChatappPhoneNumberMetricResponse> {
6164
+ Util.validateModel(request);
6165
+ let query = { };
6166
+ if (!Util.isUnset(request.custSpaceId)) {
6167
+ query["CustSpaceId"] = request.custSpaceId;
6168
+ }
6169
+
6170
+ if (!Util.isUnset(request.end)) {
6171
+ query["End"] = request.end;
6172
+ }
6173
+
6174
+ if (!Util.isUnset(request.granularity)) {
6175
+ query["Granularity"] = request.granularity;
6176
+ }
6177
+
6178
+ if (!Util.isUnset(request.isvCode)) {
6179
+ query["IsvCode"] = request.isvCode;
6180
+ }
6181
+
6182
+ if (!Util.isUnset(request.phoneNumber)) {
6183
+ query["PhoneNumber"] = request.phoneNumber;
6184
+ }
6185
+
6186
+ if (!Util.isUnset(request.start)) {
6187
+ query["Start"] = request.start;
6188
+ }
6189
+
6190
+ let req = new $OpenApi.OpenApiRequest({
6191
+ query: OpenApiUtil.query(query),
6192
+ });
6193
+ let params = new $OpenApi.Params({
6194
+ action: "GetChatappPhoneNumberMetric",
6195
+ version: "2020-06-06",
6196
+ protocol: "HTTPS",
6197
+ pathname: "/",
6198
+ method: "POST",
6199
+ authType: "AK",
6200
+ style: "RPC",
6201
+ reqBodyType: "formData",
6202
+ bodyType: "json",
6203
+ });
6204
+ return $tea.cast<GetChatappPhoneNumberMetricResponse>(await this.callApi(params, req, runtime), new GetChatappPhoneNumberMetricResponse({}));
6205
+ }
6206
+
6207
+ async getChatappPhoneNumberMetric(request: GetChatappPhoneNumberMetricRequest): Promise<GetChatappPhoneNumberMetricResponse> {
6208
+ let runtime = new $Util.RuntimeOptions({ });
6209
+ return await this.getChatappPhoneNumberMetricWithOptions(request, runtime);
6210
+ }
6211
+
5104
6212
  /**
5105
- * The type of the file attached in the Viber message template.
6213
+ * ### QPS limit
6214
+ * You can call this API operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
5106
6215
  *
5107
6216
  * @param request GetChatappTemplateDetailRequest
5108
6217
  * @param runtime runtime options for this request RuntimeOptions
@@ -5153,7 +6262,8 @@ export default class Client extends OpenApi {
5153
6262
  }
5154
6263
 
5155
6264
  /**
5156
- * The type of the file attached in the Viber message template.
6265
+ * ### QPS limit
6266
+ * You can call this API operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
5157
6267
  *
5158
6268
  * @param request GetChatappTemplateDetailRequest
5159
6269
  * @return GetChatappTemplateDetailResponse
@@ -5163,6 +6273,63 @@ export default class Client extends OpenApi {
5163
6273
  return await this.getChatappTemplateDetailWithOptions(request, runtime);
5164
6274
  }
5165
6275
 
6276
+ async getChatappTemplateMetricWithOptions(request: GetChatappTemplateMetricRequest, runtime: $Util.RuntimeOptions): Promise<GetChatappTemplateMetricResponse> {
6277
+ Util.validateModel(request);
6278
+ let query = { };
6279
+ if (!Util.isUnset(request.custSpaceId)) {
6280
+ query["CustSpaceId"] = request.custSpaceId;
6281
+ }
6282
+
6283
+ if (!Util.isUnset(request.end)) {
6284
+ query["End"] = request.end;
6285
+ }
6286
+
6287
+ if (!Util.isUnset(request.granularity)) {
6288
+ query["Granularity"] = request.granularity;
6289
+ }
6290
+
6291
+ if (!Util.isUnset(request.isvCode)) {
6292
+ query["IsvCode"] = request.isvCode;
6293
+ }
6294
+
6295
+ if (!Util.isUnset(request.language)) {
6296
+ query["Language"] = request.language;
6297
+ }
6298
+
6299
+ if (!Util.isUnset(request.start)) {
6300
+ query["Start"] = request.start;
6301
+ }
6302
+
6303
+ if (!Util.isUnset(request.templateCode)) {
6304
+ query["TemplateCode"] = request.templateCode;
6305
+ }
6306
+
6307
+ if (!Util.isUnset(request.templateType)) {
6308
+ query["TemplateType"] = request.templateType;
6309
+ }
6310
+
6311
+ let req = new $OpenApi.OpenApiRequest({
6312
+ query: OpenApiUtil.query(query),
6313
+ });
6314
+ let params = new $OpenApi.Params({
6315
+ action: "GetChatappTemplateMetric",
6316
+ version: "2020-06-06",
6317
+ protocol: "HTTPS",
6318
+ pathname: "/",
6319
+ method: "POST",
6320
+ authType: "AK",
6321
+ style: "RPC",
6322
+ reqBodyType: "formData",
6323
+ bodyType: "json",
6324
+ });
6325
+ return $tea.cast<GetChatappTemplateMetricResponse>(await this.callApi(params, req, runtime), new GetChatappTemplateMetricResponse({}));
6326
+ }
6327
+
6328
+ async getChatappTemplateMetric(request: GetChatappTemplateMetricRequest): Promise<GetChatappTemplateMetricResponse> {
6329
+ let runtime = new $Util.RuntimeOptions({ });
6330
+ return await this.getChatappTemplateMetricWithOptions(request, runtime);
6331
+ }
6332
+
5166
6333
  /**
5167
6334
  * You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
5168
6335
  *
@@ -5392,6 +6559,51 @@ export default class Client extends OpenApi {
5392
6559
  return await this.getPreValidatePhoneIdWithOptions(request, runtime);
5393
6560
  }
5394
6561
 
6562
+ async getWhatsappConnectionCatalogWithOptions(request: GetWhatsappConnectionCatalogRequest, runtime: $Util.RuntimeOptions): Promise<GetWhatsappConnectionCatalogResponse> {
6563
+ Util.validateModel(request);
6564
+ let query = { };
6565
+ if (!Util.isUnset(request.custSpaceId)) {
6566
+ query["CustSpaceId"] = request.custSpaceId;
6567
+ }
6568
+
6569
+ if (!Util.isUnset(request.ownerId)) {
6570
+ query["OwnerId"] = request.ownerId;
6571
+ }
6572
+
6573
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
6574
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
6575
+ }
6576
+
6577
+ if (!Util.isUnset(request.resourceOwnerId)) {
6578
+ query["ResourceOwnerId"] = request.resourceOwnerId;
6579
+ }
6580
+
6581
+ if (!Util.isUnset(request.wabaId)) {
6582
+ query["WabaId"] = request.wabaId;
6583
+ }
6584
+
6585
+ let req = new $OpenApi.OpenApiRequest({
6586
+ query: OpenApiUtil.query(query),
6587
+ });
6588
+ let params = new $OpenApi.Params({
6589
+ action: "GetWhatsappConnectionCatalog",
6590
+ version: "2020-06-06",
6591
+ protocol: "HTTPS",
6592
+ pathname: "/",
6593
+ method: "POST",
6594
+ authType: "AK",
6595
+ style: "RPC",
6596
+ reqBodyType: "formData",
6597
+ bodyType: "json",
6598
+ });
6599
+ return $tea.cast<GetWhatsappConnectionCatalogResponse>(await this.callApi(params, req, runtime), new GetWhatsappConnectionCatalogResponse({}));
6600
+ }
6601
+
6602
+ async getWhatsappConnectionCatalog(request: GetWhatsappConnectionCatalogRequest): Promise<GetWhatsappConnectionCatalogResponse> {
6603
+ let runtime = new $Util.RuntimeOptions({ });
6604
+ return await this.getWhatsappConnectionCatalogWithOptions(request, runtime);
6605
+ }
6606
+
5395
6607
  /**
5396
6608
  * You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
5397
6609
  *
@@ -5512,6 +6724,132 @@ export default class Client extends OpenApi {
5512
6724
  return await this.listChatappTemplateWithOptions(request, runtime);
5513
6725
  }
5514
6726
 
6727
+ async listProductWithOptions(request: ListProductRequest, runtime: $Util.RuntimeOptions): Promise<ListProductResponse> {
6728
+ Util.validateModel(request);
6729
+ let query = { };
6730
+ if (!Util.isUnset(request.after)) {
6731
+ query["After"] = request.after;
6732
+ }
6733
+
6734
+ if (!Util.isUnset(request.before)) {
6735
+ query["Before"] = request.before;
6736
+ }
6737
+
6738
+ if (!Util.isUnset(request.catalogId)) {
6739
+ query["CatalogId"] = request.catalogId;
6740
+ }
6741
+
6742
+ if (!Util.isUnset(request.custSpaceId)) {
6743
+ query["CustSpaceId"] = request.custSpaceId;
6744
+ }
6745
+
6746
+ if (!Util.isUnset(request.fields)) {
6747
+ query["Fields"] = request.fields;
6748
+ }
6749
+
6750
+ if (!Util.isUnset(request.limit)) {
6751
+ query["Limit"] = request.limit;
6752
+ }
6753
+
6754
+ if (!Util.isUnset(request.ownerId)) {
6755
+ query["OwnerId"] = request.ownerId;
6756
+ }
6757
+
6758
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
6759
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
6760
+ }
6761
+
6762
+ if (!Util.isUnset(request.resourceOwnerId)) {
6763
+ query["ResourceOwnerId"] = request.resourceOwnerId;
6764
+ }
6765
+
6766
+ if (!Util.isUnset(request.wabaId)) {
6767
+ query["WabaId"] = request.wabaId;
6768
+ }
6769
+
6770
+ let req = new $OpenApi.OpenApiRequest({
6771
+ query: OpenApiUtil.query(query),
6772
+ });
6773
+ let params = new $OpenApi.Params({
6774
+ action: "ListProduct",
6775
+ version: "2020-06-06",
6776
+ protocol: "HTTPS",
6777
+ pathname: "/",
6778
+ method: "POST",
6779
+ authType: "AK",
6780
+ style: "RPC",
6781
+ reqBodyType: "formData",
6782
+ bodyType: "json",
6783
+ });
6784
+ return $tea.cast<ListProductResponse>(await this.callApi(params, req, runtime), new ListProductResponse({}));
6785
+ }
6786
+
6787
+ async listProduct(request: ListProductRequest): Promise<ListProductResponse> {
6788
+ let runtime = new $Util.RuntimeOptions({ });
6789
+ return await this.listProductWithOptions(request, runtime);
6790
+ }
6791
+
6792
+ async listProductCatalogWithOptions(request: ListProductCatalogRequest, runtime: $Util.RuntimeOptions): Promise<ListProductCatalogResponse> {
6793
+ Util.validateModel(request);
6794
+ let query = { };
6795
+ if (!Util.isUnset(request.after)) {
6796
+ query["After"] = request.after;
6797
+ }
6798
+
6799
+ if (!Util.isUnset(request.before)) {
6800
+ query["Before"] = request.before;
6801
+ }
6802
+
6803
+ if (!Util.isUnset(request.businessId)) {
6804
+ query["BusinessId"] = request.businessId;
6805
+ }
6806
+
6807
+ if (!Util.isUnset(request.custSpaceId)) {
6808
+ query["CustSpaceId"] = request.custSpaceId;
6809
+ }
6810
+
6811
+ if (!Util.isUnset(request.fields)) {
6812
+ query["Fields"] = request.fields;
6813
+ }
6814
+
6815
+ if (!Util.isUnset(request.limit)) {
6816
+ query["Limit"] = request.limit;
6817
+ }
6818
+
6819
+ if (!Util.isUnset(request.ownerId)) {
6820
+ query["OwnerId"] = request.ownerId;
6821
+ }
6822
+
6823
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
6824
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
6825
+ }
6826
+
6827
+ if (!Util.isUnset(request.resourceOwnerId)) {
6828
+ query["ResourceOwnerId"] = request.resourceOwnerId;
6829
+ }
6830
+
6831
+ let req = new $OpenApi.OpenApiRequest({
6832
+ query: OpenApiUtil.query(query),
6833
+ });
6834
+ let params = new $OpenApi.Params({
6835
+ action: "ListProductCatalog",
6836
+ version: "2020-06-06",
6837
+ protocol: "HTTPS",
6838
+ pathname: "/",
6839
+ method: "POST",
6840
+ authType: "AK",
6841
+ style: "RPC",
6842
+ reqBodyType: "formData",
6843
+ bodyType: "json",
6844
+ });
6845
+ return $tea.cast<ListProductCatalogResponse>(await this.callApi(params, req, runtime), new ListProductCatalogResponse({}));
6846
+ }
6847
+
6848
+ async listProductCatalog(request: ListProductCatalogRequest): Promise<ListProductCatalogResponse> {
6849
+ let runtime = new $Util.RuntimeOptions({ });
6850
+ return await this.listProductCatalogWithOptions(request, runtime);
6851
+ }
6852
+
5515
6853
  /**
5516
6854
  * The name of the message template.
5517
6855
  *