@alicloud/dyvmsapi20170525 2.1.2 → 2.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/dyvmsapi20170525",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -284,84 +284,6 @@ export class BatchRobotSmartCallResponse extends $tea.Model {
284
284
  }
285
285
  }
286
286
 
287
- export class CancelCallRequest extends $tea.Model {
288
- callId?: string;
289
- ownerId?: number;
290
- resourceOwnerAccount?: string;
291
- resourceOwnerId?: number;
292
- static names(): { [key: string]: string } {
293
- return {
294
- callId: 'CallId',
295
- ownerId: 'OwnerId',
296
- resourceOwnerAccount: 'ResourceOwnerAccount',
297
- resourceOwnerId: 'ResourceOwnerId',
298
- };
299
- }
300
-
301
- static types(): { [key: string]: any } {
302
- return {
303
- callId: 'string',
304
- ownerId: 'number',
305
- resourceOwnerAccount: 'string',
306
- resourceOwnerId: 'number',
307
- };
308
- }
309
-
310
- constructor(map?: { [key: string]: any }) {
311
- super(map);
312
- }
313
- }
314
-
315
- export class CancelCallResponseBody extends $tea.Model {
316
- code?: string;
317
- message?: string;
318
- requestId?: string;
319
- status?: boolean;
320
- static names(): { [key: string]: string } {
321
- return {
322
- code: 'Code',
323
- message: 'Message',
324
- requestId: 'RequestId',
325
- status: 'Status',
326
- };
327
- }
328
-
329
- static types(): { [key: string]: any } {
330
- return {
331
- code: 'string',
332
- message: 'string',
333
- requestId: 'string',
334
- status: 'boolean',
335
- };
336
- }
337
-
338
- constructor(map?: { [key: string]: any }) {
339
- super(map);
340
- }
341
- }
342
-
343
- export class CancelCallResponse extends $tea.Model {
344
- headers: { [key: string]: string };
345
- body: CancelCallResponseBody;
346
- static names(): { [key: string]: string } {
347
- return {
348
- headers: 'headers',
349
- body: 'body',
350
- };
351
- }
352
-
353
- static types(): { [key: string]: any } {
354
- return {
355
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
356
- body: CancelCallResponseBody,
357
- };
358
- }
359
-
360
- constructor(map?: { [key: string]: any }) {
361
- super(map);
362
- }
363
- }
364
-
365
287
  export class CancelOrderRobotTaskRequest extends $tea.Model {
366
288
  ownerId?: number;
367
289
  resourceOwnerAccount?: string;
@@ -518,108 +440,6 @@ export class CancelRobotTaskResponse extends $tea.Model {
518
440
  }
519
441
  }
520
442
 
