@alicloud/ccc20200701 2.18.2 → 2.19.0

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/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;
@@ -16289,6 +16535,118 @@ export class StartBack2BackCallResponse extends $tea.Model {
16289
16535
  }
16290
16536
  }
16291
16537
 
16538
+ export class StartChatRequest extends $tea.Model {
16539
+ accessChannelId?: string;
16540
+ instanceId?: string;
16541
+ token?: string;
16542
+ userList?: StartChatRequestUserList[];
16543
+ static names(): { [key: string]: string } {
16544
+ return {
16545
+ accessChannelId: 'AccessChannelId',
16546
+ instanceId: 'InstanceId',
16547
+ token: 'Token',
16548
+ userList: 'UserList',
16549
+ };
16550
+ }
16551
+
16552
+ static types(): { [key: string]: any } {
16553
+ return {
16554
+ accessChannelId: 'string',
16555
+ instanceId: 'string',
16556
+ token: 'string',
16557
+ userList: { 'type': 'array', 'itemType': StartChatRequestUserList },
16558
+ };
16559
+ }
16560
+
16561
+ constructor(map?: { [key: string]: any }) {
16562
+ super(map);
16563
+ }
16564
+ }
16565
+
16566
+ export class StartChatShrinkRequest extends $tea.Model {
16567
+ accessChannelId?: string;
16568
+ instanceId?: string;
16569
+ token?: string;
16570
+ userListShrink?: string;
16571
+ static names(): { [key: string]: string } {
16572
+ return {
16573
+ accessChannelId: 'AccessChannelId',
16574
+ instanceId: 'InstanceId',
16575
+ token: 'Token',
16576
+ userListShrink: 'UserList',
16577
+ };
16578
+ }
16579
+
16580
+ static types(): { [key: string]: any } {
16581
+ return {
16582
+ accessChannelId: 'string',
16583
+ instanceId: 'string',
16584
+ token: 'string',
16585
+ userListShrink: 'string',
16586
+ };
16587
+ }
16588
+
16589
+ constructor(map?: { [key: string]: any }) {
16590
+ super(map);
16591
+ }
16592
+ }
16593
+
16594
+ export class StartChatResponseBody extends $tea.Model {
16595
+ code?: string;
16596
+ data?: StartChatResponseBodyData;
16597
+ httpStatusCode?: number;
16598
+ message?: string;
16599
+ requestId?: string;
16600
+ static names(): { [key: string]: string } {
16601
+ return {
16602
+ code: 'Code',
16603
+ data: 'Data',
16604
+ httpStatusCode: 'HttpStatusCode',
16605
+ message: 'Message',
16606
+ requestId: 'RequestId',
16607
+ };
16608
+ }
16609
+
16610
+ static types(): { [key: string]: any } {
16611
+ return {
16612
+ code: 'string',
16613
+ data: StartChatResponseBodyData,
16614
+ httpStatusCode: 'number',
16615
+ message: 'string',
16616
+ requestId: 'string',
16617
+ };
16618
+ }
16619
+
16620
+ constructor(map?: { [key: string]: any }) {
16621
+ super(map);
16622
+ }
16623
+ }
16624
+
16625
+ export class StartChatResponse extends $tea.Model {
16626
+ headers?: { [key: string]: string };
16627
+ statusCode?: number;
16628
+ body?: StartChatResponseBody;
16629
+ static names(): { [key: string]: string } {
16630
+ return {
16631
+ headers: 'headers',
16632
+ statusCode: 'statusCode',
16633
+ body: 'body',
16634
+ };
16635
+ }
16636
+
16637
+ static types(): { [key: string]: any } {
16638
+ return {
16639
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
16640
+ statusCode: 'number',
16641
+ body: StartChatResponseBody,
16642
+ };
16643
+ }
16644
+
16645
+ constructor(map?: { [key: string]: any }) {
16646
+ super(map);
16647
+ }
16648
+ }
16649
+
16292
16650
  export class StartConferenceRequest extends $tea.Model {
16293
16651
  instanceId?: string;
16294
16652
  participantListJson?: string;
@@ -18204,13 +18562,103 @@ export class ChangeVisibilityResponseBodyData extends $tea.Model {
18204
18562
  }
18205
18563
  }
