@alicloud/ccc20200701 2.4.0 → 2.4.1

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/ccc20200701",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -3753,6 +3753,81 @@ export class HoldCallResponse extends $tea.Model {
3753
3753
  }
3754
3754
  }
3755
3755
 
3756
+ export class ImportAdminsRequest extends $tea.Model {
3757
+ instanceId?: string;
3758
+ ramIdList?: string;
3759
+ static names(): { [key: string]: string } {
3760
+ return {
3761
+ instanceId: 'InstanceId',
3762
+ ramIdList: 'RamIdList',
3763
+ };
3764
+ }
3765
+
3766
+ static types(): { [key: string]: any } {
3767
+ return {
3768
+ instanceId: 'string',
3769
+ ramIdList: 'string',
3770
+ };
3771
+ }
3772
+
3773
+ constructor(map?: { [key: string]: any }) {
3774
+ super(map);
3775
+ }
3776
+ }
3777
+
3778
+ export class ImportAdminsResponseBody extends $tea.Model {
3779
+ code?: string;
3780
+ data?: ImportAdminsResponseBodyData[];
3781
+ httpStatusCode?: number;
3782
+ message?: string;
3783
+ requestId?: string;
3784
+ static names(): { [key: string]: string } {
3785
+ return {
3786
+ code: 'Code',
3787
+ data: 'Data',
3788
+ httpStatusCode: 'HttpStatusCode',
3789
+ message: 'Message',
3790
+ requestId: 'RequestId',
3791
+ };
3792
+ }
3793
+
3794
+ static types(): { [key: string]: any } {
3795
+ return {
3796
+ code: 'string',
3797
+ data: { 'type': 'array', 'itemType': ImportAdminsResponseBodyData },
3798
+ httpStatusCode: 'number',
3799
+ message: 'string',
3800
+ requestId: 'string',
3801
+ };
3802
+ }
3803
+
3804
+ constructor(map?: { [key: string]: any }) {
3805
+ super(map);
3806
+ }
3807
+ }
3808
+
3809
+ export class ImportAdminsResponse extends $tea.Model {
3810
+ headers: { [key: string]: string };
3811
+ body: ImportAdminsResponseBody;
3812
+ static names(): { [key: string]: string } {
3813
+ return {
3814
+ headers: 'headers',
3815
+ body: 'body',
3816
+ };
3817
+ }
3818
+
3819
+ static types(): { [key: string]: any } {
3820
+ return {
3821
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3822
+ body: ImportAdminsResponseBody,
3823
+ };
3824
+ }
3825
+
3826
+ constructor(map?: { [key: string]: any }) {
3827
+ super(map);
3828
+ }
3829
+ }
3830
+
3756
3831
  export class ImportCustomCallTaggingRequest extends $tea.Model {
3757
3832
  filePath?: string;
3758
3833
  instanceId?: string;
@@ -4094,6 +4169,7 @@ export class InterceptCallResponse extends $tea.Model {
4094
4169
 
4095
4170
  export class LaunchAuthenticationRequest extends $tea.Model {
4096
4171
  contactFlowId?: string;
4172
+ contactFlowVariables?: string;
4097
4173
  deviceId?: string;
4098
4174
  instanceId?: string;
4099
4175
  jobId?: string;
@@ -4101,6 +4177,7 @@ export class LaunchAuthenticationRequest extends $tea.Model {
4101
4177
  static names(): { [key: string]: string } {
4102
4178
  return {
4103
4179
  contactFlowId: 'ContactFlowId',
4180
+ contactFlowVariables: 'ContactFlowVariables',
4104
4181
  deviceId: 'DeviceId',
4105
4182
  instanceId: 'InstanceId',
4106
4183
  jobId: 'JobId',
@@ -4111,6 +4188,7 @@ export class LaunchAuthenticationRequest extends $tea.Model {
4111
4188
  static types(): { [key: string]: any } {
4112
4189
  return {
4113
4190
  contactFlowId: 'string',
4191
+ contactFlowVariables: 'string',
4114
4192
  deviceId: 'string',
4115
4193
  instanceId: 'string',
4116
4194
  jobId: 'string',
@@ -4181,16 +4259,22 @@ export class LaunchAuthenticationResponse extends $tea.Model {
4181
4259
 
4182
4260
  export class LaunchSurveyRequest extends $tea.Model {
4183
4261
  contactFlowId?: string;
4262
+ contactFlowVariables?: string;
4184
4263
  deviceId?: string;
4185
4264
  instanceId?: string;
4186
4265
  jobId?: string;
4266
+ smsMetadataId?: string;
4267
+ surveyChannel?: string;
4187
4268
  userId?: string;
4188
4269
  static names(): { [key: string]: string } {
4189
4270
  return {
4190
4271
  contactFlowId: 'ContactFlowId',
4272
+ contactFlowVariables: 'ContactFlowVariables',
4191
4273
  deviceId: 'DeviceId',
4192
4274
  instanceId: 'InstanceId',
4193
4275
  jobId: 'JobId',
4276
+ smsMetadataId: 'SmsMetadataId',
4277
+ surveyChannel: 'SurveyChannel',
4194
4278
  userId: 'UserId',
4195
4279
  };
4196
4280
  }
@@ -4198,9 +4282,12 @@ export class LaunchSurveyRequest extends $tea.Model {
4198
4282
  static types(): { [key: string]: any } {
4199
4283
  return {
4200
4284
  contactFlowId: 'string',
4285
+ contactFlowVariables: 'string',
4201
4286
  deviceId: 'string',
4202
4287
  instanceId: 'string',
4203
4288
  jobId: 'string',
4289
+ smsMetadataId: 'string',
4290
+ surveyChannel: 'string',
4204
4291
  userId: 'string',
4205
4292
  };
4206
4293
  }
@@ -9642,8 +9729,7 @@ export class RemovePhoneNumbersRequest extends $tea.Model {
9642
9729
 
9643
9730
  export class RemovePhoneNumbersResponseBody extends $tea.Model {
9644
9731
  code?: string;
9645
- data?: string;
9646
- failureList?: string[];
9732
+ data?: string[];
9647
9733
  httpStatusCode?: number;
9648
9734
  message?: string;
9649
9735
  params?: string[];
@@ -9652,7 +9738,6 @@ export class RemovePhoneNumbersResponseBody extends $tea.Model {
9652
9738
  return {
9653
9739
  code: 'Code',
9654
9740
  data: 'Data',
9655
- failureList: 'FailureList',
9656
9741
  httpStatusCode: 'HttpStatusCode',
9657
9742
  message: 'Message',
9658
9743
  params: 'Params',
@@ -9663,8 +9748,7 @@ export class RemovePhoneNumbersResponseBody extends $tea.Model {
9663
9748
  static types(): { [key: string]: any } {
9664
9749
  return {
9665
9750
  code: 'string',
9666
- data: 'string',
9667
- failureList: { 'type': 'array', 'itemType': 'string' },
9751
+ data: { 'type': 'array', 'itemType': 'string' },
9668
9752
  httpStatusCode: 'number',
9669
9753
  message: 'string',
9670
9754
  params: { 'type': 'array', 'itemType': 'string' },
@@ -14297,6 +14381,37 @@ export class HoldCallResponseBodyData extends $tea.Model {
14297
14381
  }
14298
14382
  }
14299
14383
 
14384
+ export class ImportAdminsResponseBodyData extends $tea.Model {
14385
+ extension?: string;
14386
+ instanceId?: string;
14387
+ ramId?: string;
14388
+ roleId?: string;
14389
+ userId?: string;
14390
+ static names(): { [key: string]: string } {
14391
+ return {
14392
+ extension: 'Extension',
14393
+ instanceId: 'InstanceId',
14394
+ ramId: 'RamId',
14395
+ roleId: 'RoleId',
14396
+ userId: 'UserId',
14397
+ };
14398
+ }
14399
+
14400
+ static types(): { [key: string]: any } {
14401
+ return {
14402
+ extension: 'string',
14403
+ instanceId: 'string',
14404
+ ramId: 'string',
14405
+ roleId: 'string',
14406
+ userId: 'string',
14407
+ };
14408
+ }
14409
+
14410
+ constructor(map?: { [key: string]: any }) {
14411
+ super(map);
14412
+ }
14413
+ }
14414
+
14300
14415
  export class ImportCustomCallTaggingResponseBodyData extends $tea.Model {
14301
14416
  item?: string;
14302
14417
  reason?: string;
@@ -18441,6 +18556,7 @@ export class ListMonoRecordingsResponseBodyData extends $tea.Model {
18441
18556
  }
18442
18557
 
18443
18558
  export class ListMultiChannelRecordingsResponseBodyData extends $tea.Model {
18559
+ agentChannelId?: string;
18444
18560
  agentId?: string;
18445
18561
  agentName?: string;
18446
18562
  contactId?: string;
@@ -18452,6 +18568,7 @@ export class ListMultiChannelRecordingsResponseBodyData extends $tea.Model {
18452
18568
  startTime?: number;
18453
18569
  static names(): { [key: string]: string } {
18454
18570
  return {
18571
+ agentChannelId: 'AgentChannelId',
18455
18572
  agentId: 'AgentId',
18456
18573
  agentName: 'AgentName',
18457
18574
  contactId: 'ContactId',
@@ -18466,6 +18583,7 @@ export class ListMultiChannelRecordingsResponseBodyData extends $tea.Model {
18466
18583
 
18467
18584
  static types(): { [key: string]: any } {
18468
18585
  return {
18586
+ agentChannelId: 'string',
18469
18587
  agentId: 'string',
18470
18588
  agentName: 'string',
18471
18589
  contactId: 'string',
@@ -23725,6 +23843,39 @@ export default class Client extends OpenApi {
23725
23843
  return await this.holdCallWithOptions(request, runtime);
23726
23844
  }
23727
23845
 
23846
+ async importAdminsWithOptions(request: ImportAdminsRequest, runtime: $Util.RuntimeOptions): Promise<ImportAdminsResponse> {
23847
+ Util.validateModel(request);
23848
+ let query = { };
23849
+ if (!Util.isUnset(request.instanceId)) {
23850
+ query["InstanceId"] = request.instanceId;
23851
+ }
23852
+
23853
+ if (!Util.isUnset(request.ramIdList)) {
23854
+ query["RamIdList"] = request.ramIdList;
23855
+ }
23856
+
23857
+ let req = new $OpenApi.OpenApiRequest({
23858
+ query: OpenApiUtil.query(query),
23859
+ });
23860
+ let params = new $OpenApi.Params({
23861
+ action: "ImportAdmins",
23862
+ version: "2020-07-01",
23863
+ protocol: "HTTPS",
23864
+ pathname: "/",
23865
+ method: "POST",
23866
+ authType: "AK",
23867
+ style: "RPC",
23868
+ reqBodyType: "formData",
23869
+ bodyType: "json",
23870
+ });
23871
+ return $tea.cast<ImportAdminsResponse>(await this.callApi(params, req, runtime), new ImportAdminsResponse({}));
23872
+ }
23873
+
23874
+ async importAdmins(request: ImportAdminsRequest): Promise<ImportAdminsResponse> {
23875
+ let runtime = new $Util.RuntimeOptions({ });
23876
+ return await this.importAdminsWithOptions(request, runtime);
23877
+ }
23878
+
23728
23879
  async importCustomCallTaggingWithOptions(request: ImportCustomCallTaggingRequest, runtime: $Util.RuntimeOptions): Promise<ImportCustomCallTaggingResponse> {
23729
23880
  Util.validateModel(request);
23730
23881
  let query = { };
@@ -23908,6 +24059,10 @@ export default class Client extends OpenApi {
23908
24059
  query["ContactFlowId"] = request.contactFlowId;
23909
24060
  }
23910
24061
 
24062
+ if (!Util.isUnset(request.contactFlowVariables)) {
24063
+ query["ContactFlowVariables"] = request.contactFlowVariables;
24064
+ }
24065
+
23911
24066
  if (!Util.isUnset(request.deviceId)) {
23912
24067
  query["DeviceId"] = request.deviceId;
23913
24068
  }
@@ -23953,6 +24108,10 @@ export default class Client extends OpenApi {
23953
24108
  query["ContactFlowId"] = request.contactFlowId;
23954
24109
  }
23955
24110
 
24111
+ if (!Util.isUnset(request.contactFlowVariables)) {
24112
+ query["ContactFlowVariables"] = request.contactFlowVariables;
24113
+ }
24114
+
23956
24115
  if (!Util.isUnset(request.deviceId)) {
23957
24116
  query["DeviceId"] = request.deviceId;
23958
24117
  }
@@ -23965,6 +24124,14 @@ export default class Client extends OpenApi {
23965
24124
  query["JobId"] = request.jobId;
23966
24125
  }
23967
24126
 
24127
+ if (!Util.isUnset(request.smsMetadataId)) {
24128
+ query["SmsMetadataId"] = request.smsMetadataId;
24129
+ }
24130
+
24131
+ if (!Util.isUnset(request.surveyChannel)) {
24132
+ query["SurveyChannel"] = request.surveyChannel;
24133
+ }
24134
+
23968
24135
  if (!Util.isUnset(request.userId)) {
23969
24136
  query["UserId"] = request.userId;
23970
24137
  }