521
- export class ClickToDialRequest extends $tea.Model {
522
- asrFlag?: boolean;
523
- asrModelId?: string;
524
- calledNumber?: string;
525
- calledShowNumber?: string;
526
- callerNumber?: string;
527
- callerShowNumber?: string;
528
- outId?: string;
529
- ownerId?: number;
530
- recordFlag?: boolean;
531
- resourceOwnerAccount?: string;
532
- resourceOwnerId?: number;
533
- sessionTimeout?: number;
534
- static names(): { [key: string]: string } {
535
- return {
536
- asrFlag: 'AsrFlag',
537
- asrModelId: 'AsrModelId',
538
- calledNumber: 'CalledNumber',
539
- calledShowNumber: 'CalledShowNumber',
540
- callerNumber: 'CallerNumber',
541
- callerShowNumber: 'CallerShowNumber',
542
- outId: 'OutId',
543
- ownerId: 'OwnerId',
544
- recordFlag: 'RecordFlag',
545
- resourceOwnerAccount: 'ResourceOwnerAccount',
546
- resourceOwnerId: 'ResourceOwnerId',
547
- sessionTimeout: 'SessionTimeout',
548
- };
549
- }
550
-
551
- static types(): { [key: string]: any } {
552
- return {
553
- asrFlag: 'boolean',
554
- asrModelId: 'string',
555
- calledNumber: 'string',
556
- calledShowNumber: 'string',
557
- callerNumber: 'string',
558
- callerShowNumber: 'string',
559
- outId: 'string',
560
- ownerId: 'number',
561
- recordFlag: 'boolean',
562
- resourceOwnerAccount: 'string',
563
- resourceOwnerId: 'number',
564
- sessionTimeout: 'number',
565
- };
566
- }
567
-
568
- constructor(map?: { [key: string]: any }) {
569
- super(map);
570
- }
571
- }
572
-
573
- export class ClickToDialResponseBody extends $tea.Model {
574
- callId?: string;
575
- code?: string;
576
- message?: string;
577
- requestId?: string;
578
- static names(): { [key: string]: string } {
579
- return {
580
- callId: 'CallId',
581
- code: 'Code',
582
- message: 'Message',
583
- requestId: 'RequestId',
584
- };
585
- }
586
-
587
- static types(): { [key: string]: any } {
588
- return {
589
- callId: 'string',
590
- code: 'string',
591
- message: 'string',
592
- requestId: 'string',
593
- };
594
- }
595
-
596
- constructor(map?: { [key: string]: any }) {
597
- super(map);
598
- }
599
- }
600
-
601
- export class ClickToDialResponse extends $tea.Model {
602
- headers: { [key: string]: string };
603
- body: ClickToDialResponseBody;
604
- static names(): { [key: string]: string } {
605
- return {
606
- headers: 'headers',
607
- body: 'body',
608
- };
609
- }
610
-
611
- static types(): { [key: string]: any } {
612
- return {
613
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
614
- body: ClickToDialResponseBody,
615
- };
616
- }
617
-
618
- constructor(map?: { [key: string]: any }) {
619
- super(map);
620
- }
621
- }
622
-
623
443
  export class CreateCallTaskRequest extends $tea.Model {
624
444
  bizType?: string;
625
445
  data?: string;
@@ -2984,6 +2804,84 @@ export class QueryVoiceFileAuditInfoResponse extends $tea.Model {
2984
2804
  }
2985
2805
  }
2986
2806
 
2807
+ export class RecoverCallInConfigRequest extends $tea.Model {
2808
+ number?: string;
2809
+ ownerId?: number;
2810
+ resourceOwnerAccount?: string;
2811
+ resourceOwnerId?: number;
2812
+ static names(): { [key: string]: string } {
2813
+ return {
2814
+ number: 'Number',
2815
+ ownerId: 'OwnerId',
2816
+ resourceOwnerAccount: 'ResourceOwnerAccount',
2817
+ resourceOwnerId: 'ResourceOwnerId',
2818
+ };
2819
+ }
2820
+
2821
+ static types(): { [key: string]: any } {
2822
+ return {
2823
+ number: 'string',
2824
+ ownerId: 'number',
2825
+ resourceOwnerAccount: 'string',
2826
+ resourceOwnerId: 'number',
2827
+ };
2828
+ }
2829
+
2830
+ constructor(map?: { [key: string]: any }) {
2831
+ super(map);
2832
+ }
2833
+ }
2834
+
2835
+ export class RecoverCallInConfigResponseBody extends $tea.Model {
2836
+ code?: string;
2837
+ data?: boolean;
2838
+ message?: string;
2839
+ requestId?: string;
2840
+ static names(): { [key: string]: string } {
2841
+ return {
2842
+ code: 'Code',
2843
+ data: 'Data',
2844
+ message: 'Message',
2845
+ requestId: 'RequestId',
2846
+ };
2847
+ }
2848
+
2849
+ static types(): { [key: string]: any } {
2850
+ return {
2851
+ code: 'string',
2852
+ data: 'boolean',
2853
+ message: 'string',
2854
+ requestId: 'string',
2855
+ };
2856
+ }
2857
+
2858
+ constructor(map?: { [key: string]: any }) {
2859
+ super(map);
2860
+ }
2861
+ }
2862
+
2863
+ export class RecoverCallInConfigResponse extends $tea.Model {
2864
+ headers: { [key: string]: string };
2865
+ body: RecoverCallInConfigResponseBody;
2866
+ static names(): { [key: string]: string } {
2867
+ return {
2868
+ headers: 'headers',
2869
+ body: 'body',
2870
+ };
2871
+ }
2872
+
2873
+ static types(): { [key: string]: any } {
2874
+ return {
2875
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2876
+ body: RecoverCallInConfigResponseBody,
2877
+ };
2878
+ }
2879
+
2880
+ constructor(map?: { [key: string]: any }) {
2881
+ super(map);
2882
+ }
2883
+ }
2884
+
2987
2885
  export class RefreshMqttTokenRequest extends $tea.Model {
2988
2886
  clientId?: string;
2989
2887
  ownerId?: number;
@@ -3746,6 +3644,84 @@ export class StartRobotTaskResponse extends $tea.Model {
3746
3644
  }
3747
3645
  }
