mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection these were generated from predated the compute migration, so they described /v1/visor — which the API serves at zero paths now. No /v1/visor path survives here.
74 lines
2.8 KiB
Swift
74 lines
2.8 KiB
Swift
//
|
|
// O11yAnnQueueDetailView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yAnnQueueDetailView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CompletedCount is how many have been reviewed. */
|
|
public var completedCount: Int64?
|
|
/** CreatedAt is when it was created, RFC3339 in UTC. */
|
|
public var createdAt: String?
|
|
/** Description is its free text, omitted when empty. */
|
|
public var description: String?
|
|
/** ID is the queue's id. */
|
|
public var id: String?
|
|
/** Items is the queue's first page of items (up to 100). */
|
|
public var items: [O11yAnnItemView]?
|
|
/** Name is its display handle. */
|
|
public var name: String?
|
|
/** PendingCount is how many of its items are still awaiting review. */
|
|
public var pendingCount: Int64?
|
|
/** ScoreConfigIDs are the eval score-configs reviewers grade against. */
|
|
public var scoreConfigIds: [String]?
|
|
/** UpdatedAt is when it last changed, RFC3339 in UTC. */
|
|
public var updatedAt: String?
|
|
|
|
public init(completedCount: Int64? = nil, createdAt: String? = nil, description: String? = nil, id: String? = nil, items: [O11yAnnItemView]? = nil, name: String? = nil, pendingCount: Int64? = nil, scoreConfigIds: [String]? = nil, updatedAt: String? = nil) {
|
|
self.completedCount = completedCount
|
|
self.createdAt = createdAt
|
|
self.description = description
|
|
self.id = id
|
|
self.items = items
|
|
self.name = name
|
|
self.pendingCount = pendingCount
|
|
self.scoreConfigIds = scoreConfigIds
|
|
self.updatedAt = updatedAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case completedCount
|
|
case createdAt
|
|
case description
|
|
case id
|
|
case items
|
|
case name
|
|
case pendingCount
|
|
case scoreConfigIds
|
|
case updatedAt
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(completedCount, forKey: .completedCount)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(description, forKey: .description)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(items, forKey: .items)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(pendingCount, forKey: .pendingCount)
|
|
try container.encodeIfPresent(scoreConfigIds, forKey: .scoreConfigIds)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension O11yAnnQueueDetailView: Identifiable {}
|