Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

64 lines
3.0 KiB
Swift

//
// TodoProject.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct TodoProject: Sendable, Codable, ParameterConvertible, Hashable {
/** CreatedAt is when the board was created, in unix seconds. 0 on a forge board for the same reason Description is absent. */
public var createdAt: Int64?
/** Description is whatever an index board was created with. Absent on a forge board: this projection takes the repository's name and nothing else about the repository. */
public var description: String?
/** ID is the board's opaque handle, and it is NOT how you address it — Key is. Its shape says which source answered: a forge board's is the repository's full name (\"hanzoai/cloud\"), an index board's a minted \"prj_\" id. */
public var id: String?
/** Key addresses the board everywhere else — /v1/todo/projects/<key>/issues — and prefixes every issue identifier on it. An index board's key is 2-8 uppercase alphanumerics starting with a letter (\"ENG\", \"OPS2\") and is matched case-insensitively; a forge board's is the repository name as the forge spells it. */
public var key: String?
/** Name is the board's display name. For a forge board it is the repository name, so it equals Key; an index board carries its own. */
public var name: String?
/** Org is the IAM org the board belongs to, taken from the validated principal and never from the request. Every board a caller can see is in it. */
public var org: String?
/** UpdatedAt is when the board record last changed, in unix seconds — the BOARD, not the work on it, so filing an issue does not move it. 0 on a forge board. */
public var updatedAt: Int64?
public init(createdAt: Int64? = nil, description: String? = nil, id: String? = nil, key: String? = nil, name: String? = nil, org: String? = nil, updatedAt: Int64? = nil) {
self.createdAt = createdAt
self.description = description
self.id = id
self.key = key
self.name = name
self.org = org
self.updatedAt = updatedAt
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case createdAt
case description
case id
case key
case name
case org
case updatedAt
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(description, forKey: .description)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(key, forKey: .key)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(org, forKey: .org)
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension TodoProject: Identifiable {}