Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

56 lines
2.4 KiB
Swift

//
// ReviewRequest.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ReviewRequest: Sendable, Codable, ParameterConvertible, Hashable {
/** Glossary is the terminology the entry was translated under. Its VERSION — the digest of the sorted terms — is part of the entry's identity, so editing a term yields a new entry rather than overwriting the old rendering. */
public var glossary: [String: String]?
/** Source is the ORIGINAL string this entry translates. Required; part of the entry's identity, so a different source is a different entry. */
public var source: String?
/** State is the entry's new position on the review ladder: suggested, approved or published. `machine` is engine-only and is refused here — a human may not demote a string back into the churn. */
public var state: String?
/** Target is the target language tag (BCP-47, e.g. \"es\" or \"pt-BR\"). Required; part of the entry's identity. */
public var target: String?
/** Text is the reviewed translation to store. A human write always wins over the stored value. */
public var text: String?
/** Tier is the engine tier the entry belongs to, quality (the default) or bulk. Part of the entry's identity: the two tiers keep separate renderings. */
public var tier: String?
public init(glossary: [String: String]? = nil, source: String? = nil, state: String? = nil, target: String? = nil, text: String? = nil, tier: String? = nil) {
self.glossary = glossary
self.source = source
self.state = state
self.target = target
self.text = text
self.tier = tier
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case glossary
case source
case state
case target
case text
case tier
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(glossary, forKey: .glossary)
try container.encodeIfPresent(source, forKey: .source)
try container.encodeIfPresent(state, forKey: .state)
try container.encodeIfPresent(target, forKey: .target)
try container.encodeIfPresent(text, forKey: .text)
try container.encodeIfPresent(tier, forKey: .tier)
}
}