@alicloud/cams20200606 1.0.11 → 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 +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/dist/client.d.ts
CHANGED
|
@@ -4,6 +4,146 @@
|
|
|
4
4
|
import * as $Util from '@alicloud/tea-util';
|
|
5
5
|
import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
|
|
6
6
|
import * as $tea from '@alicloud/tea-typescript';
|
|
7
|
+
export declare class BeeBotAssociateRequest extends $tea.Model {
|
|
8
|
+
chatBotInstnaceId?: string;
|
|
9
|
+
isvCode?: string;
|
|
10
|
+
perspective?: string[];
|
|
11
|
+
recommendNum?: number;
|
|
12
|
+
sessionId?: string;
|
|
13
|
+
utterance?: string;
|
|
14
|
+
static names(): {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
17
|
+
static types(): {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
constructor(map?: {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export declare class BeeBotAssociateShrinkRequest extends $tea.Model {
|
|
25
|
+
chatBotInstnaceId?: string;
|
|
26
|
+
isvCode?: string;
|
|
27
|
+
perspectiveShrink?: string;
|
|
28
|
+
recommendNum?: number;
|
|
29
|
+
sessionId?: string;
|
|
30
|
+
utterance?: string;
|
|
31
|
+
static names(): {
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
};
|
|
34
|
+
static types(): {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
};
|
|
37
|
+
constructor(map?: {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
export declare class BeeBotAssociateResponseBody extends $tea.Model {
|
|
42
|
+
code?: string;
|
|
43
|
+
data?: BeeBotAssociateResponseBodyData;
|
|
44
|
+
message?: string;
|
|
45
|
+
requestId?: string;
|
|
46
|
+
static names(): {
|
|
47
|
+
[key: string]: string;
|
|
48
|
+
};
|
|
49
|
+
static types(): {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
};
|
|
52
|
+
constructor(map?: {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
export declare class BeeBotAssociateResponse extends $tea.Model {
|
|
57
|
+
headers: {
|
|
58
|
+
[key: string]: string;
|
|
59
|
+
};
|
|
60
|
+
statusCode: number;
|
|
61
|
+
body: BeeBotAssociateResponseBody;
|
|
62
|
+
static names(): {
|
|
63
|
+
[key: string]: string;
|
|
64
|
+
};
|
|
65
|
+
static types(): {
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
};
|
|
68
|
+
constructor(map?: {
|
|
69
|
+
[key: string]: any;
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
export declare class BeeBotChatRequest extends $tea.Model {
|
|
73
|
+
chatBotInstnaceId?: string;
|
|
74
|
+
intentName?: string;
|
|
75
|
+
isvCode?: string;
|
|
76
|
+
knowledgeId?: string;
|
|
77
|
+
perspective?: string[];
|
|
78
|
+
senderId?: string;
|
|
79
|
+
senderNick?: string;
|
|
80
|
+
sessionId?: string;
|
|
81
|
+
utterance?: string;
|
|
82
|
+
vendorParam?: {
|
|
83
|
+
[key: string]: any;
|
|
84
|
+
};
|
|
85
|
+
static names(): {
|
|
86
|
+
[key: string]: string;
|
|
87
|
+
};
|
|
88
|
+
static types(): {
|
|
89
|
+
[key: string]: any;
|
|
90
|
+
};
|
|
91
|
+
constructor(map?: {
|
|
92
|
+
[key: string]: any;
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
export declare class BeeBotChatShrinkRequest extends $tea.Model {
|
|
96
|
+
chatBotInstnaceId?: string;
|
|
97
|
+
intentName?: string;
|
|
98
|
+
isvCode?: string;
|
|
99
|
+
knowledgeId?: string;
|
|
100
|
+
perspectiveShrink?: string;
|
|
101
|
+
senderId?: string;
|
|
102
|
+
senderNick?: string;
|
|
103
|
+
sessionId?: string;
|
|
104
|
+
utterance?: string;
|
|
105
|
+
vendorParamShrink?: string;
|
|
106
|
+
static names(): {
|
|
107
|
+
[key: string]: string;
|
|
108
|
+
};
|
|
109
|
+
static types(): {
|
|
110
|
+
[key: string]: any;
|
|
111
|
+
};
|
|
112
|
+
constructor(map?: {
|
|
113
|
+
[key: string]: any;
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
export declare class BeeBotChatResponseBody extends $tea.Model {
|
|
117
|
+
code?: string;
|
|
118
|
+
data?: BeeBotChatResponseBodyData;
|
|
119
|
+
message?: string;
|
|
120
|
+
requestId?: string;
|
|
121
|
+
static names(): {
|
|
122
|
+
[key: string]: string;
|
|
123
|
+
};
|
|
124
|
+
static types(): {
|
|
125
|
+
[key: string]: any;
|
|
126
|
+
};
|
|
127
|
+
constructor(map?: {
|
|
128
|
+
[key: string]: any;
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
export declare class BeeBotChatResponse extends $tea.Model {
|
|
132
|
+
headers: {
|
|
133
|
+
[key: string]: string;
|
|
134
|
+
};
|
|
135
|
+
statusCode: number;
|
|
136
|
+
body: BeeBotChatResponseBody;
|
|
137
|
+
static names(): {
|
|
138
|
+
[key: string]: string;
|
|
139
|
+
};
|
|
140
|
+
static types(): {
|
|
141
|
+
[key: string]: any;
|
|
142
|
+
};
|
|
143
|
+
constructor(map?: {
|
|
144
|
+
[key: string]: any;
|
|
145
|
+
});
|
|
146
|
+
}
|
|
7
147
|
export declare class CreateChatappTemplateRequest extends $tea.Model {
|
|
8
148
|
category?: string;
|
|
9
149
|
components?: CreateChatappTemplateRequestComponents[];
|
|
@@ -230,6 +370,73 @@ export declare class ListChatappTemplateResponse extends $tea.Model {
|
|
|
230
370
|
[key: string]: any;
|
|
231
371
|
});
|
|
232
372
|
}
|
|
373
|
+
export declare class ModifyChatappTemplateRequest extends $tea.Model {
|
|
374
|
+
components?: ModifyChatappTemplateRequestComponents[];
|
|
375
|
+
custWabaId?: string;
|
|
376
|
+
example?: {
|
|
377
|
+
[key: string]: string;
|
|
378
|
+
};
|
|
379
|
+
isvCode?: string;
|
|
380
|
+
language?: string;
|
|
381
|
+
templateCode?: string;
|
|
382
|
+
static names(): {
|
|
383
|
+
[key: string]: string;
|
|
384
|
+
};
|
|
385
|
+
static types(): {
|
|
386
|
+
[key: string]: any;
|
|
387
|
+
};
|
|
388
|
+
constructor(map?: {
|
|
389
|
+
[key: string]: any;
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
export declare class ModifyChatappTemplateShrinkRequest extends $tea.Model {
|
|
393
|
+
componentsShrink?: string;
|
|
394
|
+
custWabaId?: string;
|
|
395
|
+
exampleShrink?: string;
|
|
396
|
+
isvCode?: string;
|
|
397
|
+
language?: string;
|
|
398
|
+
templateCode?: string;
|
|
399
|
+
static names(): {
|
|
400
|
+
[key: string]: string;
|
|
401
|
+
};
|
|
402
|
+
static types(): {
|
|
403
|
+
[key: string]: any;
|
|
404
|
+
};
|
|
405
|
+
constructor(map?: {
|
|
406
|
+
[key: string]: any;
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
export declare class ModifyChatappTemplateResponseBody extends $tea.Model {
|
|
410
|
+
code?: string;
|
|
411
|
+
data?: ModifyChatappTemplateResponseBodyData;
|
|
412
|
+
message?: string;
|
|
413
|
+
requestId?: string;
|
|
414
|
+
static names(): {
|
|
415
|
+
[key: string]: string;
|
|
416
|
+
};
|
|
417
|
+
static types(): {
|
|
418
|
+
[key: string]: any;
|
|
419
|
+
};
|
|
420
|
+
constructor(map?: {
|
|
421
|
+
[key: string]: any;
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
export declare class ModifyChatappTemplateResponse extends $tea.Model {
|
|
425
|
+
headers: {
|
|
426
|
+
[key: string]: string;
|
|
427
|
+
};
|
|
428
|
+
statusCode: number;
|
|
429
|
+
body: ModifyChatappTemplateResponseBody;
|
|
430
|
+
static names(): {
|
|
431
|
+
[key: string]: string;
|
|
432
|
+
};
|
|
433
|
+
static types(): {
|
|
434
|
+
[key: string]: any;
|
|
435
|
+
};
|
|
436
|
+
constructor(map?: {
|
|
437
|
+
[key: string]: any;
|
|
438
|
+
});
|
|
439
|
+
}
|
|
233
440
|
export declare class SendChatappMassMessageRequest extends $tea.Model {
|
|
234
441
|
channelType?: string;
|
|
235
442
|
custWabaId?: string;
|
|
@@ -386,6 +593,153 @@ export declare class SendChatappMessageResponse extends $tea.Model {
|
|
|
386
593
|
[key: string]: any;
|
|
387
594
|
});
|
|
388
595
|
}
|
|
596
|
+
export declare class BeeBotAssociateResponseBodyDataAssociate extends $tea.Model {
|
|
597
|
+
meta?: string;
|
|
598
|
+
title?: string;
|
|
599
|
+
static names(): {
|
|
600
|
+
[key: string]: string;
|
|
601
|
+
};
|
|
602
|
+
static types(): {
|
|
603
|
+
[key: string]: any;
|
|
604
|
+
};
|
|
605
|
+
constructor(map?: {
|
|
606
|
+
[key: string]: any;
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
export declare class BeeBotAssociateResponseBodyData extends $tea.Model {
|
|
610
|
+
associate?: BeeBotAssociateResponseBodyDataAssociate[];
|
|
611
|
+
messageId?: string;
|
|
612
|
+
sessionId?: string;
|
|
613
|
+
static names(): {
|
|
614
|
+
[key: string]: string;
|
|
615
|
+
};
|
|
616
|
+
static types(): {
|
|
617
|
+
[key: string]: any;
|
|
618
|
+
};
|
|
619
|
+
constructor(map?: {
|
|
620
|
+
[key: string]: any;
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
export declare class BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges extends $tea.Model {
|
|
624
|
+
knowledgeId?: string;
|
|
625
|
+
title?: string;
|
|
626
|
+
static names(): {
|
|
627
|
+
[key: string]: string;
|
|
628
|
+
};
|
|
629
|
+
static types(): {
|
|
630
|
+
[key: string]: any;
|
|
631
|
+
};
|
|
632
|
+
constructor(map?: {
|
|
633
|
+
[key: string]: any;
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
export declare class BeeBotChatResponseBodyDataMessagesKnowledge extends $tea.Model {
|
|
637
|
+
answerSource?: string;
|
|
638
|
+
category?: string;
|
|
639
|
+
content?: string;
|
|
640
|
+
contentType?: string;
|
|
641
|
+
hitStatement?: string;
|
|
642
|
+
id?: string;
|
|
643
|
+
relatedKnowledges?: BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges[];
|
|
644
|
+
summary?: string;
|
|
645
|
+
title?: string;
|
|
646
|
+
static names(): {
|
|
647
|
+
[key: string]: string;
|
|
648
|
+
};
|
|
649
|
+
static types(): {
|
|
650
|
+
[key: string]: any;
|
|
651
|
+
};
|
|
652
|
+
constructor(map?: {
|
|
653
|
+
[key: string]: any;
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
export declare class BeeBotChatResponseBodyDataMessagesRecommends extends $tea.Model {
|
|
657
|
+
answerSource?: string;
|
|
658
|
+
knowledgeId?: string;
|
|
659
|
+
title?: string;
|
|
660
|
+
static names(): {
|
|
661
|
+
[key: string]: string;
|
|
662
|
+
};
|
|
663
|
+
static types(): {
|
|
664
|
+
[key: string]: any;
|
|
665
|
+
};
|
|
666
|
+
constructor(map?: {
|
|
667
|
+
[key: string]: any;
|
|
668
|
+
});
|
|
669
|
+
}
|
|
670
|
+
export declare class BeeBotChatResponseBodyDataMessagesTextSlots extends $tea.Model {
|
|
671
|
+
hit?: boolean;
|
|
672
|
+
name?: string;
|
|
673
|
+
origin?: string;
|
|
674
|
+
value?: string;
|
|
675
|
+
static names(): {
|
|
676
|
+
[key: string]: string;
|
|
677
|
+
};
|
|
678
|
+
static types(): {
|
|
679
|
+
[key: string]: any;
|
|
680
|
+
};
|
|
681
|
+
constructor(map?: {
|
|
682
|
+
[key: string]: any;
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
export declare class BeeBotChatResponseBodyDataMessagesText extends $tea.Model {
|
|
686
|
+
answerSource?: string;
|
|
687
|
+
content?: string;
|
|
688
|
+
contentType?: string;
|
|
689
|
+
dialogName?: string;
|
|
690
|
+
ext?: {
|
|
691
|
+
[key: string]: any;
|
|
692
|
+
};
|
|
693
|
+
externalFlags?: {
|
|
694
|
+
[key: string]: any;
|
|
695
|
+
};
|
|
696
|
+
hitStatement?: string;
|
|
697
|
+
intentName?: string;
|
|
698
|
+
metaData?: string;
|
|
699
|
+
nodeId?: string;
|
|
700
|
+
nodeName?: string;
|
|
701
|
+
slots?: BeeBotChatResponseBodyDataMessagesTextSlots[];
|
|
702
|
+
userDefinedChatTitle?: string;
|
|
703
|
+
static names(): {
|
|
704
|
+
[key: string]: string;
|
|
705
|
+
};
|
|
706
|
+
static types(): {
|
|
707
|
+
[key: string]: any;
|
|
708
|
+
};
|
|
709
|
+
constructor(map?: {
|
|
710
|
+
[key: string]: any;
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
export declare class BeeBotChatResponseBodyDataMessages extends $tea.Model {
|
|
714
|
+
answerSource?: string;
|
|
715
|
+
answerType?: string;
|
|
716
|
+
knowledge?: BeeBotChatResponseBodyDataMessagesKnowledge;
|
|
717
|
+
recommends?: BeeBotChatResponseBodyDataMessagesRecommends[];
|
|
718
|
+
text?: BeeBotChatResponseBodyDataMessagesText;
|
|
719
|
+
static names(): {
|
|
720
|
+
[key: string]: string;
|
|
721
|
+
};
|
|
722
|
+
static types(): {
|
|
723
|
+
[key: string]: any;
|
|
724
|
+
};
|
|
725
|
+
constructor(map?: {
|
|
726
|
+
[key: string]: any;
|
|
727
|
+
});
|
|
728
|
+
}
|
|
729
|
+
export declare class BeeBotChatResponseBodyData extends $tea.Model {
|
|
730
|
+
messageId?: string;
|
|
731
|
+
messages?: BeeBotChatResponseBodyDataMessages[];
|
|
732
|
+
sessionId?: string;
|
|
733
|
+
static names(): {
|
|
734
|
+
[key: string]: string;
|
|
735
|
+
};
|
|
736
|
+
static types(): {
|
|
737
|
+
[key: string]: any;
|
|
738
|
+
};
|
|
739
|
+
constructor(map?: {
|
|
740
|
+
[key: string]: any;
|
|
741
|
+
});
|
|
742
|
+
}
|
|
389
743
|
export declare class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
390
744
|
phoneNumber?: string;
|
|
391
745
|
text?: string;
|
|
@@ -516,6 +870,53 @@ export declare class ListChatappTemplateResponseBodyListTemplate extends $tea.Mo
|
|
|
516
870
|
[key: string]: any;
|
|
517
871
|
});
|
|
518
872
|
}
|
|
873
|
+
export declare class ModifyChatappTemplateRequestComponentsButtons extends $tea.Model {
|
|
874
|
+
phoneNumber?: string;
|
|
875
|
+
text?: string;
|
|
876
|
+
type?: string;
|
|
877
|
+
url?: string;
|
|
878
|
+
urlType?: string;
|
|
879
|
+
static names(): {
|
|
880
|
+
[key: string]: string;
|
|
881
|
+
};
|
|
882
|
+
static types(): {
|
|
883
|
+
[key: string]: any;
|
|
884
|
+
};
|
|
885
|
+
constructor(map?: {
|
|
886
|
+
[key: string]: any;
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
export declare class ModifyChatappTemplateRequestComponents extends $tea.Model {
|
|
890
|
+
buttons?: ModifyChatappTemplateRequestComponentsButtons[];
|
|
891
|
+
caption?: string;
|
|
892
|
+
fileName?: string;
|
|
893
|
+
format?: string;
|
|
894
|
+
text?: string;
|
|
895
|
+
type?: string;
|
|
896
|
+
url?: string;
|
|
897
|
+
static names(): {
|
|
898
|
+
[key: string]: string;
|
|
899
|
+
};
|
|
900
|
+
static types(): {
|
|
901
|
+
[key: string]: any;
|
|
902
|
+
};
|
|
903
|
+
constructor(map?: {
|
|
904
|
+
[key: string]: any;
|
|
905
|
+
});
|
|
906
|
+
}
|
|
907
|
+
export declare class ModifyChatappTemplateResponseBodyData extends $tea.Model {
|
|
908
|
+
templateCode?: string;
|
|
909
|
+
templateName?: string;
|
|
910
|
+
static names(): {
|
|
911
|
+
[key: string]: string;
|
|
912
|
+
};
|
|
913
|
+
static types(): {
|
|
914
|
+
[key: string]: any;
|
|
915
|
+
};
|
|
916
|
+
constructor(map?: {
|
|
917
|
+
[key: string]: any;
|
|
918
|
+
});
|
|
919
|
+
}
|
|
519
920
|
export declare class SendChatappMassMessageRequestSenderList extends $tea.Model {
|
|
520
921
|
payload?: string[];
|
|
521
922
|
templateParams?: {
|
|
@@ -537,6 +938,10 @@ export default class Client extends OpenApi {
|
|
|
537
938
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
538
939
|
[key: string]: string;
|
|
539
940
|
}, endpoint: string): string;
|
|
941
|
+
beeBotAssociateWithOptions(tmpReq: BeeBotAssociateRequest, runtime: $Util.RuntimeOptions): Promise<BeeBotAssociateResponse>;
|
|
942
|
+
beeBotAssociate(request: BeeBotAssociateRequest): Promise<BeeBotAssociateResponse>;
|
|
943
|
+
beeBotChatWithOptions(tmpReq: BeeBotChatRequest, runtime: $Util.RuntimeOptions): Promise<BeeBotChatResponse>;
|
|
944
|
+
beeBotChat(request: BeeBotChatRequest): Promise<BeeBotChatResponse>;
|
|
540
945
|
createChatappTemplateWithOptions(tmpReq: CreateChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<CreateChatappTemplateResponse>;
|
|
541
946
|
createChatappTemplate(request: CreateChatappTemplateRequest): Promise<CreateChatappTemplateResponse>;
|
|
542
947
|
deleteChatappTemplateWithOptions(request: DeleteChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<DeleteChatappTemplateResponse>;
|
|
@@ -545,6 +950,8 @@ export default class Client extends OpenApi {
|
|
|
545
950
|
getChatappTemplateDetail(request: GetChatappTemplateDetailRequest): Promise<GetChatappTemplateDetailResponse>;
|
|
546
951
|
listChatappTemplateWithOptions(tmpReq: ListChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<ListChatappTemplateResponse>;
|
|
547
952
|
listChatappTemplate(request: ListChatappTemplateRequest): Promise<ListChatappTemplateResponse>;
|
|
953
|
+
modifyChatappTemplateWithOptions(tmpReq: ModifyChatappTemplateRequest, runtime: $Util.RuntimeOptions): Promise<ModifyChatappTemplateResponse>;
|
|
954
|
+
modifyChatappTemplate(request: ModifyChatappTemplateRequest): Promise<ModifyChatappTemplateResponse>;
|
|
548
955
|
sendChatappMassMessageWithOptions(tmpReq: SendChatappMassMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendChatappMassMessageResponse>;
|
|
549
956
|
sendChatappMassMessage(request: SendChatappMassMessageRequest): Promise<SendChatappMassMessageResponse>;
|
|
550
957
|
sendChatappMessageWithOptions(tmpReq: SendChatappMessageRequest, runtime: $Util.RuntimeOptions): Promise<SendChatappMessageResponse>;
|