@alicloud/ccc20200701 2.18.2 → 2.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +352 -0
- package/dist/client.js +651 -19
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +788 -1
package/src/client.ts
CHANGED
|
@@ -241,6 +241,81 @@ export class AbortCampaignResponse extends $tea.Model {
|
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
+
export class AcceptChatRequest extends $tea.Model {
|
|
245
|
+
instanceId?: string;
|
|
246
|
+
jobId?: string;
|
|
247
|
+
static names(): { [key: string]: string } {
|
|
248
|
+
return {
|
|
249
|
+
instanceId: 'InstanceId',
|
|
250
|
+
jobId: 'JobId',
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
static types(): { [key: string]: any } {
|
|
255
|
+
return {
|
|
256
|
+
instanceId: 'string',
|
|
257
|
+
jobId: 'string',
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
constructor(map?: { [key: string]: any }) {
|
|
262
|
+
super(map);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export class AcceptChatResponseBody extends $tea.Model {
|
|
267
|
+
code?: string;
|
|
268
|
+
httpStatusCode?: number;
|
|
269
|
+
message?: string;
|
|
270
|
+
requestId?: string;
|
|
271
|
+
static names(): { [key: string]: string } {
|
|
272
|
+
return {
|
|
273
|
+
code: 'Code',
|
|
274
|
+
httpStatusCode: 'HttpStatusCode',
|
|
275
|
+
message: 'Message',
|
|
276
|
+
requestId: 'RequestId',
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
static types(): { [key: string]: any } {
|
|
281
|
+
return {
|
|
282
|
+
code: 'string',
|
|
283
|
+
httpStatusCode: 'number',
|
|
284
|
+
message: 'string',
|
|
285
|
+
requestId: 'string',
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
constructor(map?: { [key: string]: any }) {
|
|
290
|
+
super(map);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export class AcceptChatResponse extends $tea.Model {
|
|
295
|
+
headers?: { [key: string]: string };
|
|
296
|
+
statusCode?: number;
|
|
297
|
+
body?: AcceptChatResponseBody;
|
|
298
|
+
static names(): { [key: string]: string } {
|
|
299
|
+
return {
|
|
300
|
+
headers: 'headers',
|
|
301
|
+
statusCode: 'statusCode',
|
|
302
|
+
body: 'body',
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
static types(): { [key: string]: any } {
|
|
307
|
+
return {
|
|
308
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
309
|
+
statusCode: 'number',
|
|
310
|
+
body: AcceptChatResponseBody,
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
constructor(map?: { [key: string]: any }) {
|
|
315
|
+
super(map);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
244
319
|
export class AddBlacklistCallTaggingRequest extends $tea.Model {
|
|
245
320
|
instanceId?: string;
|
|
246
321
|
jobId?: string;
|
|
@@ -1963,6 +2038,90 @@ export class ChangeWorkModeResponse extends $tea.Model {
|
|
|
1963
2038
|
}
|
|
1964
2039
|
}
|
|
1965
2040
|
|
|
2041
|
+
export class ClaimChatRequest extends $tea.Model {
|
|
2042
|
+
instanceId?: string;
|
|
2043
|
+
jobId?: string;
|
|
2044
|
+
skillGroupId?: string;
|
|
2045
|
+
static names(): { [key: string]: string } {
|
|
2046
|
+
return {
|
|
2047
|
+
instanceId: 'InstanceId',
|
|
2048
|
+
jobId: 'JobId',
|
|
2049
|
+
skillGroupId: 'SkillGroupId',
|
|
2050
|
+
};
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
static types(): { [key: string]: any } {
|
|
2054
|
+
return {
|
|
2055
|
+
instanceId: 'string',
|
|
2056
|
+
jobId: 'string',
|
|
2057
|
+
skillGroupId: 'string',
|
|
2058
|
+
};
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
constructor(map?: { [key: string]: any }) {
|
|
2062
|
+
super(map);
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
export class ClaimChatResponseBody extends $tea.Model {
|
|
2067
|
+
code?: string;
|
|
2068
|
+
data?: ClaimChatResponseBodyData;
|
|
2069
|
+
httpStatusCode?: number;
|
|
2070
|
+
message?: string;
|
|
2071
|
+
params?: string[];
|
|
2072
|
+
requestId?: string;
|
|
2073
|
+
static names(): { [key: string]: string } {
|
|
2074
|
+
return {
|
|
2075
|
+
code: 'Code',
|
|
2076
|
+
data: 'Data',
|
|
2077
|
+
httpStatusCode: 'HttpStatusCode',
|
|
2078
|
+
message: 'Message',
|
|
2079
|
+
params: 'Params',
|
|
2080
|
+
requestId: 'RequestId',
|
|
2081
|
+
};
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2084
|
+
static types(): { [key: string]: any } {
|
|
2085
|
+
return {
|
|
2086
|
+
code: 'string',
|
|
2087
|
+
data: ClaimChatResponseBodyData,
|
|
2088
|
+
httpStatusCode: 'number',
|
|
2089
|
+
message: 'string',
|
|
2090
|
+
params: { 'type': 'array', 'itemType': 'string' },
|
|
2091
|
+
requestId: 'string',
|
|
2092
|
+
};
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
constructor(map?: { [key: string]: any }) {
|
|
2096
|
+
super(map);
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
export class ClaimChatResponse extends $tea.Model {
|
|
2101
|
+
headers?: { [key: string]: string };
|
|
2102
|
+
statusCode?: number;
|
|
2103
|
+
body?: ClaimChatResponseBody;
|
|
2104
|
+
static names(): { [key: string]: string } {
|
|
2105
|
+
return {
|
|
2106
|
+
headers: 'headers',
|
|
2107
|
+
statusCode: 'statusCode',
|
|
2108
|
+
body: 'body',
|
|
2109
|
+
};
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
static types(): { [key: string]: any } {
|
|
2113
|
+
return {
|
|
2114
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2115
|
+
statusCode: 'number',
|
|
2116
|
+
body: ClaimChatResponseBody,
|
|
2117
|
+
};
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
constructor(map?: { [key: string]: any }) {
|
|
2121
|
+
super(map);
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
|
|
1966
2125
|
export class CoachCallRequest extends $tea.Model {
|
|
1967
2126
|
coachedUserId?: string;
|
|
1968
2127
|
deviceId?: string;
|
|
@@ -6844,6 +7003,93 @@ export class GetVideoResponse extends $tea.Model {
|
|
|
6844
7003
|
}
|
|
6845
7004
|
}
|
|
6846
7005
|
|
|
7006
|
+
export class GetVisitorLoginDetailsRequest extends $tea.Model {
|
|
7007
|
+
chatDeviceId?: string;
|
|
7008
|
+
instanceId?: string;
|
|
7009
|
+
token?: string;
|
|
7010
|
+
visitorId?: string;
|
|
7011
|
+
static names(): { [key: string]: string } {
|
|
7012
|
+
return {
|
|
7013
|
+
chatDeviceId: 'ChatDeviceId',
|
|
7014
|
+
instanceId: 'InstanceId',
|
|
7015
|
+
token: 'Token',
|
|
7016
|
+
visitorId: 'VisitorId',
|
|
7017
|
+
};
|
|
7018
|
+
}
|
|
7019
|
+
|
|
7020
|
+
static types(): { [key: string]: any } {
|
|
7021
|
+
return {
|
|
7022
|
+
chatDeviceId: 'string',
|
|
7023
|
+
instanceId: 'string',
|
|
7024
|
+
token: 'string',
|
|
7025
|
+
visitorId: 'string',
|
|
7026
|
+
};
|
|
7027
|
+
}
|
|
7028
|
+
|
|
7029
|
+
constructor(map?: { [key: string]: any }) {
|
|
7030
|
+
super(map);
|
|
7031
|
+
}
|
|
7032
|
+
}
|
|
7033
|
+
|
|
7034
|
+
export class GetVisitorLoginDetailsResponseBody extends $tea.Model {
|
|
7035
|
+
code?: string;
|
|
7036
|
+
data?: GetVisitorLoginDetailsResponseBodyData;
|
|
7037
|
+
httpStatusCode?: number;
|
|
7038
|
+
message?: string;
|
|
7039
|
+
params?: string[];
|
|
7040
|
+
requestId?: string;
|
|
7041
|
+
static names(): { [key: string]: string } {
|
|
7042
|
+
return {
|
|
7043
|
+
code: 'Code',
|
|
7044
|
+
data: 'Data',
|
|
7045
|
+
httpStatusCode: 'HttpStatusCode',
|
|
7046
|
+
message: 'Message',
|
|
7047
|
+
params: 'Params',
|
|
7048
|
+
requestId: 'RequestId',
|
|
7049
|
+
};
|
|
7050
|
+
}
|
|
7051
|
+
|
|
7052
|
+
static types(): { [key: string]: any } {
|
|
7053
|
+
return {
|
|
7054
|
+
code: 'string',
|
|
7055
|
+
data: GetVisitorLoginDetailsResponseBodyData,
|
|
7056
|
+
httpStatusCode: 'number',
|
|
7057
|
+
message: 'string',
|
|
7058
|
+
params: { 'type': 'array', 'itemType': 'string' },
|
|
7059
|
+
requestId: 'string',
|
|
7060
|
+
};
|
|
7061
|
+
}
|
|
7062
|
+
|
|
7063
|
+
constructor(map?: { [key: string]: any }) {
|
|
7064
|
+
super(map);
|
|
7065
|
+
}
|
|
7066
|
+
}
|
|
7067
|
+
|
|
7068
|
+
export class GetVisitorLoginDetailsResponse extends $tea.Model {
|
|
7069
|
+
headers?: { [key: string]: string };
|
|
7070
|
+
statusCode?: number;
|
|
7071
|
+
body?: GetVisitorLoginDetailsResponseBody;
|
|
7072
|
+
static names(): { [key: string]: string } {
|
|
7073
|
+
return {
|
|
7074
|
+
headers: 'headers',
|
|
7075
|
+
statusCode: 'statusCode',
|
|
7076
|
+
body: 'body',
|
|
7077
|
+
};
|
|
7078
|
+
}
|
|
7079
|
+
|
|
7080
|
+
static types(): { [key: string]: any } {
|
|
7081
|
+
return {
|
|
7082
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
7083
|
+
statusCode: 'number',
|
|
7084
|
+
body: GetVisitorLoginDetailsResponseBody,
|
|
7085
|
+
};
|
|
7086
|
+
}
|
|
7087
|
+
|
|
7088
|
+
constructor(map?: { [key: string]: any }) {
|
|
7089
|
+
super(map);
|
|
7090
|
+
}
|
|
7091
|
+
}
|
|
7092
|
+
|
|
6847
7093
|
export class GetVoicemailRecordingRequest extends $tea.Model {
|
|
6848
7094
|
contactId?: string;
|
|
6849
7095
|
instanceId?: string;
|
|
@@ -7740,6 +7986,8 @@ export class LaunchSurveyRequest extends $tea.Model {
|
|
|
7740
7986
|
jobId?: string;
|
|
7741
7987
|
smsMetadataId?: string;
|
|
7742
7988
|
surveyChannel?: string;
|
|
7989
|
+
surveyTemplateId?: string;
|
|
7990
|
+
surveyTemplateVariables?: string;
|
|
7743
7991
|
userId?: string;
|
|
7744
7992
|
static names(): { [key: string]: string } {
|
|
7745
7993
|
return {
|
|
@@ -7750,6 +7998,8 @@ export class LaunchSurveyRequest extends $tea.Model {
|
|
|
7750
7998
|
jobId: 'JobId',
|
|
7751
7999
|
smsMetadataId: 'SmsMetadataId',
|
|
7752
8000
|
surveyChannel: 'SurveyChannel',
|
|
8001
|
+
surveyTemplateId: 'SurveyTemplateId',
|
|
8002
|
+
surveyTemplateVariables: 'SurveyTemplateVariables',
|
|
7753
8003
|
userId: 'UserId',
|
|
7754
8004
|
};
|
|
7755
8005
|
}
|
|
@@ -7763,6 +8013,8 @@ export class LaunchSurveyRequest extends $tea.Model {
|
|
|
7763
8013
|
jobId: 'string',
|
|
7764
8014
|
smsMetadataId: 'string',
|
|
7765
8015
|
surveyChannel: 'string',
|
|
8016
|
+
surveyTemplateId: 'string',
|
|
8017
|
+
surveyTemplateVariables: 'string',
|
|
7766
8018
|
userId: 'string',
|
|
7767
8019
|
};
|
|
7768
8020
|
}
|
|
@@ -11458,6 +11710,7 @@ export class ListRealtimeAgentStatesRequest extends $tea.Model {
|
|
|
11458
11710
|
agentName?: string;
|
|
11459
11711
|
callTypeList?: string;
|
|
11460
11712
|
instanceId?: string;
|
|
11713
|
+
mediaType?: string;
|
|
11461
11714
|
outboundScenario?: boolean;
|
|
11462
11715
|
pageNumber?: number;
|
|
11463
11716
|
pageSize?: number;
|
|
@@ -11471,6 +11724,7 @@ export class ListRealtimeAgentStatesRequest extends $tea.Model {
|
|
|
11471
11724
|
agentName: 'AgentName',
|
|
11472
11725
|
callTypeList: 'CallTypeList',
|
|
11473
11726
|
instanceId: 'InstanceId',
|
|
11727
|
+
mediaType: 'MediaType',
|
|
11474
11728
|
outboundScenario: 'OutboundScenario',
|
|
11475
11729
|
pageNumber: 'PageNumber',
|
|
11476
11730
|
pageSize: 'PageSize',
|
|
@@ -11487,6 +11741,7 @@ export class ListRealtimeAgentStatesRequest extends $tea.Model {
|
|
|
11487
11741
|
agentName: 'string',
|
|
11488
11742
|
callTypeList: 'string',
|
|
11489
11743
|
instanceId: 'string',
|
|
11744
|
+
mediaType: 'string',
|
|
11490
11745
|
outboundScenario: 'boolean',
|
|
11491
11746
|
pageNumber: 'number',
|
|
11492
11747
|
pageSize: 'number',
|
|
@@ -11560,12 +11815,14 @@ export class ListRealtimeAgentStatesResponse extends $tea.Model {
|
|
|
11560
11815
|
|
|
11561
11816
|
export class ListRealtimeSkillGroupStatesRequest extends $tea.Model {
|
|
11562
11817
|
instanceId?: string;
|
|
11818
|
+
mediaType?: string;
|
|
11563
11819
|
pageNumber?: number;
|
|
11564
11820
|
pageSize?: number;
|
|
11565
11821
|
skillGroupIdList?: string;
|
|
11566
11822
|
static names(): { [key: string]: string } {
|
|
11567
11823
|
return {
|
|
11568
11824
|
instanceId: 'InstanceId',
|
|
11825
|
+
mediaType: 'MediaType',
|
|
11569
11826
|
pageNumber: 'PageNumber',
|
|
11570
11827
|
pageSize: 'PageSize',
|
|
11571
11828
|
skillGroupIdList: 'SkillGroupIdList',
|
|
@@ -11575,6 +11832,7 @@ export class ListRealtimeSkillGroupStatesRequest extends $tea.Model {
|
|
|
11575
11832
|
static types(): { [key: string]: any } {
|
|
11576
11833
|
return {
|
|
11577
11834
|
instanceId: 'string',
|
|
11835
|
+
mediaType: 'string',
|
|
11578
11836
|
pageNumber: 'number',
|
|
11579
11837
|
pageSize: 'number',
|
|
11580
11838
|
skillGroupIdList: 'string',
|
|
@@ -16289,6 +16547,118 @@ export class StartBack2BackCallResponse extends $tea.Model {
|
|
|
16289
16547
|
}
|
|
16290
16548
|
}
|
|
16291
16549
|
|
|
16550
|
+
export class StartChatRequest extends $tea.Model {
|
|
16551
|
+
accessChannelId?: string;
|
|
16552
|
+
instanceId?: string;
|
|
16553
|
+
token?: string;
|
|
16554
|
+
userList?: StartChatRequestUserList[];
|
|
16555
|
+
static names(): { [key: string]: string } {
|
|
16556
|
+
return {
|
|
16557
|
+
accessChannelId: 'AccessChannelId',
|
|
16558
|
+
instanceId: 'InstanceId',
|
|
16559
|
+
token: 'Token',
|
|
16560
|
+
userList: 'UserList',
|
|
16561
|
+
};
|
|
16562
|
+
}
|
|
16563
|
+
|
|
16564
|
+
static types(): { [key: string]: any } {
|
|
16565
|
+
return {
|
|
16566
|
+
accessChannelId: 'string',
|
|
16567
|
+
instanceId: 'string',
|
|
16568
|
+
token: 'string',
|
|
16569
|
+
userList: { 'type': 'array', 'itemType': StartChatRequestUserList },
|
|
16570
|
+
};
|
|
16571
|
+
}
|
|
16572
|
+
|
|
16573
|
+
constructor(map?: { [key: string]: any }) {
|
|
16574
|
+
super(map);
|
|
16575
|
+
}
|
|
16576
|
+
}
|
|
16577
|
+
|
|
16578
|
+
export class StartChatShrinkRequest extends $tea.Model {
|
|
16579
|
+
accessChannelId?: string;
|
|
16580
|
+
instanceId?: string;
|
|
16581
|
+
token?: string;
|
|
16582
|
+
userListShrink?: string;
|
|
16583
|
+
static names(): { [key: string]: string } {
|
|
16584
|
+
return {
|
|
16585
|
+
accessChannelId: 'AccessChannelId',
|
|
16586
|
+
instanceId: 'InstanceId',
|
|
16587
|
+
token: 'Token',
|
|
16588
|
+
userListShrink: 'UserList',
|
|
16589
|
+
};
|
|
16590
|
+
}
|
|
16591
|
+
|
|
16592
|
+
static types(): { [key: string]: any } {
|
|
16593
|
+
return {
|
|
16594
|
+
accessChannelId: 'string',
|
|
16595
|
+
instanceId: 'string',
|
|
16596
|
+
token: 'string',
|
|
16597
|
+
userListShrink: 'string',
|
|
16598
|
+
};
|
|
16599
|
+
}
|
|
16600
|
+
|
|
16601
|
+
constructor(map?: { [key: string]: any }) {
|
|
16602
|
+
super(map);
|
|
16603
|
+
}
|
|
16604
|
+
}
|
|
16605
|
+
|
|
16606
|
+
export class StartChatResponseBody extends $tea.Model {
|
|
16607
|
+
code?: string;
|
|
16608
|
+
data?: StartChatResponseBodyData;
|
|
16609
|
+
httpStatusCode?: number;
|
|
16610
|
+
message?: string;
|
|
16611
|
+
requestId?: string;
|
|
16612
|
+
static names(): { [key: string]: string } {
|
|
16613
|
+
return {
|
|
16614
|
+
code: 'Code',
|
|
16615
|
+
data: 'Data',
|
|
16616
|
+
httpStatusCode: 'HttpStatusCode',
|
|
16617
|
+
message: 'Message',
|
|
16618
|
+
requestId: 'RequestId',
|
|
16619
|
+
};
|
|
16620
|
+
}
|
|
16621
|
+
|
|
16622
|
+
static types(): { [key: string]: any } {
|
|
16623
|
+
return {
|
|
16624
|
+
code: 'string',
|
|
16625
|
+
data: StartChatResponseBodyData,
|
|
16626
|
+
httpStatusCode: 'number',
|
|
16627
|
+
message: 'string',
|
|
16628
|
+
requestId: 'string',
|
|
16629
|
+
};
|
|
16630
|
+
}
|
|
16631
|
+
|
|
16632
|
+
constructor(map?: { [key: string]: any }) {
|
|
16633
|
+
super(map);
|
|
16634
|
+
}
|
|
16635
|
+
}
|
|
16636
|
+
|
|
16637
|
+
export class StartChatResponse extends $tea.Model {
|
|
16638
|
+
headers?: { [key: string]: string };
|
|
16639
|
+
statusCode?: number;
|
|
16640
|
+
body?: StartChatResponseBody;
|
|
16641
|
+
static names(): { [key: string]: string } {
|
|
16642
|
+
return {
|
|
16643
|
+
headers: 'headers',
|
|
16644
|
+
statusCode: 'statusCode',
|
|
16645
|
+
body: 'body',
|
|
16646
|
+
};
|
|
16647
|
+
}
|
|
16648
|
+
|
|
16649
|
+
static types(): { [key: string]: any } {
|
|
16650
|
+
return {
|
|
16651
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
16652
|
+
statusCode: 'number',
|
|
16653
|
+
body: StartChatResponseBody,
|
|
16654
|
+
};
|
|
16655
|
+
}
|
|
16656
|
+
|
|
16657
|
+
constructor(map?: { [key: string]: any }) {
|
|
16658
|
+
super(map);
|
|
16659
|
+
}
|
|
16660
|
+
}
|
|
16661
|
+
|
|
16292
16662
|
export class StartConferenceRequest extends $tea.Model {
|
|
16293
16663
|
instanceId?: string;
|
|
16294
16664
|
participantListJson?: string;
|
|
@@ -18204,13 +18574,103 @@ export class ChangeVisibilityResponseBodyData extends $tea.Model {
|
|
|
18204
18574
|
}
|
|
18205
18575
|
}
|
|
18206
18576
|
|
|
18207
|
-
export class ChangeWorkModeResponseBodyData extends $tea.Model {
|
|
18577
|
+
export class ChangeWorkModeResponseBodyData extends $tea.Model {
|
|
18578
|
+
breakCode?: string;
|
|
18579
|
+
deviceId?: string;
|
|
18580
|
+
extension?: string;
|
|
18581
|
+
instanceId?: string;
|
|
18582
|
+
jobId?: string;
|
|
18583
|
+
outboundScenario?: boolean;
|
|
18584
|
+
signedSkillGroupIdList?: string[];
|
|
18585
|
+
userId?: string;
|
|
18586
|
+
userState?: string;
|
|
18587
|
+
workMode?: string;
|
|
18588
|
+
static names(): { [key: string]: string } {
|
|
18589
|
+
return {
|
|
18590
|
+
breakCode: 'BreakCode',
|
|
18591
|
+
deviceId: 'DeviceId',
|
|
18592
|
+
extension: 'Extension',
|
|
18593
|
+
instanceId: 'InstanceId',
|
|
18594
|
+
jobId: 'JobId',
|
|
18595
|
+
outboundScenario: 'OutboundScenario',
|
|
18596
|
+
signedSkillGroupIdList: 'SignedSkillGroupIdList',
|
|
18597
|
+
userId: 'UserId',
|
|
18598
|
+
userState: 'UserState',
|
|
18599
|
+
workMode: 'WorkMode',
|
|
18600
|
+
};
|
|
18601
|
+
}
|
|
18602
|
+
|
|
18603
|
+
static types(): { [key: string]: any } {
|
|
18604
|
+
return {
|
|
18605
|
+
breakCode: 'string',
|
|
18606
|
+
deviceId: 'string',
|
|
18607
|
+
extension: 'string',
|
|
18608
|
+
instanceId: 'string',
|
|
18609
|
+
jobId: 'string',
|
|
18610
|
+
outboundScenario: 'boolean',
|
|
18611
|
+
signedSkillGroupIdList: { 'type': 'array', 'itemType': 'string' },
|
|
18612
|
+
userId: 'string',
|
|
18613
|
+
userState: 'string',
|
|
18614
|
+
workMode: 'string',
|
|
18615
|
+
};
|
|
18616
|
+
}
|
|
18617
|
+
|
|
18618
|
+
constructor(map?: { [key: string]: any }) {
|
|
18619
|
+
super(map);
|
|
18620
|
+
}
|
|
18621
|
+
}
|
|
18622
|
+
|
|
18623
|
+
export class ClaimChatResponseBodyDataChatContexts extends $tea.Model {
|
|
18624
|
+
accessChannelId?: string;
|
|
18625
|
+
accessChannelName?: string;
|
|
18626
|
+
accessChannelType?: string;
|
|
18627
|
+
beingAssigned?: boolean;
|
|
18628
|
+
callVariables?: string;
|
|
18629
|
+
chatType?: string;
|
|
18630
|
+
instanceId?: string;
|
|
18631
|
+
jobId?: string;
|
|
18632
|
+
static names(): { [key: string]: string } {
|
|
18633
|
+
return {
|
|
18634
|
+
accessChannelId: 'AccessChannelId',
|
|
18635
|
+
accessChannelName: 'AccessChannelName',
|
|
18636
|
+
accessChannelType: 'AccessChannelType',
|
|
18637
|
+
beingAssigned: 'BeingAssigned',
|
|
18638
|
+
callVariables: 'CallVariables',
|
|
18639
|
+
chatType: 'ChatType',
|
|
18640
|
+
instanceId: 'InstanceId',
|
|
18641
|
+
jobId: 'JobId',
|
|
18642
|
+
};
|
|
18643
|
+
}
|
|
18644
|
+
|
|
18645
|
+
static types(): { [key: string]: any } {
|
|
18646
|
+
return {
|
|
18647
|
+
accessChannelId: 'string',
|
|
18648
|
+
accessChannelName: 'string',
|
|
18649
|
+
accessChannelType: 'string',
|
|
18650
|
+
beingAssigned: 'boolean',
|
|
18651
|
+
callVariables: 'string',
|
|
18652
|
+
chatType: 'string',
|
|
18653
|
+
instanceId: 'string',
|
|
18654
|
+
jobId: 'string',
|
|
18655
|
+
};
|
|
18656
|
+
}
|
|
18657
|
+
|
|
18658
|
+
constructor(map?: { [key: string]: any }) {
|
|
18659
|
+
super(map);
|
|
18660
|
+
}
|
|
18661
|
+
}
|
|
18662
|
+
|
|
18663
|
+
export class ClaimChatResponseBodyDataUserContext extends $tea.Model {
|
|
18208
18664
|
breakCode?: string;
|
|
18209
18665
|
deviceId?: string;
|
|
18666
|
+
deviceState?: string;
|
|
18210
18667
|
extension?: string;
|
|
18668
|
+
heartbeat?: number;
|
|
18211
18669
|
instanceId?: string;
|
|
18212
18670
|
jobId?: string;
|
|
18671
|
+
mobile?: string;
|
|
18213
18672
|
outboundScenario?: boolean;
|
|
18673
|
+
reserved?: number;
|
|
18214
18674
|
signedSkillGroupIdList?: string[];
|
|
18215
18675
|
userId?: string;
|
|
18216
18676
|
userState?: string;
|
|
@@ -18219,10 +18679,14 @@ export class ChangeWorkModeResponseBodyData extends $tea.Model {
|
|
|
18219
18679
|
return {
|
|
18220
18680
|
breakCode: 'BreakCode',
|
|
18221
18681
|
deviceId: 'DeviceId',
|
|
18682
|
+
deviceState: 'DeviceState',
|
|
18222
18683
|
extension: 'Extension',
|
|
18684
|
+
heartbeat: 'Heartbeat',
|
|
18223
18685
|
instanceId: 'InstanceId',
|
|
18224
18686
|
jobId: 'JobId',
|
|
18687
|
+
mobile: 'Mobile',
|
|
18225
18688
|
outboundScenario: 'OutboundScenario',
|
|
18689
|
+
reserved: 'Reserved',
|
|
18226
18690
|
signedSkillGroupIdList: 'SignedSkillGroupIdList',
|
|
18227
18691
|
userId: 'UserId',
|
|
18228
18692
|
userState: 'UserState',
|
|
@@ -18234,10 +18698,14 @@ export class ChangeWorkModeResponseBodyData extends $tea.Model {
|
|
|
18234
18698
|
return {
|
|
18235
18699
|
breakCode: 'string',
|
|
18236
18700
|
deviceId: 'string',
|
|
18701
|
+
deviceState: 'string',
|
|
18237
18702
|
extension: 'string',
|
|
18703
|
+
heartbeat: 'number',
|
|
18238
18704
|
instanceId: 'string',
|
|
18239
18705
|
jobId: 'string',
|
|
18706
|
+
mobile: 'string',
|
|
18240
18707
|
outboundScenario: 'boolean',
|
|
18708
|
+
reserved: 'number',
|
|
18241
18709
|
signedSkillGroupIdList: { 'type': 'array', 'itemType': 'string' },
|
|
18242
18710
|
userId: 'string',
|
|
18243
18711
|
userState: 'string',
|
|
@@ -18250,6 +18718,31 @@ export class ChangeWorkModeResponseBodyData extends $tea.Model {
|
|
|
18250
18718
|
}
|
|
18251
18719
|
}
|
|
18252
18720
|
|
|
18721
|
+
export class ClaimChatResponseBodyData extends $tea.Model {
|
|
18722
|
+
chatContexts?: ClaimChatResponseBodyDataChatContexts[];
|
|
18723
|
+
contextId?: number;
|
|
18724
|
+
userContext?: ClaimChatResponseBodyDataUserContext;
|
|
18725
|
+
static names(): { [key: string]: string } {
|
|
18726
|
+
return {
|
|
18727
|
+
chatContexts: 'ChatContexts',
|
|
18728
|
+
contextId: 'ContextId',
|
|
18729
|
+
userContext: 'UserContext',
|
|
18730
|
+
};
|
|
18731
|
+
}
|
|
18732
|
+
|
|
18733
|
+
static types(): { [key: string]: any } {
|
|
18734
|
+
return {
|
|
18735
|
+
chatContexts: { 'type': 'array', 'itemType': ClaimChatResponseBodyDataChatContexts },
|
|
18736
|
+
contextId: 'number',
|
|
18737
|
+
userContext: ClaimChatResponseBodyDataUserContext,
|
|
18738
|
+
};
|
|
18739
|
+
}
|
|
18740
|
+
|
|
18741
|
+
constructor(map?: { [key: string]: any }) {
|
|
18742
|
+
super(map);
|
|
18743
|
+
}
|
|
18744
|
+
}
|
|
18745
|
+
|
|
18253
18746
|
export class CoachCallResponseBodyDataCallContextChannelContexts extends $tea.Model {
|
|
18254
18747
|
callType?: string;
|
|
18255
18748
|
channelFlags?: string;
|
|
@@ -20900,6 +21393,40 @@ export class GetVideoResponseBodyData extends $tea.Model {
|
|
|
20900
21393
|
}
|
|
20901
21394
|
}
|
|
20902
21395
|
|
|
21396
|
+
export class GetVisitorLoginDetailsResponseBodyData extends $tea.Model {
|
|
21397
|
+
chatAppId?: string;
|
|
21398
|
+
chatAppKey?: string;
|
|
21399
|
+
chatDeviceId?: string;
|
|
21400
|
+
chatLoginToken?: string;
|
|
21401
|
+
chatServerUrl?: string;
|
|
21402
|
+
chatUserId?: string;
|
|
21403
|
+
static names(): { [key: string]: string } {
|
|
21404
|
+
return {
|
|
21405
|
+
chatAppId: 'ChatAppId',
|
|
21406
|
+
chatAppKey: 'ChatAppKey',
|
|
21407
|
+
chatDeviceId: 'ChatDeviceId',
|
|
21408
|
+
chatLoginToken: 'ChatLoginToken',
|
|
21409
|
+
chatServerUrl: 'ChatServerUrl',
|
|
21410
|
+
chatUserId: 'ChatUserId',
|
|
21411
|
+
};
|
|
21412
|
+
}
|
|
21413
|
+
|
|
21414
|
+
static types(): { [key: string]: any } {
|
|
21415
|
+
return {
|
|
21416
|
+
chatAppId: 'string',
|
|
21417
|
+
chatAppKey: 'string',
|
|
21418
|
+
chatDeviceId: 'string',
|
|
21419
|
+
chatLoginToken: 'string',
|
|
21420
|
+
chatServerUrl: 'string',
|
|
21421
|
+
chatUserId: 'string',
|
|
21422
|
+
};
|
|
21423
|
+
}
|
|
21424
|
+
|
|
21425
|
+
constructor(map?: { [key: string]: any }) {
|
|
21426
|
+
super(map);
|
|
21427
|
+
}
|
|
21428
|
+
}
|
|
21429
|
+
|
|
20903
21430
|
export class GetVoicemailRecordingResponseBodyData extends $tea.Model {
|
|
20904
21431
|
fileName?: string;
|
|
20905
21432
|
fileUrl?: string;
|
|
@@ -31113,6 +31640,56 @@ export class StartBack2BackCallResponseBodyData extends $tea.Model {
|
|
|
31113
31640
|
}
|
|
31114
31641
|
}
|
|
31115
31642
|
|
|
31643
|
+
export class StartChatRequestUserList extends $tea.Model {
|
|
31644
|
+
avatarUrl?: string;
|
|
31645
|
+
nickname?: string;
|
|
31646
|
+
userId?: string;
|
|
31647
|
+
userType?: string;
|
|
31648
|
+
static names(): { [key: string]: string } {
|
|
31649
|
+
return {
|
|
31650
|
+
avatarUrl: 'AvatarUrl',
|
|
31651
|
+
nickname: 'Nickname',
|
|
31652
|
+
userId: 'UserId',
|
|
31653
|
+
userType: 'UserType',
|
|
31654
|
+
};
|
|
31655
|
+
}
|
|
31656
|
+
|
|
31657
|
+
static types(): { [key: string]: any } {
|
|
31658
|
+
return {
|
|
31659
|
+
avatarUrl: 'string',
|
|
31660
|
+
nickname: 'string',
|
|
31661
|
+
userId: 'string',
|
|
31662
|
+
userType: 'string',
|
|
31663
|
+
};
|
|
31664
|
+
}
|
|
31665
|
+
|
|
31666
|
+
constructor(map?: { [key: string]: any }) {
|
|
31667
|
+
super(map);
|
|
31668
|
+
}
|
|
31669
|
+
}
|
|
31670
|
+
|
|
31671
|
+
export class StartChatResponseBodyData extends $tea.Model {
|
|
31672
|
+
chatConversationId?: string;
|
|
31673
|
+
jobId?: string;
|
|
31674
|
+
static names(): { [key: string]: string } {
|
|
31675
|
+
return {
|
|
31676
|
+
chatConversationId: 'ChatConversationId',
|
|
31677
|
+
jobId: 'JobId',
|
|
31678
|
+
};
|
|
31679
|
+
}
|
|
31680
|
+
|
|
31681
|
+
static types(): { [key: string]: any } {
|
|
31682
|
+
return {
|
|
31683
|
+
chatConversationId: 'string',
|
|
31684
|
+
jobId: 'string',
|
|
31685
|
+
};
|
|
31686
|
+
}
|
|
31687
|
+
|
|
31688
|
+
constructor(map?: { [key: string]: any }) {
|
|
31689
|
+
super(map);
|
|
31690
|
+
}
|
|
31691
|
+
}
|
|
31692
|
+
|
|
31116
31693
|
export class StartConferenceResponseBodyDataCallContextChannelContexts extends $tea.Model {
|
|
31117
31694
|
callType?: string;
|
|
31118
31695
|
channelFlags?: string;
|
|
@@ -31971,6 +32548,48 @@ export default class Client extends OpenApi {
|
|
|
31971
32548
|
return await this.abortCampaignWithOptions(request, runtime);
|
|
31972
32549
|
}
|
|
31973
32550
|
|
|
32551
|
+
/**
|
|
32552
|
+
* @param request AcceptChatRequest
|
|
32553
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
32554
|
+
* @return AcceptChatResponse
|
|
32555
|
+
*/
|
|
32556
|
+
async acceptChatWithOptions(request: AcceptChatRequest, runtime: $Util.RuntimeOptions): Promise<AcceptChatResponse> {
|
|
32557
|
+
Util.validateModel(request);
|
|
32558
|
+
let query = { };
|
|
32559
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
32560
|
+
query["InstanceId"] = request.instanceId;
|
|
32561
|
+
}
|
|
32562
|
+
|
|
32563
|
+
if (!Util.isUnset(request.jobId)) {
|
|
32564
|
+
query["JobId"] = request.jobId;
|
|
32565
|
+
}
|
|
32566
|
+
|
|
32567
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
32568
|
+
query: OpenApiUtil.query(query),
|
|
32569
|
+
});
|
|
32570
|
+
let params = new $OpenApi.Params({
|
|
32571
|
+
action: "AcceptChat",
|
|
32572
|
+
version: "2020-07-01",
|
|
32573
|
+
protocol: "HTTPS",
|
|
32574
|
+
pathname: "/",
|
|
32575
|
+
method: "POST",
|
|
32576
|
+
authType: "AK",
|
|
32577
|
+
style: "RPC",
|
|
32578
|
+
reqBodyType: "formData",
|
|
32579
|
+
bodyType: "json",
|
|
32580
|
+
});
|
|
32581
|
+
return $tea.cast<AcceptChatResponse>(await this.callApi(params, req, runtime), new AcceptChatResponse({}));
|
|
32582
|
+
}
|
|
32583
|
+
|
|
32584
|
+
/**
|
|
32585
|
+
* @param request AcceptChatRequest
|
|
32586
|
+
* @return AcceptChatResponse
|
|
32587
|
+
*/
|
|
32588
|
+
async acceptChat(request: AcceptChatRequest): Promise<AcceptChatResponse> {
|
|
32589
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
32590
|
+
return await this.acceptChatWithOptions(request, runtime);
|
|
32591
|
+
}
|
|
32592
|
+
|
|
31974
32593
|
/**
|
|
31975
32594
|
* @summary 编辑呼入控制号码
|
|
31976
32595
|
*
|
|
@@ -33019,6 +33638,52 @@ export default class Client extends OpenApi {
|
|
|
33019
33638
|
return await this.changeWorkModeWithOptions(request, runtime);
|
|
33020
33639
|
}
|
|
33021
33640
|
|
|
33641
|
+
/**
|
|
33642
|
+
* @param request ClaimChatRequest
|
|
33643
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
33644
|
+
* @return ClaimChatResponse
|
|
33645
|
+
*/
|
|
33646
|
+
async claimChatWithOptions(request: ClaimChatRequest, runtime: $Util.RuntimeOptions): Promise<ClaimChatResponse> {
|
|
33647
|
+
Util.validateModel(request);
|
|
33648
|
+
let query = { };
|
|
33649
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
33650
|
+
query["InstanceId"] = request.instanceId;
|
|
33651
|
+
}
|
|
33652
|
+
|
|
33653
|
+
if (!Util.isUnset(request.jobId)) {
|
|
33654
|
+
query["JobId"] = request.jobId;
|
|
33655
|
+
}
|
|
33656
|
+
|
|
33657
|
+
if (!Util.isUnset(request.skillGroupId)) {
|
|
33658
|
+
query["SkillGroupId"] = request.skillGroupId;
|
|
33659
|
+
}
|
|
33660
|
+
|
|
33661
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
33662
|
+
query: OpenApiUtil.query(query),
|
|
33663
|
+
});
|
|
33664
|
+
let params = new $OpenApi.Params({
|
|
33665
|
+
action: "ClaimChat",
|
|
33666
|
+
version: "2020-07-01",
|
|
33667
|
+
protocol: "HTTPS",
|
|
33668
|
+
pathname: "/",
|
|
33669
|
+
method: "POST",
|
|
33670
|
+
authType: "AK",
|
|
33671
|
+
style: "RPC",
|
|
33672
|
+
reqBodyType: "formData",
|
|
33673
|
+
bodyType: "json",
|
|
33674
|
+
});
|
|
33675
|
+
return $tea.cast<ClaimChatResponse>(await this.callApi(params, req, runtime), new ClaimChatResponse({}));
|
|
33676
|
+
}
|
|
33677
|
+
|
|
33678
|
+
/**
|
|
33679
|
+
* @param request ClaimChatRequest
|
|
33680
|
+
* @return ClaimChatResponse
|
|
33681
|
+
*/
|
|
33682
|
+
async claimChat(request: ClaimChatRequest): Promise<ClaimChatResponse> {
|
|
33683
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
33684
|
+
return await this.claimChatWithOptions(request, runtime);
|
|
33685
|
+
}
|
|
33686
|
+
|
|
33022
33687
|
/**
|
|
33023
33688
|
* @param request CoachCallRequest
|
|
33024
33689
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -35805,6 +36470,56 @@ export default class Client extends OpenApi {
|
|
|
35805
36470
|
return await this.getVideoWithOptions(request, runtime);
|
|
35806
36471
|
}
|
|
35807
36472
|
|
|
36473
|
+
/**
|
|
36474
|
+
* @param request GetVisitorLoginDetailsRequest
|
|
36475
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
36476
|
+
* @return GetVisitorLoginDetailsResponse
|
|
36477
|
+
*/
|
|
36478
|
+
async getVisitorLoginDetailsWithOptions(request: GetVisitorLoginDetailsRequest, runtime: $Util.RuntimeOptions): Promise<GetVisitorLoginDetailsResponse> {
|
|
36479
|
+
Util.validateModel(request);
|
|
36480
|
+
let query = { };
|
|
36481
|
+
if (!Util.isUnset(request.chatDeviceId)) {
|
|
36482
|
+
query["ChatDeviceId"] = request.chatDeviceId;
|
|
36483
|
+
}
|
|
36484
|
+
|
|
36485
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
36486
|
+
query["InstanceId"] = request.instanceId;
|
|
36487
|
+
}
|
|
36488
|
+
|
|
36489
|
+
if (!Util.isUnset(request.token)) {
|
|
36490
|
+
query["Token"] = request.token;
|
|
36491
|
+
}
|
|
36492
|
+
|
|
36493
|
+
if (!Util.isUnset(request.visitorId)) {
|
|
36494
|
+
query["VisitorId"] = request.visitorId;
|
|
36495
|
+
}
|
|
36496
|
+
|
|
36497
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
36498
|
+
query: OpenApiUtil.query(query),
|
|
36499
|
+
});
|
|
36500
|
+
let params = new $OpenApi.Params({
|
|
36501
|
+
action: "GetVisitorLoginDetails",
|
|
36502
|
+
version: "2020-07-01",
|
|
36503
|
+
protocol: "HTTPS",
|
|
36504
|
+
pathname: "/",
|
|
36505
|
+
method: "POST",
|
|
36506
|
+
authType: "AK",
|
|
36507
|
+
style: "RPC",
|
|
36508
|
+
reqBodyType: "formData",
|
|
36509
|
+
bodyType: "json",
|
|
36510
|
+
});
|
|
36511
|
+
return $tea.cast<GetVisitorLoginDetailsResponse>(await this.callApi(params, req, runtime), new GetVisitorLoginDetailsResponse({}));
|
|
36512
|
+
}
|
|
36513
|
+
|
|
36514
|
+
/**
|
|
36515
|
+
* @param request GetVisitorLoginDetailsRequest
|
|
36516
|
+
* @return GetVisitorLoginDetailsResponse
|
|
36517
|
+
*/
|
|
36518
|
+
async getVisitorLoginDetails(request: GetVisitorLoginDetailsRequest): Promise<GetVisitorLoginDetailsResponse> {
|
|
36519
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
36520
|
+
return await this.getVisitorLoginDetailsWithOptions(request, runtime);
|
|
36521
|
+
}
|
|
36522
|
+
|
|
35808
36523
|
/**
|
|
35809
36524
|
* @param request GetVoicemailRecordingRequest
|
|
35810
36525
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -36407,6 +37122,14 @@ export default class Client extends OpenApi {
|
|
|
36407
37122
|
query["SurveyChannel"] = request.surveyChannel;
|
|
36408
37123
|
}
|
|
36409
37124
|
|
|
37125
|
+
if (!Util.isUnset(request.surveyTemplateId)) {
|
|
37126
|
+
query["SurveyTemplateId"] = request.surveyTemplateId;
|
|
37127
|
+
}
|
|
37128
|
+
|
|
37129
|
+
if (!Util.isUnset(request.surveyTemplateVariables)) {
|
|
37130
|
+
query["SurveyTemplateVariables"] = request.surveyTemplateVariables;
|
|
37131
|
+
}
|
|
37132
|
+
|
|
36410
37133
|
if (!Util.isUnset(request.userId)) {
|
|
36411
37134
|
query["UserId"] = request.userId;
|
|
36412
37135
|
}
|
|
@@ -38707,6 +39430,10 @@ export default class Client extends OpenApi {
|
|
|
38707
39430
|
query["InstanceId"] = request.instanceId;
|
|
38708
39431
|
}
|
|
38709
39432
|
|
|
39433
|
+
if (!Util.isUnset(request.mediaType)) {
|
|
39434
|
+
query["MediaType"] = request.mediaType;
|
|
39435
|
+
}
|
|
39436
|
+
|
|
38710
39437
|
if (!Util.isUnset(request.outboundScenario)) {
|
|
38711
39438
|
query["OutboundScenario"] = request.outboundScenario;
|
|
38712
39439
|
}
|
|
@@ -38779,6 +39506,10 @@ export default class Client extends OpenApi {
|
|
|
38779
39506
|
query["InstanceId"] = request.instanceId;
|
|
38780
39507
|
}
|
|
38781
39508
|
|
|
39509
|
+
if (!Util.isUnset(request.mediaType)) {
|
|
39510
|
+
query["MediaType"] = request.mediaType;
|
|
39511
|
+
}
|
|
39512
|
+
|
|
38782
39513
|
if (!Util.isUnset(request.pageNumber)) {
|
|
38783
39514
|
query["PageNumber"] = request.pageNumber;
|
|
38784
39515
|
}
|
|
@@ -41629,6 +42360,62 @@ export default class Client extends OpenApi {
|
|
|
41629
42360
|
return await this.startBack2BackCallWithOptions(request, runtime);
|
|
41630
42361
|
}
|
|
41631
42362
|
|
|
42363
|
+
/**
|
|
42364
|
+
* @param tmpReq StartChatRequest
|
|
42365
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
42366
|
+
* @return StartChatResponse
|
|
42367
|
+
*/
|
|
42368
|
+
async startChatWithOptions(tmpReq: StartChatRequest, runtime: $Util.RuntimeOptions): Promise<StartChatResponse> {
|
|
42369
|
+
Util.validateModel(tmpReq);
|
|
42370
|
+
let request = new StartChatShrinkRequest({ });
|
|
42371
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
42372
|
+
if (!Util.isUnset(tmpReq.userList)) {
|
|
42373
|
+
request.userListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userList, "UserList", "json");
|
|
42374
|
+
}
|
|
42375
|
+
|
|
42376
|
+
let query = { };
|
|
42377
|
+
if (!Util.isUnset(request.accessChannelId)) {
|
|
42378
|
+
query["AccessChannelId"] = request.accessChannelId;
|
|
42379
|
+
}
|
|
42380
|
+
|
|
42381
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
42382
|
+
query["InstanceId"] = request.instanceId;
|
|
42383
|
+
}
|
|
42384
|
+
|
|
42385
|
+
if (!Util.isUnset(request.token)) {
|
|
42386
|
+
query["Token"] = request.token;
|
|
42387
|
+
}
|
|
42388
|
+
|
|
42389
|
+
if (!Util.isUnset(request.userListShrink)) {
|
|
42390
|
+
query["UserList"] = request.userListShrink;
|
|
42391
|
+
}
|
|
42392
|
+
|
|
42393
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
42394
|
+
query: OpenApiUtil.query(query),
|
|
42395
|
+
});
|
|
42396
|
+
let params = new $OpenApi.Params({
|
|
42397
|
+
action: "StartChat",
|
|
42398
|
+
version: "2020-07-01",
|
|
42399
|
+
protocol: "HTTPS",
|
|
42400
|
+
pathname: "/",
|
|
42401
|
+
method: "POST",
|
|
42402
|
+
authType: "AK",
|
|
42403
|
+
style: "RPC",
|
|
42404
|
+
reqBodyType: "formData",
|
|
42405
|
+
bodyType: "json",
|
|
42406
|
+
});
|
|
42407
|
+
return $tea.cast<StartChatResponse>(await this.callApi(params, req, runtime), new StartChatResponse({}));
|
|
42408
|
+
}
|
|
42409
|
+
|
|
42410
|
+
/**
|
|
42411
|
+
* @param request StartChatRequest
|
|
42412
|
+
* @return StartChatResponse
|
|
42413
|
+
*/
|
|
42414
|
+
async startChat(request: StartChatRequest): Promise<StartChatResponse> {
|
|
42415
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
42416
|
+
return await this.startChatWithOptions(request, runtime);
|
|
42417
|
+
}
|
|
42418
|
+
|
|
41632
42419
|
/**
|
|
41633
42420
|
* @param request StartConferenceRequest
|
|
41634
42421
|
* @param runtime runtime options for this request RuntimeOptions
|