diff --git a/Sources/Models/WebCallResponse.swift b/Sources/Models/WebCallResponse.swift index 763635d..50735aa 100644 --- a/Sources/Models/WebCallResponse.swift +++ b/Sources/Models/WebCallResponse.swift @@ -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 {