18206
18564
 
18207
- export class ChangeWorkModeResponseBodyData extends $tea.Model {
18565
+ export class ChangeWorkModeResponseBodyData extends $tea.Model {
18566
+ breakCode?: string;
18567
+ deviceId?: string;
18568
+ extension?: string;
18569
+ instanceId?: string;
18570
+ jobId?: string;
18571
+ outboundScenario?: boolean;
18572
+ signedSkillGroupIdList?: string[];
18573
+ userId?: string;
18574
+ userState?: string;
18575
+ workMode?: string;
18576
+ static names(): { [key: string]: string } {
18577
+ return {
18578
+ breakCode: 'BreakCode',
18579
+ deviceId: 'DeviceId',
18580
+ extension: 'Extension',
18581
+ instanceId: 'InstanceId',
18582
+ jobId: 'JobId',
18583
+ outboundScenario: 'OutboundScenario',
18584
+ signedSkillGroupIdList: 'SignedSkillGroupIdList',
18585
+ userId: 'UserId',
18586
+ userState: 'UserState',
18587
+ workMode: 'WorkMode',
18588
+ };
18589
+ }
18590
+
18591
+ static types(): { [key: string]: any } {
18592
+ return {
18593
+ breakCode: 'string',
18594
+ deviceId: 'string',
18595
+ extension: 'string',
18596
+ instanceId: 'string',
18597
+ jobId: 'string',
18598
+ outboundScenario: 'boolean',
18599
+ signedSkillGroupIdList: { 'type': 'array', 'itemType': 'string' },
18600
+ userId: 'string',
18601
+ userState: 'string',
18602
+ workMode: 'string',
18603
+ };
18604
+ }
18605
+
18606
+ constructor(map?: { [key: string]: any }) {
18607
+ super(map);
18608
+ }
18609
+ }
18610
+
18611
+ export class ClaimChatResponseBodyDataChatContexts extends $tea.Model {
18612
+ accessChannelId?: string;
18613
+ accessChannelName?: string;
18614
+ accessChannelType?: string;
18615
+ beingAssigned?: boolean;
18616
+ callVariables?: string;
18617
+ chatType?: string;
18618
+ instanceId?: string;
18619
+ jobId?: string;
18620
+ static names(): { [key: string]: string } {
18621
+ return {
18622
+ accessChannelId: 'AccessChannelId',
18623
+ accessChannelName: 'AccessChannelName',
18624
+ accessChannelType: 'AccessChannelType',
18625
+ beingAssigned: 'BeingAssigned',
18626
+ callVariables: 'CallVariables',
18627
+ chatType: 'ChatType',
18628
+ instanceId: 'InstanceId',
18629
+ jobId: 'JobId',
18630
+ };
18631
+ }
18632
+
18633
+ static types(): { [key: string]: any } {
18634
+ return {
18635
+ accessChannelId: 'string',
18636
+ accessChannelName: 'string',
18637
+ accessChannelType: 'string',
18638
+ beingAssigned: 'boolean',
18639
+ callVariables: 'string',
18640
+ chatType: 'string',
18641
+ instanceId: 'string',
18642
+ jobId: 'string',
18643
+ };
18644
+ }
18645
+
18646
+ constructor(map?: { [key: string]: any }) {
18647
+ super(map);
18648
+ }
18649
+ }
18650
+
18651
+ export class ClaimChatResponseBodyDataUserContext extends $tea.Model {
18208
18652
  breakCode?: string;
18209
18653
  deviceId?: string;
18654
+ deviceState?: string;
18210
18655
  extension?: string;
18656
+ heartbeat?: number;
18211
18657
  instanceId?: string;
18212
18658
  jobId?: string;
18659
+ mobile?: string;
18213
18660
  outboundScenario?: boolean;
18661
+ reserved?: number;
18214
18662
  signedSkillGroupIdList?: string[];
18215
18663
  userId?: string;
18216
18664
  userState?: string;
@@ -18219,10 +18667,14 @@ export class ChangeWorkModeResponseBodyData extends $tea.Model {
18219
18667
  return {
18220
18668
  breakCode: 'BreakCode',
18221
18669
  deviceId: 'DeviceId',
18670
+ deviceState: 'DeviceState',
18222
18671
  extension: 'Extension',
18672
+ heartbeat: 'Heartbeat',
18223
18673
  instanceId: 'InstanceId',
18224
18674
  jobId: 'JobId',
18675
+ mobile: 'Mobile',
18225
18676
  outboundScenario: 'OutboundScenario',
18677
+ reserved: 'Reserved',
18226
18678
  signedSkillGroupIdList: 'SignedSkillGroupIdList',
18227
18679
  userId: 'UserId',
18228
18680
  userState: 'UserState',
@@ -18234,10 +18686,14 @@ export class ChangeWorkModeResponseBodyData extends $tea.Model {
18234
18686
  return {
18235
18687
  breakCode: 'string',
18236
18688
  deviceId: 'string',
18689
+ deviceState: 'string',
18237
18690
  extension: 'string',
18691
+ heartbeat: 'number',
18238
18692
  instanceId: 'string',
18239
18693
  jobId: 'string',
18694
+ mobile: 'string',
18240
18695
  outboundScenario: 'boolean',
18696
+ reserved: 'number',
18241
18697
  signedSkillGroupIdList: { 'type': 'array', 'itemType': 'string' },
18242
18698
  userId: 'string',
18243
18699
  userState: 'string',
@@ -18250,6 +18706,31 @@ export class ChangeWorkModeResponseBodyData extends $tea.Model {
18250
18706
  }
18251
18707
  }
18252
18708
 
18709
+ export class ClaimChatResponseBodyData extends $tea.Model {
18710
+ chatContexts?: ClaimChatResponseBodyDataChatContexts[];
18711
+ contextId?: number;
18712
+ userContext?: ClaimChatResponseBodyDataUserContext;
18713
+ static names(): { [key: string]: string } {
18714
+ return {
18715
+ chatContexts: 'ChatContexts',
18716
+ contextId: 'ContextId',
18717
+ userContext: 'UserContext',
18718
+ };
18719
+ }
18720
+
18721
+ static types(): { [key: string]: any } {
18722
+ return {
18723
+ chatContexts: { 'type': 'array', 'itemType': ClaimChatResponseBodyDataChatContexts },
18724
+ contextId: 'number',
18725
+ userContext: ClaimChatResponseBodyDataUserContext,
18726
+ };
18727
+ }
18728
+
18729
+ constructor(map?: { [key: string]: any }) {
18730
+ super(map);
18731
+ }
18732
+ }
18733
+
18253
18734
  export class CoachCallResponseBodyDataCallContextChannelContexts extends $tea.Model {
18254
18735
  callType?: string;
18255
18736
  channelFlags?: string;
@@ -20900,6 +21381,40 @@ export class GetVideoResponseBodyData extends $tea.Model {
20900
21381
  }
20901
21382
  }
20902
21383
 
21384
+ export class GetVisitorLoginDetailsResponseBodyData extends $tea.Model {
21385
+ chatAppId?: string;
21386
+ chatAppKey?: string;
21387
+ chatDeviceId?: string;
21388
+ chatLoginToken?: string;
21389
+ chatServerUrl?: string;
21390
+ chatUserId?: string;
21391
+ static names(): { [key: string]: string } {
21392
+ return {
21393
+ chatAppId: 'ChatAppId',
21394
+ chatAppKey: 'ChatAppKey',
21395
+ chatDeviceId: 'ChatDeviceId',
21396
+ chatLoginToken: 'ChatLoginToken',
21397
+ chatServerUrl: 'ChatServerUrl',
21398
+ chatUserId: 'ChatUserId',
21399
+ };
21400
+ }
21401
+
21402
+ static types(): { [key: string]: any } {
21403
+ return {
21404
+ chatAppId: 'string',
21405
+ chatAppKey: 'string',
21406
+ chatDeviceId: 'string',
21407
+ chatLoginToken: 'string',
21408
+ chatServerUrl: 'string',
21409
+ chatUserId: 'string',
21410
+ };
21411
+ }
21412
+
21413
+ constructor(map?: { [key: string]: any }) {
21414
+ super(map);
21415
+ }
21416
+ }
21417
+
20903
21418
  export class GetVoicemailRecordingResponseBodyData extends $tea.Model {
20904
21419
  fileName?: string;
20905
21420
  fileUrl?: string;
@@ -31113,6 +31628,56 @@ export class StartBack2BackCallResponseBodyData extends $tea.Model {
31113
31628
  }
31114
31629
  }
31115
31630
 
31631
+ export class StartChatRequestUserList extends $tea.Model {
31632
+ avatarUrl?: string;
31633
+ nickname?: string;
31634
+ userId?: string;
31635
+ userType?: string;
31636
+ static names(): { [key: string]: string } {
31637
+ return {
31638
+ avatarUrl: 'AvatarUrl',
31639
+ nickname: 'Nickname',
31640
+ userId: 'UserId',
31641
+ userType: 'UserType',
31642
+ };
31643
+ }
31644
+
31645
+ static types(): { [key: string]: any } {
31646
+ return {
31647
+ avatarUrl: 'string',
31648
+ nickname: 'string',
31649
+ userId: 'string',
31650
+ userType: 'string',
31651
+ };
31652
+ }
31653
+
31654
+ constructor(map?: { [key: string]: any }) {
31655
+ super(map);
31656
+ }
31657
+ }
31658
+
31659
+ export class StartChatResponseBodyData extends $tea.Model {
31660
+ chatConversationId?: string;
31661
+ jobId?: string;
31662
+ static names(): { [key: string]: string } {
31663
+ return {
31664
+ chatConversationId: 'ChatConversationId',
31665
+ jobId: 'JobId',
31666
+ };
31667
+ }
31668
+
31669
+ static types(): { [key: string]: any } {
31670
+ return {
31671
+ chatConversationId: 'string',
31672
+ jobId: 'string',
31673
+ };
31674
+ }
31675
+
31676
+ constructor(map?: { [key: string]: any }) {
31677
+ super(map);
31678
+ }
31679
+ }
31680
+
31116
31681
  export class StartConferenceResponseBodyDataCallContextChannelContexts extends $tea.Model {
31117
31682
  callType?: string;
31118
31683
  channelFlags?: string;
@@ -31971,6 +32536,48 @@ export default class Client extends OpenApi {
31971
32536
  return await this.abortCampaignWithOptions(request, runtime);
31972
32537
  }
31973
32538
 
32539
+ /**
32540
+ * @param request AcceptChatRequest
32541
+ * @param runtime runtime options for this request RuntimeOptions
32542
+ * @return AcceptChatResponse
32543
+ */
32544
+ async acceptChatWithOptions(request: AcceptChatRequest, runtime: $Util.RuntimeOptions): Promise<AcceptChatResponse> {
32545
+ Util.validateModel(request);
32546
+ let query = { };
32547
+ if (!Util.isUnset(request.instanceId)) {
32548
+ query["InstanceId"] = request.instanceId;
32549
+ }
32550
+
32551
+ if (!Util.isUnset(request.jobId)) {
32552
+ query["JobId"] = request.jobId;
32553
+ }
32554
+
32555
+ let req = new $OpenApi.OpenApiRequest({
32556
+ query: OpenApiUtil.query(query),
32557
+ });
32558
+ let params = new $OpenApi.Params({
32559
+ action: "AcceptChat",
32560
+ version: "2020-07-01",
32561
+ protocol: "HTTPS",
32562
+ pathname: "/",
32563
+ method: "POST",
32564
+ authType: "AK",
32565
+ style: "RPC",
32566
+ reqBodyType: "formData",
32567
+ bodyType: "json",
32568
+ });
32569
+ return $tea.cast<AcceptChatResponse>(await this.callApi(params, req, runtime), new AcceptChatResponse({}));
32570
+ }
32571
+
32572
+ /**
32573
+ * @param request AcceptChatRequest
32574
+ * @return AcceptChatResponse
32575
+ */
32576
+ async acceptChat(request: AcceptChatRequest): Promise<AcceptChatResponse> {
32577
+ let runtime = new $Util.RuntimeOptions({ });
32578
+ return await this.acceptChatWithOptions(request, runtime);
32579
+ }
32580
+
31974
32581
  /**
31975
32582
  * @summary 编辑呼入控制号码
31976
32583
  *
@@ -33019,6 +33626,52 @@ export default class Client extends OpenApi {
33019
33626
  return await this.changeWorkModeWithOptions(request, runtime);
33020
33627
  }
33021
33628
 
33629
+ /**
33630
+ * @param request ClaimChatRequest
33631
+ * @param runtime runtime options for this request RuntimeOptions
33632
+ * @return ClaimChatResponse
33633
+ */
33634
+ async claimChatWithOptions(request: ClaimChatRequest, runtime: $Util.RuntimeOptions): Promise<ClaimChatResponse> {
33635
+ Util.validateModel(request);
33636
+ let query = { };
33637
+ if (!Util.isUnset(request.instanceId)) {
33638
+ query["InstanceId"] = request.instanceId;
33639
+ }
33640
+
33641
+ if (!Util.isUnset(request.jobId)) {
33642
+ query["JobId"] = request.jobId;
33643
+ }
33644
+
33645
+ if (!Util.isUnset(request.skillGroupId)) {
33646
+ query["SkillGroupId"] = request.skillGroupId;
33647
+ }
33648
+
33649
+ let req = new $OpenApi.OpenApiRequest({
33650
+ query: OpenApiUtil.query(query),
33651
+ });
33652
+ let params = new $OpenApi.Params({
33653
+ action: "ClaimChat",
33654
+ version: "2020-07-01",
33655
+ protocol: "HTTPS",
33656
+ pathname: "/",
33657
+ method: "POST",
33658
+ authType: "AK",
33659
+ style: "RPC",
33660
+ reqBodyType: "formData",
33661
+ bodyType: "json",
33662
+ });
33663
+ return $tea.cast<ClaimChatResponse>(await this.callApi(params, req, runtime), new ClaimChatResponse({}));
33664
+ }
33665
+
33666
+ /**
33667
+ * @param request ClaimChatRequest
33668
+ * @return ClaimChatResponse
33669
+ */
33670
+ async claimChat(request: ClaimChatRequest): Promise<ClaimChatResponse> {
33671
+ let runtime = new $Util.RuntimeOptions({ });
33672
+ return await this.claimChatWithOptions(request, runtime);
33673
+ }
33674
+
33022
33675
  /**
33023
33676
  * @param request CoachCallRequest
33024
33677
  * @param runtime runtime options for this request RuntimeOptions
@@ -35805,6 +36458,56 @@ export default class Client extends OpenApi {
35805
36458
  return await this.getVideoWithOptions(request, runtime);
35806
36459
  }
35807
36460
 
36461
+ /**
36462
+ * @param request GetVisitorLoginDetailsRequest
36463
+ * @param runtime runtime options for this request RuntimeOptions
36464
+ * @return GetVisitorLoginDetailsResponse
36465
+ */
36466
+ async getVisitorLoginDetailsWithOptions(request: GetVisitorLoginDetailsRequest, runtime: $Util.RuntimeOptions): Promise<GetVisitorLoginDetailsResponse> {
36467
+ Util.validateModel(request);
36468
+ let query = { };
36469
+ if (!Util.isUnset(request.chatDeviceId)) {
36470
+ query["ChatDeviceId"] = request.chatDeviceId;
36471
+ }
36472
+
36473
+ if (!Util.isUnset(request.instanceId)) {
36474
+ query["InstanceId"] = request.instanceId;
36475
+ }
36476
+
36477
+ if (!Util.isUnset(request.token)) {
36478
+ query["Token"] = request.token;
36479
+ }
36480
+
36481
+ if (!Util.isUnset(request.visitorId)) {
36482
+ query["VisitorId"] = request.visitorId;
36483
+ }
36484
+
36485
+ let req = new $OpenApi.OpenApiRequest({
36486
+ query: OpenApiUtil.query(query),
36487
+ });
36488
+ let params = new $OpenApi.Params({
36489
+ action: "GetVisitorLoginDetails",
36490
+ version: "2020-07-01",
36491
+ protocol: "HTTPS",
36492
+ pathname: "/",
36493
+ method: "POST",
36494
+ authType: "AK",
36495
+ style: "RPC",
36496
+ reqBodyType: "formData",
36497
+ bodyType: "json",
36498
+ });
36499
+ return $tea.cast<GetVisitorLoginDetailsResponse>(await this.callApi(params, req, runtime), new GetVisitorLoginDetailsResponse({}));
36500
+ }
36501
+
36502
+ /**
36503
+ * @param request GetVisitorLoginDetailsRequest
36504
+ * @return GetVisitorLoginDetailsResponse
36505
+ */
36506
+ async getVisitorLoginDetails(request: GetVisitorLoginDetailsRequest): Promise<GetVisitorLoginDetailsResponse> {
36507
+ let runtime = new $Util.RuntimeOptions({ });
36508
+ return await this.getVisitorLoginDetailsWithOptions(request, runtime);
36509
+ }
36510
+
35808
36511
  /**
35809
36512
  * @param request GetVoicemailRecordingRequest
35810
36513
  * @param runtime runtime options for this request RuntimeOptions
@@ -41629,6 +42332,62 @@ export default class Client extends OpenApi {
41629
42332
  return await this.startBack2BackCallWithOptions(request, runtime);
41630
42333
  }
41631
42334
 
42335
+ /**
42336
+ * @param tmpReq StartChatRequest
42337
+ * @param runtime runtime options for this request RuntimeOptions
42338
+ * @return StartChatResponse
42339
+ */
42340
+ async startChatWithOptions(tmpReq: StartChatRequest, runtime: $Util.RuntimeOptions): Promise<StartChatResponse> {
42341
+ Util.validateModel(tmpReq);
42342
+ let request = new StartChatShrinkRequest({ });
42343
+ OpenApiUtil.convert(tmpReq, request);
42344
+ if (!Util.isUnset(tmpReq.userList)) {
42345
+ request.userListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userList, "UserList", "json");
42346
+ }
42347
+
42348
+ let query = { };
42349
+ if (!Util.isUnset(request.accessChannelId)) {
42350
+ query["AccessChannelId"] = request.accessChannelId;
42351
+ }
42352
+
42353
+ if (!Util.isUnset(request.instanceId)) {
42354
+ query["InstanceId"] = request.instanceId;
42355
+ }
42356
+
42357
+ if (!Util.isUnset(request.token)) {
42358
+ query["Token"] = request.token;
42359
+ }
42360
+
42361
+ if (!Util.isUnset(request.userListShrink)) {
42362
+ query["UserList"] = request.userListShrink;
42363
+ }
42364
+
42365
+ let req = new $OpenApi.OpenApiRequest({
42366
+ query: OpenApiUtil.query(query),
42367
+ });
42368
+ let params = new $OpenApi.Params({
42369
+ action: "StartChat",
42370
+ version: "2020-07-01",
42371
+ protocol: "HTTPS",
42372
+ pathname: "/",
42373
+ method: "POST",
42374
+ authType: "AK",
42375
+ style: "RPC",
42376
+ reqBodyType: "formData",
42377
+ bodyType: "json",
42378
+ });
42379
+ return $tea.cast<StartChatResponse>(await this.callApi(params, req, runtime), new StartChatResponse({}));
42380
+ }
42381
+
42382
+ /**
42383
+ * @param request StartChatRequest
42384
+ * @return StartChatResponse
42385
+ */
42386
+ async startChat(request: StartChatRequest): Promise<StartChatResponse> {
42387
+ let runtime = new $Util.RuntimeOptions({ });
42388
+ return await this.startChatWithOptions(request, runtime);
42389
+ }
42390
+
41632
42391
  /**
41633
42392
  * @param request StartConferenceRequest
41634
42393
  * @param runtime runtime options for this request RuntimeOptions