2bc8c1b87d
Adapt typing/voice surfaces for iPad width and height, add the system globe key and last-input editing flow, harden host-only Rime deployment, and remove clipboard voice commands. Bump build to 61.
27 lines
783 B
Swift
27 lines
783 B
Swift
// TranscriptionDelivery.swift
|
|
// OSGKeyboard · Shared
|
|
//
|
|
// Host-app → keyboard handoff payload: final text plus an optional soft
|
|
// warning when cloud polish failed but the raw transcript is still delivered.
|
|
|
|
import Foundation
|
|
|
|
public struct TranscriptionDelivery: Sendable, Equatable {
|
|
public let text: String
|
|
public let polishWarning: String?
|
|
public let historyEntryID: UUID?
|
|
public let historyEntryRevision: Int64?
|
|
|
|
public init(
|
|
text: String,
|
|
polishWarning: String? = nil,
|
|
historyEntryID: UUID? = nil,
|
|
historyEntryRevision: Int64? = nil
|
|
) {
|
|
self.text = text
|
|
self.polishWarning = polishWarning
|
|
self.historyEntryID = historyEntryID
|
|
self.historyEntryRevision = historyEntryRevision
|
|
}
|
|
}
|