Files
zeekay b0db427c79 regenerate from cloud 939b09d4
The projection was 113 commits behind the document it claims to describe, and
`generate.py --all --check` reported every one of the thirteen clients DRIFTED —
the same +19 models in each, because they all fell behind the same emission.

Regenerated in place from hanzo-inc/cloud openapi.yaml at 939b09d4
(sha256 087024f6…), which is the only description of this API that cannot name a
route the binary does not serve. `--check` is clean across all thirteen after.

.spec-lock moved with the code. The generator READS that file and never writes
it — hanzoai/ci`s lane does — so a hand run leaves every lock naming the previous
document. A lock that disagrees with the tree beside it is worse than no lock:
the next `--check` without `--spec` fetches what production serves, compares it
to a digest that was already wrong, and reports drift that is really staleness.
2026-08-24 23:32:45 -07:00

50 lines
2.2 KiB
Swift

//
// WorkerScriptPut.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct WorkerScriptPut: Sendable, Codable, ParameterConvertible, Hashable {
public var bindings: JSONValue?
/** CompatibilityDate pins which Workers runtime behaviour the script runs under, as a plain calendar date (\"2024-01-01\"). Absent leaves the account's own default in force. */
public var compatibilityDate: String?
/** CompatibilityFlags turn individual runtime behaviours on or off around that date (\"nodejs_compat\"), in Cloudflare's own flag vocabulary. Absent means the date alone decides. */
public var compatibilityFlags: [String]?
/** MainModule is the module file the runtime starts at. Absent means \"worker.js\". */
public var mainModule: String?
/** Script means two things on this route, and the document says so in both places it appears: the PATH segment names the Worker to publish, and the BODY field carries that Worker's ES-module source — the code itself, never a name or a URL. A blank or absent source is refused; there is no empty Worker. */
public var script: String?
public init(bindings: JSONValue? = nil, compatibilityDate: String? = nil, compatibilityFlags: [String]? = nil, mainModule: String? = nil, script: String? = nil) {
self.bindings = bindings
self.compatibilityDate = compatibilityDate
self.compatibilityFlags = compatibilityFlags
self.mainModule = mainModule
self.script = script
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case bindings
case compatibilityDate
case compatibilityFlags
case mainModule
case script
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(bindings, forKey: .bindings)
try container.encodeIfPresent(compatibilityDate, forKey: .compatibilityDate)
try container.encodeIfPresent(compatibilityFlags, forKey: .compatibilityFlags)
try container.encodeIfPresent(mainModule, forKey: .mainModule)
try container.encodeIfPresent(script, forKey: .script)
}
}