@alicloud/ccc20200701 2.2.1 → 2.3.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 CHANGED
@@ -1062,6 +1062,50 @@ export declare class GetCampaignResponse extends $tea.Model {
1062
1062
  [key: string]: any;
1063
1063
  });
1064
1064
  }
1065
+ export declare class GetCaseFileUploadUrlRequest extends $tea.Model {
1066
+ fileName?: string;
1067
+ instanceId?: string;
1068
+ static names(): {
1069
+ [key: string]: string;
1070
+ };
1071
+ static types(): {
1072
+ [key: string]: any;
1073
+ };
1074
+ constructor(map?: {
1075
+ [key: string]: any;
1076
+ });
1077
+ }
1078
+ export declare class GetCaseFileUploadUrlResponseBody extends $tea.Model {
1079
+ code?: string;
1080
+ data?: GetCaseFileUploadUrlResponseBodyData;
1081
+ httpStatusCode?: number;
1082
+ message?: string;
1083
+ requestId?: string;
1084
+ static names(): {
1085
+ [key: string]: string;
1086
+ };
1087
+ static types(): {
1088
+ [key: string]: any;
1089
+ };
1090
+ constructor(map?: {
1091
+ [key: string]: any;
1092
+ });
1093
+ }
1094
+ export declare class GetCaseFileUploadUrlResponse extends $tea.Model {
1095
+ headers: {
1096
+ [key: string]: string;
1097
+ };
1098
+ body: GetCaseFileUploadUrlResponseBody;
1099
+ static names(): {
1100
+ [key: string]: string;
1101
+ };
1102
+ static types(): {
1103
+ [key: string]: any;
1104
+ };
1105
+ constructor(map?: {
1106
+ [key: string]: any;
1107
+ });
1108
+ }
1065
1109
  export declare class GetHistoricalCallerReportRequest extends $tea.Model {
1066
1110
  callingNumber?: string;
1067
1111
  instanceId?: string;
@@ -4146,6 +4190,52 @@ export declare class RegisterDeviceResponse extends $tea.Model {
4146
4190
  [key: string]: any;
4147
4191
  });
4148
4192
  }
4193
+ export declare class RegisterDevicesRequest extends $tea.Model {
4194
+ deviceId?: string;
4195
+ instanceId?: string;
4196
+ password?: string;
4197
+ userIdListJson?: string;
4198
+ static names(): {
4199
+ [key: string]: string;
4200
+ };
4201
+ static types(): {
4202
+ [key: string]: any;
4203
+ };
4204
+ constructor(map?: {
4205
+ [key: string]: any;
4206
+ });
4207
+ }
4208
+ export declare class RegisterDevicesResponseBody extends $tea.Model {
4209
+ code?: string;
4210
+ httpStatusCode?: number;
4211
+ message?: string;
4212
+ params?: string[];
4213
+ requestId?: string;
4214
+ static names(): {
4215
+ [key: string]: string;
4216
+ };
4217
+ static types(): {
4218
+ [key: string]: any;
4219
+ };
4220
+ constructor(map?: {
4221
+ [key: string]: any;
4222
+ });
4223
+ }
4224
+ export declare class RegisterDevicesResponse extends $tea.Model {
4225
+ headers: {
4226
+ [key: string]: string;
4227
+ };
4228
+ body: RegisterDevicesResponseBody;
4229
+ static names(): {
4230
+ [key: string]: string;
4231
+ };
4232
+ static types(): {
4233
+ [key: string]: any;
4234
+ };
4235
+ constructor(map?: {
4236
+ [key: string]: any;
4237
+ });
4238
+ }
4149
4239
  export declare class ReleaseCallRequest extends $tea.Model {
4150
4240
  channelId?: string;
4151
4241
  deviceId?: string;
@@ -6038,6 +6128,19 @@ export declare class GetCampaignResponseBodyData extends $tea.Model {
6038
6128
  [key: string]: any;
6039
6129
  });
6040
6130
  }
