aiccs-20191015/Sources/AlibabacloudAiccs20191015/Client.swift (6,081 lines of code) (raw):
import Foundation
import Tea
import TeaUtils
import AlibabacloudOpenApi
import AlibabaCloudOpenApiUtil
import AlibabacloudEndpointUtil
open class Client : AlibabacloudOpenApi.Client {
public override init(_ config: AlibabacloudOpenApi.Config) throws {
try super.init(config)
self._endpointRule = "central"
try checkConfig(config as! AlibabacloudOpenApi.Config)
self._endpoint = try getEndpoint("aiccs", self._regionId ?? "", self._endpointRule ?? "", self._network ?? "", self._suffix ?? "", self._endpointMap ?? [:], self._endpoint ?? "")
}
public func getEndpoint(_ productId: String, _ regionId: String, _ endpointRule: String, _ network: String, _ suffix: String, _ endpointMap: [String: String], _ endpoint: String) throws -> String {
if (!TeaUtils.Client.empty(endpoint)) {
return endpoint as! String
}
if (!TeaUtils.Client.isUnset(endpointMap) && !TeaUtils.Client.empty(endpointMap[regionId as! String])) {
return endpointMap[regionId as! String] ?? ""
}
return try AlibabacloudEndpointUtil.Client.getEndpointRules(productId, regionId, endpointRule, network, suffix)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func addHotlineNumberWithOptions(_ tmpReq: AddHotlineNumberRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> AddHotlineNumberResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: AddHotlineNumberShrinkRequest = AddHotlineNumberShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.outboundRangeList)) {
request.outboundRangeListShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.outboundRangeList, "OutboundRangeList", "json")
}
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.description_)) {
body["Description"] = request.description_ ?? "";
}
if (!TeaUtils.Client.isUnset(request.enableInbound)) {
body["EnableInbound"] = request.enableInbound!;
}
if (!TeaUtils.Client.isUnset(request.enableInboundEvaluation)) {
body["EnableInboundEvaluation"] = request.enableInboundEvaluation!;
}
if (!TeaUtils.Client.isUnset(request.enableOutbound)) {
body["EnableOutbound"] = request.enableOutbound!;
}
if (!TeaUtils.Client.isUnset(request.enableOutboundEvaluation)) {
body["EnableOutboundEvaluation"] = request.enableOutboundEvaluation!;
}
if (!TeaUtils.Client.isUnset(request.evaluationLevel)) {
body["EvaluationLevel"] = request.evaluationLevel!;
}
if (!TeaUtils.Client.isUnset(request.hotlineNumber)) {
body["HotlineNumber"] = request.hotlineNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.inboundFlowId)) {
body["InboundFlowId"] = request.inboundFlowId!;
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.outboundAllDepart)) {
body["OutboundAllDepart"] = request.outboundAllDepart!;
}
if (!TeaUtils.Client.isUnset(request.outboundRangeListShrink)) {
body["OutboundRangeList"] = request.outboundRangeListShrink ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "AddHotlineNumber",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(AddHotlineNumberResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func addHotlineNumber(_ request: AddHotlineNumberRequest) async throws -> AddHotlineNumberResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await addHotlineNumberWithOptions(request as! AddHotlineNumberRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func addOuterAccountWithOptions(_ request: AddOuterAccountRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> AddOuterAccountResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "AddOuterAccount",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(AddOuterAccountResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func addOuterAccount(_ request: AddOuterAccountRequest) async throws -> AddOuterAccountResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await addOuterAccountWithOptions(request as! AddOuterAccountRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func addSkillGroupWithOptions(_ request: AddSkillGroupRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> AddSkillGroupResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "AddSkillGroup",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(AddSkillGroupResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func addSkillGroup(_ request: AddSkillGroupRequest) async throws -> AddSkillGroupResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await addSkillGroupWithOptions(request as! AddSkillGroupRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func aiccsSmartCallWithOptions(_ request: AiccsSmartCallRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> AiccsSmartCallResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.actionCodeBreak)) {
query["ActionCodeBreak"] = request.actionCodeBreak!;
}
if (!TeaUtils.Client.isUnset(request.actionCodeTimeBreak)) {
query["ActionCodeTimeBreak"] = request.actionCodeTimeBreak!;
}
if (!TeaUtils.Client.isUnset(request.asrAlsAmId)) {
query["AsrAlsAmId"] = request.asrAlsAmId ?? "";
}
if (!TeaUtils.Client.isUnset(request.asrBaseId)) {
query["AsrBaseId"] = request.asrBaseId ?? "";
}
if (!TeaUtils.Client.isUnset(request.asrModelId)) {
query["AsrModelId"] = request.asrModelId ?? "";
}
if (!TeaUtils.Client.isUnset(request.asrVocabularyId)) {
query["AsrVocabularyId"] = request.asrVocabularyId ?? "";
}
if (!TeaUtils.Client.isUnset(request.backgroundFileCode)) {
query["BackgroundFileCode"] = request.backgroundFileCode ?? "";
}
if (!TeaUtils.Client.isUnset(request.backgroundSpeed)) {
query["BackgroundSpeed"] = request.backgroundSpeed!;
}
if (!TeaUtils.Client.isUnset(request.backgroundVolume)) {
query["BackgroundVolume"] = request.backgroundVolume!;
}
if (!TeaUtils.Client.isUnset(request.calledNumber)) {
query["CalledNumber"] = request.calledNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.calledShowNumber)) {
query["CalledShowNumber"] = request.calledShowNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.dynamicId)) {
query["DynamicId"] = request.dynamicId ?? "";
}
if (!TeaUtils.Client.isUnset(request.earlyMediaAsr)) {
query["EarlyMediaAsr"] = request.earlyMediaAsr!;
}
if (!TeaUtils.Client.isUnset(request.enableITN)) {
query["EnableITN"] = request.enableITN!;
}
if (!TeaUtils.Client.isUnset(request.muteTime)) {
query["MuteTime"] = request.muteTime!;
}
if (!TeaUtils.Client.isUnset(request.outId)) {
query["OutId"] = request.outId ?? "";
}
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.pauseTime)) {
query["PauseTime"] = request.pauseTime!;
}
if (!TeaUtils.Client.isUnset(request.playTimes)) {
query["PlayTimes"] = request.playTimes!;
}
if (!TeaUtils.Client.isUnset(request.prodCode)) {
query["ProdCode"] = request.prodCode ?? "";
}
if (!TeaUtils.Client.isUnset(request.recordFlag)) {
query["RecordFlag"] = request.recordFlag!;
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
if (!TeaUtils.Client.isUnset(request.sessionTimeout)) {
query["SessionTimeout"] = request.sessionTimeout!;
}
if (!TeaUtils.Client.isUnset(request.speed)) {
query["Speed"] = request.speed!;
}
if (!TeaUtils.Client.isUnset(request.ttsConf)) {
query["TtsConf"] = request.ttsConf!;
}
if (!TeaUtils.Client.isUnset(request.ttsSpeed)) {
query["TtsSpeed"] = request.ttsSpeed!;
}
if (!TeaUtils.Client.isUnset(request.ttsStyle)) {
query["TtsStyle"] = request.ttsStyle ?? "";
}
if (!TeaUtils.Client.isUnset(request.ttsVolume)) {
query["TtsVolume"] = request.ttsVolume!;
}
if (!TeaUtils.Client.isUnset(request.voiceCode)) {
query["VoiceCode"] = request.voiceCode ?? "";
}
if (!TeaUtils.Client.isUnset(request.voiceCodeParam)) {
query["VoiceCodeParam"] = request.voiceCodeParam ?? "";
}
if (!TeaUtils.Client.isUnset(request.volume)) {
query["Volume"] = request.volume!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "AiccsSmartCall",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(AiccsSmartCallResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func aiccsSmartCall(_ request: AiccsSmartCallRequest) async throws -> AiccsSmartCallResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await aiccsSmartCallWithOptions(request as! AiccsSmartCallRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func aiccsSmartCallOperateWithOptions(_ request: AiccsSmartCallOperateRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> AiccsSmartCallOperateResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.callId)) {
query["CallId"] = request.callId ?? "";
}
if (!TeaUtils.Client.isUnset(request.command)) {
query["Command"] = request.command ?? "";
}
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.param)) {
query["Param"] = request.param ?? "";
}
if (!TeaUtils.Client.isUnset(request.prodCode)) {
query["ProdCode"] = request.prodCode ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "AiccsSmartCallOperate",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(AiccsSmartCallOperateResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func aiccsSmartCallOperate(_ request: AiccsSmartCallOperateRequest) async throws -> AiccsSmartCallOperateResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await aiccsSmartCallOperateWithOptions(request as! AiccsSmartCallOperateRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func answerCallWithOptions(_ request: AnswerCallRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> AnswerCallResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.callId)) {
body["CallId"] = request.callId ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.connectionId)) {
body["ConnectionId"] = request.connectionId ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.jobId)) {
body["JobId"] = request.jobId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "AnswerCall",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(AnswerCallResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func answerCall(_ request: AnswerCallRequest) async throws -> AnswerCallResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await answerCallWithOptions(request as! AnswerCallRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func attachTaskWithOptions(_ request: AttachTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> AttachTaskResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.callString)) {
query["CallString"] = request.callString ?? "";
}
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
if (!TeaUtils.Client.isUnset(request.taskId)) {
query["TaskId"] = request.taskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "AttachTask",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(AttachTaskResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func attachTask(_ request: AttachTaskRequest) async throws -> AttachTaskResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await attachTaskWithOptions(request as! AttachTaskRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func batchCreateQualityProjectsWithOptions(_ request: BatchCreateQualityProjectsRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> BatchCreateQualityProjectsResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.analysisIds)) {
query["AnalysisIds"] = request.analysisIds ?? [];
}
if (!TeaUtils.Client.isUnset(request.channelTouchType)) {
query["ChannelTouchType"] = request.channelTouchType ?? [];
}
if (!TeaUtils.Client.isUnset(request.checkFreqType)) {
query["CheckFreqType"] = request.checkFreqType!;
}
if (!TeaUtils.Client.isUnset(request.instanceList)) {
query["InstanceList"] = request.instanceList ?? [];
}
if (!TeaUtils.Client.isUnset(request.projectName)) {
query["ProjectName"] = request.projectName ?? "";
}
if (!TeaUtils.Client.isUnset(request.timeRangeEnd)) {
query["TimeRangeEnd"] = request.timeRangeEnd ?? "";
}
if (!TeaUtils.Client.isUnset(request.timeRangeStart)) {
query["TimeRangeStart"] = request.timeRangeStart ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "BatchCreateQualityProjects",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(BatchCreateQualityProjectsResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func batchCreateQualityProjects(_ request: BatchCreateQualityProjectsRequest) async throws -> BatchCreateQualityProjectsResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await batchCreateQualityProjectsWithOptions(request as! BatchCreateQualityProjectsRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func cancelTaskWithOptions(_ request: CancelTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CancelTaskResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
if (!TeaUtils.Client.isUnset(request.taskId)) {
query["TaskId"] = request.taskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "CancelTask",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(CancelTaskResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func cancelTask(_ request: CancelTaskRequest) async throws -> CancelTaskResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await cancelTaskWithOptions(request as! CancelTaskRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func changeChatAgentStatusWithOptions(_ request: ChangeChatAgentStatusRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ChangeChatAgentStatusResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.method)) {
body["Method"] = request.method ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "ChangeChatAgentStatus",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(ChangeChatAgentStatusResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func changeChatAgentStatus(_ request: ChangeChatAgentStatusRequest) async throws -> ChangeChatAgentStatusResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await changeChatAgentStatusWithOptions(request as! ChangeChatAgentStatusRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func changeQualityProjectStatusWithOptions(_ request: ChangeQualityProjectStatusRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ChangeQualityProjectStatusResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.projectId)) {
query["ProjectId"] = request.projectId!;
}
if (!TeaUtils.Client.isUnset(request.status)) {
query["Status"] = request.status!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "ChangeQualityProjectStatus",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(ChangeQualityProjectStatusResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func changeQualityProjectStatus(_ request: ChangeQualityProjectStatusRequest) async throws -> ChangeQualityProjectStatusResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await changeQualityProjectStatusWithOptions(request as! ChangeQualityProjectStatusRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createAgentWithOptions(_ request: CreateAgentRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateAgentResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.displayName)) {
body["DisplayName"] = request.displayName ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
var bodyFlat: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.skillGroupId)) {
bodyFlat["SkillGroupId"] = request.skillGroupId ?? [];
}
if (!TeaUtils.Client.isUnset(request.skillGroupIdList)) {
bodyFlat["SkillGroupIdList"] = request.skillGroupIdList ?? [];
}
body = Tea.TeaConverter.merge([:], body, AlibabaCloudOpenApiUtil.Client.query(bodyFlat))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "CreateAgent",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(CreateAgentResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createAgent(_ request: CreateAgentRequest) async throws -> CreateAgentResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await createAgentWithOptions(request as! CreateAgentRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createAiOutboundTaskWithOptions(_ tmpReq: CreateAiOutboundTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateAiOutboundTaskResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: CreateAiOutboundTaskShrinkRequest = CreateAiOutboundTaskShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.outboundNums)) {
request.outboundNumsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.outboundNums, "OutboundNums", "json")
}
if (!TeaUtils.Client.isUnset(tmpReq.recallRule)) {
request.recallRuleShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.recallRule, "RecallRule", "json")
}
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.concurrentRate)) {
query["ConcurrentRate"] = request.concurrentRate!;
}
if (!TeaUtils.Client.isUnset(request.description_)) {
query["Description"] = request.description_ ?? "";
}
if (!TeaUtils.Client.isUnset(request.executionTime)) {
query["ExecutionTime"] = request.executionTime ?? "";
}
if (!TeaUtils.Client.isUnset(request.forecastCallRate)) {
query["ForecastCallRate"] = request.forecastCallRate!;
}
if (!TeaUtils.Client.isUnset(request.handlerId)) {
query["HandlerId"] = request.handlerId!;
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.name)) {
query["Name"] = request.name ?? "";
}
if (!TeaUtils.Client.isUnset(request.numRepeated)) {
query["NumRepeated"] = request.numRepeated!;
}
if (!TeaUtils.Client.isUnset(request.outboundNumsShrink)) {
query["OutboundNums"] = request.outboundNumsShrink ?? "";
}
if (!TeaUtils.Client.isUnset(request.recallRuleShrink)) {
query["RecallRule"] = request.recallRuleShrink ?? "";
}
if (!TeaUtils.Client.isUnset(request.type)) {
query["Type"] = request.type!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "CreateAiOutboundTask",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(CreateAiOutboundTaskResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createAiOutboundTask(_ request: CreateAiOutboundTaskRequest) async throws -> CreateAiOutboundTaskResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await createAiOutboundTaskWithOptions(request as! CreateAiOutboundTaskRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createAiOutboundTaskBatchWithOptions(_ request: CreateAiOutboundTaskBatchRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateAiOutboundTaskBatchResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.taskId)) {
query["TaskId"] = request.taskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "CreateAiOutboundTaskBatch",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(CreateAiOutboundTaskBatchResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createAiOutboundTaskBatch(_ request: CreateAiOutboundTaskBatchRequest) async throws -> CreateAiOutboundTaskBatchResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await createAiOutboundTaskBatchWithOptions(request as! CreateAiOutboundTaskBatchRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createDepartmentWithOptions(_ request: CreateDepartmentRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateDepartmentResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.departmentName)) {
query["DepartmentName"] = request.departmentName ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "CreateDepartment",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(CreateDepartmentResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createDepartment(_ request: CreateDepartmentRequest) async throws -> CreateDepartmentResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await createDepartmentWithOptions(request as! CreateDepartmentRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createOutboundTaskWithOptions(_ request: CreateOutboundTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateOutboundTaskResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.ani)) {
query["Ani"] = request.ani ?? "";
}
if (!TeaUtils.Client.isUnset(request.callInfos)) {
query["CallInfos"] = request.callInfos ?? "";
}
if (!TeaUtils.Client.isUnset(request.departmentId)) {
query["DepartmentId"] = request.departmentId!;
}
if (!TeaUtils.Client.isUnset(request.description_)) {
query["Description"] = request.description_ ?? "";
}
if (!TeaUtils.Client.isUnset(request.endDate)) {
query["EndDate"] = request.endDate ?? "";
}
if (!TeaUtils.Client.isUnset(request.endTime)) {
query["EndTime"] = request.endTime ?? "";
}
if (!TeaUtils.Client.isUnset(request.extAttrs)) {
query["ExtAttrs"] = request.extAttrs ?? "";
}
if (!TeaUtils.Client.isUnset(request.groupName)) {
query["GroupName"] = request.groupName ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.model)) {
query["Model"] = request.model!;
}
if (!TeaUtils.Client.isUnset(request.retryInterval)) {
query["RetryInterval"] = request.retryInterval!;
}
if (!TeaUtils.Client.isUnset(request.retryTime)) {
query["RetryTime"] = request.retryTime!;
}
if (!TeaUtils.Client.isUnset(request.skillGroup)) {
query["SkillGroup"] = request.skillGroup!;
}
if (!TeaUtils.Client.isUnset(request.startDate)) {
query["StartDate"] = request.startDate ?? "";
}
if (!TeaUtils.Client.isUnset(request.startTime)) {
query["StartTime"] = request.startTime ?? "";
}
if (!TeaUtils.Client.isUnset(request.taskName)) {
query["TaskName"] = request.taskName ?? "";
}
if (!TeaUtils.Client.isUnset(request.taskType)) {
query["TaskType"] = request.taskType!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "CreateOutboundTask",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(CreateOutboundTaskResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createOutboundTask(_ request: CreateOutboundTaskRequest) async throws -> CreateOutboundTaskResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await createOutboundTaskWithOptions(request as! CreateOutboundTaskRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createQualityProjectWithOptions(_ request: CreateQualityProjectRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateQualityProjectResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.analysisIds)) {
body["AnalysisIds"] = request.analysisIds ?? [];
}
if (!TeaUtils.Client.isUnset(request.channelTouchType)) {
body["ChannelTouchType"] = request.channelTouchType ?? [];
}
if (!TeaUtils.Client.isUnset(request.checkFreqType)) {
body["CheckFreqType"] = request.checkFreqType!;
}
if (!TeaUtils.Client.isUnset(request.depList)) {
body["DepList"] = request.depList ?? [];
}
if (!TeaUtils.Client.isUnset(request.groupList)) {
body["GroupList"] = request.groupList ?? [];
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.projectName)) {
body["ProjectName"] = request.projectName ?? "";
}
if (!TeaUtils.Client.isUnset(request.scopeType)) {
body["ScopeType"] = request.scopeType!;
}
if (!TeaUtils.Client.isUnset(request.servicerList)) {
body["ServicerList"] = request.servicerList ?? [];
}
if (!TeaUtils.Client.isUnset(request.timeRangeEnd)) {
body["TimeRangeEnd"] = request.timeRangeEnd ?? "";
}
if (!TeaUtils.Client.isUnset(request.timeRangeStart)) {
body["TimeRangeStart"] = request.timeRangeStart ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "CreateQualityProject",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(CreateQualityProjectResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createQualityProject(_ request: CreateQualityProjectRequest) async throws -> CreateQualityProjectResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await createQualityProjectWithOptions(request as! CreateQualityProjectRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createQualityRuleWithOptions(_ request: CreateQualityRuleRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateQualityRuleResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.keyWords)) {
body["KeyWords"] = request.keyWords ?? [];
}
if (!TeaUtils.Client.isUnset(request.matchType)) {
body["MatchType"] = request.matchType!;
}
if (!TeaUtils.Client.isUnset(request.name)) {
body["Name"] = request.name ?? "";
}
if (!TeaUtils.Client.isUnset(request.ruleTag)) {
body["RuleTag"] = request.ruleTag!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "CreateQualityRule",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(CreateQualityRuleResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createQualityRule(_ request: CreateQualityRuleRequest) async throws -> CreateQualityRuleResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await createQualityRuleWithOptions(request as! CreateQualityRuleRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createSkillGroupWithOptions(_ request: CreateSkillGroupRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateSkillGroupResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.channelType)) {
body["ChannelType"] = request.channelType!;
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.departmentId)) {
body["DepartmentId"] = request.departmentId!;
}
if (!TeaUtils.Client.isUnset(request.description_)) {
body["Description"] = request.description_ ?? "";
}
if (!TeaUtils.Client.isUnset(request.displayName)) {
body["DisplayName"] = request.displayName ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.skillGroupName)) {
body["SkillGroupName"] = request.skillGroupName ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "CreateSkillGroup",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(CreateSkillGroupResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createSkillGroup(_ request: CreateSkillGroupRequest) async throws -> CreateSkillGroupResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await createSkillGroupWithOptions(request as! CreateSkillGroupRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createTaskWithOptions(_ request: CreateTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateTaskResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.callString)) {
query["CallString"] = request.callString ?? "";
}
if (!TeaUtils.Client.isUnset(request.callStringType)) {
query["CallStringType"] = request.callStringType ?? "";
}
if (!TeaUtils.Client.isUnset(request.caller)) {
query["Caller"] = request.caller ?? "";
}
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
if (!TeaUtils.Client.isUnset(request.retryCount)) {
query["RetryCount"] = request.retryCount!;
}
if (!TeaUtils.Client.isUnset(request.retryFlag)) {
query["RetryFlag"] = request.retryFlag!;
}
if (!TeaUtils.Client.isUnset(request.retryInterval)) {
query["RetryInterval"] = request.retryInterval!;
}
if (!TeaUtils.Client.isUnset(request.retryStatusCode)) {
query["RetryStatusCode"] = request.retryStatusCode ?? "";
}
if (!TeaUtils.Client.isUnset(request.robotId)) {
query["RobotId"] = request.robotId ?? "";
}
if (!TeaUtils.Client.isUnset(request.seatCount)) {
query["SeatCount"] = request.seatCount ?? "";
}
if (!TeaUtils.Client.isUnset(request.startNow)) {
query["StartNow"] = request.startNow!;
}
if (!TeaUtils.Client.isUnset(request.taskName)) {
query["TaskName"] = request.taskName ?? "";
}
if (!TeaUtils.Client.isUnset(request.workDay)) {
query["WorkDay"] = request.workDay ?? "";
}
if (!TeaUtils.Client.isUnset(request.workTimeList)) {
query["WorkTimeList"] = request.workTimeList ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "CreateTask",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(CreateTaskResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createTask(_ request: CreateTaskRequest) async throws -> CreateTaskResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await createTaskWithOptions(request as! CreateTaskRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createThirdSsoAgentWithOptions(_ request: CreateThirdSsoAgentRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateThirdSsoAgentResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountId)) {
body["AccountId"] = request.accountId ?? "";
}
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientId)) {
body["ClientId"] = request.clientId ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.displayName)) {
body["DisplayName"] = request.displayName ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
var bodyFlat: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.roleIds)) {
bodyFlat["RoleIds"] = request.roleIds ?? [];
}
if (!TeaUtils.Client.isUnset(request.skillGroupIds)) {
bodyFlat["SkillGroupIds"] = request.skillGroupIds ?? [];
}
body = Tea.TeaConverter.merge([:], body, AlibabaCloudOpenApiUtil.Client.query(bodyFlat))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "CreateThirdSsoAgent",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(CreateThirdSsoAgentResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func createThirdSsoAgent(_ request: CreateThirdSsoAgentRequest) async throws -> CreateThirdSsoAgentResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await createThirdSsoAgentWithOptions(request as! CreateThirdSsoAgentRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteAgentWithOptions(_ request: DeleteAgentRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteAgentResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
query["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
query["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "DeleteAgent",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "DELETE",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(DeleteAgentResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteAgent(_ request: DeleteAgentRequest) async throws -> DeleteAgentResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await deleteAgentWithOptions(request as! DeleteAgentRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteAiOutboundTaskWithOptions(_ request: DeleteAiOutboundTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteAiOutboundTaskResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.taskId)) {
query["TaskId"] = request.taskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "DeleteAiOutboundTask",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(DeleteAiOutboundTaskResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteAiOutboundTask(_ request: DeleteAiOutboundTaskRequest) async throws -> DeleteAiOutboundTaskResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await deleteAiOutboundTaskWithOptions(request as! DeleteAiOutboundTaskRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteDepartmentWithOptions(_ request: DeleteDepartmentRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteDepartmentResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.departmentId)) {
query["DepartmentId"] = request.departmentId!;
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "DeleteDepartment",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(DeleteDepartmentResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteDepartment(_ request: DeleteDepartmentRequest) async throws -> DeleteDepartmentResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await deleteDepartmentWithOptions(request as! DeleteDepartmentRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteHotlineNumberWithOptions(_ request: DeleteHotlineNumberRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteHotlineNumberResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.hotlineNumber)) {
body["HotlineNumber"] = request.hotlineNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "DeleteHotlineNumber",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(DeleteHotlineNumberResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteHotlineNumber(_ request: DeleteHotlineNumberRequest) async throws -> DeleteHotlineNumberResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await deleteHotlineNumberWithOptions(request as! DeleteHotlineNumberRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteOutboundTaskWithOptions(_ request: DeleteOutboundTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteOutboundTaskResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.outboundTaskId)) {
query["OutboundTaskId"] = request.outboundTaskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "DeleteOutboundTask",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(DeleteOutboundTaskResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteOutboundTask(_ request: DeleteOutboundTaskRequest) async throws -> DeleteOutboundTaskResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await deleteOutboundTaskWithOptions(request as! DeleteOutboundTaskRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteOuterAccountWithOptions(_ request: DeleteOuterAccountRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteOuterAccountResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "DeleteOuterAccount",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(DeleteOuterAccountResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteOuterAccount(_ request: DeleteOuterAccountRequest) async throws -> DeleteOuterAccountResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await deleteOuterAccountWithOptions(request as! DeleteOuterAccountRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteQualityProjectWithOptions(_ request: DeleteQualityProjectRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteQualityProjectResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.projectId)) {
query["ProjectId"] = request.projectId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "DeleteQualityProject",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(DeleteQualityProjectResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteQualityProject(_ request: DeleteQualityProjectRequest) async throws -> DeleteQualityProjectResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await deleteQualityProjectWithOptions(request as! DeleteQualityProjectRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteQualityRuleWithOptions(_ request: DeleteQualityRuleRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteQualityRuleResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.id)) {
query["Id"] = request.id!;
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "DeleteQualityRule",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(DeleteQualityRuleResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteQualityRule(_ request: DeleteQualityRuleRequest) async throws -> DeleteQualityRuleResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await deleteQualityRuleWithOptions(request as! DeleteQualityRuleRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteSkillGroupWithOptions(_ request: DeleteSkillGroupRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteSkillGroupResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "DeleteSkillGroup",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(DeleteSkillGroupResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteSkillGroup(_ request: DeleteSkillGroupRequest) async throws -> DeleteSkillGroupResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await deleteSkillGroupWithOptions(request as! DeleteSkillGroupRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func describeRecordDataWithOptions(_ request: DescribeRecordDataRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeRecordDataResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountId)) {
query["AccountId"] = request.accountId ?? "";
}
if (!TeaUtils.Client.isUnset(request.accountType)) {
query["AccountType"] = request.accountType ?? "";
}
if (!TeaUtils.Client.isUnset(request.acid)) {
query["Acid"] = request.acid ?? "";
}
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.prodCode)) {
query["ProdCode"] = request.prodCode ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
if (!TeaUtils.Client.isUnset(request.secLevel)) {
query["SecLevel"] = request.secLevel!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "DescribeRecordData",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(DescribeRecordDataResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func describeRecordData(_ request: DescribeRecordDataRequest) async throws -> DescribeRecordDataResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await describeRecordDataWithOptions(request as! DescribeRecordDataRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func editQualityProjectWithOptions(_ request: EditQualityProjectRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> EditQualityProjectResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.analysisIds)) {
query["AnalysisIds"] = request.analysisIds ?? [];
}
if (!TeaUtils.Client.isUnset(request.channelTouchType)) {
query["ChannelTouchType"] = request.channelTouchType ?? [];
}
if (!TeaUtils.Client.isUnset(request.checkFreqType)) {
query["CheckFreqType"] = request.checkFreqType!;
}
if (!TeaUtils.Client.isUnset(request.depList)) {
query["DepList"] = request.depList ?? [];
}
if (!TeaUtils.Client.isUnset(request.groupList)) {
query["GroupList"] = request.groupList ?? [];
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.projectId)) {
query["ProjectId"] = request.projectId!;
}
if (!TeaUtils.Client.isUnset(request.projectVersion)) {
query["ProjectVersion"] = request.projectVersion!;
}
if (!TeaUtils.Client.isUnset(request.scopeType)) {
query["ScopeType"] = request.scopeType!;
}
if (!TeaUtils.Client.isUnset(request.servicerList)) {
query["ServicerList"] = request.servicerList ?? [];
}
if (!TeaUtils.Client.isUnset(request.timeRangeEnd)) {
query["TimeRangeEnd"] = request.timeRangeEnd ?? "";
}
if (!TeaUtils.Client.isUnset(request.timeRangeStart)) {
query["TimeRangeStart"] = request.timeRangeStart ?? "";
}
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.projectName)) {
body["ProjectName"] = request.projectName ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query),
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "EditQualityProject",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(EditQualityProjectResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func editQualityProject(_ request: EditQualityProjectRequest) async throws -> EditQualityProjectResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await editQualityProjectWithOptions(request as! EditQualityProjectRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func editQualityRuleWithOptions(_ request: EditQualityRuleRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> EditQualityRuleResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.keyWords)) {
body["KeyWords"] = request.keyWords ?? [];
}
if (!TeaUtils.Client.isUnset(request.matchType)) {
body["MatchType"] = request.matchType!;
}
if (!TeaUtils.Client.isUnset(request.name)) {
body["Name"] = request.name ?? "";
}
if (!TeaUtils.Client.isUnset(request.qualityRuleId)) {
body["QualityRuleId"] = request.qualityRuleId!;
}
if (!TeaUtils.Client.isUnset(request.ruleTag)) {
body["RuleTag"] = request.ruleTag!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "EditQualityRule",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(EditQualityRuleResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func editQualityRule(_ request: EditQualityRuleRequest) async throws -> EditQualityRuleResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await editQualityRuleWithOptions(request as! EditQualityRuleRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func editQualityRuleTagWithOptions(_ request: EditQualityRuleTagRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> EditQualityRuleTagResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.analysisTypes)) {
query["AnalysisTypes"] = request.analysisTypes ?? [];
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "EditQualityRuleTag",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(EditQualityRuleTagResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func editQualityRuleTag(_ request: EditQualityRuleTagRequest) async throws -> EditQualityRuleTagResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await editQualityRuleTagWithOptions(request as! EditQualityRuleTagRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func encryptPhoneNumWithOptions(_ request: EncryptPhoneNumRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> EncryptPhoneNumResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "EncryptPhoneNum",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(EncryptPhoneNumResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func encryptPhoneNum(_ request: EncryptPhoneNumRequest) async throws -> EncryptPhoneNumResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await encryptPhoneNumWithOptions(request as! EncryptPhoneNumRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func fetchCallWithOptions(_ request: FetchCallRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> FetchCallResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.callId)) {
body["CallId"] = request.callId ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.connectionId)) {
body["ConnectionId"] = request.connectionId ?? "";
}
if (!TeaUtils.Client.isUnset(request.holdConnectionId)) {
body["HoldConnectionId"] = request.holdConnectionId ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.jobId)) {
body["JobId"] = request.jobId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "FetchCall",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(FetchCallResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func fetchCall(_ request: FetchCallRequest) async throws -> FetchCallResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await fetchCallWithOptions(request as! FetchCallRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func finishHotlineServiceWithOptions(_ request: FinishHotlineServiceRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> FinishHotlineServiceResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "FinishHotlineService",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(FinishHotlineServiceResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func finishHotlineService(_ request: FinishHotlineServiceRequest) async throws -> FinishHotlineServiceResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await finishHotlineServiceWithOptions(request as! FinishHotlineServiceRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func generateWebSocketSignWithOptions(_ request: GenerateWebSocketSignRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GenerateWebSocketSignResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GenerateWebSocketSign",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GenerateWebSocketSignResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func generateWebSocketSign(_ request: GenerateWebSocketSignRequest) async throws -> GenerateWebSocketSignResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await generateWebSocketSignWithOptions(request as! GenerateWebSocketSignRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAgentWithOptions(_ request: GetAgentRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetAgentResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetAgent",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetAgentResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAgent(_ request: GetAgentRequest) async throws -> GetAgentResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getAgentWithOptions(request as! GetAgentRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAgentBasisStatusWithOptions(_ tmpReq: GetAgentBasisStatusRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetAgentBasisStatusResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: GetAgentBasisStatusShrinkRequest = GetAgentBasisStatusShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.agentIds)) {
request.agentIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.agentIds, "AgentIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.depIds)) {
request.depIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.depIds, "DepIds", "simple")
}
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetAgentBasisStatus",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetAgentBasisStatusResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAgentBasisStatus(_ request: GetAgentBasisStatusRequest) async throws -> GetAgentBasisStatusResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getAgentBasisStatusWithOptions(request as! GetAgentBasisStatusRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAgentByIdWithOptions(_ request: GetAgentByIdRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetAgentByIdResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.agentId)) {
body["AgentId"] = request.agentId!;
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetAgentById",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetAgentByIdResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAgentById(_ request: GetAgentByIdRequest) async throws -> GetAgentByIdResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getAgentByIdWithOptions(request as! GetAgentByIdRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAgentDetailReportWithOptions(_ tmpReq: GetAgentDetailReportRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetAgentDetailReportResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: GetAgentDetailReportShrinkRequest = GetAgentDetailReportShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.agentIds)) {
request.agentIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.agentIds, "AgentIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.depIds)) {
request.depIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.depIds, "DepIds", "simple")
}
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetAgentDetailReport",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetAgentDetailReportResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAgentDetailReport(_ request: GetAgentDetailReportRequest) async throws -> GetAgentDetailReportResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getAgentDetailReportWithOptions(request as! GetAgentDetailReportRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAgentIndexRealTimeWithOptions(_ request: GetAgentIndexRealTimeRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetAgentIndexRealTimeResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.currentPage)) {
query["CurrentPage"] = request.currentPage!;
}
if (!TeaUtils.Client.isUnset(request.depIds)) {
query["DepIds"] = request.depIds ?? [];
}
if (!TeaUtils.Client.isUnset(request.groupIds)) {
query["GroupIds"] = request.groupIds ?? [];
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.pageSize)) {
query["PageSize"] = request.pageSize!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetAgentIndexRealTime",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetAgentIndexRealTimeResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAgentIndexRealTime(_ request: GetAgentIndexRealTimeRequest) async throws -> GetAgentIndexRealTimeResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getAgentIndexRealTimeWithOptions(request as! GetAgentIndexRealTimeRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAgentServiceStatusWithOptions(_ tmpReq: GetAgentServiceStatusRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetAgentServiceStatusResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: GetAgentServiceStatusShrinkRequest = GetAgentServiceStatusShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.agentIds)) {
request.agentIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.agentIds, "AgentIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.depIds)) {
request.depIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.depIds, "DepIds", "simple")
}
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetAgentServiceStatus",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetAgentServiceStatusResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAgentServiceStatus(_ request: GetAgentServiceStatusRequest) async throws -> GetAgentServiceStatusResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getAgentServiceStatusWithOptions(request as! GetAgentServiceStatusRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAgentStatisticsWithOptions(_ tmpReq: GetAgentStatisticsRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetAgentStatisticsResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: GetAgentStatisticsShrinkRequest = GetAgentStatisticsShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.agentIds)) {
request.agentIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.agentIds, "AgentIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.depIds)) {
request.depIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.depIds, "DepIds", "simple")
}
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetAgentStatistics",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetAgentStatisticsResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAgentStatistics(_ request: GetAgentStatisticsRequest) async throws -> GetAgentStatisticsResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getAgentStatisticsWithOptions(request as! GetAgentStatisticsRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAiOutboundTaskBizDataWithOptions(_ request: GetAiOutboundTaskBizDataRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetAiOutboundTaskBizDataResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetAiOutboundTaskBizData",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetAiOutboundTaskBizDataResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAiOutboundTaskBizData(_ request: GetAiOutboundTaskBizDataRequest) async throws -> GetAiOutboundTaskBizDataResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getAiOutboundTaskBizDataWithOptions(request as! GetAiOutboundTaskBizDataRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAiOutboundTaskDetailWithOptions(_ request: GetAiOutboundTaskDetailRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetAiOutboundTaskDetailResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetAiOutboundTaskDetail",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetAiOutboundTaskDetailResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAiOutboundTaskDetail(_ request: GetAiOutboundTaskDetailRequest) async throws -> GetAiOutboundTaskDetailResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getAiOutboundTaskDetailWithOptions(request as! GetAiOutboundTaskDetailRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAiOutboundTaskExecDetailWithOptions(_ request: GetAiOutboundTaskExecDetailRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetAiOutboundTaskExecDetailResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetAiOutboundTaskExecDetail",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetAiOutboundTaskExecDetailResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAiOutboundTaskExecDetail(_ request: GetAiOutboundTaskExecDetailRequest) async throws -> GetAiOutboundTaskExecDetailResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getAiOutboundTaskExecDetailWithOptions(request as! GetAiOutboundTaskExecDetailRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAiOutboundTaskListWithOptions(_ request: GetAiOutboundTaskListRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetAiOutboundTaskListResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetAiOutboundTaskList",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetAiOutboundTaskListResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAiOutboundTaskList(_ request: GetAiOutboundTaskListRequest) async throws -> GetAiOutboundTaskListResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getAiOutboundTaskListWithOptions(request as! GetAiOutboundTaskListRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAiOutboundTaskProgressWithOptions(_ request: GetAiOutboundTaskProgressRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetAiOutboundTaskProgressResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetAiOutboundTaskProgress",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetAiOutboundTaskProgressResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAiOutboundTaskProgress(_ request: GetAiOutboundTaskProgressRequest) async throws -> GetAiOutboundTaskProgressResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getAiOutboundTaskProgressWithOptions(request as! GetAiOutboundTaskProgressRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAllDepartmentWithOptions(_ request: GetAllDepartmentRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetAllDepartmentResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetAllDepartment",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetAllDepartmentResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getAllDepartment(_ request: GetAllDepartmentRequest) async throws -> GetAllDepartmentResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getAllDepartmentWithOptions(request as! GetAllDepartmentRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getCallSoundRecordWithOptions(_ request: GetCallSoundRecordRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetCallSoundRecordResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.callId)) {
query["CallId"] = request.callId ?? "";
}
if (!TeaUtils.Client.isUnset(request.createTime)) {
query["CreateTime"] = request.createTime ?? "";
}
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetCallSoundRecord",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetCallSoundRecordResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getCallSoundRecord(_ request: GetCallSoundRecordRequest) async throws -> GetCallSoundRecordResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getCallSoundRecordWithOptions(request as! GetCallSoundRecordRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getConfigNumListWithOptions(_ request: GetConfigNumListRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetConfigNumListResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetConfigNumList",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetConfigNumListResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getConfigNumList(_ request: GetConfigNumListRequest) async throws -> GetConfigNumListResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getConfigNumListWithOptions(request as! GetConfigNumListRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getCustomerInfoWithOptions(_ request: GetCustomerInfoRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetCustomerInfoResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetCustomerInfo",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetCustomerInfoResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getCustomerInfo(_ request: GetCustomerInfoRequest) async throws -> GetCustomerInfoResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getCustomerInfoWithOptions(request as! GetCustomerInfoRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getDepGroupTreeDataWithOptions(_ request: GetDepGroupTreeDataRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetDepGroupTreeDataResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetDepGroupTreeData",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetDepGroupTreeDataResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getDepGroupTreeData(_ request: GetDepGroupTreeDataRequest) async throws -> GetDepGroupTreeDataResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getDepGroupTreeDataWithOptions(request as! GetDepGroupTreeDataRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getDepartmentalLatitudeAgentStatusWithOptions(_ tmpReq: GetDepartmentalLatitudeAgentStatusRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetDepartmentalLatitudeAgentStatusResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: GetDepartmentalLatitudeAgentStatusShrinkRequest = GetDepartmentalLatitudeAgentStatusShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.depIds)) {
request.depIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.depIds, "DepIds", "simple")
}
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetDepartmentalLatitudeAgentStatus",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetDepartmentalLatitudeAgentStatusResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getDepartmentalLatitudeAgentStatus(_ request: GetDepartmentalLatitudeAgentStatusRequest) async throws -> GetDepartmentalLatitudeAgentStatusResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getDepartmentalLatitudeAgentStatusWithOptions(request as! GetDepartmentalLatitudeAgentStatusRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineAgentDetailWithOptions(_ request: GetHotlineAgentDetailRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetHotlineAgentDetailResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetHotlineAgentDetail",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetHotlineAgentDetailResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineAgentDetail(_ request: GetHotlineAgentDetailRequest) async throws -> GetHotlineAgentDetailResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getHotlineAgentDetailWithOptions(request as! GetHotlineAgentDetailRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineAgentDetailReportWithOptions(_ request: GetHotlineAgentDetailReportRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetHotlineAgentDetailReportResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.currentPage)) {
query["CurrentPage"] = request.currentPage!;
}
if (!TeaUtils.Client.isUnset(request.depIds)) {
query["DepIds"] = request.depIds ?? [];
}
if (!TeaUtils.Client.isUnset(request.endDate)) {
query["EndDate"] = request.endDate!;
}
if (!TeaUtils.Client.isUnset(request.groupIds)) {
query["GroupIds"] = request.groupIds ?? [];
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.pageSize)) {
query["PageSize"] = request.pageSize!;
}
if (!TeaUtils.Client.isUnset(request.startDate)) {
query["StartDate"] = request.startDate!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetHotlineAgentDetailReport",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetHotlineAgentDetailReportResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineAgentDetailReport(_ request: GetHotlineAgentDetailReportRequest) async throws -> GetHotlineAgentDetailReportResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getHotlineAgentDetailReportWithOptions(request as! GetHotlineAgentDetailReportRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineAgentStatusWithOptions(_ request: GetHotlineAgentStatusRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetHotlineAgentStatusResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetHotlineAgentStatus",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetHotlineAgentStatusResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineAgentStatus(_ request: GetHotlineAgentStatusRequest) async throws -> GetHotlineAgentStatusResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getHotlineAgentStatusWithOptions(request as! GetHotlineAgentStatusRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineCallActionWithOptions(_ request: GetHotlineCallActionRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetHotlineCallActionResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.acc)) {
body["Acc"] = request.acc ?? "";
}
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.act)) {
body["Act"] = request.act!;
}
if (!TeaUtils.Client.isUnset(request.biz)) {
body["Biz"] = request.biz ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.fromSource)) {
body["FromSource"] = request.fromSource ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetHotlineCallAction",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetHotlineCallActionResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineCallAction(_ request: GetHotlineCallActionRequest) async throws -> GetHotlineCallActionResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getHotlineCallActionWithOptions(request as! GetHotlineCallActionRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineGroupDetailReportWithOptions(_ request: GetHotlineGroupDetailReportRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetHotlineGroupDetailReportResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.currentPage)) {
query["CurrentPage"] = request.currentPage!;
}
if (!TeaUtils.Client.isUnset(request.depIds)) {
query["DepIds"] = request.depIds ?? [];
}
if (!TeaUtils.Client.isUnset(request.endDate)) {
query["EndDate"] = request.endDate!;
}
if (!TeaUtils.Client.isUnset(request.groupIds)) {
query["GroupIds"] = request.groupIds ?? [];
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.pageSize)) {
query["PageSize"] = request.pageSize!;
}
if (!TeaUtils.Client.isUnset(request.startDate)) {
query["StartDate"] = request.startDate!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetHotlineGroupDetailReport",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetHotlineGroupDetailReportResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineGroupDetailReport(_ request: GetHotlineGroupDetailReportRequest) async throws -> GetHotlineGroupDetailReportResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getHotlineGroupDetailReportWithOptions(request as! GetHotlineGroupDetailReportRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineMessageLogWithOptions(_ request: GetHotlineMessageLogRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetHotlineMessageLogResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetHotlineMessageLog",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetHotlineMessageLogResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineMessageLog(_ request: GetHotlineMessageLogRequest) async throws -> GetHotlineMessageLogResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getHotlineMessageLogWithOptions(request as! GetHotlineMessageLogRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineRuntimeInfoWithOptions(_ request: GetHotlineRuntimeInfoRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetHotlineRuntimeInfoResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetHotlineRuntimeInfo",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetHotlineRuntimeInfoResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineRuntimeInfo(_ request: GetHotlineRuntimeInfoRequest) async throws -> GetHotlineRuntimeInfoResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getHotlineRuntimeInfoWithOptions(request as! GetHotlineRuntimeInfoRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineServiceStatisticsWithOptions(_ tmpReq: GetHotlineServiceStatisticsRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetHotlineServiceStatisticsResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: GetHotlineServiceStatisticsShrinkRequest = GetHotlineServiceStatisticsShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.agentIds)) {
request.agentIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.agentIds, "AgentIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.depIds)) {
request.depIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.depIds, "DepIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.groupIds)) {
request.groupIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.groupIds, "GroupIds", "simple")
}
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetHotlineServiceStatistics",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetHotlineServiceStatisticsResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineServiceStatistics(_ request: GetHotlineServiceStatisticsRequest) async throws -> GetHotlineServiceStatisticsResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getHotlineServiceStatisticsWithOptions(request as! GetHotlineServiceStatisticsRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineWaitingNumberWithOptions(_ request: GetHotlineWaitingNumberRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetHotlineWaitingNumberResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetHotlineWaitingNumber",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetHotlineWaitingNumberResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getHotlineWaitingNumber(_ request: GetHotlineWaitingNumberRequest) async throws -> GetHotlineWaitingNumberResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getHotlineWaitingNumberWithOptions(request as! GetHotlineWaitingNumberRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getIndexCurrentValueWithOptions(_ request: GetIndexCurrentValueRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetIndexCurrentValueResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.depIds)) {
query["DepIds"] = request.depIds ?? "";
}
if (!TeaUtils.Client.isUnset(request.groupIds)) {
query["GroupIds"] = request.groupIds ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetIndexCurrentValue",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetIndexCurrentValueResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getIndexCurrentValue(_ request: GetIndexCurrentValueRequest) async throws -> GetIndexCurrentValueResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getIndexCurrentValueWithOptions(request as! GetIndexCurrentValueRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getInstanceListWithOptions(_ request: GetInstanceListRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetInstanceListResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.name)) {
body["Name"] = request.name ?? "";
}
if (!TeaUtils.Client.isUnset(request.pageNumber)) {
body["PageNumber"] = request.pageNumber!;
}
if (!TeaUtils.Client.isUnset(request.pageSize)) {
body["PageSize"] = request.pageSize!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetInstanceList",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetInstanceListResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getInstanceList(_ request: GetInstanceListRequest) async throws -> GetInstanceListResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getInstanceListWithOptions(request as! GetInstanceListRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getMcuLvsIpWithOptions(_ request: GetMcuLvsIpRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetMcuLvsIpResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetMcuLvsIp",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetMcuLvsIpResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getMcuLvsIp(_ request: GetMcuLvsIpRequest) async throws -> GetMcuLvsIpResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getMcuLvsIpWithOptions(request as! GetMcuLvsIpRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getNumLocationWithOptions(_ request: GetNumLocationRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetNumLocationResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetNumLocation",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetNumLocationResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getNumLocation(_ request: GetNumLocationRequest) async throws -> GetNumLocationResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getNumLocationWithOptions(request as! GetNumLocationRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getOnlineSeatInformationWithOptions(_ tmpReq: GetOnlineSeatInformationRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetOnlineSeatInformationResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: GetOnlineSeatInformationShrinkRequest = GetOnlineSeatInformationShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.agentIds)) {
request.agentIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.agentIds, "AgentIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.depIds)) {
request.depIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.depIds, "DepIds", "simple")
}
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetOnlineSeatInformation",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetOnlineSeatInformationResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getOnlineSeatInformation(_ request: GetOnlineSeatInformationRequest) async throws -> GetOnlineSeatInformationResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getOnlineSeatInformationWithOptions(request as! GetOnlineSeatInformationRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getOnlineServiceVolumeWithOptions(_ tmpReq: GetOnlineServiceVolumeRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetOnlineServiceVolumeResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: GetOnlineServiceVolumeShrinkRequest = GetOnlineServiceVolumeShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.agentIds)) {
request.agentIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.agentIds, "AgentIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.depIds)) {
request.depIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.depIds, "DepIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.groupIds)) {
request.groupIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.groupIds, "GroupIds", "simple")
}
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetOnlineServiceVolume",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetOnlineServiceVolumeResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getOnlineServiceVolume(_ request: GetOnlineServiceVolumeRequest) async throws -> GetOnlineServiceVolumeResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getOnlineServiceVolumeWithOptions(request as! GetOnlineServiceVolumeRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getOutbounNumListWithOptions(_ request: GetOutbounNumListRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetOutbounNumListResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetOutbounNumList",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetOutbounNumListResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getOutbounNumList(_ request: GetOutbounNumListRequest) async throws -> GetOutbounNumListResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getOutbounNumListWithOptions(request as! GetOutbounNumListRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getQualityProjectDetailWithOptions(_ request: GetQualityProjectDetailRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetQualityProjectDetailResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.projectId)) {
query["ProjectId"] = request.projectId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetQualityProjectDetail",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetQualityProjectDetailResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getQualityProjectDetail(_ request: GetQualityProjectDetailRequest) async throws -> GetQualityProjectDetailResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getQualityProjectDetailWithOptions(request as! GetQualityProjectDetailRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getQualityProjectListWithOptions(_ request: GetQualityProjectListRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetQualityProjectListResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.pageNo)) {
query["PageNo"] = request.pageNo!;
}
if (!TeaUtils.Client.isUnset(request.pageSize)) {
query["PageSize"] = request.pageSize!;
}
if (!TeaUtils.Client.isUnset(request.projectId)) {
query["ProjectId"] = request.projectId!;
}
if (!TeaUtils.Client.isUnset(request.projectName)) {
query["ProjectName"] = request.projectName ?? "";
}
if (!TeaUtils.Client.isUnset(request.status)) {
query["Status"] = request.status!;
}
if (!TeaUtils.Client.isUnset(request.checkFreqType)) {
query["checkFreqType"] = request.checkFreqType!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetQualityProjectList",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetQualityProjectListResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getQualityProjectList(_ request: GetQualityProjectListRequest) async throws -> GetQualityProjectListResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getQualityProjectListWithOptions(request as! GetQualityProjectListRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getQualityProjectLogWithOptions(_ request: GetQualityProjectLogRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetQualityProjectLogResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.projectId)) {
query["ProjectId"] = request.projectId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetQualityProjectLog",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetQualityProjectLogResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getQualityProjectLog(_ request: GetQualityProjectLogRequest) async throws -> GetQualityProjectLogResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getQualityProjectLogWithOptions(request as! GetQualityProjectLogRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getQualityResultWithOptions(_ request: GetQualityResultRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetQualityResultResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.channelType)) {
query["ChannelType"] = request.channelType ?? "";
}
if (!TeaUtils.Client.isUnset(request.groupIds)) {
query["GroupIds"] = request.groupIds ?? [];
}
if (!TeaUtils.Client.isUnset(request.hitStatus)) {
query["HitStatus"] = request.hitStatus!;
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.pageNo)) {
query["PageNo"] = request.pageNo!;
}
if (!TeaUtils.Client.isUnset(request.pageSize)) {
query["PageSize"] = request.pageSize!;
}
if (!TeaUtils.Client.isUnset(request.projectIds)) {
query["ProjectIds"] = request.projectIds ?? [];
}
if (!TeaUtils.Client.isUnset(request.qualityRuleIds)) {
query["QualityRuleIds"] = request.qualityRuleIds ?? [];
}
if (!TeaUtils.Client.isUnset(request.touchEndTime)) {
query["TouchEndTime"] = request.touchEndTime ?? "";
}
if (!TeaUtils.Client.isUnset(request.touchStartTime)) {
query["TouchStartTime"] = request.touchStartTime ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetQualityResult",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetQualityResultResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getQualityResult(_ request: GetQualityResultRequest) async throws -> GetQualityResultResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getQualityResultWithOptions(request as! GetQualityResultRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getQualityRuleDetailWithOptions(_ request: GetQualityRuleDetailRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetQualityRuleDetailResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.qualityRuleId)) {
query["QualityRuleId"] = request.qualityRuleId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetQualityRuleDetail",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetQualityRuleDetailResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getQualityRuleDetail(_ request: GetQualityRuleDetailRequest) async throws -> GetQualityRuleDetailResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getQualityRuleDetailWithOptions(request as! GetQualityRuleDetailRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getQualityRuleListWithOptions(_ request: GetQualityRuleListRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetQualityRuleListResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.pageNo)) {
query["PageNo"] = request.pageNo!;
}
if (!TeaUtils.Client.isUnset(request.pageSize)) {
query["PageSize"] = request.pageSize!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetQualityRuleList",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetQualityRuleListResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getQualityRuleList(_ request: GetQualityRuleListRequest) async throws -> GetQualityRuleListResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getQualityRuleListWithOptions(request as! GetQualityRuleListRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getQualityRuleTagListWithOptions(_ request: GetQualityRuleTagListRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetQualityRuleTagListResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetQualityRuleTagList",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetQualityRuleTagListResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getQualityRuleTagList(_ request: GetQualityRuleTagListRequest) async throws -> GetQualityRuleTagListResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getQualityRuleTagListWithOptions(request as! GetQualityRuleTagListRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getQueueInformationWithOptions(_ tmpReq: GetQueueInformationRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetQueueInformationResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: GetQueueInformationShrinkRequest = GetQueueInformationShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.depIds)) {
request.depIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.depIds, "DepIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.groupIds)) {
request.groupIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.groupIds, "GroupIds", "simple")
}
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetQueueInformation",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetQueueInformationResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getQueueInformation(_ request: GetQueueInformationRequest) async throws -> GetQueueInformationResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getQueueInformationWithOptions(request as! GetQueueInformationRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getRecordDataWithOptions(_ request: GetRecordDataRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetRecordDataResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.acid)) {
query["Acid"] = request.acid ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetRecordData",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetRecordDataResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getRecordData(_ request: GetRecordDataRequest) async throws -> GetRecordDataResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getRecordDataWithOptions(request as! GetRecordDataRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getRecordUrlWithOptions(_ request: GetRecordUrlRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetRecordUrlResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetRecordUrl",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetRecordUrlResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getRecordUrl(_ request: GetRecordUrlRequest) async throws -> GetRecordUrlResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getRecordUrlWithOptions(request as! GetRecordUrlRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getRtcTokenWithOptions(_ request: GetRtcTokenRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetRtcTokenResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetRtcToken",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetRtcTokenResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getRtcToken(_ request: GetRtcTokenRequest) async throws -> GetRtcTokenResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getRtcTokenWithOptions(request as! GetRtcTokenRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getSeatInformationWithOptions(_ tmpReq: GetSeatInformationRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetSeatInformationResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: GetSeatInformationShrinkRequest = GetSeatInformationShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.depIds)) {
request.depIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.depIds, "depIds", "simple")
}
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetSeatInformation",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetSeatInformationResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getSeatInformation(_ request: GetSeatInformationRequest) async throws -> GetSeatInformationResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getSeatInformationWithOptions(request as! GetSeatInformationRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getSkillGroupAgentStatusDetailsWithOptions(_ tmpReq: GetSkillGroupAgentStatusDetailsRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetSkillGroupAgentStatusDetailsResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: GetSkillGroupAgentStatusDetailsShrinkRequest = GetSkillGroupAgentStatusDetailsShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.depIds)) {
request.depIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.depIds, "DepIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.groupIds)) {
request.groupIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.groupIds, "GroupIds", "simple")
}
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetSkillGroupAgentStatusDetails",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetSkillGroupAgentStatusDetailsResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getSkillGroupAgentStatusDetails(_ request: GetSkillGroupAgentStatusDetailsRequest) async throws -> GetSkillGroupAgentStatusDetailsResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getSkillGroupAgentStatusDetailsWithOptions(request as! GetSkillGroupAgentStatusDetailsRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getSkillGroupAndAgentStatusSummaryWithOptions(_ tmpReq: GetSkillGroupAndAgentStatusSummaryRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetSkillGroupAndAgentStatusSummaryResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: GetSkillGroupAndAgentStatusSummaryShrinkRequest = GetSkillGroupAndAgentStatusSummaryShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.depIds)) {
request.depIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.depIds, "DepIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.groupIds)) {
request.groupIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.groupIds, "GroupIds", "simple")
}
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetSkillGroupAndAgentStatusSummary",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetSkillGroupAndAgentStatusSummaryResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getSkillGroupAndAgentStatusSummary(_ request: GetSkillGroupAndAgentStatusSummaryRequest) async throws -> GetSkillGroupAndAgentStatusSummaryResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getSkillGroupAndAgentStatusSummaryWithOptions(request as! GetSkillGroupAndAgentStatusSummaryRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getSkillGroupLatitudeStateWithOptions(_ tmpReq: GetSkillGroupLatitudeStateRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetSkillGroupLatitudeStateResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: GetSkillGroupLatitudeStateShrinkRequest = GetSkillGroupLatitudeStateShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.depIds)) {
request.depIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.depIds, "DepIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.groupIds)) {
request.groupIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.groupIds, "GroupIds", "simple")
}
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetSkillGroupLatitudeState",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetSkillGroupLatitudeStateResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getSkillGroupLatitudeState(_ request: GetSkillGroupLatitudeStateRequest) async throws -> GetSkillGroupLatitudeStateResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getSkillGroupLatitudeStateWithOptions(request as! GetSkillGroupLatitudeStateRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getSkillGroupServiceCapabilityWithOptions(_ tmpReq: GetSkillGroupServiceCapabilityRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetSkillGroupServiceCapabilityResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: GetSkillGroupServiceCapabilityShrinkRequest = GetSkillGroupServiceCapabilityShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.depIds)) {
request.depIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.depIds, "DepIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.groupIds)) {
request.groupIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.groupIds, "GroupIds", "simple")
}
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetSkillGroupServiceCapability",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetSkillGroupServiceCapabilityResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getSkillGroupServiceCapability(_ request: GetSkillGroupServiceCapabilityRequest) async throws -> GetSkillGroupServiceCapabilityResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getSkillGroupServiceCapabilityWithOptions(request as! GetSkillGroupServiceCapabilityRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getSkillGroupServiceStatusWithOptions(_ tmpReq: GetSkillGroupServiceStatusRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetSkillGroupServiceStatusResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: GetSkillGroupServiceStatusShrinkRequest = GetSkillGroupServiceStatusShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.agentIds)) {
request.agentIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.agentIds, "AgentIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.depIds)) {
request.depIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.depIds, "DepIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.groupIds)) {
request.groupIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.groupIds, "GroupIds", "simple")
}
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetSkillGroupServiceStatus",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetSkillGroupServiceStatusResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getSkillGroupServiceStatus(_ request: GetSkillGroupServiceStatusRequest) async throws -> GetSkillGroupServiceStatusResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getSkillGroupServiceStatusWithOptions(request as! GetSkillGroupServiceStatusRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getSkillGroupStatusTotalWithOptions(_ tmpReq: GetSkillGroupStatusTotalRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetSkillGroupStatusTotalResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: GetSkillGroupStatusTotalShrinkRequest = GetSkillGroupStatusTotalShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.agentIds)) {
request.agentIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.agentIds, "AgentIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.depIds)) {
request.depIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.depIds, "DepIds", "simple")
}
if (!TeaUtils.Client.isUnset(tmpReq.groupIds)) {
request.groupIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.groupIds, "GroupIds", "simple")
}
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetSkillGroupStatusTotal",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetSkillGroupStatusTotalResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getSkillGroupStatusTotal(_ request: GetSkillGroupStatusTotalRequest) async throws -> GetSkillGroupStatusTotalResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getSkillGroupStatusTotalWithOptions(request as! GetSkillGroupStatusTotalRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func hangUpDoubleCallWithOptions(_ request: HangUpDoubleCallRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> HangUpDoubleCallResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.acid)) {
query["Acid"] = request.acid ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "HangUpDoubleCall",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(HangUpDoubleCallResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func hangUpDoubleCall(_ request: HangUpDoubleCallRequest) async throws -> HangUpDoubleCallResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await hangUpDoubleCallWithOptions(request as! HangUpDoubleCallRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func hangupCallWithOptions(_ request: HangupCallRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> HangupCallResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.callId)) {
body["CallId"] = request.callId ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.connectionId)) {
body["ConnectionId"] = request.connectionId ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.jobId)) {
body["JobId"] = request.jobId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "HangupCall",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(HangupCallResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func hangupCall(_ request: HangupCallRequest) async throws -> HangupCallResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await hangupCallWithOptions(request as! HangupCallRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func hangupOperateWithOptions(_ request: HangupOperateRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> HangupOperateResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.callId)) {
query["CallId"] = request.callId ?? "";
}
if (!TeaUtils.Client.isUnset(request.immediateHangup)) {
query["ImmediateHangup"] = request.immediateHangup!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "HangupOperate",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(HangupOperateResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func hangupOperate(_ request: HangupOperateRequest) async throws -> HangupOperateResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await hangupOperateWithOptions(request as! HangupOperateRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func hangupThirdCallWithOptions(_ request: HangupThirdCallRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> HangupThirdCallResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.callId)) {
body["CallId"] = request.callId ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.connectionId)) {
body["ConnectionId"] = request.connectionId ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.jobId)) {
body["JobId"] = request.jobId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "HangupThirdCall",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(HangupThirdCallResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func hangupThirdCall(_ request: HangupThirdCallRequest) async throws -> HangupThirdCallResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await hangupThirdCallWithOptions(request as! HangupThirdCallRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func holdCallWithOptions(_ request: HoldCallRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> HoldCallResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.callId)) {
body["CallId"] = request.callId ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.connectionId)) {
body["ConnectionId"] = request.connectionId ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.jobId)) {
body["JobId"] = request.jobId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "HoldCall",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(HoldCallResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func holdCall(_ request: HoldCallRequest) async throws -> HoldCallResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await holdCallWithOptions(request as! HoldCallRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func hotlineSessionQueryWithOptions(_ request: HotlineSessionQueryRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> HotlineSessionQueryResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.acid)) {
query["Acid"] = request.acid ?? "";
}
if (!TeaUtils.Client.isUnset(request.acidList)) {
query["AcidList"] = request.acidList ?? [];
}
if (!TeaUtils.Client.isUnset(request.callResult)) {
query["CallResult"] = request.callResult ?? "";
}
if (!TeaUtils.Client.isUnset(request.callResultList)) {
query["CallResultList"] = request.callResultList ?? [];
}
if (!TeaUtils.Client.isUnset(request.callType)) {
query["CallType"] = request.callType!;
}
if (!TeaUtils.Client.isUnset(request.callTypeList)) {
query["CallTypeList"] = request.callTypeList ?? [];
}
if (!TeaUtils.Client.isUnset(request.calledNumber)) {
query["CalledNumber"] = request.calledNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.calledNumberList)) {
query["CalledNumberList"] = request.calledNumberList ?? [];
}
if (!TeaUtils.Client.isUnset(request.callingNumber)) {
query["CallingNumber"] = request.callingNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.callingNumberList)) {
query["CallingNumberList"] = request.callingNumberList ?? [];
}
if (!TeaUtils.Client.isUnset(request.groupId)) {
query["GroupId"] = request.groupId!;
}
if (!TeaUtils.Client.isUnset(request.groupIdList)) {
query["GroupIdList"] = request.groupIdList ?? [];
}
if (!TeaUtils.Client.isUnset(request.groupName)) {
query["GroupName"] = request.groupName ?? "";
}
if (!TeaUtils.Client.isUnset(request.id)) {
query["Id"] = request.id ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.memberId)) {
query["MemberId"] = request.memberId ?? "";
}
if (!TeaUtils.Client.isUnset(request.memberIdList)) {
query["MemberIdList"] = request.memberIdList ?? [];
}
if (!TeaUtils.Client.isUnset(request.memberName)) {
query["MemberName"] = request.memberName ?? "";
}
if (!TeaUtils.Client.isUnset(request.pageNo)) {
query["PageNo"] = request.pageNo!;
}
if (!TeaUtils.Client.isUnset(request.pageSize)) {
query["PageSize"] = request.pageSize!;
}
if (!TeaUtils.Client.isUnset(request.params)) {
query["Params"] = request.params ?? "";
}
if (!TeaUtils.Client.isUnset(request.queryEndTime)) {
query["QueryEndTime"] = request.queryEndTime!;
}
if (!TeaUtils.Client.isUnset(request.queryStartTime)) {
query["QueryStartTime"] = request.queryStartTime!;
}
if (!TeaUtils.Client.isUnset(request.requestId)) {
query["RequestId"] = request.requestId ?? "";
}
if (!TeaUtils.Client.isUnset(request.servicerId)) {
query["ServicerId"] = request.servicerId ?? "";
}
if (!TeaUtils.Client.isUnset(request.servicerIdList)) {
query["ServicerIdList"] = request.servicerIdList ?? [];
}
if (!TeaUtils.Client.isUnset(request.servicerName)) {
query["ServicerName"] = request.servicerName ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "HotlineSessionQuery",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(HotlineSessionQueryResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func hotlineSessionQuery(_ request: HotlineSessionQueryRequest) async throws -> HotlineSessionQueryResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await hotlineSessionQueryWithOptions(request as! HotlineSessionQueryRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func insertAiOutboundPhoneNumsWithOptions(_ tmpReq: InsertAiOutboundPhoneNumsRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> InsertAiOutboundPhoneNumsResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: InsertAiOutboundPhoneNumsShrinkRequest = InsertAiOutboundPhoneNumsShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.details)) {
request.detailsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.details, "Details", "json")
}
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.batchVersion)) {
query["BatchVersion"] = request.batchVersion!;
}
if (!TeaUtils.Client.isUnset(request.detailsShrink)) {
query["Details"] = request.detailsShrink ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.taskId)) {
query["TaskId"] = request.taskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "InsertAiOutboundPhoneNums",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(InsertAiOutboundPhoneNumsResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func insertAiOutboundPhoneNums(_ request: InsertAiOutboundPhoneNumsRequest) async throws -> InsertAiOutboundPhoneNumsResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await insertAiOutboundPhoneNumsWithOptions(request as! InsertAiOutboundPhoneNumsRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func insertTaskDetailWithOptions(_ request: InsertTaskDetailRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> InsertTaskDetailResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.callInfos)) {
query["CallInfos"] = request.callInfos ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.outboundTaskId)) {
query["OutboundTaskId"] = request.outboundTaskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "InsertTaskDetail",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(InsertTaskDetailResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func insertTaskDetail(_ request: InsertTaskDetailRequest) async throws -> InsertTaskDetailResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await insertTaskDetailWithOptions(request as! InsertTaskDetailRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func joinThirdCallWithOptions(_ request: JoinThirdCallRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> JoinThirdCallResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.callId)) {
body["CallId"] = request.callId ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.connectionId)) {
body["ConnectionId"] = request.connectionId ?? "";
}
if (!TeaUtils.Client.isUnset(request.holdConnectionId)) {
body["HoldConnectionId"] = request.holdConnectionId ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.jobId)) {
body["JobId"] = request.jobId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "JoinThirdCall",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(JoinThirdCallResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func joinThirdCall(_ request: JoinThirdCallRequest) async throws -> JoinThirdCallResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await joinThirdCallWithOptions(request as! JoinThirdCallRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listAgentBySkillGroupIdWithOptions(_ request: ListAgentBySkillGroupIdRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListAgentBySkillGroupIdResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "ListAgentBySkillGroupId",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(ListAgentBySkillGroupIdResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listAgentBySkillGroupId(_ request: ListAgentBySkillGroupIdRequest) async throws -> ListAgentBySkillGroupIdResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await listAgentBySkillGroupIdWithOptions(request as! ListAgentBySkillGroupIdRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listAiccsRobotWithOptions(_ request: ListAiccsRobotRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListAiccsRobotResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
if (!TeaUtils.Client.isUnset(request.robotName)) {
query["RobotName"] = request.robotName ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "ListAiccsRobot",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(ListAiccsRobotResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listAiccsRobot(_ request: ListAiccsRobotRequest) async throws -> ListAiccsRobotResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await listAiccsRobotWithOptions(request as! ListAiccsRobotRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listChatRecordDetailWithOptions(_ request: ListChatRecordDetailRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListChatRecordDetailResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "ListChatRecordDetail",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(ListChatRecordDetailResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listChatRecordDetail(_ request: ListChatRecordDetailRequest) async throws -> ListChatRecordDetailResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await listChatRecordDetailWithOptions(request as! ListChatRecordDetailRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listDialogWithOptions(_ request: ListDialogRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListDialogResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.called)) {
query["Called"] = request.called ?? "";
}
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
if (!TeaUtils.Client.isUnset(request.taskId)) {
query["TaskId"] = request.taskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "ListDialog",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(ListDialogResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listDialog(_ request: ListDialogRequest) async throws -> ListDialogResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await listDialogWithOptions(request as! ListDialogRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listHotlineRecordWithOptions(_ request: ListHotlineRecordRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListHotlineRecordResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "ListHotlineRecord",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(ListHotlineRecordResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listHotlineRecord(_ request: ListHotlineRecordRequest) async throws -> ListHotlineRecordResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await listHotlineRecordWithOptions(request as! ListHotlineRecordRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listHotlineRecordDetailWithOptions(_ request: ListHotlineRecordDetailRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListHotlineRecordDetailResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "ListHotlineRecordDetail",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(ListHotlineRecordDetailResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listHotlineRecordDetail(_ request: ListHotlineRecordDetailRequest) async throws -> ListHotlineRecordDetailResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await listHotlineRecordDetailWithOptions(request as! ListHotlineRecordDetailRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listOutboundPhoneNumberWithOptions(_ request: ListOutboundPhoneNumberRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListOutboundPhoneNumberResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "ListOutboundPhoneNumber",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(ListOutboundPhoneNumberResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listOutboundPhoneNumber(_ request: ListOutboundPhoneNumberRequest) async throws -> ListOutboundPhoneNumberResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await listOutboundPhoneNumberWithOptions(request as! ListOutboundPhoneNumberRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listRobotCallDialogWithOptions(_ request: ListRobotCallDialogRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListRobotCallDialogResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.callId)) {
query["CallId"] = request.callId ?? "";
}
if (!TeaUtils.Client.isUnset(request.createTime)) {
query["CreateTime"] = request.createTime ?? "";
}
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "ListRobotCallDialog",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(ListRobotCallDialogResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listRobotCallDialog(_ request: ListRobotCallDialogRequest) async throws -> ListRobotCallDialogResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await listRobotCallDialogWithOptions(request as! ListRobotCallDialogRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listRobotNodeWithOptions(_ request: ListRobotNodeRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListRobotNodeResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
if (!TeaUtils.Client.isUnset(request.robotId)) {
query["RobotId"] = request.robotId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "ListRobotNode",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(ListRobotNodeResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listRobotNode(_ request: ListRobotNodeRequest) async throws -> ListRobotNodeResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await listRobotNodeWithOptions(request as! ListRobotNodeRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listRobotParamsWithOptions(_ request: ListRobotParamsRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListRobotParamsResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
if (!TeaUtils.Client.isUnset(request.robotId)) {
query["RobotId"] = request.robotId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "ListRobotParams",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(ListRobotParamsResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listRobotParams(_ request: ListRobotParamsRequest) async throws -> ListRobotParamsResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await listRobotParamsWithOptions(request as! ListRobotParamsRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listRolesWithOptions(_ request: ListRolesRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListRolesResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "ListRoles",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(ListRolesResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listRoles(_ request: ListRolesRequest) async throws -> ListRolesResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await listRolesWithOptions(request as! ListRolesRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listSkillGroupWithOptions(_ request: ListSkillGroupRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListSkillGroupResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "ListSkillGroup",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(ListSkillGroupResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listSkillGroup(_ request: ListSkillGroupRequest) async throws -> ListSkillGroupResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await listSkillGroupWithOptions(request as! ListSkillGroupRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listTaskWithOptions(_ request: ListTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListTaskResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.pageNo)) {
query["PageNo"] = request.pageNo!;
}
if (!TeaUtils.Client.isUnset(request.pageSize)) {
query["PageSize"] = request.pageSize!;
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
if (!TeaUtils.Client.isUnset(request.robotName)) {
query["RobotName"] = request.robotName ?? "";
}
if (!TeaUtils.Client.isUnset(request.status)) {
query["Status"] = request.status ?? "";
}
if (!TeaUtils.Client.isUnset(request.taskId)) {
query["TaskId"] = request.taskId!;
}
if (!TeaUtils.Client.isUnset(request.taskName)) {
query["TaskName"] = request.taskName ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "ListTask",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(ListTaskResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listTask(_ request: ListTaskRequest) async throws -> ListTaskResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await listTaskWithOptions(request as! ListTaskRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listTaskDetailWithOptions(_ request: ListTaskDetailRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListTaskDetailResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.called)) {
query["Called"] = request.called ?? "";
}
if (!TeaUtils.Client.isUnset(request.id)) {
query["Id"] = request.id!;
}
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.pageNo)) {
query["PageNo"] = request.pageNo!;
}
if (!TeaUtils.Client.isUnset(request.pageSize)) {
query["PageSize"] = request.pageSize!;
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
if (!TeaUtils.Client.isUnset(request.status)) {
query["Status"] = request.status ?? "";
}
if (!TeaUtils.Client.isUnset(request.statusCode)) {
query["StatusCode"] = request.statusCode ?? "";
}
if (!TeaUtils.Client.isUnset(request.taskId)) {
query["TaskId"] = request.taskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "ListTaskDetail",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(ListTaskDetailResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func listTaskDetail(_ request: ListTaskDetailRequest) async throws -> ListTaskDetailResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await listTaskDetailWithOptions(request as! ListTaskDetailRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func llmSmartCallWithOptions(_ tmpReq: LlmSmartCallRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> LlmSmartCallResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: LlmSmartCallShrinkRequest = LlmSmartCallShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.bizParam)) {
request.bizParamShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.bizParam, "BizParam", "json")
}
if (!TeaUtils.Client.isUnset(tmpReq.promptParam)) {
request.promptParamShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.promptParam, "PromptParam", "json")
}
if (!TeaUtils.Client.isUnset(tmpReq.startWordParam)) {
request.startWordParamShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.startWordParam, "StartWordParam", "json")
}
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.applicationCode)) {
query["ApplicationCode"] = request.applicationCode ?? "";
}
if (!TeaUtils.Client.isUnset(request.bizParamShrink)) {
query["BizParam"] = request.bizParamShrink ?? "";
}
if (!TeaUtils.Client.isUnset(request.calledNumber)) {
query["CalledNumber"] = request.calledNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.callerNumber)) {
query["CallerNumber"] = request.callerNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.extension_)) {
query["Extension"] = request.extension_ ?? "";
}
if (!TeaUtils.Client.isUnset(request.outId)) {
query["OutId"] = request.outId ?? "";
}
if (!TeaUtils.Client.isUnset(request.promptParamShrink)) {
query["PromptParam"] = request.promptParamShrink ?? "";
}
if (!TeaUtils.Client.isUnset(request.startWordParamShrink)) {
query["StartWordParam"] = request.startWordParamShrink ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "LlmSmartCall",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(LlmSmartCallResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func llmSmartCall(_ request: LlmSmartCallRequest) async throws -> LlmSmartCallResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await llmSmartCallWithOptions(request as! LlmSmartCallRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func llmSmartCallEncryptWithOptions(_ tmpReq: LlmSmartCallEncryptRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> LlmSmartCallEncryptResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: LlmSmartCallEncryptShrinkRequest = LlmSmartCallEncryptShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.promptParam)) {
request.promptParamShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.promptParam, "PromptParam", "json")
}
if (!TeaUtils.Client.isUnset(tmpReq.startWordParam)) {
request.startWordParamShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.startWordParam, "StartWordParam", "json")
}
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.applicationCode)) {
query["ApplicationCode"] = request.applicationCode ?? "";
}
if (!TeaUtils.Client.isUnset(request.callerNumber)) {
query["CallerNumber"] = request.callerNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.encryptCalledNumber)) {
query["EncryptCalledNumber"] = request.encryptCalledNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.outId)) {
query["OutId"] = request.outId ?? "";
}
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.promptParamShrink)) {
query["PromptParam"] = request.promptParamShrink ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
if (!TeaUtils.Client.isUnset(request.startWordParamShrink)) {
query["StartWordParam"] = request.startWordParamShrink ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "LlmSmartCallEncrypt",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(LlmSmartCallEncryptResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func llmSmartCallEncrypt(_ request: LlmSmartCallEncryptRequest) async throws -> LlmSmartCallEncryptResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await llmSmartCallEncryptWithOptions(request as! LlmSmartCallEncryptRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func makeCallWithOptions(_ request: MakeCallRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> MakeCallResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.calledNumber)) {
query["CalledNumber"] = request.calledNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.callingNumber)) {
query["CallingNumber"] = request.callingNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.commandCode)) {
query["CommandCode"] = request.commandCode ?? "";
}
if (!TeaUtils.Client.isUnset(request.extInfo)) {
query["ExtInfo"] = request.extInfo ?? "";
}
if (!TeaUtils.Client.isUnset(request.outerAccountId)) {
query["OuterAccountId"] = request.outerAccountId ?? "";
}
if (!TeaUtils.Client.isUnset(request.outerAccountType)) {
query["OuterAccountType"] = request.outerAccountType ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "MakeCall",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(MakeCallResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func makeCall(_ request: MakeCallRequest) async throws -> MakeCallResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await makeCallWithOptions(request as! MakeCallRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func makeDoubleCallWithOptions(_ request: MakeDoubleCallRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> MakeDoubleCallResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
query["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.bizData)) {
query["BizData"] = request.bizData ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.memberPhone)) {
query["MemberPhone"] = request.memberPhone ?? "";
}
if (!TeaUtils.Client.isUnset(request.outboundCallNumber)) {
query["OutboundCallNumber"] = request.outboundCallNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.servicerPhone)) {
query["ServicerPhone"] = request.servicerPhone ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "MakeDoubleCall",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(MakeDoubleCallResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func makeDoubleCall(_ request: MakeDoubleCallRequest) async throws -> MakeDoubleCallResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await makeDoubleCallWithOptions(request as! MakeDoubleCallRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func queryHotlineInQueueWithOptions(_ request: QueryHotlineInQueueRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> QueryHotlineInQueueResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "QueryHotlineInQueue",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(QueryHotlineInQueueResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func queryHotlineInQueue(_ request: QueryHotlineInQueueRequest) async throws -> QueryHotlineInQueueResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await queryHotlineInQueueWithOptions(request as! QueryHotlineInQueueRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func queryHotlineNumberWithOptions(_ tmpReq: QueryHotlineNumberRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> QueryHotlineNumberResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: QueryHotlineNumberShrinkRequest = QueryHotlineNumberShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.groupIds)) {
request.groupIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.groupIds, "GroupIds", "json")
}
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "QueryHotlineNumber",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(QueryHotlineNumberResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func queryHotlineNumber(_ request: QueryHotlineNumberRequest) async throws -> QueryHotlineNumberResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await queryHotlineNumberWithOptions(request as! QueryHotlineNumberRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func queryOutboundTaskWithOptions(_ request: QueryOutboundTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> QueryOutboundTaskResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.ani)) {
query["Ani"] = request.ani ?? "";
}
if (!TeaUtils.Client.isUnset(request.currentPage)) {
query["CurrentPage"] = request.currentPage!;
}
if (!TeaUtils.Client.isUnset(request.departmentId)) {
query["DepartmentId"] = request.departmentId ?? "";
}
if (!TeaUtils.Client.isUnset(request.endDate)) {
query["EndDate"] = request.endDate ?? "";
}
if (!TeaUtils.Client.isUnset(request.endTime)) {
query["EndTime"] = request.endTime ?? "";
}
if (!TeaUtils.Client.isUnset(request.groupName)) {
query["GroupName"] = request.groupName ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.pageSize)) {
query["PageSize"] = request.pageSize!;
}
if (!TeaUtils.Client.isUnset(request.skillGroup)) {
query["SkillGroup"] = request.skillGroup!;
}
if (!TeaUtils.Client.isUnset(request.startDate)) {
query["StartDate"] = request.startDate ?? "";
}
if (!TeaUtils.Client.isUnset(request.startTime)) {
query["StartTime"] = request.startTime ?? "";
}
if (!TeaUtils.Client.isUnset(request.status)) {
query["Status"] = request.status ?? "";
}
if (!TeaUtils.Client.isUnset(request.taskId)) {
query["TaskId"] = request.taskId!;
}
if (!TeaUtils.Client.isUnset(request.taskName)) {
query["TaskName"] = request.taskName ?? "";
}
if (!TeaUtils.Client.isUnset(request.taskType)) {
query["TaskType"] = request.taskType!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "QueryOutboundTask",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(QueryOutboundTaskResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func queryOutboundTask(_ request: QueryOutboundTaskRequest) async throws -> QueryOutboundTaskResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await queryOutboundTaskWithOptions(request as! QueryOutboundTaskRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func querySkillGroupsWithOptions(_ request: QuerySkillGroupsRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> QuerySkillGroupsResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.channelType)) {
query["ChannelType"] = request.channelType!;
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
query["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.departmentId)) {
query["DepartmentId"] = request.departmentId!;
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.pageNo)) {
query["PageNo"] = request.pageNo!;
}
if (!TeaUtils.Client.isUnset(request.pageSize)) {
query["PageSize"] = request.pageSize!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "QuerySkillGroups",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(QuerySkillGroupsResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func querySkillGroups(_ request: QuerySkillGroupsRequest) async throws -> QuerySkillGroupsResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await querySkillGroupsWithOptions(request as! QuerySkillGroupsRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func queryTaskDetailWithOptions(_ request: QueryTaskDetailRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> QueryTaskDetailResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.ani)) {
query["Ani"] = request.ani ?? "";
}
if (!TeaUtils.Client.isUnset(request.currentPage)) {
query["CurrentPage"] = request.currentPage!;
}
if (!TeaUtils.Client.isUnset(request.departmentIdList)) {
query["DepartmentIdList"] = request.departmentIdList ?? "";
}
if (!TeaUtils.Client.isUnset(request.dnis)) {
query["Dnis"] = request.dnis ?? "";
}
if (!TeaUtils.Client.isUnset(request.endReasonList)) {
query["EndReasonList"] = request.endReasonList ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.outboundTaskId)) {
query["OutboundTaskId"] = request.outboundTaskId ?? "";
}
if (!TeaUtils.Client.isUnset(request.pageSize)) {
query["PageSize"] = request.pageSize!;
}
if (!TeaUtils.Client.isUnset(request.priorityList)) {
query["PriorityList"] = request.priorityList ?? "";
}
if (!TeaUtils.Client.isUnset(request.servicerId)) {
query["ServicerId"] = request.servicerId ?? "";
}
if (!TeaUtils.Client.isUnset(request.servicerName)) {
query["ServicerName"] = request.servicerName ?? "";
}
if (!TeaUtils.Client.isUnset(request.sid)) {
query["Sid"] = request.sid ?? "";
}
if (!TeaUtils.Client.isUnset(request.skillGroup)) {
query["SkillGroup"] = request.skillGroup ?? "";
}
if (!TeaUtils.Client.isUnset(request.statusList)) {
query["StatusList"] = request.statusList ?? "";
}
if (!TeaUtils.Client.isUnset(request.taskId)) {
query["TaskId"] = request.taskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "QueryTaskDetail",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(QueryTaskDetailResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func queryTaskDetail(_ request: QueryTaskDetailRequest) async throws -> QueryTaskDetailResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await queryTaskDetailWithOptions(request as! QueryTaskDetailRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func queryTicketsWithOptions(_ tmpReq: QueryTicketsRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> QueryTicketsResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: QueryTicketsShrinkRequest = QueryTicketsShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.extra)) {
request.extraShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.extra, "Extra", "json")
}
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.caseId)) {
body["CaseId"] = request.caseId!;
}
if (!TeaUtils.Client.isUnset(request.caseStatus)) {
body["CaseStatus"] = request.caseStatus!;
}
if (!TeaUtils.Client.isUnset(request.caseType)) {
body["CaseType"] = request.caseType!;
}
if (!TeaUtils.Client.isUnset(request.channelId)) {
body["ChannelId"] = request.channelId ?? "";
}
if (!TeaUtils.Client.isUnset(request.channelType)) {
body["ChannelType"] = request.channelType!;
}
if (!TeaUtils.Client.isUnset(request.currentPage)) {
body["CurrentPage"] = request.currentPage!;
}
if (!TeaUtils.Client.isUnset(request.dealId)) {
body["DealId"] = request.dealId!;
}
if (!TeaUtils.Client.isUnset(request.extraShrink)) {
body["Extra"] = request.extraShrink ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.pageSize)) {
body["PageSize"] = request.pageSize!;
}
if (!TeaUtils.Client.isUnset(request.srType)) {
body["SrType"] = request.srType!;
}
if (!TeaUtils.Client.isUnset(request.taskStatus)) {
body["TaskStatus"] = request.taskStatus!;
}
if (!TeaUtils.Client.isUnset(request.touchId)) {
body["TouchId"] = request.touchId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "QueryTickets",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(QueryTicketsResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func queryTickets(_ request: QueryTicketsRequest) async throws -> QueryTicketsResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await queryTicketsWithOptions(request as! QueryTicketsRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func queryTouchListWithOptions(_ request: QueryTouchListRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> QueryTouchListResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.channelId)) {
body["ChannelId"] = request.channelId ?? [];
}
if (!TeaUtils.Client.isUnset(request.channelType)) {
body["ChannelType"] = request.channelType ?? [];
}
if (!TeaUtils.Client.isUnset(request.closeTimeEnd)) {
body["CloseTimeEnd"] = request.closeTimeEnd!;
}
if (!TeaUtils.Client.isUnset(request.closeTimeStart)) {
body["CloseTimeStart"] = request.closeTimeStart!;
}
if (!TeaUtils.Client.isUnset(request.currentPage)) {
body["CurrentPage"] = request.currentPage!;
}
if (!TeaUtils.Client.isUnset(request.evaluationLevel)) {
body["EvaluationLevel"] = request.evaluationLevel ?? [];
}
if (!TeaUtils.Client.isUnset(request.evaluationScore)) {
body["EvaluationScore"] = request.evaluationScore ?? [];
}
if (!TeaUtils.Client.isUnset(request.evaluationStatus)) {
body["EvaluationStatus"] = request.evaluationStatus ?? [];
}
if (!TeaUtils.Client.isUnset(request.firstTimeEnd)) {
body["FirstTimeEnd"] = request.firstTimeEnd!;
}
if (!TeaUtils.Client.isUnset(request.firstTimeStart)) {
body["FirstTimeStart"] = request.firstTimeStart!;
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.memberId)) {
body["MemberId"] = request.memberId ?? [];
}
if (!TeaUtils.Client.isUnset(request.memberName)) {
body["MemberName"] = request.memberName ?? [];
}
if (!TeaUtils.Client.isUnset(request.pageSize)) {
body["PageSize"] = request.pageSize!;
}
if (!TeaUtils.Client.isUnset(request.queueId)) {
body["QueueId"] = request.queueId ?? [];
}
if (!TeaUtils.Client.isUnset(request.servicerId)) {
body["ServicerId"] = request.servicerId ?? [];
}
if (!TeaUtils.Client.isUnset(request.servicerName)) {
body["ServicerName"] = request.servicerName ?? [];
}
if (!TeaUtils.Client.isUnset(request.touchId)) {
body["TouchId"] = request.touchId ?? [];
}
if (!TeaUtils.Client.isUnset(request.touchType)) {
body["TouchType"] = request.touchType ?? [];
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "QueryTouchList",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(QueryTouchListResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func queryTouchList(_ request: QueryTouchListRequest) async throws -> QueryTouchListResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await queryTouchListWithOptions(request as! QueryTouchListRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func removeAgentFromSkillGroupWithOptions(_ tmpReq: RemoveAgentFromSkillGroupRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> RemoveAgentFromSkillGroupResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: RemoveAgentFromSkillGroupShrinkRequest = RemoveAgentFromSkillGroupShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.agentIds)) {
request.agentIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.agentIds, "AgentIds", "json")
}
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.agentIdsShrink)) {
query["AgentIds"] = request.agentIdsShrink ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.skillGroupId)) {
query["SkillGroupId"] = request.skillGroupId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "RemoveAgentFromSkillGroup",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(RemoveAgentFromSkillGroupResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func removeAgentFromSkillGroup(_ request: RemoveAgentFromSkillGroupRequest) async throws -> RemoveAgentFromSkillGroupResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await removeAgentFromSkillGroupWithOptions(request as! RemoveAgentFromSkillGroupRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func removeSkillGroupWithOptions(_ request: RemoveSkillGroupRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> RemoveSkillGroupResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.skillGroupId)) {
body["SkillGroupId"] = request.skillGroupId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "RemoveSkillGroup",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(RemoveSkillGroupResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func removeSkillGroup(_ request: RemoveSkillGroupRequest) async throws -> RemoveSkillGroupResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await removeSkillGroupWithOptions(request as! RemoveSkillGroupRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func resetHotlineNumberWithOptions(_ tmpReq: ResetHotlineNumberRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ResetHotlineNumberResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: ResetHotlineNumberShrinkRequest = ResetHotlineNumberShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.outboundRangeList)) {
request.outboundRangeListShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.outboundRangeList, "OutboundRangeList", "json")
}
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.description_)) {
body["Description"] = request.description_ ?? "";
}
if (!TeaUtils.Client.isUnset(request.enableInbound)) {
body["EnableInbound"] = request.enableInbound!;
}
if (!TeaUtils.Client.isUnset(request.enableInboundEvaluation)) {
body["EnableInboundEvaluation"] = request.enableInboundEvaluation!;
}
if (!TeaUtils.Client.isUnset(request.enableOutbound)) {
body["EnableOutbound"] = request.enableOutbound!;
}
if (!TeaUtils.Client.isUnset(request.enableOutboundEvaluation)) {
body["EnableOutboundEvaluation"] = request.enableOutboundEvaluation!;
}
if (!TeaUtils.Client.isUnset(request.evaluationLevel)) {
body["EvaluationLevel"] = request.evaluationLevel!;
}
if (!TeaUtils.Client.isUnset(request.hotlineNumber)) {
body["HotlineNumber"] = request.hotlineNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.inboundFlowId)) {
body["InboundFlowId"] = request.inboundFlowId!;
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.outboundAllDepart)) {
body["OutboundAllDepart"] = request.outboundAllDepart!;
}
if (!TeaUtils.Client.isUnset(request.outboundRangeListShrink)) {
body["OutboundRangeList"] = request.outboundRangeListShrink ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "ResetHotlineNumber",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(ResetHotlineNumberResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func resetHotlineNumber(_ request: ResetHotlineNumberRequest) async throws -> ResetHotlineNumberResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await resetHotlineNumberWithOptions(request as! ResetHotlineNumberRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func restartOutboundTaskWithOptions(_ request: RestartOutboundTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> RestartOutboundTaskResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.outboundTaskId)) {
query["OutboundTaskId"] = request.outboundTaskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "RestartOutboundTask",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(RestartOutboundTaskResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func restartOutboundTask(_ request: RestartOutboundTaskRequest) async throws -> RestartOutboundTaskResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await restartOutboundTaskWithOptions(request as! RestartOutboundTaskRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func robotCallWithOptions(_ request: RobotCallRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> RobotCallResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.calledNumber)) {
query["CalledNumber"] = request.calledNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.calledShowNumber)) {
query["CalledShowNumber"] = request.calledShowNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.earlyMediaAsr)) {
query["EarlyMediaAsr"] = request.earlyMediaAsr!;
}
if (!TeaUtils.Client.isUnset(request.outId)) {
query["OutId"] = request.outId ?? "";
}
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.params)) {
query["Params"] = request.params ?? "";
}
if (!TeaUtils.Client.isUnset(request.recordFlag)) {
query["RecordFlag"] = request.recordFlag!;
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
if (!TeaUtils.Client.isUnset(request.robotId)) {
query["RobotId"] = request.robotId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "RobotCall",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(RobotCallResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func robotCall(_ request: RobotCallRequest) async throws -> RobotCallResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await robotCallWithOptions(request as! RobotCallRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func sendCcoSmartCallWithOptions(_ request: SendCcoSmartCallRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> SendCcoSmartCallResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.actionCodeBreak)) {
query["ActionCodeBreak"] = request.actionCodeBreak!;
}
if (!TeaUtils.Client.isUnset(request.actionCodeTimeBreak)) {
query["ActionCodeTimeBreak"] = request.actionCodeTimeBreak!;
}
if (!TeaUtils.Client.isUnset(request.asrAlsAmId)) {
query["AsrAlsAmId"] = request.asrAlsAmId ?? "";
}
if (!TeaUtils.Client.isUnset(request.asrBaseId)) {
query["AsrBaseId"] = request.asrBaseId ?? "";
}
if (!TeaUtils.Client.isUnset(request.asrModelId)) {
query["AsrModelId"] = request.asrModelId ?? "";
}
if (!TeaUtils.Client.isUnset(request.asrVocabularyId)) {
query["AsrVocabularyId"] = request.asrVocabularyId ?? "";
}
if (!TeaUtils.Client.isUnset(request.backgroundFileCode)) {
query["BackgroundFileCode"] = request.backgroundFileCode ?? "";
}
if (!TeaUtils.Client.isUnset(request.backgroundSpeed)) {
query["BackgroundSpeed"] = request.backgroundSpeed!;
}
if (!TeaUtils.Client.isUnset(request.backgroundVolume)) {
query["BackgroundVolume"] = request.backgroundVolume!;
}
if (!TeaUtils.Client.isUnset(request.calledNumber)) {
query["CalledNumber"] = request.calledNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.calledShowNumber)) {
query["CalledShowNumber"] = request.calledShowNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.dynamicId)) {
query["DynamicId"] = request.dynamicId ?? "";
}
if (!TeaUtils.Client.isUnset(request.earlyMediaAsr)) {
query["EarlyMediaAsr"] = request.earlyMediaAsr!;
}
if (!TeaUtils.Client.isUnset(request.enableITN)) {
query["EnableITN"] = request.enableITN!;
}
if (!TeaUtils.Client.isUnset(request.muteTime)) {
query["MuteTime"] = request.muteTime!;
}
if (!TeaUtils.Client.isUnset(request.outId)) {
query["OutId"] = request.outId ?? "";
}
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.pauseTime)) {
query["PauseTime"] = request.pauseTime!;
}
if (!TeaUtils.Client.isUnset(request.playTimes)) {
query["PlayTimes"] = request.playTimes!;
}
if (!TeaUtils.Client.isUnset(request.prodCode)) {
query["ProdCode"] = request.prodCode ?? "";
}
if (!TeaUtils.Client.isUnset(request.recordFlag)) {
query["RecordFlag"] = request.recordFlag!;
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
if (!TeaUtils.Client.isUnset(request.sessionTimeout)) {
query["SessionTimeout"] = request.sessionTimeout!;
}
if (!TeaUtils.Client.isUnset(request.speed)) {
query["Speed"] = request.speed!;
}
if (!TeaUtils.Client.isUnset(request.ttsConf)) {
query["TtsConf"] = request.ttsConf!;
}
if (!TeaUtils.Client.isUnset(request.ttsSpeed)) {
query["TtsSpeed"] = request.ttsSpeed!;
}
if (!TeaUtils.Client.isUnset(request.ttsStyle)) {
query["TtsStyle"] = request.ttsStyle ?? "";
}
if (!TeaUtils.Client.isUnset(request.ttsVolume)) {
query["TtsVolume"] = request.ttsVolume!;
}
if (!TeaUtils.Client.isUnset(request.voiceCode)) {
query["VoiceCode"] = request.voiceCode ?? "";
}
if (!TeaUtils.Client.isUnset(request.voiceCodeParam)) {
query["VoiceCodeParam"] = request.voiceCodeParam ?? "";
}
if (!TeaUtils.Client.isUnset(request.volume)) {
query["Volume"] = request.volume!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "SendCcoSmartCall",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(SendCcoSmartCallResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func sendCcoSmartCall(_ request: SendCcoSmartCallRequest) async throws -> SendCcoSmartCallResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await sendCcoSmartCallWithOptions(request as! SendCcoSmartCallRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func sendCcoSmartCallOperateWithOptions(_ request: SendCcoSmartCallOperateRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> SendCcoSmartCallOperateResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.callId)) {
query["CallId"] = request.callId ?? "";
}
if (!TeaUtils.Client.isUnset(request.command)) {
query["Command"] = request.command ?? "";
}
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.param)) {
query["Param"] = request.param ?? "";
}
if (!TeaUtils.Client.isUnset(request.prodCode)) {
query["ProdCode"] = request.prodCode ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "SendCcoSmartCallOperate",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(SendCcoSmartCallOperateResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func sendCcoSmartCallOperate(_ request: SendCcoSmartCallOperateRequest) async throws -> SendCcoSmartCallOperateResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await sendCcoSmartCallOperateWithOptions(request as! SendCcoSmartCallOperateRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func sendHotlineHeartBeatWithOptions(_ request: SendHotlineHeartBeatRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> SendHotlineHeartBeatResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.token)) {
body["Token"] = request.token ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "SendHotlineHeartBeat",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(SendHotlineHeartBeatResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func sendHotlineHeartBeat(_ request: SendHotlineHeartBeatRequest) async throws -> SendHotlineHeartBeatResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await sendHotlineHeartBeatWithOptions(request as! SendHotlineHeartBeatRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func startAiOutboundTaskWithOptions(_ request: StartAiOutboundTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> StartAiOutboundTaskResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.taskId)) {
query["TaskId"] = request.taskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "StartAiOutboundTask",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(StartAiOutboundTaskResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func startAiOutboundTask(_ request: StartAiOutboundTaskRequest) async throws -> StartAiOutboundTaskResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await startAiOutboundTaskWithOptions(request as! StartAiOutboundTaskRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func startCallWithOptions(_ request: StartCallRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> StartCallResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.callee)) {
body["Callee"] = request.callee ?? "";
}
if (!TeaUtils.Client.isUnset(request.caller)) {
body["Caller"] = request.caller ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "StartCall",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(StartCallResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func startCall(_ request: StartCallRequest) async throws -> StartCallResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await startCallWithOptions(request as! StartCallRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func startCallV2WithOptions(_ request: StartCallV2Request, _ runtime: TeaUtils.RuntimeOptions) async throws -> StartCallV2Response {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.callee)) {
body["Callee"] = request.callee ?? "";
}
if (!TeaUtils.Client.isUnset(request.caller)) {
body["Caller"] = request.caller ?? "";
}
if (!TeaUtils.Client.isUnset(request.callerType)) {
body["CallerType"] = request.callerType!;
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "StartCallV2",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(StartCallV2Response(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func startCallV2(_ request: StartCallV2Request) async throws -> StartCallV2Response {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await startCallV2WithOptions(request as! StartCallV2Request, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func startChatWorkWithOptions(_ request: StartChatWorkRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> StartChatWorkResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "StartChatWork",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(StartChatWorkResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func startChatWork(_ request: StartChatWorkRequest) async throws -> StartChatWorkResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await startChatWorkWithOptions(request as! StartChatWorkRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func startHotlineServiceWithOptions(_ request: StartHotlineServiceRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> StartHotlineServiceResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "StartHotlineService",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(StartHotlineServiceResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func startHotlineService(_ request: StartHotlineServiceRequest) async throws -> StartHotlineServiceResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await startHotlineServiceWithOptions(request as! StartHotlineServiceRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func startMicroOutboundWithOptions(_ request: StartMicroOutboundRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> StartMicroOutboundResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountId)) {
query["AccountId"] = request.accountId ?? "";
}
if (!TeaUtils.Client.isUnset(request.accountType)) {
query["AccountType"] = request.accountType ?? "";
}
if (!TeaUtils.Client.isUnset(request.appName)) {
query["AppName"] = request.appName ?? "";
}
if (!TeaUtils.Client.isUnset(request.calledNumber)) {
query["CalledNumber"] = request.calledNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.callingNumber)) {
query["CallingNumber"] = request.callingNumber ?? "";
}
if (!TeaUtils.Client.isUnset(request.commandCode)) {
query["CommandCode"] = request.commandCode ?? "";
}
if (!TeaUtils.Client.isUnset(request.extInfo)) {
query["ExtInfo"] = request.extInfo ?? "";
}
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.prodCode)) {
query["ProdCode"] = request.prodCode ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "StartMicroOutbound",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(StartMicroOutboundResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func startMicroOutbound(_ request: StartMicroOutboundRequest) async throws -> StartMicroOutboundResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await startMicroOutboundWithOptions(request as! StartMicroOutboundRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func startTaskWithOptions(_ request: StartTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> StartTaskResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
if (!TeaUtils.Client.isUnset(request.startNow)) {
query["StartNow"] = request.startNow!;
}
if (!TeaUtils.Client.isUnset(request.taskId)) {
query["TaskId"] = request.taskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "StartTask",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(StartTaskResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func startTask(_ request: StartTaskRequest) async throws -> StartTaskResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await startTaskWithOptions(request as! StartTaskRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func stopAiOutboundTaskWithOptions(_ request: StopAiOutboundTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> StopAiOutboundTaskResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.taskId)) {
query["TaskId"] = request.taskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "StopAiOutboundTask",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(StopAiOutboundTaskResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func stopAiOutboundTask(_ request: StopAiOutboundTaskRequest) async throws -> StopAiOutboundTaskResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await stopAiOutboundTaskWithOptions(request as! StopAiOutboundTaskRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func stopTaskWithOptions(_ request: StopTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> StopTaskResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.ownerId)) {
query["OwnerId"] = request.ownerId!;
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerAccount)) {
query["ResourceOwnerAccount"] = request.resourceOwnerAccount ?? "";
}
if (!TeaUtils.Client.isUnset(request.resourceOwnerId)) {
query["ResourceOwnerId"] = request.resourceOwnerId!;
}
if (!TeaUtils.Client.isUnset(request.taskId)) {
query["TaskId"] = request.taskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "StopTask",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(StopTaskResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func stopTask(_ request: StopTaskRequest) async throws -> StopTaskResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await stopTaskWithOptions(request as! StopTaskRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func suspendHotlineServiceWithOptions(_ request: SuspendHotlineServiceRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> SuspendHotlineServiceResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.type)) {
body["Type"] = request.type!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "SuspendHotlineService",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(SuspendHotlineServiceResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func suspendHotlineService(_ request: SuspendHotlineServiceRequest) async throws -> SuspendHotlineServiceResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await suspendHotlineServiceWithOptions(request as! SuspendHotlineServiceRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func suspendOutboundTaskWithOptions(_ request: SuspendOutboundTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> SuspendOutboundTaskResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.outboundTaskId)) {
query["OutboundTaskId"] = request.outboundTaskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "SuspendOutboundTask",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(SuspendOutboundTaskResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func suspendOutboundTask(_ request: SuspendOutboundTaskRequest) async throws -> SuspendOutboundTaskResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await suspendOutboundTaskWithOptions(request as! SuspendOutboundTaskRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func terminateAiOutboundTaskWithOptions(_ request: TerminateAiOutboundTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> TerminateAiOutboundTaskResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.taskId)) {
query["TaskId"] = request.taskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "TerminateAiOutboundTask",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(TerminateAiOutboundTaskResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func terminateAiOutboundTask(_ request: TerminateAiOutboundTaskRequest) async throws -> TerminateAiOutboundTaskResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await terminateAiOutboundTaskWithOptions(request as! TerminateAiOutboundTaskRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func transferCallToSkillGroupWithOptions(_ request: TransferCallToSkillGroupRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> TransferCallToSkillGroupResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.callId)) {
body["CallId"] = request.callId ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.connectionId)) {
body["ConnectionId"] = request.connectionId ?? "";
}
if (!TeaUtils.Client.isUnset(request.holdConnectionId)) {
body["HoldConnectionId"] = request.holdConnectionId ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.isSingleTransfer)) {
body["IsSingleTransfer"] = request.isSingleTransfer!;
}
if (!TeaUtils.Client.isUnset(request.jobId)) {
body["JobId"] = request.jobId ?? "";
}
if (!TeaUtils.Client.isUnset(request.skillGroupId)) {
body["SkillGroupId"] = request.skillGroupId!;
}
if (!TeaUtils.Client.isUnset(request.type)) {
body["Type"] = request.type!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "TransferCallToSkillGroup",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(TransferCallToSkillGroupResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func transferCallToSkillGroup(_ request: TransferCallToSkillGroupRequest) async throws -> TransferCallToSkillGroupResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await transferCallToSkillGroupWithOptions(request as! TransferCallToSkillGroupRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func updateAgentWithOptions(_ request: UpdateAgentRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateAgentResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accountName)) {
body["AccountName"] = request.accountName ?? "";
}
if (!TeaUtils.Client.isUnset(request.clientToken)) {
body["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.displayName)) {
body["DisplayName"] = request.displayName ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.skillGroupId)) {
body["SkillGroupId"] = request.skillGroupId ?? [];
}
if (!TeaUtils.Client.isUnset(request.skillGroupIdList)) {
body["SkillGroupIdList"] = request.skillGroupIdList ?? [];
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "UpdateAgent",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "PUT",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(UpdateAgentResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func updateAgent(_ request: UpdateAgentRequest) async throws -> UpdateAgentResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await updateAgentWithOptions(request as! UpdateAgentRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func updateAiOutboundTaskWithOptions(_ tmpReq: UpdateAiOutboundTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateAiOutboundTaskResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: UpdateAiOutboundTaskShrinkRequest = UpdateAiOutboundTaskShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.outboundNums)) {
request.outboundNumsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.outboundNums, "OutboundNums", "json")
}
if (!TeaUtils.Client.isUnset(tmpReq.recallRule)) {
request.recallRuleShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.recallRule, "RecallRule", "json")
}
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.concurrentRate)) {
query["ConcurrentRate"] = request.concurrentRate!;
}
if (!TeaUtils.Client.isUnset(request.description_)) {
query["Description"] = request.description_ ?? "";
}
if (!TeaUtils.Client.isUnset(request.executionTime)) {
query["ExecutionTime"] = request.executionTime ?? "";
}
if (!TeaUtils.Client.isUnset(request.forecastCallRate)) {
query["ForecastCallRate"] = request.forecastCallRate!;
}
if (!TeaUtils.Client.isUnset(request.handlerId)) {
query["HandlerId"] = request.handlerId!;
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.name)) {
query["Name"] = request.name ?? "";
}
if (!TeaUtils.Client.isUnset(request.numRepeated)) {
query["NumRepeated"] = request.numRepeated!;
}
if (!TeaUtils.Client.isUnset(request.outboundNumsShrink)) {
query["OutboundNums"] = request.outboundNumsShrink ?? "";
}
if (!TeaUtils.Client.isUnset(request.recallRuleShrink)) {
query["RecallRule"] = request.recallRuleShrink ?? "";
}
if (!TeaUtils.Client.isUnset(request.taskId)) {
query["TaskId"] = request.taskId!;
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "UpdateAiOutboundTask",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(UpdateAiOutboundTaskResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func updateAiOutboundTask(_ request: UpdateAiOutboundTaskRequest) async throws -> UpdateAiOutboundTaskResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await updateAiOutboundTaskWithOptions(request as! UpdateAiOutboundTaskRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func updateDepartmentWithOptions(_ request: UpdateDepartmentRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateDepartmentResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.departmentId)) {
query["DepartmentId"] = request.departmentId!;
}
if (!TeaUtils.Client.isUnset(request.departmentName)) {
query["DepartmentName"] = request.departmentName ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "UpdateDepartment",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(UpdateDepartmentResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func updateDepartment(_ request: UpdateDepartmentRequest) async throws -> UpdateDepartmentResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await updateDepartmentWithOptions(request as! UpdateDepartmentRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func updateOuterAccountWithOptions(_ request: UpdateOuterAccountRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateOuterAccountResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: String] = AlibabaCloudOpenApiUtil.Client.query(TeaUtils.Client.toMap(request))
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "UpdateOuterAccount",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "GET",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(UpdateOuterAccountResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func updateOuterAccount(_ request: UpdateOuterAccountRequest) async throws -> UpdateOuterAccountResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await updateOuterAccountWithOptions(request as! UpdateOuterAccountRequest, runtime as! TeaUtils.RuntimeOptions)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func updateSkillGroupWithOptions(_ request: UpdateSkillGroupRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateSkillGroupResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.clientToken)) {
query["ClientToken"] = request.clientToken ?? "";
}
if (!TeaUtils.Client.isUnset(request.description_)) {
query["Description"] = request.description_ ?? "";
}
if (!TeaUtils.Client.isUnset(request.displayName)) {
query["DisplayName"] = request.displayName ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.skillGroupId)) {
query["SkillGroupId"] = request.skillGroupId!;
}
if (!TeaUtils.Client.isUnset(request.skillGroupName)) {
query["SkillGroupName"] = request.skillGroupName ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "UpdateSkillGroup",
"version": "2019-10-15",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(UpdateSkillGroupResponse(), tmp)
}
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func updateSkillGroup(_ request: UpdateSkillGroupRequest) async throws -> UpdateSkillGroupResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await updateSkillGroupWithOptions(request as! UpdateSkillGroupRequest, runtime as! TeaUtils.RuntimeOptions)
}
}