@alicloud/ccc20200701 2.11.5 → 2.12.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/dist/client.d.ts +656 -532
- package/dist/client.js +201 -2
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +771 -534
package/dist/client.js
CHANGED
|
@@ -1065,6 +1065,72 @@ class CancelAttendedTransferResponse extends $tea.Model {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
exports.CancelAttendedTransferResponse = CancelAttendedTransferResponse;
|
|
1068
|
+
class ChangeVisibilityRequest extends $tea.Model {
|
|
1069
|
+
constructor(map) {
|
|
1070
|
+
super(map);
|
|
1071
|
+
}
|
|
1072
|
+
static names() {
|
|
1073
|
+
return {
|
|
1074
|
+
instanceId: 'InstanceId',
|
|
1075
|
+
invisible: 'Invisible',
|
|
1076
|
+
userId: 'UserId',
|
|
1077
|
+
};
|
|
1078
|
+
}
|
|
1079
|
+
static types() {
|
|
1080
|
+
return {
|
|
1081
|
+
instanceId: 'string',
|
|
1082
|
+
invisible: 'boolean',
|
|
1083
|
+
userId: 'string',
|
|
1084
|
+
};
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
exports.ChangeVisibilityRequest = ChangeVisibilityRequest;
|
|
1088
|
+
class ChangeVisibilityResponseBody extends $tea.Model {
|
|
1089
|
+
constructor(map) {
|
|
1090
|
+
super(map);
|
|
1091
|
+
}
|
|
1092
|
+
static names() {
|
|
1093
|
+
return {
|
|
1094
|
+
code: 'Code',
|
|
1095
|
+
data: 'Data',
|
|
1096
|
+
httpStatusCode: 'HttpStatusCode',
|
|
1097
|
+
message: 'Message',
|
|
1098
|
+
params: 'Params',
|
|
1099
|
+
requestId: 'RequestId',
|
|
1100
|
+
};
|
|
1101
|
+
}
|
|
1102
|
+
static types() {
|
|
1103
|
+
return {
|
|
1104
|
+
code: 'string',
|
|
1105
|
+
data: ChangeVisibilityResponseBodyData,
|
|
1106
|
+
httpStatusCode: 'number',
|
|
1107
|
+
message: 'string',
|
|
1108
|
+
params: { 'type': 'array', 'itemType': 'string' },
|
|
1109
|
+
requestId: 'string',
|
|
1110
|
+
};
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
exports.ChangeVisibilityResponseBody = ChangeVisibilityResponseBody;
|
|
1114
|
+
class ChangeVisibilityResponse extends $tea.Model {
|
|
1115
|
+
constructor(map) {
|
|
1116
|
+
super(map);
|
|
1117
|
+
}
|
|
1118
|
+
static names() {
|
|
1119
|
+
return {
|
|
1120
|
+
headers: 'headers',
|
|
1121
|
+
statusCode: 'statusCode',
|
|
1122
|
+
body: 'body',
|
|
1123
|
+
};
|
|
1124
|
+
}
|
|
1125
|
+
static types() {
|
|
1126
|
+
return {
|
|
1127
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1128
|
+
statusCode: 'number',
|
|
1129
|
+
body: ChangeVisibilityResponseBody,
|
|
1130
|
+
};
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
exports.ChangeVisibilityResponse = ChangeVisibilityResponse;
|
|
1068
1134
|
class ChangeWorkModeRequest extends $tea.Model {
|
|
1069
1135
|
constructor(map) {
|
|
1070
1136
|
super(map);
|
|
@@ -8456,6 +8522,7 @@ class MakeCallRequest extends $tea.Model {
|
|
|
8456
8522
|
deviceId: 'DeviceId',
|
|
8457
8523
|
instanceId: 'InstanceId',
|
|
8458
8524
|
maskedCallee: 'MaskedCallee',
|
|
8525
|
+
mediaType: 'MediaType',
|
|
8459
8526
|
tags: 'Tags',
|
|
8460
8527
|
timeoutSeconds: 'TimeoutSeconds',
|
|
8461
8528
|
userId: 'UserId',
|
|
@@ -8468,6 +8535,7 @@ class MakeCallRequest extends $tea.Model {
|
|
|
8468
8535
|
deviceId: 'string',
|
|
8469
8536
|
instanceId: 'string',
|
|
8470
8537
|
maskedCallee: 'string',
|
|
8538
|
+
mediaType: 'string',
|
|
8471
8539
|
tags: 'string',
|
|
8472
8540
|
timeoutSeconds: 'number',
|
|
8473
8541
|
userId: 'string',
|
|
@@ -12565,6 +12633,40 @@ class CancelAttendedTransferResponseBodyData extends $tea.Model {
|
|
|
12565
12633
|
}
|
|
12566
12634
|
}
|
|
12567
12635
|
exports.CancelAttendedTransferResponseBodyData = CancelAttendedTransferResponseBodyData;
|
|
12636
|
+
class ChangeVisibilityResponseBodyData extends $tea.Model {
|
|
12637
|
+
constructor(map) {
|
|
12638
|
+
super(map);
|
|
12639
|
+
}
|
|
12640
|
+
static names() {
|
|
12641
|
+
return {
|
|
12642
|
+
breakCode: 'BreakCode',
|
|
12643
|
+
deviceId: 'DeviceId',
|
|
12644
|
+
extension: 'Extension',
|
|
12645
|
+
instanceId: 'InstanceId',
|
|
12646
|
+
jobId: 'JobId',
|
|
12647
|
+
outboundScenario: 'OutboundScenario',
|
|
12648
|
+
signedSkillGroupIdList: 'SignedSkillGroupIdList',
|
|
12649
|
+
userId: 'UserId',
|
|
12650
|
+
userState: 'UserState',
|
|
12651
|
+
workMode: 'WorkMode',
|
|
12652
|
+
};
|
|
12653
|
+
}
|
|
12654
|
+
static types() {
|
|
12655
|
+
return {
|
|
12656
|
+
breakCode: 'string',
|
|
12657
|
+
deviceId: 'string',
|
|
12658
|
+
extension: 'string',
|
|
12659
|
+
instanceId: 'string',
|
|
12660
|
+
jobId: 'string',
|
|
12661
|
+
outboundScenario: 'boolean',
|
|
12662
|
+
signedSkillGroupIdList: { 'type': 'array', 'itemType': 'string' },
|
|
12663
|
+
userId: 'string',
|
|
12664
|
+
userState: 'string',
|
|
12665
|
+
workMode: 'string',
|
|
12666
|
+
};
|
|
12667
|
+
}
|
|
12668
|
+
}
|
|
12669
|
+
exports.ChangeVisibilityResponseBodyData = ChangeVisibilityResponseBodyData;
|
|
12568
12670
|
class ChangeWorkModeResponseBodyData extends $tea.Model {
|
|
12569
12671
|
constructor(map) {
|
|
12570
12672
|
super(map);
|
|
@@ -12680,7 +12782,6 @@ class CoachCallResponseBodyDataUserContext extends $tea.Model {
|
|
|
12680
12782
|
outboundScenario: 'OutboundScenario',
|
|
12681
12783
|
reserved: 'Reserved',
|
|
12682
12784
|
signedSkillGroupIdList: 'SignedSkillGroupIdList',
|
|
12683
|
-
uri: 'Uri',
|
|
12684
12785
|
userId: 'UserId',
|
|
12685
12786
|
userState: 'UserState',
|
|
12686
12787
|
workMode: 'WorkMode',
|
|
@@ -12699,7 +12800,6 @@ class CoachCallResponseBodyDataUserContext extends $tea.Model {
|
|
|
12699
12800
|
outboundScenario: 'boolean',
|
|
12700
12801
|
reserved: 'number',
|
|
12701
12802
|
signedSkillGroupIdList: { 'type': 'array', 'itemType': 'string' },
|
|
12702
|
-
uri: 'string',
|
|
12703
12803
|
userId: 'string',
|
|
12704
12804
|
userState: 'string',
|
|
12705
12805
|
workMode: 'string',
|
|
@@ -20525,6 +20625,7 @@ class MakeCallResponseBodyDataCallContextChannelContexts extends $tea.Model {
|
|
|
20525
20625
|
channelState: 'ChannelState',
|
|
20526
20626
|
destination: 'Destination',
|
|
20527
20627
|
jobId: 'JobId',
|
|
20628
|
+
mediaType: 'MediaType',
|
|
20528
20629
|
originator: 'Originator',
|
|
20529
20630
|
releaseInitiator: 'ReleaseInitiator',
|
|
20530
20631
|
releaseReason: 'ReleaseReason',
|
|
@@ -20541,6 +20642,7 @@ class MakeCallResponseBodyDataCallContextChannelContexts extends $tea.Model {
|
|
|
20541
20642
|
channelState: 'string',
|
|
20542
20643
|
destination: 'string',
|
|
20543
20644
|
jobId: 'string',
|
|
20645
|
+
mediaType: 'string',
|
|
20544
20646
|
originator: 'string',
|
|
20545
20647
|
releaseInitiator: 'string',
|
|
20546
20648
|
releaseReason: 'string',
|
|
@@ -20765,6 +20867,7 @@ class MuteCallResponseBodyDataCallContextChannelContexts extends $tea.Model {
|
|
|
20765
20867
|
originator: 'Originator',
|
|
20766
20868
|
releaseInitiator: 'ReleaseInitiator',
|
|
20767
20869
|
releaseReason: 'ReleaseReason',
|
|
20870
|
+
skillGroupId: 'SkillGroupId',
|
|
20768
20871
|
timestamp: 'Timestamp',
|
|
20769
20872
|
userExtension: 'UserExtension',
|
|
20770
20873
|
userId: 'UserId',
|
|
@@ -20782,6 +20885,7 @@ class MuteCallResponseBodyDataCallContextChannelContexts extends $tea.Model {
|
|
|
20782
20885
|
originator: 'string',
|
|
20783
20886
|
releaseInitiator: 'string',
|
|
20784
20887
|
releaseReason: 'string',
|
|
20888
|
+
skillGroupId: 'string',
|
|
20785
20889
|
timestamp: 'number',
|
|
20786
20890
|
userExtension: 'string',
|
|
20787
20891
|
userId: 'string',
|
|
@@ -23040,6 +23144,38 @@ class Client extends openapi_client_1.default {
|
|
|
23040
23144
|
let runtime = new $Util.RuntimeOptions({});
|
|
23041
23145
|
return await this.cancelAttendedTransferWithOptions(request, runtime);
|
|
23042
23146
|
}
|
|
23147
|
+
async changeVisibilityWithOptions(request, runtime) {
|
|
23148
|
+
tea_util_1.default.validateModel(request);
|
|
23149
|
+
let query = {};
|
|
23150
|
+
if (!tea_util_1.default.isUnset(request.instanceId)) {
|
|
23151
|
+
query["InstanceId"] = request.instanceId;
|
|
23152
|
+
}
|
|
23153
|
+
if (!tea_util_1.default.isUnset(request.invisible)) {
|
|
23154
|
+
query["Invisible"] = request.invisible;
|
|
23155
|
+
}
|
|
23156
|
+
if (!tea_util_1.default.isUnset(request.userId)) {
|
|
23157
|
+
query["UserId"] = request.userId;
|
|
23158
|
+
}
|
|
23159
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
23160
|
+
query: openapi_util_1.default.query(query),
|
|
23161
|
+
});
|
|
23162
|
+
let params = new $OpenApi.Params({
|
|
23163
|
+
action: "ChangeVisibility",
|
|
23164
|
+
version: "2020-07-01",
|
|
23165
|
+
protocol: "HTTPS",
|
|
23166
|
+
pathname: "/",
|
|
23167
|
+
method: "POST",
|
|
23168
|
+
authType: "AK",
|
|
23169
|
+
style: "RPC",
|
|
23170
|
+
reqBodyType: "formData",
|
|
23171
|
+
bodyType: "json",
|
|
23172
|
+
});
|
|
23173
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ChangeVisibilityResponse({}));
|
|
23174
|
+
}
|
|
23175
|
+
async changeVisibility(request) {
|
|
23176
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
23177
|
+
return await this.changeVisibilityWithOptions(request, runtime);
|
|
23178
|
+
}
|
|
23043
23179
|
async changeWorkModeWithOptions(request, runtime) {
|
|
23044
23180
|
tea_util_1.default.validateModel(request);
|
|
23045
23181
|
let query = {};
|
|
@@ -25055,6 +25191,14 @@ class Client extends openapi_client_1.default {
|
|
|
25055
25191
|
let runtime = new $Util.RuntimeOptions({});
|
|
25056
25192
|
return await this.listAgentStateLogsWithOptions(request, runtime);
|
|
25057
25193
|
}
|
|
25194
|
+
/**
|
|
25195
|
+
* @deprecated : ListAgentStates is deprecated, please use CCC::2020-07-01::ListRealtimeAgentStates instead.
|
|
25196
|
+
*
|
|
25197
|
+
* @param request ListAgentStatesRequest
|
|
25198
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
25199
|
+
* @return ListAgentStatesResponse
|
|
25200
|
+
*/
|
|
25201
|
+
// Deprecated
|
|
25058
25202
|
async listAgentStatesWithOptions(request, runtime) {
|
|
25059
25203
|
tea_util_1.default.validateModel(request);
|
|
25060
25204
|
let query = {};
|
|
@@ -25095,10 +25239,25 @@ class Client extends openapi_client_1.default {
|
|
|
25095
25239
|
});
|
|
25096
25240
|
return $tea.cast(await this.callApi(params, req, runtime), new ListAgentStatesResponse({}));
|
|
25097
25241
|
}
|
|
25242
|
+
/**
|
|
25243
|
+
* @deprecated : ListAgentStates is deprecated, please use CCC::2020-07-01::ListRealtimeAgentStates instead.
|
|
25244
|
+
*
|
|
25245
|
+
* @param request ListAgentStatesRequest
|
|
25246
|
+
* @return ListAgentStatesResponse
|
|
25247
|
+
*/
|
|
25248
|
+
// Deprecated
|
|
25098
25249
|
async listAgentStates(request) {
|
|
25099
25250
|
let runtime = new $Util.RuntimeOptions({});
|
|
25100
25251
|
return await this.listAgentStatesWithOptions(request, runtime);
|
|
25101
25252
|
}
|
|
25253
|
+
/**
|
|
25254
|
+
* @deprecated : ListAgentSummaryReportsSinceMidnight is deprecated, please use CCC::2020-07-01::ListHistoricalAgentReport instead.
|
|
25255
|
+
*
|
|
25256
|
+
* @param request ListAgentSummaryReportsSinceMidnightRequest
|
|
25257
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
25258
|
+
* @return ListAgentSummaryReportsSinceMidnightResponse
|
|
25259
|
+
*/
|
|
25260
|
+
// Deprecated
|
|
25102
25261
|
async listAgentSummaryReportsSinceMidnightWithOptions(request, runtime) {
|
|
25103
25262
|
tea_util_1.default.validateModel(request);
|
|
25104
25263
|
let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
|
|
@@ -25118,6 +25277,13 @@ class Client extends openapi_client_1.default {
|
|
|
25118
25277
|
});
|
|
25119
25278
|
return $tea.cast(await this.callApi(params, req, runtime), new ListAgentSummaryReportsSinceMidnightResponse({}));
|
|
25120
25279
|
}
|
|
25280
|
+
/**
|
|
25281
|
+
* @deprecated : ListAgentSummaryReportsSinceMidnight is deprecated, please use CCC::2020-07-01::ListHistoricalAgentReport instead.
|
|
25282
|
+
*
|
|
25283
|
+
* @param request ListAgentSummaryReportsSinceMidnightRequest
|
|
25284
|
+
* @return ListAgentSummaryReportsSinceMidnightResponse
|
|
25285
|
+
*/
|
|
25286
|
+
// Deprecated
|
|
25121
25287
|
async listAgentSummaryReportsSinceMidnight(request) {
|
|
25122
25288
|
let runtime = new $Util.RuntimeOptions({});
|
|
25123
25289
|
return await this.listAgentSummaryReportsSinceMidnightWithOptions(request, runtime);
|
|
@@ -26634,6 +26800,14 @@ class Client extends openapi_client_1.default {
|
|
|
26634
26800
|
let runtime = new $Util.RuntimeOptions({});
|
|
26635
26801
|
return await this.listRolesWithOptions(request, runtime);
|
|
26636
26802
|
}
|
|
26803
|
+
/**
|
|
26804
|
+
* @deprecated : ListSkillGroupStates is deprecated, please use CCC::2020-07-01::ListRealtimeSkillGroupStates instead.
|
|
26805
|
+
*
|
|
26806
|
+
* @param request ListSkillGroupStatesRequest
|
|
26807
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
26808
|
+
* @return ListSkillGroupStatesResponse
|
|
26809
|
+
*/
|
|
26810
|
+
// Deprecated
|
|
26637
26811
|
async listSkillGroupStatesWithOptions(request, runtime) {
|
|
26638
26812
|
tea_util_1.default.validateModel(request);
|
|
26639
26813
|
let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
|
|
@@ -26653,10 +26827,25 @@ class Client extends openapi_client_1.default {
|
|
|
26653
26827
|
});
|
|
26654
26828
|
return $tea.cast(await this.callApi(params, req, runtime), new ListSkillGroupStatesResponse({}));
|
|
26655
26829
|
}
|
|
26830
|
+
/**
|
|
26831
|
+
* @deprecated : ListSkillGroupStates is deprecated, please use CCC::2020-07-01::ListRealtimeSkillGroupStates instead.
|
|
26832
|
+
*
|
|
26833
|
+
* @param request ListSkillGroupStatesRequest
|
|
26834
|
+
* @return ListSkillGroupStatesResponse
|
|
26835
|
+
*/
|
|
26836
|
+
// Deprecated
|
|
26656
26837
|
async listSkillGroupStates(request) {
|
|
26657
26838
|
let runtime = new $Util.RuntimeOptions({});
|
|
26658
26839
|
return await this.listSkillGroupStatesWithOptions(request, runtime);
|
|
26659
26840
|
}
|
|
26841
|
+
/**
|
|
26842
|
+
* @deprecated : ListSkillGroupSummaryReportsSinceMidnight is deprecated, please use CCC::2020-07-01::ListHistoricalSkillGroupReport instead.
|
|
26843
|
+
*
|
|
26844
|
+
* @param request ListSkillGroupSummaryReportsSinceMidnightRequest
|
|
26845
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
26846
|
+
* @return ListSkillGroupSummaryReportsSinceMidnightResponse
|
|
26847
|
+
*/
|
|
26848
|
+
// Deprecated
|
|
26660
26849
|
async listSkillGroupSummaryReportsSinceMidnightWithOptions(request, runtime) {
|
|
26661
26850
|
tea_util_1.default.validateModel(request);
|
|
26662
26851
|
let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
|
|
@@ -26676,6 +26865,13 @@ class Client extends openapi_client_1.default {
|
|
|
26676
26865
|
});
|
|
26677
26866
|
return $tea.cast(await this.callApi(params, req, runtime), new ListSkillGroupSummaryReportsSinceMidnightResponse({}));
|
|
26678
26867
|
}
|
|
26868
|
+
/**
|
|
26869
|
+
* @deprecated : ListSkillGroupSummaryReportsSinceMidnight is deprecated, please use CCC::2020-07-01::ListHistoricalSkillGroupReport instead.
|
|
26870
|
+
*
|
|
26871
|
+
* @param request ListSkillGroupSummaryReportsSinceMidnightRequest
|
|
26872
|
+
* @return ListSkillGroupSummaryReportsSinceMidnightResponse
|
|
26873
|
+
*/
|
|
26874
|
+
// Deprecated
|
|
26679
26875
|
async listSkillGroupSummaryReportsSinceMidnight(request) {
|
|
26680
26876
|
let runtime = new $Util.RuntimeOptions({});
|
|
26681
26877
|
return await this.listSkillGroupSummaryReportsSinceMidnightWithOptions(request, runtime);
|
|
@@ -26935,6 +27131,9 @@ class Client extends openapi_client_1.default {
|
|
|
26935
27131
|
if (!tea_util_1.default.isUnset(request.maskedCallee)) {
|
|
26936
27132
|
query["MaskedCallee"] = request.maskedCallee;
|
|
26937
27133
|
}
|
|
27134
|
+
if (!tea_util_1.default.isUnset(request.mediaType)) {
|
|
27135
|
+
query["MediaType"] = request.mediaType;
|
|
27136
|
+
}
|
|
26938
27137
|
if (!tea_util_1.default.isUnset(request.tags)) {
|
|
26939
27138
|
query["Tags"] = request.tags;
|
|
26940
27139
|
}
|