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

45 lines
1.3 KiB
Swift

//
// IndexQuery.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct IndexQuery: Sendable, Codable, ParameterConvertible, Hashable {
public var filter: JSONValue?
/** Limit is how many hits to return. Absent means 20; the ceiling is 1000. */
public var limit: Int64?
/** Offset is where to start. Absent means 0. */
public var offset: Int64?
/** Q is the search text. Typos are forgiven. An empty Q matches everything, which is how a client lists an index by relevance rather than by insertion order. */
public var q: String?
public init(filter: JSONValue? = nil, limit: Int64? = nil, offset: Int64? = nil, q: String? = nil) {
self.filter = filter
self.limit = limit
self.offset = offset
self.q = q
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case filter
case limit
case offset
case q
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(filter, forKey: .filter)
try container.encodeIfPresent(limit, forKey: .limit)
try container.encodeIfPresent(offset, forKey: .offset)
try container.encodeIfPresent(q, forKey: .q)
}
}