3748
3646
 
3647
+ export class StopCallInConfigRequest extends $tea.Model {
3648
+ number?: string;
3649
+ ownerId?: number;
3650
+ resourceOwnerAccount?: string;
3651
+ resourceOwnerId?: number;
3652
+ static names(): { [key: string]: string } {
3653
+ return {
3654
+ number: 'Number',
3655
+ ownerId: 'OwnerId',
3656
+ resourceOwnerAccount: 'ResourceOwnerAccount',
3657
+ resourceOwnerId: 'ResourceOwnerId',
3658
+ };
3659
+ }
3660
+
3661
+ static types(): { [key: string]: any } {
3662
+ return {
3663
+ number: 'string',
3664
+ ownerId: 'number',
3665
+ resourceOwnerAccount: 'string',
3666
+ resourceOwnerId: 'number',
3667
+ };
3668
+ }
3669
+
3670
+ constructor(map?: { [key: string]: any }) {
3671
+ super(map);
3672
+ }
3673
+ }
3674
+
3675
+ export class StopCallInConfigResponseBody extends $tea.Model {
3676
+ code?: string;
3677
+ data?: boolean;
3678
+ message?: string;
3679
+ requestId?: string;
3680
+ static names(): { [key: string]: string } {
3681
+ return {
3682
+ code: 'Code',
3683
+ data: 'Data',
3684
+ message: 'Message',
3685
+ requestId: 'RequestId',
3686
+ };
3687
+ }
3688
+
3689
+ static types(): { [key: string]: any } {
3690
+ return {
3691
+ code: 'string',
3692
+ data: 'boolean',
3693
+ message: 'string',
3694
+ requestId: 'string',
3695
+ };
3696
+ }
3697
+
3698
+ constructor(map?: { [key: string]: any }) {
3699
+ super(map);
3700
+ }
3701
+ }
3702
+
3703
+ export class StopCallInConfigResponse extends $tea.Model {
3704
+ headers: { [key: string]: string };
3705
+ body: StopCallInConfigResponseBody;
3706
+ static names(): { [key: string]: string } {
3707
+ return {
3708
+ headers: 'headers',
3709
+ body: 'body',
3710
+ };
3711
+ }
3712
+
3713
+ static types(): { [key: string]: any } {
3714
+ return {
3715
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3716
+ body: StopCallInConfigResponseBody,
3717
+ };
3718
+ }
3719
+
3720
+ constructor(map?: { [key: string]: any }) {
3721
+ super(map);
3722
+ }
3723
+ }
3724
+
3749
3725
  export class StopRobotTaskRequest extends $tea.Model {
3750
3726
  ownerId?: number;
3751
3727
  resourceOwnerAccount?: string;
@@ -4776,47 +4752,6 @@ export default class Client extends OpenApi {
4776
4752
  return await this.batchRobotSmartCallWithOptions(request, runtime);
4777
4753
  }
4778
4754
 
4779
- async cancelCallWithOptions(request: CancelCallRequest, runtime: $Util.RuntimeOptions): Promise<CancelCallResponse> {
4780
- Util.validateModel(request);
4781
- let query = { };
4782
- if (!Util.isUnset(request.callId)) {
4783
- query["CallId"] = request.callId;
4784
- }
4785
-
4786
- if (!Util.isUnset(request.ownerId)) {
4787
- query["OwnerId"] = request.ownerId;
4788
- }
4789
-
4790
- if (!Util.isUnset(request.resourceOwnerAccount)) {
4791
- query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4792
- }
4793
-
4794
- if (!Util.isUnset(request.resourceOwnerId)) {
4795
- query["ResourceOwnerId"] = request.resourceOwnerId;
4796
- }
4797
-
4798
- let req = new $OpenApi.OpenApiRequest({
4799
- query: OpenApiUtil.query(query),
4800
- });
4801
- let params = new $OpenApi.Params({
4802
- action: "CancelCall",
4803
- version: "2017-05-25",
4804
- protocol: "HTTPS",
4805
- pathname: "/",
4806
- method: "POST",
4807
- authType: "AK",
4808
- style: "RPC",
4809
- reqBodyType: "formData",
4810
- bodyType: "json",
4811
- });
4812
- return $tea.cast<CancelCallResponse>(await this.callApi(params, req, runtime), new CancelCallResponse({}));
4813
- }
4814
-
4815
- async cancelCall(request: CancelCallRequest): Promise<CancelCallResponse> {
4816
- let runtime = new $Util.RuntimeOptions({ });
4817
- return await this.cancelCallWithOptions(request, runtime);
4818
- }
4819
-
4820
4755
  async cancelOrderRobotTaskWithOptions(request: CancelOrderRobotTaskRequest, runtime: $Util.RuntimeOptions): Promise<CancelOrderRobotTaskResponse> {
4821
4756
  Util.validateModel(request);
4822
4757
  let query = { };
@@ -4899,79 +4834,6 @@ export default class Client extends OpenApi {
4899
4834
  return await this.cancelRobotTaskWithOptions(request, runtime);
4900
4835
  }
4901
4836
 
4902
- async clickToDialWithOptions(request: ClickToDialRequest, runtime: $Util.RuntimeOptions): Promise<ClickToDialResponse> {
4903
- Util.validateModel(request);
4904
- let query = { };
4905
- if (!Util.isUnset(request.asrFlag)) {
4906
- query["AsrFlag"] = request.asrFlag;
4907
- }
4908
-
4909
- if (!Util.isUnset(request.asrModelId)) {
4910
- query["AsrModelId"] = request.asrModelId;
4911
- }
4912
-
4913
- if (!Util.isUnset(request.calledNumber)) {
4914
- query["CalledNumber"] = request.calledNumber;
4915
- }
4916
-
4917
- if (!Util.isUnset(request.calledShowNumber)) {
4918
- query["CalledShowNumber"] = request.calledShowNumber;
4919
- }
4920
-
4921
- if (!Util.isUnset(request.callerNumber)) {
4922
- query["CallerNumber"] = request.callerNumber;
4923
- }
4924
-
4925
- if (!Util.isUnset(request.callerShowNumber)) {
4926
- query["CallerShowNumber"] = request.callerShowNumber;
4927
- }
4928
-
4929
- if (!Util.isUnset(request.outId)) {
4930
- query["OutId"] = request.outId;
4931
- }
4932
-
4933
- if (!Util.isUnset(request.ownerId)) {
4934
- query["OwnerId"] = request.ownerId;
4935
- }
4936
-
4937
- if (!Util.isUnset(request.recordFlag)) {
4938
- query["RecordFlag"] = request.recordFlag;
4939
- }
4940
-
4941
- if (!Util.isUnset(request.resourceOwnerAccount)) {
4942
- query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4943
- }
4944
-
4945
- if (!Util.isUnset(request.resourceOwnerId)) {
4946
- query["ResourceOwnerId"] = request.resourceOwnerId;
4947
- }
4948
-
4949
- if (!Util.isUnset(request.sessionTimeout)) {
4950
- query["SessionTimeout"] = request.sessionTimeout;
4951
- }
4952
-
4953
- let req = new $OpenApi.OpenApiRequest({
4954
- query: OpenApiUtil.query(query),
4955
- });
4956
- let params = new $OpenApi.Params({
4957
- action: "ClickToDial",
4958
- version: "2017-05-25",
4959
- protocol: "HTTPS",
4960
- pathname: "/",
4961
- method: "POST",
4962
- authType: "AK",
4963
- style: "RPC",
4964
- reqBodyType: "formData",
4965
- bodyType: "json",
4966
- });
4967
- return $tea.cast<ClickToDialResponse>(await this.callApi(params, req, runtime), new ClickToDialResponse({}));
4968
- }
4969
-
4970
- async clickToDial(request: ClickToDialRequest): Promise<ClickToDialResponse> {
4971
- let runtime = new $Util.RuntimeOptions({ });
4972
- return await this.clickToDialWithOptions(request, runtime);
4973
- }
4974
-
4975
4837
  async createCallTaskWithOptions(request: CreateCallTaskRequest, runtime: $Util.RuntimeOptions): Promise<CreateCallTaskResponse> {
4976
4838
  Util.validateModel(request);
4977
4839
  let query = { };
@@ -6403,6 +6265,47 @@ export default class Client extends OpenApi {
6403
6265
  return await this.queryVoiceFileAuditInfoWithOptions(request, runtime);
6404
6266
  }
6405
6267
 
6268
+ async recoverCallInConfigWithOptions(request: RecoverCallInConfigRequest, runtime: $Util.RuntimeOptions): Promise<RecoverCallInConfigResponse> {
6269
+ Util.validateModel(request);
6270
+ let query = { };
6271
+ if (!Util.isUnset(request.number)) {
6272
+ query["Number"] = request.number;
6273
+ }
6274
+
6275
+ if (!Util.isUnset(request.ownerId)) {
6276
+ query["OwnerId"] = request.ownerId;
6277
+ }
6278
+
6279
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
6280
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
6281
+ }
6282
+
6283
+ if (!Util.isUnset(request.resourceOwnerId)) {
6284
+ query["ResourceOwnerId"] = request.resourceOwnerId;
6285
+ }
6286
+
6287
+ let req = new $OpenApi.OpenApiRequest({
6288
+ query: OpenApiUtil.query(query),
6289
+ });
6290
+ let params = new $OpenApi.Params({
6291
+ action: "RecoverCallInConfig",
6292
+ version: "2017-05-25",
6293
+ protocol: "HTTPS",
6294
+ pathname: "/",
6295
+ method: "POST",
6296
+ authType: "AK",
6297
+ style: "RPC",
6298
+ reqBodyType: "formData",
6299
+ bodyType: "json",
6300
+ });
6301
+ return $tea.cast<RecoverCallInConfigResponse>(await this.callApi(params, req, runtime), new RecoverCallInConfigResponse({}));
6302
+ }
6303
+
6304
+ async recoverCallInConfig(request: RecoverCallInConfigRequest): Promise<RecoverCallInConfigResponse> {
6305
+ let runtime = new $Util.RuntimeOptions({ });
6306
+ return await this.recoverCallInConfigWithOptions(request, runtime);
6307
+ }
6308
+
6406
6309
  async refreshMqttTokenWithOptions(request: RefreshMqttTokenRequest, runtime: $Util.RuntimeOptions): Promise<RefreshMqttTokenResponse> {
6407
6310
  Util.validateModel(request);
6408
6311
  let query = { };
@@ -6915,6 +6818,47 @@ export default class Client extends OpenApi {
6915
6818
  return await this.startRobotTaskWithOptions(request, runtime);
6916
6819
  }
6917
6820
 
6821
+ async stopCallInConfigWithOptions(request: StopCallInConfigRequest, runtime: $Util.RuntimeOptions): Promise<StopCallInConfigResponse> {
6822
+ Util.validateModel(request);
6823
+ let query = { };
6824
+ if (!Util.isUnset(request.number)) {
6825
+ query["Number"] = request.number;
6826
+ }
6827
+
6828
+ if (!Util.isUnset(request.ownerId)) {
6829
+ query["OwnerId"] = request.ownerId;
6830
+ }
6831
+
6832
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
6833
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
6834
+ }
6835
+
6836
+ if (!Util.isUnset(request.resourceOwnerId)) {
6837
+ query["ResourceOwnerId"] = request.resourceOwnerId;
6838
+ }
6839
+
6840
+ let req = new $OpenApi.OpenApiRequest({
6841
+ query: OpenApiUtil.query(query),
6842
+ });
6843
+ let params = new $OpenApi.Params({
6844
+ action: "StopCallInConfig",
6845
+ version: "2017-05-25",
6846
+ protocol: "HTTPS",
6847
+ pathname: "/",
6848
+ method: "POST",
6849
+ authType: "AK",
6850
+ style: "RPC",
6851
+ reqBodyType: "formData",
6852
+ bodyType: "json",
6853
+ });
6854
+ return $tea.cast<StopCallInConfigResponse>(await this.callApi(params, req, runtime), new StopCallInConfigResponse({}));
6855
+ }
6856
+
6857
+ async stopCallInConfig(request: StopCallInConfigRequest): Promise<StopCallInConfigResponse> {
6858
+ let runtime = new $Util.RuntimeOptions({ });
6859
+ return await this.stopCallInConfigWithOptions(request, runtime);
6860
+ }
6861
+
6918
6862
  async stopRobotTaskWithOptions(request: StopRobotTaskRequest, runtime: $Util.RuntimeOptions): Promise<StopRobotTaskResponse> {
6919
6863
  Util.validateModel(request);
6920
6864
  let query = { };