mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The forge tree held the package scaffolding and none of the generated sources — 2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply absent, so anything depending on this copy had a package that compiled to nothing usable. Generated from the current API document rather than reconciled with the other copy: a client is a function of the spec, so regenerating answers "which history wins" without anyone having to choose. .spec-lock records which document, so the next reader can tell.
74 lines
2.8 KiB
Swift
74 lines
2.8 KiB
Swift
//
|
|
// O11yWechatConfig.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yWechatConfig: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var notifierConfig: O11yNotifierConfig?
|
|
public var agentId: String?
|
|
public var apiSecret: JSONValue?
|
|
public var apiSecretFile: String?
|
|
public var apiUrl: JSONValue?
|
|
public var corpId: String?
|
|
public var httpConfig: O11yHTTPClientConfig?
|
|
public var message: String?
|
|
public var messageType: String?
|
|
public var toParty: String?
|
|
public var toTag: String?
|
|
public var toUser: String?
|
|
|
|
public init(notifierConfig: O11yNotifierConfig? = nil, agentId: String? = nil, apiSecret: JSONValue? = nil, apiSecretFile: String? = nil, apiUrl: JSONValue? = nil, corpId: String? = nil, httpConfig: O11yHTTPClientConfig? = nil, message: String? = nil, messageType: String? = nil, toParty: String? = nil, toTag: String? = nil, toUser: String? = nil) {
|
|
self.notifierConfig = notifierConfig
|
|
self.agentId = agentId
|
|
self.apiSecret = apiSecret
|
|
self.apiSecretFile = apiSecretFile
|
|
self.apiUrl = apiUrl
|
|
self.corpId = corpId
|
|
self.httpConfig = httpConfig
|
|
self.message = message
|
|
self.messageType = messageType
|
|
self.toParty = toParty
|
|
self.toTag = toTag
|
|
self.toUser = toUser
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case notifierConfig = "NotifierConfig"
|
|
case agentId = "agent_id"
|
|
case apiSecret = "api_secret"
|
|
case apiSecretFile = "api_secret_file"
|
|
case apiUrl = "api_url"
|
|
case corpId = "corp_id"
|
|
case httpConfig = "http_config"
|
|
case message
|
|
case messageType = "message_type"
|
|
case toParty = "to_party"
|
|
case toTag = "to_tag"
|
|
case toUser = "to_user"
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(notifierConfig, forKey: .notifierConfig)
|
|
try container.encodeIfPresent(agentId, forKey: .agentId)
|
|
try container.encodeIfPresent(apiSecret, forKey: .apiSecret)
|
|
try container.encodeIfPresent(apiSecretFile, forKey: .apiSecretFile)
|
|
try container.encodeIfPresent(apiUrl, forKey: .apiUrl)
|
|
try container.encodeIfPresent(corpId, forKey: .corpId)
|
|
try container.encodeIfPresent(httpConfig, forKey: .httpConfig)
|
|
try container.encodeIfPresent(message, forKey: .message)
|
|
try container.encodeIfPresent(messageType, forKey: .messageType)
|
|
try container.encodeIfPresent(toParty, forKey: .toParty)
|
|
try container.encodeIfPresent(toTag, forKey: .toTag)
|
|
try container.encodeIfPresent(toUser, forKey: .toUser)
|
|
}
|
|
}
|
|
|