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.
46 lines
1.7 KiB
Swift
46 lines
1.7 KiB
Swift
//
|
|
// LimitsBlock.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct LimitsBlock: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** APIRateLimit is requests per minute allowed against the REST /v1/world surface. -1 means unlimited. */
|
|
public var apiRateLimit: Int64?
|
|
/** MaxAlerts is how many saved OSINT alert rules the plan allows. -1 means unlimited. */
|
|
public var maxAlerts: Int64?
|
|
/** MCPRateLimit is requests per minute allowed against the MCP surface. -1 means unlimited. */
|
|
public var mcpRateLimit: Int64?
|
|
/** ModelAPI is whether the plan reaches the World model endpoint and the SSE stream. The free floor is false, and that is what a catalog outage resolves to. */
|
|
public var modelApi: Bool?
|
|
|
|
public init(apiRateLimit: Int64? = nil, maxAlerts: Int64? = nil, mcpRateLimit: Int64? = nil, modelApi: Bool? = nil) {
|
|
self.apiRateLimit = apiRateLimit
|
|
self.maxAlerts = maxAlerts
|
|
self.mcpRateLimit = mcpRateLimit
|
|
self.modelApi = modelApi
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case apiRateLimit
|
|
case maxAlerts
|
|
case mcpRateLimit
|
|
case modelApi
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(apiRateLimit, forKey: .apiRateLimit)
|
|
try container.encodeIfPresent(maxAlerts, forKey: .maxAlerts)
|
|
try container.encodeIfPresent(mcpRateLimit, forKey: .mcpRateLimit)
|
|
try container.encodeIfPresent(modelApi, forKey: .modelApi)
|
|
}
|
|
}
|
|
|