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.
89 lines
3.4 KiB
Swift
89 lines
3.4 KiB
Swift
//
|
|
// O11yAnnItemView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yAnnItemView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Assignee is the reviewer it is for, omitted when unassigned. */
|
|
public var assignee: String?
|
|
/** CompletedAt is when it was reviewed, omitted while pending. */
|
|
public var completedAt: String?
|
|
/** CreatedAt is when it was enqueued, RFC3339 in UTC. */
|
|
public var createdAt: String?
|
|
/** ID is the item's id. */
|
|
public var id: String?
|
|
/** ObjectID is the referenced object's id. */
|
|
public var objectId: String?
|
|
/** ObjectType is what it references: TRACE, OBSERVATION or SESSION. */
|
|
public var objectType: String?
|
|
/** ObservationID echoes objectId when objectType is OBSERVATION. */
|
|
public var observationId: String?
|
|
/** QueueID is the queue it belongs to. */
|
|
public var queueId: String?
|
|
/** SessionID echoes objectId when objectType is SESSION. */
|
|
public var sessionId: String?
|
|
/** Status is PENDING or COMPLETED. */
|
|
public var status: String?
|
|
/** TraceID echoes objectId when objectType is TRACE. */
|
|
public var traceId: String?
|
|
/** UpdatedAt is when it last changed, RFC3339 in UTC. */
|
|
public var updatedAt: String?
|
|
|
|
public init(assignee: String? = nil, completedAt: String? = nil, createdAt: String? = nil, id: String? = nil, objectId: String? = nil, objectType: String? = nil, observationId: String? = nil, queueId: String? = nil, sessionId: String? = nil, status: String? = nil, traceId: String? = nil, updatedAt: String? = nil) {
|
|
self.assignee = assignee
|
|
self.completedAt = completedAt
|
|
self.createdAt = createdAt
|
|
self.id = id
|
|
self.objectId = objectId
|
|
self.objectType = objectType
|
|
self.observationId = observationId
|
|
self.queueId = queueId
|
|
self.sessionId = sessionId
|
|
self.status = status
|
|
self.traceId = traceId
|
|
self.updatedAt = updatedAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case assignee
|
|
case completedAt
|
|
case createdAt
|
|
case id
|
|
case objectId
|
|
case objectType
|
|
case observationId
|
|
case queueId
|
|
case sessionId
|
|
case status
|
|
case traceId
|
|
case updatedAt
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(assignee, forKey: .assignee)
|
|
try container.encodeIfPresent(completedAt, forKey: .completedAt)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(objectId, forKey: .objectId)
|
|
try container.encodeIfPresent(objectType, forKey: .objectType)
|
|
try container.encodeIfPresent(observationId, forKey: .observationId)
|
|
try container.encodeIfPresent(queueId, forKey: .queueId)
|
|
try container.encodeIfPresent(sessionId, forKey: .sessionId)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(traceId, forKey: .traceId)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension O11yAnnItemView: Identifiable {}
|