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

41 lines
1.3 KiB
Swift

//
// CatalogPage.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CatalogPage: Sendable, Codable, ParameterConvertible, Hashable {
/** Data is the page of matching entries, most recently updated first. */
public var data: [Entry]?
/** Facets counts the whole matching set along every browse axis, so a rail a client renders is a rail that has results behind it. Keyed axis → value → count. */
public var facets: [String: [String: Int64]]?
/** Total is how many entries matched BEFORE paging — what a pager sizes itself on. */
public var total: Int64?
public init(data: [Entry]? = nil, facets: [String: [String: Int64]]? = nil, total: Int64? = nil) {
self.data = data
self.facets = facets
self.total = total
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case data
case facets
case total
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(data, forKey: .data)
try container.encodeIfPresent(facets, forKey: .facets)
try container.encodeIfPresent(total, forKey: .total)
}
}