From fe88b79b77caf5d930e0b5a55c638b4b05fbb3de Mon Sep 17 00:00:00 2001 From: dbburgess Date: Fri, 17 Jan 2025 15:15:04 -0500 Subject: [PATCH 1/2] Add from_finalize property to LiveTranscriptionEvent This simply adds the `from_finalize` property to the `LiveTranscriptionEvent` type, described in [Documentation / Finalize](https://developers.deepgram.com/docs/finalize#finalize-confirmation). --- src/lib/types/LiveTranscriptionEvent.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/types/LiveTranscriptionEvent.ts b/src/lib/types/LiveTranscriptionEvent.ts index eaa0ab2..48a6c6a 100644 --- a/src/lib/types/LiveTranscriptionEvent.ts +++ b/src/lib/types/LiveTranscriptionEvent.ts @@ -30,4 +30,5 @@ export interface LiveTranscriptionEvent { }; model_uuid: string; }; + from_finalize: boolean; } From 65249dceb17c319740af0c6bd4b45b194d47f40f Mon Sep 17 00:00:00 2001 From: Daniel Burgess Date: Fri, 17 Jan 2025 15:24:08 -0500 Subject: [PATCH 2/2] Make from_finalize optional for backwards compatibility Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- src/lib/types/LiveTranscriptionEvent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/types/LiveTranscriptionEvent.ts b/src/lib/types/LiveTranscriptionEvent.ts index 48a6c6a..9938f9a 100644 --- a/src/lib/types/LiveTranscriptionEvent.ts +++ b/src/lib/types/LiveTranscriptionEvent.ts @@ -30,5 +30,5 @@ export interface LiveTranscriptionEvent { }; model_uuid: string; }; - from_finalize: boolean; + from_finalize?: boolean; }