6131
+ export declare class GetCaseFileUploadUrlResponseBodyData extends $tea.Model {
6132
+ caseFileKey?: string;
6133
+ url?: string;
6134
+ static names(): {
6135
+ [key: string]: string;
6136
+ };
6137
+ static types(): {
6138
+ [key: string]: any;
6139
+ };
6140
+ constructor(map?: {
6141
+ [key: string]: any;
6142
+ });
6143
+ }
6041
6144
  export declare class GetHistoricalCallerReportResponseBodyData extends $tea.Model {
6042
6145
  lastCallingTime?: number;
6043
6146
  totalCalls?: number;
@@ -6324,13 +6427,17 @@ export declare class GetInstanceTrendingReportResponseBodyData extends $tea.Mode
6324
6427
  }
6325
6428
  export declare class GetLoginDetailsResponseBodyData extends $tea.Model {
6326
6429
  agentServerUrl?: string;
6430
+ deviceExt?: string;
6327
6431
  deviceId?: string;
6432
+ deviceState?: string;
6328
6433
  displayName?: string;
6329
6434
  extension?: string;
6330
6435
  signature?: string;
6436
+ signature2?: string;
6331
6437
  sipServerUrl?: string;
6332
6438
  userId?: string;
6333
6439
  userKey?: string;
6440
+ userKey2?: string;
6334
6441
  workMode?: string;
6335
6442
  static names(): {
6336
6443
  [key: string]: string;
@@ -6417,6 +6524,9 @@ export declare class GetTurnCredentialsResponseBodyData extends $tea.Model {
6417
6524
  });
6418
6525
  }
6419
6526
  export declare class GetUserResponseBodyData extends $tea.Model {
6527
+ deviceExt?: string;
6528
+ deviceId?: string;
6529
+ deviceState?: string;
6420
6530
  displayName?: string;
6421
6531
  email?: string;
6422
6532
  extension?: string;
@@ -8597,9 +8707,13 @@ export declare class ListUsersResponseBodyDataListSkillLevelList extends $tea.Mo
8597
8707
  });
8598
8708
  }
