OpenClawKit/TalkGatewayContracts.swift

OpenClawKit · Sources/OpenClawKit/TalkGatewayContracts.swift · swift · MIT
realtime

Typed Swift enums for the Talk v4 protocol surface, replacing AnyCodable strings.

// Source: https://github.com/MarcoDotIO/OpenClawKit | License: MIT | Copyright 2026 OpenClawKit Contributors
// Provided via justclaw.it.com; keep this notice with the code.
import Foundation

// Typed Talk vocabulary for the protocol v4 Talk surface (OpenClaw 2026.9.6
// packages/gateway-protocol/src/schema/channels.ts). The generated protocol models keep these
// fields as `AnyCodable`/`String`; these enums give Swift callers the shared vocabulary.

/// Talk session shape (`mode`), shared by `talk.catalog`, `talk.session.create`, and `talk.client.create`.
public enum TalkMode: String, Codable, Sendable, CaseIterable {
    /// Speech-to-speech realtime provider session.
    case realtime
    /// Speech-to-text turns answered with text-to-speech.
    case sttTTS = "stt-tts"
    /// Transc

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key