@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/src/client.ts
CHANGED
|
@@ -30,7 +30,7 @@ export default class Client extends OpenApi {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Binds multiple real numbers to a service instance at a time.
|
|
34
34
|
*
|
|
35
35
|
* @remarks
|
|
36
36
|
* ### QPS limits
|
|
@@ -93,7 +93,7 @@ export default class Client extends OpenApi {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Binds multiple real numbers to a service instance at a time.
|
|
97
97
|
*
|
|
98
98
|
* @remarks
|
|
99
99
|
* ### QPS limits
|
|
@@ -108,7 +108,7 @@ export default class Client extends OpenApi {
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
|
-
* Initiates
|
|
111
|
+
* Initiates outbound robocall tasks in a batch. You can set up to 100 numbers in a task.
|
|
112
112
|
*
|
|
113
113
|
* @remarks
|
|
114
114
|
* 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.
|
|
@@ -200,7 +200,7 @@ export default class Client extends OpenApi {
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
|
-
* Initiates
|
|
203
|
+
* Initiates outbound robocall tasks in a batch. You can set up to 100 numbers in a task.
|
|
204
204
|
*
|
|
205
205
|
* @remarks
|
|
206
206
|
* 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.
|
|
@@ -220,6 +220,8 @@ export default class Client extends OpenApi {
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
|
+
* Cancels the two-way call that is initiated by calling the ClickToDial operation.
|
|
224
|
+
*
|
|
223
225
|
* @param request - CancelCallRequest
|
|
224
226
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
225
227
|
* @returns CancelCallResponse
|
|
@@ -231,23 +233,607 @@ export default class Client extends OpenApi {
|
|
|
231
233
|
query["CallId"] = request.callId;
|
|
232
234
|
}
|
|
233
235
|
|
|
234
|
-
if (!$dara.isNull(request.ownerId)) {
|
|
235
|
-
query["OwnerId"] = request.ownerId;
|
|
236
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
237
|
+
query["OwnerId"] = request.ownerId;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
241
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
245
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
249
|
+
query: OpenApiUtil.query(query),
|
|
250
|
+
});
|
|
251
|
+
let params = new $OpenApiUtil.Params({
|
|
252
|
+
action: "CancelCall",
|
|
253
|
+
version: "2017-05-25",
|
|
254
|
+
protocol: "HTTPS",
|
|
255
|
+
pathname: "/",
|
|
256
|
+
method: "POST",
|
|
257
|
+
authType: "AK",
|
|
258
|
+
style: "RPC",
|
|
259
|
+
reqBodyType: "formData",
|
|
260
|
+
bodyType: "json",
|
|
261
|
+
});
|
|
262
|
+
return $dara.cast<$_model.CancelCallResponse>(await this.callApi(params, req, runtime), new $_model.CancelCallResponse({}));
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Cancels the two-way call that is initiated by calling the ClickToDial operation.
|
|
267
|
+
*
|
|
268
|
+
* @param request - CancelCallRequest
|
|
269
|
+
* @returns CancelCallResponse
|
|
270
|
+
*/
|
|
271
|
+
async cancelCall(request: $_model.CancelCallRequest): Promise<$_model.CancelCallResponse> {
|
|
272
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
273
|
+
return await this.cancelCallWithOptions(request, runtime);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Cancels a robocall task that has not been started.
|
|
278
|
+
*
|
|
279
|
+
* @remarks
|
|
280
|
+
* ### QPS limits
|
|
281
|
+
* You can call this operation up to 100 times per second per account.
|
|
282
|
+
*
|
|
283
|
+
* @param request - CancelOrderRobotTaskRequest
|
|
284
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
285
|
+
* @returns CancelOrderRobotTaskResponse
|
|
286
|
+
*/
|
|
287
|
+
async cancelOrderRobotTaskWithOptions(request: $_model.CancelOrderRobotTaskRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CancelOrderRobotTaskResponse> {
|
|
288
|
+
request.validate();
|
|
289
|
+
let query = { };
|
|
290
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
291
|
+
query["OwnerId"] = request.ownerId;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
295
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
299
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
if (!$dara.isNull(request.taskId)) {
|
|
303
|
+
query["TaskId"] = request.taskId;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
307
|
+
query: OpenApiUtil.query(query),
|
|
308
|
+
});
|
|
309
|
+
let params = new $OpenApiUtil.Params({
|
|
310
|
+
action: "CancelOrderRobotTask",
|
|
311
|
+
version: "2017-05-25",
|
|
312
|
+
protocol: "HTTPS",
|
|
313
|
+
pathname: "/",
|
|
314
|
+
method: "POST",
|
|
315
|
+
authType: "AK",
|
|
316
|
+
style: "RPC",
|
|
317
|
+
reqBodyType: "formData",
|
|
318
|
+
bodyType: "json",
|
|
319
|
+
});
|
|
320
|
+
return $dara.cast<$_model.CancelOrderRobotTaskResponse>(await this.callApi(params, req, runtime), new $_model.CancelOrderRobotTaskResponse({}));
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Cancels a robocall task that has not been started.
|
|
325
|
+
*
|
|
326
|
+
* @remarks
|
|
327
|
+
* ### QPS limits
|
|
328
|
+
* You can call this operation up to 100 times per second per account.
|
|
329
|
+
*
|
|
330
|
+
* @param request - CancelOrderRobotTaskRequest
|
|
331
|
+
* @returns CancelOrderRobotTaskResponse
|
|
332
|
+
*/
|
|
333
|
+
async cancelOrderRobotTask(request: $_model.CancelOrderRobotTaskRequest): Promise<$_model.CancelOrderRobotTaskResponse> {
|
|
334
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
335
|
+
return await this.cancelOrderRobotTaskWithOptions(request, runtime);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Terminates a robocall task.
|
|
340
|
+
*
|
|
341
|
+
* @remarks
|
|
342
|
+
* Only a task in progress can be terminated by calling the CancelRobotTask operation, and the task cannot be resumed after it is terminated.
|
|
343
|
+
* ### QPS limits
|
|
344
|
+
* You can call this operation up to 100 times per second per account.
|
|
345
|
+
*
|
|
346
|
+
* @param request - CancelRobotTaskRequest
|
|
347
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
348
|
+
* @returns CancelRobotTaskResponse
|
|
349
|
+
*/
|
|
350
|
+
async cancelRobotTaskWithOptions(request: $_model.CancelRobotTaskRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CancelRobotTaskResponse> {
|
|
351
|
+
request.validate();
|
|
352
|
+
let query = { };
|
|
353
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
354
|
+
query["OwnerId"] = request.ownerId;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
358
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
362
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
if (!$dara.isNull(request.taskId)) {
|
|
366
|
+
query["TaskId"] = request.taskId;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
370
|
+
query: OpenApiUtil.query(query),
|
|
371
|
+
});
|
|
372
|
+
let params = new $OpenApiUtil.Params({
|
|
373
|
+
action: "CancelRobotTask",
|
|
374
|
+
version: "2017-05-25",
|
|
375
|
+
protocol: "HTTPS",
|
|
376
|
+
pathname: "/",
|
|
377
|
+
method: "POST",
|
|
378
|
+
authType: "AK",
|
|
379
|
+
style: "RPC",
|
|
380
|
+
reqBodyType: "formData",
|
|
381
|
+
bodyType: "json",
|
|
382
|
+
});
|
|
383
|
+
return $dara.cast<$_model.CancelRobotTaskResponse>(await this.callApi(params, req, runtime), new $_model.CancelRobotTaskResponse({}));
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Terminates a robocall task.
|
|
388
|
+
*
|
|
389
|
+
* @remarks
|
|
390
|
+
* Only a task in progress can be terminated by calling the CancelRobotTask operation, and the task cannot be resumed after it is terminated.
|
|
391
|
+
* ### QPS limits
|
|
392
|
+
* You can call this operation up to 100 times per second per account.
|
|
393
|
+
*
|
|
394
|
+
* @param request - CancelRobotTaskRequest
|
|
395
|
+
* @returns CancelRobotTaskResponse
|
|
396
|
+
*/
|
|
397
|
+
async cancelRobotTask(request: $_model.CancelRobotTaskRequest): Promise<$_model.CancelRobotTaskResponse> {
|
|
398
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
399
|
+
return await this.cancelRobotTaskWithOptions(request, runtime);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* ChangeMediaType
|
|
404
|
+
*
|
|
405
|
+
* @param request - ChangeMediaTypeRequest
|
|
406
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
407
|
+
* @returns ChangeMediaTypeResponse
|
|
408
|
+
*/
|
|
409
|
+
async changeMediaTypeWithOptions(request: $_model.ChangeMediaTypeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ChangeMediaTypeResponse> {
|
|
410
|
+
request.validate();
|
|
411
|
+
let query = { };
|
|
412
|
+
if (!$dara.isNull(request.callId)) {
|
|
413
|
+
query["CallId"] = request.callId;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
if (!$dara.isNull(request.calledNum)) {
|
|
417
|
+
query["CalledNum"] = request.calledNum;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
if (!$dara.isNull(request.mediaType)) {
|
|
421
|
+
query["MediaType"] = request.mediaType;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
if (!$dara.isNull(request.outId)) {
|
|
425
|
+
query["OutId"] = request.outId;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
429
|
+
query["OwnerId"] = request.ownerId;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
433
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
437
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
441
|
+
query: OpenApiUtil.query(query),
|
|
442
|
+
});
|
|
443
|
+
let params = new $OpenApiUtil.Params({
|
|
444
|
+
action: "ChangeMediaType",
|
|
445
|
+
version: "2017-05-25",
|
|
446
|
+
protocol: "HTTPS",
|
|
447
|
+
pathname: "/",
|
|
448
|
+
method: "POST",
|
|
449
|
+
authType: "AK",
|
|
450
|
+
style: "RPC",
|
|
451
|
+
reqBodyType: "formData",
|
|
452
|
+
bodyType: "json",
|
|
453
|
+
});
|
|
454
|
+
return $dara.cast<$_model.ChangeMediaTypeResponse>(await this.callApi(params, req, runtime), new $_model.ChangeMediaTypeResponse({}));
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* ChangeMediaType
|
|
459
|
+
*
|
|
460
|
+
* @param request - ChangeMediaTypeRequest
|
|
461
|
+
* @returns ChangeMediaTypeResponse
|
|
462
|
+
*/
|
|
463
|
+
async changeMediaType(request: $_model.ChangeMediaTypeRequest): Promise<$_model.ChangeMediaTypeResponse> {
|
|
464
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
465
|
+
return await this.changeMediaTypeWithOptions(request, runtime);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* 座席新增
|
|
470
|
+
*
|
|
471
|
+
* @param request - CloudCreateAgentRequest
|
|
472
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
473
|
+
* @returns CloudCreateAgentResponse
|
|
474
|
+
*/
|
|
475
|
+
async cloudCreateAgentWithOptions(request: $_model.CloudCreateAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CloudCreateAgentResponse> {
|
|
476
|
+
request.validate();
|
|
477
|
+
let query = { };
|
|
478
|
+
if (!$dara.isNull(request.active)) {
|
|
479
|
+
query["Active"] = request.active;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
if (!$dara.isNull(request.areaCode)) {
|
|
483
|
+
query["AreaCode"] = request.areaCode;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
if (!$dara.isNull(request.callPower)) {
|
|
487
|
+
query["CallPower"] = request.callPower;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
if (!$dara.isNull(request.cno)) {
|
|
491
|
+
query["Cno"] = request.cno;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
if (!$dara.isNull(request.comment)) {
|
|
495
|
+
query["Comment"] = request.comment;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
if (!$dara.isNull(request.enterpriseId)) {
|
|
499
|
+
query["EnterpriseId"] = request.enterpriseId;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
if (!$dara.isNull(request.ibRecord)) {
|
|
503
|
+
query["IbRecord"] = request.ibRecord;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
if (!$dara.isNull(request.isAsr)) {
|
|
507
|
+
query["IsAsr"] = request.isAsr;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
if (!$dara.isNull(request.isOb)) {
|
|
511
|
+
query["IsOb"] = request.isOb;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
if (!$dara.isNull(request.isObRemember)) {
|
|
515
|
+
query["IsObRemember"] = request.isObRemember;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
if (!$dara.isNull(request.isQualityCheck)) {
|
|
519
|
+
query["IsQualityCheck"] = request.isQualityCheck;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
if (!$dara.isNull(request.name)) {
|
|
523
|
+
query["Name"] = request.name;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
if (!$dara.isNull(request.obClid)) {
|
|
527
|
+
query["ObClid"] = request.obClid;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
if (!$dara.isNull(request.obClidProperty)) {
|
|
531
|
+
query["ObClidProperty"] = request.obClidProperty;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
if (!$dara.isNull(request.obClidType)) {
|
|
535
|
+
query["ObClidType"] = request.obClidType;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
if (!$dara.isNull(request.obRecord)) {
|
|
539
|
+
query["ObRecord"] = request.obRecord;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
543
|
+
query["OwnerId"] = request.ownerId;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
if (!$dara.isNull(request.permitObPreviewTime)) {
|
|
547
|
+
query["PermitObPreviewTime"] = request.permitObPreviewTime;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
if (!$dara.isNull(request.power)) {
|
|
551
|
+
query["Power"] = request.power;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
555
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
559
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
if (!$dara.isNull(request.skillIds)) {
|
|
563
|
+
query["SkillIds"] = request.skillIds;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
if (!$dara.isNull(request.skillLevels)) {
|
|
567
|
+
query["SkillLevels"] = request.skillLevels;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
if (!$dara.isNull(request.webrtcUrlType)) {
|
|
571
|
+
query["WebrtcUrlType"] = request.webrtcUrlType;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
if (!$dara.isNull(request.wrapup)) {
|
|
575
|
+
query["Wrapup"] = request.wrapup;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
579
|
+
query: OpenApiUtil.query(query),
|
|
580
|
+
});
|
|
581
|
+
let params = new $OpenApiUtil.Params({
|
|
582
|
+
action: "CloudCreateAgent",
|
|
583
|
+
version: "2017-05-25",
|
|
584
|
+
protocol: "HTTPS",
|
|
585
|
+
pathname: "/",
|
|
586
|
+
method: "POST",
|
|
587
|
+
authType: "AK",
|
|
588
|
+
style: "RPC",
|
|
589
|
+
reqBodyType: "formData",
|
|
590
|
+
bodyType: "json",
|
|
591
|
+
});
|
|
592
|
+
return $dara.cast<$_model.CloudCreateAgentResponse>(await this.callApi(params, req, runtime), new $_model.CloudCreateAgentResponse({}));
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* 座席新增
|
|
597
|
+
*
|
|
598
|
+
* @param request - CloudCreateAgentRequest
|
|
599
|
+
* @returns CloudCreateAgentResponse
|
|
600
|
+
*/
|
|
601
|
+
async cloudCreateAgent(request: $_model.CloudCreateAgentRequest): Promise<$_model.CloudCreateAgentResponse> {
|
|
602
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
603
|
+
return await this.cloudCreateAgentWithOptions(request, runtime);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* 新增任务
|
|
608
|
+
*
|
|
609
|
+
* @param request - CloudCreateTaskRequest
|
|
610
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
611
|
+
* @returns CloudCreateTaskResponse
|
|
612
|
+
*/
|
|
613
|
+
async cloudCreateTaskWithOptions(request: $_model.CloudCreateTaskRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CloudCreateTaskResponse> {
|
|
614
|
+
request.validate();
|
|
615
|
+
let query = { };
|
|
616
|
+
if (!$dara.isNull(request.agentGroup)) {
|
|
617
|
+
query["AgentGroup"] = request.agentGroup;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
if (!$dara.isNull(request.agentTimeout)) {
|
|
621
|
+
query["AgentTimeout"] = request.agentTimeout;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
if (!$dara.isNull(request.answerRate)) {
|
|
625
|
+
query["AnswerRate"] = request.answerRate;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
if (!$dara.isNull(request.autoComplete)) {
|
|
629
|
+
query["AutoComplete"] = request.autoComplete;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
if (!$dara.isNull(request.autoDelete)) {
|
|
633
|
+
query["AutoDelete"] = request.autoDelete;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
if (!$dara.isNull(request.autoStart)) {
|
|
637
|
+
query["AutoStart"] = request.autoStart;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
if (!$dara.isNull(request.autoStartDay)) {
|
|
641
|
+
query["AutoStartDay"] = request.autoStartDay;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
if (!$dara.isNull(request.autoStartTime)) {
|
|
645
|
+
query["AutoStartTime"] = request.autoStartTime;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
if (!$dara.isNull(request.autoStop)) {
|
|
649
|
+
query["AutoStop"] = request.autoStop;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
if (!$dara.isNull(request.autoStopDay)) {
|
|
653
|
+
query["AutoStopDay"] = request.autoStopDay;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
if (!$dara.isNull(request.autoStopTime)) {
|
|
657
|
+
query["AutoStopTime"] = request.autoStopTime;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
if (!$dara.isNull(request.autoTaskType)) {
|
|
661
|
+
query["AutoTaskType"] = request.autoTaskType;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
if (!$dara.isNull(request.autoTriggerTimeStrategy)) {
|
|
665
|
+
query["AutoTriggerTimeStrategy"] = request.autoTriggerTimeStrategy;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
if (!$dara.isNull(request.callGroupType)) {
|
|
669
|
+
query["CallGroupType"] = request.callGroupType;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
if (!$dara.isNull(request.callLimitStrategy)) {
|
|
673
|
+
query["CallLimitStrategy"] = request.callLimitStrategy;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
if (!$dara.isNull(request.callPriorityStrategy)) {
|
|
677
|
+
query["CallPriorityStrategy"] = request.callPriorityStrategy;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
if (!$dara.isNull(request.callRouteStrategy)) {
|
|
681
|
+
query["CallRouteStrategy"] = request.callRouteStrategy;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
if (!$dara.isNull(request.callStrategy)) {
|
|
685
|
+
query["CallStrategy"] = request.callStrategy;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
if (!$dara.isNull(request.callVariables)) {
|
|
689
|
+
query["CallVariables"] = request.callVariables;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
if (!$dara.isNull(request.clidProperty)) {
|
|
693
|
+
query["ClidProperty"] = request.clidProperty;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
if (!$dara.isNull(request.cnos)) {
|
|
697
|
+
query["Cnos"] = request.cnos;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
if (!$dara.isNull(request.concurrency)) {
|
|
701
|
+
query["Concurrency"] = request.concurrency;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
if (!$dara.isNull(request.customerClidType)) {
|
|
705
|
+
query["CustomerClidType"] = request.customerClidType;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
if (!$dara.isNull(request.customerClidWeight)) {
|
|
709
|
+
query["CustomerClidWeight"] = request.customerClidWeight;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
if (!$dara.isNull(request.customerClidWeightFlag)) {
|
|
713
|
+
query["CustomerClidWeightFlag"] = request.customerClidWeightFlag;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
if (!$dara.isNull(request.customerClids)) {
|
|
717
|
+
query["CustomerClids"] = request.customerClids;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
if (!$dara.isNull(request.customerClidsCategory)) {
|
|
721
|
+
query["CustomerClidsCategory"] = request.customerClidsCategory;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
if (!$dara.isNull(request.customerClidsGroup)) {
|
|
725
|
+
query["CustomerClidsGroup"] = request.customerClidsGroup;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
if (!$dara.isNull(request.customerMoh)) {
|
|
729
|
+
query["CustomerMoh"] = request.customerMoh;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
if (!$dara.isNull(request.customerTimeout)) {
|
|
733
|
+
query["CustomerTimeout"] = request.customerTimeout;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
if (!$dara.isNull(request.customerVoice)) {
|
|
737
|
+
query["CustomerVoice"] = request.customerVoice;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
if (!$dara.isNull(request.description)) {
|
|
741
|
+
query["Description"] = request.description;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
if (!$dara.isNull(request.enterpriseId)) {
|
|
745
|
+
query["EnterpriseId"] = request.enterpriseId;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
if (!$dara.isNull(request.forceEndFlag)) {
|
|
749
|
+
query["ForceEndFlag"] = request.forceEndFlag;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
if (!$dara.isNull(request.isRewarm)) {
|
|
753
|
+
query["IsRewarm"] = request.isRewarm;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
if (!$dara.isNull(request.ivrId)) {
|
|
757
|
+
query["IvrId"] = request.ivrId;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
if (!$dara.isNull(request.ivrName)) {
|
|
761
|
+
query["IvrName"] = request.ivrName;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
if (!$dara.isNull(request.maxWaitTime)) {
|
|
765
|
+
query["MaxWaitTime"] = request.maxWaitTime;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
if (!$dara.isNull(request.minAvailableAgentCount)) {
|
|
769
|
+
query["MinAvailableAgentCount"] = request.minAvailableAgentCount;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
if (!$dara.isNull(request.name)) {
|
|
773
|
+
query["Name"] = request.name;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
777
|
+
query["OwnerId"] = request.ownerId;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
if (!$dara.isNull(request.predictAdjust)) {
|
|
781
|
+
query["PredictAdjust"] = request.predictAdjust;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
if (!$dara.isNull(request.quotiety)) {
|
|
785
|
+
query["Quotiety"] = request.quotiety;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
789
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
793
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
if (!$dara.isNull(request.retryStrategy)) {
|
|
797
|
+
query["RetryStrategy"] = request.retryStrategy;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
if (!$dara.isNull(request.retryStrategyOnlyToday)) {
|
|
801
|
+
query["RetryStrategyOnlyToday"] = request.retryStrategyOnlyToday;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
if (!$dara.isNull(request.retryStrategyTimeType)) {
|
|
805
|
+
query["RetryStrategyTimeType"] = request.retryStrategyTimeType;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
if (!$dara.isNull(request.templateName)) {
|
|
809
|
+
query["TemplateName"] = request.templateName;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
if (!$dara.isNull(request.timeStrategy)) {
|
|
813
|
+
query["TimeStrategy"] = request.timeStrategy;
|
|
236
814
|
}
|
|
237
815
|
|
|
238
|
-
if (!$dara.isNull(request.
|
|
239
|
-
query["
|
|
816
|
+
if (!$dara.isNull(request.type)) {
|
|
817
|
+
query["Type"] = request.type;
|
|
240
818
|
}
|
|
241
819
|
|
|
242
|
-
if (!$dara.isNull(request.
|
|
243
|
-
query["
|
|
820
|
+
if (!$dara.isNull(request.userFields)) {
|
|
821
|
+
query["UserFields"] = request.userFields;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
if (!$dara.isNull(request.warmUpDuration)) {
|
|
825
|
+
query["WarmUpDuration"] = request.warmUpDuration;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
if (!$dara.isNull(request.wrapup)) {
|
|
829
|
+
query["Wrapup"] = request.wrapup;
|
|
244
830
|
}
|
|
245
831
|
|
|
246
832
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
247
833
|
query: OpenApiUtil.query(query),
|
|
248
834
|
});
|
|
249
835
|
let params = new $OpenApiUtil.Params({
|
|
250
|
-
action: "
|
|
836
|
+
action: "CloudCreateTask",
|
|
251
837
|
version: "2017-05-25",
|
|
252
838
|
protocol: "HTTPS",
|
|
253
839
|
pathname: "/",
|
|
@@ -257,36 +843,72 @@ export default class Client extends OpenApi {
|
|
|
257
843
|
reqBodyType: "formData",
|
|
258
844
|
bodyType: "json",
|
|
259
845
|
});
|
|
260
|
-
return $dara.cast<$_model.
|
|
846
|
+
return $dara.cast<$_model.CloudCreateTaskResponse>(await this.callApi(params, req, runtime), new $_model.CloudCreateTaskResponse({}));
|
|
261
847
|
}
|
|
262
848
|
|
|
263
849
|
/**
|
|
264
|
-
*
|
|
265
|
-
*
|
|
850
|
+
* 新增任务
|
|
851
|
+
*
|
|
852
|
+
* @param request - CloudCreateTaskRequest
|
|
853
|
+
* @returns CloudCreateTaskResponse
|
|
266
854
|
*/
|
|
267
|
-
async
|
|
855
|
+
async cloudCreateTask(request: $_model.CloudCreateTaskRequest): Promise<$_model.CloudCreateTaskResponse> {
|
|
268
856
|
let runtime = new $dara.RuntimeOptions({ });
|
|
269
|
-
return await this.
|
|
857
|
+
return await this.cloudCreateTaskWithOptions(request, runtime);
|
|
270
858
|
}
|
|
271
859
|
|
|
272
860
|
/**
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
* @remarks
|
|
276
|
-
* ### QPS limits
|
|
277
|
-
* You can call this operation up to 100 times per second per account.
|
|
861
|
+
* 任务号码导入
|
|
278
862
|
*
|
|
279
|
-
* @param
|
|
863
|
+
* @param tmpReq - CloudImportTaskTelRequest
|
|
280
864
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
281
|
-
* @returns
|
|
865
|
+
* @returns CloudImportTaskTelResponse
|
|
282
866
|
*/
|
|
283
|
-
async
|
|
284
|
-
|
|
867
|
+
async cloudImportTaskTelWithOptions(tmpReq: $_model.CloudImportTaskTelRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CloudImportTaskTelResponse> {
|
|
868
|
+
tmpReq.validate();
|
|
869
|
+
let request = new $_model.CloudImportTaskTelShrinkRequest({ });
|
|
870
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
871
|
+
if (!$dara.isNull(tmpReq.taskTelList)) {
|
|
872
|
+
request.taskTelListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.taskTelList, "TaskTelList", "json");
|
|
873
|
+
}
|
|
874
|
+
|
|
285
875
|
let query = { };
|
|
876
|
+
if (!$dara.isNull(request.bridgeVoicePath)) {
|
|
877
|
+
query["BridgeVoicePath"] = request.bridgeVoicePath;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
if (!$dara.isNull(request.bridgeVoiceType)) {
|
|
881
|
+
query["BridgeVoiceType"] = request.bridgeVoiceType;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
if (!$dara.isNull(request.enterpriseId)) {
|
|
885
|
+
query["EnterpriseId"] = request.enterpriseId;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
if (!$dara.isNull(request.fileId)) {
|
|
889
|
+
query["FileId"] = request.fileId;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
if (!$dara.isNull(request.importTelAutoStart)) {
|
|
893
|
+
query["ImportTelAutoStart"] = request.importTelAutoStart;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
if (!$dara.isNull(request.isRepeat)) {
|
|
897
|
+
query["IsRepeat"] = request.isRepeat;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
if (!$dara.isNull(request.name)) {
|
|
901
|
+
query["Name"] = request.name;
|
|
902
|
+
}
|
|
903
|
+
|
|
286
904
|
if (!$dara.isNull(request.ownerId)) {
|
|
287
905
|
query["OwnerId"] = request.ownerId;
|
|
288
906
|
}
|
|
289
907
|
|
|
908
|
+
if (!$dara.isNull(request.priority)) {
|
|
909
|
+
query["Priority"] = request.priority;
|
|
910
|
+
}
|
|
911
|
+
|
|
290
912
|
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
291
913
|
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
292
914
|
}
|
|
@@ -299,11 +921,15 @@ export default class Client extends OpenApi {
|
|
|
299
921
|
query["TaskId"] = request.taskId;
|
|
300
922
|
}
|
|
301
923
|
|
|
924
|
+
if (!$dara.isNull(request.taskTelListShrink)) {
|
|
925
|
+
query["TaskTelList"] = request.taskTelListShrink;
|
|
926
|
+
}
|
|
927
|
+
|
|
302
928
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
303
929
|
query: OpenApiUtil.query(query),
|
|
304
930
|
});
|
|
305
931
|
let params = new $OpenApiUtil.Params({
|
|
306
|
-
action: "
|
|
932
|
+
action: "CloudImportTaskTel",
|
|
307
933
|
version: "2017-05-25",
|
|
308
934
|
protocol: "HTTPS",
|
|
309
935
|
pathname: "/",
|
|
@@ -313,39 +939,34 @@ export default class Client extends OpenApi {
|
|
|
313
939
|
reqBodyType: "formData",
|
|
314
940
|
bodyType: "json",
|
|
315
941
|
});
|
|
316
|
-
return $dara.cast<$_model.
|
|
942
|
+
return $dara.cast<$_model.CloudImportTaskTelResponse>(await this.callApi(params, req, runtime), new $_model.CloudImportTaskTelResponse({}));
|
|
317
943
|
}
|
|
318
944
|
|
|
319
945
|
/**
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
* @remarks
|
|
323
|
-
* ### QPS limits
|
|
324
|
-
* You can call this operation up to 100 times per second per account.
|
|
946
|
+
* 任务号码导入
|
|
325
947
|
*
|
|
326
|
-
* @param request -
|
|
327
|
-
* @returns
|
|
948
|
+
* @param request - CloudImportTaskTelRequest
|
|
949
|
+
* @returns CloudImportTaskTelResponse
|
|
328
950
|
*/
|
|
329
|
-
async
|
|
951
|
+
async cloudImportTaskTel(request: $_model.CloudImportTaskTelRequest): Promise<$_model.CloudImportTaskTelResponse> {
|
|
330
952
|
let runtime = new $dara.RuntimeOptions({ });
|
|
331
|
-
return await this.
|
|
953
|
+
return await this.cloudImportTaskTelWithOptions(request, runtime);
|
|
332
954
|
}
|
|
333
955
|
|
|
334
956
|
/**
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
* @remarks
|
|
338
|
-
* Only a task in progress can be terminated by calling the CancelRobotTask operation, and the task cannot be resumed after it is terminated.
|
|
339
|
-
* ### QPS limits
|
|
340
|
-
* You can call this operation up to 100 times per second per account.
|
|
957
|
+
* 任务启动
|
|
341
958
|
*
|
|
342
|
-
* @param request -
|
|
959
|
+
* @param request - CloudStartTaskRequest
|
|
343
960
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
344
|
-
* @returns
|
|
961
|
+
* @returns CloudStartTaskResponse
|
|
345
962
|
*/
|
|
346
|
-
async
|
|
963
|
+
async cloudStartTaskWithOptions(request: $_model.CloudStartTaskRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CloudStartTaskResponse> {
|
|
347
964
|
request.validate();
|
|
348
965
|
let query = { };
|
|
966
|
+
if (!$dara.isNull(request.enterpriseId)) {
|
|
967
|
+
query["EnterpriseId"] = request.enterpriseId;
|
|
968
|
+
}
|
|
969
|
+
|
|
349
970
|
if (!$dara.isNull(request.ownerId)) {
|
|
350
971
|
query["OwnerId"] = request.ownerId;
|
|
351
972
|
}
|
|
@@ -366,7 +987,7 @@ export default class Client extends OpenApi {
|
|
|
366
987
|
query: OpenApiUtil.query(query),
|
|
367
988
|
});
|
|
368
989
|
let params = new $OpenApiUtil.Params({
|
|
369
|
-
action: "
|
|
990
|
+
action: "CloudStartTask",
|
|
370
991
|
version: "2017-05-25",
|
|
371
992
|
protocol: "HTTPS",
|
|
372
993
|
pathname: "/",
|
|
@@ -376,55 +997,194 @@ export default class Client extends OpenApi {
|
|
|
376
997
|
reqBodyType: "formData",
|
|
377
998
|
bodyType: "json",
|
|
378
999
|
});
|
|
379
|
-
return $dara.cast<$_model.
|
|
1000
|
+
return $dara.cast<$_model.CloudStartTaskResponse>(await this.callApi(params, req, runtime), new $_model.CloudStartTaskResponse({}));
|
|
380
1001
|
}
|
|
381
1002
|
|
|
382
1003
|
/**
|
|
383
|
-
*
|
|
384
|
-
*
|
|
385
|
-
* @remarks
|
|
386
|
-
* Only a task in progress can be terminated by calling the CancelRobotTask operation, and the task cannot be resumed after it is terminated.
|
|
387
|
-
* ### QPS limits
|
|
388
|
-
* You can call this operation up to 100 times per second per account.
|
|
1004
|
+
* 任务启动
|
|
389
1005
|
*
|
|
390
|
-
* @param request -
|
|
391
|
-
* @returns
|
|
1006
|
+
* @param request - CloudStartTaskRequest
|
|
1007
|
+
* @returns CloudStartTaskResponse
|
|
392
1008
|
*/
|
|
393
|
-
async
|
|
1009
|
+
async cloudStartTask(request: $_model.CloudStartTaskRequest): Promise<$_model.CloudStartTaskResponse> {
|
|
394
1010
|
let runtime = new $dara.RuntimeOptions({ });
|
|
395
|
-
return await this.
|
|
1011
|
+
return await this.cloudStartTaskWithOptions(request, runtime);
|
|
396
1012
|
}
|
|
397
1013
|
|
|
398
1014
|
/**
|
|
399
|
-
*
|
|
1015
|
+
* 更新任务
|
|
400
1016
|
*
|
|
401
|
-
* @param request -
|
|
1017
|
+
* @param request - CloudUpdateTaskRequest
|
|
402
1018
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
403
|
-
* @returns
|
|
1019
|
+
* @returns CloudUpdateTaskResponse
|
|
404
1020
|
*/
|
|
405
|
-
async
|
|
1021
|
+
async cloudUpdateTaskWithOptions(request: $_model.CloudUpdateTaskRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CloudUpdateTaskResponse> {
|
|
406
1022
|
request.validate();
|
|
407
1023
|
let query = { };
|
|
408
|
-
if (!$dara.isNull(request.
|
|
409
|
-
query["
|
|
1024
|
+
if (!$dara.isNull(request.agentGroup)) {
|
|
1025
|
+
query["AgentGroup"] = request.agentGroup;
|
|
410
1026
|
}
|
|
411
1027
|
|
|
412
|
-
if (!$dara.isNull(request.
|
|
413
|
-
query["
|
|
1028
|
+
if (!$dara.isNull(request.agentTimeout)) {
|
|
1029
|
+
query["AgentTimeout"] = request.agentTimeout;
|
|
414
1030
|
}
|
|
415
1031
|
|
|
416
|
-
if (!$dara.isNull(request.
|
|
417
|
-
query["
|
|
1032
|
+
if (!$dara.isNull(request.answerRate)) {
|
|
1033
|
+
query["AnswerRate"] = request.answerRate;
|
|
418
1034
|
}
|
|
419
1035
|
|
|
420
|
-
if (!$dara.isNull(request.
|
|
421
|
-
query["
|
|
1036
|
+
if (!$dara.isNull(request.autoComplete)) {
|
|
1037
|
+
query["AutoComplete"] = request.autoComplete;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
if (!$dara.isNull(request.autoStart)) {
|
|
1041
|
+
query["AutoStart"] = request.autoStart;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
if (!$dara.isNull(request.autoStartDay)) {
|
|
1045
|
+
query["AutoStartDay"] = request.autoStartDay;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
if (!$dara.isNull(request.autoStartTime)) {
|
|
1049
|
+
query["AutoStartTime"] = request.autoStartTime;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
if (!$dara.isNull(request.autoStop)) {
|
|
1053
|
+
query["AutoStop"] = request.autoStop;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
if (!$dara.isNull(request.autoStopDay)) {
|
|
1057
|
+
query["AutoStopDay"] = request.autoStopDay;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
if (!$dara.isNull(request.autoStopTime)) {
|
|
1061
|
+
query["AutoStopTime"] = request.autoStopTime;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
if (!$dara.isNull(request.autoTaskType)) {
|
|
1065
|
+
query["AutoTaskType"] = request.autoTaskType;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
if (!$dara.isNull(request.autoTriggerTimeStrategy)) {
|
|
1069
|
+
query["AutoTriggerTimeStrategy"] = request.autoTriggerTimeStrategy;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
if (!$dara.isNull(request.callLimitStrategy)) {
|
|
1073
|
+
query["CallLimitStrategy"] = request.callLimitStrategy;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
if (!$dara.isNull(request.callPriorityStrategy)) {
|
|
1077
|
+
query["CallPriorityStrategy"] = request.callPriorityStrategy;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
if (!$dara.isNull(request.callRouteStrategy)) {
|
|
1081
|
+
query["CallRouteStrategy"] = request.callRouteStrategy;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
if (!$dara.isNull(request.callStrategy)) {
|
|
1085
|
+
query["CallStrategy"] = request.callStrategy;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
if (!$dara.isNull(request.callVariables)) {
|
|
1089
|
+
query["CallVariables"] = request.callVariables;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
if (!$dara.isNull(request.clidProperty)) {
|
|
1093
|
+
query["ClidProperty"] = request.clidProperty;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
if (!$dara.isNull(request.cnos)) {
|
|
1097
|
+
query["Cnos"] = request.cnos;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
if (!$dara.isNull(request.concurrency)) {
|
|
1101
|
+
query["Concurrency"] = request.concurrency;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
if (!$dara.isNull(request.customerClidType)) {
|
|
1105
|
+
query["CustomerClidType"] = request.customerClidType;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
if (!$dara.isNull(request.customerClidWeight)) {
|
|
1109
|
+
query["CustomerClidWeight"] = request.customerClidWeight;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
if (!$dara.isNull(request.customerClidWeightFlag)) {
|
|
1113
|
+
query["CustomerClidWeightFlag"] = request.customerClidWeightFlag;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
if (!$dara.isNull(request.customerClids)) {
|
|
1117
|
+
query["CustomerClids"] = request.customerClids;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
if (!$dara.isNull(request.customerClidsCategory)) {
|
|
1121
|
+
query["CustomerClidsCategory"] = request.customerClidsCategory;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
if (!$dara.isNull(request.customerClidsGroup)) {
|
|
1125
|
+
query["CustomerClidsGroup"] = request.customerClidsGroup;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
if (!$dara.isNull(request.customerMoh)) {
|
|
1129
|
+
query["CustomerMoh"] = request.customerMoh;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
if (!$dara.isNull(request.customerTimeout)) {
|
|
1133
|
+
query["CustomerTimeout"] = request.customerTimeout;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
if (!$dara.isNull(request.customerVoice)) {
|
|
1137
|
+
query["CustomerVoice"] = request.customerVoice;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
if (!$dara.isNull(request.description)) {
|
|
1141
|
+
query["Description"] = request.description;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
if (!$dara.isNull(request.enterpriseId)) {
|
|
1145
|
+
query["EnterpriseId"] = request.enterpriseId;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
if (!$dara.isNull(request.forceEndFlag)) {
|
|
1149
|
+
query["ForceEndFlag"] = request.forceEndFlag;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
if (!$dara.isNull(request.isRewarm)) {
|
|
1153
|
+
query["IsRewarm"] = request.isRewarm;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
if (!$dara.isNull(request.ivrId)) {
|
|
1157
|
+
query["IvrId"] = request.ivrId;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
if (!$dara.isNull(request.ivrName)) {
|
|
1161
|
+
query["IvrName"] = request.ivrName;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
if (!$dara.isNull(request.maxWaitTime)) {
|
|
1165
|
+
query["MaxWaitTime"] = request.maxWaitTime;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
if (!$dara.isNull(request.minAvailableAgentCount)) {
|
|
1169
|
+
query["MinAvailableAgentCount"] = request.minAvailableAgentCount;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
if (!$dara.isNull(request.name)) {
|
|
1173
|
+
query["Name"] = request.name;
|
|
422
1174
|
}
|
|
423
1175
|
|
|
424
1176
|
if (!$dara.isNull(request.ownerId)) {
|
|
425
1177
|
query["OwnerId"] = request.ownerId;
|
|
426
1178
|
}
|
|
427
1179
|
|
|
1180
|
+
if (!$dara.isNull(request.predictAdjust)) {
|
|
1181
|
+
query["PredictAdjust"] = request.predictAdjust;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
if (!$dara.isNull(request.quotiety)) {
|
|
1185
|
+
query["Quotiety"] = request.quotiety;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
428
1188
|
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
429
1189
|
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
430
1190
|
}
|
|
@@ -433,11 +1193,43 @@ export default class Client extends OpenApi {
|
|
|
433
1193
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
434
1194
|
}
|
|
435
1195
|
|
|
1196
|
+
if (!$dara.isNull(request.retryStrategy)) {
|
|
1197
|
+
query["RetryStrategy"] = request.retryStrategy;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
if (!$dara.isNull(request.retryStrategyOnlyToday)) {
|
|
1201
|
+
query["RetryStrategyOnlyToday"] = request.retryStrategyOnlyToday;
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
if (!$dara.isNull(request.retryStrategyTimeType)) {
|
|
1205
|
+
query["RetryStrategyTimeType"] = request.retryStrategyTimeType;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
if (!$dara.isNull(request.taskId)) {
|
|
1209
|
+
query["TaskId"] = request.taskId;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
if (!$dara.isNull(request.timeStrategy)) {
|
|
1213
|
+
query["TimeStrategy"] = request.timeStrategy;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
if (!$dara.isNull(request.userFields)) {
|
|
1217
|
+
query["UserFields"] = request.userFields;
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
if (!$dara.isNull(request.warmUpDuration)) {
|
|
1221
|
+
query["WarmUpDuration"] = request.warmUpDuration;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
if (!$dara.isNull(request.wrapup)) {
|
|
1225
|
+
query["Wrapup"] = request.wrapup;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
436
1228
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
437
1229
|
query: OpenApiUtil.query(query),
|
|
438
1230
|
});
|
|
439
1231
|
let params = new $OpenApiUtil.Params({
|
|
440
|
-
action: "
|
|
1232
|
+
action: "CloudUpdateTask",
|
|
441
1233
|
version: "2017-05-25",
|
|
442
1234
|
protocol: "HTTPS",
|
|
443
1235
|
pathname: "/",
|
|
@@ -447,22 +1239,22 @@ export default class Client extends OpenApi {
|
|
|
447
1239
|
reqBodyType: "formData",
|
|
448
1240
|
bodyType: "json",
|
|
449
1241
|
});
|
|
450
|
-
return $dara.cast<$_model.
|
|
1242
|
+
return $dara.cast<$_model.CloudUpdateTaskResponse>(await this.callApi(params, req, runtime), new $_model.CloudUpdateTaskResponse({}));
|
|
451
1243
|
}
|
|
452
1244
|
|
|
453
1245
|
/**
|
|
454
|
-
*
|
|
1246
|
+
* 更新任务
|
|
455
1247
|
*
|
|
456
|
-
* @param request -
|
|
457
|
-
* @returns
|
|
1248
|
+
* @param request - CloudUpdateTaskRequest
|
|
1249
|
+
* @returns CloudUpdateTaskResponse
|
|
458
1250
|
*/
|
|
459
|
-
async
|
|
1251
|
+
async cloudUpdateTask(request: $_model.CloudUpdateTaskRequest): Promise<$_model.CloudUpdateTaskResponse> {
|
|
460
1252
|
let runtime = new $dara.RuntimeOptions({ });
|
|
461
|
-
return await this.
|
|
1253
|
+
return await this.cloudUpdateTaskWithOptions(request, runtime);
|
|
462
1254
|
}
|
|
463
1255
|
|
|
464
1256
|
/**
|
|
465
|
-
*
|
|
1257
|
+
* 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.
|
|
466
1258
|
*
|
|
467
1259
|
* @remarks
|
|
468
1260
|
* You can create up to 1,000 voice notifications for each task.
|
|
@@ -550,7 +1342,7 @@ export default class Client extends OpenApi {
|
|
|
550
1342
|
}
|
|
551
1343
|
|
|
552
1344
|
/**
|
|
553
|
-
*
|
|
1345
|
+
* 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.
|
|
554
1346
|
*
|
|
555
1347
|
* @remarks
|
|
556
1348
|
* You can create up to 1,000 voice notifications for each task.
|
|
@@ -666,7 +1458,7 @@ export default class Client extends OpenApi {
|
|
|
666
1458
|
}
|
|
667
1459
|
|
|
668
1460
|
/**
|
|
669
|
-
*
|
|
1461
|
+
* Downgrades from a video call to a voice call.
|
|
670
1462
|
*
|
|
671
1463
|
* @param request - DegradeVideoFileRequest
|
|
672
1464
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -721,7 +1513,7 @@ export default class Client extends OpenApi {
|
|
|
721
1513
|
}
|
|
722
1514
|
|
|
723
1515
|
/**
|
|
724
|
-
*
|
|
1516
|
+
* Downgrades from a video call to a voice call.
|
|
725
1517
|
*
|
|
726
1518
|
* @param request - DegradeVideoFileRequest
|
|
727
1519
|
* @returns DegradeVideoFileResponse
|
|
@@ -866,7 +1658,7 @@ export default class Client extends OpenApi {
|
|
|
866
1658
|
}
|
|
867
1659
|
|
|
868
1660
|
/**
|
|
869
|
-
*
|
|
1661
|
+
* Obtains the call type during a call.
|
|
870
1662
|
*
|
|
871
1663
|
* @param request - GetCallMediaTypeRequest
|
|
872
1664
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -913,7 +1705,7 @@ export default class Client extends OpenApi {
|
|
|
913
1705
|
}
|
|
914
1706
|
|
|
915
1707
|
/**
|
|
916
|
-
*
|
|
1708
|
+
* Obtains the call type during a call.
|
|
917
1709
|
*
|
|
918
1710
|
* @param request - GetCallMediaTypeRequest
|
|
919
1711
|
* @returns GetCallMediaTypeResponse
|
|
@@ -1044,7 +1836,7 @@ export default class Client extends OpenApi {
|
|
|
1044
1836
|
}
|
|
1045
1837
|
|
|
1046
1838
|
/**
|
|
1047
|
-
*
|
|
1839
|
+
* Obtains a temporary URL of a video or audio file. You can view the video or audio file immediately by using this temporary URL.
|
|
1048
1840
|
*
|
|
1049
1841
|
* @param request - GetTemporaryFileUrlRequest
|
|
1050
1842
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1087,7 +1879,7 @@ export default class Client extends OpenApi {
|
|
|
1087
1879
|
}
|
|
1088
1880
|
|
|
1089
1881
|
/**
|
|
1090
|
-
*
|
|
1882
|
+
* Obtains a temporary URL of a video or audio file. You can view the video or audio file immediately by using this temporary URL.
|
|
1091
1883
|
*
|
|
1092
1884
|
* @param request - GetTemporaryFileUrlRequest
|
|
1093
1885
|
* @returns GetTemporaryFileUrlResponse
|
|
@@ -1318,7 +2110,7 @@ export default class Client extends OpenApi {
|
|
|
1318
2110
|
}
|
|
1319
2111
|
|
|
1320
2112
|
/**
|
|
1321
|
-
* Queries task
|
|
2113
|
+
* 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.
|
|
1322
2114
|
*
|
|
1323
2115
|
* @remarks
|
|
1324
2116
|
* ### QPS limits
|
|
@@ -1389,7 +2181,7 @@ export default class Client extends OpenApi {
|
|
|
1389
2181
|
}
|
|
1390
2182
|
|
|
1391
2183
|
/**
|
|
1392
|
-
* Queries task
|
|
2184
|
+
* 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.
|
|
1393
2185
|
*
|
|
1394
2186
|
* @remarks
|
|
1395
2187
|
* ### QPS limits
|
|
@@ -1404,7 +2196,7 @@ export default class Client extends OpenApi {
|
|
|
1404
2196
|
}
|
|
1405
2197
|
|
|
1406
2198
|
/**
|
|
1407
|
-
* Queries the
|
|
2199
|
+
* Queries the details of call tasks based on task IDs after call tasks are complete.
|
|
1408
2200
|
*
|
|
1409
2201
|
* @remarks
|
|
1410
2202
|
* ### QPS limits
|
|
@@ -1467,7 +2259,7 @@ export default class Client extends OpenApi {
|
|
|
1467
2259
|
}
|
|
1468
2260
|
|
|
1469
2261
|
/**
|
|
1470
|
-
* Queries the
|
|
2262
|
+
* Queries the details of call tasks based on task IDs after call tasks are complete.
|
|
1471
2263
|
*
|
|
1472
2264
|
* @remarks
|
|
1473
2265
|
* ### QPS limits
|
|
@@ -1632,7 +2424,7 @@ export default class Client extends OpenApi {
|
|
|
1632
2424
|
}
|
|
1633
2425
|
|
|
1634
2426
|
/**
|
|
1635
|
-
*
|
|
2427
|
+
* Pauses video playback when a video file is played back during a voice call.
|
|
1636
2428
|
*
|
|
1637
2429
|
* @param request - PauseVideoFileRequest
|
|
1638
2430
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1679,7 +2471,7 @@ export default class Client extends OpenApi {
|
|
|
1679
2471
|
}
|
|
1680
2472
|
|
|
1681
2473
|
/**
|
|
1682
|
-
*
|
|
2474
|
+
* Pauses video playback when a video file is played back during a voice call.
|
|
1683
2475
|
*
|
|
1684
2476
|
* @param request - PauseVideoFileRequest
|
|
1685
2477
|
* @returns PauseVideoFileResponse
|
|
@@ -1690,7 +2482,7 @@ export default class Client extends OpenApi {
|
|
|
1690
2482
|
}
|
|
1691
2483
|
|
|
1692
2484
|
/**
|
|
1693
|
-
*
|
|
2485
|
+
* Plays back a video file during a voice call.
|
|
1694
2486
|
*
|
|
1695
2487
|
* @param request - PlayVideoFileRequest
|
|
1696
2488
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1749,7 +2541,7 @@ export default class Client extends OpenApi {
|
|
|
1749
2541
|
}
|
|
1750
2542
|
|
|
1751
2543
|
/**
|
|
1752
|
-
*
|
|
2544
|
+
* Plays back a video file during a voice call.
|
|
1753
2545
|
*
|
|
1754
2546
|
* @param request - PlayVideoFileRequest
|
|
1755
2547
|
* @returns PlayVideoFileResponse
|
|
@@ -2034,7 +2826,7 @@ export default class Client extends OpenApi {
|
|
|
2034
2826
|
}
|
|
2035
2827
|
|
|
2036
2828
|
/**
|
|
2037
|
-
* Queries a list of robots.
|
|
2829
|
+
* Queries a list of robots to obtain their details.
|
|
2038
2830
|
*
|
|
2039
2831
|
* @param request - QueryRobotInfoListRequest
|
|
2040
2832
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2077,7 +2869,7 @@ export default class Client extends OpenApi {
|
|
|
2077
2869
|
}
|
|
2078
2870
|
|
|
2079
2871
|
/**
|
|
2080
|
-
* Queries a list of robots.
|
|
2872
|
+
* Queries a list of robots to obtain their details.
|
|
2081
2873
|
*
|
|
2082
2874
|
* @param request - QueryRobotInfoListRequest
|
|
2083
2875
|
* @returns QueryRobotInfoListResponse
|
|
@@ -2088,7 +2880,7 @@ export default class Client extends OpenApi {
|
|
|
2088
2880
|
}
|
|
2089
2881
|
|
|
2090
2882
|
/**
|
|
2091
|
-
* Queries the call details of a called number
|
|
2883
|
+
* Queries the call details of a called number.
|
|
2092
2884
|
*
|
|
2093
2885
|
* @remarks
|
|
2094
2886
|
* ### QPS limits
|
|
@@ -2143,7 +2935,7 @@ export default class Client extends OpenApi {
|
|
|
2143
2935
|
}
|
|
2144
2936
|
|
|
2145
2937
|
/**
|
|
2146
|
-
* Queries the call details of a called number
|
|
2938
|
+
* Queries the call details of a called number.
|
|
2147
2939
|
*
|
|
2148
2940
|
* @remarks
|
|
2149
2941
|
* ### QPS limits
|
|
@@ -2454,7 +3246,7 @@ export default class Client extends OpenApi {
|
|
|
2454
3246
|
}
|
|
2455
3247
|
|
|
2456
3248
|
/**
|
|
2457
|
-
*
|
|
3249
|
+
* Queries the video playback progress after you play a video file during a voice call.
|
|
2458
3250
|
*
|
|
2459
3251
|
* @param request - QueryVideoPlayProgressRequest
|
|
2460
3252
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2501,7 +3293,7 @@ export default class Client extends OpenApi {
|
|
|
2501
3293
|
}
|
|
2502
3294
|
|
|
2503
3295
|
/**
|
|
2504
|
-
*
|
|
3296
|
+
* Queries the video playback progress after you play a video file during a voice call.
|
|
2505
3297
|
*
|
|
2506
3298
|
* @param request - QueryVideoPlayProgressRequest
|
|
2507
3299
|
* @returns QueryVideoPlayProgressResponse
|
|
@@ -2512,81 +3304,7 @@ export default class Client extends OpenApi {
|
|
|
2512
3304
|
}
|
|
2513
3305
|
|
|
2514
3306
|
/**
|
|
2515
|
-
*
|
|
2516
|
-
*
|
|
2517
|
-
* @remarks
|
|
2518
|
-
* ### QPS limits
|
|
2519
|
-
* You can call this operation up to 100 times per second per account.
|
|
2520
|
-
*
|
|
2521
|
-
* @param request - QueryVirtualNumberRequest
|
|
2522
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
2523
|
-
* @returns QueryVirtualNumberResponse
|
|
2524
|
-
*/
|
|
2525
|
-
async queryVirtualNumberWithOptions(request: $_model.QueryVirtualNumberRequest, runtime: $dara.RuntimeOptions): Promise<$_model.QueryVirtualNumberResponse> {
|
|
2526
|
-
request.validate();
|
|
2527
|
-
let query = { };
|
|
2528
|
-
if (!$dara.isNull(request.ownerId)) {
|
|
2529
|
-
query["OwnerId"] = request.ownerId;
|
|
2530
|
-
}
|
|
2531
|
-
|
|
2532
|
-
if (!$dara.isNull(request.pageNo)) {
|
|
2533
|
-
query["PageNo"] = request.pageNo;
|
|
2534
|
-
}
|
|
2535
|
-
|
|
2536
|
-
if (!$dara.isNull(request.pageSize)) {
|
|
2537
|
-
query["PageSize"] = request.pageSize;
|
|
2538
|
-
}
|
|
2539
|
-
|
|
2540
|
-
if (!$dara.isNull(request.prodCode)) {
|
|
2541
|
-
query["ProdCode"] = request.prodCode;
|
|
2542
|
-
}
|
|
2543
|
-
|
|
2544
|
-
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2545
|
-
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2546
|
-
}
|
|
2547
|
-
|
|
2548
|
-
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
2549
|
-
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2550
|
-
}
|
|
2551
|
-
|
|
2552
|
-
if (!$dara.isNull(request.routeType)) {
|
|
2553
|
-
query["RouteType"] = request.routeType;
|
|
2554
|
-
}
|
|
2555
|
-
|
|
2556
|
-
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2557
|
-
query: OpenApiUtil.query(query),
|
|
2558
|
-
});
|
|
2559
|
-
let params = new $OpenApiUtil.Params({
|
|
2560
|
-
action: "QueryVirtualNumber",
|
|
2561
|
-
version: "2017-05-25",
|
|
2562
|
-
protocol: "HTTPS",
|
|
2563
|
-
pathname: "/",
|
|
2564
|
-
method: "POST",
|
|
2565
|
-
authType: "AK",
|
|
2566
|
-
style: "RPC",
|
|
2567
|
-
reqBodyType: "formData",
|
|
2568
|
-
bodyType: "json",
|
|
2569
|
-
});
|
|
2570
|
-
return $dara.cast<$_model.QueryVirtualNumberResponse>(await this.callApi(params, req, runtime), new $_model.QueryVirtualNumberResponse({}));
|
|
2571
|
-
}
|
|
2572
|
-
|
|
2573
|
-
/**
|
|
2574
|
-
* Queries a list of virtual numbers.
|
|
2575
|
-
*
|
|
2576
|
-
* @remarks
|
|
2577
|
-
* ### QPS limits
|
|
2578
|
-
* You can call this operation up to 100 times per second per account.
|
|
2579
|
-
*
|
|
2580
|
-
* @param request - QueryVirtualNumberRequest
|
|
2581
|
-
* @returns QueryVirtualNumberResponse
|
|
2582
|
-
*/
|
|
2583
|
-
async queryVirtualNumber(request: $_model.QueryVirtualNumberRequest): Promise<$_model.QueryVirtualNumberResponse> {
|
|
2584
|
-
let runtime = new $dara.RuntimeOptions({ });
|
|
2585
|
-
return await this.queryVirtualNumberWithOptions(request, runtime);
|
|
2586
|
-
}
|
|
2587
|
-
|
|
2588
|
-
/**
|
|
2589
|
-
* Queries a list of associations between virtual numbers and real numbers.
|
|
3307
|
+
* 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.
|
|
2590
3308
|
*
|
|
2591
3309
|
* @remarks
|
|
2592
3310
|
* ### QPS limits
|
|
@@ -2665,7 +3383,7 @@ export default class Client extends OpenApi {
|
|
|
2665
3383
|
}
|
|
2666
3384
|
|
|
2667
3385
|
/**
|
|
2668
|
-
*
|
|
3386
|
+
* 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.
|
|
2669
3387
|
*
|
|
2670
3388
|
* @remarks
|
|
2671
3389
|
* ### QPS limits
|
|
@@ -2932,7 +3650,7 @@ export default class Client extends OpenApi {
|
|
|
2932
3650
|
}
|
|
2933
3651
|
|
|
2934
3652
|
/**
|
|
2935
|
-
*
|
|
3653
|
+
* Resumes video playback after you pause video playback during a voice call.
|
|
2936
3654
|
*
|
|
2937
3655
|
* @param request - ResumeVideoFileRequest
|
|
2938
3656
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2979,7 +3697,7 @@ export default class Client extends OpenApi {
|
|
|
2979
3697
|
}
|
|
2980
3698
|
|
|
2981
3699
|
/**
|
|
2982
|
-
*
|
|
3700
|
+
* Resumes video playback after you pause video playback during a voice call.
|
|
2983
3701
|
*
|
|
2984
3702
|
* @param request - ResumeVideoFileRequest
|
|
2985
3703
|
* @returns ResumeVideoFileResponse
|
|
@@ -3290,7 +4008,7 @@ export default class Client extends OpenApi {
|
|
|
3290
4008
|
}
|
|
3291
4009
|
|
|
3292
4010
|
/**
|
|
3293
|
-
*
|
|
4011
|
+
* Sends voice file notifications or video file notifications to a single called number.
|
|
3294
4012
|
*
|
|
3295
4013
|
* @param request - SingleCallByVideoRequest
|
|
3296
4014
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3361,7 +4079,7 @@ export default class Client extends OpenApi {
|
|
|
3361
4079
|
}
|
|
3362
4080
|
|
|
3363
4081
|
/**
|
|
3364
|
-
*
|
|
4082
|
+
* Sends voice file notifications or video file notifications to a single called number.
|
|
3365
4083
|
*
|
|
3366
4084
|
* @param request - SingleCallByVideoRequest
|
|
3367
4085
|
* @returns SingleCallByVideoResponse
|
|
@@ -3462,7 +4180,7 @@ export default class Client extends OpenApi {
|
|
|
3462
4180
|
}
|
|
3463
4181
|
|
|
3464
4182
|
/**
|
|
3465
|
-
*
|
|
4183
|
+
* Fast forwards or rewinds a video when you play the video.
|
|
3466
4184
|
*
|
|
3467
4185
|
* @param request - SkipVideoFileRequest
|
|
3468
4186
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3517,7 +4235,7 @@ export default class Client extends OpenApi {
|
|
|
3517
4235
|
}
|
|
3518
4236
|
|
|
3519
4237
|
/**
|
|
3520
|
-
*
|
|
4238
|
+
* Fast forwards or rewinds a video when you play the video.
|
|
3521
4239
|
*
|
|
3522
4240
|
* @param request - SkipVideoFileRequest
|
|
3523
4241
|
* @returns SkipVideoFileResponse
|
|
@@ -3956,7 +4674,7 @@ export default class Client extends OpenApi {
|
|
|
3956
4674
|
}
|
|
3957
4675
|
|
|
3958
4676
|
/**
|
|
3959
|
-
* Submits a
|
|
4677
|
+
* Submits a 400 number for registration.
|
|
3960
4678
|
*
|
|
3961
4679
|
* @remarks
|
|
3962
4680
|
* ### QPS limits
|
|
@@ -4039,7 +4757,7 @@ export default class Client extends OpenApi {
|
|
|
4039
4757
|
}
|
|
4040
4758
|
|
|
4041
4759
|
/**
|
|
4042
|
-
* Submits a
|
|
4760
|
+
* Submits a 400 number for registration.
|
|
4043
4761
|
*
|
|
4044
4762
|
* @remarks
|
|
4045
4763
|
* ### QPS limits
|
|
@@ -4054,7 +4772,7 @@ export default class Client extends OpenApi {
|
|
|
4054
4772
|
}
|
|
4055
4773
|
|
|
4056
4774
|
/**
|
|
4057
|
-
*
|
|
4775
|
+
* Upgrades from a voice call to a video call.
|
|
4058
4776
|
*
|
|
4059
4777
|
* @param request - UpgradeVideoFileRequest
|
|
4060
4778
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4109,7 +4827,7 @@ export default class Client extends OpenApi {
|
|
|
4109
4827
|
}
|
|
4110
4828
|
|
|
4111
4829
|
/**
|
|
4112
|
-
*
|
|
4830
|
+
* Upgrades from a voice call to a video call.
|
|
4113
4831
|
*
|
|
4114
4832
|
* @param request - UpgradeVideoFileRequest
|
|
4115
4833
|
* @returns UpgradeVideoFileResponse
|