@alicloud/cams20200606 1.0.11 → 1.0.13

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/dist/client.js CHANGED
@@ -19,6 +19,210 @@ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $Ope
19
19
  const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
20
20
  const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
21
21
  const $tea = __importStar(require("@alicloud/tea-typescript"));
22
+ class BeeBotAssociateRequest extends $tea.Model {
23
+ constructor(map) {
24
+ super(map);
25
+ }
26
+ static names() {
27
+ return {
28
+ chatBotInstanceId: 'ChatBotInstanceId',
29
+ isvCode: 'IsvCode',
30
+ perspective: 'Perspective',
31
+ recommendNum: 'RecommendNum',
32
+ sessionId: 'SessionId',
33
+ utterance: 'Utterance',
34
+ };
35
+ }
36
+ static types() {
37
+ return {
38
+ chatBotInstanceId: 'string',
39
+ isvCode: 'string',
40
+ perspective: { 'type': 'array', 'itemType': 'string' },
41
+ recommendNum: 'number',
42
+ sessionId: 'string',
43
+ utterance: 'string',
44
+ };
45
+ }
46
+ }
47
+ exports.BeeBotAssociateRequest = BeeBotAssociateRequest;
48
+ class BeeBotAssociateShrinkRequest extends $tea.Model {
49
+ constructor(map) {
50
+ super(map);
51
+ }
52
+ static names() {
53
+ return {
54
+ chatBotInstanceId: 'ChatBotInstanceId',
55
+ isvCode: 'IsvCode',
56
+ perspectiveShrink: 'Perspective',
57
+ recommendNum: 'RecommendNum',
58
+ sessionId: 'SessionId',
59
+ utterance: 'Utterance',
60
+ };
61
+ }
62
+ static types() {
63
+ return {
64
+ chatBotInstanceId: 'string',
65
+ isvCode: 'string',
66
+ perspectiveShrink: 'string',
67
+ recommendNum: 'number',
68
+ sessionId: 'string',
69
+ utterance: 'string',
70
+ };
71
+ }
72
+ }
73
+ exports.BeeBotAssociateShrinkRequest = BeeBotAssociateShrinkRequest;
74
+ class BeeBotAssociateResponseBody extends $tea.Model {
75
+ constructor(map) {
76
+ super(map);
77
+ }
78
+ static names() {
79
+ return {
80
+ code: 'Code',
81
+ data: 'Data',
82
+ message: 'Message',
83
+ requestId: 'RequestId',
84
+ };
85
+ }
86
+ static types() {
87
+ return {
88
+ code: 'string',
89
+ data: BeeBotAssociateResponseBodyData,
90
+ message: 'string',
91
+ requestId: 'string',
92
+ };
93
+ }
94
+ }
95
+ exports.BeeBotAssociateResponseBody = BeeBotAssociateResponseBody;
96
+ class BeeBotAssociateResponse extends $tea.Model {
97
+ constructor(map) {
98
+ super(map);
99
+ }
100
+ static names() {
101
+ return {
102
+ headers: 'headers',
103
+ statusCode: 'statusCode',
104
+ body: 'body',
105
+ };
106
+ }
107
+ static types() {
108
+ return {
109
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
110
+ statusCode: 'number',
111
+ body: BeeBotAssociateResponseBody,
112
+ };
113
+ }
114
+ }
115
+ exports.BeeBotAssociateResponse = BeeBotAssociateResponse;
116
+ class BeeBotChatRequest extends $tea.Model {
117
+ constructor(map) {
118
+ super(map);
119
+ }
120
+ static names() {
121
+ return {
122
+ chatBotInstanceId: 'ChatBotInstanceId',
123
+ intentName: 'IntentName',
124
+ isvCode: 'IsvCode',
125
+ knowledgeId: 'KnowledgeId',
126
+ perspective: 'Perspective',
127
+ senderId: 'SenderId',
128
+ senderNick: 'SenderNick',
129
+ sessionId: 'SessionId',
130
+ utterance: 'Utterance',
131
+ vendorParam: 'VendorParam',
132
+ };
133
+ }
134
+ static types() {
135
+ return {
136
+ chatBotInstanceId: 'string',
137
+ intentName: 'string',
138
+ isvCode: 'string',
139
+ knowledgeId: 'string',
140
+ perspective: { 'type': 'array', 'itemType': 'string' },
141
+ senderId: 'string',
142
+ senderNick: 'string',
143
+ sessionId: 'string',
144
+ utterance: 'string',
145
+ vendorParam: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
146
+ };
147
+ }
148
+ }
149
+ exports.BeeBotChatRequest = BeeBotChatRequest;
150
+ class BeeBotChatShrinkRequest extends $tea.Model {
151
+ constructor(map) {
152
+ super(map);
153
+ }
154
+ static names() {
155
+ return {
156
+ chatBotInstanceId: 'ChatBotInstanceId',
157
+ intentName: 'IntentName',
158
+ isvCode: 'IsvCode',
159
+ knowledgeId: 'KnowledgeId',
160
+ perspectiveShrink: 'Perspective',
161
+ senderId: 'SenderId',
162
+ senderNick: 'SenderNick',
163
+ sessionId: 'SessionId',
164
+ utterance: 'Utterance',
165
+ vendorParamShrink: 'VendorParam',
166
+ };
167
+ }
168
+ static types() {
169
+ return {
170
+ chatBotInstanceId: 'string',
171
+ intentName: 'string',
172
+ isvCode: 'string',
173
+ knowledgeId: 'string',
174
+ perspectiveShrink: 'string',
175
+ senderId: 'string',
176
+ senderNick: 'string',
177
+ sessionId: 'string',
178
+ utterance: 'string',
179
+ vendorParamShrink: 'string',
180
+ };
181
+ }
182
+ }
183
+ exports.BeeBotChatShrinkRequest = BeeBotChatShrinkRequest;
184
+ class BeeBotChatResponseBody extends $tea.Model {
185
+ constructor(map) {
186
+ super(map);
187
+ }
188
+ static names() {
189
+ return {
190
+ code: 'Code',
191
+ data: 'Data',
192
+ message: 'Message',
193
+ requestId: 'RequestId',
194
+ };
195
+ }
196
+ static types() {
197
+ return {
198
+ code: 'string',
199
+ data: BeeBotChatResponseBodyData,
200
+ message: 'string',
201
+ requestId: 'string',
202
+ };
203
+ }
204
+ }
205
+ exports.BeeBotChatResponseBody = BeeBotChatResponseBody;
206
+ class BeeBotChatResponse extends $tea.Model {
207
+ constructor(map) {
208
+ super(map);
209
+ }
210
+ static names() {
211
+ return {
212
+ headers: 'headers',
213
+ statusCode: 'statusCode',
214
+ body: 'body',
215
+ };
216
+ }
217
+ static types() {
218
+ return {
219
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
220
+ statusCode: 'number',
221
+ body: BeeBotChatResponseBody,
222
+ };
223
+ }
224
+ }
225
+ exports.BeeBotChatResponse = BeeBotChatResponse;
22
226
  class CreateChatappTemplateRequest extends $tea.Model {
23
227
  constructor(map) {
24
228
  super(map);
@@ -339,6 +543,100 @@ class ListChatappTemplateResponse extends $tea.Model {
339
543
  }
340
544
  }
341
545
  exports.ListChatappTemplateResponse = ListChatappTemplateResponse;
546
+ class ModifyChatappTemplateRequest extends $tea.Model {
547
+ constructor(map) {
548
+ super(map);
549
+ }
550
+ static names() {
551
+ return {
552
+ components: 'Components',
553
+ custWabaId: 'CustWabaId',
554
+ example: 'Example',
555
+ isvCode: 'IsvCode',
556
+ language: 'Language',
557
+ templateCode: 'TemplateCode',
558
+ };
559
+ }
560
+ static types() {
561
+ return {
562
+ components: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponents },
563
+ custWabaId: 'string',
564
+ example: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
565
+ isvCode: 'string',
566
+ language: 'string',
567
+ templateCode: 'string',
568
+ };
569
+ }
570
+ }
571
+ exports.ModifyChatappTemplateRequest = ModifyChatappTemplateRequest;
572
+ class ModifyChatappTemplateShrinkRequest extends $tea.Model {
573
+ constructor(map) {
574
+ super(map);
575
+ }
576
+ static names() {
577
+ return {
578
+ componentsShrink: 'Components',
579
+ custWabaId: 'CustWabaId',
580
+ exampleShrink: 'Example',
581
+ isvCode: 'IsvCode',
582
+ language: 'Language',
583
+ templateCode: 'TemplateCode',
584
+ };
585
+ }
586
+ static types() {
587
+ return {
588
+ componentsShrink: 'string',
589
+ custWabaId: 'string',
590
+ exampleShrink: 'string',
591
+ isvCode: 'string',
592
+ language: 'string',
593
+ templateCode: 'string',
594
+ };
595
+ }
596
+ }
597
+ exports.ModifyChatappTemplateShrinkRequest = ModifyChatappTemplateShrinkRequest;
598
+ class ModifyChatappTemplateResponseBody extends $tea.Model {
599
+ constructor(map) {
600
+ super(map);
601
+ }
602
+ static names() {
603
+ return {
604
+ code: 'Code',
605
+ data: 'Data',
606
+ message: 'Message',
607
+ requestId: 'RequestId',
608
+ };
609
+ }
610
+ static types() {
611
+ return {
612
+ code: 'string',
613
+ data: ModifyChatappTemplateResponseBodyData,
614
+ message: 'string',
615
+ requestId: 'string',
616
+ };
617
+ }
618
+ }
619
+ exports.ModifyChatappTemplateResponseBody = ModifyChatappTemplateResponseBody;
620
+ class ModifyChatappTemplateResponse extends $tea.Model {
621
+ constructor(map) {
622
+ super(map);
623
+ }
624
+ static names() {
625
+ return {
626
+ headers: 'headers',
627
+ statusCode: 'statusCode',
628
+ body: 'body',
629
+ };
630
+ }
631
+ static types() {
632
+ return {
633
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
634
+ statusCode: 'number',
635
+ body: ModifyChatappTemplateResponseBody,
636
+ };
637
+ }
638
+ }
639
+ exports.ModifyChatappTemplateResponse = ModifyChatappTemplateResponse;
342
640
  class SendChatappMassMessageRequest extends $tea.Model {
343
641
  constructor(map) {
344
642
  super(map);
@@ -575,6 +873,220 @@ class SendChatappMessageResponse extends $tea.Model {
575
873
  }
576
874
  }
577
875
  exports.SendChatappMessageResponse = SendChatappMessageResponse;
876
+ class BeeBotAssociateResponseBodyDataAssociate extends $tea.Model {
877
+ constructor(map) {
878
+ super(map);
879
+ }
880
+ static names() {
881
+ return {
882
+ meta: 'Meta',
883
+ title: 'Title',
884
+ };
885
+ }
886
+ static types() {
887
+ return {
888
+ meta: 'string',
889
+ title: 'string',
890
+ };
891
+ }
892
+ }
893
+ exports.BeeBotAssociateResponseBodyDataAssociate = BeeBotAssociateResponseBodyDataAssociate;
894
+ class BeeBotAssociateResponseBodyData extends $tea.Model {
895
+ constructor(map) {
896
+ super(map);
897
+ }
898
+ static names() {
899
+ return {
900
+ associate: 'Associate',
901
+ messageId: 'MessageId',
902
+ sessionId: 'SessionId',
903
+ };
904
+ }
905
+ static types() {
906
+ return {
907
+ associate: { 'type': 'array', 'itemType': BeeBotAssociateResponseBodyDataAssociate },
908
+ messageId: 'string',
909
+ sessionId: 'string',
910
+ };
911
+ }
912
+ }
913
+ exports.BeeBotAssociateResponseBodyData = BeeBotAssociateResponseBodyData;
914
+ class BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges extends $tea.Model {
915
+ constructor(map) {
916
+ super(map);
917
+ }
918
+ static names() {
919
+ return {
920
+ knowledgeId: 'KnowledgeId',
921
+ title: 'Title',
922
+ };
923
+ }
924
+ static types() {
925
+ return {
926
+ knowledgeId: 'string',
927
+ title: 'string',
928
+ };
929
+ }
930
+ }
931
+ exports.BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges = BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges;
932
+ class BeeBotChatResponseBodyDataMessagesKnowledge extends $tea.Model {
933
+ constructor(map) {
934
+ super(map);
935
+ }
936
+ static names() {
937
+ return {
938
+ answerSource: 'AnswerSource',
939
+ category: 'Category',
940
+ content: 'Content',
941
+ contentType: 'ContentType',
942
+ hitStatement: 'HitStatement',
943
+ id: 'Id',
944
+ relatedKnowledges: 'RelatedKnowledges',
945
+ summary: 'Summary',
946
+ title: 'Title',
947
+ };
948
+ }
949
+ static types() {
950
+ return {
951
+ answerSource: 'string',
952
+ category: 'string',
953
+ content: 'string',
954
+ contentType: 'string',
955
+ hitStatement: 'string',
956
+ id: 'string',
957
+ relatedKnowledges: { 'type': 'array', 'itemType': BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges },
958
+ summary: 'string',
959
+ title: 'string',
960
+ };
961
+ }
962
+ }
963
+ exports.BeeBotChatResponseBodyDataMessagesKnowledge = BeeBotChatResponseBodyDataMessagesKnowledge;
964
+ class BeeBotChatResponseBodyDataMessagesRecommends extends $tea.Model {
965
+ constructor(map) {
966
+ super(map);
967
+ }
968
+ static names() {
969
+ return {
970
+ answerSource: 'AnswerSource',
971
+ knowledgeId: 'KnowledgeId',
972
+ title: 'Title',
973
+ };
974
+ }
975
+ static types() {
976
+ return {
977
+ answerSource: 'string',
978
+ knowledgeId: 'string',
979
+ title: 'string',
980
+ };
981
+ }
982
+ }
983
+ exports.BeeBotChatResponseBodyDataMessagesRecommends = BeeBotChatResponseBodyDataMessagesRecommends;
984
+ class BeeBotChatResponseBodyDataMessagesTextSlots extends $tea.Model {
985
+ constructor(map) {
986
+ super(map);
987
+ }
988
+ static names() {
989
+ return {
990
+ hit: 'Hit',
991
+ name: 'Name',
992
+ origin: 'Origin',
993
+ value: 'Value',
994
+ };
995
+ }
996
+ static types() {
997
+ return {
998
+ hit: 'boolean',
999
+ name: 'string',
1000
+ origin: 'string',
1001
+ value: 'string',
1002
+ };
1003
+ }
1004
+ }
1005
+ exports.BeeBotChatResponseBodyDataMessagesTextSlots = BeeBotChatResponseBodyDataMessagesTextSlots;
1006
+ class BeeBotChatResponseBodyDataMessagesText extends $tea.Model {
1007
+ constructor(map) {
1008
+ super(map);
1009
+ }
1010
+ static names() {
1011
+ return {
1012
+ answerSource: 'AnswerSource',
1013
+ content: 'Content',
1014
+ contentType: 'ContentType',
1015
+ dialogName: 'DialogName',
1016
+ ext: 'Ext',
1017
+ externalFlags: 'ExternalFlags',
1018
+ hitStatement: 'HitStatement',
1019
+ intentName: 'IntentName',
1020
+ metaData: 'MetaData',
1021
+ nodeId: 'NodeId',
1022
+ nodeName: 'NodeName',
1023
+ slots: 'Slots',
1024
+ userDefinedChatTitle: 'UserDefinedChatTitle',
1025
+ };
1026
+ }
1027
+ static types() {
1028
+ return {
1029
+ answerSource: 'string',
1030
+ content: 'string',
1031
+ contentType: 'string',
1032
+ dialogName: 'string',
1033
+ ext: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
1034
+ externalFlags: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
1035
+ hitStatement: 'string',
1036
+ intentName: 'string',
1037
+ metaData: 'string',
1038
+ nodeId: 'string',
1039
+ nodeName: 'string',
1040
+ slots: { 'type': 'array', 'itemType': BeeBotChatResponseBodyDataMessagesTextSlots },
1041
+ userDefinedChatTitle: 'string',
1042
+ };
1043
+ }
1044
+ }
1045
+ exports.BeeBotChatResponseBodyDataMessagesText = BeeBotChatResponseBodyDataMessagesText;
1046
+ class BeeBotChatResponseBodyDataMessages extends $tea.Model {
1047
+ constructor(map) {
1048
+ super(map);
1049
+ }
1050
+ static names() {
1051
+ return {
1052
+ answerSource: 'AnswerSource',
1053
+ answerType: 'AnswerType',
1054
+ knowledge: 'Knowledge',
1055
+ recommends: 'Recommends',
1056
+ text: 'Text',
1057
+ };
1058
+ }
1059
+ static types() {
1060
+ return {
1061
+ answerSource: 'string',
1062
+ answerType: 'string',
1063
+ knowledge: BeeBotChatResponseBodyDataMessagesKnowledge,
1064
+ recommends: { 'type': 'array', 'itemType': BeeBotChatResponseBodyDataMessagesRecommends },
1065
+ text: BeeBotChatResponseBodyDataMessagesText,
1066
+ };
1067
+ }
1068
+ }
1069
+ exports.BeeBotChatResponseBodyDataMessages = BeeBotChatResponseBodyDataMessages;
1070
+ class BeeBotChatResponseBodyData extends $tea.Model {
1071
+ constructor(map) {
1072
+ super(map);
1073
+ }
1074
+ static names() {
1075
+ return {
1076
+ messageId: 'MessageId',
1077
+ messages: 'Messages',
1078
+ sessionId: 'SessionId',
1079
+ };
1080
+ }
1081
+ static types() {
1082
+ return {
1083
+ messageId: 'string',
1084
+ messages: { 'type': 'array', 'itemType': BeeBotChatResponseBodyDataMessages },
1085
+ sessionId: 'string',
1086
+ };
1087
+ }
1088
+ }
1089
+ exports.BeeBotChatResponseBodyData = BeeBotChatResponseBodyData;
578
1090
  class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
579
1091
  constructor(map) {
580
1092
  super(map);
@@ -767,6 +1279,76 @@ class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
767
1279
  }
768
1280
  }
