diff --git a/.fern/metadata.json b/.fern/metadata.json index 064c0f8..a57c047 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -5,5 +5,5 @@ "generatorConfig": { "namespaceExport": "Agora" }, - "originGitCommit": "7edea35eef2583c1cb4860d7941275b0cd7ce900" + "originGitCommit": "8994613e045586856dab7b5eab43920dce0154c4" } diff --git a/.fern/replay.lock b/.fern/replay.lock index dfeac36..da079da 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -24,14 +24,20 @@ generations: cli_version: unknown generator_versions: fernapi/fern-typescript-node-sdk: 3.31.1 -current_generation: 94a1f2704cc7c8dac7d47c76af87a8fdd92e0326 + - commit_sha: 1c26b7f0e4b7bf5aa462ff01dac2455903eb37c8 + tree_hash: 9edfd28f90b552230a0061981fa00c86e87b2604 + timestamp: 2026-07-31T02:52:02.084Z + cli_version: unknown + generator_versions: + fernapi/fern-typescript-node-sdk: 3.31.1 +current_generation: 1c26b7f0e4b7bf5aa462ff01dac2455903eb37c8 patches: - id: patch-fee3d812 content_hash: sha256:a682f317c80be32b9fa689ae5d3584b7c9b1b2ada52a1560dcf51b0f3f82fbb7 original_commit: fee3d8126a03bf95cb09c6b33ab2c32911ce8cf2 original_message: "fix: update Anam avatar configuration to require avatar_id instead of persona_id" original_author: seymourtang - base_generation: 94a1f2704cc7c8dac7d47c76af87a8fdd92e0326 + base_generation: 1c26b7f0e4b7bf5aa462ff01dac2455903eb37c8 files: - pnpm-workspace.yaml patch_content: | diff --git a/src/BaseClient.ts b/src/BaseClient.ts index 315f8a3..ad5db52 100644 --- a/src/BaseClient.ts +++ b/src/BaseClient.ts @@ -44,8 +44,8 @@ export function normalizeClientOptions(options: T): { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agora-agents", - "X-Fern-SDK-Version": "v2.5.0", - "User-Agent": "agora-agents/v2.5.0", + "X-Fern-SDK-Version": "v2.6.0", + "User-Agent": "agora-agents/v2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/types/AresAsrParams.ts b/src/api/types/AresAsrParams.ts index 04b98df..a1439ec 100644 --- a/src/api/types/AresAsrParams.ts +++ b/src/api/types/AresAsrParams.ts @@ -3,4 +3,9 @@ /** * ARES ASR configuration parameters. */ -export type AresAsrParams = Record; +export interface AresAsrParams { + /** A list of hotwords to improve ASR accuracy. */ + keywords?: string[]; + /** Accepts any additional properties */ + [key: string]: any; +} diff --git a/src/api/types/FengmingAsr.ts b/src/api/types/FengmingAsr.ts index 029ffb1..97a1f38 100644 --- a/src/api/types/FengmingAsr.ts +++ b/src/api/types/FengmingAsr.ts @@ -7,8 +7,7 @@ import type * as Agora from "../index.js"; */ export interface FengmingAsr { language?: Agora.AsrLanguage; - /** Agora Fengming ASR configuration parameters. */ - params?: Record; + params?: Agora.FengmingAsrParams; /** Accepts any additional properties */ [key: string]: any; } diff --git a/src/api/types/FengmingAsrParams.ts b/src/api/types/FengmingAsrParams.ts new file mode 100644 index 0000000..73607dd --- /dev/null +++ b/src/api/types/FengmingAsrParams.ts @@ -0,0 +1,11 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * Agora Fengming ASR configuration parameters. + */ +export interface FengmingAsrParams { + /** A list of hotwords to improve ASR accuracy. */ + keywords?: string[]; + /** Accepts any additional properties */ + [key: string]: any; +} diff --git a/src/api/types/Mllm.ts b/src/api/types/Mllm.ts index e6f3f43..c567a84 100644 --- a/src/api/types/Mllm.ts +++ b/src/api/types/Mllm.ts @@ -21,6 +21,8 @@ export interface Mllm { /** Array of conversation items used for short-term memory management. */ messages?: Record[] | null; params?: Agora.MllmParams; + /** The number of conversation history messages cached in the MLLM. Applicable to Azure OpenAI Realtime API only. */ + max_history?: number; /** MLLM input modalities. */ input_modalities?: string[] | null; /** MLLM output modalities. */ @@ -40,9 +42,11 @@ export namespace Mllm { /** MLLM provider. */ export const Vendor = { Openai: "openai", + Azure: "azure", Gemini: "gemini", Vertexai: "vertexai", Xai: "xai", + QwenOmni: "qwen_omni", } as const; export type Vendor = (typeof Vendor)[keyof typeof Vendor]; } diff --git a/src/api/types/Tts.ts b/src/api/types/Tts.ts index 5f6f9c8..fead4c0 100644 --- a/src/api/types/Tts.ts +++ b/src/api/types/Tts.ts @@ -24,7 +24,8 @@ export type Tts = | Agora.Tts.BytedanceDuplex | Agora.Tts.Stepfun | Agora.Tts.Gradium - | Agora.Tts.Mistral; + | Agora.Tts.Mistral + | Agora.Tts.Typecast; export namespace Tts { export interface Tencent extends Agora.TencentTts { @@ -114,4 +115,8 @@ export namespace Tts { export interface Mistral extends Agora.MistralTts { vendor: "mistral"; } + + export interface Typecast extends Agora.TypecastTts { + vendor: "typecast"; + } } diff --git a/src/api/types/TypecastTts.ts b/src/api/types/TypecastTts.ts new file mode 100644 index 0000000..9540b5d --- /dev/null +++ b/src/api/types/TypecastTts.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Agora from "../index.js"; + +/** + * Typecast Text-to-Speech configuration. + */ +export interface TypecastTts { + params: Agora.TypecastTtsParams; + /** Controls whether the TTS module skips bracketed content when reading LLM response text. */ + skip_patterns?: number[]; +} diff --git a/src/api/types/TypecastTtsParams.ts b/src/api/types/TypecastTtsParams.ts new file mode 100644 index 0000000..2c26be9 --- /dev/null +++ b/src/api/types/TypecastTtsParams.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * Typecast TTS configuration parameters. + */ +export interface TypecastTtsParams { + /** Typecast API key. */ + api_key: string; + /** Typecast voice identifier (for example, "tc_60e5426de8b95f1d3000d7b5"). */ + voice_id: string; + /** Typecast TTS model name (for example, "ssfm-v30"). */ + model: string; + /** Accepts any additional properties */ + [key: string]: any; +} diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 1efd135..d1b8fb3 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -26,6 +26,7 @@ export * from "./DeepgramTtsParams.js"; export * from "./ElevenLabsTts.js"; export * from "./ElevenLabsTtsParams.js"; export * from "./FengmingAsr.js"; +export * from "./FengmingAsrParams.js"; export * from "./FishAudioTts.js"; export * from "./FishAudioTtsParams.js"; export * from "./GenericHttpTts.js"; @@ -80,6 +81,8 @@ export * from "./TencentAsrParams.js"; export * from "./TencentTts.js"; export * from "./TencentTtsParams.js"; export * from "./Tts.js"; +export * from "./TypecastTts.js"; +export * from "./TypecastTtsParams.js"; export * from "./XAiAsr.js"; export * from "./XAiAsrParams.js"; export * from "./XAiTts.js"; diff --git a/src/version.ts b/src/version.ts index 3400fc9..0fba1d8 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "v2.5.0"; +export const SDK_VERSION = "v2.6.0";