@alicloud/dyvmsapi20170525 3.2.0 → 4.1.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/dist/client.d.ts +117 -61
- package/dist/client.js +671 -103
- package/dist/client.js.map +1 -1
- package/dist/models/CloudCreateAgentRequest.d.ts +200 -0
- package/dist/models/CloudCreateAgentRequest.js +106 -0
- package/dist/models/CloudCreateAgentRequest.js.map +1 -0
- package/dist/models/CloudCreateAgentResponse.d.ts +19 -0
- package/dist/models/CloudCreateAgentResponse.js +69 -0
- package/dist/models/CloudCreateAgentResponse.js.map +1 -0
- package/dist/models/CloudCreateAgentResponseBody.d.ts +304 -0
- package/dist/models/CloudCreateAgentResponseBody.js +190 -0
- package/dist/models/CloudCreateAgentResponseBody.js.map +1 -0
- package/dist/models/CloudCreateTaskRequest.d.ts +430 -0
- package/dist/models/CloudCreateTaskRequest.js +164 -0
- package/dist/models/CloudCreateTaskRequest.js.map +1 -0
- package/dist/models/CloudCreateTaskResponse.d.ts +19 -0
- package/dist/models/CloudCreateTaskResponse.js +69 -0
- package/dist/models/CloudCreateTaskResponse.js.map +1 -0
- package/dist/models/CloudCreateTaskResponseBody.d.ts +192 -0
- package/dist/models/CloudCreateTaskResponseBody.js +146 -0
- package/dist/models/CloudCreateTaskResponseBody.js.map +1 -0
- package/dist/models/CloudImportTaskTelRequest.d.ts +161 -0
- package/dist/models/CloudImportTaskTelRequest.js +114 -0
- package/dist/models/CloudImportTaskTelRequest.js.map +1 -0
- package/dist/models/{QueryVirtualNumberResponse.d.ts → CloudImportTaskTelResponse.d.ts} +3 -3
- package/dist/models/{QueryVirtualNumberResponse.js → CloudImportTaskTelResponse.js} +6 -6
- package/dist/models/{QueryVirtualNumberResponse.js.map → CloudImportTaskTelResponse.js.map} +1 -1
- package/dist/models/CloudImportTaskTelResponseBody.d.ts +82 -0
- package/dist/models/CloudImportTaskTelResponseBody.js +96 -0
- package/dist/models/CloudImportTaskTelResponseBody.js.map +1 -0
- package/dist/models/CloudImportTaskTelShrinkRequest.d.ts +101 -0
- package/dist/models/CloudImportTaskTelShrinkRequest.js +82 -0
- package/dist/models/CloudImportTaskTelShrinkRequest.js.map +1 -0
- package/dist/models/CloudStartTaskRequest.d.ts +36 -0
- package/dist/models/{QueryVirtualNumberRequest.js → CloudStartTaskRequest.js} +8 -12
- package/dist/models/CloudStartTaskRequest.js.map +1 -0
- package/dist/models/CloudStartTaskResponse.d.ts +19 -0
- package/dist/models/{QueryVirtualNumberResponseBody.js → CloudStartTaskResponse.js} +17 -10
- package/dist/models/CloudStartTaskResponse.js.map +1 -0
- package/dist/models/CloudStartTaskResponseBody.d.ts +50 -0
- package/dist/models/CloudStartTaskResponseBody.js +88 -0
- package/dist/models/CloudStartTaskResponseBody.js.map +1 -0
- package/dist/models/CloudUpdateTaskRequest.d.ts +404 -0
- package/dist/models/CloudUpdateTaskRequest.js +158 -0
- package/dist/models/CloudUpdateTaskRequest.js.map +1 -0
- package/dist/models/CloudUpdateTaskResponse.d.ts +19 -0
- package/dist/models/CloudUpdateTaskResponse.js +69 -0
- package/dist/models/CloudUpdateTaskResponse.js.map +1 -0
- package/dist/models/CloudUpdateTaskResponseBody.d.ts +192 -0
- package/dist/models/CloudUpdateTaskResponseBody.js +146 -0
- package/dist/models/CloudUpdateTaskResponseBody.js.map +1 -0
- package/dist/models/GetHotlineQualificationByOrderResponseBody.d.ts +0 -2
- package/dist/models/GetHotlineQualificationByOrderResponseBody.js +0 -2
- package/dist/models/GetHotlineQualificationByOrderResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +24 -3
- package/dist/models/model.js +53 -10
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +902 -184
- package/src/models/CloudCreateAgentRequest.ts +261 -0
- package/src/models/{QueryVirtualNumberResponse.ts → CloudCreateAgentResponse.ts} +4 -4
- package/src/models/CloudCreateAgentResponseBody.ts +420 -0
- package/src/models/CloudCreateTaskRequest.ts +549 -0
- package/src/models/CloudCreateTaskResponse.ts +40 -0
- package/src/models/CloudCreateTaskResponseBody.ts +284 -0
- package/src/models/CloudImportTaskTelRequest.ts +221 -0
- package/src/models/CloudImportTaskTelResponse.ts +40 -0
- package/src/models/CloudImportTaskTelResponseBody.ts +124 -0
- package/src/models/CloudImportTaskTelShrinkRequest.ts +138 -0
- package/src/models/{QueryVirtualNumberRequest.ts → CloudStartTaskRequest.ts} +14 -33
- package/src/models/CloudStartTaskResponse.ts +40 -0
- package/src/models/CloudStartTaskResponseBody.ts +84 -0
- package/src/models/CloudUpdateTaskRequest.ts +517 -0
- package/src/models/CloudUpdateTaskResponse.ts +40 -0
- package/src/models/CloudUpdateTaskResponseBody.ts +284 -0
- package/src/models/GetHotlineQualificationByOrderResponseBody.ts +0 -2
- package/src/models/model.ts +24 -3
- package/dist/models/QueryVirtualNumberRequest.d.ts +0 -51
- package/dist/models/QueryVirtualNumberRequest.js.map +0 -1
- package/dist/models/QueryVirtualNumberResponseBody.d.ts +0 -51
- package/dist/models/QueryVirtualNumberResponseBody.js.map +0 -1
- package/src/models/QueryVirtualNumberResponseBody.ts +0 -68
package/dist/client.js
CHANGED
|
@@ -62,7 +62,7 @@ class Client extends openapi_core_1.default {
|
|
|
62
62
|
return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Binds multiple real numbers to a service instance at a time.
|
|
66
66
|
*
|
|
67
67
|
* @remarks
|
|
68
68
|
* ### QPS limits
|
|
@@ -116,7 +116,7 @@ class Client extends openapi_core_1.default {
|
|
|
116
116
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddVirtualNumberRelationResponse({}));
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
119
|
+
* Binds multiple real numbers to a service instance at a time.
|
|
120
120
|
*
|
|
121
121
|
* @remarks
|
|
122
122
|
* ### QPS limits
|
|
@@ -130,7 +130,7 @@ class Client extends openapi_core_1.default {
|
|
|
130
130
|
return await this.addVirtualNumberRelationWithOptions(request, runtime);
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
|
-
* Initiates
|
|
133
|
+
* Initiates outbound robocall tasks in a batch. You can set up to 100 numbers in a task.
|
|
134
134
|
*
|
|
135
135
|
* @remarks
|
|
136
136
|
* In an intelligent speech interaction task, you can use the robot communication scripts preset in the Voice Messaging Service console, or invoke the callback function to return the response mode configured by the business party in each call.
|
|
@@ -207,7 +207,7 @@ class Client extends openapi_core_1.default {
|
|
|
207
207
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.BatchRobotSmartCallResponse({}));
|
|
208
208
|
}
|
|
209
209
|
/**
|
|
210
|
-
* Initiates
|
|
210
|
+
* Initiates outbound robocall tasks in a batch. You can set up to 100 numbers in a task.
|
|
211
211
|
*
|
|
212
212
|
* @remarks
|
|
213
213
|
* In an intelligent speech interaction task, you can use the robot communication scripts preset in the Voice Messaging Service console, or invoke the callback function to return the response mode configured by the business party in each call.
|
|
@@ -226,6 +226,8 @@ class Client extends openapi_core_1.default {
|
|
|
226
226
|
return await this.batchRobotSmartCallWithOptions(request, runtime);
|
|
227
227
|
}
|
|
228
228
|
/**
|
|
229
|
+
* Cancels the two-way call that is initiated by calling the ClickToDial operation.
|
|
230
|
+
*
|
|
229
231
|
* @param request - CancelCallRequest
|
|
230
232
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
231
233
|
* @returns CancelCallResponse
|
|
@@ -262,6 +264,8 @@ class Client extends openapi_core_1.default {
|
|
|
262
264
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CancelCallResponse({}));
|
|
263
265
|
}
|
|
264
266
|
/**
|
|
267
|
+
* Cancels the two-way call that is initiated by calling the ClickToDial operation.
|
|
268
|
+
*
|
|
265
269
|
* @param request - CancelCallRequest
|
|
266
270
|
* @returns CancelCallResponse
|
|
267
271
|
*/
|
|
@@ -441,7 +445,636 @@ class Client extends openapi_core_1.default {
|
|
|
441
445
|
return await this.changeMediaTypeWithOptions(request, runtime);
|
|
442
446
|
}
|
|
443
447
|
/**
|
|
444
|
-
*
|
|
448
|
+
* 座席新增
|
|
449
|
+
*
|
|
450
|
+
* @param request - CloudCreateAgentRequest
|
|
451
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
452
|
+
* @returns CloudCreateAgentResponse
|
|
453
|
+
*/
|
|
454
|
+
async cloudCreateAgentWithOptions(request, runtime) {
|
|
455
|
+
request.validate();
|
|
456
|
+
let query = {};
|
|
457
|
+
if (!$dara.isNull(request.active)) {
|
|
458
|
+
query["Active"] = request.active;
|
|
459
|
+
}
|
|
460
|
+
if (!$dara.isNull(request.areaCode)) {
|
|
461
|
+
query["AreaCode"] = request.areaCode;
|
|
462
|
+
}
|
|
463
|
+
if (!$dara.isNull(request.callPower)) {
|
|
464
|
+
query["CallPower"] = request.callPower;
|
|
465
|
+
}
|
|
466
|
+
if (!$dara.isNull(request.cno)) {
|
|
467
|
+
query["Cno"] = request.cno;
|
|
468
|
+
}
|
|
469
|
+
if (!$dara.isNull(request.comment)) {
|
|
470
|
+
query["Comment"] = request.comment;
|
|
471
|
+
}
|
|
472
|
+
if (!$dara.isNull(request.enterpriseId)) {
|
|
473
|
+
query["EnterpriseId"] = request.enterpriseId;
|
|
474
|
+
}
|
|
475
|
+
if (!$dara.isNull(request.ibRecord)) {
|
|
476
|
+
query["IbRecord"] = request.ibRecord;
|
|
477
|
+
}
|
|
478
|
+
if (!$dara.isNull(request.isAsr)) {
|
|
479
|
+
query["IsAsr"] = request.isAsr;
|
|
480
|
+
}
|
|
481
|
+
if (!$dara.isNull(request.isOb)) {
|
|
482
|
+
query["IsOb"] = request.isOb;
|
|
483
|
+
}
|
|
484
|
+
if (!$dara.isNull(request.isObRemember)) {
|
|
485
|
+
query["IsObRemember"] = request.isObRemember;
|
|
486
|
+
}
|
|
487
|
+
if (!$dara.isNull(request.isQualityCheck)) {
|
|
488
|
+
query["IsQualityCheck"] = request.isQualityCheck;
|
|
489
|
+
}
|
|
490
|
+
if (!$dara.isNull(request.name)) {
|
|
491
|
+
query["Name"] = request.name;
|
|
492
|
+
}
|
|
493
|
+
if (!$dara.isNull(request.obClid)) {
|
|
494
|
+
query["ObClid"] = request.obClid;
|
|
495
|
+
}
|
|
496
|
+
if (!$dara.isNull(request.obClidProperty)) {
|
|
497
|
+
query["ObClidProperty"] = request.obClidProperty;
|
|
498
|
+
}
|
|
499
|
+
if (!$dara.isNull(request.obClidType)) {
|
|
500
|
+
query["ObClidType"] = request.obClidType;
|
|
501
|
+
}
|
|
502
|
+
if (!$dara.isNull(request.obRecord)) {
|
|
503
|
+
query["ObRecord"] = request.obRecord;
|
|
504
|
+
}
|
|
505
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
506
|
+
query["OwnerId"] = request.ownerId;
|
|
507
|
+
}
|
|
508
|
+
if (!$dara.isNull(request.permitObPreviewTime)) {
|
|
509
|
+
query["PermitObPreviewTime"] = request.permitObPreviewTime;
|
|
510
|
+
}
|
|
511
|
+
if (!$dara.isNull(request.power)) {
|
|
512
|
+
query["Power"] = request.power;
|
|
513
|
+
}
|
|
514
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
515
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
516
|
+
}
|
|
517
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
518
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
519
|
+
}
|
|
520
|
+
if (!$dara.isNull(request.skillIds)) {
|
|
521
|
+
query["SkillIds"] = request.skillIds;
|
|
522
|
+
}
|
|
523
|
+
if (!$dara.isNull(request.skillLevels)) {
|
|
524
|
+
query["SkillLevels"] = request.skillLevels;
|
|
525
|
+
}
|
|
526
|
+
if (!$dara.isNull(request.webrtcUrlType)) {
|
|
527
|
+
query["WebrtcUrlType"] = request.webrtcUrlType;
|
|
528
|
+
}
|
|
529
|
+
if (!$dara.isNull(request.wrapup)) {
|
|
530
|
+
query["Wrapup"] = request.wrapup;
|
|
531
|
+
}
|
|
532
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
533
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
534
|
+
});
|
|
535
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
536
|
+
action: "CloudCreateAgent",
|
|
537
|
+
version: "2017-05-25",
|
|
538
|
+
protocol: "HTTPS",
|
|
539
|
+
pathname: "/",
|
|
540
|
+
method: "POST",
|
|
541
|
+
authType: "AK",
|
|
542
|
+
style: "RPC",
|
|
543
|
+
reqBodyType: "formData",
|
|
544
|
+
bodyType: "json",
|
|
545
|
+
});
|
|
546
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CloudCreateAgentResponse({}));
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* 座席新增
|
|
550
|
+
*
|
|
551
|
+
* @param request - CloudCreateAgentRequest
|
|
552
|
+
* @returns CloudCreateAgentResponse
|
|
553
|
+
*/
|
|
554
|
+
async cloudCreateAgent(request) {
|
|
555
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
556
|
+
return await this.cloudCreateAgentWithOptions(request, runtime);
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* 新增任务
|
|
560
|
+
*
|
|
561
|
+
* @param request - CloudCreateTaskRequest
|
|
562
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
563
|
+
* @returns CloudCreateTaskResponse
|
|
564
|
+
*/
|
|
565
|
+
async cloudCreateTaskWithOptions(request, runtime) {
|
|
566
|
+
request.validate();
|
|
567
|
+
let query = {};
|
|
568
|
+
if (!$dara.isNull(request.agentGroup)) {
|
|
569
|
+
query["AgentGroup"] = request.agentGroup;
|
|
570
|
+
}
|
|
571
|
+
if (!$dara.isNull(request.agentTimeout)) {
|
|
572
|
+
query["AgentTimeout"] = request.agentTimeout;
|
|
573
|
+
}
|
|
574
|
+
if (!$dara.isNull(request.answerRate)) {
|
|
575
|
+
query["AnswerRate"] = request.answerRate;
|
|
576
|
+
}
|
|
577
|
+
if (!$dara.isNull(request.autoComplete)) {
|
|
578
|
+
query["AutoComplete"] = request.autoComplete;
|
|
579
|
+
}
|
|
580
|
+
if (!$dara.isNull(request.autoDelete)) {
|
|
581
|
+
query["AutoDelete"] = request.autoDelete;
|
|
582
|
+
}
|
|
583
|
+
if (!$dara.isNull(request.autoStart)) {
|
|
584
|
+
query["AutoStart"] = request.autoStart;
|
|
585
|
+
}
|
|
586
|
+
if (!$dara.isNull(request.autoStartDay)) {
|
|
587
|
+
query["AutoStartDay"] = request.autoStartDay;
|
|
588
|
+
}
|
|
589
|
+
if (!$dara.isNull(request.autoStartTime)) {
|
|
590
|
+
query["AutoStartTime"] = request.autoStartTime;
|
|
591
|
+
}
|
|
592
|
+
if (!$dara.isNull(request.autoStop)) {
|
|
593
|
+
query["AutoStop"] = request.autoStop;
|
|
594
|
+
}
|
|
595
|
+
if (!$dara.isNull(request.autoStopDay)) {
|
|
596
|
+
query["AutoStopDay"] = request.autoStopDay;
|
|
597
|
+
}
|
|
598
|
+
if (!$dara.isNull(request.autoStopTime)) {
|
|
599
|
+
query["AutoStopTime"] = request.autoStopTime;
|
|
600
|
+
}
|
|
601
|
+
if (!$dara.isNull(request.autoTaskType)) {
|
|
602
|
+
query["AutoTaskType"] = request.autoTaskType;
|
|
603
|
+
}
|
|
604
|
+
if (!$dara.isNull(request.autoTriggerTimeStrategy)) {
|
|
605
|
+
query["AutoTriggerTimeStrategy"] = request.autoTriggerTimeStrategy;
|
|
606
|
+
}
|
|
607
|
+
if (!$dara.isNull(request.callGroupType)) {
|
|
608
|
+
query["CallGroupType"] = request.callGroupType;
|
|
609
|
+
}
|
|
610
|
+
if (!$dara.isNull(request.callLimitStrategy)) {
|
|
611
|
+
query["CallLimitStrategy"] = request.callLimitStrategy;
|
|
612
|
+
}
|
|
613
|
+
if (!$dara.isNull(request.callPriorityStrategy)) {
|
|
614
|
+
query["CallPriorityStrategy"] = request.callPriorityStrategy;
|
|
615
|
+
}
|
|
616
|
+
if (!$dara.isNull(request.callRouteStrategy)) {
|
|
617
|
+
query["CallRouteStrategy"] = request.callRouteStrategy;
|
|
618
|
+
}
|
|
619
|
+
if (!$dara.isNull(request.callStrategy)) {
|
|
620
|
+
query["CallStrategy"] = request.callStrategy;
|
|
621
|
+
}
|
|
622
|
+
if (!$dara.isNull(request.callVariables)) {
|
|
623
|
+
query["CallVariables"] = request.callVariables;
|
|
624
|
+
}
|
|
625
|
+
if (!$dara.isNull(request.clidProperty)) {
|
|
626
|
+
query["ClidProperty"] = request.clidProperty;
|
|
627
|
+
}
|
|
628
|
+
if (!$dara.isNull(request.cnos)) {
|
|
629
|
+
query["Cnos"] = request.cnos;
|
|
630
|
+
}
|
|
631
|
+
if (!$dara.isNull(request.concurrency)) {
|
|
632
|
+
query["Concurrency"] = request.concurrency;
|
|
633
|
+
}
|
|
634
|
+
if (!$dara.isNull(request.customerClidType)) {
|
|
635
|
+
query["CustomerClidType"] = request.customerClidType;
|
|
636
|
+
}
|
|
637
|
+
if (!$dara.isNull(request.customerClidWeight)) {
|
|
638
|
+
query["CustomerClidWeight"] = request.customerClidWeight;
|
|
639
|
+
}
|
|
640
|
+
if (!$dara.isNull(request.customerClidWeightFlag)) {
|
|
641
|
+
query["CustomerClidWeightFlag"] = request.customerClidWeightFlag;
|
|
642
|
+
}
|
|
643
|
+
if (!$dara.isNull(request.customerClids)) {
|
|
644
|
+
query["CustomerClids"] = request.customerClids;
|
|
645
|
+
}
|
|
646
|
+
if (!$dara.isNull(request.customerClidsCategory)) {
|
|
647
|
+
query["CustomerClidsCategory"] = request.customerClidsCategory;
|
|
648
|
+
}
|
|
649
|
+
if (!$dara.isNull(request.customerClidsGroup)) {
|
|
650
|
+
query["CustomerClidsGroup"] = request.customerClidsGroup;
|
|
651
|
+
}
|
|
652
|
+
if (!$dara.isNull(request.customerMoh)) {
|
|
653
|
+
query["CustomerMoh"] = request.customerMoh;
|
|
654
|
+
}
|
|
655
|
+
if (!$dara.isNull(request.customerTimeout)) {
|
|
656
|
+
query["CustomerTimeout"] = request.customerTimeout;
|
|
657
|
+
}
|
|
658
|
+
if (!$dara.isNull(request.customerVoice)) {
|
|
659
|
+
query["CustomerVoice"] = request.customerVoice;
|
|
660
|
+
}
|
|
661
|
+
if (!$dara.isNull(request.description)) {
|
|
662
|
+
query["Description"] = request.description;
|
|
663
|
+
}
|
|
664
|
+
if (!$dara.isNull(request.enterpriseId)) {
|
|
665
|
+
query["EnterpriseId"] = request.enterpriseId;
|
|
666
|
+
}
|
|
667
|
+
if (!$dara.isNull(request.forceEndFlag)) {
|
|
668
|
+
query["ForceEndFlag"] = request.forceEndFlag;
|
|
669
|
+
}
|
|
670
|
+
if (!$dara.isNull(request.isRewarm)) {
|
|
671
|
+
query["IsRewarm"] = request.isRewarm;
|
|
672
|
+
}
|
|
673
|
+
if (!$dara.isNull(request.ivrId)) {
|
|
674
|
+
query["IvrId"] = request.ivrId;
|
|
675
|
+
}
|
|
676
|
+
if (!$dara.isNull(request.ivrName)) {
|
|
677
|
+
query["IvrName"] = request.ivrName;
|
|
678
|
+
}
|
|
679
|
+
if (!$dara.isNull(request.maxWaitTime)) {
|
|
680
|
+
query["MaxWaitTime"] = request.maxWaitTime;
|
|
681
|
+
}
|
|
682
|
+
if (!$dara.isNull(request.minAvailableAgentCount)) {
|
|
683
|
+
query["MinAvailableAgentCount"] = request.minAvailableAgentCount;
|
|
684
|
+
}
|
|
685
|
+
if (!$dara.isNull(request.name)) {
|
|
686
|
+
query["Name"] = request.name;
|
|
687
|
+
}
|
|
688
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
689
|
+
query["OwnerId"] = request.ownerId;
|
|
690
|
+
}
|
|
691
|
+
if (!$dara.isNull(request.predictAdjust)) {
|
|
692
|
+
query["PredictAdjust"] = request.predictAdjust;
|
|
693
|
+
}
|
|
694
|
+
if (!$dara.isNull(request.quotiety)) {
|
|
695
|
+
query["Quotiety"] = request.quotiety;
|
|
696
|
+
}
|
|
697
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
698
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
699
|
+
}
|
|
700
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
701
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
702
|
+
}
|
|
703
|
+
if (!$dara.isNull(request.retryStrategy)) {
|
|
704
|
+
query["RetryStrategy"] = request.retryStrategy;
|
|
705
|
+
}
|
|
706
|
+
if (!$dara.isNull(request.retryStrategyOnlyToday)) {
|
|
707
|
+
query["RetryStrategyOnlyToday"] = request.retryStrategyOnlyToday;
|
|
708
|
+
}
|
|
709
|
+
if (!$dara.isNull(request.retryStrategyTimeType)) {
|
|
710
|
+
query["RetryStrategyTimeType"] = request.retryStrategyTimeType;
|
|
711
|
+
}
|
|
712
|
+
if (!$dara.isNull(request.templateName)) {
|
|
713
|
+
query["TemplateName"] = request.templateName;
|
|
714
|
+
}
|
|
715
|
+
if (!$dara.isNull(request.timeStrategy)) {
|
|
716
|
+
query["TimeStrategy"] = request.timeStrategy;
|
|
717
|
+
}
|
|
718
|
+
if (!$dara.isNull(request.type)) {
|
|
719
|
+
query["Type"] = request.type;
|
|
720
|
+
}
|
|
721
|
+
if (!$dara.isNull(request.userFields)) {
|
|
722
|
+
query["UserFields"] = request.userFields;
|
|
723
|
+
}
|
|
724
|
+
if (!$dara.isNull(request.warmUpDuration)) {
|
|
725
|
+
query["WarmUpDuration"] = request.warmUpDuration;
|
|
726
|
+
}
|
|
727
|
+
if (!$dara.isNull(request.wrapup)) {
|
|
728
|
+
query["Wrapup"] = request.wrapup;
|
|
729
|
+
}
|
|
730
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
731
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
732
|
+
});
|
|
733
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
734
|
+
action: "CloudCreateTask",
|
|
735
|
+
version: "2017-05-25",
|
|
736
|
+
protocol: "HTTPS",
|
|
737
|
+
pathname: "/",
|
|
738
|
+
method: "POST",
|
|
739
|
+
authType: "AK",
|
|
740
|
+
style: "RPC",
|
|
741
|
+
reqBodyType: "formData",
|
|
742
|
+
bodyType: "json",
|
|
743
|
+
});
|
|
744
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CloudCreateTaskResponse({}));
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* 新增任务
|
|
748
|
+
*
|
|
749
|
+
* @param request - CloudCreateTaskRequest
|
|
750
|
+
* @returns CloudCreateTaskResponse
|
|
751
|
+
*/
|
|
752
|
+
async cloudCreateTask(request) {
|
|
753
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
754
|
+
return await this.cloudCreateTaskWithOptions(request, runtime);
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* 任务号码导入
|
|
758
|
+
*
|
|
759
|
+
* @param tmpReq - CloudImportTaskTelRequest
|
|
760
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
761
|
+
* @returns CloudImportTaskTelResponse
|
|
762
|
+
*/
|
|
763
|
+
async cloudImportTaskTelWithOptions(tmpReq, runtime) {
|
|
764
|
+
tmpReq.validate();
|
|
765
|
+
let request = new $_model.CloudImportTaskTelShrinkRequest({});
|
|
766
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
767
|
+
if (!$dara.isNull(tmpReq.taskTelList)) {
|
|
768
|
+
request.taskTelListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.taskTelList, "TaskTelList", "json");
|
|
769
|
+
}
|
|
770
|
+
let query = {};
|
|
771
|
+
if (!$dara.isNull(request.bridgeVoicePath)) {
|
|
772
|
+
query["BridgeVoicePath"] = request.bridgeVoicePath;
|
|
773
|
+
}
|
|
774
|
+
if (!$dara.isNull(request.bridgeVoiceType)) {
|
|
775
|
+
query["BridgeVoiceType"] = request.bridgeVoiceType;
|
|
776
|
+
}
|
|
777
|
+
if (!$dara.isNull(request.enterpriseId)) {
|
|
778
|
+
query["EnterpriseId"] = request.enterpriseId;
|
|
779
|
+
}
|
|
780
|
+
if (!$dara.isNull(request.fileId)) {
|
|
781
|
+
query["FileId"] = request.fileId;
|
|
782
|
+
}
|
|
783
|
+
if (!$dara.isNull(request.importTelAutoStart)) {
|
|
784
|
+
query["ImportTelAutoStart"] = request.importTelAutoStart;
|
|
785
|
+
}
|
|
786
|
+
if (!$dara.isNull(request.isRepeat)) {
|
|
787
|
+
query["IsRepeat"] = request.isRepeat;
|
|
788
|
+
}
|
|
789
|
+
if (!$dara.isNull(request.name)) {
|
|
790
|
+
query["Name"] = request.name;
|
|
791
|
+
}
|
|
792
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
793
|
+
query["OwnerId"] = request.ownerId;
|
|
794
|
+
}
|
|
795
|
+
if (!$dara.isNull(request.priority)) {
|
|
796
|
+
query["Priority"] = request.priority;
|
|
797
|
+
}
|
|
798
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
799
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
800
|
+
}
|
|
801
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
802
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
803
|
+
}
|
|
804
|
+
if (!$dara.isNull(request.taskId)) {
|
|
805
|
+
query["TaskId"] = request.taskId;
|
|
806
|
+
}
|
|
807
|
+
if (!$dara.isNull(request.taskTelListShrink)) {
|
|
808
|
+
query["TaskTelList"] = request.taskTelListShrink;
|
|
809
|
+
}
|
|
810
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
811
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
812
|
+
});
|
|
813
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
814
|
+
action: "CloudImportTaskTel",
|
|
815
|
+
version: "2017-05-25",
|
|
816
|
+
protocol: "HTTPS",
|
|
817
|
+
pathname: "/",
|
|
818
|
+
method: "POST",
|
|
819
|
+
authType: "AK",
|
|
820
|
+
style: "RPC",
|
|
821
|
+
reqBodyType: "formData",
|
|
822
|
+
bodyType: "json",
|
|
823
|
+
});
|
|
824
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CloudImportTaskTelResponse({}));
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
* 任务号码导入
|
|
828
|
+
*
|
|
829
|
+
* @param request - CloudImportTaskTelRequest
|
|
830
|
+
* @returns CloudImportTaskTelResponse
|
|
831
|
+
*/
|
|
832
|
+
async cloudImportTaskTel(request) {
|
|
833
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
834
|
+
return await this.cloudImportTaskTelWithOptions(request, runtime);
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* 任务启动
|
|
838
|
+
*
|
|
839
|
+
* @param request - CloudStartTaskRequest
|
|
840
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
841
|
+
* @returns CloudStartTaskResponse
|
|
842
|
+
*/
|
|
843
|
+
async cloudStartTaskWithOptions(request, runtime) {
|
|
844
|
+
request.validate();
|
|
845
|
+
let query = {};
|
|
846
|
+
if (!$dara.isNull(request.enterpriseId)) {
|
|
847
|
+
query["EnterpriseId"] = request.enterpriseId;
|
|
848
|
+
}
|
|
849
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
850
|
+
query["OwnerId"] = request.ownerId;
|
|
851
|
+
}
|
|
852
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
853
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
854
|
+
}
|
|
855
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
856
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
857
|
+
}
|
|
858
|
+
if (!$dara.isNull(request.taskId)) {
|
|
859
|
+
query["TaskId"] = request.taskId;
|
|
860
|
+
}
|
|
861
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
862
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
863
|
+
});
|
|
864
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
865
|
+
action: "CloudStartTask",
|
|
866
|
+
version: "2017-05-25",
|
|
867
|
+
protocol: "HTTPS",
|
|
868
|
+
pathname: "/",
|
|
869
|
+
method: "POST",
|
|
870
|
+
authType: "AK",
|
|
871
|
+
style: "RPC",
|
|
872
|
+
reqBodyType: "formData",
|
|
873
|
+
bodyType: "json",
|
|
874
|
+
});
|
|
875
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CloudStartTaskResponse({}));
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* 任务启动
|
|
879
|
+
*
|
|
880
|
+
* @param request - CloudStartTaskRequest
|
|
881
|
+
* @returns CloudStartTaskResponse
|
|
882
|
+
*/
|
|
883
|
+
async cloudStartTask(request) {
|
|
884
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
885
|
+
return await this.cloudStartTaskWithOptions(request, runtime);
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* 更新任务
|
|
889
|
+
*
|
|
890
|
+
* @param request - CloudUpdateTaskRequest
|
|
891
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
892
|
+
* @returns CloudUpdateTaskResponse
|
|
893
|
+
*/
|
|
894
|
+
async cloudUpdateTaskWithOptions(request, runtime) {
|
|
895
|
+
request.validate();
|
|
896
|
+
let query = {};
|
|
897
|
+
if (!$dara.isNull(request.agentGroup)) {
|
|
898
|
+
query["AgentGroup"] = request.agentGroup;
|
|
899
|
+
}
|
|
900
|
+
if (!$dara.isNull(request.agentTimeout)) {
|
|
901
|
+
query["AgentTimeout"] = request.agentTimeout;
|
|
902
|
+
}
|
|
903
|
+
if (!$dara.isNull(request.answerRate)) {
|
|
904
|
+
query["AnswerRate"] = request.answerRate;
|
|
905
|
+
}
|
|
906
|
+
if (!$dara.isNull(request.autoComplete)) {
|
|
907
|
+
query["AutoComplete"] = request.autoComplete;
|
|
908
|
+
}
|
|
909
|
+
if (!$dara.isNull(request.autoStart)) {
|
|
910
|
+
query["AutoStart"] = request.autoStart;
|
|
911
|
+
}
|
|
912
|
+
if (!$dara.isNull(request.autoStartDay)) {
|
|
913
|
+
query["AutoStartDay"] = request.autoStartDay;
|
|
914
|
+
}
|
|
915
|
+
if (!$dara.isNull(request.autoStartTime)) {
|
|
916
|
+
query["AutoStartTime"] = request.autoStartTime;
|
|
917
|
+
}
|
|
918
|
+
if (!$dara.isNull(request.autoStop)) {
|
|
919
|
+
query["AutoStop"] = request.autoStop;
|
|
920
|
+
}
|
|
921
|
+
if (!$dara.isNull(request.autoStopDay)) {
|
|
922
|
+
query["AutoStopDay"] = request.autoStopDay;
|
|
923
|
+
}
|
|
924
|
+
if (!$dara.isNull(request.autoStopTime)) {
|
|
925
|
+
query["AutoStopTime"] = request.autoStopTime;
|
|
926
|
+
}
|
|
927
|
+
if (!$dara.isNull(request.autoTaskType)) {
|
|
928
|
+
query["AutoTaskType"] = request.autoTaskType;
|
|
929
|
+
}
|
|
930
|
+
if (!$dara.isNull(request.autoTriggerTimeStrategy)) {
|
|
931
|
+
query["AutoTriggerTimeStrategy"] = request.autoTriggerTimeStrategy;
|
|
932
|
+
}
|
|
933
|
+
if (!$dara.isNull(request.callLimitStrategy)) {
|
|
934
|
+
query["CallLimitStrategy"] = request.callLimitStrategy;
|
|
935
|
+
}
|
|
936
|
+
if (!$dara.isNull(request.callPriorityStrategy)) {
|
|
937
|
+
query["CallPriorityStrategy"] = request.callPriorityStrategy;
|
|
938
|
+
}
|
|
939
|
+
if (!$dara.isNull(request.callRouteStrategy)) {
|
|
940
|
+
query["CallRouteStrategy"] = request.callRouteStrategy;
|
|
941
|
+
}
|
|
942
|
+
if (!$dara.isNull(request.callStrategy)) {
|
|
943
|
+
query["CallStrategy"] = request.callStrategy;
|
|
944
|
+
}
|
|
945
|
+
if (!$dara.isNull(request.callVariables)) {
|
|
946
|
+
query["CallVariables"] = request.callVariables;
|
|
947
|
+
}
|
|
948
|
+
if (!$dara.isNull(request.clidProperty)) {
|
|
949
|
+
query["ClidProperty"] = request.clidProperty;
|
|
950
|
+
}
|
|
951
|
+
if (!$dara.isNull(request.cnos)) {
|
|
952
|
+
query["Cnos"] = request.cnos;
|
|
953
|
+
}
|
|
954
|
+
if (!$dara.isNull(request.concurrency)) {
|
|
955
|
+
query["Concurrency"] = request.concurrency;
|
|
956
|
+
}
|
|
957
|
+
if (!$dara.isNull(request.customerClidType)) {
|
|
958
|
+
query["CustomerClidType"] = request.customerClidType;
|
|
959
|
+
}
|
|
960
|
+
if (!$dara.isNull(request.customerClidWeight)) {
|
|
961
|
+
query["CustomerClidWeight"] = request.customerClidWeight;
|
|
962
|
+
}
|
|
963
|
+
if (!$dara.isNull(request.customerClidWeightFlag)) {
|
|
964
|
+
query["CustomerClidWeightFlag"] = request.customerClidWeightFlag;
|
|
965
|
+
}
|
|
966
|
+
if (!$dara.isNull(request.customerClids)) {
|
|
967
|
+
query["CustomerClids"] = request.customerClids;
|
|
968
|
+
}
|
|
969
|
+
if (!$dara.isNull(request.customerClidsCategory)) {
|
|
970
|
+
query["CustomerClidsCategory"] = request.customerClidsCategory;
|
|
971
|
+
}
|
|
972
|
+
if (!$dara.isNull(request.customerClidsGroup)) {
|
|
973
|
+
query["CustomerClidsGroup"] = request.customerClidsGroup;
|
|
974
|
+
}
|
|
975
|
+
if (!$dara.isNull(request.customerMoh)) {
|
|
976
|
+
query["CustomerMoh"] = request.customerMoh;
|
|
977
|
+
}
|
|
978
|
+
if (!$dara.isNull(request.customerTimeout)) {
|
|
979
|
+
query["CustomerTimeout"] = request.customerTimeout;
|
|
980
|
+
}
|
|
981
|
+
if (!$dara.isNull(request.customerVoice)) {
|
|
982
|
+
query["CustomerVoice"] = request.customerVoice;
|
|
983
|
+
}
|
|
984
|
+
if (!$dara.isNull(request.description)) {
|
|
985
|
+
query["Description"] = request.description;
|
|
986
|
+
}
|
|
987
|
+
if (!$dara.isNull(request.enterpriseId)) {
|
|
988
|
+
query["EnterpriseId"] = request.enterpriseId;
|
|
989
|
+
}
|
|
990
|
+
if (!$dara.isNull(request.forceEndFlag)) {
|
|
991
|
+
query["ForceEndFlag"] = request.forceEndFlag;
|
|
992
|
+
}
|
|
993
|
+
if (!$dara.isNull(request.isRewarm)) {
|
|
994
|
+
query["IsRewarm"] = request.isRewarm;
|
|
995
|
+
}
|
|
996
|
+
if (!$dara.isNull(request.ivrId)) {
|
|
997
|
+
query["IvrId"] = request.ivrId;
|
|
998
|
+
}
|
|
999
|
+
if (!$dara.isNull(request.ivrName)) {
|
|
1000
|
+
query["IvrName"] = request.ivrName;
|
|
1001
|
+
}
|
|
1002
|
+
if (!$dara.isNull(request.maxWaitTime)) {
|
|
1003
|
+
query["MaxWaitTime"] = request.maxWaitTime;
|
|
1004
|
+
}
|
|
1005
|
+
if (!$dara.isNull(request.minAvailableAgentCount)) {
|
|
1006
|
+
query["MinAvailableAgentCount"] = request.minAvailableAgentCount;
|
|
1007
|
+
}
|
|
1008
|
+
if (!$dara.isNull(request.name)) {
|
|
1009
|
+
query["Name"] = request.name;
|
|
1010
|
+
}
|
|
1011
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1012
|
+
query["OwnerId"] = request.ownerId;
|
|
1013
|
+
}
|
|
1014
|
+
if (!$dara.isNull(request.predictAdjust)) {
|
|
1015
|
+
query["PredictAdjust"] = request.predictAdjust;
|
|
1016
|
+
}
|
|
1017
|
+
if (!$dara.isNull(request.quotiety)) {
|
|
1018
|
+
query["Quotiety"] = request.quotiety;
|
|
1019
|
+
}
|
|
1020
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1021
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1022
|
+
}
|
|
1023
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1024
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1025
|
+
}
|
|
1026
|
+
if (!$dara.isNull(request.retryStrategy)) {
|
|
1027
|
+
query["RetryStrategy"] = request.retryStrategy;
|
|
1028
|
+
}
|
|
1029
|
+
if (!$dara.isNull(request.retryStrategyOnlyToday)) {
|
|
1030
|
+
query["RetryStrategyOnlyToday"] = request.retryStrategyOnlyToday;
|
|
1031
|
+
}
|
|
1032
|
+
if (!$dara.isNull(request.retryStrategyTimeType)) {
|
|
1033
|
+
query["RetryStrategyTimeType"] = request.retryStrategyTimeType;
|
|
1034
|
+
}
|
|
1035
|
+
if (!$dara.isNull(request.taskId)) {
|
|
1036
|
+
query["TaskId"] = request.taskId;
|
|
1037
|
+
}
|
|
1038
|
+
if (!$dara.isNull(request.timeStrategy)) {
|
|
1039
|
+
query["TimeStrategy"] = request.timeStrategy;
|
|
1040
|
+
}
|
|
1041
|
+
if (!$dara.isNull(request.userFields)) {
|
|
1042
|
+
query["UserFields"] = request.userFields;
|
|
1043
|
+
}
|
|
1044
|
+
if (!$dara.isNull(request.warmUpDuration)) {
|
|
1045
|
+
query["WarmUpDuration"] = request.warmUpDuration;
|
|
1046
|
+
}
|
|
1047
|
+
if (!$dara.isNull(request.wrapup)) {
|
|
1048
|
+
query["Wrapup"] = request.wrapup;
|
|
1049
|
+
}
|
|
1050
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1051
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1052
|
+
});
|
|
1053
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1054
|
+
action: "CloudUpdateTask",
|
|
1055
|
+
version: "2017-05-25",
|
|
1056
|
+
protocol: "HTTPS",
|
|
1057
|
+
pathname: "/",
|
|
1058
|
+
method: "POST",
|
|
1059
|
+
authType: "AK",
|
|
1060
|
+
style: "RPC",
|
|
1061
|
+
reqBodyType: "formData",
|
|
1062
|
+
bodyType: "json",
|
|
1063
|
+
});
|
|
1064
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CloudUpdateTaskResponse({}));
|
|
1065
|
+
}
|
|
1066
|
+
/**
|
|
1067
|
+
* 更新任务
|
|
1068
|
+
*
|
|
1069
|
+
* @param request - CloudUpdateTaskRequest
|
|
1070
|
+
* @returns CloudUpdateTaskResponse
|
|
1071
|
+
*/
|
|
1072
|
+
async cloudUpdateTask(request) {
|
|
1073
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1074
|
+
return await this.cloudUpdateTaskWithOptions(request, runtime);
|
|
1075
|
+
}
|
|
1076
|
+
/**
|
|
1077
|
+
* Uses a service instance to create a text-to-speech (TTS) task, a voice notification task, or a voice verification code task for multiple called numbers.
|
|
445
1078
|
*
|
|
446
1079
|
* @remarks
|
|
447
1080
|
* You can create up to 1,000 voice notifications for each task.
|
|
@@ -514,7 +1147,7 @@ class Client extends openapi_core_1.default {
|
|
|
514
1147
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateCallTaskResponse({}));
|
|
515
1148
|
}
|
|
516
1149
|
/**
|
|
517
|
-
*
|
|
1150
|
+
* Uses a service instance to create a text-to-speech (TTS) task, a voice notification task, or a voice verification code task for multiple called numbers.
|
|
518
1151
|
*
|
|
519
1152
|
* @remarks
|
|
520
1153
|
* You can create up to 1,000 voice notifications for each task.
|
|
@@ -614,7 +1247,7 @@ class Client extends openapi_core_1.default {
|
|
|
614
1247
|
return await this.createRobotTaskWithOptions(request, runtime);
|
|
615
1248
|
}
|
|
616
1249
|
/**
|
|
617
|
-
*
|
|
1250
|
+
* Downgrades from a video call to a voice call.
|
|
618
1251
|
*
|
|
619
1252
|
* @param request - DegradeVideoFileRequest
|
|
620
1253
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -661,7 +1294,7 @@ class Client extends openapi_core_1.default {
|
|
|
661
1294
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DegradeVideoFileResponse({}));
|
|
662
1295
|
}
|
|
663
1296
|
/**
|
|
664
|
-
*
|
|
1297
|
+
* Downgrades from a video call to a voice call.
|
|
665
1298
|
*
|
|
666
1299
|
* @param request - DegradeVideoFileRequest
|
|
667
1300
|
* @returns DegradeVideoFileResponse
|
|
@@ -791,7 +1424,7 @@ class Client extends openapi_core_1.default {
|
|
|
791
1424
|
return await this.executeCallTaskWithOptions(request, runtime);
|
|
792
1425
|
}
|
|
793
1426
|
/**
|
|
794
|
-
*
|
|
1427
|
+
* Obtains the call type during a call.
|
|
795
1428
|
*
|
|
796
1429
|
* @param request - GetCallMediaTypeRequest
|
|
797
1430
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -832,7 +1465,7 @@ class Client extends openapi_core_1.default {
|
|
|
832
1465
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetCallMediaTypeResponse({}));
|
|
833
1466
|
}
|
|
834
1467
|
/**
|
|
835
|
-
*
|
|
1468
|
+
* Obtains the call type during a call.
|
|
836
1469
|
*
|
|
837
1470
|
* @param request - GetCallMediaTypeRequest
|
|
838
1471
|
* @returns GetCallMediaTypeResponse
|
|
@@ -949,7 +1582,7 @@ class Client extends openapi_core_1.default {
|
|
|
949
1582
|
return await this.getHotlineQualificationByOrderWithOptions(request, runtime);
|
|
950
1583
|
}
|
|
951
1584
|
/**
|
|
952
|
-
*
|
|
1585
|
+
* Obtains a temporary URL of a video or audio file. You can view the video or audio file immediately by using this temporary URL.
|
|
953
1586
|
*
|
|
954
1587
|
* @param request - GetTemporaryFileUrlRequest
|
|
955
1588
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -987,7 +1620,7 @@ class Client extends openapi_core_1.default {
|
|
|
987
1620
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetTemporaryFileUrlResponse({}));
|
|
988
1621
|
}
|
|
989
1622
|
/**
|
|
990
|
-
*
|
|
1623
|
+
* Obtains a temporary URL of a video or audio file. You can view the video or audio file immediately by using this temporary URL.
|
|
991
1624
|
*
|
|
992
1625
|
* @param request - GetTemporaryFileUrlRequest
|
|
993
1626
|
* @returns GetTemporaryFileUrlResponse
|
|
@@ -1190,7 +1823,7 @@ class Client extends openapi_core_1.default {
|
|
|
1190
1823
|
return await this.ivrCallWithOptions(request, runtime);
|
|
1191
1824
|
}
|
|
1192
1825
|
/**
|
|
1193
|
-
* Queries task
|
|
1826
|
+
* Queries the information about a voice call task after the task is created, including the task ID, task status, and templates used by the task.
|
|
1194
1827
|
*
|
|
1195
1828
|
* @remarks
|
|
1196
1829
|
* ### QPS limits
|
|
@@ -1250,7 +1883,7 @@ class Client extends openapi_core_1.default {
|
|
|
1250
1883
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListCallTaskResponse({}));
|
|
1251
1884
|
}
|
|
1252
1885
|
/**
|
|
1253
|
-
* Queries task
|
|
1886
|
+
* Queries the information about a voice call task after the task is created, including the task ID, task status, and templates used by the task.
|
|
1254
1887
|
*
|
|
1255
1888
|
* @remarks
|
|
1256
1889
|
* ### QPS limits
|
|
@@ -1264,7 +1897,7 @@ class Client extends openapi_core_1.default {
|
|
|
1264
1897
|
return await this.listCallTaskWithOptions(request, runtime);
|
|
1265
1898
|
}
|
|
1266
1899
|
/**
|
|
1267
|
-
* Queries the
|
|
1900
|
+
* Queries the details of call tasks based on task IDs after call tasks are complete.
|
|
1268
1901
|
*
|
|
1269
1902
|
* @remarks
|
|
1270
1903
|
* ### QPS limits
|
|
@@ -1318,7 +1951,7 @@ class Client extends openapi_core_1.default {
|
|
|
1318
1951
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListCallTaskDetailResponse({}));
|
|
1319
1952
|
}
|
|
1320
1953
|
/**
|
|
1321
|
-
* Queries the
|
|
1954
|
+
* Queries the details of call tasks based on task IDs after call tasks are complete.
|
|
1322
1955
|
*
|
|
1323
1956
|
* @remarks
|
|
1324
1957
|
* ### QPS limits
|
|
@@ -1462,7 +2095,7 @@ class Client extends openapi_core_1.default {
|
|
|
1462
2095
|
return await this.listServiceInstanceForPageWithOptions(request, runtime);
|
|
1463
2096
|
}
|
|
1464
2097
|
/**
|
|
1465
|
-
*
|
|
2098
|
+
* Pauses video playback when a video file is played back during a voice call.
|
|
1466
2099
|
*
|
|
1467
2100
|
* @param request - PauseVideoFileRequest
|
|
1468
2101
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1503,7 +2136,7 @@ class Client extends openapi_core_1.default {
|
|
|
1503
2136
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.PauseVideoFileResponse({}));
|
|
1504
2137
|
}
|
|
1505
2138
|
/**
|
|
1506
|
-
*
|
|
2139
|
+
* Pauses video playback when a video file is played back during a voice call.
|
|
1507
2140
|
*
|
|
1508
2141
|
* @param request - PauseVideoFileRequest
|
|
1509
2142
|
* @returns PauseVideoFileResponse
|
|
@@ -1513,7 +2146,7 @@ class Client extends openapi_core_1.default {
|
|
|
1513
2146
|
return await this.pauseVideoFileWithOptions(request, runtime);
|
|
1514
2147
|
}
|
|
1515
2148
|
/**
|
|
1516
|
-
*
|
|
2149
|
+
* Plays back a video file during a voice call.
|
|
1517
2150
|
*
|
|
1518
2151
|
* @param request - PlayVideoFileRequest
|
|
1519
2152
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1563,7 +2196,7 @@ class Client extends openapi_core_1.default {
|
|
|
1563
2196
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.PlayVideoFileResponse({}));
|
|
1564
2197
|
}
|
|
1565
2198
|
/**
|
|
1566
|
-
*
|
|
2199
|
+
* Plays back a video file during a voice call.
|
|
1567
2200
|
*
|
|
1568
2201
|
* @param request - PlayVideoFileRequest
|
|
1569
2202
|
* @returns PlayVideoFileResponse
|
|
@@ -1815,7 +2448,7 @@ class Client extends openapi_core_1.default {
|
|
|
1815
2448
|
return await this.queryCallInTransferRecordWithOptions(request, runtime);
|
|
1816
2449
|
}
|
|
1817
2450
|
/**
|
|
1818
|
-
* Queries a list of robots.
|
|
2451
|
+
* Queries a list of robots to obtain their details.
|
|
1819
2452
|
*
|
|
1820
2453
|
* @param request - QueryRobotInfoListRequest
|
|
1821
2454
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1853,7 +2486,7 @@ class Client extends openapi_core_1.default {
|
|
|
1853
2486
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryRobotInfoListResponse({}));
|
|
1854
2487
|
}
|
|
1855
2488
|
/**
|
|
1856
|
-
* Queries a list of robots.
|
|
2489
|
+
* Queries a list of robots to obtain their details.
|
|
1857
2490
|
*
|
|
1858
2491
|
* @param request - QueryRobotInfoListRequest
|
|
1859
2492
|
* @returns QueryRobotInfoListResponse
|
|
@@ -1863,7 +2496,7 @@ class Client extends openapi_core_1.default {
|
|
|
1863
2496
|
return await this.queryRobotInfoListWithOptions(request, runtime);
|
|
1864
2497
|
}
|
|
1865
2498
|
/**
|
|
1866
|
-
* Queries the call details of a called number
|
|
2499
|
+
* Queries the call details of a called number.
|
|
1867
2500
|
*
|
|
1868
2501
|
* @remarks
|
|
1869
2502
|
* ### QPS limits
|
|
@@ -1911,7 +2544,7 @@ class Client extends openapi_core_1.default {
|
|
|
1911
2544
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryRobotTaskCallDetailResponse({}));
|
|
1912
2545
|
}
|
|
1913
2546
|
/**
|
|
1914
|
-
* Queries the call details of a called number
|
|
2547
|
+
* Queries the call details of a called number.
|
|
1915
2548
|
*
|
|
1916
2549
|
* @remarks
|
|
1917
2550
|
* ### QPS limits
|
|
@@ -2185,7 +2818,7 @@ class Client extends openapi_core_1.default {
|
|
|
2185
2818
|
return await this.queryRobotv2AllListWithOptions(request, runtime);
|
|
2186
2819
|
}
|
|
2187
2820
|
/**
|
|
2188
|
-
*
|
|
2821
|
+
* Queries the video playback progress after you play a video file during a voice call.
|
|
2189
2822
|
*
|
|
2190
2823
|
* @param request - QueryVideoPlayProgressRequest
|
|
2191
2824
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2226,7 +2859,7 @@ class Client extends openapi_core_1.default {
|
|
|
2226
2859
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryVideoPlayProgressResponse({}));
|
|
2227
2860
|
}
|
|
2228
2861
|
/**
|
|
2229
|
-
*
|
|
2862
|
+
* Queries the video playback progress after you play a video file during a voice call.
|
|
2230
2863
|
*
|
|
2231
2864
|
* @param request - QueryVideoPlayProgressRequest
|
|
2232
2865
|
* @returns QueryVideoPlayProgressResponse
|
|
@@ -2236,72 +2869,7 @@ class Client extends openapi_core_1.default {
|
|
|
2236
2869
|
return await this.queryVideoPlayProgressWithOptions(request, runtime);
|
|
2237
2870
|
}
|
|
2238
2871
|
/**
|
|
2239
|
-
*
|
|
2240
|
-
*
|
|
2241
|
-
* @remarks
|
|
2242
|
-
* ### QPS limits
|
|
2243
|
-
* You can call this operation up to 100 times per second per account.
|
|
2244
|
-
*
|
|
2245
|
-
* @param request - QueryVirtualNumberRequest
|
|
2246
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
2247
|
-
* @returns QueryVirtualNumberResponse
|
|
2248
|
-
*/
|
|
2249
|
-
async queryVirtualNumberWithOptions(request, runtime) {
|
|
2250
|
-
request.validate();
|
|
2251
|
-
let query = {};
|
|
2252
|
-
if (!$dara.isNull(request.ownerId)) {
|
|
2253
|
-
query["OwnerId"] = request.ownerId;
|
|
2254
|
-
}
|
|
2255
|
-
if (!$dara.isNull(request.pageNo)) {
|
|
2256
|
-
query["PageNo"] = request.pageNo;
|
|
2257
|
-
}
|
|
2258
|
-
if (!$dara.isNull(request.pageSize)) {
|
|
2259
|
-
query["PageSize"] = request.pageSize;
|
|
2260
|
-
}
|
|
2261
|
-
if (!$dara.isNull(request.prodCode)) {
|
|
2262
|
-
query["ProdCode"] = request.prodCode;
|
|
2263
|
-
}
|
|
2264
|
-
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2265
|
-
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2266
|
-
}
|
|
2267
|
-
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
2268
|
-
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2269
|
-
}
|
|
2270
|
-
if (!$dara.isNull(request.routeType)) {
|
|
2271
|
-
query["RouteType"] = request.routeType;
|
|
2272
|
-
}
|
|
2273
|
-
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2274
|
-
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2275
|
-
});
|
|
2276
|
-
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2277
|
-
action: "QueryVirtualNumber",
|
|
2278
|
-
version: "2017-05-25",
|
|
2279
|
-
protocol: "HTTPS",
|
|
2280
|
-
pathname: "/",
|
|
2281
|
-
method: "POST",
|
|
2282
|
-
authType: "AK",
|
|
2283
|
-
style: "RPC",
|
|
2284
|
-
reqBodyType: "formData",
|
|
2285
|
-
bodyType: "json",
|
|
2286
|
-
});
|
|
2287
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryVirtualNumberResponse({}));
|
|
2288
|
-
}
|
|
2289
|
-
/**
|
|
2290
|
-
* Queries a list of virtual numbers.
|
|
2291
|
-
*
|
|
2292
|
-
* @remarks
|
|
2293
|
-
* ### QPS limits
|
|
2294
|
-
* You can call this operation up to 100 times per second per account.
|
|
2295
|
-
*
|
|
2296
|
-
* @param request - QueryVirtualNumberRequest
|
|
2297
|
-
* @returns QueryVirtualNumberResponse
|
|
2298
|
-
*/
|
|
2299
|
-
async queryVirtualNumber(request) {
|
|
2300
|
-
let runtime = new $dara.RuntimeOptions({});
|
|
2301
|
-
return await this.queryVirtualNumberWithOptions(request, runtime);
|
|
2302
|
-
}
|
|
2303
|
-
/**
|
|
2304
|
-
* Queries a list of associations between virtual numbers and real numbers.
|
|
2872
|
+
* Lists real numbers bound to service instances. The returned data includes the binding time, the number activation time, and the number of real numbers bound to a service instance.
|
|
2305
2873
|
*
|
|
2306
2874
|
* @remarks
|
|
2307
2875
|
* ### QPS limits
|
|
@@ -2367,7 +2935,7 @@ class Client extends openapi_core_1.default {
|
|
|
2367
2935
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryVirtualNumberRelationResponse({}));
|
|
2368
2936
|
}
|
|
2369
2937
|
/**
|
|
2370
|
-
*
|
|
2938
|
+
* Lists real numbers bound to service instances. The returned data includes the binding time, the number activation time, and the number of real numbers bound to a service instance.
|
|
2371
2939
|
*
|
|
2372
2940
|
* @remarks
|
|
2373
2941
|
* ### QPS limits
|
|
@@ -2600,7 +3168,7 @@ class Client extends openapi_core_1.default {
|
|
|
2600
3168
|
return await this.recoverCallInConfigWithOptions(request, runtime);
|
|
2601
3169
|
}
|
|
2602
3170
|
/**
|
|
2603
|
-
*
|
|
3171
|
+
* Resumes video playback after you pause video playback during a voice call.
|
|
2604
3172
|
*
|
|
2605
3173
|
* @param request - ResumeVideoFileRequest
|
|
2606
3174
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2641,7 +3209,7 @@ class Client extends openapi_core_1.default {
|
|
|
2641
3209
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ResumeVideoFileResponse({}));
|
|
2642
3210
|
}
|
|
2643
3211
|
/**
|
|
2644
|
-
*
|
|
3212
|
+
* Resumes video playback after you pause video playback during a voice call.
|
|
2645
3213
|
*
|
|
2646
3214
|
* @param request - ResumeVideoFileRequest
|
|
2647
3215
|
* @returns ResumeVideoFileResponse
|
|
@@ -2913,7 +3481,7 @@ class Client extends openapi_core_1.default {
|
|
|
2913
3481
|
return await this.singleCallByTtsWithOptions(request, runtime);
|
|
2914
3482
|
}
|
|
2915
3483
|
/**
|
|
2916
|
-
*
|
|
3484
|
+
* Sends voice file notifications or video file notifications to a single called number.
|
|
2917
3485
|
*
|
|
2918
3486
|
* @param request - SingleCallByVideoRequest
|
|
2919
3487
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2972,7 +3540,7 @@ class Client extends openapi_core_1.default {
|
|
|
2972
3540
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SingleCallByVideoResponse({}));
|
|
2973
3541
|
}
|
|
2974
3542
|
/**
|
|
2975
|
-
*
|
|
3543
|
+
* Sends voice file notifications or video file notifications to a single called number.
|
|
2976
3544
|
*
|
|
2977
3545
|
* @param request - SingleCallByVideoRequest
|
|
2978
3546
|
* @returns SingleCallByVideoResponse
|
|
@@ -3060,7 +3628,7 @@ class Client extends openapi_core_1.default {
|
|
|
3060
3628
|
return await this.singleCallByVoiceWithOptions(request, runtime);
|
|
3061
3629
|
}
|
|
3062
3630
|
/**
|
|
3063
|
-
*
|
|
3631
|
+
* Fast forwards or rewinds a video when you play the video.
|
|
3064
3632
|
*
|
|
3065
3633
|
* @param request - SkipVideoFileRequest
|
|
3066
3634
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3107,7 +3675,7 @@ class Client extends openapi_core_1.default {
|
|
|
3107
3675
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SkipVideoFileResponse({}));
|
|
3108
3676
|
}
|
|
3109
3677
|
/**
|
|
3110
|
-
*
|
|
3678
|
+
* Fast forwards or rewinds a video when you play the video.
|
|
3111
3679
|
*
|
|
3112
3680
|
* @param request - SkipVideoFileRequest
|
|
3113
3681
|
* @returns SkipVideoFileResponse
|
|
@@ -3486,7 +4054,7 @@ class Client extends openapi_core_1.default {
|
|
|
3486
4054
|
return await this.stopRobotTaskWithOptions(request, runtime);
|
|
3487
4055
|
}
|
|
3488
4056
|
/**
|
|
3489
|
-
* Submits a
|
|
4057
|
+
* Submits a 400 number for registration.
|
|
3490
4058
|
*
|
|
3491
4059
|
* @remarks
|
|
3492
4060
|
* ### QPS limits
|
|
@@ -3555,7 +4123,7 @@ class Client extends openapi_core_1.default {
|
|
|
3555
4123
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SubmitHotlineTransferRegisterResponse({}));
|
|
3556
4124
|
}
|
|
3557
4125
|
/**
|
|
3558
|
-
* Submits a
|
|
4126
|
+
* Submits a 400 number for registration.
|
|
3559
4127
|
*
|
|
3560
4128
|
* @remarks
|
|
3561
4129
|
* ### QPS limits
|
|
@@ -3569,7 +4137,7 @@ class Client extends openapi_core_1.default {
|
|
|
3569
4137
|
return await this.submitHotlineTransferRegisterWithOptions(request, runtime);
|
|
3570
4138
|
}
|
|
3571
4139
|
/**
|
|
3572
|
-
*
|
|
4140
|
+
* Upgrades from a voice call to a video call.
|
|
3573
4141
|
*
|
|
3574
4142
|
* @param request - UpgradeVideoFileRequest
|
|
3575
4143
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3616,7 +4184,7 @@ class Client extends openapi_core_1.default {
|
|
|
3616
4184
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpgradeVideoFileResponse({}));
|
|
3617
4185
|
}
|
|
3618
4186
|
/**
|
|
3619
|
-
*
|
|
4187
|
+
* Upgrades from a voice call to a video call.
|
|
3620
4188
|
*
|
|
3621
4189
|
* @param request - UpgradeVideoFileRequest
|
|
3622
4190
|
* @returns UpgradeVideoFileResponse
|