8599
8709
  export declare class ListUsersResponseBodyDataList extends $tea.Model {
8710
+ deviceExt?: string;
8711
+ deviceId?: string;
8712
+ deviceState?: string;
8600
8713
  displayId?: string;
8601
8714
  displayName?: string;
8602
8715
  email?: string;
8716
+ extension?: string;
8603
8717
  loginName?: string;
8604
8718
  mobile?: string;
8605
8719
  personalOutboundNumberList?: ListUsersResponseBodyDataListPersonalOutboundNumberList[];
@@ -9076,6 +9190,7 @@ export declare class ReleaseCallResponseBodyDataUserContext extends $tea.Model {
9076
9190
  }
9077
9191
  export declare class ReleaseCallResponseBodyData extends $tea.Model {
9078
9192
  callContext?: ReleaseCallResponseBodyDataCallContext;
9193
+ contextId?: number;
9079
9194
  userContext?: ReleaseCallResponseBodyDataUserContext;
9080
9195
  static names(): {
9081
9196
  [key: string]: string;
@@ -9622,6 +9737,8 @@ export default class Client extends OpenApi {
9622
9737
  getCallDetailRecord(request: GetCallDetailRecordRequest): Promise<GetCallDetailRecordResponse>;
9623
9738
  getCampaignWithOptions(request: GetCampaignRequest, runtime: $Util.RuntimeOptions): Promise<GetCampaignResponse>;
9624
9739
  getCampaign(request: GetCampaignRequest): Promise<GetCampaignResponse>;
9740
+ getCaseFileUploadUrlWithOptions(request: GetCaseFileUploadUrlRequest, runtime: $Util.RuntimeOptions): Promise<GetCaseFileUploadUrlResponse>;
9741
+ getCaseFileUploadUrl(request: GetCaseFileUploadUrlRequest): Promise<GetCaseFileUploadUrlResponse>;
9625
9742
  getHistoricalCallerReportWithOptions(request: GetHistoricalCallerReportRequest, runtime: $Util.RuntimeOptions): Promise<GetHistoricalCallerReportResponse>;
9626
9743
  getHistoricalCallerReport(request: GetHistoricalCallerReportRequest): Promise<GetHistoricalCallerReportResponse>;
9627
9744
  getHistoricalInstanceReportWithOptions(request: GetHistoricalInstanceReportRequest, runtime: $Util.RuntimeOptions): Promise<GetHistoricalInstanceReportResponse>;
@@ -9754,6 +9871,8 @@ export default class Client extends OpenApi {
9754
9871
  readyForService(request: ReadyForServiceRequest): Promise<ReadyForServiceResponse>;
9755
9872
  registerDeviceWithOptions(request: RegisterDeviceRequest, runtime: $Util.RuntimeOptions): Promise<RegisterDeviceResponse>;
9756
9873
  registerDevice(request: RegisterDeviceRequest): Promise<RegisterDeviceResponse>;
9874
+ registerDevicesWithOptions(request: RegisterDevicesRequest, runtime: $Util.RuntimeOptions): Promise<RegisterDevicesResponse>;
9875
+ registerDevices(request: RegisterDevicesRequest): Promise<RegisterDevicesResponse>;
9757
9876
  releaseCallWithOptions(request: ReleaseCallRequest, runtime: $Util.RuntimeOptions): Promise<ReleaseCallResponse>;
9758
9877
  releaseCall(request: ReleaseCallRequest): Promise<ReleaseCallResponse>;
9759
9878
  removePersonalNumbersFromUserWithOptions(request: RemovePersonalNumbersFromUserRequest, runtime: $Util.RuntimeOptions): Promise<RemovePersonalNumbersFromUserResponse>;
package/dist/client.js CHANGED
@@ -1511,6 +1511,66 @@ class GetCampaignResponse extends $tea.Model {
1511
1511
  }
1512
1512
  }
1513
1513
  exports.GetCampaignResponse = GetCampaignResponse;
1514
+ class GetCaseFileUploadUrlRequest extends $tea.Model {
1515
+ constructor(map) {
1516
+ super(map);
1517
+ }
1518
+ static names() {
1519
+ return {
1520
+ fileName: 'FileName',
1521
+ instanceId: 'InstanceId',
1522
+ };
1523
+ }
1524
+ static types() {
1525
+ return {
1526
+ fileName: 'string',
1527
+ instanceId: 'string',
1528
+ };
1529
+ }
1530
+ }
1531
+ exports.GetCaseFileUploadUrlRequest = GetCaseFileUploadUrlRequest;
1532
+ class GetCaseFileUploadUrlResponseBody extends $tea.Model {
1533
+ constructor(map) {
1534
+ super(map);
1535
+ }
1536
+ static names() {
1537
+ return {
1538
+ code: 'Code',
1539
+ data: 'Data',
1540
+ httpStatusCode: 'HttpStatusCode',
1541
+ message: 'Message',
1542
+ requestId: 'RequestId',
1543
+ };
1544
+ }
1545
+ static types() {
1546
+ return {
1547
+ code: 'string',
1548
+ data: GetCaseFileUploadUrlResponseBodyData,
1549
+ httpStatusCode: 'number',
1550
+ message: 'string',
1551
+ requestId: 'string',
1552
+ };
1553
+ }
1554
+ }
1555
+ exports.GetCaseFileUploadUrlResponseBody = GetCaseFileUploadUrlResponseBody;
1556
+ class GetCaseFileUploadUrlResponse extends $tea.Model {
1557
+ constructor(map) {
1558
+ super(map);
1559
+ }
1560
+ static names() {
1561
+ return {
1562
+ headers: 'headers',
1563
+ body: 'body',
1564
+ };
1565
+ }
1566
+ static types() {
1567
+ return {
1568
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1569
+ body: GetCaseFileUploadUrlResponseBody,
1570
+ };
1571
+ }
1572
+ }
1573
+ exports.GetCaseFileUploadUrlResponse = GetCaseFileUploadUrlResponse;
1514
1574
  class GetHistoricalCallerReportRequest extends $tea.Model {
1515
1575
  constructor(map) {
1516
1576
  super(map);
@@ -5831,6 +5891,70 @@ class RegisterDeviceResponse extends $tea.Model {
5831
5891
  }
5832
5892
  }
5833
5893
  exports.RegisterDeviceResponse = RegisterDeviceResponse;
5894
+ class RegisterDevicesRequest extends $tea.Model {
5895
+ constructor(map) {
5896
+ super(map);
5897
+ }
5898
+ static names() {
5899
+ return {
5900
+ deviceId: 'DeviceId',
5901
+ instanceId: 'InstanceId',
5902
+ password: 'Password',
5903
+ userIdListJson: 'UserIdListJson',
5904
+ };
5905
+ }
5906
+ static types() {
5907
+ return {
5908
+ deviceId: 'string',
5909
+ instanceId: 'string',
5910
+ password: 'string',
5911
+ userIdListJson: 'string',
5912
+ };
5913
+ }
5914
+ }
5915
+ exports.RegisterDevicesRequest = RegisterDevicesRequest;
5916
+ class RegisterDevicesResponseBody extends $tea.Model {
5917
+ constructor(map) {
5918
+ super(map);
5919
+ }
5920
+ static names() {
5921
+ return {
5922
+ code: 'Code',
5923
+ httpStatusCode: 'HttpStatusCode',
5924
+ message: 'Message',
5925
+ params: 'Params',
5926
+ requestId: 'RequestId',
5927
+ };
5928
+ }
5929
+ static types() {
5930
+ return {
5931
+ code: 'string',
5932
+ httpStatusCode: 'number',
5933
+ message: 'string',
5934
+ params: { 'type': 'array', 'itemType': 'string' },
5935
+ requestId: 'string',
5936
+ };
5937
+ }
5938
+ }
5939
+ exports.RegisterDevicesResponseBody = RegisterDevicesResponseBody;
5940
+ class RegisterDevicesResponse extends $tea.Model {
5941
+ constructor(map) {
5942
+ super(map);
5943
+ }
5944
+ static names() {
5945
+ return {
5946
+ headers: 'headers',
5947
+ body: 'body',
5948
+ };
5949
+ }
5950
+ static types() {
5951
+ return {
5952
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5953
+ body: RegisterDevicesResponseBody,
5954
+ };
5955
+ }
5956
+ }
5957
+ exports.RegisterDevicesResponse = RegisterDevicesResponse;
5834
5958
  class ReleaseCallRequest extends $tea.Model {
5835
5959
  constructor(map) {
5836
5960
  super(map);
@@ -8587,6 +8711,24 @@ class GetCampaignResponseBodyData extends $tea.Model {
8587
8711
  }
8588
8712
  }
8589
8713
  exports.GetCampaignResponseBodyData = GetCampaignResponseBodyData;
8714
+ class GetCaseFileUploadUrlResponseBodyData extends $tea.Model {
8715
+ constructor(map) {
8716
+ super(map);
8717
+ }
8718
+ static names() {
8719
+ return {
8720
+ caseFileKey: 'CaseFileKey',
8721
+ url: 'Url',
8722
+ };
8723
+ }
8724
+ static types() {
8725
+ return {
8726
+ caseFileKey: 'string',
8727
+ url: 'string',
8728
+ };
8729
+ }
8730
+ }
8731
+ exports.GetCaseFileUploadUrlResponseBodyData = GetCaseFileUploadUrlResponseBodyData;
8590
8732
  class GetHistoricalCallerReportResponseBodyData extends $tea.Model {
8591
8733
  constructor(map) {
8592
8734
  super(map);
@@ -9066,26 +9208,34 @@ class GetLoginDetailsResponseBodyData extends $tea.Model {
9066
9208
  static names() {
9067
9209
  return {
9068
9210
  agentServerUrl: 'AgentServerUrl',
9211
+ deviceExt: 'DeviceExt',
9069
9212
  deviceId: 'DeviceId',
9213
+ deviceState: 'DeviceState',
9070
9214
  displayName: 'DisplayName',
9071
9215
  extension: 'Extension',
9072
9216
  signature: 'Signature',
9217
+ signature2: 'Signature2',
9073
9218
  sipServerUrl: 'SipServerUrl',
9074
9219
  userId: 'UserId',
9075
9220
  userKey: 'UserKey',
9221
+ userKey2: 'UserKey2',
9076
9222
  workMode: 'WorkMode',
9077
9223
  };
9078
9224
  }
9079
9225
  static types() {
9080
9226
  return {
9081
9227
  agentServerUrl: 'string',
9228
+ deviceExt: 'string',
9082
9229
  deviceId: 'string',
9230
+ deviceState: 'string',
9083
9231
  displayName: 'string',
9084
9232
  extension: 'string',
9085
9233
  signature: 'string',
9234
+ signature2: 'string',
9086
9235
  sipServerUrl: 'string',
9087
9236
  userId: 'string',
9088
9237
  userKey: 'string',
9238
+ userKey2: 'string',
9089
9239
  workMode: 'string',
9090
9240
  };
9091
9241
  }
@@ -9205,6 +9355,9 @@ class GetUserResponseBodyData extends $tea.Model {
9205
9355
  }
9206
9356
  static names() {
9207
9357
  return {
9358
+ deviceExt: 'DeviceExt',
9359
+ deviceId: 'DeviceId',
9360
+ deviceState: 'DeviceState',
9208
9361
  displayName: 'DisplayName',
9209
9362
  email: 'Email',
9210
9363
  extension: 'Extension',
@@ -9219,6 +9372,9 @@ class GetUserResponseBodyData extends $tea.Model {
9219
9372
  }
9220
9373
  static types() {
9221
9374
  return {
9375
+ deviceExt: 'string',
9376
+ deviceId: 'string',
9377
+ deviceState: 'string',
9222
9378
  displayName: 'string',
9223
9379
  email: 'string',
9224
9380
  extension: 'string',
@@ -12729,9 +12885,13 @@ class ListUsersResponseBodyDataList extends $tea.Model {
12729
12885
  }
12730
12886
  static names() {
12731
12887
  return {
12888
+ deviceExt: 'DeviceExt',
12889
+ deviceId: 'DeviceId',
12890
+ deviceState: 'DeviceState',
12732
12891
  displayId: 'DisplayId',
12733
12892
  displayName: 'DisplayName',
12734
12893
  email: 'Email',
12894
+ extension: 'Extension',
12735
12895
  loginName: 'LoginName',
12736
12896
  mobile: 'Mobile',
12737
12897
  personalOutboundNumberList: 'PersonalOutboundNumberList',
@@ -12746,9 +12906,13 @@ class ListUsersResponseBodyDataList extends $tea.Model {
12746
12906
  }
12747
12907
  static types() {
12748
12908
  return {
12909
+ deviceExt: 'string',
12910
+ deviceId: 'string',
12911
+ deviceState: 'string',
12749
12912
  displayId: 'string',
12750
12913
  displayName: 'string',
12751
12914
  email: 'string',
12915
+ extension: 'string',
12752
12916
  loginName: 'string',
12753
12917
  mobile: 'string',
12754
12918
  personalOutboundNumberList: { 'type': 'array', 'itemType': ListUsersResponseBodyDataListPersonalOutboundNumberList },
@@ -13466,12 +13630,14 @@ class ReleaseCallResponseBodyData extends $tea.Model {
13466
13630
  static names() {
13467
13631
  return {
13468
13632
  callContext: 'CallContext',
13633
+ contextId: 'ContextId',
13469
13634
  userContext: 'UserContext',
13470
13635
  };
13471
13636
  }
13472
13637
  static types() {
13473
13638
  return {
13474
13639
  callContext: ReleaseCallResponseBodyDataCallContext,
13640
+ contextId: 'number',
13475
13641
  userContext: ReleaseCallResponseBodyDataUserContext,
13476
13642
  };
13477
13643
  }
@@ -15094,6 +15260,35 @@ class Client extends openapi_client_1.default {
15094
15260
  let runtime = new $Util.RuntimeOptions({});
15095
15261
  return await this.getCampaignWithOptions(request, runtime);
15096
15262
  }
15263
+ async getCaseFileUploadUrlWithOptions(request, runtime) {
15264
+ tea_util_1.default.validateModel(request);
15265
+ let query = {};
15266
+ if (!tea_util_1.default.isUnset(request.fileName)) {
15267
+ query["FileName"] = request.fileName;
15268
+ }
15269
+ if (!tea_util_1.default.isUnset(request.instanceId)) {
15270
+ query["InstanceId"] = request.instanceId;
15271
+ }
15272
+ let req = new $OpenApi.OpenApiRequest({
15273
+ query: openapi_util_1.default.query(query),
15274
+ });
15275
+ let params = new $OpenApi.Params({
15276
+ action: "GetCaseFileUploadUrl",
15277
+ version: "2020-07-01",
15278
+ protocol: "HTTPS",
15279
+ pathname: "/",
15280
+ method: "POST",
15281
+ authType: "AK",
15282
+ style: "RPC",
15283
+ reqBodyType: "formData",
15284
+ bodyType: "json",
15285
+ });
15286
+ return $tea.cast(await this.callApi(params, req, runtime), new GetCaseFileUploadUrlResponse({}));
15287
+ }
15288
+ async getCaseFileUploadUrl(request) {
15289
+ let runtime = new $Util.RuntimeOptions({});
15290
+ return await this.getCaseFileUploadUrlWithOptions(request, runtime);
15291
+ }
15097
15292
  async getHistoricalCallerReportWithOptions(request, runtime) {
15098
15293
  tea_util_1.default.validateModel(request);
15099
15294
  let query = {};
@@ -17435,6 +17630,41 @@ class Client extends openapi_client_1.default {
17435
17630
  let runtime = new $Util.RuntimeOptions({});
17436
17631
  return await this.registerDeviceWithOptions(request, runtime);
17437
17632
  }
17633
+ async registerDevicesWithOptions(request, runtime) {
17634
+ tea_util_1.default.validateModel(request);
17635
+ let query = {};
17636
+ if (!tea_util_1.default.isUnset(request.deviceId)) {
17637
+ query["DeviceId"] = request.deviceId;
17638
+ }
17639
+ if (!tea_util_1.default.isUnset(request.instanceId)) {
17640
+ query["InstanceId"] = request.instanceId;
17641
+ }
17642
+ if (!tea_util_1.default.isUnset(request.password)) {
17643
+ query["Password"] = request.password;
17644
+ }
17645
+ if (!tea_util_1.default.isUnset(request.userIdListJson)) {
17646
+ query["UserIdListJson"] = request.userIdListJson;
17647
+ }
17648
+ let req = new $OpenApi.OpenApiRequest({
17649
+ query: openapi_util_1.default.query(query),
17650
+ });
17651
+ let params = new $OpenApi.Params({
17652
+ action: "RegisterDevices",
17653
+ version: "2020-07-01",
17654
+ protocol: "HTTPS",
17655
+ pathname: "/",
17656
+ method: "POST",
17657
+ authType: "AK",
17658
+ style: "RPC",
17659
+ reqBodyType: "formData",
17660
+ bodyType: "json",
17661
+ });
17662
+ return $tea.cast(await this.callApi(params, req, runtime), new RegisterDevicesResponse({}));
17663
+ }
17664
+ async registerDevices(request) {
17665
+ let runtime = new $Util.RuntimeOptions({});
17666
+ return await this.registerDevicesWithOptions(request, runtime);
17667
+ }
17438
17668
  async releaseCallWithOptions(request, runtime) {
17439
17669
  tea_util_1.default.validateModel(request);
17440
17670
  let query = {};