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

51 lines
1.8 KiB
Swift

//
// PromptReq.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct PromptReq: Sendable, Codable, ParameterConvertible, Hashable {
/** Labels is free-form taxonomy, each up to 64 characters, capped at 32 entries. */
public var labels: [String]?
/** Name is the org-unique handle AND the URL segment the prompt is addressed by: 1-64 characters matching ^[A-Za-z0-9][A-Za-z0-9._-]*$. \"metrics\", \"new\" and \"catalog\" are reserved. A name that already exists appends a new version. */
public var name: String?
/** Prompt is the template body, capped at 64 KiB. It holds template text only — never a secret. */
public var prompt: String?
/** Tags is free-form taxonomy under the same bounds as Labels. */
public var tags: [String]?
/** Type labels the template's kind; defaults to \"text\". */
public var type: String?
public init(labels: [String]? = nil, name: String? = nil, prompt: String? = nil, tags: [String]? = nil, type: String? = nil) {
self.labels = labels
self.name = name
self.prompt = prompt
self.tags = tags
self.type = type
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case labels
case name
case prompt
case tags
case type
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(labels, forKey: .labels)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(prompt, forKey: .prompt)
try container.encodeIfPresent(tags, forKey: .tags)
try container.encodeIfPresent(type, forKey: .type)
}
}