@alicloud/cams20200606 1.0.10 → 1.0.12
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.d.ts +360 -19
- package/dist/client.js +680 -48
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +919 -101
package/dist/client.js
CHANGED
|
@@ -19,51 +19,59 @@ 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
|
|
22
|
+
class BeeBotAssociateRequest extends $tea.Model {
|
|
23
23
|
constructor(map) {
|
|
24
24
|
super(map);
|
|
25
25
|
}
|
|
26
26
|
static names() {
|
|
27
27
|
return {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
chatBotInstnaceId: 'ChatBotInstnaceId',
|
|
29
|
+
isvCode: 'IsvCode',
|
|
30
|
+
perspective: 'Perspective',
|
|
31
|
+
recommendNum: 'RecommendNum',
|
|
32
|
+
sessionId: 'SessionId',
|
|
33
|
+
utterance: 'Utterance',
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
static types() {
|
|
35
37
|
return {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
chatBotInstnaceId: 'string',
|
|
39
|
+
isvCode: 'string',
|
|
40
|
+
perspective: { 'type': 'array', 'itemType': 'string' },
|
|
41
|
+
recommendNum: 'number',
|
|
42
|
+
sessionId: 'string',
|
|
43
|
+
utterance: 'string',
|
|
40
44
|
};
|
|
41
45
|
}
|
|
42
46
|
}
|
|
43
|
-
exports.
|
|
44
|
-
class
|
|
47
|
+
exports.BeeBotAssociateRequest = BeeBotAssociateRequest;
|
|
48
|
+
class BeeBotAssociateShrinkRequest extends $tea.Model {
|
|
45
49
|
constructor(map) {
|
|
46
50
|
super(map);
|
|
47
51
|
}
|
|
48
52
|
static names() {
|
|
49
53
|
return {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
chatBotInstnaceId: 'ChatBotInstnaceId',
|
|
55
|
+
isvCode: 'IsvCode',
|
|
56
|
+
perspectiveShrink: 'Perspective',
|
|
57
|
+
recommendNum: 'RecommendNum',
|
|
58
|
+
sessionId: 'SessionId',
|
|
59
|
+
utterance: 'Utterance',
|
|
54
60
|
};
|
|
55
61
|
}
|
|
56
62
|
static types() {
|
|
57
63
|
return {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
64
|
+
chatBotInstnaceId: 'string',
|
|
65
|
+
isvCode: 'string',
|
|
66
|
+
perspectiveShrink: 'string',
|
|
67
|
+
recommendNum: 'number',
|
|
68
|
+
sessionId: 'string',
|
|
69
|
+
utterance: 'string',
|
|
62
70
|
};
|
|
63
71
|
}
|
|
64
72
|
}
|
|
65
|
-
exports.
|
|
66
|
-
class
|
|
73
|
+
exports.BeeBotAssociateShrinkRequest = BeeBotAssociateShrinkRequest;
|
|
74
|
+
class BeeBotAssociateResponseBody extends $tea.Model {
|
|
67
75
|
constructor(map) {
|
|
68
76
|
super(map);
|
|
69
77
|
}
|
|
@@ -78,14 +86,14 @@ class CheckChatappContactsResponseBody extends $tea.Model {
|
|
|
78
86
|
static types() {
|
|
79
87
|
return {
|
|
80
88
|
code: 'string',
|
|
81
|
-
data:
|
|
89
|
+
data: BeeBotAssociateResponseBodyData,
|
|
82
90
|
message: 'string',
|
|
83
91
|
requestId: 'string',
|
|
84
92
|
};
|
|
85
93
|
}
|
|
86
94
|
}
|
|
87
|
-
exports.
|
|
88
|
-
class
|
|
95
|
+
exports.BeeBotAssociateResponseBody = BeeBotAssociateResponseBody;
|
|
96
|
+
class BeeBotAssociateResponse extends $tea.Model {
|
|
89
97
|
constructor(map) {
|
|
90
98
|
super(map);
|
|
91
99
|
}
|
|
@@ -100,11 +108,121 @@ class CheckChatappContactsResponse extends $tea.Model {
|
|
|
100
108
|
return {
|
|
101
109
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
102
110
|
statusCode: 'number',
|
|
103
|
-
body:
|
|
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
|
+
chatBotInstnaceId: 'ChatBotInstnaceId',
|
|
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
|
+
chatBotInstnaceId: '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
|
+
chatBotInstnaceId: 'ChatBotInstnaceId',
|
|
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
|
+
chatBotInstnaceId: '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',
|
|
104
180
|
};
|
|
105
181
|
}
|
|
106
182
|
}
|
|
107
|
-
exports.
|
|
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;
|
|
108
226
|
class CreateChatappTemplateRequest extends $tea.Model {
|
|
109
227
|
constructor(map) {
|
|
110
228
|
super(map);
|
|
@@ -115,6 +233,7 @@ class CreateChatappTemplateRequest extends $tea.Model {
|
|
|
115
233
|
components: 'Components',
|
|
116
234
|
custWabaId: 'CustWabaId',
|
|
117
235
|
example: 'Example',
|
|
236
|
+
isvCode: 'IsvCode',
|
|
118
237
|
language: 'Language',
|
|
119
238
|
name: 'Name',
|
|
120
239
|
templateType: 'TemplateType',
|
|
@@ -126,6 +245,7 @@ class CreateChatappTemplateRequest extends $tea.Model {
|
|
|
126
245
|
components: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponents },
|
|
127
246
|
custWabaId: 'string',
|
|
128
247
|
example: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
248
|
+
isvCode: 'string',
|
|
129
249
|
language: 'string',
|
|
130
250
|
name: 'string',
|
|
131
251
|
templateType: 'string',
|
|
@@ -143,6 +263,7 @@ class CreateChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
143
263
|
componentsShrink: 'Components',
|
|
144
264
|
custWabaId: 'CustWabaId',
|
|
145
265
|
exampleShrink: 'Example',
|
|
266
|
+
isvCode: 'IsvCode',
|
|
146
267
|
language: 'Language',
|
|
147
268
|
name: 'Name',
|
|
148
269
|
templateType: 'TemplateType',
|
|
@@ -154,6 +275,7 @@ class CreateChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
154
275
|
componentsShrink: 'string',
|
|
155
276
|
custWabaId: 'string',
|
|
156
277
|
exampleShrink: 'string',
|
|
278
|
+
isvCode: 'string',
|
|
157
279
|
language: 'string',
|
|
158
280
|
name: 'string',
|
|
159
281
|
templateType: 'string',
|
|
@@ -210,12 +332,14 @@ class DeleteChatappTemplateRequest extends $tea.Model {
|
|
|
210
332
|
static names() {
|
|
211
333
|
return {
|
|
212
334
|
custWabaId: 'CustWabaId',
|
|
335
|
+
isvCode: 'IsvCode',
|
|
213
336
|
templateCode: 'TemplateCode',
|
|
214
337
|
};
|
|
215
338
|
}
|
|
216
339
|
static types() {
|
|
217
340
|
return {
|
|
218
341
|
custWabaId: 'string',
|
|
342
|
+
isvCode: 'string',
|
|
219
343
|
templateCode: 'string',
|
|
220
344
|
};
|
|
221
345
|
}
|
|
@@ -268,6 +392,7 @@ class GetChatappTemplateDetailRequest extends $tea.Model {
|
|
|
268
392
|
static names() {
|
|
269
393
|
return {
|
|
270
394
|
custWabaId: 'CustWabaId',
|
|
395
|
+
isvCode: 'IsvCode',
|
|
271
396
|
language: 'Language',
|
|
272
397
|
templateCode: 'TemplateCode',
|
|
273
398
|
};
|
|
@@ -275,6 +400,7 @@ class GetChatappTemplateDetailRequest extends $tea.Model {
|
|
|
275
400
|
static types() {
|
|
276
401
|
return {
|
|
277
402
|
custWabaId: 'string',
|
|
403
|
+
isvCode: 'string',
|
|
278
404
|
language: 'string',
|
|
279
405
|
templateCode: 'string',
|
|
280
406
|
};
|
|
@@ -331,6 +457,7 @@ class ListChatappTemplateRequest extends $tea.Model {
|
|
|
331
457
|
return {
|
|
332
458
|
auditStatus: 'AuditStatus',
|
|
333
459
|
custWabaId: 'CustWabaId',
|
|
460
|
+
isvCode: 'IsvCode',
|
|
334
461
|
language: 'Language',
|
|
335
462
|
name: 'Name',
|
|
336
463
|
page: 'Page',
|
|
@@ -340,6 +467,7 @@ class ListChatappTemplateRequest extends $tea.Model {
|
|
|
340
467
|
return {
|
|
341
468
|
auditStatus: 'string',
|
|
342
469
|
custWabaId: 'string',
|
|
470
|
+
isvCode: 'string',
|
|
343
471
|
language: 'string',
|
|
344
472
|
name: 'string',
|
|
345
473
|
page: ListChatappTemplateRequestPage,
|
|
@@ -355,6 +483,7 @@ class ListChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
355
483
|
return {
|
|
356
484
|
auditStatus: 'AuditStatus',
|
|
357
485
|
custWabaId: 'CustWabaId',
|
|
486
|
+
isvCode: 'IsvCode',
|
|
358
487
|
language: 'Language',
|
|
359
488
|
name: 'Name',
|
|
360
489
|
pageShrink: 'Page',
|
|
@@ -364,6 +493,7 @@ class ListChatappTemplateShrinkRequest extends $tea.Model {
|
|
|
364
493
|
return {
|
|
365
494
|
auditStatus: 'string',
|
|
366
495
|
custWabaId: 'string',
|
|
496
|
+
isvCode: 'string',
|
|
367
497
|
language: 'string',
|
|
368
498
|
name: 'string',
|
|
369
499
|
pageShrink: 'string',
|
|
@@ -413,6 +543,100 @@ class ListChatappTemplateResponse extends $tea.Model {
|
|
|
413
543
|
}
|
|
414
544
|
}
|
|
415
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;
|
|
416
640
|
class SendChatappMassMessageRequest extends $tea.Model {
|
|
417
641
|
constructor(map) {
|
|
418
642
|
super(map);
|
|
@@ -424,6 +648,7 @@ class SendChatappMassMessageRequest extends $tea.Model {
|
|
|
424
648
|
fallBackContent: 'FallBackContent',
|
|
425
649
|
fallBackId: 'FallBackId',
|
|
426
650
|
from: 'From',
|
|
651
|
+
isvCode: 'IsvCode',
|
|
427
652
|
language: 'Language',
|
|
428
653
|
senderList: 'SenderList',
|
|
429
654
|
taskId: 'TaskId',
|
|
@@ -437,6 +662,7 @@ class SendChatappMassMessageRequest extends $tea.Model {
|
|
|
437
662
|
fallBackContent: 'string',
|
|
438
663
|
fallBackId: 'string',
|
|
439
664
|
from: 'string',
|
|
665
|
+
isvCode: 'string',
|
|
440
666
|
language: 'string',
|
|
441
667
|
senderList: { 'type': 'array', 'itemType': SendChatappMassMessageRequestSenderList },
|
|
442
668
|
taskId: 'string',
|
|
@@ -456,6 +682,7 @@ class SendChatappMassMessageShrinkRequest extends $tea.Model {
|
|
|
456
682
|
fallBackContent: 'FallBackContent',
|
|
457
683
|
fallBackId: 'FallBackId',
|
|
458
684
|
from: 'From',
|
|
685
|
+
isvCode: 'IsvCode',
|
|
459
686
|
language: 'Language',
|
|
460
687
|
senderListShrink: 'SenderList',
|
|
461
688
|
taskId: 'TaskId',
|
|
@@ -469,6 +696,7 @@ class SendChatappMassMessageShrinkRequest extends $tea.Model {
|
|
|
469
696
|
fallBackContent: 'string',
|
|
470
697
|
fallBackId: 'string',
|
|
471
698
|
from: 'string',
|
|
699
|
+
isvCode: 'string',
|
|
472
700
|
language: 'string',
|
|
473
701
|
senderListShrink: 'string',
|
|
474
702
|
taskId: 'string',
|
|
@@ -531,6 +759,7 @@ class SendChatappMessageRequest extends $tea.Model {
|
|
|
531
759
|
fallBackContent: 'FallBackContent',
|
|
532
760
|
fallBackId: 'FallBackId',
|
|
533
761
|
from: 'From',
|
|
762
|
+
isvCode: 'IsvCode',
|
|
534
763
|
language: 'Language',
|
|
535
764
|
messageType: 'MessageType',
|
|
536
765
|
payload: 'Payload',
|
|
@@ -548,6 +777,7 @@ class SendChatappMessageRequest extends $tea.Model {
|
|
|
548
777
|
fallBackContent: 'string',
|
|
549
778
|
fallBackId: 'string',
|
|
550
779
|
from: 'string',
|
|
780
|
+
isvCode: 'string',
|
|
551
781
|
language: 'string',
|
|
552
782
|
messageType: 'string',
|
|
553
783
|
payload: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -571,6 +801,7 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
|
571
801
|
fallBackContent: 'FallBackContent',
|
|
572
802
|
fallBackId: 'FallBackId',
|
|
573
803
|
from: 'From',
|
|
804
|
+
isvCode: 'IsvCode',
|
|
574
805
|
language: 'Language',
|
|
575
806
|
messageType: 'MessageType',
|
|
576
807
|
payloadShrink: 'Payload',
|
|
@@ -588,6 +819,7 @@ class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
|
588
819
|
fallBackContent: 'string',
|
|
589
820
|
fallBackId: 'string',
|
|
590
821
|
from: 'string',
|
|
822
|
+
isvCode: 'string',
|
|
591
823
|
language: 'string',
|
|
592
824
|
messageType: 'string',
|
|
593
825
|
payloadShrink: 'string',
|
|
@@ -641,24 +873,220 @@ class SendChatappMessageResponse extends $tea.Model {
|
|
|
641
873
|
}
|
|
642
874
|
}
|
|
643
875
|
exports.SendChatappMessageResponse = SendChatappMessageResponse;
|
|
644
|
-
class
|
|
876
|
+
class BeeBotAssociateResponseBodyDataAssociate extends $tea.Model {
|
|
645
877
|
constructor(map) {
|
|
646
878
|
super(map);
|
|
647
879
|
}
|
|
648
880
|
static names() {
|
|
649
881
|
return {
|
|
650
|
-
|
|
651
|
-
|
|
882
|
+
meta: 'Meta',
|
|
883
|
+
title: 'Title',
|
|
652
884
|
};
|
|
653
885
|
}
|
|
654
886
|
static types() {
|
|
655
887
|
return {
|
|
656
|
-
|
|
657
|
-
|
|
888
|
+
meta: 'string',
|
|
889
|
+
title: 'string',
|
|
658
890
|
};
|
|
659
891
|
}
|
|
660
892
|
}
|
|
661
|
-
exports.
|
|
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;
|
|
662
1090
|
class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
663
1091
|
constructor(map) {
|
|
664
1092
|
super(map);
|
|
@@ -851,6 +1279,76 @@ class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
|
|
|
851
1279
|
}
|
|
852
1280
|
}
|
|
853
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;
|
|
854
1352
|
class SendChatappMassMessageRequestSenderList extends $tea.Model {
|
|
855
1353
|
constructor(map) {
|
|
856
1354
|
super(map);
|
|
@@ -887,31 +1385,98 @@ class Client extends openapi_client_1.default {
|
|
|
887
1385
|
}
|
|
888
1386
|
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
889
1387
|
}
|
|
890
|
-
async
|
|
1388
|
+
async beeBotAssociateWithOptions(tmpReq, runtime) {
|
|
891
1389
|
tea_util_1.default.validateModel(tmpReq);
|
|
892
|
-
let request = new
|
|
1390
|
+
let request = new BeeBotAssociateShrinkRequest({});
|
|
893
1391
|
openapi_util_1.default.convert(tmpReq, request);
|
|
894
|
-
if (!tea_util_1.default.isUnset(tmpReq.
|
|
895
|
-
request.
|
|
1392
|
+
if (!tea_util_1.default.isUnset(tmpReq.perspective)) {
|
|
1393
|
+
request.perspectiveShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.perspective, "Perspective", "json");
|
|
896
1394
|
}
|
|
897
1395
|
let body = {};
|
|
898
|
-
if (!tea_util_1.default.isUnset(request.
|
|
899
|
-
body["
|
|
1396
|
+
if (!tea_util_1.default.isUnset(request.chatBotInstnaceId)) {
|
|
1397
|
+
body["ChatBotInstnaceId"] = request.chatBotInstnaceId;
|
|
900
1398
|
}
|
|
901
|
-
if (!tea_util_1.default.isUnset(request.
|
|
902
|
-
body["
|
|
1399
|
+
if (!tea_util_1.default.isUnset(request.isvCode)) {
|
|
1400
|
+
body["IsvCode"] = request.isvCode;
|
|
903
1401
|
}
|
|
904
|
-
if (!tea_util_1.default.isUnset(request.
|
|
905
|
-
body["
|
|
1402
|
+
if (!tea_util_1.default.isUnset(request.perspectiveShrink)) {
|
|
1403
|
+
body["Perspective"] = request.perspectiveShrink;
|
|
906
1404
|
}
|
|
907
|
-
if (!tea_util_1.default.isUnset(request.
|
|
908
|
-
body["
|
|
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.chatBotInstnaceId)) {
|
|
1446
|
+
body["ChatBotInstnaceId"] = request.chatBotInstnaceId;
|
|
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;
|
|
909
1474
|
}
|
|
910
1475
|
let req = new $OpenApi.OpenApiRequest({
|
|
911
1476
|
body: openapi_util_1.default.parseToMap(body),
|
|
912
1477
|
});
|
|
913
1478
|
let params = new $OpenApi.Params({
|
|
914
|
-
action: "
|
|
1479
|
+
action: "BeeBotChat",
|
|
915
1480
|
version: "2020-06-06",
|
|
916
1481
|
protocol: "HTTPS",
|
|
917
1482
|
pathname: "/",
|
|
@@ -921,11 +1486,11 @@ class Client extends openapi_client_1.default {
|
|
|
921
1486
|
reqBodyType: "formData",
|
|
922
1487
|
bodyType: "json",
|
|
923
1488
|
});
|
|
924
|
-
return $tea.cast(await this.callApi(params, req, runtime), new
|
|
1489
|
+
return $tea.cast(await this.callApi(params, req, runtime), new BeeBotChatResponse({}));
|
|
925
1490
|
}
|
|
926
|
-
async
|
|
1491
|
+
async beeBotChat(request) {
|
|
927
1492
|
let runtime = new $Util.RuntimeOptions({});
|
|
928
|
-
return await this.
|
|
1493
|
+
return await this.beeBotChatWithOptions(request, runtime);
|
|
929
1494
|
}
|
|
930
1495
|
async createChatappTemplateWithOptions(tmpReq, runtime) {
|
|
931
1496
|
tea_util_1.default.validateModel(tmpReq);
|
|
@@ -950,6 +1515,9 @@ class Client extends openapi_client_1.default {
|
|
|
950
1515
|
if (!tea_util_1.default.isUnset(request.exampleShrink)) {
|
|
951
1516
|
body["Example"] = request.exampleShrink;
|
|
952
1517
|
}
|
|
1518
|
+
if (!tea_util_1.default.isUnset(request.isvCode)) {
|
|
1519
|
+
body["IsvCode"] = request.isvCode;
|
|
1520
|
+
}
|
|
953
1521
|
if (!tea_util_1.default.isUnset(request.language)) {
|
|
954
1522
|
body["Language"] = request.language;
|
|
955
1523
|
}
|
|
@@ -985,6 +1553,9 @@ class Client extends openapi_client_1.default {
|
|
|
985
1553
|
if (!tea_util_1.default.isUnset(request.custWabaId)) {
|
|
986
1554
|
query["CustWabaId"] = request.custWabaId;
|
|
987
1555
|
}
|
|
1556
|
+
if (!tea_util_1.default.isUnset(request.isvCode)) {
|
|
1557
|
+
query["IsvCode"] = request.isvCode;
|
|
1558
|
+
}
|
|
988
1559
|
if (!tea_util_1.default.isUnset(request.templateCode)) {
|
|
989
1560
|
query["TemplateCode"] = request.templateCode;
|
|
990
1561
|
}
|
|
@@ -1014,6 +1585,9 @@ class Client extends openapi_client_1.default {
|
|
|
1014
1585
|
if (!tea_util_1.default.isUnset(request.custWabaId)) {
|
|
1015
1586
|
query["CustWabaId"] = request.custWabaId;
|
|
1016
1587
|
}
|
|
1588
|
+
if (!tea_util_1.default.isUnset(request.isvCode)) {
|
|
1589
|
+
query["IsvCode"] = request.isvCode;
|
|
1590
|
+
}
|
|
1017
1591
|
if (!tea_util_1.default.isUnset(request.language)) {
|
|
1018
1592
|
query["Language"] = request.language;
|
|
1019
1593
|
}
|
|
@@ -1054,6 +1628,9 @@ class Client extends openapi_client_1.default {
|
|
|
1054
1628
|
if (!tea_util_1.default.isUnset(request.custWabaId)) {
|
|
1055
1629
|
query["CustWabaId"] = request.custWabaId;
|
|
1056
1630
|
}
|
|
1631
|
+
if (!tea_util_1.default.isUnset(request.isvCode)) {
|
|
1632
|
+
query["IsvCode"] = request.isvCode;
|
|
1633
|
+
}
|
|
1057
1634
|
if (!tea_util_1.default.isUnset(request.language)) {
|
|
1058
1635
|
query["Language"] = request.language;
|
|
1059
1636
|
}
|
|
@@ -1083,6 +1660,55 @@ class Client extends openapi_client_1.default {
|
|
|
1083
1660
|
let runtime = new $Util.RuntimeOptions({});
|
|
1084
1661
|
return await this.listChatappTemplateWithOptions(request, runtime);
|
|
1085
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
|
+
}
|
|
1086
1712
|
async sendChatappMassMessageWithOptions(tmpReq, runtime) {
|
|
1087
1713
|
tea_util_1.default.validateModel(tmpReq);
|
|
1088
1714
|
let request = new SendChatappMassMessageShrinkRequest({});
|
|
@@ -1106,6 +1732,9 @@ class Client extends openapi_client_1.default {
|
|
|
1106
1732
|
if (!tea_util_1.default.isUnset(request.from)) {
|
|
1107
1733
|
body["From"] = request.from;
|
|
1108
1734
|
}
|
|
1735
|
+
if (!tea_util_1.default.isUnset(request.isvCode)) {
|
|
1736
|
+
body["IsvCode"] = request.isvCode;
|
|
1737
|
+
}
|
|
1109
1738
|
if (!tea_util_1.default.isUnset(request.language)) {
|
|
1110
1739
|
body["Language"] = request.language;
|
|
1111
1740
|
}
|
|
@@ -1171,6 +1800,9 @@ class Client extends openapi_client_1.default {
|
|
|
1171
1800
|
if (!tea_util_1.default.isUnset(request.from)) {
|
|
1172
1801
|
body["From"] = request.from;
|
|
1173
1802
|
}
|
|
1803
|
+
if (!tea_util_1.default.isUnset(request.isvCode)) {
|
|
1804
|
+
body["IsvCode"] = request.isvCode;
|
|
1805
|
+
}
|
|
1174
1806
|
if (!tea_util_1.default.isUnset(request.language)) {
|
|
1175
1807
|
body["Language"] = request.language;
|
|
1176
1808
|
}
|