@@ -1054,8 +1054,13 @@ open class Client : AlibabacloudOpenApi.Client {
1054
1054
}
1055
1055
1056
1056
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
1057
- public func createLivePackageOriginEndpointWithOptions(_ request: CreateLivePackageOriginEndpointRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateLivePackageOriginEndpointResponse {
1058
- try TeaUtils.Client.validateModel(request)
1057
+ public func createLivePackageOriginEndpointWithOptions(_ tmpReq: CreateLivePackageOriginEndpointRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateLivePackageOriginEndpointResponse {
1058
+ try TeaUtils.Client.validateModel(tmpReq)
1059
+ var request: CreateLivePackageOriginEndpointShrinkRequest = CreateLivePackageOriginEndpointShrinkRequest([:])
1060
+ AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
1061
+ if (!TeaUtils.Client.isUnset(tmpReq.livePackagingConfig)) {
1062
+ request.livePackagingConfigShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.livePackagingConfig, "LivePackagingConfig", "json")
1063
+ }
1059
1064
var query: [String: Any] = [:]
1060
1065
if (!TeaUtils.Client.isUnset(request.clientToken)) {
1061
1066
query["ClientToken"] = request.clientToken ?? "";
@@ -1082,6 +1087,9 @@ open class Client : AlibabacloudOpenApi.Client {
1082
1087
if (!TeaUtils.Client.isUnset(request.ipWhitelist)) {
1083
1088
body["IpWhitelist"] = request.ipWhitelist ?? "";
1084
1089
}
1090
+ if (!TeaUtils.Client.isUnset(request.livePackagingConfigShrink)) {
1091
+ body["LivePackagingConfig"] = request.livePackagingConfigShrink ?? "";
1092
+ }
1085
1093
if (!TeaUtils.Client.isUnset(request.manifestName)) {
1086
1094
body["ManifestName"] = request.manifestName ?? "";
1087
1095
}
@@ -3670,6 +3678,9 @@ open class Client : AlibabacloudOpenApi.Client {
3670
3678
try TeaUtils.Client.validateModel(tmpReq)
3671
3679
var request: GenerateAIAgentCallShrinkRequest = GenerateAIAgentCallShrinkRequest([:])
3672
3680
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
3681
+ if (!TeaUtils.Client.isUnset(tmpReq.agentConfig)) {
3682
+ request.agentConfigShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.agentConfig, "AgentConfig", "json")
3683
+ }
3673
3684
if (!TeaUtils.Client.isUnset(tmpReq.chatSyncConfig)) {
3674
3685
request.chatSyncConfigShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.chatSyncConfig, "ChatSyncConfig", "json")
3675
3686
}
@@ -3680,6 +3691,9 @@ open class Client : AlibabacloudOpenApi.Client {
3680
3691
if (!TeaUtils.Client.isUnset(request.AIAgentId)) {
3681
3692
query["AIAgentId"] = request.AIAgentId ?? "";
3682
3693
}
3694
+ if (!TeaUtils.Client.isUnset(request.agentConfigShrink)) {
3695
+ query["AgentConfig"] = request.agentConfigShrink ?? "";
3696
+ }
3683
3697
if (!TeaUtils.Client.isUnset(request.chatSyncConfigShrink)) {
3684
3698
query["ChatSyncConfig"] = request.chatSyncConfigShrink ?? "";
3685
3699
}
@@ -5884,6 +5898,40 @@ open class Client : AlibabacloudOpenApi.Client {
5884
5898
return try await listAIAgentInstanceWithOptions(request as! ListAIAgentInstanceRequest, runtime as! TeaUtils.RuntimeOptions)
5885
5899
}
5886
5900
5901
+ @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
5902
+ public func listAIAgentPhoneNumberWithOptions(_ request: ListAIAgentPhoneNumberRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListAIAgentPhoneNumberResponse {
5903
+ try TeaUtils.Client.validateModel(request)
5904
+ var query: [String: Any] = [:]
5905
+ if (!TeaUtils.Client.isUnset(request.pageNumber)) {
5906
+ query["PageNumber"] = request.pageNumber!;
5907
+ }
5908
+ if (!TeaUtils.Client.isUnset(request.pageSize)) {
5909
+ query["PageSize"] = request.pageSize!;
5910
+ }
5911
+ var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
5912
+ "query": AlibabaCloudOpenApiUtil.Client.query(query)
5913
+ ])
5914
+ var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
5915
+ "action": "ListAIAgentPhoneNumber",
5916
+ "version": "2020-11-09",
5917
+ "protocol": "HTTPS",
5918
+ "pathname": "/",
5919
+ "method": "POST",
5920
+ "authType": "AK",
5921
+ "style": "RPC",
5922
+ "reqBodyType": "formData",
5923
+ "bodyType": "json"
5924
+ ])
5925
+ var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
5926
+ return Tea.TeaConverter.fromMap(ListAIAgentPhoneNumberResponse(), tmp)
5927
+ }
5928
+
5929
+ @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
5930
+ public func listAIAgentPhoneNumber(_ request: ListAIAgentPhoneNumberRequest) async throws -> ListAIAgentPhoneNumberResponse {
5931
+ var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
5932
+ return try await listAIAgentPhoneNumberWithOptions(request as! ListAIAgentPhoneNumberRequest, runtime as! TeaUtils.RuntimeOptions)
5933
+ }
5934
+
5887
5935
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
5888
5936
public func listAdInsertionsWithOptions(_ request: ListAdInsertionsRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListAdInsertionsResponse {
5889
5937
try TeaUtils.Client.validateModel(request)
@@ -9576,6 +9624,9 @@ open class Client : AlibabacloudOpenApi.Client {
9576
9624
try TeaUtils.Client.validateModel(tmpReq)
9577
9625
var request: StartAIAgentInstanceShrinkRequest = StartAIAgentInstanceShrinkRequest([:])
9578
9626
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
9627
+ if (!TeaUtils.Client.isUnset(tmpReq.agentConfig)) {
9628
+ request.agentConfigShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.agentConfig, "AgentConfig", "json")
9629
+ }
9579
9630
if (!TeaUtils.Client.isUnset(tmpReq.chatSyncConfig)) {
9580
9631
request.chatSyncConfigShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.chatSyncConfig, "ChatSyncConfig", "json")
9581
9632
}
@@ -9589,6 +9640,9 @@ open class Client : AlibabacloudOpenApi.Client {
9589
9640
if (!TeaUtils.Client.isUnset(request.AIAgentId)) {
9590
9641
query["AIAgentId"] = request.AIAgentId ?? "";
9591
9642
}
9643
+ if (!TeaUtils.Client.isUnset(request.agentConfigShrink)) {
9644
+ query["AgentConfig"] = request.agentConfigShrink ?? "";
9645
+ }
9592
9646
if (!TeaUtils.Client.isUnset(request.chatSyncConfigShrink)) {
9593
9647
query["ChatSyncConfig"] = request.chatSyncConfigShrink ?? "";
9594
9648
}
@@ -9628,6 +9682,57 @@ open class Client : AlibabacloudOpenApi.Client {
9628
9682
return try await startAIAgentInstanceWithOptions(request as! StartAIAgentInstanceRequest, runtime as! TeaUtils.RuntimeOptions)
9629
9683
}
9630
9684
9685
+ @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
9686
+ public func startAIAgentOutboundCallWithOptions(_ tmpReq: StartAIAgentOutboundCallRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> StartAIAgentOutboundCallResponse {
9687
+ try TeaUtils.Client.validateModel(tmpReq)
9688
+ var request: StartAIAgentOutboundCallShrinkRequest = StartAIAgentOutboundCallShrinkRequest([:])
9689
+ AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
9690
+ if (!TeaUtils.Client.isUnset(tmpReq.config)) {
9691
+ request.configShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.config, "Config", "json")
9692
+ }
9693
+ var query: [String: Any] = [:]
9694
+ if (!TeaUtils.Client.isUnset(request.AIAgentId)) {
9695
+ query["AIAgentId"] = request.AIAgentId ?? "";
9696
+ }
9697
+ if (!TeaUtils.Client.isUnset(request.calledNumber)) {
9698
+ query["CalledNumber"] = request.calledNumber ?? "";
9699
+ }
9700
+ if (!TeaUtils.Client.isUnset(request.callerNumber)) {
9701
+ query["CallerNumber"] = request.callerNumber ?? "";
9702
+ }
9703
+ if (!TeaUtils.Client.isUnset(request.configShrink)) {
9704
+ query["Config"] = request.configShrink ?? "";
9705
+ }
9706
+ if (!TeaUtils.Client.isUnset(request.sessionId)) {
9707
+ query["SessionId"] = request.sessionId ?? "";
9708
+ }
9709
+ if (!TeaUtils.Client.isUnset(request.userData)) {
9710
+ query["UserData"] = request.userData ?? "";
9711
+ }
9712
+ var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
9713
+ "query": AlibabaCloudOpenApiUtil.Client.query(query)
9714
+ ])
9715
+ var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
9716
+ "action": "StartAIAgentOutboundCall",
9717
+ "version": "2020-11-09",
9718
+ "protocol": "HTTPS",
9719
+ "pathname": "/",
9720
+ "method": "POST",
9721
+ "authType": "AK",
9722
+ "style": "RPC",
9723
+ "reqBodyType": "formData",
9724
+ "bodyType": "json"
9725
+ ])
9726
+ var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
9727
+ return Tea.TeaConverter.fromMap(StartAIAgentOutboundCallResponse(), tmp)
9728
+ }
9729
+
9730
+ @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
9731
+ public func startAIAgentOutboundCall(_ request: StartAIAgentOutboundCallRequest) async throws -> StartAIAgentOutboundCallResponse {
9732
+ var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
9733
+ return try await startAIAgentOutboundCallWithOptions(request as! StartAIAgentOutboundCallRequest, runtime as! TeaUtils.RuntimeOptions)
9734
+ }
9735
+
9631
9736
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
9632
9737
public func startChannelWithOptions(_ request: StartChannelRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> StartChannelResponse {
9633
9738
try TeaUtils.Client.validateModel(request)
@@ -9902,6 +10007,63 @@ open class Client : AlibabacloudOpenApi.Client {
9902
10007
return try await stopRtcRobotInstanceWithOptions(request as! StopRtcRobotInstanceRequest, runtime as! TeaUtils.RuntimeOptions)
9903
10008
}
9904
10009
10010
+ @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
10011
+ public func submitAIAgentVideoAuditTaskWithOptions(_ tmpReq: SubmitAIAgentVideoAuditTaskRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> SubmitAIAgentVideoAuditTaskResponse {
10012
+ try TeaUtils.Client.validateModel(tmpReq)
10013
+ var request: SubmitAIAgentVideoAuditTaskShrinkRequest = SubmitAIAgentVideoAuditTaskShrinkRequest([:])
10014
+ AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
10015
+ if (!TeaUtils.Client.isUnset(tmpReq.callbackConfig)) {
10016
+ request.callbackConfigShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.callbackConfig, "CallbackConfig", "json")
10017
+ }
10018
+ if (!TeaUtils.Client.isUnset(tmpReq.capturePolicies)) {
10019
+ request.capturePoliciesShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.capturePolicies, "CapturePolicies", "json")
10020
+ }
10021
+ if (!TeaUtils.Client.isUnset(tmpReq.input)) {
10022
+ request.inputShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.input, "Input", "json")
10023
+ }
10024
+ var query: [String: Any] = [:]
10025
+ if (!TeaUtils.Client.isUnset(request.AIAgentId)) {
10026
+ query["AIAgentId"] = request.AIAgentId ?? "";
10027
+ }
10028
+ if (!TeaUtils.Client.isUnset(request.auditInterval)) {
10029
+ query["AuditInterval"] = request.auditInterval!;
10030
+ }
10031
+ if (!TeaUtils.Client.isUnset(request.callbackConfigShrink)) {
10032
+ query["CallbackConfig"] = request.callbackConfigShrink ?? "";
10033
+ }
10034
+ if (!TeaUtils.Client.isUnset(request.capturePoliciesShrink)) {
10035
+ query["CapturePolicies"] = request.capturePoliciesShrink ?? "";
10036
+ }
10037
+ if (!TeaUtils.Client.isUnset(request.inputShrink)) {
10038
+ query["Input"] = request.inputShrink ?? "";
10039
+ }
10040
+ if (!TeaUtils.Client.isUnset(request.userData)) {
10041
+ query["UserData"] = request.userData ?? "";
10042
+ }
10043
+ var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
10044
+ "query": AlibabaCloudOpenApiUtil.Client.query(query)
10045
+ ])
10046
+ var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
10047
+ "action": "SubmitAIAgentVideoAuditTask",
10048
+ "version": "2020-11-09",
10049
+ "protocol": "HTTPS",
10050
+ "pathname": "/",
10051
+ "method": "POST",
10052
+ "authType": "AK",
10053
+ "style": "RPC",
10054
+ "reqBodyType": "formData",
10055
+ "bodyType": "json"
10056
+ ])
10057
+ var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
10058
+ return Tea.TeaConverter.fromMap(SubmitAIAgentVideoAuditTaskResponse(), tmp)
10059
+ }
10060
+
10061
+ @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
10062
+ public func submitAIAgentVideoAuditTask(_ request: SubmitAIAgentVideoAuditTaskRequest) async throws -> SubmitAIAgentVideoAuditTaskResponse {
10063
+ var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
10064
+ return try await submitAIAgentVideoAuditTaskWithOptions(request as! SubmitAIAgentVideoAuditTaskRequest, runtime as! TeaUtils.RuntimeOptions)
10065
+ }
10066
+
9905
10067
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
9906
10068
public func submitASRJobWithOptions(_ request: SubmitASRJobRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> SubmitASRJobResponse {
9907
10069
try TeaUtils.Client.validateModel(request)
@@ -11828,10 +11990,16 @@ open class Client : AlibabacloudOpenApi.Client {
11828
11990
try TeaUtils.Client.validateModel(tmpReq)
11829
11991
var request: UpdateAIAgentInstanceShrinkRequest = UpdateAIAgentInstanceShrinkRequest([:])
11830
11992
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
11993
+ if (!TeaUtils.Client.isUnset(tmpReq.agentConfig)) {
11994
+ request.agentConfigShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.agentConfig, "AgentConfig", "json")
11995
+ }
11831
11996
if (!TeaUtils.Client.isUnset(tmpReq.templateConfig)) {
11832
11997
request.templateConfigShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.templateConfig, "TemplateConfig", "json")
11833
11998
}
11834
11999
var query: [String: Any] = [:]
12000
+ if (!TeaUtils.Client.isUnset(request.agentConfigShrink)) {
12001
+ query["AgentConfig"] = request.agentConfigShrink ?? "";
12002
+ }
11835
12003
if (!TeaUtils.Client.isUnset(request.instanceId)) {
11836
12004
query["InstanceId"] = request.instanceId ?? "";
11837
12005
}
@@ -12292,8 +12460,13 @@ open class Client : AlibabacloudOpenApi.Client {
12292
12460
}
12293
12461
12294
12462
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
12295
- public func updateLivePackageOriginEndpointWithOptions(_ request: UpdateLivePackageOriginEndpointRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateLivePackageOriginEndpointResponse {
12296
- try TeaUtils.Client.validateModel(request)
12463
+ public func updateLivePackageOriginEndpointWithOptions(_ tmpReq: UpdateLivePackageOriginEndpointRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateLivePackageOriginEndpointResponse {
12464
+ try TeaUtils.Client.validateModel(tmpReq)
12465
+ var request: UpdateLivePackageOriginEndpointShrinkRequest = UpdateLivePackageOriginEndpointShrinkRequest([:])
12466
+ AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
12467
+ if (!TeaUtils.Client.isUnset(tmpReq.livePackagingConfig)) {
12468
+ request.livePackagingConfigShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.livePackagingConfig, "LivePackagingConfig", "json")
12469
+ }
12297
12470
var body: [String: Any] = [:]
12298
12471
if (!TeaUtils.Client.isUnset(request.authorizationCode)) {
12299
12472
body["AuthorizationCode"] = request.authorizationCode ?? "";
@@ -12316,6 +12489,9 @@ open class Client : AlibabacloudOpenApi.Client {
12316
12489
if (!TeaUtils.Client.isUnset(request.ipWhitelist)) {
12317
12490
body["IpWhitelist"] = request.ipWhitelist ?? "";
12318
12491
}
12492
+ if (!TeaUtils.Client.isUnset(request.livePackagingConfigShrink)) {
12493
+ body["LivePackagingConfig"] = request.livePackagingConfigShrink ?? "";
12494
+ }
12319
12495
if (!TeaUtils.Client.isUnset(request.manifestName)) {
12320
12496
body["ManifestName"] = request.manifestName ?? "";
12321
12497
}
0 commit comments