@alicloud/cams20200606 1.1.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 } {
@@ -1740,35 +2250,242 @@ export class ListChatappTemplateRequest extends $tea.Model {
1740
2250
  export class ListChatappTemplateShrinkRequest extends $tea.Model {
1741
2251
  auditStatus?: string;
1742
2252
  custSpaceId?: string;
1743
- custWabaId?: string;
1744
- isvCode?: string;
1745
- language?: string;
1746
- name?: string;
1747
- pageShrink?: string;
1748
- templateType?: 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;
2458
+ custSpaceId?: 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
 
@@ -2436,6 +3153,7 @@ export class SendChatappMassMessageRequest extends $tea.Model {
2436
3153
  fallBackContent?: string;
2437
3154
  fallBackDuration?: number;
2438
3155
  fallBackId?: string;
3156
+ fallBackRule?: string;
2439
3157
  from?: string;
2440
3158
  isvCode?: string;
2441
3159
  label?: string;
@@ -2453,6 +3171,7 @@ export class SendChatappMassMessageRequest extends $tea.Model {
2453
3171
  fallBackContent: 'FallBackContent',
2454
3172
  fallBackDuration: 'FallBackDuration',
2455
3173
  fallBackId: 'FallBackId',
3174
+ fallBackRule: 'FallBackRule',
2456
3175
  from: 'From',
2457
3176
  isvCode: 'IsvCode',
2458
3177
  label: 'Label',
@@ -2473,6 +3192,7 @@ export class SendChatappMassMessageRequest extends $tea.Model {
2473
3192
  fallBackContent: 'string',
2474
3193
  fallBackDuration: 'number',
2475
3194
  fallBackId: 'string',
3195
+ fallBackRule: 'string',
2476
3196
  from: 'string',
2477
3197
  isvCode: 'string',
2478
3198
  label: 'string',
@@ -2497,6 +3217,7 @@ export class SendChatappMassMessageShrinkRequest extends $tea.Model {
2497
3217
  fallBackContent?: string;
2498
3218
  fallBackDuration?: number;
2499
3219
  fallBackId?: string;
3220
+ fallBackRule?: string;
2500
3221
  from?: string;
2501
3222
  isvCode?: string;
2502
3223
  label?: string;
@@ -2514,6 +3235,7 @@ export class SendChatappMassMessageShrinkRequest extends $tea.Model {
2514
3235
  fallBackContent: 'FallBackContent',
2515
3236
  fallBackDuration: 'FallBackDuration',
2516
3237
  fallBackId: 'FallBackId',
3238
+ fallBackRule: 'FallBackRule',
2517
3239
  from: 'From',
2518
3240
  isvCode: 'IsvCode',
2519
3241
  label: 'Label',
@@ -2534,6 +3256,7 @@ export class SendChatappMassMessageShrinkRequest extends $tea.Model {
2534
3256
  fallBackContent: 'string',
2535
3257
  fallBackDuration: 'number',
2536
3258
  fallBackId: 'string',
3259
+ fallBackRule: 'string',
2537
3260
  from: 'string',
2538
3261
  isvCode: 'string',
2539
3262
  label: 'string',
@@ -2616,6 +3339,7 @@ export class SendChatappMessageRequest extends $tea.Model {
2616
3339
  fallBackContent?: string;
2617
3340
  fallBackDuration?: number;
2618
3341
  fallBackId?: string;
3342
+ fallBackRule?: string;
2619
3343
  from?: string;
2620
3344
  isvCode?: string;
2621
3345
  label?: string;
@@ -2641,6 +3365,7 @@ export class SendChatappMessageRequest extends $tea.Model {
2641
3365
  fallBackContent: 'FallBackContent',
2642
3366
  fallBackDuration: 'FallBackDuration',
2643
3367
  fallBackId: 'FallBackId',
3368
+ fallBackRule: 'FallBackRule',
2644
3369
  from: 'From',
2645
3370
  isvCode: 'IsvCode',
2646
3371
  label: 'Label',
@@ -2669,6 +3394,7 @@ export class SendChatappMessageRequest extends $tea.Model {
2669
3394
  fallBackContent: 'string',
2670
3395
  fallBackDuration: 'number',
2671
3396
  fallBackId: 'string',
3397
+ fallBackRule: 'string',
2672
3398
  from: 'string',
2673
3399
  isvCode: 'string',
2674
3400
  label: 'string',
@@ -2701,6 +3427,7 @@ export class SendChatappMessageShrinkRequest extends $tea.Model {
2701
3427
  fallBackContent?: string;
2702
3428
  fallBackDuration?: number;
2703
3429
  fallBackId?: string;
3430
+ fallBackRule?: string;
2704
3431
  from?: string;
2705
3432
  isvCode?: string;
2706
3433
  label?: string;
@@ -2726,6 +3453,7 @@ export class SendChatappMessageShrinkRequest extends $tea.Model {
2726
3453
  fallBackContent: 'FallBackContent',
2727
3454
  fallBackDuration: 'FallBackDuration',
2728
3455
  fallBackId: 'FallBackId',
3456
+ fallBackRule: 'FallBackRule',
2729
3457
  from: 'From',
2730
3458
  isvCode: 'IsvCode',
2731
3459
  label: 'Label',
@@ -2754,6 +3482,7 @@ export class SendChatappMessageShrinkRequest extends $tea.Model {
2754
3482
  fallBackContent: 'string',
2755
3483
  fallBackDuration: 'number',
2756
3484
  fallBackId: 'string',
3485
+ fallBackRule: 'string',
2757
3486
  from: 'string',
2758
3487
  isvCode: 'string',
2759
3488
  label: 'string',
@@ -3633,6 +4362,40 @@ export class CreateChatappTemplateResponseBodyData extends $tea.Model {
3633
4362
  }
3634
4363
  }
3635
4364
 
4365
+ export class GetChatappPhoneNumberMetricResponseBodyData extends $tea.Model {
4366
+ deliveredCount?: number;
4367
+ end?: number;
4368
+ granularity?: string;
4369
+ phoneNumber?: string;
4370
+ sentCount?: number;
4371
+ start?: number;
4372
+ static names(): { [key: string]: string } {
4373
+ return {
4374
+ deliveredCount: 'DeliveredCount',
4375
+ end: 'End',
4376
+ granularity: 'Granularity',
4377
+ phoneNumber: 'PhoneNumber',
4378
+ sentCount: 'SentCount',
4379
+ start: 'Start',
4380
+ };
4381
+ }
4382
+
4383
+ static types(): { [key: string]: any } {
4384
+ return {
4385
+ deliveredCount: 'number',
4386
+ end: 'number',
4387
+ granularity: 'string',
4388
+ phoneNumber: 'string',
4389
+ sentCount: 'number',
4390
+ start: 'number',
4391
+ };
4392
+ }
4393
+
4394
+ constructor(map?: { [key: string]: any }) {
4395
+ super(map);
4396
+ }
4397
+ }
4398
+
3636
4399
  export class GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs extends $tea.Model {
3637
4400
  action?: string;
3638
4401
  intentCode?: string;
@@ -3783,6 +4546,7 @@ export class GetChatappTemplateDetailResponseBodyData extends $tea.Model {
3783
4546
  messageSendTtlSeconds?: number;
3784
4547
  name?: string;
3785
4548
  qualityScore?: string;
4549
+ reason?: string;
3786
4550
  templateCode?: string;
3787
4551
  templateType?: string;
3788
4552
  static names(): { [key: string]: string } {
@@ -3795,6 +4559,7 @@ export class GetChatappTemplateDetailResponseBodyData extends $tea.Model {
3795
4559
  messageSendTtlSeconds: 'MessageSendTtlSeconds',
3796
4560
  name: 'Name',
3797
4561
  qualityScore: 'QualityScore',
4562
+ reason: 'Reason',
3798
4563
  templateCode: 'TemplateCode',
3799
4564
  templateType: 'TemplateType',
3800
4565
  };
@@ -3810,6 +4575,7 @@ export class GetChatappTemplateDetailResponseBodyData extends $tea.Model {
3810
4575
  messageSendTtlSeconds: 'number',
3811
4576
  name: 'string',
3812
4577
  qualityScore: 'string',
4578
+ reason: 'string',
3813
4579
  templateCode: 'string',
3814
4580
  templateType: 'string',
3815
4581
  };
@@ -3820,6 +4586,71 @@ export class GetChatappTemplateDetailResponseBodyData extends $tea.Model {
3820
4586
  }
3821
4587
  }
3822
4588
 
4589
+ export class GetChatappTemplateMetricResponseBodyDataCliented extends $tea.Model {
4590
+ buttonContent?: string;
4591
+ count?: number;
4592
+ type?: string;
4593
+ static names(): { [key: string]: string } {
4594
+ return {
4595
+ buttonContent: 'ButtonContent',
4596
+ count: 'Count',
4597
+ type: 'Type',
4598
+ };
4599
+ }
4600
+
4601
+ static types(): { [key: string]: any } {
4602
+ return {
4603
+ buttonContent: 'string',
4604
+ count: 'number',
4605
+ type: 'string',
4606
+ };
4607
+ }
4608
+
4609
+ constructor(map?: { [key: string]: any }) {
4610
+ super(map);
4611
+ }
4612
+ }
4613
+
4614
+ export class GetChatappTemplateMetricResponseBodyData extends $tea.Model {
4615
+ cliented?: GetChatappTemplateMetricResponseBodyDataCliented[];
4616
+ deliveredCount?: number;
4617
+ end?: number;
4618
+ language?: string;
4619
+ readCount?: number;
4620
+ sentCount?: number;
4621
+ start?: number;
4622
+ templateCode?: string;
4623
+ static names(): { [key: string]: string } {
4624
+ return {
4625
+ cliented: 'Cliented',
4626
+ deliveredCount: 'DeliveredCount',
4627
+ end: 'End',
4628
+ language: 'Language',
4629
+ readCount: 'ReadCount',
4630
+ sentCount: 'SentCount',
4631
+ start: 'Start',
4632
+ templateCode: 'TemplateCode',
4633
+ };
4634
+ }
4635
+
4636
+ static types(): { [key: string]: any } {
4637
+ return {
4638
+ cliented: { 'type': 'array', 'itemType': GetChatappTemplateMetricResponseBodyDataCliented },
4639
+ deliveredCount: 'number',
4640
+ end: 'number',
4641
+ language: 'string',
4642
+ readCount: 'number',
4643
+ sentCount: 'number',
4644
+ start: 'number',
4645
+ templateCode: 'string',
4646
+ };
4647
+ }
4648
+
4649
+ constructor(map?: { [key: string]: any }) {
4650
+ super(map);
4651
+ }
4652
+ }
4653
+
3823
4654
  export class GetChatappUploadAuthorizationResponseBodyData extends $tea.Model {
3824
4655
  accessKeyId?: string;
3825
4656
  accessKeySecret?: string;
@@ -3952,6 +4783,7 @@ export class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
3952
4783
  auditStatus?: string;
3953
4784
  category?: string;
3954
4785
  language?: string;
4786
+ reason?: string;
3955
4787
  templateCode?: string;
3956
4788
  templateName?: string;
3957
4789
  templateType?: string;
@@ -3960,6 +4792,7 @@ export class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
3960
4792
  auditStatus: 'AuditStatus',
3961
4793
  category: 'Category',
3962
4794
  language: 'Language',
4795
+ reason: 'Reason',
3963
4796
  templateCode: 'TemplateCode',
3964
4797
  templateName: 'TemplateName',
3965
4798
  templateType: 'TemplateType',
@@ -3971,6 +4804,7 @@ export class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
3971
4804
  auditStatus: 'string',
3972
4805
  category: 'string',
3973
4806
  language: 'string',
4807
+ reason: 'string',
3974
4808
  templateCode: 'string',
3975
4809
  templateName: 'string',
3976
4810
  templateType: 'string',
@@ -3982,6 +4816,132 @@ export class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
3982
4816
  }
3983
4817
  }
3984
4818
 
4819
+ export class ListProductResponseBodyModelPagingCursors extends $tea.Model {
4820
+ after?: string;
4821
+ before?: string;
4822
+ static names(): { [key: string]: string } {
4823
+ return {
4824
+ after: 'After',
4825
+ before: 'Before',
4826
+ };
4827
+ }
4828
+
4829
+ static types(): { [key: string]: any } {
4830
+ return {
4831
+ after: 'string',
4832
+ before: 'string',
4833
+ };
4834
+ }
4835
+
4836
+ constructor(map?: { [key: string]: any }) {
4837
+ super(map);
4838
+ }
4839
+ }
4840
+
4841
+ export class ListProductResponseBodyModelPaging extends $tea.Model {
4842
+ cursors?: ListProductResponseBodyModelPagingCursors;
4843
+ static names(): { [key: string]: string } {
4844
+ return {
4845
+ cursors: 'Cursors',
4846
+ };
4847
+ }
4848
+
4849
+ static types(): { [key: string]: any } {
4850
+ return {
4851
+ cursors: ListProductResponseBodyModelPagingCursors,
4852
+ };
4853
+ }
4854
+
4855
+ constructor(map?: { [key: string]: any }) {
4856
+ super(map);
4857
+ }
4858
+ }
4859
+
4860
+ export class ListProductResponseBodyModel extends $tea.Model {
4861
+ data?: { [key: string]: any }[];
4862
+ paging?: ListProductResponseBodyModelPaging;
4863
+ static names(): { [key: string]: string } {
4864
+ return {
4865
+ data: 'Data',
4866
+ paging: 'Paging',
4867
+ };
4868
+ }
4869
+
4870
+ static types(): { [key: string]: any } {
4871
+ return {
4872
+ data: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
4873
+ paging: ListProductResponseBodyModelPaging,
4874
+ };
4875
+ }
4876
+
4877
+ constructor(map?: { [key: string]: any }) {
4878
+ super(map);
4879
+ }
4880
+ }
4881
+
4882
+ export class ListProductCatalogResponseBodyModelPagingCursors extends $tea.Model {
4883
+ after?: string;
4884
+ before?: string;
4885
+ static names(): { [key: string]: string } {
4886
+ return {
4887
+ after: 'After',
4888
+ before: 'Before',
4889
+ };
4890
+ }
4891
+
4892
+ static types(): { [key: string]: any } {
4893
+ return {
4894
+ after: 'string',
4895
+ before: 'string',
4896
+ };
4897
+ }
4898
+
4899
+ constructor(map?: { [key: string]: any }) {
4900
+ super(map);
4901
+ }
4902
+ }
4903
+
4904
+ export class ListProductCatalogResponseBodyModelPaging extends $tea.Model {
4905
+ cursors?: ListProductCatalogResponseBodyModelPagingCursors;
4906
+ static names(): { [key: string]: string } {
4907
+ return {
4908
+ cursors: 'Cursors',
4909
+ };
4910
+ }
4911
+
4912
+ static types(): { [key: string]: any } {
4913
+ return {
4914
+ cursors: ListProductCatalogResponseBodyModelPagingCursors,
4915
+ };
4916
+ }
4917
+
4918
+ constructor(map?: { [key: string]: any }) {
4919
+ super(map);
4920
+ }
4921
+ }
4922
+
4923
+ export class ListProductCatalogResponseBodyModel extends $tea.Model {
4924
+ data?: { [key: string]: any }[];
4925
+ paging?: ListProductCatalogResponseBodyModelPaging;
4926
+ static names(): { [key: string]: string } {
4927
+ return {
4928
+ data: 'Data',
4929
+ paging: 'Paging',
4930
+ };
4931
+ }
4932
+
4933
+ static types(): { [key: string]: any } {
4934
+ return {
4935
+ data: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
4936
+ paging: ListProductCatalogResponseBodyModelPaging,
4937
+ };
4938
+ }
4939
+
4940
+ constructor(map?: { [key: string]: any }) {
4941
+ super(map);
4942
+ }
4943
+ }
4944
+
3985
4945
  export class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
3986
4946
  autofillText?: string;
3987
4947
  isOptOut?: boolean;
@@ -4421,6 +5381,51 @@ export default class Client extends OpenApi {
4421
5381
  return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
4422
5382
  }
4423
5383
 
5384
+ async addChatappPhoneNumberWithOptions(request: AddChatappPhoneNumberRequest, runtime: $Util.RuntimeOptions): Promise<AddChatappPhoneNumberResponse> {
5385
+ Util.validateModel(request);
5386
+ let body : {[key: string ]: any} = { };
5387
+ if (!Util.isUnset(request.cc)) {
5388
+ body["Cc"] = request.cc;
5389
+ }
5390
+
5391
+ if (!Util.isUnset(request.custSpaceId)) {
5392
+ body["CustSpaceId"] = request.custSpaceId;
5393
+ }
5394
+
5395
+ if (!Util.isUnset(request.phoneNumber)) {
5396
+ body["PhoneNumber"] = request.phoneNumber;
5397
+ }
5398
+
5399
+ if (!Util.isUnset(request.preValidateId)) {
5400
+ body["PreValidateId"] = request.preValidateId;
5401
+ }
5402
+
5403
+ if (!Util.isUnset(request.verifiedName)) {
5404
+ body["VerifiedName"] = request.verifiedName;
5405
+ }
5406
+
5407
+ let req = new $OpenApi.OpenApiRequest({
5408
+ body: OpenApiUtil.parseToMap(body),
5409
+ });
5410
+ let params = new $OpenApi.Params({
5411
+ action: "AddChatappPhoneNumber",
5412
+ version: "2020-06-06",
5413
+ protocol: "HTTPS",
5414
+ pathname: "/",
5415
+ method: "POST",
5416
+ authType: "AK",
5417
+ style: "RPC",
5418
+ reqBodyType: "formData",
5419
+ bodyType: "json",
5420
+ });
5421
+ return $tea.cast<AddChatappPhoneNumberResponse>(await this.callApi(params, req, runtime), new AddChatappPhoneNumberResponse({}));
5422
+ }
5423
+
5424
+ async addChatappPhoneNumber(request: AddChatappPhoneNumberRequest): Promise<AddChatappPhoneNumberResponse> {
5425
+ let runtime = new $Util.RuntimeOptions({ });
5426
+ return await this.addChatappPhoneNumberWithOptions(request, runtime);
5427
+ }
5428
+
4424
5429
  /**
4425
5430
  * 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
5431
  *
@@ -4726,22 +5731,61 @@ export default class Client extends OpenApi {
4726
5731
  Util.validateModel(request);
4727
5732
  let query = { };
4728
5733
  if (!Util.isUnset(request.custSpaceId)) {
4729
- query["CustSpaceId"] = request.custSpaceId;
5734
+ query["CustSpaceId"] = request.custSpaceId;
5735
+ }
5736
+
5737
+ if (!Util.isUnset(request.phoneNumber)) {
5738
+ query["PhoneNumber"] = request.phoneNumber;
5739
+ }
5740
+
5741
+ if (!Util.isUnset(request.verifyCode)) {
5742
+ query["VerifyCode"] = request.verifyCode;
5743
+ }
5744
+
5745
+ let req = new $OpenApi.OpenApiRequest({
5746
+ query: OpenApiUtil.query(query),
5747
+ });
5748
+ let params = new $OpenApi.Params({
5749
+ action: "ChatappMigrationVerified",
5750
+ version: "2020-06-06",
5751
+ protocol: "HTTPS",
5752
+ pathname: "/",
5753
+ method: "POST",
5754
+ authType: "AK",
5755
+ style: "RPC",
5756
+ reqBodyType: "formData",
5757
+ bodyType: "json",
5758
+ });
5759
+ return $tea.cast<ChatappMigrationVerifiedResponse>(await this.callApi(params, req, runtime), new ChatappMigrationVerifiedResponse({}));
5760
+ }
5761
+
5762
+ /**
5763
+ * 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.
5764
+ *
5765
+ * @param request ChatappMigrationVerifiedRequest
5766
+ * @return ChatappMigrationVerifiedResponse
5767
+ */
5768
+ async chatappMigrationVerified(request: ChatappMigrationVerifiedRequest): Promise<ChatappMigrationVerifiedResponse> {
5769
+ let runtime = new $Util.RuntimeOptions({ });
5770
+ return await this.chatappMigrationVerifiedWithOptions(request, runtime);
5771
+ }
5772
+
5773
+ async chatappPhoneNumberDeregisterWithOptions(request: ChatappPhoneNumberDeregisterRequest, runtime: $Util.RuntimeOptions): Promise<ChatappPhoneNumberDeregisterResponse> {
5774
+ Util.validateModel(request);
5775
+ let body : {[key: string ]: any} = { };
5776
+ if (!Util.isUnset(request.custSpaceId)) {
5777
+ body["CustSpaceId"] = request.custSpaceId;
4730
5778
  }
4731
5779
 
4732
5780
  if (!Util.isUnset(request.phoneNumber)) {
4733
- query["PhoneNumber"] = request.phoneNumber;
4734
- }
4735
-
4736
- if (!Util.isUnset(request.verifyCode)) {
4737
- query["VerifyCode"] = request.verifyCode;
5781
+ body["PhoneNumber"] = request.phoneNumber;
4738
5782
  }
4739
5783
 
4740
5784
  let req = new $OpenApi.OpenApiRequest({
4741
- query: OpenApiUtil.query(query),
5785
+ body: OpenApiUtil.parseToMap(body),
4742
5786
  });
4743
5787
  let params = new $OpenApi.Params({
4744
- action: "ChatappMigrationVerified",
5788
+ action: "ChatappPhoneNumberDeregister",
4745
5789
  version: "2020-06-06",
4746
5790
  protocol: "HTTPS",
4747
5791
  pathname: "/",
@@ -4751,18 +5795,12 @@ export default class Client extends OpenApi {
4751
5795
  reqBodyType: "formData",
4752
5796
  bodyType: "json",
4753
5797
  });
4754
- return $tea.cast<ChatappMigrationVerifiedResponse>(await this.callApi(params, req, runtime), new ChatappMigrationVerifiedResponse({}));
5798
+ return $tea.cast<ChatappPhoneNumberDeregisterResponse>(await this.callApi(params, req, runtime), new ChatappPhoneNumberDeregisterResponse({}));
4755
5799
  }
4756
5800
 
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> {
5801
+ async chatappPhoneNumberDeregister(request: ChatappPhoneNumberDeregisterRequest): Promise<ChatappPhoneNumberDeregisterResponse> {
4764
5802
  let runtime = new $Util.RuntimeOptions({ });
4765
- return await this.chatappMigrationVerifiedWithOptions(request, runtime);
5803
+ return await this.chatappPhoneNumberDeregisterWithOptions(request, runtime);
4766
5804
  }
4767
5805
 
4768
5806
  /**
@@ -5101,8 +6139,91 @@ export default class Client extends OpenApi {
5101
6139
  return await this.deleteChatappTemplateWithOptions(request, runtime);
5102
6140
  }
5103
6141
 
6142
+ async enableWhatsappROIMetricWithOptions(request: EnableWhatsappROIMetricRequest, runtime: $Util.RuntimeOptions): Promise<EnableWhatsappROIMetricResponse> {
6143
+ Util.validateModel(request);
6144
+ let query = { };
6145
+ if (!Util.isUnset(request.custSpaceId)) {
6146
+ query["CustSpaceId"] = request.custSpaceId;
6147
+ }
6148
+
6149
+ if (!Util.isUnset(request.isvCode)) {
6150
+ query["IsvCode"] = request.isvCode;
6151
+ }
6152
+
6153
+ let req = new $OpenApi.OpenApiRequest({
6154
+ query: OpenApiUtil.query(query),
6155
+ });
6156
+ let params = new $OpenApi.Params({
6157
+ action: "EnableWhatsappROIMetric",
6158
+ version: "2020-06-06",
6159
+ protocol: "HTTPS",
6160
+ pathname: "/",
6161
+ method: "POST",
6162
+ authType: "AK",
6163
+ style: "RPC",
6164
+ reqBodyType: "formData",
6165
+ bodyType: "json",
6166
+ });
6167
+ return $tea.cast<EnableWhatsappROIMetricResponse>(await this.callApi(params, req, runtime), new EnableWhatsappROIMetricResponse({}));
6168
+ }
6169
+
6170
+ async enableWhatsappROIMetric(request: EnableWhatsappROIMetricRequest): Promise<EnableWhatsappROIMetricResponse> {
6171
+ let runtime = new $Util.RuntimeOptions({ });
6172
+ return await this.enableWhatsappROIMetricWithOptions(request, runtime);
6173
+ }
6174
+
6175
+ async getChatappPhoneNumberMetricWithOptions(request: GetChatappPhoneNumberMetricRequest, runtime: $Util.RuntimeOptions): Promise<GetChatappPhoneNumberMetricResponse> {
6176
+ Util.validateModel(request);
6177
+ let query = { };
6178
+ if (!Util.isUnset(request.custSpaceId)) {
6179
+ query["CustSpaceId"] = request.custSpaceId;
6180
+ }
6181
+
6182
+ if (!Util.isUnset(request.end)) {
6183
+ query["End"] = request.end;
6184
+ }
6185
+
6186
+ if (!Util.isUnset(request.granularity)) {
6187
+ query["Granularity"] = request.granularity;
6188
+ }
6189
+
6190
+ if (!Util.isUnset(request.isvCode)) {
6191
+ query["IsvCode"] = request.isvCode;
6192
+ }
6193
+
6194
+ if (!Util.isUnset(request.phoneNumber)) {
6195
+ query["PhoneNumber"] = request.phoneNumber;
6196
+ }
6197
+
6198
+ if (!Util.isUnset(request.start)) {
6199
+ query["Start"] = request.start;
6200
+ }
6201
+
6202
+ let req = new $OpenApi.OpenApiRequest({
6203
+ query: OpenApiUtil.query(query),
6204
+ });
6205
+ let params = new $OpenApi.Params({
6206
+ action: "GetChatappPhoneNumberMetric",
6207
+ version: "2020-06-06",
6208
+ protocol: "HTTPS",
6209
+ pathname: "/",
6210
+ method: "POST",
6211
+ authType: "AK",
6212
+ style: "RPC",
6213
+ reqBodyType: "formData",
6214
+ bodyType: "json",
6215
+ });
6216
+ return $tea.cast<GetChatappPhoneNumberMetricResponse>(await this.callApi(params, req, runtime), new GetChatappPhoneNumberMetricResponse({}));
6217
+ }
6218
+
6219
+ async getChatappPhoneNumberMetric(request: GetChatappPhoneNumberMetricRequest): Promise<GetChatappPhoneNumberMetricResponse> {
6220
+ let runtime = new $Util.RuntimeOptions({ });
6221
+ return await this.getChatappPhoneNumberMetricWithOptions(request, runtime);
6222
+ }
6223
+
5104
6224
  /**
5105
- * The type of the file attached in the Viber message template.
6225
+ * ### QPS limit
6226
+ * 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
6227
  *
5107
6228
  * @param request GetChatappTemplateDetailRequest
5108
6229
  * @param runtime runtime options for this request RuntimeOptions
@@ -5153,7 +6274,8 @@ export default class Client extends OpenApi {
5153
6274
  }
5154
6275
 
5155
6276
  /**
5156
- * The type of the file attached in the Viber message template.
6277
+ * ### QPS limit
6278
+ * 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
6279
  *
5158
6280
  * @param request GetChatappTemplateDetailRequest
5159
6281
  * @return GetChatappTemplateDetailResponse
@@ -5163,6 +6285,63 @@ export default class Client extends OpenApi {
5163
6285
  return await this.getChatappTemplateDetailWithOptions(request, runtime);
5164
6286
  }
5165
6287
 
6288
+ async getChatappTemplateMetricWithOptions(request: GetChatappTemplateMetricRequest, runtime: $Util.RuntimeOptions): Promise<GetChatappTemplateMetricResponse> {
6289
+ Util.validateModel(request);
6290
+ let query = { };
6291
+ if (!Util.isUnset(request.custSpaceId)) {
6292
+ query["CustSpaceId"] = request.custSpaceId;
6293
+ }
6294
+
6295
+ if (!Util.isUnset(request.end)) {
6296
+ query["End"] = request.end;
6297
+ }
6298
+
6299
+ if (!Util.isUnset(request.granularity)) {
6300
+ query["Granularity"] = request.granularity;
6301
+ }
6302
+
6303
+ if (!Util.isUnset(request.isvCode)) {
6304
+ query["IsvCode"] = request.isvCode;
6305
+ }
6306
+
6307
+ if (!Util.isUnset(request.language)) {
6308
+ query["Language"] = request.language;
6309
+ }
6310
+
6311
+ if (!Util.isUnset(request.start)) {
6312
+ query["Start"] = request.start;
6313
+ }
6314
+
6315
+ if (!Util.isUnset(request.templateCode)) {
6316
+ query["TemplateCode"] = request.templateCode;
6317
+ }
6318
+
6319
+ if (!Util.isUnset(request.templateType)) {
6320
+ query["TemplateType"] = request.templateType;
6321
+ }
6322
+
6323
+ let req = new $OpenApi.OpenApiRequest({
6324
+ query: OpenApiUtil.query(query),
6325
+ });
6326
+ let params = new $OpenApi.Params({
6327
+ action: "GetChatappTemplateMetric",
6328
+ version: "2020-06-06",
6329
+ protocol: "HTTPS",
6330
+ pathname: "/",
6331
+ method: "POST",
6332
+ authType: "AK",
6333
+ style: "RPC",
6334
+ reqBodyType: "formData",
6335
+ bodyType: "json",
6336
+ });
6337
+ return $tea.cast<GetChatappTemplateMetricResponse>(await this.callApi(params, req, runtime), new GetChatappTemplateMetricResponse({}));
6338
+ }
6339
+
6340
+ async getChatappTemplateMetric(request: GetChatappTemplateMetricRequest): Promise<GetChatappTemplateMetricResponse> {
6341
+ let runtime = new $Util.RuntimeOptions({ });
6342
+ return await this.getChatappTemplateMetricWithOptions(request, runtime);
6343
+ }
6344
+
5166
6345
  /**
5167
6346
  * 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
6347
  *
@@ -5392,6 +6571,51 @@ export default class Client extends OpenApi {
5392
6571
  return await this.getPreValidatePhoneIdWithOptions(request, runtime);
5393
6572
  }
5394
6573
 
6574
+ async getWhatsappConnectionCatalogWithOptions(request: GetWhatsappConnectionCatalogRequest, runtime: $Util.RuntimeOptions): Promise<GetWhatsappConnectionCatalogResponse> {
6575
+ Util.validateModel(request);
6576
+ let query = { };
6577
+ if (!Util.isUnset(request.custSpaceId)) {
6578
+ query["CustSpaceId"] = request.custSpaceId;
6579
+ }
6580
+
6581
+ if (!Util.isUnset(request.ownerId)) {
6582
+ query["OwnerId"] = request.ownerId;
6583
+ }
6584
+
6585
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
6586
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
6587
+ }
6588
+
6589
+ if (!Util.isUnset(request.resourceOwnerId)) {
6590
+ query["ResourceOwnerId"] = request.resourceOwnerId;
6591
+ }
6592
+
6593
+ if (!Util.isUnset(request.wabaId)) {
6594
+ query["WabaId"] = request.wabaId;
6595
+ }
6596
+
6597
+ let req = new $OpenApi.OpenApiRequest({
6598
+ query: OpenApiUtil.query(query),
6599
+ });
6600
+ let params = new $OpenApi.Params({
6601
+ action: "GetWhatsappConnectionCatalog",
6602
+ version: "2020-06-06",
6603
+ protocol: "HTTPS",
6604
+ pathname: "/",
6605
+ method: "POST",
6606
+ authType: "AK",
6607
+ style: "RPC",
6608
+ reqBodyType: "formData",
6609
+ bodyType: "json",
6610
+ });
6611
+ return $tea.cast<GetWhatsappConnectionCatalogResponse>(await this.callApi(params, req, runtime), new GetWhatsappConnectionCatalogResponse({}));
6612
+ }
6613
+
6614
+ async getWhatsappConnectionCatalog(request: GetWhatsappConnectionCatalogRequest): Promise<GetWhatsappConnectionCatalogResponse> {
6615
+ let runtime = new $Util.RuntimeOptions({ });
6616
+ return await this.getWhatsappConnectionCatalogWithOptions(request, runtime);
6617
+ }
6618
+
5395
6619
  /**
5396
6620
  * 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
6621
  *
@@ -5512,6 +6736,132 @@ export default class Client extends OpenApi {
5512
6736
  return await this.listChatappTemplateWithOptions(request, runtime);
5513
6737
  }
5514
6738
 
6739
+ async listProductWithOptions(request: ListProductRequest, runtime: $Util.RuntimeOptions): Promise<ListProductResponse> {
6740
+ Util.validateModel(request);
6741
+ let query = { };
6742
+ if (!Util.isUnset(request.after)) {
6743
+ query["After"] = request.after;
6744
+ }
6745
+
6746
+ if (!Util.isUnset(request.before)) {
6747
+ query["Before"] = request.before;
6748
+ }
6749
+
6750
+ if (!Util.isUnset(request.catalogId)) {
6751
+ query["CatalogId"] = request.catalogId;
6752
+ }
6753
+
6754
+ if (!Util.isUnset(request.custSpaceId)) {
6755
+ query["CustSpaceId"] = request.custSpaceId;
6756
+ }
6757
+
6758
+ if (!Util.isUnset(request.fields)) {
6759
+ query["Fields"] = request.fields;
6760
+ }
6761
+
6762
+ if (!Util.isUnset(request.limit)) {
6763
+ query["Limit"] = request.limit;
6764
+ }
6765
+
6766
+ if (!Util.isUnset(request.ownerId)) {
6767
+ query["OwnerId"] = request.ownerId;
6768
+ }
6769
+
6770
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
6771
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
6772
+ }
6773
+
6774
+ if (!Util.isUnset(request.resourceOwnerId)) {
6775
+ query["ResourceOwnerId"] = request.resourceOwnerId;
6776
+ }
6777
+
6778
+ if (!Util.isUnset(request.wabaId)) {
6779
+ query["WabaId"] = request.wabaId;
6780
+ }
6781
+
6782
+ let req = new $OpenApi.OpenApiRequest({
6783
+ query: OpenApiUtil.query(query),
6784
+ });
6785
+ let params = new $OpenApi.Params({
6786
+ action: "ListProduct",
6787
+ version: "2020-06-06",
6788
+ protocol: "HTTPS",
6789
+ pathname: "/",
6790
+ method: "POST",
6791
+ authType: "AK",
6792
+ style: "RPC",
6793
+ reqBodyType: "formData",
6794
+ bodyType: "json",
6795
+ });
6796
+ return $tea.cast<ListProductResponse>(await this.callApi(params, req, runtime), new ListProductResponse({}));
6797
+ }
6798
+
6799
+ async listProduct(request: ListProductRequest): Promise<ListProductResponse> {
6800
+ let runtime = new $Util.RuntimeOptions({ });
6801
+ return await this.listProductWithOptions(request, runtime);
6802
+ }
6803
+
6804
+ async listProductCatalogWithOptions(request: ListProductCatalogRequest, runtime: $Util.RuntimeOptions): Promise<ListProductCatalogResponse> {
6805
+ Util.validateModel(request);
6806
+ let query = { };
6807
+ if (!Util.isUnset(request.after)) {
6808
+ query["After"] = request.after;
6809
+ }
6810
+
6811
+ if (!Util.isUnset(request.before)) {
6812
+ query["Before"] = request.before;
6813
+ }
6814
+
6815
+ if (!Util.isUnset(request.businessId)) {
6816
+ query["BusinessId"] = request.businessId;
6817
+ }
6818
+
6819
+ if (!Util.isUnset(request.custSpaceId)) {
6820
+ query["CustSpaceId"] = request.custSpaceId;
6821
+ }
6822
+
6823
+ if (!Util.isUnset(request.fields)) {
6824
+ query["Fields"] = request.fields;
6825
+ }
6826
+
6827
+ if (!Util.isUnset(request.limit)) {
6828
+ query["Limit"] = request.limit;
6829
+ }
6830
+
6831
+ if (!Util.isUnset(request.ownerId)) {
6832
+ query["OwnerId"] = request.ownerId;
6833
+ }
6834
+
6835
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
6836
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
6837
+ }
6838
+
6839
+ if (!Util.isUnset(request.resourceOwnerId)) {
6840
+ query["ResourceOwnerId"] = request.resourceOwnerId;
6841
+ }
6842
+
6843
+ let req = new $OpenApi.OpenApiRequest({
6844
+ query: OpenApiUtil.query(query),
6845
+ });
6846
+ let params = new $OpenApi.Params({
6847
+ action: "ListProductCatalog",
6848
+ version: "2020-06-06",
6849
+ protocol: "HTTPS",
6850
+ pathname: "/",
6851
+ method: "POST",
6852
+ authType: "AK",
6853
+ style: "RPC",
6854
+ reqBodyType: "formData",
6855
+ bodyType: "json",
6856
+ });
6857
+ return $tea.cast<ListProductCatalogResponse>(await this.callApi(params, req, runtime), new ListProductCatalogResponse({}));
6858
+ }
6859
+
6860
+ async listProductCatalog(request: ListProductCatalogRequest): Promise<ListProductCatalogResponse> {
6861
+ let runtime = new $Util.RuntimeOptions({ });
6862
+ return await this.listProductCatalogWithOptions(request, runtime);
6863
+ }
6864
+
5515
6865
  /**
5516
6866
  * The name of the message template.
5517
6867
  *
@@ -5901,6 +7251,10 @@ export default class Client extends OpenApi {
5901
7251
  body["FallBackId"] = request.fallBackId;
5902
7252
  }
5903
7253
 
7254
+ if (!Util.isUnset(request.fallBackRule)) {
7255
+ body["FallBackRule"] = request.fallBackRule;
7256
+ }
7257
+
5904
7258
  if (!Util.isUnset(request.from)) {
5905
7259
  body["From"] = request.from;
5906
7260
  }
@@ -6027,6 +7381,10 @@ export default class Client extends OpenApi {
6027
7381
  body["FallBackId"] = request.fallBackId;
6028
7382
  }
6029
7383
 
7384
+ if (!Util.isUnset(request.fallBackRule)) {
7385
+ body["FallBackRule"] = request.fallBackRule;
7386
+ }
7387
+
6030
7388
  if (!Util.isUnset(request.from)) {
6031
7389
  body["From"] = request.from;
6032
7390
  }