agora-agents 2.3.1 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.js +8 -16
  3. package/dist/cjs/agentkit/Agent.js +6 -5
  4. package/dist/cjs/agentkit/AgentSession.js +2 -0
  5. package/dist/cjs/agentkit/avatar-types.d.ts +18 -5
  6. package/dist/cjs/agentkit/avatar-types.js +31 -3
  7. package/dist/cjs/agentkit/index.d.ts +9 -9
  8. package/dist/cjs/agentkit/index.js +8 -3
  9. package/dist/cjs/agentkit/types.d.ts +22 -5
  10. package/dist/cjs/agentkit/vendors/avatar.d.ts +3 -3
  11. package/dist/cjs/agentkit/vendors/avatar.js +3 -3
  12. package/dist/cjs/agentkit/vendors/base.d.ts +4 -0
  13. package/dist/cjs/agentkit/vendors/base.js +4 -0
  14. package/dist/cjs/agentkit/vendors/cn.d.ts +19 -1
  15. package/dist/cjs/agentkit/vendors/cn.js +23 -3
  16. package/dist/cjs/agentkit/vendors/llm.d.ts +1 -1
  17. package/dist/cjs/agentkit/vendors/llm.js +13 -3
  18. package/dist/cjs/agentkit/vendors/mllm.js +2 -2
  19. package/dist/cjs/agentkit/vendors/stt.d.ts +31 -0
  20. package/dist/cjs/agentkit/vendors/stt.js +26 -1
  21. package/dist/cjs/agentkit/vendors/tts.d.ts +60 -0
  22. package/dist/cjs/agentkit/vendors/tts.js +42 -1
  23. package/dist/cjs/api/resources/agents/client/requests/ListAgentsRequest.d.ts +2 -3
  24. package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.d.ts +18 -1
  25. package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.js +8 -0
  26. package/dist/cjs/api/resources/agents/types/GetHistoryAgentsResponse.d.ts +6 -0
  27. package/dist/cjs/api/resources/agents/types/index.d.ts +0 -1
  28. package/dist/cjs/api/resources/agents/types/index.js +0 -1
  29. package/dist/cjs/api/types/Asr.d.ts +4 -1
  30. package/dist/cjs/api/types/GenericTts.d.ts +13 -0
  31. package/dist/cjs/api/types/GenericTts.js +3 -0
  32. package/dist/cjs/api/types/GenericTtsParams.d.ts +21 -0
  33. package/dist/cjs/api/types/GenericTtsParams.js +3 -0
  34. package/dist/cjs/api/types/Llm.d.ts +24 -1
  35. package/dist/cjs/api/types/Llm.js +8 -0
  36. package/dist/cjs/api/types/SpatiusAvatarParams.d.ts +23 -0
  37. package/dist/cjs/api/types/SpatiusAvatarParams.js +3 -0
  38. package/dist/cjs/api/types/Tts.d.ts +7 -1
  39. package/dist/cjs/api/types/XAiAsr.d.ts +10 -0
  40. package/dist/cjs/api/types/XAiAsr.js +3 -0
  41. package/dist/cjs/api/types/XAiAsrParams.d.ts +15 -0
  42. package/dist/cjs/api/types/XAiAsrParams.js +3 -0
  43. package/dist/cjs/api/types/XAiTts.d.ts +9 -0
  44. package/dist/cjs/api/types/XAiTts.js +3 -0
  45. package/dist/cjs/api/types/XAiTtsParams.d.ts +15 -0
  46. package/dist/cjs/api/types/XAiTtsParams.js +3 -0
  47. package/dist/cjs/api/types/index.d.ts +7 -0
  48. package/dist/cjs/api/types/index.js +7 -0
  49. package/dist/cjs/core/base64.js +1 -5
  50. package/dist/cjs/index.d.ts +2 -2
  51. package/dist/cjs/index.js +8 -3
  52. package/dist/cjs/version.d.ts +1 -1
  53. package/dist/cjs/version.js +1 -1
  54. package/dist/esm/BaseClient.mjs +2 -2
  55. package/dist/esm/Client.mjs +8 -16
  56. package/dist/esm/agentkit/Agent.mjs +6 -5
  57. package/dist/esm/agentkit/AgentSession.mjs +3 -1
  58. package/dist/esm/agentkit/avatar-types.d.mts +18 -5
  59. package/dist/esm/agentkit/avatar-types.mjs +30 -3
  60. package/dist/esm/agentkit/index.d.mts +9 -9
  61. package/dist/esm/agentkit/index.mjs +4 -4
  62. package/dist/esm/agentkit/types.d.mts +22 -5
  63. package/dist/esm/agentkit/vendors/avatar.d.mts +3 -3
  64. package/dist/esm/agentkit/vendors/avatar.mjs +3 -3
  65. package/dist/esm/agentkit/vendors/base.d.mts +4 -0
  66. package/dist/esm/agentkit/vendors/base.mjs +4 -0
  67. package/dist/esm/agentkit/vendors/cn.d.mts +19 -1
  68. package/dist/esm/agentkit/vendors/cn.mjs +21 -2
  69. package/dist/esm/agentkit/vendors/llm.d.mts +1 -1
  70. package/dist/esm/agentkit/vendors/llm.mjs +13 -3
  71. package/dist/esm/agentkit/vendors/mllm.mjs +2 -2
  72. package/dist/esm/agentkit/vendors/stt.d.mts +31 -0
  73. package/dist/esm/agentkit/vendors/stt.mjs +24 -0
  74. package/dist/esm/agentkit/vendors/tts.d.mts +60 -0
  75. package/dist/esm/agentkit/vendors/tts.mjs +39 -0
  76. package/dist/esm/api/resources/agents/client/requests/ListAgentsRequest.d.mts +2 -3
  77. package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.d.mts +18 -1
  78. package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.mjs +8 -0
  79. package/dist/esm/api/resources/agents/types/GetHistoryAgentsResponse.d.mts +6 -0
  80. package/dist/esm/api/resources/agents/types/index.d.mts +0 -1
  81. package/dist/esm/api/resources/agents/types/index.mjs +0 -1
  82. package/dist/esm/api/types/Asr.d.mts +4 -1
  83. package/dist/esm/api/types/GenericTts.d.mts +13 -0
  84. package/dist/esm/api/types/GenericTts.mjs +2 -0
  85. package/dist/esm/api/types/GenericTtsParams.d.mts +21 -0
  86. package/dist/esm/api/types/GenericTtsParams.mjs +2 -0
  87. package/dist/esm/api/types/Llm.d.mts +24 -1
  88. package/dist/esm/api/types/Llm.mjs +8 -0
  89. package/dist/esm/api/types/SpatiusAvatarParams.d.mts +23 -0
  90. package/dist/esm/api/types/SpatiusAvatarParams.mjs +2 -0
  91. package/dist/esm/api/types/Tts.d.mts +7 -1
  92. package/dist/esm/api/types/XAiAsr.d.mts +10 -0
  93. package/dist/esm/api/types/XAiAsr.mjs +2 -0
  94. package/dist/esm/api/types/XAiAsrParams.d.mts +15 -0
  95. package/dist/esm/api/types/XAiAsrParams.mjs +2 -0
  96. package/dist/esm/api/types/XAiTts.d.mts +9 -0
  97. package/dist/esm/api/types/XAiTts.mjs +2 -0
  98. package/dist/esm/api/types/XAiTtsParams.d.mts +15 -0
  99. package/dist/esm/api/types/XAiTtsParams.mjs +2 -0
  100. package/dist/esm/api/types/index.d.mts +7 -0
  101. package/dist/esm/api/types/index.mjs +7 -0
  102. package/dist/esm/core/base64.mjs +1 -5
  103. package/dist/esm/index.d.mts +2 -2
  104. package/dist/esm/index.mjs +4 -4
  105. package/dist/esm/version.d.mts +1 -1
  106. package/dist/esm/version.mjs +1 -1
  107. package/package.json +1 -1
  108. package/dist/cjs/api/resources/agents/types/ListAgentsRequestState.d.ts +0 -10
  109. package/dist/cjs/api/resources/agents/types/ListAgentsRequestState.js +0 -13
  110. package/dist/esm/api/resources/agents/types/ListAgentsRequestState.d.mts +0 -10
  111. package/dist/esm/api/resources/agents/types/ListAgentsRequestState.mjs +0 -10
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
1
  import type * as Agora from "../index.js";
