Skip to content
Open
Show file tree
Hide file tree
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
10 changes: 4 additions & 6 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"cliVersion": "4.3.0",
"cliVersion": "4.46.0",
"generatorName": "fernapi/fern-typescript-node-sdk",
"generatorVersion": "3.53.3",
"generatorConfig": {
Expand All @@ -9,10 +9,8 @@
"skipResponseValidation": true,
"includeApiReference": true,
"shouldGenerateWebsocketClients": true,
"enableForwardCompatibleEnums": true,
"packageJson": {
"name": "@deepgram/sdk"
}
"enableForwardCompatibleEnums": true
},
"sdkVersion": "5.0.0"
"originGitCommit": "af946f60773987d08b8c117585b6dba834e317c6",
"sdkVersion": "5.0.1"
}
4 changes: 0 additions & 4 deletions context7.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deepgram/sdk",
"version": "5.0.0",
"version": "5.0.1",
"private": false,
"repository": {
"type": "git",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export function normalizeClientOptions<T extends BaseClientOptions = BaseClientO
{
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@deepgram/sdk",
"X-Fern-SDK-Version": "4.11.4",
"User-Agent": "@deepgram/sdk/4.11.4",
"X-Fern-SDK-Version": "5.0.1",
"User-Agent": "@deepgram/sdk/5.0.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
7 changes: 0 additions & 7 deletions src/api/resources/agent/resources/v1/client/Socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export declare namespace V1Socket {
| Deepgram.agent.AgentV1ReceiveFunctionCallResponse
| Deepgram.agent.AgentV1PromptUpdated
| Deepgram.agent.AgentV1SpeakUpdated
| Deepgram.agent.AgentV1ThinkUpdated
| Deepgram.agent.AgentV1InjectionRefused
| Deepgram.agent.AgentV1Welcome
| Deepgram.agent.AgentV1SettingsApplied
Expand Down Expand Up @@ -90,11 +89,6 @@ export class V1Socket {
this.sendJson(message);
}

public sendUpdateThink(message: Deepgram.agent.AgentV1UpdateThink): void {
this.assertSocketIsOpen();
this.sendJson(message);
}

public sendInjectUserMessage(message: Deepgram.agent.AgentV1InjectUserMessage): void {
this.assertSocketIsOpen();
this.sendJson(message);
Expand Down Expand Up @@ -187,7 +181,6 @@ export class V1Socket {
payload:
| Deepgram.agent.AgentV1Settings
| Deepgram.agent.AgentV1UpdateSpeak
| Deepgram.agent.AgentV1UpdateThink
| Deepgram.agent.AgentV1InjectUserMessage
| Deepgram.agent.AgentV1InjectAgentMessage
| Deepgram.agent.AgentV1SendFunctionCallResponse
Expand Down
53 changes: 51 additions & 2 deletions src/api/resources/agent/resources/v1/types/AgentV1Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,56 @@ export namespace AgentV1Settings {
provider?: Deepgram.agent.AgentV1SettingsAgentListenProvider | undefined;
}

export type Think = Deepgram.ThinkSettingsV1 | Deepgram.ThinkSettingsV1[];
export type Speak = Deepgram.SpeakSettingsV1 | Deepgram.SpeakSettingsV1[];
export type Think =
| Deepgram.ThinkSettingsV1
| {
provider:
| (Deepgram.OpenAiThinkProvider | undefined)
| (Deepgram.AwsBedrockThinkProvider | undefined)
| (Deepgram.Anthropic | undefined)
| (Deepgram.Google | undefined)
| (Deepgram.Groq | undefined);
endpoint?:
| {
url?: string | undefined;
headers?: Record<string, string> | undefined;
}
| undefined;
functions?:
| {
name?: string | undefined;
description?: string | undefined;
parameters?: Record<string, unknown> | undefined;
endpoint?:
| {
url?: string | undefined;
method?: string | undefined;
headers?: Record<string, string> | undefined;
}
| undefined;
}[]
| undefined;
prompt?: string | undefined;
context_length?: ("max" | number) | undefined;
}[];
export type Speak =
| {
provider: Deepgram.agent.AgentV1SettingsAgentSpeakEndpointProvider;
endpoint?:
| {
url?: string | undefined;
headers?: Record<string, string> | undefined;
}
| undefined;
}
| {
provider: Deepgram.agent.AgentV1SettingsAgentSpeakOneItemProvider;
endpoint?:
| {
url?: string | undefined;
headers?: Record<string, string> | undefined;
}
| undefined;
}[];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
// This file was auto-generated by Fern from our API Definition.

import type * as Deepgram from "../../../../../index.js";

export type AgentV1SettingsAgentSpeakEndpointProvider =
| Deepgram.agent.AgentV1SettingsAgentSpeakEndpointProvider.Deepgram
| Deepgram.agent.AgentV1SettingsAgentSpeakEndpointProvider.ElevenLabs
| Deepgram.agent.AgentV1SettingsAgentSpeakEndpointProvider.Cartesia
| Deepgram.agent.AgentV1SettingsAgentSpeakEndpointProvider.OpenAi
| Deepgram.agent.AgentV1SettingsAgentSpeakEndpointProvider.AwsPolly;

export namespace AgentV1SettingsAgentSpeakEndpointProvider {
export interface Deepgram {
type: "deepgram";
/** The REST API version for the Deepgram text-to-speech API */
version?: "v1" | undefined;
/** Deepgram TTS model */
model: Deepgram.Model;
}

export namespace Deepgram {
/** Deepgram TTS model */
export const Model = {
AuraAsteriaEn: "aura-asteria-en",
AuraLunaEn: "aura-luna-en",
AuraStellaEn: "aura-stella-en",
AuraAthenaEn: "aura-athena-en",
AuraHeraEn: "aura-hera-en",
AuraOrionEn: "aura-orion-en",
AuraArcasEn: "aura-arcas-en",
AuraPerseusEn: "aura-perseus-en",
AuraAngusEn: "aura-angus-en",
AuraOrpheusEn: "aura-orpheus-en",
AuraHeliosEn: "aura-helios-en",
AuraZeusEn: "aura-zeus-en",
Aura2AmaltheaEn: "aura-2-amalthea-en",
Aura2AndromedaEn: "aura-2-andromeda-en",
Aura2ApolloEn: "aura-2-apollo-en",
Aura2ArcasEn: "aura-2-arcas-en",
Aura2AriesEn: "aura-2-aries-en",
Aura2AsteriaEn: "aura-2-asteria-en",
Aura2AthenaEn: "aura-2-athena-en",
Aura2AtlasEn: "aura-2-atlas-en",
Aura2AuroraEn: "aura-2-aurora-en",
Aura2CallistaEn: "aura-2-callista-en",
Aura2CoraEn: "aura-2-cora-en",
Aura2CordeliaEn: "aura-2-cordelia-en",
Aura2DeliaEn: "aura-2-delia-en",
Aura2DracoEn: "aura-2-draco-en",
Aura2ElectraEn: "aura-2-electra-en",
Aura2HarmoniaEn: "aura-2-harmonia-en",
Aura2HelenaEn: "aura-2-helena-en",
Aura2HeraEn: "aura-2-hera-en",
Aura2HermesEn: "aura-2-hermes-en",
Aura2HyperionEn: "aura-2-hyperion-en",
Aura2IrisEn: "aura-2-iris-en",
Aura2JanusEn: "aura-2-janus-en",
Aura2JunoEn: "aura-2-juno-en",
Aura2JupiterEn: "aura-2-jupiter-en",
Aura2LunaEn: "aura-2-luna-en",
Aura2MarsEn: "aura-2-mars-en",
Aura2MinervaEn: "aura-2-minerva-en",
Aura2NeptuneEn: "aura-2-neptune-en",
Aura2OdysseusEn: "aura-2-odysseus-en",
Aura2OpheliaEn: "aura-2-ophelia-en",
Aura2OrionEn: "aura-2-orion-en",
Aura2OrpheusEn: "aura-2-orpheus-en",
Aura2PandoraEn: "aura-2-pandora-en",
Aura2PhoebeEn: "aura-2-phoebe-en",
Aura2PlutoEn: "aura-2-pluto-en",
Aura2SaturnEn: "aura-2-saturn-en",
Aura2SeleneEn: "aura-2-selene-en",
Aura2ThaliaEn: "aura-2-thalia-en",
Aura2TheiaEn: "aura-2-theia-en",
Aura2VestaEn: "aura-2-vesta-en",
Aura2ZeusEn: "aura-2-zeus-en",
Aura2SirioEs: "aura-2-sirio-es",
Aura2NestorEs: "aura-2-nestor-es",
Aura2CarinaEs: "aura-2-carina-es",
Aura2CelesteEs: "aura-2-celeste-es",
Aura2AlvaroEs: "aura-2-alvaro-es",
Aura2DianaEs: "aura-2-diana-es",
Aura2AquilaEs: "aura-2-aquila-es",
Aura2SelenaEs: "aura-2-selena-es",
Aura2EstrellaEs: "aura-2-estrella-es",
Aura2JavierEs: "aura-2-javier-es",
} as const;
export type Model = (typeof Model)[keyof typeof Model] | string;
}

export interface ElevenLabs {
type: "eleven_labs";
/** The REST API version for the ElevenLabs text-to-speech API */
version?: "v1" | undefined;
/** Eleven Labs model ID */
model_id: ElevenLabs.ModelId;
/** Optional language to use, e.g. 'en-US'. Corresponds to the `language_code` parameter in the ElevenLabs API */
language?: string | undefined;
/** Use the `language` field instead. */
language_code?: string | undefined;
}

export namespace ElevenLabs {
/** Eleven Labs model ID */
export const ModelId = {
ElevenTurboV25: "eleven_turbo_v2_5",
ElevenMonolingualV1: "eleven_monolingual_v1",
ElevenMultilingualV2: "eleven_multilingual_v2",
} as const;
export type ModelId = (typeof ModelId)[keyof typeof ModelId] | string;
}

export interface Cartesia {
type: "cartesia";
/** The API version header for the Cartesia text-to-speech API */
version?: "2025-03-17" | undefined;
/** Cartesia model ID */
model_id: Cartesia.ModelId;
voice: Cartesia.Voice;
/** Cartesia language code */
language?: string | undefined;
}

export namespace Cartesia {
/** Cartesia model ID */
export const ModelId = {
Sonic2: "sonic-2",
SonicMultilingual: "sonic-multilingual",
} as const;
export type ModelId = (typeof ModelId)[keyof typeof ModelId] | string;

export interface Voice {
/** Cartesia voice mode */
mode: string;
/** Cartesia voice ID */
id: string;
}
}

export interface OpenAi {
type: "open_ai";
/** The REST API version for the OpenAI text-to-speech API */
version?: "v1" | undefined;
/** OpenAI TTS model */
model: AgentV1SettingsAgentSpeakEndpointProviderOpenAi.Model;
/** OpenAI voice */
voice: AgentV1SettingsAgentSpeakEndpointProviderOpenAi.Voice;
}

export namespace AgentV1SettingsAgentSpeakEndpointProviderOpenAi {
/** OpenAI TTS model */
export const Model = {
Tts1: "tts-1",
Tts1Hd: "tts-1-hd",
} as const;
export type Model = (typeof Model)[keyof typeof Model] | string;
/** OpenAI voice */
export const Voice = {
Alloy: "alloy",
Echo: "echo",
Fable: "fable",
Onyx: "onyx",
Nova: "nova",
Shimmer: "shimmer",
} as const;
export type Voice = (typeof Voice)[keyof typeof Voice] | string;
}

export interface AwsPolly {
type: "aws_polly";
/** AWS Polly voice name */
voice: AgentV1SettingsAgentSpeakEndpointProviderAwsPolly.Voice;
/** Language code to use, e.g. 'en-US'. Corresponds to the `language_code` parameter in the AWS Polly API */
language: string;
/** Use the `language` field instead. */
language_code?: string | undefined;
engine: AgentV1SettingsAgentSpeakEndpointProviderAwsPolly.Engine;
credentials: AgentV1SettingsAgentSpeakEndpointProviderAwsPolly.Credentials;
}

export namespace AgentV1SettingsAgentSpeakEndpointProviderAwsPolly {
/** AWS Polly voice name */
export const Voice = {
Matthew: "Matthew",
Joanna: "Joanna",
Amy: "Amy",
Emma: "Emma",
Brian: "Brian",
Arthur: "Arthur",
Aria: "Aria",
Ayanda: "Ayanda",
} as const;
export type Voice = (typeof Voice)[keyof typeof Voice] | string;
export const Engine = {
Generative: "generative",
LongForm: "long-form",
Standard: "standard",
Neural: "neural",
} as const;
export type Engine = (typeof Engine)[keyof typeof Engine] | string;

export interface Credentials {
type: Credentials.Type;
region: string;
access_key_id: string;
secret_access_key: string;
/** Required for STS only */
session_token?: string | undefined;
}

export namespace Credentials {
export const Type = {
Sts: "sts",
Iam: "iam",
} as const;
export type Type = (typeof Type)[keyof typeof Type] | string;
}
}
}
Loading
Loading