Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Sources/Models/WebCallResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@
import Foundation

public struct ArtifactPlan: Decodable {
public let videoRecordingEnabled: Bool
// Optional because the Vapi server response no longer always
// includes this field under `artifactPlan` — it moved into
// `transport.videoRecordingEnabled`. Making it `Bool?` keeps
// the SDK's strict decoder from throwing `keyNotFound` on a
// missing key, which previously caused every `vapi.start()`
// call to fail immediately with an `.callDidEnd` event and
// no transcript.
public let videoRecordingEnabled: Bool?
}

public struct WebCallResponse: Decodable {
Expand Down