mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
74 lines
2.5 KiB
Swift
74 lines
2.5 KiB
Swift
//
|
|
// CodingStartIn.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct CodingStartIn: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var after: String?
|
|
public var agentRef: String?
|
|
public var base: String?
|
|
public var desktop: Bool?
|
|
public var project: String?
|
|
public var prompt: String?
|
|
public var replyChannel: String?
|
|
public var replyThread: String?
|
|
public var repo: String?
|
|
public var targetId: String?
|
|
public var timeoutSeconds: Int64?
|
|
public var tool: String?
|
|
|
|
public init(after: String? = nil, agentRef: String? = nil, base: String? = nil, desktop: Bool? = nil, project: String? = nil, prompt: String? = nil, replyChannel: String? = nil, replyThread: String? = nil, repo: String? = nil, targetId: String? = nil, timeoutSeconds: Int64? = nil, tool: String? = nil) {
|
|
self.after = after
|
|
self.agentRef = agentRef
|
|
self.base = base
|
|
self.desktop = desktop
|
|
self.project = project
|
|
self.prompt = prompt
|
|
self.replyChannel = replyChannel
|
|
self.replyThread = replyThread
|
|
self.repo = repo
|
|
self.targetId = targetId
|
|
self.timeoutSeconds = timeoutSeconds
|
|
self.tool = tool
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case after
|
|
case agentRef
|
|
case base
|
|
case desktop
|
|
case project
|
|
case prompt
|
|
case replyChannel
|
|
case replyThread
|
|
case repo
|
|
case targetId
|
|
case timeoutSeconds
|
|
case tool
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(after, forKey: .after)
|
|
try container.encodeIfPresent(agentRef, forKey: .agentRef)
|
|
try container.encodeIfPresent(base, forKey: .base)
|
|
try container.encodeIfPresent(desktop, forKey: .desktop)
|
|
try container.encodeIfPresent(project, forKey: .project)
|
|
try container.encodeIfPresent(prompt, forKey: .prompt)
|
|
try container.encodeIfPresent(replyChannel, forKey: .replyChannel)
|
|
try container.encodeIfPresent(replyThread, forKey: .replyThread)
|
|
try container.encodeIfPresent(repo, forKey: .repo)
|
|
try container.encodeIfPresent(targetId, forKey: .targetId)
|
|
try container.encodeIfPresent(timeoutSeconds, forKey: .timeoutSeconds)
|
|
try container.encodeIfPresent(tool, forKey: .tool)
|
|
}
|
|
}
|
|
|