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

61 lines
2.0 KiB
Swift

//
// Request.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Request: Sendable, Codable, ParameterConvertible, Hashable {
/** DocTypes restricts the semantic leg to a subset of indexed knowledge types. */
public var doctypes: [String]?
/** Index names the lexical index to query. Defaults to \"kb\". */
public var index: String?
/** Limit bounds the FUSED result set (default 10, max 50). */
public var limit: Int64?
/** Mode selects the legs: auto (default) | text | semantic | hybrid. */
public var mode: String?
/** Offset pages the fused result set. */
public var offset: Int64?
/** Project narrows to one project scope within the org. */
public var project: String?
/** Query is the natural-language or keyword query. Required. */
public var query: String?
public init(doctypes: [String]? = nil, index: String? = nil, limit: Int64? = nil, mode: String? = nil, offset: Int64? = nil, project: String? = nil, query: String? = nil) {
self.doctypes = doctypes
self.index = index
self.limit = limit
self.mode = mode
self.offset = offset
self.project = project
self.query = query
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case doctypes
case index
case limit
case mode
case offset
case project
case query
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(doctypes, forKey: .doctypes)
try container.encodeIfPresent(index, forKey: .index)
try container.encodeIfPresent(limit, forKey: .limit)
try container.encodeIfPresent(mode, forKey: .mode)
try container.encodeIfPresent(offset, forKey: .offset)
try container.encodeIfPresent(project, forKey: .project)
try container.encodeIfPresent(query, forKey: .query)
}
}