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.
114 lines
4.8 KiB
Swift
114 lines
4.8 KiB
Swift
//
|
|
// IamWebauthnCredential.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct IamWebauthnCredential: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var aaguid: String?
|
|
public var attachment: String?
|
|
/** AttestationFormat is the statement format the authenticator attested in (\"packed\", \"apple\", \"none\", …), which is a DIFFERENT value from the attestation type above. The library reads it back when resolving the FIDO AppID extension, so a row that dropped it would round-trip a credential the verifier no longer recognises as the one it stored. */
|
|
public var attestationFormat: String?
|
|
public var attestationType: String?
|
|
public var backupEligible: Bool?
|
|
public var backupState: Bool?
|
|
public var cloneWarning: Bool?
|
|
public var createdAt: Date?
|
|
public var createdTime: String?
|
|
public var credentialId: String?
|
|
public var deleted: Bool?
|
|
public var id: String?
|
|
public var name: String?
|
|
public var owner: String?
|
|
public var publicKey: String?
|
|
public var signCount: Int?
|
|
public var transport: [String]?
|
|
public var updatedAt: Date?
|
|
public var user: String?
|
|
public var userPresent: Bool?
|
|
public var userVerified: Bool?
|
|
|
|
public init(aaguid: String? = nil, attachment: String? = nil, attestationFormat: String? = nil, attestationType: String? = nil, backupEligible: Bool? = nil, backupState: Bool? = nil, cloneWarning: Bool? = nil, createdAt: Date? = nil, createdTime: String? = nil, credentialId: String? = nil, deleted: Bool? = nil, id: String? = nil, name: String? = nil, owner: String? = nil, publicKey: String? = nil, signCount: Int? = nil, transport: [String]? = nil, updatedAt: Date? = nil, user: String? = nil, userPresent: Bool? = nil, userVerified: Bool? = nil) {
|
|
self.aaguid = aaguid
|
|
self.attachment = attachment
|
|
self.attestationFormat = attestationFormat
|
|
self.attestationType = attestationType
|
|
self.backupEligible = backupEligible
|
|
self.backupState = backupState
|
|
self.cloneWarning = cloneWarning
|
|
self.createdAt = createdAt
|
|
self.createdTime = createdTime
|
|
self.credentialId = credentialId
|
|
self.deleted = deleted
|
|
self.id = id
|
|
self.name = name
|
|
self.owner = owner
|
|
self.publicKey = publicKey
|
|
self.signCount = signCount
|
|
self.transport = transport
|
|
self.updatedAt = updatedAt
|
|
self.user = user
|
|
self.userPresent = userPresent
|
|
self.userVerified = userVerified
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case aaguid
|
|
case attachment
|
|
case attestationFormat
|
|
case attestationType
|
|
case backupEligible
|
|
case backupState
|
|
case cloneWarning
|
|
case createdAt
|
|
case createdTime
|
|
case credentialId
|
|
case deleted
|
|
case id
|
|
case name
|
|
case owner
|
|
case publicKey
|
|
case signCount
|
|
case transport
|
|
case updatedAt
|
|
case user
|
|
case userPresent
|
|
case userVerified
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(aaguid, forKey: .aaguid)
|
|
try container.encodeIfPresent(attachment, forKey: .attachment)
|
|
try container.encodeIfPresent(attestationFormat, forKey: .attestationFormat)
|
|
try container.encodeIfPresent(attestationType, forKey: .attestationType)
|
|
try container.encodeIfPresent(backupEligible, forKey: .backupEligible)
|
|
try container.encodeIfPresent(backupState, forKey: .backupState)
|
|
try container.encodeIfPresent(cloneWarning, forKey: .cloneWarning)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(createdTime, forKey: .createdTime)
|
|
try container.encodeIfPresent(credentialId, forKey: .credentialId)
|
|
try container.encodeIfPresent(deleted, forKey: .deleted)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(owner, forKey: .owner)
|
|
try container.encodeIfPresent(publicKey, forKey: .publicKey)
|
|
try container.encodeIfPresent(signCount, forKey: .signCount)
|
|
try container.encodeIfPresent(transport, forKey: .transport)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
try container.encodeIfPresent(user, forKey: .user)
|
|
try container.encodeIfPresent(userPresent, forKey: .userPresent)
|
|
try container.encodeIfPresent(userVerified, forKey: .userVerified)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension IamWebauthnCredential: Identifiable {}
|