Files
zeekay b60f47a8bb Regenerate: the AI surface says what it answers
288 of hanzoai/ai's 294 operations now declare a response, against 1 before.
GET /v1/models, POST /v1/chat/completions, /v1/embeddings, /v1/messages —
every address a client actually calls — used to reach this client untyped,
because cloud's relay carried an operation's sentence and dropped the shapes
it named. It carries both now.

Fleet-wide the document goes from 69% to 81% of operations declaring what
comes back, which is where the ~208 new models here come from.
2026-08-28 15:52:19 -07:00

194 lines
7.7 KiB
Swift

//
// Video.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Video: Sendable, Codable, ParameterConvertible, Hashable {
public var audioUrl: String?
public var _class: String?
public var coverUrl: String?
public var createdTime: String?
public var dataUrl: String?
public var dataUrls: [String]?
public var description: String?
public var displayName: String?
public var downloadUrl: String?
public var editMode: String?
public var excellentCount: Int?
public var grade: String?
public var grade2: String?
public var isPublic: Bool?
public var keywords: [String]?
public var labelCount: Int?
public var labels: [Label]?
public var lesson: String?
public var name: String?
public var owner: String?
public var playAuth: String?
public var remarks: [Remark]?
public var remarks2: [Remark]?
public var reviewState: String?
public var school: String?
public var segmentCount: Int?
public var segments: [Label]?
public var stage: String?
public var state: String?
public var subject: String?
public var tag: String?
public var tagOnPause: Bool?
public var task1: String?
public var task2: String?
public var task3: String?
public var template: String?
public var topic: String?
public var type: String?
public var unit: String?
public var videoId: String?
public var videoLength: String?
public var wordCountMap: [String: Int]?
public init(audioUrl: String? = nil, _class: String? = nil, coverUrl: String? = nil, createdTime: String? = nil, dataUrl: String? = nil, dataUrls: [String]? = nil, description: String? = nil, displayName: String? = nil, downloadUrl: String? = nil, editMode: String? = nil, excellentCount: Int? = nil, grade: String? = nil, grade2: String? = nil, isPublic: Bool? = nil, keywords: [String]? = nil, labelCount: Int? = nil, labels: [Label]? = nil, lesson: String? = nil, name: String? = nil, owner: String? = nil, playAuth: String? = nil, remarks: [Remark]? = nil, remarks2: [Remark]? = nil, reviewState: String? = nil, school: String? = nil, segmentCount: Int? = nil, segments: [Label]? = nil, stage: String? = nil, state: String? = nil, subject: String? = nil, tag: String? = nil, tagOnPause: Bool? = nil, task1: String? = nil, task2: String? = nil, task3: String? = nil, template: String? = nil, topic: String? = nil, type: String? = nil, unit: String? = nil, videoId: String? = nil, videoLength: String? = nil, wordCountMap: [String: Int]? = nil) {
self.audioUrl = audioUrl
self._class = _class
self.coverUrl = coverUrl
self.createdTime = createdTime
self.dataUrl = dataUrl
self.dataUrls = dataUrls
self.description = description
self.displayName = displayName
self.downloadUrl = downloadUrl
self.editMode = editMode
self.excellentCount = excellentCount
self.grade = grade
self.grade2 = grade2
self.isPublic = isPublic
self.keywords = keywords
self.labelCount = labelCount
self.labels = labels
self.lesson = lesson
self.name = name
self.owner = owner
self.playAuth = playAuth
self.remarks = remarks
self.remarks2 = remarks2
self.reviewState = reviewState
self.school = school
self.segmentCount = segmentCount
self.segments = segments
self.stage = stage
self.state = state
self.subject = subject
self.tag = tag
self.tagOnPause = tagOnPause
self.task1 = task1
self.task2 = task2
self.task3 = task3
self.template = template
self.topic = topic
self.type = type
self.unit = unit
self.videoId = videoId
self.videoLength = videoLength
self.wordCountMap = wordCountMap
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case audioUrl
case _class = "class"
case coverUrl
case createdTime
case dataUrl
case dataUrls
case description
case displayName
case downloadUrl
case editMode
case excellentCount
case grade
case grade2
case isPublic
case keywords
case labelCount
case labels
case lesson
case name
case owner
case playAuth
case remarks
case remarks2
case reviewState
case school
case segmentCount
case segments
case stage
case state
case subject
case tag
case tagOnPause
case task1
case task2
case task3
case template
case topic
case type
case unit
case videoId
case videoLength
case wordCountMap
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(audioUrl, forKey: .audioUrl)
try container.encodeIfPresent(_class, forKey: ._class)
try container.encodeIfPresent(coverUrl, forKey: .coverUrl)
try container.encodeIfPresent(createdTime, forKey: .createdTime)
try container.encodeIfPresent(dataUrl, forKey: .dataUrl)
try container.encodeIfPresent(dataUrls, forKey: .dataUrls)
try container.encodeIfPresent(description, forKey: .description)
try container.encodeIfPresent(displayName, forKey: .displayName)
try container.encodeIfPresent(downloadUrl, forKey: .downloadUrl)
try container.encodeIfPresent(editMode, forKey: .editMode)
try container.encodeIfPresent(excellentCount, forKey: .excellentCount)
try container.encodeIfPresent(grade, forKey: .grade)
try container.encodeIfPresent(grade2, forKey: .grade2)
try container.encodeIfPresent(isPublic, forKey: .isPublic)
try container.encodeIfPresent(keywords, forKey: .keywords)
try container.encodeIfPresent(labelCount, forKey: .labelCount)
try container.encodeIfPresent(labels, forKey: .labels)
try container.encodeIfPresent(lesson, forKey: .lesson)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(owner, forKey: .owner)
try container.encodeIfPresent(playAuth, forKey: .playAuth)
try container.encodeIfPresent(remarks, forKey: .remarks)
try container.encodeIfPresent(remarks2, forKey: .remarks2)
try container.encodeIfPresent(reviewState, forKey: .reviewState)
try container.encodeIfPresent(school, forKey: .school)
try container.encodeIfPresent(segmentCount, forKey: .segmentCount)
try container.encodeIfPresent(segments, forKey: .segments)
try container.encodeIfPresent(stage, forKey: .stage)
try container.encodeIfPresent(state, forKey: .state)
try container.encodeIfPresent(subject, forKey: .subject)
try container.encodeIfPresent(tag, forKey: .tag)
try container.encodeIfPresent(tagOnPause, forKey: .tagOnPause)
try container.encodeIfPresent(task1, forKey: .task1)
try container.encodeIfPresent(task2, forKey: .task2)
try container.encodeIfPresent(task3, forKey: .task3)
try container.encodeIfPresent(template, forKey: .template)
try container.encodeIfPresent(topic, forKey: .topic)
try container.encodeIfPresent(type, forKey: .type)
try container.encodeIfPresent(unit, forKey: .unit)
try container.encodeIfPresent(videoId, forKey: .videoId)
try container.encodeIfPresent(videoLength, forKey: .videoLength)
try container.encodeIfPresent(wordCountMap, forKey: .wordCountMap)
}
}