Skip to content

Commit

Permalink
Support API AcceptChat.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jun 20, 2024
1 parent ba1ae97 commit 265db26
Show file tree
Hide file tree
Showing 5 changed files with 1,700 additions and 388 deletions.
2 changes: 1 addition & 1 deletion AlibabacloudCCC20200701.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = "AlibabacloudCCC20200701"
spec.version = "2.17.2"
spec.version = "2.18.0"
spec.license = "Apache 2.0"
spec.summary = "Alibaba Cloud cloud call center (20200701) SDK Library for Swift"
spec.homepage = "https://github.com/alibabacloud-sdk-swift/ccc-20200701"
Expand Down
4 changes: 2 additions & 2 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
要使用 [Carthage](https://github.com/Carthage/Carthage)`AlibabacloudCCC20200701` 集成到你的 Xcode 项目中,需要在 `Cartfile` 中定义以下内容:

```ogdl
github "alibabacloud-sdk-swift/ccc-20200701" "2.17.2"
github "alibabacloud-sdk-swift/ccc-20200701" "2.18.0"
```

### Swift 包管理工具
Expand All @@ -26,7 +26,7 @@ github "alibabacloud-sdk-swift/ccc-20200701" "2.17.2"

```swift
dependencies: [
.package(url: "https://github.com/alibabacloud-sdk-swift/ccc-20200701.git", from: "2.17.2")
.package(url: "https://github.com/alibabacloud-sdk-swift/ccc-20200701.git", from: "2.18.0")
]
```

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ English | [简体中文](README-CN.md)
To integrate `AlibabacloudCCC20200701` into your Xcode project using [Carthage](https://github.com/Carthage/Carthage), specify it in your `Cartfile`:

```ogdl
github "alibabacloud-sdk-swift/ccc-20200701" "2.17.2"
github "alibabacloud-sdk-swift/ccc-20200701" "2.18.0"
```

### Swift Package Manager
Expand All @@ -26,7 +26,7 @@ To integrate `AlibabacloudCCC20200701` into your Xcode project using [Swift Pack

```swift
dependencies: [
.package(url: "https://github.com/alibabacloud-sdk-swift/ccc-20200701.git", from: "2.17.2")
.package(url: "https://github.com/alibabacloud-sdk-swift/ccc-20200701.git", from: "2.18.0")
]
```

Expand Down
156 changes: 156 additions & 0 deletions Sources/AlibabacloudCCC20200701/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,40 @@ open class Client : AlibabacloudOpenApi.Client {
return try await abortCampaignWithOptions(request as! AbortCampaignRequest, runtime as! TeaUtils.RuntimeOptions)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func acceptChatWithOptions(_ request: AcceptChatRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> AcceptChatResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.jobId)) {
query["JobId"] = request.jobId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "AcceptChat",
"version": "2020-07-01",
"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(AcceptChatResponse(), tmp)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func acceptChat(_ request: AcceptChatRequest) async throws -> AcceptChatResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await acceptChatWithOptions(request as! AcceptChatRequest, runtime as! TeaUtils.RuntimeOptions)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func addBlacklistCallTaggingWithOptions(_ request: AddBlacklistCallTaggingRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> AddBlacklistCallTaggingResponse {
try TeaUtils.Client.validateModel(request)
Expand Down Expand Up @@ -903,6 +937,43 @@ open class Client : AlibabacloudOpenApi.Client {
return try await changeWorkModeWithOptions(request as! ChangeWorkModeRequest, runtime as! TeaUtils.RuntimeOptions)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func claimChatWithOptions(_ request: ClaimChatRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ClaimChatResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.jobId)) {
query["JobId"] = request.jobId ?? "";
}
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": "ClaimChat",
"version": "2020-07-01",
"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(ClaimChatResponse(), tmp)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func claimChat(_ request: ClaimChatRequest) async throws -> ClaimChatResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await claimChatWithOptions(request as! ClaimChatRequest, runtime as! TeaUtils.RuntimeOptions)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func coachCallWithOptions(_ request: CoachCallRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CoachCallResponse {
try TeaUtils.Client.validateModel(request)
Expand Down Expand Up @@ -3076,6 +3147,46 @@ open class Client : AlibabacloudOpenApi.Client {
return try await getVideoWithOptions(request as! GetVideoRequest, runtime as! TeaUtils.RuntimeOptions)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getVisitorLoginDetailsWithOptions(_ request: GetVisitorLoginDetailsRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetVisitorLoginDetailsResponse {
try TeaUtils.Client.validateModel(request)
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.chatDeviceId)) {
query["ChatDeviceId"] = request.chatDeviceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.token)) {
query["Token"] = request.token ?? "";
}
if (!TeaUtils.Client.isUnset(request.visitorId)) {
query["VisitorId"] = request.visitorId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetVisitorLoginDetails",
"version": "2020-07-01",
"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(GetVisitorLoginDetailsResponse(), tmp)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getVisitorLoginDetails(_ request: GetVisitorLoginDetailsRequest) async throws -> GetVisitorLoginDetailsResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getVisitorLoginDetailsWithOptions(request as! GetVisitorLoginDetailsRequest, runtime as! TeaUtils.RuntimeOptions)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getVoicemailRecordingWithOptions(_ request: GetVoicemailRecordingRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetVoicemailRecordingResponse {
try TeaUtils.Client.validateModel(request)
Expand Down Expand Up @@ -7589,6 +7700,51 @@ open class Client : AlibabacloudOpenApi.Client {
return try await startBack2BackCallWithOptions(request as! StartBack2BackCallRequest, runtime as! TeaUtils.RuntimeOptions)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func startChatWithOptions(_ tmpReq: StartChatRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> StartChatResponse {
try TeaUtils.Client.validateModel(tmpReq)
var request: StartChatShrinkRequest = StartChatShrinkRequest([:])
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
if (!TeaUtils.Client.isUnset(tmpReq.userList)) {
request.userListShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.userList, "UserList", "json")
}
var query: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.accessChannelId)) {
query["AccessChannelId"] = request.accessChannelId ?? "";
}
if (!TeaUtils.Client.isUnset(request.instanceId)) {
query["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.token)) {
query["Token"] = request.token ?? "";
}
if (!TeaUtils.Client.isUnset(request.userListShrink)) {
query["UserList"] = request.userListShrink ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"query": AlibabaCloudOpenApiUtil.Client.query(query)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "StartChat",
"version": "2020-07-01",
"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(StartChatResponse(), tmp)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func startChat(_ request: StartChatRequest) async throws -> StartChatResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await startChatWithOptions(request as! StartChatRequest, runtime as! TeaUtils.RuntimeOptions)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func startConferenceWithOptions(_ request: StartConferenceRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> StartConferenceResponse {
try TeaUtils.Client.validateModel(request)
Expand Down
Loading

0 comments on commit 265db26

Please sign in to comment.