Files
swift-sdk/Sources/Hanzo/Models/O11yO11yOIDCConfig.swift
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
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.
2026-08-23 10:04:41 -07:00

61 lines
2.4 KiB
Swift

//
// O11yO11yOIDCConfig.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yOIDCConfig: Sendable, Codable, ParameterConvertible, Hashable {
/** ClaimMapping names the token claims to read identity from. */
public var claimMapping: O11yO11yAttributeMapping?
/** ClientID is the OAuth application's id. */
public var clientId: String?
/** ClientSecret is the OAuth application's secret. */
public var clientSecret: String?
/** GetUserInfo also queries the userinfo endpoint, for providers whose id tokens are thin. */
public var getUserInfo: Bool?
/** InsecureSkipEmailVerified admits addresses the provider has not verified. */
public var insecureSkipEmailVerified: Bool?
/** Issuer is the provider's issuer URL. */
public var issuer: String?
/** IssuerAlias overrides the issuer for providers whose discovery document disagrees with their issuer URL. */
public var issuerAlias: String?
public init(claimMapping: O11yO11yAttributeMapping? = nil, clientId: String? = nil, clientSecret: String? = nil, getUserInfo: Bool? = nil, insecureSkipEmailVerified: Bool? = nil, issuer: String? = nil, issuerAlias: String? = nil) {
self.claimMapping = claimMapping
self.clientId = clientId
self.clientSecret = clientSecret
self.getUserInfo = getUserInfo
self.insecureSkipEmailVerified = insecureSkipEmailVerified
self.issuer = issuer
self.issuerAlias = issuerAlias
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case claimMapping
case clientId
case clientSecret
case getUserInfo
case insecureSkipEmailVerified
case issuer
case issuerAlias
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(claimMapping, forKey: .claimMapping)
try container.encodeIfPresent(clientId, forKey: .clientId)
try container.encodeIfPresent(clientSecret, forKey: .clientSecret)
try container.encodeIfPresent(getUserInfo, forKey: .getUserInfo)
try container.encodeIfPresent(insecureSkipEmailVerified, forKey: .insecureSkipEmailVerified)
try container.encodeIfPresent(issuer, forKey: .issuer)
try container.encodeIfPresent(issuerAlias, forKey: .issuerAlias)
}
}