769
1281
  exports.ListChatappTemplateResponseBodyListTemplate = ListChatappTemplateResponseBodyListTemplate;
1282
+ class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
1283
+ constructor(map) {
1284
+ super(map);
1285
+ }
1286
+ static names() {
1287
+ return {
1288
+ phoneNumber: 'PhoneNumber',
1289
+ text: 'Text',
1290
+ type: 'Type',
1291
+ url: 'Url',
1292
+ urlType: 'UrlType',
1293
+ };
1294
+ }
1295
+ static types() {
1296
+ return {
1297
+ phoneNumber: 'string',
1298
+ text: 'string',
1299
+ type: 'string',
1300
+ url: 'string',
1301
+ urlType: 'string',
1302
+ };
1303
+ }
1304
+ }
1305
+ exports.ModifyChatappTemplateRequestComponentsButtons = ModifyChatappTemplateRequestComponentsButtons;
1306
+ class ModifyChatappTemplateRequestComponents extends $tea.Model {
1307
+ constructor(map) {
1308
+ super(map);
1309
+ }
1310
+ static names() {
1311
+ return {
1312
+ buttons: 'Buttons',
1313
+ caption: 'Caption',
1314
+ fileName: 'FileName',
1315
+ format: 'Format',
1316
+ text: 'Text',
1317
+ type: 'Type',
1318
+ url: 'Url',
1319
+ };
1320
+ }
1321
+ static types() {
1322
+ return {
1323
+ buttons: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsButtons },
1324
+ caption: 'string',
1325
+ fileName: 'string',
1326
+ format: 'string',
1327
+ text: 'string',
1328
+ type: 'string',
1329
+ url: 'string',
1330
+ };
1331
+ }
1332
+ }
1333
+ exports.ModifyChatappTemplateRequestComponents = ModifyChatappTemplateRequestComponents;
1334
+ class ModifyChatappTemplateResponseBodyData extends $tea.Model {
1335
+ constructor(map) {
1336
+ super(map);
1337
+ }
1338
+ static names() {
1339
+ return {
1340
+ templateCode: 'TemplateCode',
1341
+ templateName: 'TemplateName',
1342
+ };
1343
+ }
1344
+ static types() {
1345
+ return {
1346
+ templateCode: 'string',
1347
+ templateName: 'string',
1348
+ };
1349
+ }
1350
+ }
1351
+ exports.ModifyChatappTemplateResponseBodyData = ModifyChatappTemplateResponseBodyData;
770
1352
  class SendChatappMassMessageRequestSenderList extends $tea.Model {
771
1353
  constructor(map) {
772
1354
  super(map);
@@ -803,6 +1385,113 @@ class Client extends openapi_client_1.default {
803
1385
  }
804
1386
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
805
1387
  }
1388
+ async beeBotAssociateWithOptions(tmpReq, runtime) {
1389
+ tea_util_1.default.validateModel(tmpReq);
1390
+ let request = new BeeBotAssociateShrinkRequest({});
1391
+ openapi_util_1.default.convert(tmpReq, request);
1392
+ if (!tea_util_1.default.isUnset(tmpReq.perspective)) {
1393
+ request.perspectiveShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.perspective, "Perspective", "json");
1394
+ }
1395
+ let body = {};
1396
+ if (!tea_util_1.default.isUnset(request.chatBotInstanceId)) {
1397
+ body["ChatBotInstanceId"] = request.chatBotInstanceId;
1398
+ }
1399
+ if (!tea_util_1.default.isUnset(request.isvCode)) {
1400
+ body["IsvCode"] = request.isvCode;
1401
+ }
1402
+ if (!tea_util_1.default.isUnset(request.perspectiveShrink)) {
1403
+ body["Perspective"] = request.perspectiveShrink;
1404
+ }
1405
+ if (!tea_util_1.default.isUnset(request.recommendNum)) {
1406
+ body["RecommendNum"] = request.recommendNum;
1407
+ }
1408
+ if (!tea_util_1.default.isUnset(request.sessionId)) {
1409
+ body["SessionId"] = request.sessionId;
1410
+ }
1411
+ if (!tea_util_1.default.isUnset(request.utterance)) {
1412
+ body["Utterance"] = request.utterance;
1413
+ }
1414
+ let req = new $OpenApi.OpenApiRequest({
1415
+ body: openapi_util_1.default.parseToMap(body),
1416
+ });
1417
+ let params = new $OpenApi.Params({
1418
+ action: "BeeBotAssociate",
1419
+ version: "2020-06-06",
1420
+ protocol: "HTTPS",
1421
+ pathname: "/",
1422
+ method: "POST",
1423
+ authType: "AK",
1424
+ style: "RPC",
1425
+ reqBodyType: "formData",
1426
+ bodyType: "json",
1427
+ });
1428
+ return $tea.cast(await this.callApi(params, req, runtime), new BeeBotAssociateResponse({}));
1429
+ }
1430
+ async beeBotAssociate(request) {
1431
+ let runtime = new $Util.RuntimeOptions({});
1432
+ return await this.beeBotAssociateWithOptions(request, runtime);
1433
+ }
1434
+ async beeBotChatWithOptions(tmpReq, runtime) {
1435
+ tea_util_1.default.validateModel(tmpReq);
1436
+ let request = new BeeBotChatShrinkRequest({});
1437
+ openapi_util_1.default.convert(tmpReq, request);
1438
+ if (!tea_util_1.default.isUnset(tmpReq.perspective)) {
1439
+ request.perspectiveShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.perspective, "Perspective", "json");
1440
+ }
1441
+ if (!tea_util_1.default.isUnset(tmpReq.vendorParam)) {
1442
+ request.vendorParamShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.vendorParam, "VendorParam", "json");
1443
+ }
1444
+ let body = {};
1445
+ if (!tea_util_1.default.isUnset(request.chatBotInstanceId)) {
1446
+ body["ChatBotInstanceId"] = request.chatBotInstanceId;
1447
+ }
1448
+ if (!tea_util_1.default.isUnset(request.intentName)) {
1449
+ body["IntentName"] = request.intentName;
1450
+ }
1451
+ if (!tea_util_1.default.isUnset(request.isvCode)) {
1452
+ body["IsvCode"] = request.isvCode;
1453
+ }
1454
+ if (!tea_util_1.default.isUnset(request.knowledgeId)) {
1455
+ body["KnowledgeId"] = request.knowledgeId;
1456
+ }
1457
+ if (!tea_util_1.default.isUnset(request.perspectiveShrink)) {
1458
+ body["Perspective"] = request.perspectiveShrink;
1459
+ }
1460
+ if (!tea_util_1.default.isUnset(request.senderId)) {
1461
+ body["SenderId"] = request.senderId;
1462
+ }
1463
+ if (!tea_util_1.default.isUnset(request.senderNick)) {
1464
+ body["SenderNick"] = request.senderNick;
1465
+ }
1466
+ if (!tea_util_1.default.isUnset(request.sessionId)) {
1467
+ body["SessionId"] = request.sessionId;
1468
+ }
1469
+ if (!tea_util_1.default.isUnset(request.utterance)) {
1470
+ body["Utterance"] = request.utterance;
1471
+ }
1472
+ if (!tea_util_1.default.isUnset(request.vendorParamShrink)) {
1473
+ body["VendorParam"] = request.vendorParamShrink;
1474
+ }
1475
+ let req = new $OpenApi.OpenApiRequest({
1476
+ body: openapi_util_1.default.parseToMap(body),
1477
+ });
1478
+ let params = new $OpenApi.Params({
1479
+ action: "BeeBotChat",
1480
+ version: "2020-06-06",
1481
+ protocol: "HTTPS",
1482
+ pathname: "/",
1483
+ method: "POST",
1484
+ authType: "AK",
1485
+ style: "RPC",
1486
+ reqBodyType: "formData",
1487
+ bodyType: "json",
1488
+ });
1489
+ return $tea.cast(await this.callApi(params, req, runtime), new BeeBotChatResponse({}));
1490
+ }
1491
+ async beeBotChat(request) {
1492
+ let runtime = new $Util.RuntimeOptions({});
1493
+ return await this.beeBotChatWithOptions(request, runtime);
1494
+ }
806
1495
  async createChatappTemplateWithOptions(tmpReq, runtime) {
807
1496
  tea_util_1.default.validateModel(tmpReq);
808
1497
  let request = new CreateChatappTemplateShrinkRequest({});
@@ -971,6 +1660,55 @@ class Client extends openapi_client_1.default {
971
1660
  let runtime = new $Util.RuntimeOptions({});
972
1661
  return await this.listChatappTemplateWithOptions(request, runtime);
973
1662
  }
1663
+ async modifyChatappTemplateWithOptions(tmpReq, runtime) {
1664
+ tea_util_1.default.validateModel(tmpReq);
1665
+ let request = new ModifyChatappTemplateShrinkRequest({});
1666
+ openapi_util_1.default.convert(tmpReq, request);
1667
+ if (!tea_util_1.default.isUnset(tmpReq.components)) {
1668
+ request.componentsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.components, "Components", "json");
1669
+ }
1670
+ if (!tea_util_1.default.isUnset(tmpReq.example)) {
1671
+ request.exampleShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.example, "Example", "json");
1672
+ }
1673
+ let body = {};
1674
+ if (!tea_util_1.default.isUnset(request.componentsShrink)) {
1675
+ body["Components"] = request.componentsShrink;
1676
+ }
1677
+ if (!tea_util_1.default.isUnset(request.custWabaId)) {
1678
+ body["CustWabaId"] = request.custWabaId;
1679
+ }
1680
+ if (!tea_util_1.default.isUnset(request.exampleShrink)) {
1681
+ body["Example"] = request.exampleShrink;
1682
+ }
1683
+ if (!tea_util_1.default.isUnset(request.isvCode)) {
1684
+ body["IsvCode"] = request.isvCode;
1685
+ }
1686
+ if (!tea_util_1.default.isUnset(request.language)) {
1687
+ body["Language"] = request.language;
1688
+ }
1689
+ if (!tea_util_1.default.isUnset(request.templateCode)) {
1690
+ body["TemplateCode"] = request.templateCode;
1691
+ }
1692
+ let req = new $OpenApi.OpenApiRequest({
1693
+ body: openapi_util_1.default.parseToMap(body),
1694
+ });
1695
+ let params = new $OpenApi.Params({
1696
+ action: "ModifyChatappTemplate",
1697
+ version: "2020-06-06",
1698
+ protocol: "HTTPS",
1699
+ pathname: "/",
1700
+ method: "POST",
1701
+ authType: "AK",
1702
+ style: "RPC",
1703
+ reqBodyType: "formData",
1704
+ bodyType: "json",
1705
+ });
1706
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyChatappTemplateResponse({}));
1707
+ }
1708
+ async modifyChatappTemplate(request) {
1709
+ let runtime = new $Util.RuntimeOptions({});
1710
+ return await this.modifyChatappTemplateWithOptions(request, runtime);
1711
+ }
974
1712
  async sendChatappMassMessageWithOptions(tmpReq, runtime) {
975
1713
  tea_util_1.default.validateModel(tmpReq);
976
1714
  let request = new SendChatappMassMessageShrinkRequest({});