From 6a0f2fa06655a19b0db805a01a302f54566dbcf2 Mon Sep 17 00:00:00 2001 From: AssemblyAI Date: Mon, 16 Mar 2026 14:45:53 -0600 Subject: [PATCH] Project import generated by Copybara. GitOrigin-RevId: 6e70f0c19aa4a441ee9784a5e3318f31d8e84bbb --- package.json | 2 +- src/types/openapi.generated.ts | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d33ba5d..70236bd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "assemblyai", - "version": "4.27.0", + "version": "4.28.0", "description": "The AssemblyAI JavaScript SDK provides an easy-to-use interface for interacting with the AssemblyAI API, which supports async and real-time transcription, as well as the latest LeMUR models.", "engines": { "node": ">=18" diff --git a/src/types/openapi.generated.ts b/src/types/openapi.generated.ts index 0373127..f76966f 100644 --- a/src/types/openapi.generated.ts +++ b/src/types/openapi.generated.ts @@ -21,6 +21,13 @@ type OneOf = T extends [infer Only] */ export type AudioIntelligenceModelStatus = "success" | "unavailable"; +export interface TranscriptMetadata { + /** The domain that was actually used for the transcription. */ + domain_used?: string | null; + /** An optional warning message, if applicable. */ + warning?: string | null; +} + /** * @example * ```js @@ -2943,6 +2950,14 @@ export type Transcript = { * Translations of the full transcript text when translation is enabled */ translated_texts?: Record; + /** + * The domain used for the transcription. + */ + domain?: string | null; + /** + * Metadata returned by the transcription API. + */ + metadata?: TranscriptMetadata | null; }; /** @@ -3470,6 +3485,10 @@ export type TranscriptOptionalParams = { speech_understanding?: | SpeechUnderstandingRequest | SpeechUnderstandingResponse; + /** + * The domain to use for the transcription (e.g. 'medical-v1'). + */ + domain?: string | null; }; /**