import Foundation /// A GitHub/Gitea style owner (user or organization). struct Owner: Codable, Hashable { let id: Int64? let login: String let fullName: String? } /// A repository as returned by `/user/repos`. struct Repository: Codable, Hashable, Identifiable { let id: Int64 let name: String let fullName: String let owner: Owner let `private`: Bool? let htmlURL: String? let defaultBranch: String? enum CodingKeys: String, CodingKey { case id, name case fullName = "full_name" case owner case `private` case htmlURL = "html_url" case defaultBranch = "default_branch" } }