@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.d.ts +407 -0
- package/dist/client.js +738 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1034 -92
package/src/client.ts
CHANGED
|
@@ -8,6 +8,272 @@ 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 BeeBotAssociateRequest extends $tea.Model {
|
|
12
|
+
chatBotInstanceId?: string;
|
|
13
|
+
isvCode?: string;
|
|
14
|
+
perspective?: string[];
|
|
15
|
+
recommendNum?: number;
|
|
16
|
+
sessionId?: string;
|
|
17
|
+
utterance?: string;
|
|
18
|
+
static names(): { [key: string]: string } {
|
|
19
|
+
return {
|
|
20
|
+
chatBotInstanceId: 'ChatBotInstanceId',
|
|
21
|
+
isvCode: 'IsvCode',
|
|
22
|
+
perspective: 'Perspective',
|
|
23
|
+
recommendNum: 'RecommendNum',
|
|
24
|
+
sessionId: 'SessionId',
|
|
25
|
+
utterance: 'Utterance',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
chatBotInstanceId: 'string',
|
|
32
|
+
isvCode: 'string',
|
|
33
|
+
perspective: { 'type': 'array', 'itemType': 'string' },
|
|
34
|
+
recommendNum: 'number',
|
|
35
|
+
sessionId: 'string',
|
|
36
|
+
utterance: 'string',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export class BeeBotAssociateShrinkRequest extends $tea.Model {
|
|
46
|
+
chatBotInstanceId?: string;
|
|
47
|
+
isvCode?: string;
|
|
48
|
+
perspectiveShrink?: string;
|
|
49
|
+
recommendNum?: number;
|
|
50
|
+
sessionId?: string;
|
|
51
|
+
utterance?: string;
|
|
52
|
+
static names(): { [key: string]: string } {
|
|
53
|
+
return {
|
|
54
|
+
chatBotInstanceId: 'ChatBotInstanceId',
|
|
55
|
+
isvCode: 'IsvCode',
|
|
56
|
+
perspectiveShrink: 'Perspective',
|
|
57
|
+
recommendNum: 'RecommendNum',
|
|
58
|
+
sessionId: 'SessionId',
|
|
59
|
+
utterance: 'Utterance',
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
static types(): { [key: string]: any } {
|
|
64
|
+
return {
|
|
65
|
+
chatBotInstanceId: 'string',
|
|
66
|
+
isvCode: 'string',
|
|
67
|
+
perspectiveShrink: 'string',
|
|
68
|
+
recommendNum: 'number',
|
|
69
|
+
sessionId: 'string',
|
|
70
|
+
utterance: 'string',
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
constructor(map?: { [key: string]: any }) {
|
|
75
|
+
super(map);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export class BeeBotAssociateResponseBody extends $tea.Model {
|
|
80
|
+
code?: string;
|
|
81
|
+
data?: BeeBotAssociateResponseBodyData;
|
|
82
|
+
message?: string;
|
|
83
|
+
requestId?: string;
|
|
84
|
+
static names(): { [key: string]: string } {
|
|
85
|
+
return {
|
|
86
|
+
code: 'Code',
|
|
87
|
+
data: 'Data',
|
|
88
|
+
message: 'Message',
|
|
89
|
+
requestId: 'RequestId',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static types(): { [key: string]: any } {
|
|
94
|
+
return {
|
|
95
|
+
code: 'string',
|
|
96
|
+
data: BeeBotAssociateResponseBodyData,
|
|
97
|
+
message: 'string',
|
|
98
|
+
requestId: 'string',
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
constructor(map?: { [key: string]: any }) {
|
|
103
|
+
super(map);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export class BeeBotAssociateResponse extends $tea.Model {
|
|
108
|
+
headers: { [key: string]: string };
|
|
109
|
+
statusCode: number;
|
|
110
|
+
body: BeeBotAssociateResponseBody;
|
|
111
|
+
static names(): { [key: string]: string } {
|
|
112
|
+
return {
|
|
113
|
+
headers: 'headers',
|
|
114
|
+
statusCode: 'statusCode',
|
|
115
|
+
body: 'body',
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
static types(): { [key: string]: any } {
|
|
120
|
+
return {
|
|
121
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
122
|
+
statusCode: 'number',
|
|
123
|
+
body: BeeBotAssociateResponseBody,
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
constructor(map?: { [key: string]: any }) {
|
|
128
|
+
super(map);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export class BeeBotChatRequest extends $tea.Model {
|
|
133
|
+
chatBotInstanceId?: string;
|
|
134
|
+
intentName?: string;
|
|
135
|
+
isvCode?: string;
|
|
136
|
+
knowledgeId?: string;
|
|
137
|
+
perspective?: string[];
|
|
138
|
+
senderId?: string;
|
|
139
|
+
senderNick?: string;
|
|
140
|
+
sessionId?: string;
|
|
141
|
+
utterance?: string;
|
|
142
|
+
vendorParam?: { [key: string]: any };
|
|
143
|
+
static names(): { [key: string]: string } {
|
|
144
|
+
return {
|
|
145
|
+
chatBotInstanceId: 'ChatBotInstanceId',
|
|
146
|
+
intentName: 'IntentName',
|
|
147
|
+
isvCode: 'IsvCode',
|
|
148
|
+
knowledgeId: 'KnowledgeId',
|
|
149
|
+
perspective: 'Perspective',
|
|
150
|
+
senderId: 'SenderId',
|
|
151
|
+
senderNick: 'SenderNick',
|
|
152
|
+
sessionId: 'SessionId',
|
|
153
|
+
utterance: 'Utterance',
|
|
154
|
+
vendorParam: 'VendorParam',
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
static types(): { [key: string]: any } {
|
|
159
|
+
return {
|
|
160
|
+
chatBotInstanceId: 'string',
|
|
161
|
+
intentName: 'string',
|
|
162
|
+
isvCode: 'string',
|
|
163
|
+
knowledgeId: 'string',
|
|
164
|
+
perspective: { 'type': 'array', 'itemType': 'string' },
|
|
165
|
+
senderId: 'string',
|
|
166
|
+
senderNick: 'string',
|
|
167
|
+
sessionId: 'string',
|
|
168
|
+
utterance: 'string',
|
|
169
|
+
vendorParam: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
constructor(map?: { [key: string]: any }) {
|
|
174
|
+
super(map);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export class BeeBotChatShrinkRequest extends $tea.Model {
|
|
179
|
+
chatBotInstanceId?: string;
|
|
180
|
+
intentName?: string;
|
|
181
|
+
isvCode?: string;
|
|
182
|
+
knowledgeId?: string;
|
|
183
|
+
perspectiveShrink?: string;
|
|
184
|
+
senderId?: string;
|
|
185
|
+
senderNick?: string;
|
|
186
|
+
sessionId?: string;
|
|
187
|
+
utterance?: string;
|
|
188
|
+
vendorParamShrink?: string;
|
|
189
|
+
static names(): { [key: string]: string } {
|
|
190
|
+
return {
|
|
191
|
+
chatBotInstanceId: 'ChatBotInstanceId',
|
|
192
|
+
intentName: 'IntentName',
|
|
193
|
+
isvCode: 'IsvCode',
|
|
194
|
+
knowledgeId: 'KnowledgeId',
|
|
195
|
+
perspectiveShrink: 'Perspective',
|
|
196
|
+
senderId: 'SenderId',
|
|
197
|
+
senderNick: 'SenderNick',
|
|
198
|
+
sessionId: 'SessionId',
|
|
199
|
+
utterance: 'Utterance',
|
|
200
|
+
vendorParamShrink: 'VendorParam',
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
static types(): { [key: string]: any } {
|
|
205
|
+
return {
|
|
206
|
+
chatBotInstanceId: 'string',
|
|
207
|
+
intentName: 'string',
|
|
208
|
+
isvCode: 'string',
|
|
209
|
+
knowledgeId: 'string',
|
|
210
|
+
perspectiveShrink: 'string',
|
|
211
|
+
senderId: 'string',
|
|
212
|
+
senderNick: 'string',
|
|
213
|
+
sessionId: 'string',
|
|
214
|
+
utterance: 'string',
|
|
215
|
+
vendorParamShrink: 'string',
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
constructor(map?: { [key: string]: any }) {
|
|
220
|
+
super(map);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export class BeeBotChatResponseBody extends $tea.Model {
|
|
225
|
+
code?: string;
|
|
226
|
+
data?: BeeBotChatResponseBodyData;
|
|
227
|
+
message?: string;
|
|
228
|
+
requestId?: string;
|
|
229
|
+
static names(): { [key: string]: string } {
|
|
230
|
+
return {
|
|
231
|
+
code: 'Code',
|
|
232
|
+
data: 'Data',
|
|
233
|
+
message: 'Message',
|
|
234
|
+
requestId: 'RequestId',
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
static types(): { [key: string]: any } {
|
|
239
|
+
return {
|
|
240
|
+
code: 'string',
|
|
241
|
+
data: BeeBotChatResponseBodyData,
|
|
242
|
+
message: 'string',
|
|
243
|
+
requestId: 'string',
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
constructor(map?: { [key: string]: any }) {
|
|
248
|
+
super(map);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export class BeeBotChatResponse extends $tea.Model {
|
|
253
|
+
headers: { [key: string]: string };
|
|
254
|
+
statusCode: number;
|
|
255
|
+
body: BeeBotChatResponseBody;
|
|
256
|
+
static names(): { [key: string]: string } {
|
|
257
|
+
return {
|
|
258
|
+
headers: 'headers',
|
|
259
|
+
statusCode: 'statusCode',
|
|
260
|
+
body: 'body',
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
static types(): { [key: string]: any } {
|
|
265
|
+
return {
|
|
266
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
267
|
+
statusCode: 'number',
|
|
268
|
+
body: BeeBotChatResponseBody,
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
constructor(map?: { [key: string]: any }) {
|
|
273
|
+
super(map);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
11
277
|
export class CreateChatappTemplateRequest extends $tea.Model {
|
|
12
278
|
category?: string;
|
|
13
279
|
components?: CreateChatappTemplateRequestComponents[];
|
|
@@ -418,43 +684,31 @@ export class ListChatappTemplateResponse extends $tea.Model {
|
|
|
418
684
|
}
|
|
419
685
|
}
|
|
420
686
|
|
|
421
|
-
export class
|
|
422
|
-
|
|
687
|
+
export class ModifyChatappTemplateRequest extends $tea.Model {
|
|
688
|
+
components?: ModifyChatappTemplateRequestComponents[];
|
|
423
689
|
custWabaId?: string;
|
|
424
|
-
|
|
425
|
-
fallBackId?: string;
|
|
426
|
-
from?: string;
|
|
690
|
+
example?: { [key: string]: string };
|
|
427
691
|
isvCode?: string;
|
|
428
692
|
language?: string;
|
|
429
|
-
senderList?: SendChatappMassMessageRequestSenderList[];
|
|
430
|
-
taskId?: string;
|
|
431
693
|
templateCode?: string;
|
|
432
694
|
static names(): { [key: string]: string } {
|
|
433
695
|
return {
|
|
434
|
-
|
|
696
|
+
components: 'Components',
|
|
435
697
|
custWabaId: 'CustWabaId',
|
|
436
|
-
|
|
437
|
-
fallBackId: 'FallBackId',
|
|
438
|
-
from: 'From',
|
|
698
|
+
example: 'Example',
|
|
439
699
|
isvCode: 'IsvCode',
|
|
440
700
|
language: 'Language',
|
|
441
|
-
senderList: 'SenderList',
|
|
442
|
-
taskId: 'TaskId',
|
|
443
701
|
templateCode: 'TemplateCode',
|
|
444
702
|
};
|
|
445
703
|
}
|
|
446
704
|
|
|
447
705
|
static types(): { [key: string]: any } {
|
|
448
706
|
return {
|
|
449
|
-
|
|
707
|
+
components: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponents },
|
|
450
708
|
custWabaId: 'string',
|
|
451
|
-
|
|
452
|
-
fallBackId: 'string',
|
|
453
|
-
from: 'string',
|
|
709
|
+
example: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
454
710
|
isvCode: 'string',
|
|
455
711
|
language: 'string',
|
|
456
|
-
senderList: { 'type': 'array', 'itemType': SendChatappMassMessageRequestSenderList },
|
|
457
|
-
taskId: 'string',
|
|
458
712
|
templateCode: 'string',
|
|
459
713
|
};
|
|
460
714
|
}
|
|
@@ -464,43 +718,31 @@ export class SendChatappMassMessageRequest extends $tea.Model {
|
|
|
464
718
|
}
|
|
465
719
|
}
|
|
466
720
|
|
|
467
|
-
export class
|
|
468
|
-
|
|
721
|
+
export class ModifyChatappTemplateShrinkRequest extends $tea.Model {
|
|
722
|
+
componentsShrink?: string;
|
|
469
723
|
custWabaId?: string;
|
|
470
|
-
|
|
471
|
-
fallBackId?: string;
|
|
472
|
-
from?: string;
|
|
724
|
+
exampleShrink?: string;
|
|
473
725
|
isvCode?: string;
|
|
474
726
|
language?: string;
|
|
475
|
-
senderListShrink?: string;
|
|
476
|
-
taskId?: string;
|
|
477
727
|
templateCode?: string;
|
|
478
728
|
static names(): { [key: string]: string } {
|
|
479
729
|
return {
|
|
480
|
-
|
|
730
|
+
componentsShrink: 'Components',
|
|
481
731
|
custWabaId: 'CustWabaId',
|
|
482
|
-
|
|
483
|
-
fallBackId: 'FallBackId',
|
|
484
|
-
from: 'From',
|
|
732
|
+
exampleShrink: 'Example',
|
|
485
733
|
isvCode: 'IsvCode',
|
|
486
734
|
language: 'Language',
|
|
487
|
-
senderListShrink: 'SenderList',
|
|
488
|
-
taskId: 'TaskId',
|
|
489
735
|
templateCode: 'TemplateCode',
|
|
490
736
|
};
|
|
491
737
|
}
|
|
492
738
|
|
|
493
739
|
static types(): { [key: string]: any } {
|
|
494
740
|
return {
|
|
495
|
-
|
|
741
|
+
componentsShrink: 'string',
|
|
496
742
|
custWabaId: 'string',
|
|
497
|
-
|
|
498
|
-
fallBackId: 'string',
|
|
499
|
-
from: 'string',
|
|
743
|
+
exampleShrink: 'string',
|
|
500
744
|
isvCode: 'string',
|
|
501
745
|
language: 'string',
|
|
502
|
-
senderListShrink: 'string',
|
|
503
|
-
taskId: 'string',
|
|
504
746
|
templateCode: 'string',
|
|
505
747
|
};
|
|
506
748
|
}
|
|
@@ -510,15 +752,15 @@ export class SendChatappMassMessageShrinkRequest extends $tea.Model {
|
|
|
510
752
|
}
|
|
511
753
|
}
|
|
512
754
|
|
|
513
|
-
export class
|
|
755
|
+
export class ModifyChatappTemplateResponseBody extends $tea.Model {
|
|
514
756
|
code?: string;
|
|
515
|
-
|
|
757
|
+
data?: ModifyChatappTemplateResponseBodyData;
|
|
516
758
|
message?: string;
|
|
517
759
|
requestId?: string;
|
|
518
760
|
static names(): { [key: string]: string } {
|
|
519
761
|
return {
|
|
520
762
|
code: 'Code',
|
|
521
|
-
|
|
763
|
+
data: 'Data',
|
|
522
764
|
message: 'Message',
|
|
523
765
|
requestId: 'RequestId',
|
|
524
766
|
};
|
|
@@ -527,7 +769,7 @@ export class SendChatappMassMessageResponseBody extends $tea.Model {
|
|
|
527
769
|
static types(): { [key: string]: any } {
|
|
528
770
|
return {
|
|
529
771
|
code: 'string',
|
|
530
|
-
|
|
772
|
+
data: ModifyChatappTemplateResponseBodyData,
|
|
531
773
|
message: 'string',
|
|
532
774
|
requestId: 'string',
|
|
533
775
|
};
|
|
@@ -538,10 +780,10 @@ export class SendChatappMassMessageResponseBody extends $tea.Model {
|
|
|
538
780
|
}
|
|
539
781
|
}
|
|
540
782
|
|
|
541
|
-
export class
|
|
783
|
+
export class ModifyChatappTemplateResponse extends $tea.Model {
|
|
542
784
|
headers: { [key: string]: string };
|
|
543
785
|
statusCode: number;
|
|
544
|
-
body:
|
|
786
|
+
body: ModifyChatappTemplateResponseBody;
|
|
545
787
|
static names(): { [key: string]: string } {
|
|
546
788
|
return {
|
|
547
789
|
headers: 'headers',
|
|
@@ -554,7 +796,7 @@ export class SendChatappMassMessageResponse extends $tea.Model {
|
|
|
554
796
|
return {
|
|
555
797
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
556
798
|
statusCode: 'number',
|
|
557
|
-
body:
|
|
799
|
+
body: ModifyChatappTemplateResponseBody,
|
|
558
800
|
};
|
|
559
801
|
}
|
|
560
802
|
|
|
@@ -563,56 +805,44 @@ export class SendChatappMassMessageResponse extends $tea.Model {
|
|
|
563
805
|
}
|
|
564
806
|
}
|
|
565
807
|
|
|
566
|
-
export class
|
|
808
|
+
export class SendChatappMassMessageRequest extends $tea.Model {
|
|
567
809
|
channelType?: string;
|
|
568
|
-
content?: string;
|
|
569
810
|
custWabaId?: string;
|
|
570
811
|
fallBackContent?: string;
|
|
571
812
|
fallBackId?: string;
|
|
572
813
|
from?: string;
|
|
573
814
|
isvCode?: string;
|
|
574
815
|
language?: string;
|
|
575
|
-
|
|
576
|
-
|
|
816
|
+
senderList?: SendChatappMassMessageRequestSenderList[];
|
|
817
|
+
taskId?: string;
|
|
577
818
|
templateCode?: string;
|
|
578
|
-
templateParams?: { [key: string]: string };
|
|
579
|
-
to?: string;
|
|
580
|
-
type?: string;
|
|
581
819
|
static names(): { [key: string]: string } {
|
|
582
820
|
return {
|
|
583
821
|
channelType: 'ChannelType',
|
|
584
|
-
content: 'Content',
|
|
585
822
|
custWabaId: 'CustWabaId',
|
|
586
823
|
fallBackContent: 'FallBackContent',
|
|
587
824
|
fallBackId: 'FallBackId',
|
|
588
825
|
from: 'From',
|
|
589
826
|
isvCode: 'IsvCode',
|
|
590
827
|
language: 'Language',
|
|
591
|
-
|
|
592
|
-
|
|
828
|
+
senderList: 'SenderList',
|
|
829
|
+
taskId: 'TaskId',
|
|
593
830
|
templateCode: 'TemplateCode',
|
|
594
|
-
templateParams: 'TemplateParams',
|
|
595
|
-
to: 'To',
|
|
596
|
-
type: 'Type',
|
|
597
831
|
};
|
|
598
832
|
}
|
|
599
833
|
|
|
600
834
|
static types(): { [key: string]: any } {
|
|
601
835
|
return {
|
|
602
836
|
channelType: 'string',
|
|
603
|
-
content: 'string',
|
|
604
837
|
custWabaId: 'string',
|
|
605
838
|
fallBackContent: 'string',
|
|
606
839
|
fallBackId: 'string',
|
|
607
840
|
from: 'string',
|
|
608
841
|
isvCode: 'string',
|
|
609
842
|
language: 'string',
|
|
610
|
-
|
|
611
|
-
|
|
843
|
+
senderList: { 'type': 'array', 'itemType': SendChatappMassMessageRequestSenderList },
|
|
844
|
+
taskId: 'string',
|
|
612
845
|
templateCode: 'string',
|
|
613
|
-
templateParams: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
614
|
-
to: 'string',
|
|
615
|
-
type: 'string',
|
|
616
846
|
};
|
|
617
847
|
}
|
|
618
848
|
|
|
@@ -621,19 +851,176 @@ export class SendChatappMessageRequest extends $tea.Model {
|
|
|
621
851
|
}
|
|
622
852
|
}
|
|
623
853
|
|
|
624
|
-
export class
|
|
854
|
+
export class SendChatappMassMessageShrinkRequest extends $tea.Model {
|
|
625
855
|
channelType?: string;
|
|
626
|
-
content?: string;
|
|
627
856
|
custWabaId?: string;
|
|
628
857
|
fallBackContent?: string;
|
|
629
858
|
fallBackId?: string;
|
|
630
859
|
from?: string;
|
|
631
860
|
isvCode?: string;
|
|
632
861
|
language?: string;
|
|
633
|
-
|
|
634
|
-
|
|
862
|
+
senderListShrink?: string;
|
|
863
|
+
taskId?: string;
|
|
635
864
|
templateCode?: string;
|
|
636
|
-
|
|
865
|
+
static names(): { [key: string]: string } {
|
|
866
|
+
return {
|
|
867
|
+
channelType: 'ChannelType',
|
|
868
|
+
custWabaId: 'CustWabaId',
|
|
869
|
+
fallBackContent: 'FallBackContent',
|
|
870
|
+
fallBackId: 'FallBackId',
|
|
871
|
+
from: 'From',
|
|
872
|
+
isvCode: 'IsvCode',
|
|
873
|
+
language: 'Language',
|
|
874
|
+
senderListShrink: 'SenderList',
|
|
875
|
+
taskId: 'TaskId',
|
|
876
|
+
templateCode: 'TemplateCode',
|
|
877
|
+
};
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
static types(): { [key: string]: any } {
|
|
881
|
+
return {
|
|
882
|
+
channelType: 'string',
|
|
883
|
+
custWabaId: 'string',
|
|
884
|
+
fallBackContent: 'string',
|
|
885
|
+
fallBackId: 'string',
|
|
886
|
+
from: 'string',
|
|
887
|
+
isvCode: 'string',
|
|
888
|
+
language: 'string',
|
|
889
|
+
senderListShrink: 'string',
|
|
890
|
+
taskId: 'string',
|
|
891
|
+
templateCode: 'string',
|
|
892
|
+
};
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
constructor(map?: { [key: string]: any }) {
|
|
896
|
+
super(map);
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
export class SendChatappMassMessageResponseBody extends $tea.Model {
|
|
901
|
+
code?: string;
|
|
902
|
+
groupMessageId?: string;
|
|
903
|
+
message?: string;
|
|
904
|
+
requestId?: string;
|
|
905
|
+
static names(): { [key: string]: string } {
|
|
906
|
+
return {
|
|
907
|
+
code: 'Code',
|
|
908
|
+
groupMessageId: 'GroupMessageId',
|
|
909
|
+
message: 'Message',
|
|
910
|
+
requestId: 'RequestId',
|
|
911
|
+
};
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
static types(): { [key: string]: any } {
|
|
915
|
+
return {
|
|
916
|
+
code: 'string',
|
|
917
|
+
groupMessageId: 'string',
|
|
918
|
+
message: 'string',
|
|
919
|
+
requestId: 'string',
|
|
920
|
+
};
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
constructor(map?: { [key: string]: any }) {
|
|
924
|
+
super(map);
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
export class SendChatappMassMessageResponse extends $tea.Model {
|
|
929
|
+
headers: { [key: string]: string };
|
|
930
|
+
statusCode: number;
|
|
931
|
+
body: SendChatappMassMessageResponseBody;
|
|
932
|
+
static names(): { [key: string]: string } {
|
|
933
|
+
return {
|
|
934
|
+
headers: 'headers',
|
|
935
|
+
statusCode: 'statusCode',
|
|
936
|
+
body: 'body',
|
|
937
|
+
};
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
static types(): { [key: string]: any } {
|
|
941
|
+
return {
|
|
942
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
943
|
+
statusCode: 'number',
|
|
944
|
+
body: SendChatappMassMessageResponseBody,
|
|
945
|
+
};
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
constructor(map?: { [key: string]: any }) {
|
|
949
|
+
super(map);
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
export class SendChatappMessageRequest extends $tea.Model {
|
|
954
|
+
channelType?: string;
|
|
955
|
+
content?: string;
|
|
956
|
+
custWabaId?: string;
|
|
957
|
+
fallBackContent?: string;
|
|
958
|
+
fallBackId?: string;
|
|
959
|
+
from?: string;
|
|
960
|
+
isvCode?: string;
|
|
961
|
+
language?: string;
|
|
962
|
+
messageType?: string;
|
|
963
|
+
payload?: string[];
|
|
964
|
+
templateCode?: string;
|
|
965
|
+
templateParams?: { [key: string]: string };
|
|
966
|
+
to?: string;
|
|
967
|
+
type?: string;
|
|
968
|
+
static names(): { [key: string]: string } {
|
|
969
|
+
return {
|
|
970
|
+
channelType: 'ChannelType',
|
|
971
|
+
content: 'Content',
|
|
972
|
+
custWabaId: 'CustWabaId',
|
|
973
|
+
fallBackContent: 'FallBackContent',
|
|
974
|
+
fallBackId: 'FallBackId',
|
|
975
|
+
from: 'From',
|
|
976
|
+
isvCode: 'IsvCode',
|
|
977
|
+
language: 'Language',
|
|
978
|
+
messageType: 'MessageType',
|
|
979
|
+
payload: 'Payload',
|
|
980
|
+
templateCode: 'TemplateCode',
|
|
981
|
+
templateParams: 'TemplateParams',
|
|
982
|
+
to: 'To',
|
|
983
|
+
type: 'Type',
|
|
984
|
+
};
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
static types(): { [key: string]: any } {
|
|
988
|
+
return {
|
|
989
|
+
channelType: 'string',
|
|
990
|
+
content: 'string',
|
|
991
|
+
custWabaId: 'string',
|
|
992
|
+
fallBackContent: 'string',
|
|
993
|
+
fallBackId: 'string',
|
|
994
|
+
from: 'string',
|
|
995
|
+
isvCode: 'string',
|
|
996
|
+
language: 'string',
|
|
997
|
+
messageType: 'string',
|
|
998
|
+
payload: { 'type': 'array', 'itemType': 'string' },
|
|
999
|
+
templateCode: 'string',
|
|
1000
|
+
templateParams: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1001
|
+
to: 'string',
|
|
1002
|
+
type: 'string',
|
|
1003
|
+
};
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
constructor(map?: { [key: string]: any }) {
|
|
1007
|
+
super(map);
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
export class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
1012
|
+
channelType?: string;
|
|
1013
|
+
content?: string;
|
|
1014
|
+
custWabaId?: string;
|
|
1015
|
+
fallBackContent?: string;
|
|
1016
|
+
fallBackId?: string;
|
|
1017
|
+
from?: string;
|
|
1018
|
+
isvCode?: string;
|
|
1019
|
+
language?: string;
|
|
1020
|
+
messageType?: string;
|
|
1021
|
+
payloadShrink?: string;
|
|
1022
|
+
templateCode?: string;
|
|
1023
|
+
templateParamsShrink?: string;
|
|
637
1024
|
to?: string;
|
|
638
1025
|
type?: string;
|
|
639
1026
|
static names(): { [key: string]: string } {
|
|
@@ -679,26 +1066,302 @@ export class SendChatappMessageShrinkRequest extends $tea.Model {
|
|
|
679
1066
|
}
|
|
680
1067
|
}
|
|
681
1068
|
|
|
682
|
-
export class SendChatappMessageResponseBody extends $tea.Model {
|
|
683
|
-
code?: string;
|
|
684
|
-
message?: string;
|
|
685
|
-
messageId?: string;
|
|
686
|
-
requestId?: string;
|
|
1069
|
+
export class SendChatappMessageResponseBody extends $tea.Model {
|
|
1070
|
+
code?: string;
|
|
1071
|
+
message?: string;
|
|
1072
|
+
messageId?: string;
|
|
1073
|
+
requestId?: string;
|
|
1074
|
+
static names(): { [key: string]: string } {
|
|
1075
|
+
return {
|
|
1076
|
+
code: 'Code',
|
|
1077
|
+
message: 'Message',
|
|
1078
|
+
messageId: 'MessageId',
|
|
1079
|
+
requestId: 'RequestId',
|
|
1080
|
+
};
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
static types(): { [key: string]: any } {
|
|
1084
|
+
return {
|
|
1085
|
+
code: 'string',
|
|
1086
|
+
message: 'string',
|
|
1087
|
+
messageId: 'string',
|
|
1088
|
+
requestId: 'string',
|
|
1089
|
+
};
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
constructor(map?: { [key: string]: any }) {
|
|
1093
|
+
super(map);
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
export class SendChatappMessageResponse extends $tea.Model {
|
|
1098
|
+
headers: { [key: string]: string };
|
|
1099
|
+
statusCode: number;
|
|
1100
|
+
body: SendChatappMessageResponseBody;
|
|
1101
|
+
static names(): { [key: string]: string } {
|
|
1102
|
+
return {
|
|
1103
|
+
headers: 'headers',
|
|
1104
|
+
statusCode: 'statusCode',
|
|
1105
|
+
body: 'body',
|
|
1106
|
+
};
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
static types(): { [key: string]: any } {
|
|
1110
|
+
return {
|
|
1111
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1112
|
+
statusCode: 'number',
|
|
1113
|
+
body: SendChatappMessageResponseBody,
|
|
1114
|
+
};
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
constructor(map?: { [key: string]: any }) {
|
|
1118
|
+
super(map);
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
export class BeeBotAssociateResponseBodyDataAssociate extends $tea.Model {
|
|
1123
|
+
meta?: string;
|
|
1124
|
+
title?: string;
|
|
1125
|
+
static names(): { [key: string]: string } {
|
|
1126
|
+
return {
|
|
1127
|
+
meta: 'Meta',
|
|
1128
|
+
title: 'Title',
|
|
1129
|
+
};
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
static types(): { [key: string]: any } {
|
|
1133
|
+
return {
|
|
1134
|
+
meta: 'string',
|
|
1135
|
+
title: 'string',
|
|
1136
|
+
};
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
constructor(map?: { [key: string]: any }) {
|
|
1140
|
+
super(map);
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
export class BeeBotAssociateResponseBodyData extends $tea.Model {
|
|
1145
|
+
associate?: BeeBotAssociateResponseBodyDataAssociate[];
|
|
1146
|
+
messageId?: string;
|
|
1147
|
+
sessionId?: string;
|
|
1148
|
+
static names(): { [key: string]: string } {
|
|
1149
|
+
return {
|
|
1150
|
+
associate: 'Associate',
|
|
1151
|
+
messageId: 'MessageId',
|
|
1152
|
+
sessionId: 'SessionId',
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
static types(): { [key: string]: any } {
|
|
1157
|
+
return {
|
|
1158
|
+
associate: { 'type': 'array', 'itemType': BeeBotAssociateResponseBodyDataAssociate },
|
|
1159
|
+
messageId: 'string',
|
|
1160
|
+
sessionId: 'string',
|
|
1161
|
+
};
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
constructor(map?: { [key: string]: any }) {
|
|
1165
|
+
super(map);
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
export class BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges extends $tea.Model {
|
|
1170
|
+
knowledgeId?: string;
|
|
1171
|
+
title?: string;
|
|
1172
|
+
static names(): { [key: string]: string } {
|
|
1173
|
+
return {
|
|
1174
|
+
knowledgeId: 'KnowledgeId',
|
|
1175
|
+
title: 'Title',
|
|
1176
|
+
};
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
static types(): { [key: string]: any } {
|
|
1180
|
+
return {
|
|
1181
|
+
knowledgeId: 'string',
|
|
1182
|
+
title: 'string',
|
|
1183
|
+
};
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
constructor(map?: { [key: string]: any }) {
|
|
1187
|
+
super(map);
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
export class BeeBotChatResponseBodyDataMessagesKnowledge extends $tea.Model {
|
|
1192
|
+
answerSource?: string;
|
|
1193
|
+
category?: string;
|
|
1194
|
+
content?: string;
|
|
1195
|
+
contentType?: string;
|
|
1196
|
+
hitStatement?: string;
|
|
1197
|
+
id?: string;
|
|
1198
|
+
relatedKnowledges?: BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges[];
|
|
1199
|
+
summary?: string;
|
|
1200
|
+
title?: string;
|
|
1201
|
+
static names(): { [key: string]: string } {
|
|
1202
|
+
return {
|
|
1203
|
+
answerSource: 'AnswerSource',
|
|
1204
|
+
category: 'Category',
|
|
1205
|
+
content: 'Content',
|
|
1206
|
+
contentType: 'ContentType',
|
|
1207
|
+
hitStatement: 'HitStatement',
|
|
1208
|
+
id: 'Id',
|
|
1209
|
+
relatedKnowledges: 'RelatedKnowledges',
|
|
1210
|
+
summary: 'Summary',
|
|
1211
|
+
title: 'Title',
|
|
1212
|
+
};
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
static types(): { [key: string]: any } {
|
|
1216
|
+
return {
|
|
1217
|
+
answerSource: 'string',
|
|
1218
|
+
category: 'string',
|
|
1219
|
+
content: 'string',
|
|
1220
|
+
contentType: 'string',
|
|
1221
|
+
hitStatement: 'string',
|
|
1222
|
+
id: 'string',
|
|
1223
|
+
relatedKnowledges: { 'type': 'array', 'itemType': BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges },
|
|
1224
|
+
summary: 'string',
|
|
1225
|
+
title: 'string',
|
|
1226
|
+
};
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
constructor(map?: { [key: string]: any }) {
|
|
1230
|
+
super(map);
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
export class BeeBotChatResponseBodyDataMessagesRecommends extends $tea.Model {
|
|
1235
|
+
answerSource?: string;
|
|
1236
|
+
knowledgeId?: string;
|
|
1237
|
+
title?: string;
|
|
1238
|
+
static names(): { [key: string]: string } {
|
|
1239
|
+
return {
|
|
1240
|
+
answerSource: 'AnswerSource',
|
|
1241
|
+
knowledgeId: 'KnowledgeId',
|
|
1242
|
+
title: 'Title',
|
|
1243
|
+
};
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
static types(): { [key: string]: any } {
|
|
1247
|
+
return {
|
|
1248
|
+
answerSource: 'string',
|
|
1249
|
+
knowledgeId: 'string',
|
|
1250
|
+
title: 'string',
|
|
1251
|
+
};
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
constructor(map?: { [key: string]: any }) {
|
|
1255
|
+
super(map);
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
export class BeeBotChatResponseBodyDataMessagesTextSlots extends $tea.Model {
|
|
1260
|
+
hit?: boolean;
|
|
1261
|
+
name?: string;
|
|
1262
|
+
origin?: string;
|
|
1263
|
+
value?: string;
|
|
1264
|
+
static names(): { [key: string]: string } {
|
|
1265
|
+
return {
|
|
1266
|
+
hit: 'Hit',
|
|
1267
|
+
name: 'Name',
|
|
1268
|
+
origin: 'Origin',
|
|
1269
|
+
value: 'Value',
|
|
1270
|
+
};
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
static types(): { [key: string]: any } {
|
|
1274
|
+
return {
|
|
1275
|
+
hit: 'boolean',
|
|
1276
|
+
name: 'string',
|
|
1277
|
+
origin: 'string',
|
|
1278
|
+
value: 'string',
|
|
1279
|
+
};
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
constructor(map?: { [key: string]: any }) {
|
|
1283
|
+
super(map);
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
export class BeeBotChatResponseBodyDataMessagesText extends $tea.Model {
|
|
1288
|
+
answerSource?: string;
|
|
1289
|
+
content?: string;
|
|
1290
|
+
contentType?: string;
|
|
1291
|
+
dialogName?: string;
|
|
1292
|
+
ext?: { [key: string]: any };
|
|
1293
|
+
externalFlags?: { [key: string]: any };
|
|
1294
|
+
hitStatement?: string;
|
|
1295
|
+
intentName?: string;
|
|
1296
|
+
metaData?: string;
|
|
1297
|
+
nodeId?: string;
|
|
1298
|
+
nodeName?: string;
|
|
1299
|
+
slots?: BeeBotChatResponseBodyDataMessagesTextSlots[];
|
|
1300
|
+
userDefinedChatTitle?: string;
|
|
1301
|
+
static names(): { [key: string]: string } {
|
|
1302
|
+
return {
|
|
1303
|
+
answerSource: 'AnswerSource',
|
|
1304
|
+
content: 'Content',
|
|
1305
|
+
contentType: 'ContentType',
|
|
1306
|
+
dialogName: 'DialogName',
|
|
1307
|
+
ext: 'Ext',
|
|
1308
|
+
externalFlags: 'ExternalFlags',
|
|
1309
|
+
hitStatement: 'HitStatement',
|
|
1310
|
+
intentName: 'IntentName',
|
|
1311
|
+
metaData: 'MetaData',
|
|
1312
|
+
nodeId: 'NodeId',
|
|
1313
|
+
nodeName: 'NodeName',
|
|
1314
|
+
slots: 'Slots',
|
|
1315
|
+
userDefinedChatTitle: 'UserDefinedChatTitle',
|
|
1316
|
+
};
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
static types(): { [key: string]: any } {
|
|
1320
|
+
return {
|
|
1321
|
+
answerSource: 'string',
|
|
1322
|
+
content: 'string',
|
|
1323
|
+
contentType: 'string',
|
|
1324
|
+
dialogName: 'string',
|
|
1325
|
+
ext: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1326
|
+
externalFlags: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1327
|
+
hitStatement: 'string',
|
|
1328
|
+
intentName: 'string',
|
|
1329
|
+
metaData: 'string',
|
|
1330
|
+
nodeId: 'string',
|
|
1331
|
+
nodeName: 'string',
|
|
1332
|
+
slots: { 'type': 'array', 'itemType': BeeBotChatResponseBodyDataMessagesTextSlots },
|
|
1333
|
+
userDefinedChatTitle: 'string',
|
|
1334
|
+
};
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
constructor(map?: { [key: string]: any }) {
|
|
1338
|
+
super(map);
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
export class BeeBotChatResponseBodyDataMessages extends $tea.Model {
|
|
1343
|
+
answerSource?: string;
|
|
1344
|
+
answerType?: string;
|
|
1345
|
+
knowledge?: BeeBotChatResponseBodyDataMessagesKnowledge;
|
|
1346
|
+
recommends?: BeeBotChatResponseBodyDataMessagesRecommends[];
|
|
1347
|
+
text?: BeeBotChatResponseBodyDataMessagesText;
|
|
687
1348
|
static names(): { [key: string]: string } {
|
|
688
1349
|
return {
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
1350
|
+
answerSource: 'AnswerSource',
|
|
1351
|
+
answerType: 'AnswerType',
|
|
1352
|
+
knowledge: 'Knowledge',
|
|
1353
|
+
recommends: 'Recommends',
|
|
1354
|
+
text: 'Text',
|
|
693
1355
|
};
|
|
694
1356
|
}
|
|
695
1357
|
|
|
696
1358
|
static types(): { [key: string]: any } {
|
|
697
1359
|
return {
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
1360
|
+
answerSource: 'string',
|
|
1361
|
+
answerType: 'string',
|
|
1362
|
+
knowledge: BeeBotChatResponseBodyDataMessagesKnowledge,
|
|
1363
|
+
recommends: { 'type': 'array', 'itemType': BeeBotChatResponseBodyDataMessagesRecommends },
|
|
1364
|
+
text: BeeBotChatResponseBodyDataMessagesText,
|
|
702
1365
|
};
|
|
703
1366
|
}
|
|
704
1367
|
|
|
@@ -707,23 +1370,23 @@ export class SendChatappMessageResponseBody extends $tea.Model {
|
|
|
707
1370
|
}
|
|
708
1371
|
}
|
|
709
1372
|
|
|
710
|
-
export class
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
1373
|
+
export class BeeBotChatResponseBodyData extends $tea.Model {
|
|
1374
|
+
messageId?: string;
|
|
1375
|
+
messages?: BeeBotChatResponseBodyDataMessages[];
|
|
1376
|
+
sessionId?: string;
|
|
714
1377
|
static names(): { [key: string]: string } {
|
|
715
1378
|
return {
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
1379
|
+
messageId: 'MessageId',
|
|
1380
|
+
messages: 'Messages',
|
|
1381
|
+
sessionId: 'SessionId',
|
|
719
1382
|
};
|
|
720
1383
|
}
|
|
721
1384
|
|
|
722
1385
|
static types(): { [key: string]: any } {
|
|
723
1386
|
return {
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
1387
|
+
messageId: 'string',
|
|
1388
|
+
messages: { 'type': 'array', 'itemType': BeeBotChatResponseBodyDataMessages },
|
|
1389
|
+
sessionId: 'string',
|
|
727
1390
|
};
|
|
728
1391
|
}
|
|
729
1392
|
|
|
@@ -980,6 +1643,96 @@ export class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
|
|
|
980
1643
|
}
|
|
981
1644
|
}
|
|
982
1645
|
|
|
1646
|
+
export class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
1647
|
+
phoneNumber?: string;
|
|
1648
|
+
text?: string;
|
|
1649
|
+
type?: string;
|
|
1650
|
+
url?: string;
|
|
1651
|
+
urlType?: string;
|
|
1652
|
+
static names(): { [key: string]: string } {
|
|
1653
|
+
return {
|
|
1654
|
+
phoneNumber: 'PhoneNumber',
|
|
1655
|
+
text: 'Text',
|
|
1656
|
+
type: 'Type',
|
|
1657
|
+
url: 'Url',
|
|
1658
|
+
urlType: 'UrlType',
|
|
1659
|
+
};
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
static types(): { [key: string]: any } {
|
|
1663
|
+
return {
|
|
1664
|
+
phoneNumber: 'string',
|
|
1665
|
+
text: 'string',
|
|
1666
|
+
type: 'string',
|
|
1667
|
+
url: 'string',
|
|
1668
|
+
urlType: 'string',
|
|
1669
|
+
};
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
constructor(map?: { [key: string]: any }) {
|
|
1673
|
+
super(map);
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
export class ModifyChatappTemplateRequestComponents extends $tea.Model {
|
|
1678
|
+
buttons?: ModifyChatappTemplateRequestComponentsButtons[];
|
|
1679
|
+
caption?: string;
|
|
1680
|
+
fileName?: string;
|
|
1681
|
+
format?: string;
|
|
1682
|
+
text?: string;
|
|
1683
|
+
type?: string;
|
|
1684
|
+
url?: string;
|
|
1685
|
+
static names(): { [key: string]: string } {
|
|
1686
|
+
return {
|
|
1687
|
+
buttons: 'Buttons',
|
|
1688
|
+
caption: 'Caption',
|
|
1689
|
+
fileName: 'FileName',
|
|
1690
|
+
format: 'Format',
|
|
1691
|
+
text: 'Text',
|
|
1692
|
+
type: 'Type',
|
|
1693
|
+
url: 'Url',
|
|
1694
|
+
};
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
static types(): { [key: string]: any } {
|
|
1698
|
+
return {
|
|
1699
|
+
buttons: { 'type': 'array', 'itemType': ModifyChatappTemplateRequestComponentsButtons },
|
|
1700
|
+
caption: 'string',
|
|
1701
|
+
fileName: 'string',
|
|
1702
|
+
format: 'string',
|
|
1703
|
+
text: 'string',
|
|
1704
|
+
type: 'string',
|
|
1705
|
+
url: 'string',
|
|
1706
|
+
};
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
constructor(map?: { [key: string]: any }) {
|
|
1710
|
+
super(map);
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
export class ModifyChatappTemplateResponseBodyData extends $tea.Model {
|
|
1715
|
+
templateCode?: string;
|
|
1716
|
+
templateName?: string;
|
|
1717
|
+
static names(): { [key: string]: string } {
|
|
1718
|
+
return {
|
|
1719
|
+
templateCode: 'TemplateCode',
|
|
1720
|
+
templateName: 'TemplateName',
|
|
1721
|
+
};
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
static types(): { [key: string]: any } {
|
|
1725
|
+
return {
|
|
1726
|
+
templateCode: 'string',
|
|
1727
|
+
templateName: 'string',
|
|
1728
|
+
};
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
constructor(map?: { [key: string]: any }) {
|
|
1732
|
+
super(map);
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
|
|
983
1736
|
export class SendChatappMassMessageRequestSenderList extends $tea.Model {
|
|
984
1737
|
payload?: string[];
|
|
985
1738
|
templateParams?: { [key: string]: string };
|
|
@@ -1028,6 +1781,136 @@ export default class Client extends OpenApi {
|
|
|
1028
1781
|
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
1029
1782
|
}
|
|
1030
1783
|
|
|
1784
|
+
async beeBotAssociateWithOptions(tmpReq: BeeBotAssociateRequest, runtime: $Util.RuntimeOptions): Promise<BeeBotAssociateResponse> {
|
|
1785
|
+
Util.validateModel(tmpReq);
|
|
1786
|
+
let request = new BeeBotAssociateShrinkRequest({ });
|
|
1787
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1788
|
+
if (!Util.isUnset(tmpReq.perspective)) {
|
|
1789
|
+
request.perspectiveShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.perspective, "Perspective", "json");
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
let body : {[key: string ]: any} = { };
|
|
1793
|
+
if (!Util.isUnset(request.chatBotInstanceId)) {
|
|
1794
|
+
body["ChatBotInstanceId"] = request.chatBotInstanceId;
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
if (!Util.isUnset(request.isvCode)) {
|
|
1798
|
+
body["IsvCode"] = request.isvCode;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
if (!Util.isUnset(request.perspectiveShrink)) {
|
|
1802
|
+
body["Perspective"] = request.perspectiveShrink;
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
if (!Util.isUnset(request.recommendNum)) {
|
|
1806
|
+
body["RecommendNum"] = request.recommendNum;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
if (!Util.isUnset(request.sessionId)) {
|
|
1810
|
+
body["SessionId"] = request.sessionId;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
if (!Util.isUnset(request.utterance)) {
|
|
1814
|
+
body["Utterance"] = request.utterance;
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1818
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1819
|
+
});
|
|
1820
|
+
let params = new $OpenApi.Params({
|
|
1821
|
+
action: "BeeBotAssociate",
|
|
1822
|
+
version: "2020-06-06",
|
|
1823
|
+
protocol: "HTTPS",
|
|
1824
|
+
pathname: "/",
|
|
1825
|
+
method: "POST",
|
|
1826
|
+
authType: "AK",
|
|
1827
|
+
style: "RPC",
|
|
1828
|
+
reqBodyType: "formData",
|
|
1829
|
+
bodyType: "json",
|
|
1830
|
+
});
|
|
1831
|
+
return $tea.cast<BeeBotAssociateResponse>(await this.callApi(params, req, runtime), new BeeBotAssociateResponse({}));
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
async beeBotAssociate(request: BeeBotAssociateRequest): Promise<BeeBotAssociateResponse> {
|
|
1835
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1836
|
+
return await this.beeBotAssociateWithOptions(request, runtime);
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
async beeBotChatWithOptions(tmpReq: BeeBotChatRequest, runtime: $Util.RuntimeOptions): Promise<BeeBotChatResponse> {
|
|
1840
|
+
Util.validateModel(tmpReq);
|
|
1841
|
+
let request = new BeeBotChatShrinkRequest({ });
|
|
1842
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1843
|
+
if (!Util.isUnset(tmpReq.perspective)) {
|
|
1844
|
+
request.perspectiveShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.perspective, "Perspective", "json");
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
if (!Util.isUnset(tmpReq.vendorParam)) {
|
|
1848
|
+
request.vendorParamShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.vendorParam, "VendorParam", "json");
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
let body : {[key: string ]: any} = { };
|
|
1852
|
+
if (!Util.isUnset(request.chatBotInstanceId)) {
|
|
1853
|
+
body["ChatBotInstanceId"] = request.chatBotInstanceId;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
if (!Util.isUnset(request.intentName)) {
|
|
1857
|
+
body["IntentName"] = request.intentName;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
if (!Util.isUnset(request.isvCode)) {
|
|
1861
|
+
body["IsvCode"] = request.isvCode;
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
if (!Util.isUnset(request.knowledgeId)) {
|
|
1865
|
+
body["KnowledgeId"] = request.knowledgeId;
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
if (!Util.isUnset(request.perspectiveShrink)) {
|
|
1869
|
+
body["Perspective"] = request.perspectiveShrink;
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
if (!Util.isUnset(request.senderId)) {
|
|
1873
|
+
body["SenderId"] = request.senderId;
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
if (!Util.isUnset(request.senderNick)) {
|
|
1877
|
+
body["SenderNick"] = request.senderNick;
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
if (!Util.isUnset(request.sessionId)) {
|
|
1881
|
+
body["SessionId"] = request.sessionId;
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
if (!Util.isUnset(request.utterance)) {
|
|
1885
|
+
body["Utterance"] = request.utterance;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
if (!Util.isUnset(request.vendorParamShrink)) {
|
|
1889
|
+
body["VendorParam"] = request.vendorParamShrink;
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1893
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1894
|
+
});
|
|
1895
|
+
let params = new $OpenApi.Params({
|
|
1896
|
+
action: "BeeBotChat",
|
|
1897
|
+
version: "2020-06-06",
|
|
1898
|
+
protocol: "HTTPS",
|
|
1899
|
+
pathname: "/",
|
|
1900
|
+
method: "POST",
|
|
1901
|
+
authType: "AK",
|
|
1902
|
+
style: "RPC",
|
|
1903
|
+
reqBodyType: "formData",
|
|
1904
|
+
bodyType: "json",
|
|
1905
|
+
});
|
|
1906
|
+
return $tea.cast<BeeBotChatResponse>(await this.callApi(params, req, runtime), new BeeBotChatResponse({}));
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
async beeBotChat(request: BeeBotChatRequest): Promise<BeeBotChatResponse> {
|
|
1910
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1911
|
+
return await this.beeBotChatWithOptions(request, runtime);
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1031
1914
|
async createChatappTemplateWithOptions(tmpReq: CreateChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<CreateChatappTemplateResponse> {
|
|
1032
1915
|
Util.validateModel(tmpReq);
|
|
1033
1916
|
let request = new CreateChatappTemplateShrinkRequest({ });
|
|
@@ -1228,6 +2111,65 @@ export default class Client extends OpenApi {
|
|
|
1228
2111
|
return await this.listChatappTemplateWithOptions(request, runtime);
|
|
1229
2112
|
}
|
|
1230
2113
|
|
|
2114
|
+
async modifyChatappTemplateWithOptions(tmpReq: ModifyChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<ModifyChatappTemplateResponse> {
|
|
2115
|
+
Util.validateModel(tmpReq);
|
|
2116
|
+
let request = new ModifyChatappTemplateShrinkRequest({ });
|
|
2117
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2118
|
+
if (!Util.isUnset(tmpReq.components)) {
|
|
2119
|
+
request.componentsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.components, "Components", "json");
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
if (!Util.isUnset(tmpReq.example)) {
|
|
2123
|
+
request.exampleShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.example, "Example", "json");
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
let body : {[key: string ]: any} = { };
|
|
2127
|
+
if (!Util.isUnset(request.componentsShrink)) {
|
|
2128
|
+
body["Components"] = request.componentsShrink;
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
if (!Util.isUnset(request.custWabaId)) {
|
|
2132
|
+
body["CustWabaId"] = request.custWabaId;
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
if (!Util.isUnset(request.exampleShrink)) {
|
|
2136
|
+
body["Example"] = request.exampleShrink;
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2139
|
+
if (!Util.isUnset(request.isvCode)) {
|
|
2140
|
+
body["IsvCode"] = request.isvCode;
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
if (!Util.isUnset(request.language)) {
|
|
2144
|
+
body["Language"] = request.language;
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
if (!Util.isUnset(request.templateCode)) {
|
|
2148
|
+
body["TemplateCode"] = request.templateCode;
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2152
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2153
|
+
});
|
|
2154
|
+
let params = new $OpenApi.Params({
|
|
2155
|
+
action: "ModifyChatappTemplate",
|
|
2156
|
+
version: "2020-06-06",
|
|
2157
|
+
protocol: "HTTPS",
|
|
2158
|
+
pathname: "/",
|
|
2159
|
+
method: "POST",
|
|
2160
|
+
authType: "AK",
|
|
2161
|
+
style: "RPC",
|
|
2162
|
+
reqBodyType: "formData",
|
|
2163
|
+
bodyType: "json",
|
|
2164
|
+
});
|
|
2165
|
+
return $tea.cast<ModifyChatappTemplateResponse>(await this.callApi(params, req, runtime), new ModifyChatappTemplateResponse({}));
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
async modifyChatappTemplate(request: ModifyChatappTemplateRequest): Promise<ModifyChatappTemplateResponse> {
|
|
2169
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2170
|
+
return await this.modifyChatappTemplateWithOptions(request, runtime);
|
|
2171
|
+
}
|
|
2172
|
+
|
|
1231
2173
|
async sendChatappMassMessageWithOptions(tmpReq: SendChatappMassMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendChatappMassMessageResponse> {
|
|
1232
2174
|
Util.validateModel(tmpReq);
|
|
1233
2175
|
let request = new SendChatappMassMessageShrinkRequest({ });
|