2
- export type Tts = Agora.Tts.Tencent | Agora.Tts.Bytedance | Agora.Tts.Microsoft | Agora.Tts.Elevenlabs | Agora.Tts.Minimax | Agora.Tts.Murf | Agora.Tts.Cartesia | Agora.Tts.Openai | Agora.Tts.Humeai | Agora.Tts.Rime | Agora.Tts.Fishaudio | Agora.Tts.Google | Agora.Tts.Amazon | Agora.Tts.Sarvam | Agora.Tts.Deepgram | Agora.Tts.Cosyvoice | Agora.Tts.BytedanceDuplex | Agora.Tts.Stepfun;
2
+ export type Tts = Agora.Tts.Tencent | Agora.Tts.Bytedance | Agora.Tts.Microsoft | Agora.Tts.Elevenlabs | Agora.Tts.Minimax | Agora.Tts.Murf | Agora.Tts.Cartesia | Agora.Tts.Openai | Agora.Tts.Humeai | Agora.Tts.Rime | Agora.Tts.Fishaudio | Agora.Tts.Google | Agora.Tts.Amazon | Agora.Tts.Sarvam | Agora.Tts.Generic | Agora.Tts.Xai | Agora.Tts.Deepgram | Agora.Tts.Cosyvoice | Agora.Tts.BytedanceDuplex | Agora.Tts.Stepfun;
3
3
  export declare namespace Tts {
4
4
  interface Tencent extends Agora.TencentTts {
5
5
  vendor: "tencent";
@@ -43,6 +43,12 @@ export declare namespace Tts {
43
43
  interface Sarvam extends Agora.SarvamTts {
44
44
  vendor: "sarvam";
45
45
  }
46
+ interface Generic extends Agora.GenericTts {
47
+ vendor: "generic";
48
+ }
49
+ interface Xai extends Agora.XAiTts {
50
+ vendor: "xai";
51
+ }
46
52
  interface Deepgram extends Agora.DeepgramTts {
47
53
  vendor: "deepgram";
48
54
  }
@@ -0,0 +1,10 @@
1
+ import type * as Agora from "../index.js";
2
+ /**
3
+ * xAI ASR configuration.
4
+ */
5
+ export interface XAiAsr {
6
+ language?: Agora.AsrLanguage;
7
+ params: Agora.XAiAsrParams;
8
+ /** Accepts any additional properties */
9
+ [key: string]: any;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * xAI ASR configuration parameters.
3
+ */
4
+ export interface XAiAsrParams {
5
+ /** xAI API key */
6
+ api_key: string;
7
+ /** WebSocket endpoint URL for the xAI streaming STT API. Defaults to `wss://api.x.ai/v1/stt`. */
8
+ base_url?: string | null;
9
+ /** Audio sample rate in Hz. */
10
+ sample_rate?: number | null;
11
+ /** Language code for speech recognition. */
12
+ language?: string | null;
13
+ /** Accepts any additional properties */
14
+ [key: string]: any;
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import type * as Agora from "../index.js";
2
+ /**
3
+ * xAI Text-to-Speech configuration.
4
+ */
5
+ export interface XAiTts {
6
+ params: Agora.XAiTtsParams;
7
+ /** Controls whether the TTS module skips bracketed content when reading LLM response text. */
8
+ skip_patterns?: number[];
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * xAI TTS configuration parameters.
3
+ */
4
+ export interface XAiTtsParams {
5
+ /** xAI API key. */
6
+ api_key: string;
7
+ /** xAI voice identifier. */
8
+ voice_id?: string | null;
9
+ /** BCP-47 language code for speech synthesis. */
10
+ language: string;
11
+ /** Audio sample rate in Hz. */
12
+ sample_rate?: number | null;
13
+ /** Accepts any additional properties */
14
+ [key: string]: any;
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -28,6 +28,8 @@ export * from "./ElevenLabsTtsParams.js";
28
28
  export * from "./FengmingAsr.js";
29
29
  export * from "./FishAudioTts.js";
30
30
  export * from "./FishAudioTtsParams.js";
31
+ export * from "./GenericTts.js";
32
+ export * from "./GenericTtsParams.js";
31
33
  export * from "./GoogleAsr.js";
32
34
  export * from "./GoogleAsrParams.js";
33
35
  export * from "./GoogleTts.js";
@@ -63,6 +65,7 @@ export * from "./SarvamAsrParams.js";
63
65
  export * from "./SarvamTts.js";
64
66
  export * from "./SarvamTtsParams.js";
65
67
  export * from "./SensetimeAvatarParams.js";
68
+ export * from "./SpatiusAvatarParams.js";
66
69
  export * from "./SpeechmaticsAsr.js";
67
70
  export * from "./SpeechmaticsAsrParams.js";
68
71
  export * from "./StepfunTts.js";
@@ -73,6 +76,10 @@ export * from "./TencentAsrParams.js";
73
76
  export * from "./TencentTts.js";
74
77
  export * from "./TencentTtsParams.js";
75
78
  export * from "./Tts.js";
79
+ export * from "./XAiAsr.js";
80
+ export * from "./XAiAsrParams.js";
81
+ export * from "./XAiTts.js";
82
+ export * from "./XAiTtsParams.js";
76
83
  export * from "./XfyunAsr.js";
77
84
  export * from "./XfyunAsrParams.js";
78
85
  export * from "./XfyunBigmodelAsr.js";
@@ -44,6 +44,8 @@ __exportStar(require("./ElevenLabsTtsParams.js"), exports);
44
44
  __exportStar(require("./FengmingAsr.js"), exports);
45
45
  __exportStar(require("./FishAudioTts.js"), exports);
46
46
  __exportStar(require("./FishAudioTtsParams.js"), exports);
47
+ __exportStar(require("./GenericTts.js"), exports);
48
+ __exportStar(require("./GenericTtsParams.js"), exports);
47
49
  __exportStar(require("./GoogleAsr.js"), exports);
48
50
  __exportStar(require("./GoogleAsrParams.js"), exports);
49
51
  __exportStar(require("./GoogleTts.js"), exports);
@@ -79,6 +81,7 @@ __exportStar(require("./SarvamAsrParams.js"), exports);
79
81
  __exportStar(require("./SarvamTts.js"), exports);
80
82
  __exportStar(require("./SarvamTtsParams.js"), exports);
81
83
  __exportStar(require("./SensetimeAvatarParams.js"), exports);
84
+ __exportStar(require("./SpatiusAvatarParams.js"), exports);
82
85
  __exportStar(require("./SpeechmaticsAsr.js"), exports);
83
86
  __exportStar(require("./SpeechmaticsAsrParams.js"), exports);
84
87
  __exportStar(require("./StepfunTts.js"), exports);
@@ -89,6 +92,10 @@ __exportStar(require("./TencentAsrParams.js"), exports);
89
92
  __exportStar(require("./TencentTts.js"), exports);
90
93
  __exportStar(require("./TencentTtsParams.js"), exports);
91
94
  __exportStar(require("./Tts.js"), exports);
95
+ __exportStar(require("./XAiAsr.js"), exports);
96
+ __exportStar(require("./XAiAsrParams.js"), exports);
97
+ __exportStar(require("./XAiTts.js"), exports);
98
+ __exportStar(require("./XAiTtsParams.js"), exports);
92
99
  __exportStar(require("./XfyunAsr.js"), exports);
93
100
  __exportStar(require("./XfyunAsrParams.js"), exports);
94
101
  __exportStar(require("./XfyunBigmodelAsr.js"), exports);
@@ -4,11 +4,7 @@ exports.base64Encode = base64Encode;
4
4
  exports.base64Decode = base64Decode;
5
5
  function base64ToBytes(base64) {
6
6
  const binString = atob(base64);
7
- const bytes = new Uint8Array(binString.length);
8
- for (let i = 0; i < binString.length; i++) {
9
- bytes[i] = binString.charCodeAt(i);
10
- }
11
- return bytes;
7
+ return Uint8Array.from(binString, (m) => m.codePointAt(0));
12
8
  }
13
9
  function bytesToBase64(bytes) {
14
10
  const binString = String.fromCodePoint(...bytes);
@@ -1,8 +1,8 @@
1
1
  export type { AgoraAuthMode } from "./AgoraPoolClient.js";
2
2
  export { AgoraClient } from "./AgoraPoolClient.js";
3
3
  export type { AgoraArea, AreaScope, GlobalArea } from "./agentkit/area.js";
4
- export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AgentOptions, AgentPreset, AgentSessionEvent, AgentSessionEventHandler, AgentSessionOptions, AgentsClient, AkoolAvatarConfig, AkoolAvatarOptions, AkoolSampleRate, AliyunLLMOptions, AmazonBedrockOptions, AmazonSTTOptions, AmazonTTSOptions, AmazonTts, AmazonTtsParams, AnamAvatarConfig, AnamAvatarOptions, AnthropicOptions, AresSTTOptions, AsrConfig, AsrPreset, AsrVendorName, AssemblyAISTTOptions, AvatarConfig, AvatarVendor, AvatarWireVendor, AzureOpenAIOptions, BytedanceDuplexTTSOptions, BytedanceLLMOptions, BytedanceTTSOptions, CartesiaSampleRate, CartesiaTTSOptions, CartesiaTts, CartesiaTtsParams, CNAvatarVendor, CNLlmVendor, CNSttVendor, CNTtsVendor, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, CustomLLMOptions, DeepgramSTTOptions, DeepgramTTSOptions, DeepSeekLLMOptions, DifyOptions, Eagerness, ElevenLabsSampleRate, ElevenLabsTTSOptions, ElevenLabsTts, ElevenLabsTtsParams, EndOfSpeechConfig, EndOfSpeechMode, EndOfSpeechSemanticConfig, EndOfSpeechVadConfig, FarewellConfig, FillerWordsConfig, FillerWordsContent, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTTSOptions, FishAudioTts, FishAudioTtsParams, GeminiLiveOptions, GeminiOptions, GenerateConvoAITokenOptions, GenerateTokenOptions, GenericAvatarConfig, GenericAvatarOptions, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GlobalAvatarVendor, GlobalLlmVendor, GlobalSttVendor, GlobalTtsVendor, GoogleSTTOptions, GoogleTTSOptions, GoogleTts, GoogleTtsParams, GroqOptions, HeyGenAvatarConfig, HeyGenAvatarOptions, HeyGenSampleRate, HumeAITTSOptions, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LiveAvatarAvatarConfig, LiveAvatarAvatarOptions, LiveAvatarSampleRate, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmPreset, LlmStyle, LlmVendor, McpServersItem, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MicrosoftSampleRate, MicrosoftSTTOptions, MicrosoftTTSOptions, MicrosoftTts, MicrosoftTtsParams, MiniMaxCNTTSOptions, MiniMaxTTSOptions, MinimaxTts, MinimaxTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTTSOptions, MurfTts, MurfTtsParams, OpenAIOptions, OpenAIRealtimeOptions, OpenAISTTOptions, OpenAITTSOptions, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, PresetCategory, PresetInput, RimeTTSOptions, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SampleRate, SarvamSTTOptions, SarvamTTSOptions, SarvamTts, SarvamTtsParams, SayOptions, SensetimeAvatarConfig, SensetimeAvatarOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SpeakPriority, SpeechmaticsSTTOptions, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, StepFunTTSOptions, StrictAvatarConfig, SttConfig, SttVendor, TencentLLMOptions, TencentSTTOptions, TencentTTSOptions, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TtsPreset, TtsVendor, TurnDetectionConfig, TurnDetectionLanguage, TurnDetectionNestedConfig, TurnDetectionType, VertexAILLMOptions, VertexAIOptions, XaiGrokOptions, XfyunBigModelSTTOptions, XfyunDialectSTTOptions, XfyunSTTOptions, } from "./agentkit/index.js";
5
- export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedrock, AmazonSTT, AmazonTTS, AnamAvatar, Anthropic, AresSTT, AssemblyAISTT, AudioScenario, AzureOpenAI, BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNSTT, BaseCNTTS, BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CustomLLM, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify, ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GenericAvatar, Geofence, GoogleSTT, GoogleTTS, Groq, generateConvoAIToken, generateRtcToken, HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput, OpenAI, OpenAIRealtime, OpenAISTT, OpenAITTS, RimeTTS, SalModeValues, SarvamSTT, SarvamTTS, SensetimeAvatar, SilenceActionValues, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues, SpeechmaticsSTT, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, toBaseAvatarConfig, VertexAI, VertexAILLM, validateAvatarConfig, validateTtsSampleRate, XaiGrok, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./agentkit/index.js";
4
+ export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AgentOptions, AgentPreset, AgentSessionEvent, AgentSessionEventHandler, AgentSessionOptions, AgentsClient, AkoolAvatarConfig, AkoolAvatarOptions, AkoolSampleRate, AliyunLLMOptions, AmazonBedrockOptions, AmazonSTTOptions, AmazonTTSOptions, AmazonTts, AmazonTtsParams, AnamAvatarConfig, AnamAvatarOptions, AnthropicOptions, AresSTTOptions, AsrConfig, AsrPreset, AsrVendorName, AssemblyAISTTOptions, AvatarConfig, AvatarVendor, AvatarWireVendor, AzureOpenAIOptions, BytedanceDuplexTTSOptions, BytedanceLLMOptions, BytedanceTTSOptions, CartesiaSampleRate, CartesiaTTSOptions, CartesiaTts, CartesiaTtsParams, CNAvatarVendor, CNLlmVendor, CNSttVendor, CNTtsVendor, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, CustomLLMOptions, DeepgramSTTOptions, DeepgramTTSOptions, DeepSeekLLMOptions, DifyOptions, Eagerness, ElevenLabsSampleRate, ElevenLabsTTSOptions, ElevenLabsTts, ElevenLabsTtsParams, EndOfSpeechConfig, EndOfSpeechMode, EndOfSpeechSemanticConfig, EndOfSpeechVadConfig, FarewellConfig, FillerWordsConfig, FillerWordsContent, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTTSOptions, FishAudioTts, FishAudioTtsParams, GeminiLiveOptions, GeminiOptions, GenerateConvoAITokenOptions, GenerateTokenOptions, GenericAvatarConfig, GenericAvatarOptions, GenericTTSOptions, GenericTts, GenericTtsParams, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GlobalAvatarVendor, GlobalLlmVendor, GlobalSttVendor, GlobalTtsVendor, GoogleSTTOptions, GoogleTTSOptions, GoogleTts, GoogleTtsParams, GroqOptions, HeyGenAvatarConfig, HeyGenAvatarOptions, HeyGenSampleRate, HumeAITTSOptions, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LiveAvatarAvatarConfig, LiveAvatarAvatarOptions, LiveAvatarSampleRate, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmPreset, LlmStyle, LlmVendor, McpServersItem, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MicrosoftSampleRate, MicrosoftSTTOptions, MicrosoftTTSOptions, MicrosoftTts, MicrosoftTtsParams, MiniMaxCNTTSOptions, MiniMaxTTSOptions, MinimaxTts, MinimaxTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTTSOptions, MurfTts, MurfTtsParams, OpenAIOptions, OpenAIRealtimeOptions, OpenAISTTOptions, OpenAITTSOptions, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, PresetCategory, PresetInput, RimeTTSOptions, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SampleRate, SarvamSTTOptions, SarvamTTSOptions, SarvamTts, SarvamTtsParams, SayOptions, SensetimeAvatarConfig, SensetimeAvatarOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SpatiusAvatarConfig, SpatiusAvatarOptions, SpatiusAvatarParams, SpeakPriority, SpeechmaticsSTTOptions, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, StepFunTTSOptions, StrictAvatarConfig, SttConfig, SttVendor, TencentLLMOptions, TencentSTTOptions, TencentTTSOptions, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TtsPreset, TtsVendor, TurnDetectionConfig, TurnDetectionLanguage, TurnDetectionNestedConfig, TurnDetectionType, VertexAILLMOptions, VertexAIOptions, XAiAsr, XAiAsrParams, XAiSTTOptions, XAiTTSOptions, XAiTts, XAiTtsParams, XaiGrokOptions, XfyunBigModelSTTOptions, XfyunDialectSTTOptions, XfyunSTTOptions, } from "./agentkit/index.js";
5
+ export { Agent, AgentPresets, AgentSession, AkoolAvatar, AliyunLLM, AmazonBedrock, AmazonSTT, AmazonTTS, AnamAvatar, Anthropic, AresSTT, AssemblyAISTT, AudioScenario, AzureOpenAI, BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNSTT, BaseCNTTS, BaseLLM, BaseMLLM, BaseSTT, BaseTTS, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CartesiaTTS, CosyVoiceTTS, CustomLLM, DataChannel, DeepgramSTT, DeepgramTTS, DeepSeekLLM, Dify, ElevenLabsTTS, ExpiresIn, FengmingSTT, FillerWordsSelectionRule, FishAudioTTS, Gemini, GeminiLive, GenericAvatar, GenericTTS, Geofence, GoogleSTT, GoogleTTS, Groq, generateConvoAIToken, generateRtcToken, HeyGenAvatar, HumeAITTS, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, isSpatiusAvatar, LiveAvatarAvatar, MAX_EXPIRY_SECONDS, MicrosoftCNSTT, MicrosoftCNTTS, MicrosoftSTT, MicrosoftTTS, MiniMaxCNTTS, MiniMaxTTS, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, MurfTTS, normalizePresetInput, OpenAI, OpenAIRealtime, OpenAISTT, OpenAITTS, RimeTTS, SalModeValues, SarvamSTT, SarvamTTS, SensetimeAvatar, SilenceActionValues, SpatiusAvatar, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues, SpeechmaticsSTT, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, toBaseAvatarConfig, VertexAI, VertexAILLM, validateAvatarConfig, validateTtsSampleRate, XAiSTT, XAiTTS, XaiGrok, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./agentkit/index.js";
6
6
  export * as Agora from "./api/index.js";
7
7
  export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
8
8
  export { Area } from "./core/domain/index.js";
package/dist/cjs/index.js CHANGED
@@ -36,9 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.HeyGenAvatar = exports.generateRtcToken = exports.generateConvoAIToken = exports.Groq = exports.GoogleTTS = exports.GoogleSTT = exports.Geofence = exports.GenericAvatar = exports.GeminiLive = exports.Gemini = exports.FishAudioTTS = exports.FillerWordsSelectionRule = exports.FengmingSTT = exports.ExpiresIn = exports.ElevenLabsTTS = exports.Dify = exports.DeepSeekLLM = exports.DeepgramTTS = exports.DeepgramSTT = exports.DataChannel = exports.CustomLLM = exports.CosyVoiceTTS = exports.CartesiaTTS = exports.BytedanceTTS = exports.BytedanceLLM = exports.BytedanceDuplexTTS = exports.BaseTTS = exports.BaseSTT = exports.BaseMLLM = exports.BaseLLM = exports.BaseCNTTS = exports.BaseCNSTT = exports.BaseCNLLM = exports.BaseCNAvatar = exports.BaseAvatar = exports.AzureOpenAI = exports.AudioScenario = exports.AssemblyAISTT = exports.AresSTT = exports.Anthropic = exports.AnamAvatar = exports.AmazonTTS = exports.AmazonSTT = exports.AmazonBedrock = exports.AliyunLLM = exports.AkoolAvatar = exports.AgentSession = exports.AgentPresets = exports.Agent = exports.AgoraClient = void 0;
40
- exports.ThinkOnListeningActionInterrupt = exports.ThinkOnListeningActionInject = exports.ThinkOnListeningActionIgnore = exports.TencentTTS = exports.TencentSTT = exports.TencentLLM = exports.StepFunTTS = exports.SpeechmaticsSTT = exports.SpeakPriorityValues = exports.SpeakPriorityInterrupt = exports.SpeakPriorityIgnore = exports.SpeakPriorityAppend = exports.SilenceActionValues = exports.SensetimeAvatar = exports.SarvamTTS = exports.SarvamSTT = exports.SalModeValues = exports.RimeTTS = exports.OpenAITTS = exports.OpenAISTT = exports.OpenAIRealtime = exports.OpenAI = exports.normalizePresetInput = exports.MurfTTS = exports.MllmTurnDetectionModeValues = exports.MllmTurnDetectionModeServerVad = exports.MllmTurnDetectionModeSemanticVad = exports.MllmTurnDetectionModeAgoraVad = exports.MiniMaxTTS = exports.MiniMaxCNTTS = exports.MicrosoftTTS = exports.MicrosoftSTT = exports.MicrosoftCNTTS = exports.MicrosoftCNSTT = exports.MAX_EXPIRY_SECONDS = exports.LiveAvatarAvatar = exports.isSensetimeAvatar = exports.isLiveAvatarAvatar = exports.isHeyGenAvatar = exports.isGenericAvatar = exports.isAvatarTokenManaged = exports.isAnamAvatar = exports.isAkoolAvatar = exports.InterruptionModeValues = exports.InterruptionModeStartOfSpeech = exports.InterruptionModeKeywords = exports.InterruptionDisabledStrategyIgnore = exports.InterruptionDisabledStrategyAppend = exports.InterruptionDisabledStrategy = exports.HumeAITTS = void 0;
41
- exports.AgoraTimeoutError = exports.AgoraError = exports.AgoraEnvironment = exports.Area = exports.Agora = exports.XfyunSTT = exports.XfyunDialectSTT = exports.XfyunBigModelSTT = exports.XaiGrok = exports.validateTtsSampleRate = exports.validateAvatarConfig = exports.VertexAILLM = exports.VertexAI = exports.toBaseAvatarConfig = exports.TurnDetectionTypeValues = exports.ThinkOnThinkingActionInterrupt = exports.ThinkOnThinkingActionIgnore = exports.ThinkOnSpeakingActionInterrupt = exports.ThinkOnSpeakingActionIgnore = void 0;
39
+ exports.generateRtcToken = exports.generateConvoAIToken = exports.Groq = exports.GoogleTTS = exports.GoogleSTT = exports.Geofence = exports.GenericTTS = exports.GenericAvatar = exports.GeminiLive = exports.Gemini = exports.FishAudioTTS = exports.FillerWordsSelectionRule = exports.FengmingSTT = exports.ExpiresIn = exports.ElevenLabsTTS = exports.Dify = exports.DeepSeekLLM = exports.DeepgramTTS = exports.DeepgramSTT = exports.DataChannel = exports.CustomLLM = exports.CosyVoiceTTS = exports.CartesiaTTS = exports.BytedanceTTS = exports.BytedanceLLM = exports.BytedanceDuplexTTS = exports.BaseTTS = exports.BaseSTT = exports.BaseMLLM = exports.BaseLLM = exports.BaseCNTTS = exports.BaseCNSTT = exports.BaseCNLLM = exports.BaseCNAvatar = exports.BaseAvatar = exports.AzureOpenAI = exports.AudioScenario = exports.AssemblyAISTT = exports.AresSTT = exports.Anthropic = exports.AnamAvatar = exports.AmazonTTS = exports.AmazonSTT = exports.AmazonBedrock = exports.AliyunLLM = exports.AkoolAvatar = exports.AgentSession = exports.AgentPresets = exports.Agent = exports.AgoraClient = void 0;
40
+ exports.TencentTTS = exports.TencentSTT = exports.TencentLLM = exports.StepFunTTS = exports.SpeechmaticsSTT = exports.SpeakPriorityValues = exports.SpeakPriorityInterrupt = exports.SpeakPriorityIgnore = exports.SpeakPriorityAppend = exports.SpatiusAvatar = exports.SilenceActionValues = exports.SensetimeAvatar = exports.SarvamTTS = exports.SarvamSTT = exports.SalModeValues = exports.RimeTTS = exports.OpenAITTS = exports.OpenAISTT = exports.OpenAIRealtime = exports.OpenAI = exports.normalizePresetInput = exports.MurfTTS = exports.MllmTurnDetectionModeValues = exports.MllmTurnDetectionModeServerVad = exports.MllmTurnDetectionModeSemanticVad = exports.MllmTurnDetectionModeAgoraVad = exports.MiniMaxTTS = exports.MiniMaxCNTTS = exports.MicrosoftTTS = exports.MicrosoftSTT = exports.MicrosoftCNTTS = exports.MicrosoftCNSTT = exports.MAX_EXPIRY_SECONDS = exports.LiveAvatarAvatar = exports.isSpatiusAvatar = exports.isSensetimeAvatar = exports.isLiveAvatarAvatar = exports.isHeyGenAvatar = exports.isGenericAvatar = exports.isAvatarTokenManaged = exports.isAnamAvatar = exports.isAkoolAvatar = exports.InterruptionModeValues = exports.InterruptionModeStartOfSpeech = exports.InterruptionModeKeywords = exports.InterruptionDisabledStrategyIgnore = exports.InterruptionDisabledStrategyAppend = exports.InterruptionDisabledStrategy = exports.HumeAITTS = exports.HeyGenAvatar = void 0;
41
+ exports.AgoraTimeoutError = exports.AgoraError = exports.AgoraEnvironment = exports.Area = exports.Agora = exports.XfyunSTT = exports.XfyunDialectSTT = exports.XfyunBigModelSTT = exports.XaiGrok = exports.XAiTTS = exports.XAiSTT = exports.validateTtsSampleRate = exports.validateAvatarConfig = exports.VertexAILLM = exports.VertexAI = exports.toBaseAvatarConfig = exports.TurnDetectionTypeValues = exports.ThinkOnThinkingActionInterrupt = exports.ThinkOnThinkingActionIgnore = exports.ThinkOnSpeakingActionInterrupt = exports.ThinkOnSpeakingActionIgnore = exports.ThinkOnListeningActionInterrupt = exports.ThinkOnListeningActionInject = exports.ThinkOnListeningActionIgnore = void 0;
42
42
  var AgoraPoolClient_js_1 = require("./AgoraPoolClient.js");
43
43
  Object.defineProperty(exports, "AgoraClient", { enumerable: true, get: function () { return AgoraPoolClient_js_1.AgoraClient; } });
44
44
  // Agentkit layer exports - clean, ergonomic API
@@ -87,6 +87,7 @@ Object.defineProperty(exports, "FishAudioTTS", { enumerable: true, get: function
87
87
  Object.defineProperty(exports, "Gemini", { enumerable: true, get: function () { return index_js_1.Gemini; } });
88
88
  Object.defineProperty(exports, "GeminiLive", { enumerable: true, get: function () { return index_js_1.GeminiLive; } });
89
89
  Object.defineProperty(exports, "GenericAvatar", { enumerable: true, get: function () { return index_js_1.GenericAvatar; } });
90
+ Object.defineProperty(exports, "GenericTTS", { enumerable: true, get: function () { return index_js_1.GenericTTS; } });
90
91
  Object.defineProperty(exports, "Geofence", { enumerable: true, get: function () { return index_js_1.Geofence; } });
91
92
  Object.defineProperty(exports, "GoogleSTT", { enumerable: true, get: function () { return index_js_1.GoogleSTT; } });
92
93
  Object.defineProperty(exports, "GoogleTTS", { enumerable: true, get: function () { return index_js_1.GoogleTTS; } });
@@ -109,6 +110,7 @@ Object.defineProperty(exports, "isGenericAvatar", { enumerable: true, get: funct
109
110
  Object.defineProperty(exports, "isHeyGenAvatar", { enumerable: true, get: function () { return index_js_1.isHeyGenAvatar; } });
110
111
  Object.defineProperty(exports, "isLiveAvatarAvatar", { enumerable: true, get: function () { return index_js_1.isLiveAvatarAvatar; } });
111
112
  Object.defineProperty(exports, "isSensetimeAvatar", { enumerable: true, get: function () { return index_js_1.isSensetimeAvatar; } });
113
+ Object.defineProperty(exports, "isSpatiusAvatar", { enumerable: true, get: function () { return index_js_1.isSpatiusAvatar; } });
112
114
  Object.defineProperty(exports, "LiveAvatarAvatar", { enumerable: true, get: function () { return index_js_1.LiveAvatarAvatar; } });
113
115
  Object.defineProperty(exports, "MAX_EXPIRY_SECONDS", { enumerable: true, get: function () { return index_js_1.MAX_EXPIRY_SECONDS; } });
114
116
  Object.defineProperty(exports, "MicrosoftCNSTT", { enumerable: true, get: function () { return index_js_1.MicrosoftCNSTT; } });
@@ -135,6 +137,7 @@ Object.defineProperty(exports, "SarvamSTT", { enumerable: true, get: function ()
135
137
  Object.defineProperty(exports, "SarvamTTS", { enumerable: true, get: function () { return index_js_1.SarvamTTS; } });
136
138
  Object.defineProperty(exports, "SensetimeAvatar", { enumerable: true, get: function () { return index_js_1.SensetimeAvatar; } });
137
139
  Object.defineProperty(exports, "SilenceActionValues", { enumerable: true, get: function () { return index_js_1.SilenceActionValues; } });
140
+ Object.defineProperty(exports, "SpatiusAvatar", { enumerable: true, get: function () { return index_js_1.SpatiusAvatar; } });
138
141
  Object.defineProperty(exports, "SpeakPriorityAppend", { enumerable: true, get: function () { return index_js_1.SpeakPriorityAppend; } });
139
142
  Object.defineProperty(exports, "SpeakPriorityIgnore", { enumerable: true, get: function () { return index_js_1.SpeakPriorityIgnore; } });
140
143
  Object.defineProperty(exports, "SpeakPriorityInterrupt", { enumerable: true, get: function () { return index_js_1.SpeakPriorityInterrupt; } });
@@ -158,6 +161,8 @@ Object.defineProperty(exports, "VertexAI", { enumerable: true, get: function ()
158
161
  Object.defineProperty(exports, "VertexAILLM", { enumerable: true, get: function () { return index_js_1.VertexAILLM; } });
159
162
  Object.defineProperty(exports, "validateAvatarConfig", { enumerable: true, get: function () { return index_js_1.validateAvatarConfig; } });
160
163
  Object.defineProperty(exports, "validateTtsSampleRate", { enumerable: true, get: function () { return index_js_1.validateTtsSampleRate; } });
164
+ Object.defineProperty(exports, "XAiSTT", { enumerable: true, get: function () { return index_js_1.XAiSTT; } });
165
+ Object.defineProperty(exports, "XAiTTS", { enumerable: true, get: function () { return index_js_1.XAiTTS; } });
161
166
  Object.defineProperty(exports, "XaiGrok", { enumerable: true, get: function () { return index_js_1.XaiGrok; } });
162
167
  Object.defineProperty(exports, "XfyunBigModelSTT", { enumerable: true, get: function () { return index_js_1.XfyunBigModelSTT; } });
163
168
  Object.defineProperty(exports, "XfyunDialectSTT", { enumerable: true, get: function () { return index_js_1.XfyunDialectSTT; } });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v2.2.0";
1
+ export declare const SDK_VERSION = "v2.3.2";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "v2.2.0";
4
+ exports.SDK_VERSION = "v2.3.2";
@@ -5,8 +5,8 @@ export function normalizeClientOptions(options) {
5
5
  const headers = mergeHeaders({
6
6
  "X-Fern-Language": "JavaScript",
7
7
  "X-Fern-SDK-Name": "agora-agents",
8
- "X-Fern-SDK-Version": "v2.2.0",
9
- "User-Agent": "agora-agents/v2.2.0",
8
+ "X-Fern-SDK-Version": "v2.3.2",
9
+ "User-Agent": "agora-agents/v2.3.2",
10
10
  "X-Fern-Runtime": core.RUNTIME.type,
11
11
  "X-Fern-Runtime-Version": core.RUNTIME.version,
12
12
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -9,27 +9,19 @@ export class AgoraClient {
9
9
  this._options = normalizeClientOptions(options);
10
10
  }
11
11
  get agents() {
12
- if (this._agents == null) {
13
- this._agents = new AgentsClient(this._options);
14
- }
15
- return this._agents;
12
+ var _a;
13
+ return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new AgentsClient(this._options)));
16
14
  }
17
15
  get agentManagement() {
18
- if (this._agentManagement == null) {
19
- this._agentManagement = new AgentManagementClient(this._options);
20
- }
21
- return this._agentManagement;
16
+ var _a;
17
+ return ((_a = this._agentManagement) !== null && _a !== void 0 ? _a : (this._agentManagement = new AgentManagementClient(this._options)));
22
18
  }
23
19
  get telephony() {
24
- if (this._telephony == null) {
25
- this._telephony = new TelephonyClient(this._options);
26
- }
27
- return this._telephony;
20
+ var _a;
21
+ return ((_a = this._telephony) !== null && _a !== void 0 ? _a : (this._telephony = new TelephonyClient(this._options)));
28
22
  }
29
23
  get phoneNumbers() {
30
- if (this._phoneNumbers == null) {
31
- this._phoneNumbers = new PhoneNumbersClient(this._options);
32
- }
33
- return this._phoneNumbers;
24
+ var _a;
25
+ return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new PhoneNumbersClient(this._options)));
34
26
  }
35
27
  }
@@ -5,6 +5,7 @@
5
5
  * multiple sessions. Set the unique agent instance `name` in
6
6
  * {@link Agent.createSession}, not on the Agent itself.
7
7
  */
8
+ import { Area } from "../core/domain/index.mjs";
8
9
  import { AgentSession } from "./AgentSession.mjs";
9
10
  import { AudioScenario } from "./constants.mjs";
10
11
  import { generateConvoAIToken } from "./token.mjs";
@@ -714,11 +715,11 @@ export class Agent {
714
715
  return newAgent;
715
716
  }
716
717
  _resolveAsrConfig(turnDetectionConfig) {
717
- var _a;
718
- const asrConfig = Object.assign({}, ((_a = this._stt) !== null && _a !== void 0 ? _a : {}));
719
- if (this._stt === undefined) {
720
- asrConfig.vendor = "ares";
721
- }
718
+ const asrConfig = this._stt !== undefined
719
+ ? Object.assign({}, this._stt)
720
+ : {
721
+ vendor: this._client.area === Area.CN ? "fengming" : "ares",
722
+ };
722
723
  asrConfig.language = turnDetectionConfig.language;
723
724
  return Object.keys(asrConfig).length > 0 ? asrConfig : undefined;
724
725
  }
@@ -14,7 +14,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
14
14
  });
15
15
  };
16
16
  import { AgoraError } from "../errors/index.mjs";
17
- import { isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, validateAvatarConfig, validateTtsSampleRate, } from "./avatar-types.mjs";
17
+ import { isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, isSpatiusAvatar, validateAvatarConfig, validateTtsSampleRate, } from "./avatar-types.mjs";
18
18
  import { getPresetCategory, inferAsrPreset, inferLlmPreset, inferTtsPreset, normalizePresetInput, resolveSessionPresets, } from "./presets.mjs";
19
19
  import { ExpiresIn as ExpiresInHelper, generateConvoAIToken } from "./token.mjs";
20
20
  /**
@@ -192,6 +192,7 @@ export class AgentSession {
192
192
  if (isHeyGenAvatar(strictAvatar) ||
193
193
  isLiveAvatarAvatar(strictAvatar) ||
194
194
  isSensetimeAvatar(strictAvatar) ||
195
+ isSpatiusAvatar(strictAvatar) ||
195
196
  isAkoolAvatar(strictAvatar) ||
196
197
  isAnamAvatar(strictAvatar) ||
197
198
  isGenericAvatar(strictAvatar)) {
@@ -279,6 +280,7 @@ export class AgentSession {
279
280
  if (isHeyGenAvatar(strictAvatar) ||
280
281
  isLiveAvatarAvatar(strictAvatar) ||
281
282
  isSensetimeAvatar(strictAvatar) ||
283
+ isSpatiusAvatar(strictAvatar) ||
282
284
  isAkoolAvatar(strictAvatar) ||
283
285
  isAnamAvatar(strictAvatar) ||
284
286
  isGenericAvatar(strictAvatar)) {
@@ -5,6 +5,7 @@
5
5
  * ensuring that invalid combinations are caught at compile time.
6
6
  */
7
7
  import type { SensetimeAvatarParams } from "../api/types/SensetimeAvatarParams.mjs";
8
+ import type { SpatiusAvatarParams } from "../api/types/SpatiusAvatarParams.mjs";
8
9
  import type { AvatarConfig as BaseAvatarConfig } from "./types.mjs";
9
10
  /**
10
11
  * HeyGen-specific avatar configuration (legacy wire vendor `heygen`).
@@ -74,8 +75,8 @@ export interface AnamAvatarConfig {
74
75
  params: {
75
76
  /** API key for Anam authentication (required) */
76
77
  api_key: string;
77
- /** Anam persona ID (optional) */
78
- persona_id?: string;
78
+ /** Anam avatar ID (optional) */
79
+ avatar_id?: string;
79
80
  [key: string]: unknown;
80
81
  };
81
82
  }
@@ -139,16 +140,24 @@ export interface SensetimeAvatarConfig {
139
140
  appId: string;
140
141
  /** SenseTime application key (required) */
141
142
  app_key: string;
142
- /** SenseTime scene configuration list (required) */
143
- sceneList: SensetimeAvatarParams.SceneList.Item[];
143
+ /** SenseTime scene configuration list (optional) */
144
+ sceneList?: SensetimeAvatarParams.SceneList.Item[];
144
145
  [key: string]: unknown;
145
146
  };
146
147
  }
148
+ /**
149
+ * Spatius-specific avatar configuration.
150
+ */
151
+ export interface SpatiusAvatarConfig {
152
+ enable?: boolean;
153
+ vendor: "spatius";
154
+ params: SpatiusAvatarParams;
155
+ }
147
156
  /**
148
157
  * Discriminated union of all avatar configurations.
149
158
  * TypeScript will enforce vendor-specific constraints based on the vendor field.
150
159
  */
151
- export type StrictAvatarConfig = HeyGenAvatarConfig | LiveAvatarAvatarConfig | AkoolAvatarConfig | AnamAvatarConfig | GenericAvatarConfig | SensetimeAvatarConfig;
160
+ export type StrictAvatarConfig = HeyGenAvatarConfig | LiveAvatarAvatarConfig | AkoolAvatarConfig | AnamAvatarConfig | GenericAvatarConfig | SensetimeAvatarConfig | SpatiusAvatarConfig;
152
161
  /**
153
162
  * Helper type guard to check if an avatar config uses the legacy HeyGen wire vendor.
154
163
  */
@@ -173,6 +182,10 @@ export declare function isGenericAvatar(config: StrictAvatarConfig): config is G
173
182
  * Helper type guard to check if an avatar config is for SenseTime (CN).
174
183
  */
175
184
  export declare function isSensetimeAvatar(config: StrictAvatarConfig): config is SensetimeAvatarConfig;
185
+ /**
186
+ * Helper type guard to check if an avatar config is for Spatius.
187
+ */
188
+ export declare function isSpatiusAvatar(config: StrictAvatarConfig): config is SpatiusAvatarConfig;
176
189
  /**
177
190
  * Returns true when AgentKit manages the avatar's RTC publisher identity
178
191
  * (i.e. fills `agora_token`, validates uniqueness against the agent UID).
@@ -40,6 +40,12 @@ export function isGenericAvatar(config) {
40
40
  export function isSensetimeAvatar(config) {
41
41
  return config.vendor === "sensetime";
42
42
  }
43
+ /**
44
+ * Helper type guard to check if an avatar config is for Spatius.
45
+ */
46
+ export function isSpatiusAvatar(config) {
47
+ return config.vendor === "spatius";
48
+ }
43
49
  /**
44
50
  * Returns true when AgentKit manages the avatar's RTC publisher identity
45
51
  * (i.e. fills `agora_token`, validates uniqueness against the agent UID).
@@ -47,7 +53,11 @@ export function isSensetimeAvatar(config) {
47
53
  * Mirrors the Go and Python SDK gate so all language SDKs behave identically.
48
54
  */
49
55
  export function isAvatarTokenManaged(config) {
50
- return isHeyGenAvatar(config) || isLiveAvatarAvatar(config) || isGenericAvatar(config) || isSensetimeAvatar(config);
56
+ return (isHeyGenAvatar(config) ||
57
+ isLiveAvatarAvatar(config) ||
58
+ isGenericAvatar(config) ||
59
+ isSensetimeAvatar(config) ||
60
+ isSpatiusAvatar(config));
51
61
  }
52
62
  /**
53
63
  * Validates avatar configuration at runtime.
@@ -122,8 +132,25 @@ export function validateAvatarConfig(config, options = {}) {
122
132
  if (!config.params.app_key) {
123
133
  throw new Error("SenseTime avatar requires app_key");
124
134
  }
125
- if (!Array.isArray(config.params.sceneList) || config.params.sceneList.length === 0) {
126
- throw new Error("SenseTime avatar requires a non-empty sceneList");
135
+ if (config.params.sceneList !== undefined && !Array.isArray(config.params.sceneList)) {
136
+ throw new Error("SenseTime avatar sceneList must be an array when provided");
137
+ }
138
+ }
139
+ else if (isSpatiusAvatar(config)) {
140
+ if (!config.params.agora_uid) {
141
+ throw new Error("Spatius avatar requires agora_uid");
142
+ }
143
+ if (!config.params.spatius_api_key) {
144
+ throw new Error("Spatius avatar requires spatius_api_key");
145
+ }
146
+ if (!config.params.spatius_app_id) {
147
+ throw new Error("Spatius avatar requires spatius_app_id");
148
+ }
149
+ if (!config.params.spatius_avatar_id) {
150
+ throw new Error("Spatius avatar requires spatius_avatar_id");
151
+ }
152
+ if (options.requireSessionFields && !config.params.agora_token) {
153
+ throw new Error("Spatius avatar requires agora_token after session enrichment");
127
154
  }
128
155
  }
129
156
  }
@@ -23,26 +23,26 @@ export type { AgentOptions } from "./Agent.mjs";
23
23
  export { Agent } from "./Agent.mjs";
24
24
  export type { AgentSessionEvent, AgentSessionEventHandler, AgentSessionOptions, } from "./AgentSession.mjs";
25
25
  export { AgentSession } from "./AgentSession.mjs";
26
- export type { AkoolAvatarConfig, AnamAvatarConfig, GenericAvatarConfig, HeyGenAvatarConfig, LiveAvatarAvatarConfig, SensetimeAvatarConfig, StrictAvatarConfig, } from "./avatar-types.mjs";
27
- export { isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, toBaseAvatarConfig, validateAvatarConfig, validateTtsSampleRate, } from "./avatar-types.mjs";
26
+ export type { AkoolAvatarConfig, AnamAvatarConfig, GenericAvatarConfig, HeyGenAvatarConfig, LiveAvatarAvatarConfig, SensetimeAvatarConfig, SpatiusAvatarConfig, StrictAvatarConfig, } from "./avatar-types.mjs";
27
+ export { isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, isSpatiusAvatar, toBaseAvatarConfig, validateAvatarConfig, validateTtsSampleRate, } from "./avatar-types.mjs";
28
28
  export { AudioScenario, DataChannel, FillerWordsSelectionRule, Geofence, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, SalModeValues, SilenceActionValues, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, } from "./constants.mjs";
29
29
  export type { AgentPreset, AsrPreset, DeepgramPresetModel, LlmPreset, MiniMaxPresetModel, OpenAIPresetModel, OpenAITtsPresetModel, PresetCategory, PresetInput, TtsPreset, } from "./presets.mjs";
30
30
  export { AgentPresets, normalizePresetInput } from "./presets.mjs";
31
31
  export type { AvatarVendor, CNAvatarVendor, CNLlmVendor, CNSttVendor, CNTtsVendor, GlobalAvatarVendor, GlobalLlmVendor, GlobalSttVendor, GlobalTtsVendor, LlmVendor, SttVendor, TtsVendor, } from "./region-vendors.mjs";
32
32
  export type { GenerateConvoAITokenOptions, GenerateTokenOptions, } from "./token.mjs";
33
33
  export { ExpiresIn, generateConvoAIToken, generateRtcToken, MAX_EXPIRY_SECONDS, } from "./token.mjs";
34
- export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AmazonTts, AmazonTtsParams, AsrConfig, AsrVendorName, AvatarConfig, AvatarWireVendor, CartesiaTts, CartesiaTtsParams, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, Eagerness, ElevenLabsTts, ElevenLabsTtsParams, EndOfSpeechConfig, EndOfSpeechMode, EndOfSpeechSemanticConfig, EndOfSpeechVadConfig, FarewellConfig, FillerWordsConfig, FillerWordsContent, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTts, FishAudioTtsParams, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GoogleTts, GoogleTtsParams, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmStyle, McpServersItem, MicrosoftTts, MicrosoftTtsParams, MinimaxTts, MinimaxTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTts, MurfTtsParams, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SarvamTts, SarvamTtsParams, SayOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SpeakPriority, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, SttConfig, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TurnDetectionConfig, TurnDetectionLanguage, TurnDetectionNestedConfig, TurnDetectionType, } from "./types.mjs";
34
+ export type { AdvancedFeatures, AgentConfig, AgentConfigUpdate, AmazonTts, AmazonTtsParams, AsrConfig, AsrVendorName, AvatarConfig, AvatarWireVendor, CartesiaTts, CartesiaTtsParams, ConversationHistory, ConversationRole, ConversationSessionTurn, ConversationTurn, ConversationTurns, Eagerness, ElevenLabsTts, ElevenLabsTtsParams, EndOfSpeechConfig, EndOfSpeechMode, EndOfSpeechSemanticConfig, EndOfSpeechVadConfig, FarewellConfig, FillerWordsConfig, FillerWordsContent, FillerWordsContentSelectionRule, FillerWordsContentStaticConfig, FillerWordsTrigger, FillerWordsTriggerFixedTimeConfig, FishAudioTts, FishAudioTtsParams, GenericTts, GenericTtsParams, GeofenceArea, GeofenceConfig, GeofenceExcludeArea, GetTurnsOptions, GoogleTts, GoogleTtsParams, HumeAiTts, HumeAiTtsParams, InterruptionConfig, InterruptionMode, InterruptMode, Labels, LlmConfig, LlmGreetingConfigs, LlmGreetingConfigsMode, LlmStyle, McpServersItem, MicrosoftTts, MicrosoftTtsParams, MinimaxTts, MinimaxTtsParams, MllmConfig, MllmTurnDetectionConfig, MllmTurnDetectionMode, MllmVendor, MurfTts, MurfTtsParams, OpenAiTts, OpenAiTtsParams, ParametersAudioScenario, ParametersDataChannel, RimeTts, RimeTtsParams, RtcConfig, SalConfig, SalMode, SarvamTts, SarvamTtsParams, SayOptions, SessionInfo, SessionListResponse, SessionOptions, SessionParams, SessionParamsInput, SessionStatus, SessionSummary, SilenceAction, SilenceConfig, SpatiusAvatarParams, SpeakPriority, StartOfSpeechConfig, StartOfSpeechDisabledConfig, StartOfSpeechDisabledConfigStrategy, StartOfSpeechKeywordsConfig, StartOfSpeechMode, StartOfSpeechVadConfig, SttConfig, ThinkOnListeningAction, ThinkOnSpeakingAction, ThinkOnThinkingAction, ThinkOptions, ThinkResponse, TtsConfig, TurnDetectionConfig, TurnDetectionLanguage, TurnDetectionNestedConfig, TurnDetectionType, XAiAsr, XAiAsrParams, XAiTts, XAiTtsParams, } from "./types.mjs";
35
35
  export type { AkoolAvatarOptions, AnamAvatarOptions, GenericAvatarOptions, HeyGenAvatarOptions, LiveAvatarAvatarOptions, } from "./vendors/avatar.mjs";
36
36
  export { AkoolAvatar, AnamAvatar, GenericAvatar, HeyGenAvatar, LiveAvatarAvatar, } from "./vendors/avatar.mjs";
37
37
  export type { AkoolSampleRate, CartesiaSampleRate, ElevenLabsSampleRate, HeyGenSampleRate, LiveAvatarSampleRate, MicrosoftSampleRate, SampleRate, } from "./vendors/base.mjs";
38
38
  export { BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNSTT, BaseCNTTS, BaseLLM, type BaseLlmOptions, BaseMLLM, BaseSTT, BaseTTS, type GoogleTTSSampleRate, } from "./vendors/base.mjs";
39
- export type { AliyunLLMOptions, BytedanceDuplexTTSOptions, BytedanceLLMOptions, BytedanceTTSOptions, CosyVoiceTTSOptions, DeepSeekLLMOptions, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MiniMaxCNTTSOptions, SensetimeAvatarOptions, StepFunTTSOptions, TencentLLMOptions, TencentSTTOptions, TencentTTSOptions, XfyunBigModelSTTOptions, XfyunDialectSTTOptions, XfyunSTTOptions, } from "./vendors/cn.mjs";
40
- export { AliyunLLM, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CosyVoiceTTS, DeepSeekLLM, FengmingSTT, MicrosoftCNSTT, MicrosoftCNTTS, MiniMaxCNTTS, SensetimeAvatar, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./vendors/cn.mjs";
39
+ export type { AliyunLLMOptions, BytedanceDuplexTTSOptions, BytedanceLLMOptions, BytedanceTTSOptions, CosyVoiceTTSOptions, DeepSeekLLMOptions, MicrosoftCNSampleRate, MicrosoftCNSTTOptions, MicrosoftCNTTSOptions, MiniMaxCNTTSOptions, SensetimeAvatarOptions, SpatiusAvatarOptions, StepFunTTSOptions, TencentLLMOptions, TencentSTTOptions, TencentTTSOptions, XfyunBigModelSTTOptions, XfyunDialectSTTOptions, XfyunSTTOptions, } from "./vendors/cn.mjs";
40
+ export { AliyunLLM, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CosyVoiceTTS, DeepSeekLLM, FengmingSTT, MicrosoftCNSTT, MicrosoftCNTTS, MiniMaxCNTTS, SensetimeAvatar, SpatiusAvatar, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./vendors/cn.mjs";
41
41
  export type { AmazonBedrockOptions, AnthropicOptions, AzureOpenAIOptions, CustomLLMOptions, DifyOptions, GeminiOptions, GroqOptions, OpenAIOptions, VertexAILLMOptions, } from "./vendors/llm.mjs";
42
42
  export { AmazonBedrock, Anthropic, AzureOpenAI, CustomLLM, Dify, Gemini, Groq, OpenAI, VertexAILLM, } from "./vendors/llm.mjs";
43
43
  export type { GeminiLiveOptions, OpenAIRealtimeOptions, VertexAIOptions, XaiGrokOptions, } from "./vendors/mllm.mjs";
44
44
  export { GeminiLive, OpenAIRealtime, VertexAI, XaiGrok, } from "./vendors/mllm.mjs";
45
- export type { AmazonSTTOptions, AresSTTOptions, AssemblyAISTTOptions, DeepgramSTTOptions, GoogleSTTOptions, MicrosoftSTTOptions, OpenAISTTOptions, SarvamSTTOptions, SpeechmaticsSTTOptions, } from "./vendors/stt.mjs";
46
- export { AmazonSTT, AresSTT, AssemblyAISTT, DeepgramSTT, GoogleSTT, MicrosoftSTT, OpenAISTT, SarvamSTT, SpeechmaticsSTT, } from "./vendors/stt.mjs";
47
- export type { AmazonTTSOptions, CartesiaTTSOptions, DeepgramTTSOptions, ElevenLabsTTSOptions, FishAudioTTSOptions, GoogleTTSOptions, HumeAITTSOptions, MicrosoftTTSOptions, MiniMaxTTSOptions, MurfTTSOptions, OpenAITTSOptions, RimeTTSOptions, SarvamTTSOptions, } from "./vendors/tts.mjs";
48
- export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GoogleTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, } from "./vendors/tts.mjs";
45
+ export type { AmazonSTTOptions, AresSTTOptions, AssemblyAISTTOptions, DeepgramSTTOptions, GoogleSTTOptions, MicrosoftSTTOptions, OpenAISTTOptions, SarvamSTTOptions, SpeechmaticsSTTOptions, XAiSTTOptions, } from "./vendors/stt.mjs";
46
+ export { AmazonSTT, AresSTT, AssemblyAISTT, DeepgramSTT, GoogleSTT, MicrosoftSTT, OpenAISTT, SarvamSTT, SpeechmaticsSTT, XAiSTT, } from "./vendors/stt.mjs";
47
+ export type { AmazonTTSOptions, CartesiaTTSOptions, DeepgramTTSOptions, ElevenLabsTTSOptions, FishAudioTTSOptions, GenericTTSOptions, GoogleTTSOptions, HumeAITTSOptions, MicrosoftTTSOptions, MiniMaxTTSOptions, MurfTTSOptions, OpenAITTSOptions, RimeTTSOptions, SarvamTTSOptions, XAiTTSOptions, } from "./vendors/tts.mjs";
48
+ export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GenericTTS, GoogleTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, XAiTTS, } from "./vendors/tts.mjs";
@@ -21,7 +21,7 @@
21
21
  // Core classes
22
22
  export { Agent } from "./Agent.mjs";
23
23
  export { AgentSession } from "./AgentSession.mjs";
24
- export { isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, toBaseAvatarConfig, validateAvatarConfig, validateTtsSampleRate, } from "./avatar-types.mjs";
24
+ export { isAkoolAvatar, isAnamAvatar, isAvatarTokenManaged, isGenericAvatar, isHeyGenAvatar, isLiveAvatarAvatar, isSensetimeAvatar, isSpatiusAvatar, toBaseAvatarConfig, validateAvatarConfig, validateTtsSampleRate, } from "./avatar-types.mjs";
25
25
  // Type-safe constants
26
26
  export { AudioScenario, DataChannel, FillerWordsSelectionRule, Geofence, InterruptionDisabledStrategy, InterruptionDisabledStrategyAppend, InterruptionDisabledStrategyIgnore, InterruptionModeKeywords, InterruptionModeStartOfSpeech, InterruptionModeValues, MllmTurnDetectionModeAgoraVad, MllmTurnDetectionModeSemanticVad, MllmTurnDetectionModeServerVad, MllmTurnDetectionModeValues, SalModeValues, SilenceActionValues, SpeakPriorityAppend, SpeakPriorityIgnore, SpeakPriorityInterrupt, SpeakPriorityValues, ThinkOnListeningActionIgnore, ThinkOnListeningActionInject, ThinkOnListeningActionInterrupt, ThinkOnSpeakingActionIgnore, ThinkOnSpeakingActionInterrupt, ThinkOnThinkingActionIgnore, ThinkOnThinkingActionInterrupt, TurnDetectionTypeValues, } from "./constants.mjs";
27
27
  export { AgentPresets, normalizePresetInput } from "./presets.mjs";
@@ -31,12 +31,12 @@ export { ExpiresIn, generateConvoAIToken, generateRtcToken, MAX_EXPIRY_SECONDS,
31
31
  export { AkoolAvatar, AnamAvatar, GenericAvatar, HeyGenAvatar, LiveAvatarAvatar, } from "./vendors/avatar.mjs";
32
32
  // Base vendor classes
33
33
  export { BaseAvatar, BaseCNAvatar, BaseCNLLM, BaseCNSTT, BaseCNTTS, BaseLLM, BaseMLLM, BaseSTT, BaseTTS, } from "./vendors/base.mjs";
34
- export { AliyunLLM, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CosyVoiceTTS, DeepSeekLLM, FengmingSTT, MicrosoftCNSTT, MicrosoftCNTTS, MiniMaxCNTTS, SensetimeAvatar, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./vendors/cn.mjs";
34
+ export { AliyunLLM, BytedanceDuplexTTS, BytedanceLLM, BytedanceTTS, CosyVoiceTTS, DeepSeekLLM, FengmingSTT, MicrosoftCNSTT, MicrosoftCNTTS, MiniMaxCNTTS, SensetimeAvatar, SpatiusAvatar, StepFunTTS, TencentLLM, TencentSTT, TencentTTS, XfyunBigModelSTT, XfyunDialectSTT, XfyunSTT, } from "./vendors/cn.mjs";
35
35
  // LLM vendor classes
36
36
  export { AmazonBedrock, Anthropic, AzureOpenAI, CustomLLM, Dify, Gemini, Groq, OpenAI, VertexAILLM, } from "./vendors/llm.mjs";
37
37
  // MLLM vendor classes
38
38
  export { GeminiLive, OpenAIRealtime, VertexAI, XaiGrok, } from "./vendors/mllm.mjs";
39
39
  // STT vendor classes
40
- export { AmazonSTT, AresSTT, AssemblyAISTT, DeepgramSTT, GoogleSTT, MicrosoftSTT, OpenAISTT, SarvamSTT, SpeechmaticsSTT, } from "./vendors/stt.mjs";
40
+ export { AmazonSTT, AresSTT, AssemblyAISTT, DeepgramSTT, GoogleSTT, MicrosoftSTT, OpenAISTT, SarvamSTT, SpeechmaticsSTT, XAiSTT, } from "./vendors/stt.mjs";
41
41
  // TTS vendor classes
42
- export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GoogleTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, } from "./vendors/tts.mjs";
42
+ export { AmazonTTS, CartesiaTTS, DeepgramTTS, ElevenLabsTTS, FishAudioTTS, GenericTTS, GoogleTTS, HumeAITTS, MicrosoftTTS, MiniMaxTTS, MurfTTS, OpenAITTS, RimeTTS, SarvamTTS, XAiTTS, } from "./vendors/tts.mjs";