Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumps teco-core requirement to 0.5.3 #25

Merged
merged 2 commits into from
Aug 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@
"repositoryURL": "https://github.com/teco-project/teco-core.git",
"state": {
"branch": null,
"revision": "8f7facaf57fa1dbaaffe511b59a7fa2fc395fc17",
"version": "0.5.2"
"revision": "6bdf166c5284a1a4b178080fe563fe3db06e5363",
"version": "0.5.3"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ let package = Package(
.library(name: "TecoZjV20190121", targets: ["TecoZjV20190121"]),
],
dependencies: [
.package(url: "https://github.com/teco-project/teco-core.git", .upToNextMinor(from: "0.5.2"))
.package(url: "https://github.com/teco-project/teco-core.git", .upToNextMinor(from: "0.5.3"))
],
targets: [
.target(name: "TecoAaV20200224", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Aa/V20200224"),
Expand Down
4 changes: 2 additions & 2 deletions Sources/Teco/Aa/V20200224/actions/QueryActivityAntiRush.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Aa {
/// QueryActivityAntiRush请求参数结构体
public struct QueryActivityAntiRushRequest: TCRequestModel {
public struct QueryActivityAntiRushRequest: TCRequest {
/// 账号类型
public let accountType: String

Expand Down Expand Up @@ -200,7 +200,7 @@ extension Aa {
}

/// QueryActivityAntiRush返回参数结构体
public struct QueryActivityAntiRushResponse: TCResponseModel {
public struct QueryActivityAntiRushResponse: TCResponse {
/// 操作时间戳,单位:秒。
/// 注意:此字段可能返回 null,表示取不到有效值。
public let postTime: String?
Expand Down
4 changes: 2 additions & 2 deletions Sources/Teco/Aai/V20180522/actions/Chat.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Aai {
/// Chat请求参数结构体
public struct ChatRequest: TCRequestModel {
public struct ChatRequest: TCRequest {
/// 聊天输入文本
public let text: String

Expand All @@ -44,7 +44,7 @@ extension Aai {
}

/// Chat返回参数结构体
public struct ChatResponse: TCResponseModel {
public struct ChatResponse: TCResponse {
/// 聊天输出文本
public let answer: String

Expand Down
4 changes: 2 additions & 2 deletions Sources/Teco/Aai/V20180522/actions/SentenceRecognition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Aai {
/// SentenceRecognition请求参数结构体
public struct SentenceRecognitionRequest: TCRequestModel {
public struct SentenceRecognitionRequest: TCRequest {
/// 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
public let projectId: UInt64

Expand Down Expand Up @@ -74,7 +74,7 @@ extension Aai {
}

/// SentenceRecognition返回参数结构体
public struct SentenceRecognitionResponse: TCResponseModel {
public struct SentenceRecognitionResponse: TCResponse {
/// 识别结果。
public let result: String

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Aai {
/// SimultaneousInterpreting请求参数结构体
public struct SimultaneousInterpretingRequest: TCRequestModel {
public struct SimultaneousInterpretingRequest: TCRequest {
/// 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
public let projectId: UInt64

Expand Down Expand Up @@ -89,7 +89,7 @@ extension Aai {
}

/// SimultaneousInterpreting返回参数结构体
public struct SimultaneousInterpretingResponse: TCResponseModel {
public struct SimultaneousInterpretingResponse: TCResponse {
/// 语音识别的结果
public let asrText: String

Expand Down
4 changes: 2 additions & 2 deletions Sources/Teco/Aai/V20180522/actions/TextToVoice.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Aai {
/// TextToVoice请求参数结构体
public struct TextToVoiceRequest: TCRequestModel {
public struct TextToVoiceRequest: TCRequest {
/// 合成语音的源文本,按UTF-8编码统一计算。
/// 中文最大支持100个汉字(全角标点符号算一个汉字);英文最大支持400个字母(半角标点符号算一个字母)。包含空格等字符时需要url encode再传输。
public let text: String
Expand Down Expand Up @@ -98,7 +98,7 @@ extension Aai {
}

/// TextToVoice返回参数结构体
public struct TextToVoiceResponse: TCResponseModel {
public struct TextToVoiceResponse: TCResponse {
/// base64编码的wav/mp3音频数据
public let audio: String

Expand Down
4 changes: 2 additions & 2 deletions Sources/Teco/Acp/V20220105/actions/CreateAppScanTask.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Acp {
/// CreateAppScanTask请求参数结构体
public struct CreateAppScanTaskRequest: TCRequestModel {
public struct CreateAppScanTaskRequest: TCRequest {
/// 任务类型, 0:基础版, 1:专家版, 2:本地化
public let taskType: Int64

Expand Down Expand Up @@ -124,7 +124,7 @@ extension Acp {
}

/// CreateAppScanTask返回参数结构体
public struct CreateAppScanTaskResponse: TCResponseModel {
public struct CreateAppScanTaskResponse: TCResponse {
/// 返回值, 0:成功, 其他值请查看“返回值”定义
public let result: Int64

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Acp {
/// CreateAppScanTaskRepeat请求参数结构体
public struct CreateAppScanTaskRepeatRequest: TCRequestModel {
public struct CreateAppScanTaskRepeatRequest: TCRequest {
/// 任务来源, 0:小程序诊断, 1:预留字段(暂未使用), 2:app诊断(android), 3:app漏洞扫描;
public let source: Int64

Expand Down Expand Up @@ -89,7 +89,7 @@ extension Acp {
}

/// CreateAppScanTaskRepeat返回参数结构体
public struct CreateAppScanTaskRepeatResponse: TCResponseModel {
public struct CreateAppScanTaskRepeatResponse: TCResponse {
/// 返回值, 0:成功, 其他值请查看“返回值”定义
public let result: Int64

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Acp {
/// DescribeChannelTaskReportUrl请求参数结构体
public struct DescribeChannelTaskReportUrlRequest: TCRequestModel {
public struct DescribeChannelTaskReportUrlRequest: TCRequest {
/// 任务来源, 0:小程序诊断, 1:预留字段(暂未使用), 2:app诊断(android), 3:app漏洞扫描;
public let source: Int64

Expand Down Expand Up @@ -59,7 +59,7 @@ extension Acp {
}

/// DescribeChannelTaskReportUrl返回参数结构体
public struct DescribeChannelTaskReportUrlResponse: TCResponseModel {
public struct DescribeChannelTaskReportUrlResponse: TCResponse {
/// 返回值, 0:成功, 其他值请查看“返回值”定义
public let result: Int64

Expand Down
4 changes: 2 additions & 2 deletions Sources/Teco/Acp/V20220105/actions/DescribeFileTicket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Acp {
/// DescribeFileTicket请求参数结构体
public struct DescribeFileTicketRequest: TCRequestModel {
public struct DescribeFileTicketRequest: TCRequest {
/// 任务来源, 0:小程序诊断, 1:预留字段(暂未使用), 2:app诊断(android), 3:app漏洞扫描;
public let source: Int64

Expand All @@ -39,7 +39,7 @@ extension Acp {
}

/// DescribeFileTicket返回参数结构体
public struct DescribeFileTicketResponse: TCResponseModel {
public struct DescribeFileTicketResponse: TCResponse {
/// 返回值, 0:成功, 其他值请查看“返回值”定义
public let result: Int64

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Acp {
/// DescribeResourceUsageInfo请求参数结构体
public struct DescribeResourceUsageInfoRequest: TCRequestModel {
public struct DescribeResourceUsageInfoRequest: TCRequest {
/// 资源计费项名称(为空时,则根据Source,TaskType和Platform进行查询)
public let priceName: String?

Expand Down Expand Up @@ -49,7 +49,7 @@ extension Acp {
}

/// DescribeResourceUsageInfo返回参数结构体
public struct DescribeResourceUsageInfoResponse: TCResponseModel {
public struct DescribeResourceUsageInfoResponse: TCResponse {
/// 返回值, 0:成功, 其他值请查看“返回值”定义,暂时未定
public let result: Int64

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Acp {
/// DescribeScanTaskReportUrl请求参数结构体
public struct DescribeScanTaskReportUrlRequest: TCRequestModel {
public struct DescribeScanTaskReportUrlRequest: TCRequest {
/// 任务来源, 0:小程序诊断, 1:预留字段(暂未使用), 2:app诊断(android), 3:app漏洞扫描;
public let source: Int64

Expand Down Expand Up @@ -54,7 +54,7 @@ extension Acp {
}

/// DescribeScanTaskReportUrl返回参数结构体
public struct DescribeScanTaskReportUrlResponse: TCResponseModel {
public struct DescribeScanTaskReportUrlResponse: TCResponse {
/// 返回值, 0:成功, 其他值请查看“返回值”定义
public let result: Int64

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Acp {
/// DescribeScanTaskStatus请求参数结构体
public struct DescribeScanTaskStatusRequest: TCRequestModel {
public struct DescribeScanTaskStatusRequest: TCRequest {
/// 任务来源, 0:小程序诊断, 1:预留字段(暂未使用), 2:app诊断(android), 3:app漏洞扫描;
public let source: Int64

Expand Down Expand Up @@ -49,7 +49,7 @@ extension Acp {
}

/// DescribeScanTaskStatus返回参数结构体
public struct DescribeScanTaskStatusResponse: TCResponseModel {
public struct DescribeScanTaskStatusResponse: TCResponse {
/// 返回值, 0:成功, 其他值请查看“返回值”定义
public let result: Int64

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ import TecoCore

extension Advisor {
/// DescribeStrategies请求参数结构体
public struct DescribeStrategiesRequest: TCRequestModel {
public struct DescribeStrategiesRequest: TCRequest {
public init() {
}
}

/// DescribeStrategies返回参数结构体
public struct DescribeStrategiesResponse: TCResponseModel {
public struct DescribeStrategiesResponse: TCResponse {
/// 评估项列表
/// 注意:此字段可能返回 null,表示取不到有效值。
public let strategies: [DescribeStrategie]?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Advisor {
/// DescribeTaskStrategyRisks请求参数结构体
public struct DescribeTaskStrategyRisksRequest: TCRequestModel {
public struct DescribeTaskStrategyRisksRequest: TCRequest {
/// 评估项ID
public let strategyId: UInt64

Expand Down Expand Up @@ -54,7 +54,7 @@ extension Advisor {
}

/// DescribeTaskStrategyRisks返回参数结构体
public struct DescribeTaskStrategyRisksResponse: TCResponseModel {
public struct DescribeTaskStrategyRisksResponse: TCResponse {
/// 根据此配置,匹配风险实例列表(Risks)对应字段,例如:
/// {"Response":{"RequestId":"111","RiskFieldsDesc":[{"Field":"InstanceId","FieldName":"ID","FieldType":"string","FieldDict":{}},{"Field":"InstanceName","FieldName":"名称","FieldType":"string","FieldDict":{}},{"Field":"InstanceState","FieldName":"状态","FieldType":"string","FieldDict":{"LAUNCH_FAILED":"创建失败","PENDING":"创建中","REBOOTING":"重启中","RUNNING":"运行中","SHUTDOWN":"停止待销毁","STARTING":"开机中","STOPPED":"关机","STOPPING":"关机中","TERMINATING":"销毁中"}},{"Field":"Zone","FieldName":"可用区","FieldType":"string","FieldDict":{}},{"Field":"PrivateIPAddresses","FieldName":"IP地址(内)","FieldType":"stringSlice","FieldDict":{}},{"Field":"PublicIPAddresses","FieldName":"IP地址(公)","FieldType":"stringSlice","FieldDict":{}},{"Field":"Region","FieldName":"地域","FieldType":"string","FieldDict":{}},{"Field":"Tags","FieldName":"标签","FieldType":"tags","FieldDict":{}}],"RiskTotalCount":3,"Risks":"[{\"InstanceId\":\"ins-xxx1\",\"InstanceName\":\"xxx1\",\"InstanceState\":\"RUNNING\",\"PrivateIPAddresses\":[\"1.17.64.2\"],\"PublicIPAddresses\":null,\"Region\":\"ap-shanghai\",\"Tags\":null,\"Zone\":\"ap-shanghai-2\"},{\"InstanceId\":\"ins-xxx2\",\"InstanceName\":\"xxx2\",\"InstanceState\":\"RUNNING\",\"PrivateIPAddresses\":[\"1.17.64.11\"],\"PublicIPAddresses\":null,\"Region\":\"ap-shanghai\",\"Tags\":null,\"Zone\":\"ap-shanghai-2\"}]","StrategyId":9}}
/// 注意:此字段可能返回 null,表示取不到有效值。
Expand Down
4 changes: 2 additions & 2 deletions Sources/Teco/Af/V20200226/actions/DescribeAntiFraud.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Af {
/// DescribeAntiFraud请求参数结构体
public struct DescribeAntiFraudRequest: TCRequestModel {
public struct DescribeAntiFraudRequest: TCRequest {
/// 原始业务入参(二选一)
public let businessSecurityData: FinanceAntiFraudFilter?

Expand All @@ -39,7 +39,7 @@ extension Af {
}

/// DescribeAntiFraud返回参数结构体
public struct DescribeAntiFraudResponse: TCResponseModel {
public struct DescribeAntiFraudResponse: TCResponse {
/// 返回结果
/// 注意:此字段可能返回 null,表示取不到有效值。
public let data: FinanceAntiFraudRecord?
Expand Down
4 changes: 2 additions & 2 deletions Sources/Teco/Af/V20200226/actions/GetAntiFraud.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Af {
/// GetAntiFraud请求参数结构体
public struct GetAntiFraudRequest: TCRequestModel {
public struct GetAntiFraudRequest: TCRequest {
/// 默认不传,约定用原始业务
/// 入参(二选一BusinessSecurityData 或
/// BusinessCryptoData)。
Expand All @@ -44,7 +44,7 @@ extension Af {
}

/// GetAntiFraud返回参数结构体
public struct GetAntiFraudResponse: TCResponseModel {
public struct GetAntiFraudResponse: TCResponse {
/// 反欺诈评分接口结果
public let data: AntiFraudRecord

Expand Down
4 changes: 2 additions & 2 deletions Sources/Teco/Af/V20200226/actions/QueryAntiFraud.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Af {
/// QueryAntiFraud请求参数结构体
public struct QueryAntiFraudRequest: TCRequestModel {
public struct QueryAntiFraudRequest: TCRequest {
/// 电话号码(五选二)
public let phoneNumber: String?

Expand Down Expand Up @@ -153,7 +153,7 @@ extension Af {
}

/// QueryAntiFraud返回参数结构体
public struct QueryAntiFraudResponse: TCResponseModel {
public struct QueryAntiFraudResponse: TCResponse {
/// 表示该条记录能否查到:1为能查到,-1为查不到
public let found: Int64

Expand Down
4 changes: 2 additions & 2 deletions Sources/Teco/Afc/V20200226/actions/GetAntiFraudVip.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Afc {
/// GetAntiFraudVip请求参数结构体
public struct GetAntiFraudVipRequest: TCRequestModel {
public struct GetAntiFraudVipRequest: TCRequest {
/// 默认不传,约定用原始业务
/// 入参(二选一BusinessSecurityData 或
/// BusinessCryptoData)。
Expand All @@ -44,7 +44,7 @@ extension Afc {
}

/// GetAntiFraudVip返回参数结构体
public struct GetAntiFraudVipResponse: TCResponseModel {
public struct GetAntiFraudVipResponse: TCResponse {
/// 反欺诈评分接口结果
public let data: AntiFraudVipRecord

Expand Down
4 changes: 2 additions & 2 deletions Sources/Teco/Afc/V20200226/actions/QueryAntiFraudVip.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Afc {
/// QueryAntiFraudVip请求参数结构体
public struct QueryAntiFraudVipRequest: TCRequestModel {
public struct QueryAntiFraudVipRequest: TCRequest {
/// 电话号码(五选二)
public let phoneNumber: String?

Expand Down Expand Up @@ -153,7 +153,7 @@ extension Afc {
}

/// QueryAntiFraudVip返回参数结构体
public struct QueryAntiFraudVipResponse: TCResponseModel {
public struct QueryAntiFraudVipResponse: TCResponse {
/// 表示该条记录能否查到:1为能查到,-1为查不到
public let found: Int64

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Afc {
/// TransportGeneralInterface请求参数结构体
public struct TransportGeneralInterfaceRequest: TCRequestModel {
public struct TransportGeneralInterfaceRequest: TCRequest {
/// 业务入参
public let businessSecurityData: TransportGeneralInterfaceInput?

Expand All @@ -34,7 +34,7 @@ extension Afc {
}

/// TransportGeneralInterface返回参数结构体
public struct TransportGeneralInterfaceResponse: TCResponseModel {
public struct TransportGeneralInterfaceResponse: TCResponse {
/// 业务出参
/// 注意:此字段可能返回 null,表示取不到有效值。
public let data: TransportGeneralInterfaceOutput?
Expand Down
4 changes: 2 additions & 2 deletions Sources/Teco/Aiart/V20221229/actions/ImageToImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import TecoCore

extension Aiart {
/// ImageToImage请求参数结构体
public struct ImageToImageRequest: TCRequestModel {
public struct ImageToImageRequest: TCRequest {
/// 输入图 Base64 数据。
/// 算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
/// Base64 和 Url 必须提供一个,如果都提供以 Base64 为准。
Expand Down Expand Up @@ -97,7 +97,7 @@ extension Aiart {
}

/// ImageToImage返回参数结构体
public struct ImageToImageResponse: TCResponseModel {
public struct ImageToImageResponse: TCResponse {
/// 根据入参 RspImgType 填入不同,返回不同的内容。
/// 如果传入 base64 则返回生成图 Base64 编码。
/// 如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。
Expand Down
Loading