@alicloud/dyvmsapi20170525 3.1.0 → 4.0.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 +625 -103
- package/dist/client.js.map +1 -1
- 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 +194 -0
- package/dist/models/CloudCreateTaskResponseBody.js +148 -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/ListServiceInstanceForPageRequest.d.ts +77 -0
- package/dist/models/ListServiceInstanceForPageRequest.js +96 -0
- package/dist/models/ListServiceInstanceForPageRequest.js.map +1 -0
- package/dist/models/ListServiceInstanceForPageResponse.d.ts +19 -0
- package/dist/models/ListServiceInstanceForPageResponse.js +69 -0
- package/dist/models/ListServiceInstanceForPageResponse.js.map +1 -0
- package/dist/models/ListServiceInstanceForPageResponseBody.d.ts +200 -0
- package/dist/models/ListServiceInstanceForPageResponseBody.js +142 -0
- package/dist/models/ListServiceInstanceForPageResponseBody.js.map +1 -0
- package/dist/models/{QueryVirtualNumberRequest.d.ts → ListServiceInstanceForPageShrinkRequest.d.ts} +17 -19
- package/dist/models/ListServiceInstanceForPageShrinkRequest.js +72 -0
- package/dist/models/ListServiceInstanceForPageShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +25 -3
- package/dist/models/model.js +55 -10
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +768 -112
- package/src/models/CloudCreateTaskRequest.ts +549 -0
- package/src/models/{QueryVirtualNumberResponse.ts → CloudCreateTaskResponse.ts} +4 -4
- package/src/models/CloudCreateTaskResponseBody.ts +286 -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/CloudStartTaskRequest.ts +57 -0
- 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/ListServiceInstanceForPageRequest.ts +119 -0
- package/src/models/ListServiceInstanceForPageResponse.ts +40 -0
- package/src/models/ListServiceInstanceForPageResponseBody.ts +279 -0
- package/src/models/{QueryVirtualNumberRequest.ts → ListServiceInstanceForPageShrinkRequest.ts} +27 -27
- package/src/models/model.ts +25 -3
- 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,525 @@ 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 - CloudCreateTaskRequest
|
|
451
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
452
|
+
* @returns CloudCreateTaskResponse
|
|
453
|
+
*/
|
|
454
|
+
async cloudCreateTaskWithOptions(request, runtime) {
|
|
455
|
+
request.validate();
|
|
456
|
+
let query = {};
|
|
457
|
+
if (!$dara.isNull(request.agentGroup)) {
|
|
458
|
+
query["AgentGroup"] = request.agentGroup;
|
|
459
|
+
}
|
|
460
|
+
if (!$dara.isNull(request.agentTimeout)) {
|
|
461
|
+
query["AgentTimeout"] = request.agentTimeout;
|
|
462
|
+
}
|
|
463
|
+
if (!$dara.isNull(request.answerRate)) {
|
|
464
|
+
query["AnswerRate"] = request.answerRate;
|
|
465
|
+
}
|
|
466
|
+
if (!$dara.isNull(request.autoComplete)) {
|
|
467
|
+
query["AutoComplete"] = request.autoComplete;
|
|
468
|
+
}
|
|
469
|
+
if (!$dara.isNull(request.autoDelete)) {
|
|
470
|
+
query["AutoDelete"] = request.autoDelete;
|
|
471
|
+
}
|
|
472
|
+
if (!$dara.isNull(request.autoStart)) {
|
|
473
|
+
query["AutoStart"] = request.autoStart;
|
|
474
|
+
}
|
|
475
|
+
if (!$dara.isNull(request.autoStartDay)) {
|
|
476
|
+
query["AutoStartDay"] = request.autoStartDay;
|
|
477
|
+
}
|
|
478
|
+
if (!$dara.isNull(request.autoStartTime)) {
|
|
479
|
+
query["AutoStartTime"] = request.autoStartTime;
|
|
480
|
+
}
|
|
481
|
+
if (!$dara.isNull(request.autoStop)) {
|
|
482
|
+
query["AutoStop"] = request.autoStop;
|
|
483
|
+
}
|
|
484
|
+
if (!$dara.isNull(request.autoStopDay)) {
|
|
485
|
+
query["AutoStopDay"] = request.autoStopDay;
|
|
486
|
+
}
|
|
487
|
+
if (!$dara.isNull(request.autoStopTime)) {
|
|
488
|
+
query["AutoStopTime"] = request.autoStopTime;
|
|
489
|
+
}
|
|
490
|
+
if (!$dara.isNull(request.autoTaskType)) {
|
|
491
|
+
query["AutoTaskType"] = request.autoTaskType;
|
|
492
|
+
}
|
|
493
|
+
if (!$dara.isNull(request.autoTriggerTimeStrategy)) {
|
|
494
|
+
query["AutoTriggerTimeStrategy"] = request.autoTriggerTimeStrategy;
|
|
495
|
+
}
|
|
496
|
+
if (!$dara.isNull(request.callGroupType)) {
|
|
497
|
+
query["CallGroupType"] = request.callGroupType;
|
|
498
|
+
}
|
|
499
|
+
if (!$dara.isNull(request.callLimitStrategy)) {
|
|
500
|
+
query["CallLimitStrategy"] = request.callLimitStrategy;
|
|
501
|
+
}
|
|
502
|
+
if (!$dara.isNull(request.callPriorityStrategy)) {
|
|
503
|
+
query["CallPriorityStrategy"] = request.callPriorityStrategy;
|
|
504
|
+
}
|
|
505
|
+
if (!$dara.isNull(request.callRouteStrategy)) {
|
|
506
|
+
query["CallRouteStrategy"] = request.callRouteStrategy;
|
|
507
|
+
}
|
|
508
|
+
if (!$dara.isNull(request.callStrategy)) {
|
|
509
|
+
query["CallStrategy"] = request.callStrategy;
|
|
510
|
+
}
|
|
511
|
+
if (!$dara.isNull(request.callVariables)) {
|
|
512
|
+
query["CallVariables"] = request.callVariables;
|
|
513
|
+
}
|
|
514
|
+
if (!$dara.isNull(request.clidProperty)) {
|
|
515
|
+
query["ClidProperty"] = request.clidProperty;
|
|
516
|
+
}
|
|
517
|
+
if (!$dara.isNull(request.cnos)) {
|
|
518
|
+
query["Cnos"] = request.cnos;
|
|
519
|
+
}
|
|
520
|
+
if (!$dara.isNull(request.concurrency)) {
|
|
521
|
+
query["Concurrency"] = request.concurrency;
|
|
522
|
+
}
|
|
523
|
+
if (!$dara.isNull(request.customerClidType)) {
|
|
524
|
+
query["CustomerClidType"] = request.customerClidType;
|
|
525
|
+
}
|
|
526
|
+
if (!$dara.isNull(request.customerClidWeight)) {
|
|
527
|
+
query["CustomerClidWeight"] = request.customerClidWeight;
|
|
528
|
+
}
|
|
529
|
+
if (!$dara.isNull(request.customerClidWeightFlag)) {
|
|
530
|
+
query["CustomerClidWeightFlag"] = request.customerClidWeightFlag;
|
|
531
|
+
}
|
|
532
|
+
if (!$dara.isNull(request.customerClids)) {
|
|
533
|
+
query["CustomerClids"] = request.customerClids;
|
|
534
|
+
}
|
|
535
|
+
if (!$dara.isNull(request.customerClidsCategory)) {
|
|
536
|
+
query["CustomerClidsCategory"] = request.customerClidsCategory;
|
|
537
|
+
}
|
|
538
|
+
if (!$dara.isNull(request.customerClidsGroup)) {
|
|
539
|
+
query["CustomerClidsGroup"] = request.customerClidsGroup;
|
|
540
|
+
}
|
|
541
|
+
if (!$dara.isNull(request.customerMoh)) {
|
|
542
|
+
query["CustomerMoh"] = request.customerMoh;
|
|
543
|
+
}
|
|
544
|
+
if (!$dara.isNull(request.customerTimeout)) {
|
|
545
|
+
query["CustomerTimeout"] = request.customerTimeout;
|
|
546
|
+
}
|
|
547
|
+
if (!$dara.isNull(request.customerVoice)) {
|
|
548
|
+
query["CustomerVoice"] = request.customerVoice;
|
|
549
|
+
}
|
|
550
|
+
if (!$dara.isNull(request.description)) {
|
|
551
|
+
query["Description"] = request.description;
|
|
552
|
+
}
|
|
553
|
+
if (!$dara.isNull(request.enterpriseId)) {
|
|
554
|
+
query["EnterpriseId"] = request.enterpriseId;
|
|
555
|
+
}
|
|
556
|
+
if (!$dara.isNull(request.forceEndFlag)) {
|
|
557
|
+
query["ForceEndFlag"] = request.forceEndFlag;
|
|
558
|
+
}
|
|
559
|
+
if (!$dara.isNull(request.isRewarm)) {
|
|
560
|
+
query["IsRewarm"] = request.isRewarm;
|
|
561
|
+
}
|
|
562
|
+
if (!$dara.isNull(request.ivrId)) {
|
|
563
|
+
query["IvrId"] = request.ivrId;
|
|
564
|
+
}
|
|
565
|
+
if (!$dara.isNull(request.ivrName)) {
|
|
566
|
+
query["IvrName"] = request.ivrName;
|
|
567
|
+
}
|
|
568
|
+
if (!$dara.isNull(request.maxWaitTime)) {
|
|
569
|
+
query["MaxWaitTime"] = request.maxWaitTime;
|
|
570
|
+
}
|
|
571
|
+
if (!$dara.isNull(request.minAvailableAgentCount)) {
|
|
572
|
+
query["MinAvailableAgentCount"] = request.minAvailableAgentCount;
|
|
573
|
+
}
|
|
574
|
+
if (!$dara.isNull(request.name)) {
|
|
575
|
+
query["Name"] = request.name;
|
|
576
|
+
}
|
|
577
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
578
|
+
query["OwnerId"] = request.ownerId;
|
|
579
|
+
}
|
|
580
|
+
if (!$dara.isNull(request.predictAdjust)) {
|
|
581
|
+
query["PredictAdjust"] = request.predictAdjust;
|
|
582
|
+
}
|
|
583
|
+
if (!$dara.isNull(request.quotiety)) {
|
|
584
|
+
query["Quotiety"] = request.quotiety;
|
|
585
|
+
}
|
|
586
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
587
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
588
|
+
}
|
|
589
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
590
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
591
|
+
}
|
|
592
|
+
if (!$dara.isNull(request.retryStrategy)) {
|
|
593
|
+
query["RetryStrategy"] = request.retryStrategy;
|
|
594
|
+
}
|
|
595
|
+
if (!$dara.isNull(request.retryStrategyOnlyToday)) {
|
|
596
|
+
query["RetryStrategyOnlyToday"] = request.retryStrategyOnlyToday;
|
|
597
|
+
}
|
|
598
|
+
if (!$dara.isNull(request.retryStrategyTimeType)) {
|
|
599
|
+
query["RetryStrategyTimeType"] = request.retryStrategyTimeType;
|
|
600
|
+
}
|
|
601
|
+
if (!$dara.isNull(request.templateName)) {
|
|
602
|
+
query["TemplateName"] = request.templateName;
|
|
603
|
+
}
|
|
604
|
+
if (!$dara.isNull(request.timeStrategy)) {
|
|
605
|
+
query["TimeStrategy"] = request.timeStrategy;
|
|
606
|
+
}
|
|
607
|
+
if (!$dara.isNull(request.type)) {
|
|
608
|
+
query["Type"] = request.type;
|
|
609
|
+
}
|
|
610
|
+
if (!$dara.isNull(request.userFields)) {
|
|
611
|
+
query["UserFields"] = request.userFields;
|
|
612
|
+
}
|
|
613
|
+
if (!$dara.isNull(request.warmUpDuration)) {
|
|
614
|
+
query["WarmUpDuration"] = request.warmUpDuration;
|
|
615
|
+
}
|
|
616
|
+
if (!$dara.isNull(request.wrapup)) {
|
|
617
|
+
query["Wrapup"] = request.wrapup;
|
|
618
|
+
}
|
|
619
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
620
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
621
|
+
});
|
|
622
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
623
|
+
action: "CloudCreateTask",
|
|
624
|
+
version: "2017-05-25",
|
|
625
|
+
protocol: "HTTPS",
|
|
626
|
+
pathname: "/",
|
|
627
|
+
method: "POST",
|
|
628
|
+
authType: "AK",
|
|
629
|
+
style: "RPC",
|
|
630
|
+
reqBodyType: "formData",
|
|
631
|
+
bodyType: "json",
|
|
632
|
+
});
|
|
633
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CloudCreateTaskResponse({}));
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* 新增任务
|
|
637
|
+
*
|
|
638
|
+
* @param request - CloudCreateTaskRequest
|
|
639
|
+
* @returns CloudCreateTaskResponse
|
|
640
|
+
*/
|
|
641
|
+
async cloudCreateTask(request) {
|
|
642
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
643
|
+
return await this.cloudCreateTaskWithOptions(request, runtime);
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* 任务号码导入
|
|
647
|
+
*
|
|
648
|
+
* @param tmpReq - CloudImportTaskTelRequest
|
|
649
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
650
|
+
* @returns CloudImportTaskTelResponse
|
|
651
|
+
*/
|
|
652
|
+
async cloudImportTaskTelWithOptions(tmpReq, runtime) {
|
|
653
|
+
tmpReq.validate();
|
|
654
|
+
let request = new $_model.CloudImportTaskTelShrinkRequest({});
|
|
655
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
656
|
+
if (!$dara.isNull(tmpReq.taskTelList)) {
|
|
657
|
+
request.taskTelListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.taskTelList, "TaskTelList", "json");
|
|
658
|
+
}
|
|
659
|
+
let query = {};
|
|
660
|
+
if (!$dara.isNull(request.bridgeVoicePath)) {
|
|
661
|
+
query["BridgeVoicePath"] = request.bridgeVoicePath;
|
|
662
|
+
}
|
|
663
|
+
if (!$dara.isNull(request.bridgeVoiceType)) {
|
|
664
|
+
query["BridgeVoiceType"] = request.bridgeVoiceType;
|
|
665
|
+
}
|
|
666
|
+
if (!$dara.isNull(request.enterpriseId)) {
|
|
667
|
+
query["EnterpriseId"] = request.enterpriseId;
|
|
668
|
+
}
|
|
669
|
+
if (!$dara.isNull(request.fileId)) {
|
|
670
|
+
query["FileId"] = request.fileId;
|
|
671
|
+
}
|
|
672
|
+
if (!$dara.isNull(request.importTelAutoStart)) {
|
|
673
|
+
query["ImportTelAutoStart"] = request.importTelAutoStart;
|
|
674
|
+
}
|
|
675
|
+
if (!$dara.isNull(request.isRepeat)) {
|
|
676
|
+
query["IsRepeat"] = request.isRepeat;
|
|
677
|
+
}
|
|
678
|
+
if (!$dara.isNull(request.name)) {
|
|
679
|
+
query["Name"] = request.name;
|
|
680
|
+
}
|
|
681
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
682
|
+
query["OwnerId"] = request.ownerId;
|
|
683
|
+
}
|
|
684
|
+
if (!$dara.isNull(request.priority)) {
|
|
685
|
+
query["Priority"] = request.priority;
|
|
686
|
+
}
|
|
687
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
688
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
689
|
+
}
|
|
690
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
691
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
692
|
+
}
|
|
693
|
+
if (!$dara.isNull(request.taskId)) {
|
|
694
|
+
query["TaskId"] = request.taskId;
|
|
695
|
+
}
|
|
696
|
+
if (!$dara.isNull(request.taskTelListShrink)) {
|
|
697
|
+
query["TaskTelList"] = request.taskTelListShrink;
|
|
698
|
+
}
|
|
699
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
700
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
701
|
+
});
|
|
702
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
703
|
+
action: "CloudImportTaskTel",
|
|
704
|
+
version: "2017-05-25",
|
|
705
|
+
protocol: "HTTPS",
|
|
706
|
+
pathname: "/",
|
|
707
|
+
method: "POST",
|
|
708
|
+
authType: "AK",
|
|
709
|
+
style: "RPC",
|
|
710
|
+
reqBodyType: "formData",
|
|
711
|
+
bodyType: "json",
|
|
712
|
+
});
|
|
713
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CloudImportTaskTelResponse({}));
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* 任务号码导入
|
|
717
|
+
*
|
|
718
|
+
* @param request - CloudImportTaskTelRequest
|
|
719
|
+
* @returns CloudImportTaskTelResponse
|
|
720
|
+
*/
|
|
721
|
+
async cloudImportTaskTel(request) {
|
|
722
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
723
|
+
return await this.cloudImportTaskTelWithOptions(request, runtime);
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* 任务启动
|
|
727
|
+
*
|
|
728
|
+
* @param request - CloudStartTaskRequest
|
|
729
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
730
|
+
* @returns CloudStartTaskResponse
|
|
731
|
+
*/
|
|
732
|
+
async cloudStartTaskWithOptions(request, runtime) {
|
|
733
|
+
request.validate();
|
|
734
|
+
let query = {};
|
|
735
|
+
if (!$dara.isNull(request.enterpriseId)) {
|
|
736
|
+
query["EnterpriseId"] = request.enterpriseId;
|
|
737
|
+
}
|
|
738
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
739
|
+
query["OwnerId"] = request.ownerId;
|
|
740
|
+
}
|
|
741
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
742
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
743
|
+
}
|
|
744
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
745
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
746
|
+
}
|
|
747
|
+
if (!$dara.isNull(request.taskId)) {
|
|
748
|
+
query["TaskId"] = request.taskId;
|
|
749
|
+
}
|
|
750
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
751
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
752
|
+
});
|
|
753
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
754
|
+
action: "CloudStartTask",
|
|
755
|
+
version: "2017-05-25",
|
|
756
|
+
protocol: "HTTPS",
|
|
757
|
+
pathname: "/",
|
|
758
|
+
method: "POST",
|
|
759
|
+
authType: "AK",
|
|
760
|
+
style: "RPC",
|
|
761
|
+
reqBodyType: "formData",
|
|
762
|
+
bodyType: "json",
|
|
763
|
+
});
|
|
764
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CloudStartTaskResponse({}));
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* 任务启动
|
|
768
|
+
*
|
|
769
|
+
* @param request - CloudStartTaskRequest
|
|
770
|
+
* @returns CloudStartTaskResponse
|
|
771
|
+
*/
|
|
772
|
+
async cloudStartTask(request) {
|
|
773
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
774
|
+
return await this.cloudStartTaskWithOptions(request, runtime);
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* 更新任务
|
|
778
|
+
*
|
|
779
|
+
* @param request - CloudUpdateTaskRequest
|
|
780
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
781
|
+
* @returns CloudUpdateTaskResponse
|
|
782
|
+
*/
|
|
783
|
+
async cloudUpdateTaskWithOptions(request, runtime) {
|
|
784
|
+
request.validate();
|
|
785
|
+
let query = {};
|
|
786
|
+
if (!$dara.isNull(request.agentGroup)) {
|
|
787
|
+
query["AgentGroup"] = request.agentGroup;
|
|
788
|
+
}
|
|
789
|
+
if (!$dara.isNull(request.agentTimeout)) {
|
|
790
|
+
query["AgentTimeout"] = request.agentTimeout;
|
|
791
|
+
}
|
|
792
|
+
if (!$dara.isNull(request.answerRate)) {
|
|
793
|
+
query["AnswerRate"] = request.answerRate;
|
|
794
|
+
}
|
|
795
|
+
if (!$dara.isNull(request.autoComplete)) {
|
|
796
|
+
query["AutoComplete"] = request.autoComplete;
|
|
797
|
+
}
|
|
798
|
+
if (!$dara.isNull(request.autoStart)) {
|
|
799
|
+
query["AutoStart"] = request.autoStart;
|
|
800
|
+
}
|
|
801
|
+
if (!$dara.isNull(request.autoStartDay)) {
|
|
802
|
+
query["AutoStartDay"] = request.autoStartDay;
|
|
803
|
+
}
|
|
804
|
+
if (!$dara.isNull(request.autoStartTime)) {
|
|
805
|
+
query["AutoStartTime"] = request.autoStartTime;
|
|
806
|
+
}
|
|
807
|
+
if (!$dara.isNull(request.autoStop)) {
|
|
808
|
+
query["AutoStop"] = request.autoStop;
|
|
809
|
+
}
|
|
810
|
+
if (!$dara.isNull(request.autoStopDay)) {
|
|
811
|
+
query["AutoStopDay"] = request.autoStopDay;
|
|
812
|
+
}
|
|
813
|
+
if (!$dara.isNull(request.autoStopTime)) {
|
|
814
|
+
query["AutoStopTime"] = request.autoStopTime;
|
|
815
|
+
}
|
|
816
|
+
if (!$dara.isNull(request.autoTaskType)) {
|
|
817
|
+
query["AutoTaskType"] = request.autoTaskType;
|
|
818
|
+
}
|
|
819
|
+
if (!$dara.isNull(request.autoTriggerTimeStrategy)) {
|
|
820
|
+
query["AutoTriggerTimeStrategy"] = request.autoTriggerTimeStrategy;
|
|
821
|
+
}
|
|
822
|
+
if (!$dara.isNull(request.callLimitStrategy)) {
|
|
823
|
+
query["CallLimitStrategy"] = request.callLimitStrategy;
|
|
824
|
+
}
|
|
825
|
+
if (!$dara.isNull(request.callPriorityStrategy)) {
|
|
826
|
+
query["CallPriorityStrategy"] = request.callPriorityStrategy;
|
|
827
|
+
}
|
|
828
|
+
if (!$dara.isNull(request.callRouteStrategy)) {
|
|
829
|
+
query["CallRouteStrategy"] = request.callRouteStrategy;
|
|
830
|
+
}
|
|
831
|
+
if (!$dara.isNull(request.callStrategy)) {
|
|
832
|
+
query["CallStrategy"] = request.callStrategy;
|
|
833
|
+
}
|
|
834
|
+
if (!$dara.isNull(request.callVariables)) {
|
|
835
|
+
query["CallVariables"] = request.callVariables;
|
|
836
|
+
}
|
|
837
|
+
if (!$dara.isNull(request.clidProperty)) {
|
|
838
|
+
query["ClidProperty"] = request.clidProperty;
|
|
839
|
+
}
|
|
840
|
+
if (!$dara.isNull(request.cnos)) {
|
|
841
|
+
query["Cnos"] = request.cnos;
|
|
842
|
+
}
|
|
843
|
+
if (!$dara.isNull(request.concurrency)) {
|
|
844
|
+
query["Concurrency"] = request.concurrency;
|
|
845
|
+
}
|
|
846
|
+
if (!$dara.isNull(request.customerClidType)) {
|
|
847
|
+
query["CustomerClidType"] = request.customerClidType;
|
|
848
|
+
}
|
|
849
|
+
if (!$dara.isNull(request.customerClidWeight)) {
|
|
850
|
+
query["CustomerClidWeight"] = request.customerClidWeight;
|
|
851
|
+
}
|
|
852
|
+
if (!$dara.isNull(request.customerClidWeightFlag)) {
|
|
853
|
+
query["CustomerClidWeightFlag"] = request.customerClidWeightFlag;
|
|
854
|
+
}
|
|
855
|
+
if (!$dara.isNull(request.customerClids)) {
|
|
856
|
+
query["CustomerClids"] = request.customerClids;
|
|
857
|
+
}
|
|
858
|
+
if (!$dara.isNull(request.customerClidsCategory)) {
|
|
859
|
+
query["CustomerClidsCategory"] = request.customerClidsCategory;
|
|
860
|
+
}
|
|
861
|
+
if (!$dara.isNull(request.customerClidsGroup)) {
|
|
862
|
+
query["CustomerClidsGroup"] = request.customerClidsGroup;
|
|
863
|
+
}
|
|
864
|
+
if (!$dara.isNull(request.customerMoh)) {
|
|
865
|
+
query["CustomerMoh"] = request.customerMoh;
|
|
866
|
+
}
|
|
867
|
+
if (!$dara.isNull(request.customerTimeout)) {
|
|
868
|
+
query["CustomerTimeout"] = request.customerTimeout;
|
|
869
|
+
}
|
|
870
|
+
if (!$dara.isNull(request.customerVoice)) {
|
|
871
|
+
query["CustomerVoice"] = request.customerVoice;
|
|
872
|
+
}
|
|
873
|
+
if (!$dara.isNull(request.description)) {
|
|
874
|
+
query["Description"] = request.description;
|
|
875
|
+
}
|
|
876
|
+
if (!$dara.isNull(request.enterpriseId)) {
|
|
877
|
+
query["EnterpriseId"] = request.enterpriseId;
|
|
878
|
+
}
|
|
879
|
+
if (!$dara.isNull(request.forceEndFlag)) {
|
|
880
|
+
query["ForceEndFlag"] = request.forceEndFlag;
|
|
881
|
+
}
|
|
882
|
+
if (!$dara.isNull(request.isRewarm)) {
|
|
883
|
+
query["IsRewarm"] = request.isRewarm;
|
|
884
|
+
}
|
|
885
|
+
if (!$dara.isNull(request.ivrId)) {
|
|
886
|
+
query["IvrId"] = request.ivrId;
|
|
887
|
+
}
|
|
888
|
+
if (!$dara.isNull(request.ivrName)) {
|
|
889
|
+
query["IvrName"] = request.ivrName;
|
|
890
|
+
}
|
|
891
|
+
if (!$dara.isNull(request.maxWaitTime)) {
|
|
892
|
+
query["MaxWaitTime"] = request.maxWaitTime;
|
|
893
|
+
}
|
|
894
|
+
if (!$dara.isNull(request.minAvailableAgentCount)) {
|
|
895
|
+
query["MinAvailableAgentCount"] = request.minAvailableAgentCount;
|
|
896
|
+
}
|
|
897
|
+
if (!$dara.isNull(request.name)) {
|
|
898
|
+
query["Name"] = request.name;
|
|
899
|
+
}
|
|
900
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
901
|
+
query["OwnerId"] = request.ownerId;
|
|
902
|
+
}
|
|
903
|
+
if (!$dara.isNull(request.predictAdjust)) {
|
|
904
|
+
query["PredictAdjust"] = request.predictAdjust;
|
|
905
|
+
}
|
|
906
|
+
if (!$dara.isNull(request.quotiety)) {
|
|
907
|
+
query["Quotiety"] = request.quotiety;
|
|
908
|
+
}
|
|
909
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
910
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
911
|
+
}
|
|
912
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
913
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
914
|
+
}
|
|
915
|
+
if (!$dara.isNull(request.retryStrategy)) {
|
|
916
|
+
query["RetryStrategy"] = request.retryStrategy;
|
|
917
|
+
}
|
|
918
|
+
if (!$dara.isNull(request.retryStrategyOnlyToday)) {
|
|
919
|
+
query["RetryStrategyOnlyToday"] = request.retryStrategyOnlyToday;
|
|
920
|
+
}
|
|
921
|
+
if (!$dara.isNull(request.retryStrategyTimeType)) {
|
|
922
|
+
query["RetryStrategyTimeType"] = request.retryStrategyTimeType;
|
|
923
|
+
}
|
|
924
|
+
if (!$dara.isNull(request.taskId)) {
|
|
925
|
+
query["TaskId"] = request.taskId;
|
|
926
|
+
}
|
|
927
|
+
if (!$dara.isNull(request.timeStrategy)) {
|
|
928
|
+
query["TimeStrategy"] = request.timeStrategy;
|
|
929
|
+
}
|
|
930
|
+
if (!$dara.isNull(request.userFields)) {
|
|
931
|
+
query["UserFields"] = request.userFields;
|
|
932
|
+
}
|
|
933
|
+
if (!$dara.isNull(request.warmUpDuration)) {
|
|
934
|
+
query["WarmUpDuration"] = request.warmUpDuration;
|
|
935
|
+
}
|
|
936
|
+
if (!$dara.isNull(request.wrapup)) {
|
|
937
|
+
query["Wrapup"] = request.wrapup;
|
|
938
|
+
}
|
|
939
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
940
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
941
|
+
});
|
|
942
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
943
|
+
action: "CloudUpdateTask",
|
|
944
|
+
version: "2017-05-25",
|
|
945
|
+
protocol: "HTTPS",
|
|
946
|
+
pathname: "/",
|
|
947
|
+
method: "POST",
|
|
948
|
+
authType: "AK",
|
|
949
|
+
style: "RPC",
|
|
950
|
+
reqBodyType: "formData",
|
|
951
|
+
bodyType: "json",
|
|
952
|
+
});
|
|
953
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CloudUpdateTaskResponse({}));
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* 更新任务
|
|
957
|
+
*
|
|
958
|
+
* @param request - CloudUpdateTaskRequest
|
|
959
|
+
* @returns CloudUpdateTaskResponse
|
|
960
|
+
*/
|
|
961
|
+
async cloudUpdateTask(request) {
|
|
962
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
963
|
+
return await this.cloudUpdateTaskWithOptions(request, runtime);
|
|
964
|
+
}
|
|
965
|
+
/**
|
|
966
|
+
* 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
967
|
*
|
|
446
968
|
* @remarks
|
|
447
969
|
* You can create up to 1,000 voice notifications for each task.
|
|
@@ -514,7 +1036,7 @@ class Client extends openapi_core_1.default {
|
|
|
514
1036
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateCallTaskResponse({}));
|
|
515
1037
|
}
|
|
516
1038
|
/**
|
|
517
|
-
*
|
|
1039
|
+
* 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
1040
|
*
|
|
519
1041
|
* @remarks
|
|
520
1042
|
* You can create up to 1,000 voice notifications for each task.
|
|
@@ -614,7 +1136,7 @@ class Client extends openapi_core_1.default {
|
|
|
614
1136
|
return await this.createRobotTaskWithOptions(request, runtime);
|
|
615
1137
|
}
|
|
616
1138
|
/**
|
|
617
|
-
*
|
|
1139
|
+
* Downgrades from a video call to a voice call.
|
|
618
1140
|
*
|
|
619
1141
|
* @param request - DegradeVideoFileRequest
|
|
620
1142
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -661,7 +1183,7 @@ class Client extends openapi_core_1.default {
|
|
|
661
1183
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DegradeVideoFileResponse({}));
|
|
662
1184
|
}
|
|
663
1185
|
/**
|
|
664
|
-
*
|
|
1186
|
+
* Downgrades from a video call to a voice call.
|
|
665
1187
|
*
|
|
666
1188
|
* @param request - DegradeVideoFileRequest
|
|
667
1189
|
* @returns DegradeVideoFileResponse
|
|
@@ -791,7 +1313,7 @@ class Client extends openapi_core_1.default {
|
|
|
791
1313
|
return await this.executeCallTaskWithOptions(request, runtime);
|
|
792
1314
|
}
|
|
793
1315
|
/**
|
|
794
|
-
*
|
|
1316
|
+
* Obtains the call type during a call.
|
|
795
1317
|
*
|
|
796
1318
|
* @param request - GetCallMediaTypeRequest
|
|
797
1319
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -832,7 +1354,7 @@ class Client extends openapi_core_1.default {
|
|
|
832
1354
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetCallMediaTypeResponse({}));
|
|
833
1355
|
}
|
|
834
1356
|
/**
|
|
835
|
-
*
|
|
1357
|
+
* Obtains the call type during a call.
|
|
836
1358
|
*
|
|
837
1359
|
* @param request - GetCallMediaTypeRequest
|
|
838
1360
|
* @returns GetCallMediaTypeResponse
|
|
@@ -949,7 +1471,7 @@ class Client extends openapi_core_1.default {
|
|
|
949
1471
|
return await this.getHotlineQualificationByOrderWithOptions(request, runtime);
|
|
950
1472
|
}
|
|
951
1473
|
/**
|
|
952
|
-
*
|
|
1474
|
+
* 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
1475
|
*
|
|
954
1476
|
* @param request - GetTemporaryFileUrlRequest
|
|
955
1477
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -987,7 +1509,7 @@ class Client extends openapi_core_1.default {
|
|
|
987
1509
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetTemporaryFileUrlResponse({}));
|
|
988
1510
|
}
|
|
989
1511
|
/**
|
|
990
|
-
*
|
|
1512
|
+
* 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
1513
|
*
|
|
992
1514
|
* @param request - GetTemporaryFileUrlRequest
|
|
993
1515
|
* @returns GetTemporaryFileUrlResponse
|
|
@@ -1190,7 +1712,7 @@ class Client extends openapi_core_1.default {
|
|
|
1190
1712
|
return await this.ivrCallWithOptions(request, runtime);
|
|
1191
1713
|
}
|
|
1192
1714
|
/**
|
|
1193
|
-
* Queries task
|
|
1715
|
+
* 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
1716
|
*
|
|
1195
1717
|
* @remarks
|
|
1196
1718
|
* ### QPS limits
|
|
@@ -1250,7 +1772,7 @@ class Client extends openapi_core_1.default {
|
|
|
1250
1772
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListCallTaskResponse({}));
|
|
1251
1773
|
}
|
|
1252
1774
|
/**
|
|
1253
|
-
* Queries task
|
|
1775
|
+
* 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
1776
|
*
|
|
1255
1777
|
* @remarks
|
|
1256
1778
|
* ### QPS limits
|
|
@@ -1264,7 +1786,7 @@ class Client extends openapi_core_1.default {
|
|
|
1264
1786
|
return await this.listCallTaskWithOptions(request, runtime);
|
|
1265
1787
|
}
|
|
1266
1788
|
/**
|
|
1267
|
-
* Queries the
|
|
1789
|
+
* Queries the details of call tasks based on task IDs after call tasks are complete.
|
|
1268
1790
|
*
|
|
1269
1791
|
* @remarks
|
|
1270
1792
|
* ### QPS limits
|
|
@@ -1318,7 +1840,7 @@ class Client extends openapi_core_1.default {
|
|
|
1318
1840
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListCallTaskDetailResponse({}));
|
|
1319
1841
|
}
|
|
1320
1842
|
/**
|
|
1321
|
-
* Queries the
|
|
1843
|
+
* Queries the details of call tasks based on task IDs after call tasks are complete.
|
|
1322
1844
|
*
|
|
1323
1845
|
* @remarks
|
|
1324
1846
|
* ### QPS limits
|
|
@@ -1397,7 +1919,72 @@ class Client extends openapi_core_1.default {
|
|
|
1397
1919
|
return await this.listHotlineTransferRegisterFileWithOptions(request, runtime);
|
|
1398
1920
|
}
|
|
1399
1921
|
/**
|
|
1400
|
-
*
|
|
1922
|
+
* 分页查询服务实例列表
|
|
1923
|
+
*
|
|
1924
|
+
* @param tmpReq - ListServiceInstanceForPageRequest
|
|
1925
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1926
|
+
* @returns ListServiceInstanceForPageResponse
|
|
1927
|
+
*/
|
|
1928
|
+
async listServiceInstanceForPageWithOptions(tmpReq, runtime) {
|
|
1929
|
+
tmpReq.validate();
|
|
1930
|
+
let request = new $_model.ListServiceInstanceForPageShrinkRequest({});
|
|
1931
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
1932
|
+
if (!$dara.isNull(tmpReq.pager)) {
|
|
1933
|
+
request.pagerShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.pager, "Pager", "json");
|
|
1934
|
+
}
|
|
1935
|
+
let query = {};
|
|
1936
|
+
if (!$dara.isNull(request.code)) {
|
|
1937
|
+
query["Code"] = request.code;
|
|
1938
|
+
}
|
|
1939
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1940
|
+
query["OwnerId"] = request.ownerId;
|
|
1941
|
+
}
|
|
1942
|
+
if (!$dara.isNull(request.pagerShrink)) {
|
|
1943
|
+
query["Pager"] = request.pagerShrink;
|
|
1944
|
+
}
|
|
1945
|
+
if (!$dara.isNull(request.relationNumber)) {
|
|
1946
|
+
query["RelationNumber"] = request.relationNumber;
|
|
1947
|
+
}
|
|
1948
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1949
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1950
|
+
}
|
|
1951
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1952
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1953
|
+
}
|
|
1954
|
+
if (!$dara.isNull(request.sceneId)) {
|
|
1955
|
+
query["SceneId"] = request.sceneId;
|
|
1956
|
+
}
|
|
1957
|
+
if (!$dara.isNull(request.usageId)) {
|
|
1958
|
+
query["UsageId"] = request.usageId;
|
|
1959
|
+
}
|
|
1960
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1961
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1962
|
+
});
|
|
1963
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1964
|
+
action: "ListServiceInstanceForPage",
|
|
1965
|
+
version: "2017-05-25",
|
|
1966
|
+
protocol: "HTTPS",
|
|
1967
|
+
pathname: "/",
|
|
1968
|
+
method: "POST",
|
|
1969
|
+
authType: "AK",
|
|
1970
|
+
style: "RPC",
|
|
1971
|
+
reqBodyType: "formData",
|
|
1972
|
+
bodyType: "json",
|
|
1973
|
+
});
|
|
1974
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListServiceInstanceForPageResponse({}));
|
|
1975
|
+
}
|
|
1976
|
+
/**
|
|
1977
|
+
* 分页查询服务实例列表
|
|
1978
|
+
*
|
|
1979
|
+
* @param request - ListServiceInstanceForPageRequest
|
|
1980
|
+
* @returns ListServiceInstanceForPageResponse
|
|
1981
|
+
*/
|
|
1982
|
+
async listServiceInstanceForPage(request) {
|
|
1983
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1984
|
+
return await this.listServiceInstanceForPageWithOptions(request, runtime);
|
|
1985
|
+
}
|
|
1986
|
+
/**
|
|
1987
|
+
* Pauses video playback when a video file is played back during a voice call.
|
|
1401
1988
|
*
|
|
1402
1989
|
* @param request - PauseVideoFileRequest
|
|
1403
1990
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1438,7 +2025,7 @@ class Client extends openapi_core_1.default {
|
|
|
1438
2025
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.PauseVideoFileResponse({}));
|
|
1439
2026
|
}
|
|
1440
2027
|
/**
|
|
1441
|
-
*
|
|
2028
|
+
* Pauses video playback when a video file is played back during a voice call.
|
|
1442
2029
|
*
|
|
1443
2030
|
* @param request - PauseVideoFileRequest
|
|
1444
2031
|
* @returns PauseVideoFileResponse
|
|
@@ -1448,7 +2035,7 @@ class Client extends openapi_core_1.default {
|
|
|
1448
2035
|
return await this.pauseVideoFileWithOptions(request, runtime);
|
|
1449
2036
|
}
|
|
1450
2037
|
/**
|
|
1451
|
-
*
|
|
2038
|
+
* Plays back a video file during a voice call.
|
|
1452
2039
|
*
|
|
1453
2040
|
* @param request - PlayVideoFileRequest
|
|
1454
2041
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1498,7 +2085,7 @@ class Client extends openapi_core_1.default {
|
|
|
1498
2085
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.PlayVideoFileResponse({}));
|
|
1499
2086
|
}
|
|
1500
2087
|
/**
|
|
1501
|
-
*
|
|
2088
|
+
* Plays back a video file during a voice call.
|
|
1502
2089
|
*
|
|
1503
2090
|
* @param request - PlayVideoFileRequest
|
|
1504
2091
|
* @returns PlayVideoFileResponse
|
|
@@ -1750,7 +2337,7 @@ class Client extends openapi_core_1.default {
|
|
|
1750
2337
|
return await this.queryCallInTransferRecordWithOptions(request, runtime);
|
|
1751
2338
|
}
|
|
1752
2339
|
/**
|
|
1753
|
-
* Queries a list of robots.
|
|
2340
|
+
* Queries a list of robots to obtain their details.
|
|
1754
2341
|
*
|
|
1755
2342
|
* @param request - QueryRobotInfoListRequest
|
|
1756
2343
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1788,7 +2375,7 @@ class Client extends openapi_core_1.default {
|
|
|
1788
2375
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryRobotInfoListResponse({}));
|
|
1789
2376
|
}
|
|
1790
2377
|
/**
|
|
1791
|
-
* Queries a list of robots.
|
|
2378
|
+
* Queries a list of robots to obtain their details.
|
|
1792
2379
|
*
|
|
1793
2380
|
* @param request - QueryRobotInfoListRequest
|
|
1794
2381
|
* @returns QueryRobotInfoListResponse
|
|
@@ -1798,7 +2385,7 @@ class Client extends openapi_core_1.default {
|
|
|
1798
2385
|
return await this.queryRobotInfoListWithOptions(request, runtime);
|
|
1799
2386
|
}
|
|
1800
2387
|
/**
|
|
1801
|
-
* Queries the call details of a called number
|
|
2388
|
+
* Queries the call details of a called number.
|
|
1802
2389
|
*
|
|
1803
2390
|
* @remarks
|
|
1804
2391
|
* ### QPS limits
|
|
@@ -1846,7 +2433,7 @@ class Client extends openapi_core_1.default {
|
|
|
1846
2433
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryRobotTaskCallDetailResponse({}));
|
|
1847
2434
|
}
|
|
1848
2435
|
/**
|
|
1849
|
-
* Queries the call details of a called number
|
|
2436
|
+
* Queries the call details of a called number.
|
|
1850
2437
|
*
|
|
1851
2438
|
* @remarks
|
|
1852
2439
|
* ### QPS limits
|
|
@@ -2120,7 +2707,7 @@ class Client extends openapi_core_1.default {
|
|
|
2120
2707
|
return await this.queryRobotv2AllListWithOptions(request, runtime);
|
|
2121
2708
|
}
|
|
2122
2709
|
/**
|
|
2123
|
-
*
|
|
2710
|
+
* Queries the video playback progress after you play a video file during a voice call.
|
|
2124
2711
|
*
|
|
2125
2712
|
* @param request - QueryVideoPlayProgressRequest
|
|
2126
2713
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2161,7 +2748,7 @@ class Client extends openapi_core_1.default {
|
|
|
2161
2748
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryVideoPlayProgressResponse({}));
|
|
2162
2749
|
}
|
|
2163
2750
|
/**
|
|
2164
|
-
*
|
|
2751
|
+
* Queries the video playback progress after you play a video file during a voice call.
|
|
2165
2752
|
*
|
|
2166
2753
|
* @param request - QueryVideoPlayProgressRequest
|
|
2167
2754
|
* @returns QueryVideoPlayProgressResponse
|
|
@@ -2171,72 +2758,7 @@ class Client extends openapi_core_1.default {
|
|
|
2171
2758
|
return await this.queryVideoPlayProgressWithOptions(request, runtime);
|
|
2172
2759
|
}
|
|
2173
2760
|
/**
|
|
2174
|
-
*
|
|
2175
|
-
*
|
|
2176
|
-
* @remarks
|
|
2177
|
-
* ### QPS limits
|
|
2178
|
-
* You can call this operation up to 100 times per second per account.
|
|
2179
|
-
*
|
|
2180
|
-
* @param request - QueryVirtualNumberRequest
|
|
2181
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
2182
|
-
* @returns QueryVirtualNumberResponse
|
|
2183
|
-
*/
|
|
2184
|
-
async queryVirtualNumberWithOptions(request, runtime) {
|
|
2185
|
-
request.validate();
|
|
2186
|
-
let query = {};
|
|
2187
|
-
if (!$dara.isNull(request.ownerId)) {
|
|
2188
|
-
query["OwnerId"] = request.ownerId;
|
|
2189
|
-
}
|
|
2190
|
-
if (!$dara.isNull(request.pageNo)) {
|
|
2191
|
-
query["PageNo"] = request.pageNo;
|
|
2192
|
-
}
|
|
2193
|
-
if (!$dara.isNull(request.pageSize)) {
|
|
2194
|
-
query["PageSize"] = request.pageSize;
|
|
2195
|
-
}
|
|
2196
|
-
if (!$dara.isNull(request.prodCode)) {
|
|
2197
|
-
query["ProdCode"] = request.prodCode;
|
|
2198
|
-
}
|
|
2199
|
-
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2200
|
-
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2201
|
-
}
|
|
2202
|
-
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
2203
|
-
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2204
|
-
}
|
|
2205
|
-
if (!$dara.isNull(request.routeType)) {
|
|
2206
|
-
query["RouteType"] = request.routeType;
|
|
2207
|
-
}
|
|
2208
|
-
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2209
|
-
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2210
|
-
});
|
|
2211
|
-
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2212
|
-
action: "QueryVirtualNumber",
|
|
2213
|
-
version: "2017-05-25",
|
|
2214
|
-
protocol: "HTTPS",
|
|
2215
|
-
pathname: "/",
|
|
2216
|
-
method: "POST",
|
|
2217
|
-
authType: "AK",
|
|
2218
|
-
style: "RPC",
|
|
2219
|
-
reqBodyType: "formData",
|
|
2220
|
-
bodyType: "json",
|
|
2221
|
-
});
|
|
2222
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryVirtualNumberResponse({}));
|
|
2223
|
-
}
|
|
2224
|
-
/**
|
|
2225
|
-
* Queries a list of virtual numbers.
|
|
2226
|
-
*
|
|
2227
|
-
* @remarks
|
|
2228
|
-
* ### QPS limits
|
|
2229
|
-
* You can call this operation up to 100 times per second per account.
|
|
2230
|
-
*
|
|
2231
|
-
* @param request - QueryVirtualNumberRequest
|
|
2232
|
-
* @returns QueryVirtualNumberResponse
|
|
2233
|
-
*/
|
|
2234
|
-
async queryVirtualNumber(request) {
|
|
2235
|
-
let runtime = new $dara.RuntimeOptions({});
|
|
2236
|
-
return await this.queryVirtualNumberWithOptions(request, runtime);
|
|
2237
|
-
}
|
|
2238
|
-
/**
|
|
2239
|
-
* Queries a list of associations between virtual numbers and real numbers.
|
|
2761
|
+
* 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.
|
|
2240
2762
|
*
|
|
2241
2763
|
* @remarks
|
|
2242
2764
|
* ### QPS limits
|
|
@@ -2302,7 +2824,7 @@ class Client extends openapi_core_1.default {
|
|
|
2302
2824
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryVirtualNumberRelationResponse({}));
|
|
2303
2825
|
}
|
|
2304
2826
|
/**
|
|
2305
|
-
*
|
|
2827
|
+
* 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.
|
|
2306
2828
|
*
|
|
2307
2829
|
* @remarks
|
|
2308
2830
|
* ### QPS limits
|
|
@@ -2535,7 +3057,7 @@ class Client extends openapi_core_1.default {
|
|
|
2535
3057
|
return await this.recoverCallInConfigWithOptions(request, runtime);
|
|
2536
3058
|
}
|
|
2537
3059
|
/**
|
|
2538
|
-
*
|
|
3060
|
+
* Resumes video playback after you pause video playback during a voice call.
|
|
2539
3061
|
*
|
|
2540
3062
|
* @param request - ResumeVideoFileRequest
|
|
2541
3063
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2576,7 +3098,7 @@ class Client extends openapi_core_1.default {
|
|
|
2576
3098
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ResumeVideoFileResponse({}));
|
|
2577
3099
|
}
|
|
2578
3100
|
/**
|
|
2579
|
-
*
|
|
3101
|
+
* Resumes video playback after you pause video playback during a voice call.
|
|
2580
3102
|
*
|
|
2581
3103
|
* @param request - ResumeVideoFileRequest
|
|
2582
3104
|
* @returns ResumeVideoFileResponse
|
|
@@ -2848,7 +3370,7 @@ class Client extends openapi_core_1.default {
|
|
|
2848
3370
|
return await this.singleCallByTtsWithOptions(request, runtime);
|
|
2849
3371
|
}
|
|
2850
3372
|
/**
|
|
2851
|
-
*
|
|
3373
|
+
* Sends voice file notifications or video file notifications to a single called number.
|
|
2852
3374
|
*
|
|
2853
3375
|
* @param request - SingleCallByVideoRequest
|
|
2854
3376
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2907,7 +3429,7 @@ class Client extends openapi_core_1.default {
|
|
|
2907
3429
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SingleCallByVideoResponse({}));
|
|
2908
3430
|
}
|
|
2909
3431
|
/**
|
|
2910
|
-
*
|
|
3432
|
+
* Sends voice file notifications or video file notifications to a single called number.
|
|
2911
3433
|
*
|
|
2912
3434
|
* @param request - SingleCallByVideoRequest
|
|
2913
3435
|
* @returns SingleCallByVideoResponse
|
|
@@ -2995,7 +3517,7 @@ class Client extends openapi_core_1.default {
|
|
|
2995
3517
|
return await this.singleCallByVoiceWithOptions(request, runtime);
|
|
2996
3518
|
}
|
|
2997
3519
|
/**
|
|
2998
|
-
*
|
|
3520
|
+
* Fast forwards or rewinds a video when you play the video.
|
|
2999
3521
|
*
|
|
3000
3522
|
* @param request - SkipVideoFileRequest
|
|
3001
3523
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3042,7 +3564,7 @@ class Client extends openapi_core_1.default {
|
|
|
3042
3564
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SkipVideoFileResponse({}));
|
|
3043
3565
|
}
|
|
3044
3566
|
/**
|
|
3045
|
-
*
|
|
3567
|
+
* Fast forwards or rewinds a video when you play the video.
|
|
3046
3568
|
*
|
|
3047
3569
|
* @param request - SkipVideoFileRequest
|
|
3048
3570
|
* @returns SkipVideoFileResponse
|
|
@@ -3421,7 +3943,7 @@ class Client extends openapi_core_1.default {
|
|
|
3421
3943
|
return await this.stopRobotTaskWithOptions(request, runtime);
|
|
3422
3944
|
}
|
|
3423
3945
|
/**
|
|
3424
|
-
* Submits a
|
|
3946
|
+
* Submits a 400 number for registration.
|
|
3425
3947
|
*
|
|
3426
3948
|
* @remarks
|
|
3427
3949
|
* ### QPS limits
|
|
@@ -3490,7 +4012,7 @@ class Client extends openapi_core_1.default {
|
|
|
3490
4012
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SubmitHotlineTransferRegisterResponse({}));
|
|
3491
4013
|
}
|
|
3492
4014
|
/**
|
|
3493
|
-
* Submits a
|
|
4015
|
+
* Submits a 400 number for registration.
|
|
3494
4016
|
*
|
|
3495
4017
|
* @remarks
|
|
3496
4018
|
* ### QPS limits
|
|
@@ -3504,7 +4026,7 @@ class Client extends openapi_core_1.default {
|
|
|
3504
4026
|
return await this.submitHotlineTransferRegisterWithOptions(request, runtime);
|
|
3505
4027
|
}
|
|
3506
4028
|
/**
|
|
3507
|
-
*
|
|
4029
|
+
* Upgrades from a voice call to a video call.
|
|
3508
4030
|
*
|
|
3509
4031
|
* @param request - UpgradeVideoFileRequest
|
|
3510
4032
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3551,7 +4073,7 @@ class Client extends openapi_core_1.default {
|
|
|
3551
4073
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpgradeVideoFileResponse({}));
|
|
3552
4074
|
}
|
|
3553
4075
|
/**
|
|
3554
|
-
*
|
|
4076
|
+
* Upgrades from a voice call to a video call.
|
|
3555
4077
|
*
|
|
3556
4078
|
* @param request - UpgradeVideoFileRequest
|
|
3557
4079
|
* @returns UpgradeVideoFileResponse
|