agora-agents 2.2.0 → 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.
- package/README.md +48 -26
- package/dist/cjs/AgoraPoolClient.d.ts +9 -6
- package/dist/cjs/AgoraPoolClient.js +1 -0
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.js +8 -16
- package/dist/cjs/agentkit/Agent.d.ts +52 -51
- package/dist/cjs/agentkit/Agent.js +46 -44
- package/dist/cjs/agentkit/AgentSession.d.ts +11 -10
- package/dist/cjs/agentkit/AgentSession.js +12 -6
- package/dist/cjs/agentkit/__tests__/area-aware-vendors.test.d.ts +1 -0
- package/dist/cjs/agentkit/__tests__/area-aware-vendors.test.js +57 -0
- package/dist/cjs/agentkit/__tests__/readme-examples.test.d.ts +1 -0
- package/dist/cjs/agentkit/__tests__/readme-examples.test.js +126 -0
- package/dist/cjs/agentkit/__tests__/type-safety.test.js +24 -17
- package/dist/cjs/agentkit/area.d.ts +4 -0
- package/dist/cjs/agentkit/area.js +2 -0
- package/dist/cjs/agentkit/avatar-types.d.ts +43 -4
- package/dist/cjs/agentkit/avatar-types.js +52 -2
- package/dist/cjs/agentkit/index.d.ts +12 -9
- package/dist/cjs/agentkit/index.js +32 -2
- package/dist/cjs/agentkit/region-vendors.d.ts +15 -0
- package/dist/cjs/agentkit/region-vendors.js +2 -0
- package/dist/cjs/agentkit/token.d.ts +3 -2
- package/dist/cjs/agentkit/token.js +3 -2
- package/dist/cjs/agentkit/types.d.ts +47 -9
- package/dist/cjs/agentkit/vendors/avatar.d.ts +9 -6
- package/dist/cjs/agentkit/vendors/avatar.js +9 -6
- package/dist/cjs/agentkit/vendors/base.d.ts +42 -5
- package/dist/cjs/agentkit/vendors/base.js +64 -6
- package/dist/cjs/agentkit/vendors/cn.d.ts +269 -0
- package/dist/cjs/agentkit/vendors/cn.js +313 -0
- package/dist/cjs/agentkit/vendors/llm.d.ts +1 -1
- package/dist/cjs/agentkit/vendors/llm.js +13 -3
- package/dist/cjs/agentkit/vendors/mllm.d.ts +8 -4
- package/dist/cjs/agentkit/vendors/mllm.js +10 -6
- package/dist/cjs/agentkit/vendors/stt.d.ts +31 -0
- package/dist/cjs/agentkit/vendors/stt.js +31 -1
- package/dist/cjs/agentkit/vendors/tts.d.ts +63 -3
- package/dist/cjs/agentkit/vendors/tts.js +42 -1
- package/dist/cjs/api/resources/agents/client/requests/ListAgentsRequest.d.ts +2 -3
- package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.d.ts +23 -3
- package/dist/cjs/api/resources/agents/client/requests/StartAgentsRequest.js +12 -0
- package/dist/cjs/api/resources/agents/types/GetHistoryAgentsResponse.d.ts +6 -0
- package/dist/cjs/api/resources/agents/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/agents/types/index.js +0 -1
- package/dist/cjs/api/types/Asr.d.ts +19 -1
- package/dist/cjs/api/types/BytedanceDuplexTts.d.ts +9 -0
- package/dist/cjs/api/types/BytedanceDuplexTts.js +3 -0
- package/dist/cjs/api/types/BytedanceDuplexTtsParams.d.ts +13 -0
- package/dist/cjs/api/types/BytedanceDuplexTtsParams.js +3 -0
- package/dist/cjs/api/types/BytedanceTts.d.ts +9 -0
- package/dist/cjs/api/types/BytedanceTts.js +3 -0
- package/dist/cjs/api/types/BytedanceTtsParams.d.ts +23 -0
- package/dist/cjs/api/types/BytedanceTtsParams.js +3 -0
- package/dist/cjs/api/types/CosyvoiceTts.d.ts +9 -0
- package/dist/cjs/api/types/CosyvoiceTts.js +3 -0
- package/dist/cjs/api/types/CosyvoiceTtsParams.d.ts +15 -0
- package/dist/cjs/api/types/CosyvoiceTtsParams.js +3 -0
- package/dist/cjs/api/types/FengmingAsr.d.ts +11 -0
- package/dist/cjs/api/types/FengmingAsr.js +3 -0
- package/dist/cjs/api/types/GenericTts.d.ts +13 -0
- package/dist/cjs/api/types/GenericTts.js +3 -0
- package/dist/cjs/api/types/GenericTtsParams.d.ts +21 -0
- package/dist/cjs/api/types/GenericTtsParams.js +3 -0
- package/dist/cjs/api/types/Llm.d.ts +24 -1
- package/dist/cjs/api/types/Llm.js +8 -0
- package/dist/cjs/api/types/MinimaxTtsParams.d.ts +52 -3
- package/dist/cjs/api/types/OpenAiTtsParams.d.ts +1 -1
- package/dist/cjs/api/types/SensetimeAvatarParams.d.ts +48 -0
- package/dist/cjs/api/types/SensetimeAvatarParams.js +3 -0
- package/dist/cjs/api/types/SpatiusAvatarParams.d.ts +23 -0
- package/dist/cjs/api/types/SpatiusAvatarParams.js +3 -0
- package/dist/cjs/api/types/StepfunTts.d.ts +9 -0
- package/dist/cjs/api/types/StepfunTts.js +3 -0
- package/dist/cjs/api/types/StepfunTtsParams.d.ts +13 -0
- package/dist/cjs/api/types/StepfunTtsParams.js +3 -0
- package/dist/cjs/api/types/TencentAsr.d.ts +10 -0
- package/dist/cjs/api/types/TencentAsr.js +3 -0
- package/dist/cjs/api/types/TencentAsrParams.d.ts +17 -0
- package/dist/cjs/api/types/TencentAsrParams.js +3 -0
- package/dist/cjs/api/types/TencentTts.d.ts +9 -0
- package/dist/cjs/api/types/TencentTts.js +3 -0
- package/dist/cjs/api/types/TencentTtsParams.d.ts +23 -0
- package/dist/cjs/api/types/TencentTtsParams.js +3 -0
- package/dist/cjs/api/types/Tts.d.ts +22 -1
- package/dist/cjs/api/types/XAiAsr.d.ts +10 -0
- package/dist/cjs/api/types/XAiAsr.js +3 -0
- package/dist/cjs/api/types/XAiAsrParams.d.ts +15 -0
- package/dist/cjs/api/types/XAiAsrParams.js +3 -0
- package/dist/cjs/api/types/XAiTts.d.ts +9 -0
- package/dist/cjs/api/types/XAiTts.js +3 -0
- package/dist/cjs/api/types/XAiTtsParams.d.ts +15 -0
- package/dist/cjs/api/types/XAiTtsParams.js +3 -0
- package/dist/cjs/api/types/XfyunAsr.d.ts +10 -0
- package/dist/cjs/api/types/XfyunAsr.js +3 -0
- package/dist/cjs/api/types/XfyunAsrParams.d.ts +15 -0
- package/dist/cjs/api/types/XfyunAsrParams.js +3 -0
- package/dist/cjs/api/types/XfyunBigmodelAsr.d.ts +10 -0
- package/dist/cjs/api/types/XfyunBigmodelAsr.js +3 -0
- package/dist/cjs/api/types/XfyunBigmodelAsrParams.d.ts +17 -0
- package/dist/cjs/api/types/XfyunBigmodelAsrParams.js +3 -0
- package/dist/cjs/api/types/XfyunDialectAsr.d.ts +10 -0
- package/dist/cjs/api/types/XfyunDialectAsr.js +3 -0
- package/dist/cjs/api/types/XfyunDialectAsrParams.d.ts +15 -0
- package/dist/cjs/api/types/XfyunDialectAsrParams.js +3 -0
- package/dist/cjs/api/types/index.d.ts +27 -0
- package/dist/cjs/api/types/index.js +27 -0
- package/dist/cjs/core/base64.js +1 -5
- package/dist/cjs/core/domain/index.d.ts +2 -1
- package/dist/cjs/core/domain/index.js +5 -3
- package/dist/cjs/index.d.ts +3 -2
- package/dist/cjs/index.js +31 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/AgoraPoolClient.d.mts +9 -6
- package/dist/esm/AgoraPoolClient.mjs +1 -0
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.mjs +8 -16
- package/dist/esm/agentkit/Agent.d.mts +52 -51
- package/dist/esm/agentkit/Agent.mjs +46 -44
- package/dist/esm/agentkit/AgentSession.d.mts +11 -10
- package/dist/esm/agentkit/AgentSession.mjs +13 -7
- package/dist/esm/agentkit/__tests__/area-aware-vendors.test.d.mts +1 -0
- package/dist/esm/agentkit/__tests__/area-aware-vendors.test.mjs +55 -0
- package/dist/esm/agentkit/__tests__/readme-examples.test.d.mts +1 -0
- package/dist/esm/agentkit/__tests__/readme-examples.test.mjs +124 -0
- package/dist/esm/agentkit/__tests__/type-safety.test.mjs +24 -17
- package/dist/esm/agentkit/area.d.mts +4 -0
- package/dist/esm/agentkit/area.mjs +1 -0
- package/dist/esm/agentkit/avatar-types.d.mts +43 -4
- package/dist/esm/agentkit/avatar-types.mjs +50 -2
- package/dist/esm/agentkit/index.d.mts +12 -9
- package/dist/esm/agentkit/index.mjs +5 -4
- package/dist/esm/agentkit/region-vendors.d.mts +15 -0
- package/dist/esm/agentkit/region-vendors.mjs +1 -0
- package/dist/esm/agentkit/token.d.mts +3 -2
- package/dist/esm/agentkit/token.mjs +3 -2
- package/dist/esm/agentkit/types.d.mts +47 -9
- package/dist/esm/agentkit/vendors/avatar.d.mts +9 -6
- package/dist/esm/agentkit/vendors/avatar.mjs +9 -6
- package/dist/esm/agentkit/vendors/base.d.mts +42 -5
- package/dist/esm/agentkit/vendors/base.mjs +59 -5
- package/dist/esm/agentkit/vendors/cn.d.mts +269 -0
- package/dist/esm/agentkit/vendors/cn.mjs +291 -0
- package/dist/esm/agentkit/vendors/llm.d.mts +1 -1
- package/dist/esm/agentkit/vendors/llm.mjs +13 -3
- package/dist/esm/agentkit/vendors/mllm.d.mts +8 -4
- package/dist/esm/agentkit/vendors/mllm.mjs +10 -6
- package/dist/esm/agentkit/vendors/stt.d.mts +31 -0
- package/dist/esm/agentkit/vendors/stt.mjs +29 -0
- package/dist/esm/agentkit/vendors/tts.d.mts +63 -3
- package/dist/esm/agentkit/vendors/tts.mjs +39 -0
- package/dist/esm/api/resources/agents/client/requests/ListAgentsRequest.d.mts +2 -3
- package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.d.mts +23 -3
- package/dist/esm/api/resources/agents/client/requests/StartAgentsRequest.mjs +12 -0
- package/dist/esm/api/resources/agents/types/GetHistoryAgentsResponse.d.mts +6 -0
- package/dist/esm/api/resources/agents/types/index.d.mts +0 -1
- package/dist/esm/api/resources/agents/types/index.mjs +0 -1
- package/dist/esm/api/types/Asr.d.mts +19 -1
- package/dist/esm/api/types/BytedanceDuplexTts.d.mts +9 -0
- package/dist/esm/api/types/BytedanceDuplexTts.mjs +2 -0
- package/dist/esm/api/types/BytedanceDuplexTtsParams.d.mts +13 -0
- package/dist/esm/api/types/BytedanceDuplexTtsParams.mjs +2 -0
- package/dist/esm/api/types/BytedanceTts.d.mts +9 -0
- package/dist/esm/api/types/BytedanceTts.mjs +2 -0
- package/dist/esm/api/types/BytedanceTtsParams.d.mts +23 -0
- package/dist/esm/api/types/BytedanceTtsParams.mjs +2 -0
- package/dist/esm/api/types/CosyvoiceTts.d.mts +9 -0
- package/dist/esm/api/types/CosyvoiceTts.mjs +2 -0
- package/dist/esm/api/types/CosyvoiceTtsParams.d.mts +15 -0
- package/dist/esm/api/types/CosyvoiceTtsParams.mjs +2 -0
- package/dist/esm/api/types/FengmingAsr.d.mts +11 -0
- package/dist/esm/api/types/FengmingAsr.mjs +2 -0
- package/dist/esm/api/types/GenericTts.d.mts +13 -0
- package/dist/esm/api/types/GenericTts.mjs +2 -0
- package/dist/esm/api/types/GenericTtsParams.d.mts +21 -0
- package/dist/esm/api/types/GenericTtsParams.mjs +2 -0
- package/dist/esm/api/types/Llm.d.mts +24 -1
- package/dist/esm/api/types/Llm.mjs +8 -0
- package/dist/esm/api/types/MinimaxTtsParams.d.mts +52 -3
- package/dist/esm/api/types/OpenAiTtsParams.d.mts +1 -1
- package/dist/esm/api/types/SensetimeAvatarParams.d.mts +48 -0
- package/dist/esm/api/types/SensetimeAvatarParams.mjs +2 -0
- package/dist/esm/api/types/SpatiusAvatarParams.d.mts +23 -0
- package/dist/esm/api/types/SpatiusAvatarParams.mjs +2 -0
- package/dist/esm/api/types/StepfunTts.d.mts +9 -0
- package/dist/esm/api/types/StepfunTts.mjs +2 -0
- package/dist/esm/api/types/StepfunTtsParams.d.mts +13 -0
- package/dist/esm/api/types/StepfunTtsParams.mjs +2 -0
- package/dist/esm/api/types/TencentAsr.d.mts +10 -0
- package/dist/esm/api/types/TencentAsr.mjs +2 -0
- package/dist/esm/api/types/TencentAsrParams.d.mts +17 -0
- package/dist/esm/api/types/TencentAsrParams.mjs +2 -0
- package/dist/esm/api/types/TencentTts.d.mts +9 -0
- package/dist/esm/api/types/TencentTts.mjs +2 -0
- package/dist/esm/api/types/TencentTtsParams.d.mts +23 -0
- package/dist/esm/api/types/TencentTtsParams.mjs +2 -0
- package/dist/esm/api/types/Tts.d.mts +22 -1
- package/dist/esm/api/types/XAiAsr.d.mts +10 -0
- package/dist/esm/api/types/XAiAsr.mjs +2 -0
- package/dist/esm/api/types/XAiAsrParams.d.mts +15 -0
- package/dist/esm/api/types/XAiAsrParams.mjs +2 -0
- package/dist/esm/api/types/XAiTts.d.mts +9 -0
- package/dist/esm/api/types/XAiTts.mjs +2 -0
- package/dist/esm/api/types/XAiTtsParams.d.mts +15 -0
- package/dist/esm/api/types/XAiTtsParams.mjs +2 -0
- package/dist/esm/api/types/XfyunAsr.d.mts +10 -0
- package/dist/esm/api/types/XfyunAsr.mjs +2 -0
- package/dist/esm/api/types/XfyunAsrParams.d.mts +15 -0
- package/dist/esm/api/types/XfyunAsrParams.mjs +2 -0
- package/dist/esm/api/types/XfyunBigmodelAsr.d.mts +10 -0
- package/dist/esm/api/types/XfyunBigmodelAsr.mjs +2 -0
- package/dist/esm/api/types/XfyunBigmodelAsrParams.d.mts +17 -0
- package/dist/esm/api/types/XfyunBigmodelAsrParams.mjs +2 -0
- package/dist/esm/api/types/XfyunDialectAsr.d.mts +10 -0
- package/dist/esm/api/types/XfyunDialectAsr.mjs +2 -0
- package/dist/esm/api/types/XfyunDialectAsrParams.d.mts +15 -0
- package/dist/esm/api/types/XfyunDialectAsrParams.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +27 -0
- package/dist/esm/api/types/index.mjs +27 -0
- package/dist/esm/core/base64.mjs +1 -5
- package/dist/esm/core/domain/index.d.mts +2 -1
- package/dist/esm/core/domain/index.mjs +4 -2
- package/dist/esm/index.d.mts +3 -2
- package/dist/esm/index.mjs +6 -6
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/api/resources/agents/types/ListAgentsRequestState.d.ts +0 -10
- package/dist/cjs/api/resources/agents/types/ListAgentsRequestState.js +0 -13
- package/dist/esm/api/resources/agents/types/ListAgentsRequestState.d.mts +0 -10
- package/dist/esm/api/resources/agents/types/ListAgentsRequestState.mjs +0 -10
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Agora from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* iFlytek dialect ASR configuration.
|
|
4
|
+
*/
|
|
5
|
+
export interface XfyunDialectAsr {
|
|
6
|
+
language?: Agora.AsrLanguage;
|
|
7
|
+
params: Agora.XfyunDialectAsrParams;
|
|
8
|
+
/** Accepts any additional properties */
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* iFlytek dialect ASR configuration parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface XfyunDialectAsrParams {
|
|
5
|
+
/** iFlytek dialect application ID. */
|
|
6
|
+
app_id: string;
|
|
7
|
+
/** iFlytek access key ID. */
|
|
8
|
+
access_key_id: string;
|
|
9
|
+
/** iFlytek access key secret. */
|
|
10
|
+
access_key_secret: string;
|
|
11
|
+
/** Dialect recognition language code. */
|
|
12
|
+
language: string;
|
|
13
|
+
/** Accepts any additional properties */
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
@@ -9,18 +9,27 @@ export * from "./Asr.js";
|
|
|
9
9
|
export * from "./AsrLanguage.js";
|
|
10
10
|
export * from "./AssemblyAiAsr.js";
|
|
11
11
|
export * from "./AssemblyAiAsrParams.js";
|
|
12
|
+
export * from "./BytedanceDuplexTts.js";
|
|
13
|
+
export * from "./BytedanceDuplexTtsParams.js";
|
|
14
|
+
export * from "./BytedanceTts.js";
|
|
15
|
+
export * from "./BytedanceTtsParams.js";
|
|
12
16
|
export * from "./CartesiaTts.js";
|
|
13
17
|
export * from "./CartesiaTtsOutputFormat.js";
|
|
14
18
|
export * from "./CartesiaTtsParams.js";
|
|
15
19
|
export * from "./CartesiaTtsVoice.js";
|
|
20
|
+
export * from "./CosyvoiceTts.js";
|
|
21
|
+
export * from "./CosyvoiceTtsParams.js";
|
|
16
22
|
export * from "./DeepgramAsr.js";
|
|
17
23
|
export * from "./DeepgramAsrParams.js";
|
|
18
24
|
export * from "./DeepgramTts.js";
|
|
19
25
|
export * from "./DeepgramTtsParams.js";
|
|
20
26
|
export * from "./ElevenLabsTts.js";
|
|
21
27
|
export * from "./ElevenLabsTtsParams.js";
|
|
28
|
+
export * from "./FengmingAsr.js";
|
|
22
29
|
export * from "./FishAudioTts.js";
|
|
23
30
|
export * from "./FishAudioTtsParams.js";
|
|
31
|
+
export * from "./GenericTts.js";
|
|
32
|
+
export * from "./GenericTtsParams.js";
|
|
24
33
|
export * from "./GoogleAsr.js";
|
|
25
34
|
export * from "./GoogleAsrParams.js";
|
|
26
35
|
export * from "./GoogleTts.js";
|
|
@@ -55,7 +64,25 @@ export * from "./SarvamAsr.js";
|
|
|
55
64
|
export * from "./SarvamAsrParams.js";
|
|
56
65
|
export * from "./SarvamTts.js";
|
|
57
66
|
export * from "./SarvamTtsParams.js";
|
|
67
|
+
export * from "./SensetimeAvatarParams.js";
|
|
68
|
+
export * from "./SpatiusAvatarParams.js";
|
|
58
69
|
export * from "./SpeechmaticsAsr.js";
|
|
59
70
|
export * from "./SpeechmaticsAsrParams.js";
|
|
71
|
+
export * from "./StepfunTts.js";
|
|
72
|
+
export * from "./StepfunTtsParams.js";
|
|
60
73
|
export * from "./TelephonyErrorResponse.js";
|
|
74
|
+
export * from "./TencentAsr.js";
|
|
75
|
+
export * from "./TencentAsrParams.js";
|
|
76
|
+
export * from "./TencentTts.js";
|
|
77
|
+
export * from "./TencentTtsParams.js";
|
|
61
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";
|
|
83
|
+
export * from "./XfyunAsr.js";
|
|
84
|
+
export * from "./XfyunAsrParams.js";
|
|
85
|
+
export * from "./XfyunBigmodelAsr.js";
|
|
86
|
+
export * from "./XfyunBigmodelAsrParams.js";
|
|
87
|
+
export * from "./XfyunDialectAsr.js";
|
|
88
|
+
export * from "./XfyunDialectAsrParams.js";
|
|
@@ -25,18 +25,27 @@ __exportStar(require("./Asr.js"), exports);
|
|
|
25
25
|
__exportStar(require("./AsrLanguage.js"), exports);
|
|
26
26
|
__exportStar(require("./AssemblyAiAsr.js"), exports);
|
|
27
27
|
__exportStar(require("./AssemblyAiAsrParams.js"), exports);
|
|
28
|
+
__exportStar(require("./BytedanceDuplexTts.js"), exports);
|
|
29
|
+
__exportStar(require("./BytedanceDuplexTtsParams.js"), exports);
|
|
30
|
+
__exportStar(require("./BytedanceTts.js"), exports);
|
|
31
|
+
__exportStar(require("./BytedanceTtsParams.js"), exports);
|
|
28
32
|
__exportStar(require("./CartesiaTts.js"), exports);
|
|
29
33
|
__exportStar(require("./CartesiaTtsOutputFormat.js"), exports);
|
|
30
34
|
__exportStar(require("./CartesiaTtsParams.js"), exports);
|
|
31
35
|
__exportStar(require("./CartesiaTtsVoice.js"), exports);
|
|
36
|
+
__exportStar(require("./CosyvoiceTts.js"), exports);
|
|
37
|
+
__exportStar(require("./CosyvoiceTtsParams.js"), exports);
|
|
32
38
|
__exportStar(require("./DeepgramAsr.js"), exports);
|
|
33
39
|
__exportStar(require("./DeepgramAsrParams.js"), exports);
|
|
34
40
|
__exportStar(require("./DeepgramTts.js"), exports);
|
|
35
41
|
__exportStar(require("./DeepgramTtsParams.js"), exports);
|
|
36
42
|
__exportStar(require("./ElevenLabsTts.js"), exports);
|
|
37
43
|
__exportStar(require("./ElevenLabsTtsParams.js"), exports);
|
|
44
|
+
__exportStar(require("./FengmingAsr.js"), exports);
|
|
38
45
|
__exportStar(require("./FishAudioTts.js"), exports);
|
|
39
46
|
__exportStar(require("./FishAudioTtsParams.js"), exports);
|
|
47
|
+
__exportStar(require("./GenericTts.js"), exports);
|
|
48
|
+
__exportStar(require("./GenericTtsParams.js"), exports);
|
|
40
49
|
__exportStar(require("./GoogleAsr.js"), exports);
|
|
41
50
|
__exportStar(require("./GoogleAsrParams.js"), exports);
|
|
42
51
|
__exportStar(require("./GoogleTts.js"), exports);
|
|
@@ -71,7 +80,25 @@ __exportStar(require("./SarvamAsr.js"), exports);
|
|
|
71
80
|
__exportStar(require("./SarvamAsrParams.js"), exports);
|
|
72
81
|
__exportStar(require("./SarvamTts.js"), exports);
|
|
73
82
|
__exportStar(require("./SarvamTtsParams.js"), exports);
|
|
83
|
+
__exportStar(require("./SensetimeAvatarParams.js"), exports);
|
|
84
|
+
__exportStar(require("./SpatiusAvatarParams.js"), exports);
|
|
74
85
|
__exportStar(require("./SpeechmaticsAsr.js"), exports);
|
|
75
86
|
__exportStar(require("./SpeechmaticsAsrParams.js"), exports);
|
|
87
|
+
__exportStar(require("./StepfunTts.js"), exports);
|
|
88
|
+
__exportStar(require("./StepfunTtsParams.js"), exports);
|
|
76
89
|
__exportStar(require("./TelephonyErrorResponse.js"), exports);
|
|
90
|
+
__exportStar(require("./TencentAsr.js"), exports);
|
|
91
|
+
__exportStar(require("./TencentAsrParams.js"), exports);
|
|
92
|
+
__exportStar(require("./TencentTts.js"), exports);
|
|
93
|
+
__exportStar(require("./TencentTtsParams.js"), exports);
|
|
77
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);
|
|
99
|
+
__exportStar(require("./XfyunAsr.js"), exports);
|
|
100
|
+
__exportStar(require("./XfyunAsrParams.js"), exports);
|
|
101
|
+
__exportStar(require("./XfyunBigmodelAsr.js"), exports);
|
|
102
|
+
__exportStar(require("./XfyunBigmodelAsrParams.js"), exports);
|
|
103
|
+
__exportStar(require("./XfyunDialectAsr.js"), exports);
|
|
104
|
+
__exportStar(require("./XfyunDialectAsrParams.js"), exports);
|
package/dist/cjs/core/base64.js
CHANGED
|
@@ -4,11 +4,7 @@ exports.base64Encode = base64Encode;
|
|
|
4
4
|
exports.base64Decode = base64Decode;
|
|
5
5
|
function base64ToBytes(base64) {
|
|
6
6
|
const binString = atob(base64);
|
|
7
|
-
|
|
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);
|
|
@@ -23,7 +23,8 @@ export declare const EUWestRegionDomainPrefix = "api-eu-west-1";
|
|
|
23
23
|
export declare const EUCentralRegionDomainPrefix = "api-eu-central-1";
|
|
24
24
|
export declare const CNEastRegionDomainPrefix = "api-cn-east-1";
|
|
25
25
|
export declare const CNNorthRegionDomainPrefix = "api-cn-north-1";
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const GlobalAPIPath = "/api/conversational-ai-agent";
|
|
27
|
+
export declare const CNAPIPath = "/cn/api/conversational-ai-agent";
|
|
27
28
|
/**
|
|
28
29
|
* Domain contains the regional prefixes and domain suffixes for an area
|
|
29
30
|
*/
|
|
@@ -43,7 +43,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.Pool = exports.RegionDomain = exports.
|
|
46
|
+
exports.Pool = exports.RegionDomain = exports.CNAPIPath = exports.GlobalAPIPath = exports.CNNorthRegionDomainPrefix = exports.CNEastRegionDomainPrefix = exports.EUCentralRegionDomainPrefix = exports.EUWestRegionDomainPrefix = exports.APNortheastRegionDomainPrefix = exports.APSoutheastRegionDomainPrefix = exports.USEastRegionDomainPrefix = exports.USWestRegionDomainPrefix = exports.GlobalDomainPrefix = exports.OverseaMajorDomain = exports.ChineseMainlandMajorDomain = exports.Area = void 0;
|
|
47
47
|
exports.createPool = createPool;
|
|
48
48
|
const dns = __importStar(require("dns"));
|
|
49
49
|
const util_1 = require("util");
|
|
@@ -74,7 +74,8 @@ exports.EUWestRegionDomainPrefix = "api-eu-west-1";
|
|
|
74
74
|
exports.EUCentralRegionDomainPrefix = "api-eu-central-1";
|
|
75
75
|
exports.CNEastRegionDomainPrefix = "api-cn-east-1";
|
|
76
76
|
exports.CNNorthRegionDomainPrefix = "api-cn-north-1";
|
|
77
|
-
exports.
|
|
77
|
+
exports.GlobalAPIPath = "/api/conversational-ai-agent";
|
|
78
|
+
exports.CNAPIPath = "/cn/api/conversational-ai-agent";
|
|
78
79
|
/**
|
|
79
80
|
* RegionDomain maps areas to their domain configurations
|
|
80
81
|
*/
|
|
@@ -177,7 +178,8 @@ class Pool {
|
|
|
177
178
|
getCurrentURL() {
|
|
178
179
|
const currentRegion = this.currentRegionPrefixes[0];
|
|
179
180
|
const currentDomain = this.currentDomain;
|
|
180
|
-
|
|
181
|
+
const apiPath = this.domainArea === Area.CN ? exports.CNAPIPath : exports.GlobalAPIPath;
|
|
182
|
+
return `https://${currentRegion}.${currentDomain}${apiPath}`;
|
|
181
183
|
}
|
|
182
184
|
/**
|
|
183
185
|
* Get the current area
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export type { AgoraAuthMode } from "./AgoraPoolClient.js";
|
|
2
2
|
export { AgoraClient } from "./AgoraPoolClient.js";
|
|
3
|
-
export type {
|
|
4
|
-
export {
|
|
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, 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";
|
|
5
6
|
export * as Agora from "./api/index.js";
|
|
6
7
|
export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
7
8
|
export { Area } from "./core/domain/index.js";
|
package/dist/cjs/index.js
CHANGED
|
@@ -36,8 +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.
|
|
40
|
-
exports.
|
|
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;
|
|
41
42
|
var AgoraPoolClient_js_1 = require("./AgoraPoolClient.js");
|
|
42
43
|
Object.defineProperty(exports, "AgoraClient", { enumerable: true, get: function () { return AgoraPoolClient_js_1.AgoraClient; } });
|
|
43
44
|
// Agentkit layer exports - clean, ergonomic API
|
|
@@ -46,6 +47,7 @@ Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { r
|
|
|
46
47
|
Object.defineProperty(exports, "AgentPresets", { enumerable: true, get: function () { return index_js_1.AgentPresets; } });
|
|
47
48
|
Object.defineProperty(exports, "AgentSession", { enumerable: true, get: function () { return index_js_1.AgentSession; } });
|
|
48
49
|
Object.defineProperty(exports, "AkoolAvatar", { enumerable: true, get: function () { return index_js_1.AkoolAvatar; } });
|
|
50
|
+
Object.defineProperty(exports, "AliyunLLM", { enumerable: true, get: function () { return index_js_1.AliyunLLM; } });
|
|
49
51
|
Object.defineProperty(exports, "AmazonBedrock", { enumerable: true, get: function () { return index_js_1.AmazonBedrock; } });
|
|
50
52
|
Object.defineProperty(exports, "AmazonSTT", { enumerable: true, get: function () { return index_js_1.AmazonSTT; } });
|
|
51
53
|
Object.defineProperty(exports, "AmazonTTS", { enumerable: true, get: function () { return index_js_1.AmazonTTS; } });
|
|
@@ -56,25 +58,36 @@ Object.defineProperty(exports, "AssemblyAISTT", { enumerable: true, get: functio
|
|
|
56
58
|
Object.defineProperty(exports, "AudioScenario", { enumerable: true, get: function () { return index_js_1.AudioScenario; } });
|
|
57
59
|
Object.defineProperty(exports, "AzureOpenAI", { enumerable: true, get: function () { return index_js_1.AzureOpenAI; } });
|
|
58
60
|
Object.defineProperty(exports, "BaseAvatar", { enumerable: true, get: function () { return index_js_1.BaseAvatar; } });
|
|
61
|
+
Object.defineProperty(exports, "BaseCNAvatar", { enumerable: true, get: function () { return index_js_1.BaseCNAvatar; } });
|
|
62
|
+
Object.defineProperty(exports, "BaseCNLLM", { enumerable: true, get: function () { return index_js_1.BaseCNLLM; } });
|
|
63
|
+
Object.defineProperty(exports, "BaseCNSTT", { enumerable: true, get: function () { return index_js_1.BaseCNSTT; } });
|
|
64
|
+
Object.defineProperty(exports, "BaseCNTTS", { enumerable: true, get: function () { return index_js_1.BaseCNTTS; } });
|
|
59
65
|
// Base vendor classes
|
|
60
66
|
Object.defineProperty(exports, "BaseLLM", { enumerable: true, get: function () { return index_js_1.BaseLLM; } });
|
|
61
67
|
Object.defineProperty(exports, "BaseMLLM", { enumerable: true, get: function () { return index_js_1.BaseMLLM; } });
|
|
62
68
|
Object.defineProperty(exports, "BaseSTT", { enumerable: true, get: function () { return index_js_1.BaseSTT; } });
|
|
63
69
|
Object.defineProperty(exports, "BaseTTS", { enumerable: true, get: function () { return index_js_1.BaseTTS; } });
|
|
70
|
+
Object.defineProperty(exports, "BytedanceDuplexTTS", { enumerable: true, get: function () { return index_js_1.BytedanceDuplexTTS; } });
|
|
71
|
+
Object.defineProperty(exports, "BytedanceLLM", { enumerable: true, get: function () { return index_js_1.BytedanceLLM; } });
|
|
72
|
+
Object.defineProperty(exports, "BytedanceTTS", { enumerable: true, get: function () { return index_js_1.BytedanceTTS; } });
|
|
64
73
|
Object.defineProperty(exports, "CartesiaTTS", { enumerable: true, get: function () { return index_js_1.CartesiaTTS; } });
|
|
74
|
+
Object.defineProperty(exports, "CosyVoiceTTS", { enumerable: true, get: function () { return index_js_1.CosyVoiceTTS; } });
|
|
65
75
|
Object.defineProperty(exports, "CustomLLM", { enumerable: true, get: function () { return index_js_1.CustomLLM; } });
|
|
66
76
|
Object.defineProperty(exports, "DataChannel", { enumerable: true, get: function () { return index_js_1.DataChannel; } });
|
|
67
77
|
Object.defineProperty(exports, "DeepgramSTT", { enumerable: true, get: function () { return index_js_1.DeepgramSTT; } });
|
|
68
78
|
Object.defineProperty(exports, "DeepgramTTS", { enumerable: true, get: function () { return index_js_1.DeepgramTTS; } });
|
|
79
|
+
Object.defineProperty(exports, "DeepSeekLLM", { enumerable: true, get: function () { return index_js_1.DeepSeekLLM; } });
|
|
69
80
|
Object.defineProperty(exports, "Dify", { enumerable: true, get: function () { return index_js_1.Dify; } });
|
|
70
81
|
// TTS vendors
|
|
71
82
|
Object.defineProperty(exports, "ElevenLabsTTS", { enumerable: true, get: function () { return index_js_1.ElevenLabsTTS; } });
|
|
72
83
|
Object.defineProperty(exports, "ExpiresIn", { enumerable: true, get: function () { return index_js_1.ExpiresIn; } });
|
|
84
|
+
Object.defineProperty(exports, "FengmingSTT", { enumerable: true, get: function () { return index_js_1.FengmingSTT; } });
|
|
73
85
|
Object.defineProperty(exports, "FillerWordsSelectionRule", { enumerable: true, get: function () { return index_js_1.FillerWordsSelectionRule; } });
|
|
74
86
|
Object.defineProperty(exports, "FishAudioTTS", { enumerable: true, get: function () { return index_js_1.FishAudioTTS; } });
|
|
75
87
|
Object.defineProperty(exports, "Gemini", { enumerable: true, get: function () { return index_js_1.Gemini; } });
|
|
76
88
|
Object.defineProperty(exports, "GeminiLive", { enumerable: true, get: function () { return index_js_1.GeminiLive; } });
|
|
77
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; } });
|
|
78
91
|
Object.defineProperty(exports, "Geofence", { enumerable: true, get: function () { return index_js_1.Geofence; } });
|
|
79
92
|
Object.defineProperty(exports, "GoogleSTT", { enumerable: true, get: function () { return index_js_1.GoogleSTT; } });
|
|
80
93
|
Object.defineProperty(exports, "GoogleTTS", { enumerable: true, get: function () { return index_js_1.GoogleTTS; } });
|
|
@@ -96,10 +109,15 @@ Object.defineProperty(exports, "isAvatarTokenManaged", { enumerable: true, get:
|
|
|
96
109
|
Object.defineProperty(exports, "isGenericAvatar", { enumerable: true, get: function () { return index_js_1.isGenericAvatar; } });
|
|
97
110
|
Object.defineProperty(exports, "isHeyGenAvatar", { enumerable: true, get: function () { return index_js_1.isHeyGenAvatar; } });
|
|
98
111
|
Object.defineProperty(exports, "isLiveAvatarAvatar", { enumerable: true, get: function () { return index_js_1.isLiveAvatarAvatar; } });
|
|
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; } });
|
|
99
114
|
Object.defineProperty(exports, "LiveAvatarAvatar", { enumerable: true, get: function () { return index_js_1.LiveAvatarAvatar; } });
|
|
100
115
|
Object.defineProperty(exports, "MAX_EXPIRY_SECONDS", { enumerable: true, get: function () { return index_js_1.MAX_EXPIRY_SECONDS; } });
|
|
116
|
+
Object.defineProperty(exports, "MicrosoftCNSTT", { enumerable: true, get: function () { return index_js_1.MicrosoftCNSTT; } });
|
|
117
|
+
Object.defineProperty(exports, "MicrosoftCNTTS", { enumerable: true, get: function () { return index_js_1.MicrosoftCNTTS; } });
|
|
101
118
|
Object.defineProperty(exports, "MicrosoftSTT", { enumerable: true, get: function () { return index_js_1.MicrosoftSTT; } });
|
|
102
119
|
Object.defineProperty(exports, "MicrosoftTTS", { enumerable: true, get: function () { return index_js_1.MicrosoftTTS; } });
|
|
120
|
+
Object.defineProperty(exports, "MiniMaxCNTTS", { enumerable: true, get: function () { return index_js_1.MiniMaxCNTTS; } });
|
|
103
121
|
Object.defineProperty(exports, "MiniMaxTTS", { enumerable: true, get: function () { return index_js_1.MiniMaxTTS; } });
|
|
104
122
|
Object.defineProperty(exports, "MllmTurnDetectionModeAgoraVad", { enumerable: true, get: function () { return index_js_1.MllmTurnDetectionModeAgoraVad; } });
|
|
105
123
|
Object.defineProperty(exports, "MllmTurnDetectionModeSemanticVad", { enumerable: true, get: function () { return index_js_1.MllmTurnDetectionModeSemanticVad; } });
|
|
@@ -117,13 +135,19 @@ Object.defineProperty(exports, "RimeTTS", { enumerable: true, get: function () {
|
|
|
117
135
|
Object.defineProperty(exports, "SalModeValues", { enumerable: true, get: function () { return index_js_1.SalModeValues; } });
|
|
118
136
|
Object.defineProperty(exports, "SarvamSTT", { enumerable: true, get: function () { return index_js_1.SarvamSTT; } });
|
|
119
137
|
Object.defineProperty(exports, "SarvamTTS", { enumerable: true, get: function () { return index_js_1.SarvamTTS; } });
|
|
138
|
+
Object.defineProperty(exports, "SensetimeAvatar", { enumerable: true, get: function () { return index_js_1.SensetimeAvatar; } });
|
|
120
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; } });
|
|
121
141
|
Object.defineProperty(exports, "SpeakPriorityAppend", { enumerable: true, get: function () { return index_js_1.SpeakPriorityAppend; } });
|
|
122
142
|
Object.defineProperty(exports, "SpeakPriorityIgnore", { enumerable: true, get: function () { return index_js_1.SpeakPriorityIgnore; } });
|
|
123
143
|
Object.defineProperty(exports, "SpeakPriorityInterrupt", { enumerable: true, get: function () { return index_js_1.SpeakPriorityInterrupt; } });
|
|
124
144
|
Object.defineProperty(exports, "SpeakPriorityValues", { enumerable: true, get: function () { return index_js_1.SpeakPriorityValues; } });
|
|
125
145
|
// STT vendors
|
|
126
146
|
Object.defineProperty(exports, "SpeechmaticsSTT", { enumerable: true, get: function () { return index_js_1.SpeechmaticsSTT; } });
|
|
147
|
+
Object.defineProperty(exports, "StepFunTTS", { enumerable: true, get: function () { return index_js_1.StepFunTTS; } });
|
|
148
|
+
Object.defineProperty(exports, "TencentLLM", { enumerable: true, get: function () { return index_js_1.TencentLLM; } });
|
|
149
|
+
Object.defineProperty(exports, "TencentSTT", { enumerable: true, get: function () { return index_js_1.TencentSTT; } });
|
|
150
|
+
Object.defineProperty(exports, "TencentTTS", { enumerable: true, get: function () { return index_js_1.TencentTTS; } });
|
|
127
151
|
Object.defineProperty(exports, "ThinkOnListeningActionIgnore", { enumerable: true, get: function () { return index_js_1.ThinkOnListeningActionIgnore; } });
|
|
128
152
|
Object.defineProperty(exports, "ThinkOnListeningActionInject", { enumerable: true, get: function () { return index_js_1.ThinkOnListeningActionInject; } });
|
|
129
153
|
Object.defineProperty(exports, "ThinkOnListeningActionInterrupt", { enumerable: true, get: function () { return index_js_1.ThinkOnListeningActionInterrupt; } });
|
|
@@ -137,7 +161,12 @@ Object.defineProperty(exports, "VertexAI", { enumerable: true, get: function ()
|
|
|
137
161
|
Object.defineProperty(exports, "VertexAILLM", { enumerable: true, get: function () { return index_js_1.VertexAILLM; } });
|
|
138
162
|
Object.defineProperty(exports, "validateAvatarConfig", { enumerable: true, get: function () { return index_js_1.validateAvatarConfig; } });
|
|
139
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; } });
|
|
140
166
|
Object.defineProperty(exports, "XaiGrok", { enumerable: true, get: function () { return index_js_1.XaiGrok; } });
|
|
167
|
+
Object.defineProperty(exports, "XfyunBigModelSTT", { enumerable: true, get: function () { return index_js_1.XfyunBigModelSTT; } });
|
|
168
|
+
Object.defineProperty(exports, "XfyunDialectSTT", { enumerable: true, get: function () { return index_js_1.XfyunDialectSTT; } });
|
|
169
|
+
Object.defineProperty(exports, "XfyunSTT", { enumerable: true, get: function () { return index_js_1.XfyunSTT; } });
|
|
141
170
|
exports.Agora = __importStar(require("./api/index.js"));
|
|
142
171
|
var index_js_2 = require("./core/domain/index.js");
|
|
143
172
|
Object.defineProperty(exports, "Area", { enumerable: true, get: function () { return index_js_2.Area; } });
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v2.2
|
|
1
|
+
export declare const SDK_VERSION = "v2.3.2";
|
package/dist/cjs/version.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { AgoraArea } from "./agentkit/area.mjs";
|
|
1
2
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
2
3
|
import { AgoraClient as BaseAgoraClient } from "./Client.mjs";
|
|
3
|
-
import {
|
|
4
|
+
import { Pool } from "./core/domain/index.mjs";
|
|
4
5
|
/**
|
|
5
6
|
* Auth mode for the client:
|
|
6
7
|
* - `basic`: Customer ID + Secret for REST API (HTTP Basic Auth)
|
|
@@ -10,10 +11,10 @@ import { type Area, Pool } from "./core/domain/index.mjs";
|
|
|
10
11
|
*/
|
|
11
12
|
export type AgoraAuthMode = "basic" | "token" | "app-credentials";
|
|
12
13
|
export declare namespace AgoraClient {
|
|
13
|
-
type Options = BaseOptions & AuthOptions;
|
|
14
|
-
interface BaseOptions extends Omit<BaseClientOptions, "baseUrl" | "environment" | "username" | "password" | "authorization"> {
|
|
14
|
+
type Options<TArea extends AgoraArea = AgoraArea> = BaseOptions<TArea> & AuthOptions;
|
|
15
|
+
interface BaseOptions<TArea extends AgoraArea = AgoraArea> extends Omit<BaseClientOptions, "baseUrl" | "environment" | "username" | "password" | "authorization"> {
|
|
15
16
|
/** The area to use for regional URL selection */
|
|
16
|
-
area:
|
|
17
|
+
area: TArea;
|
|
17
18
|
/** Agora App ID — used as the `appid` path parameter and for RTC token generation */
|
|
18
19
|
appId: string;
|
|
19
20
|
/** Agora App Certificate — used to sign RTC tokens. Keep this secret. */
|
|
@@ -81,7 +82,7 @@ export declare namespace AgoraClient {
|
|
|
81
82
|
* });
|
|
82
83
|
* ```
|
|
83
84
|
*/
|
|
84
|
-
export declare class AgoraClient extends BaseAgoraClient {
|
|
85
|
+
export declare class AgoraClient<TArea extends AgoraArea = AgoraArea> extends BaseAgoraClient {
|
|
85
86
|
protected readonly _pool: Pool;
|
|
86
87
|
/** Agora App ID */
|
|
87
88
|
readonly appId: string;
|
|
@@ -89,7 +90,9 @@ export declare class AgoraClient extends BaseAgoraClient {
|
|
|
89
90
|
readonly appCertificate: string;
|
|
90
91
|
/** The active authentication mode */
|
|
91
92
|
readonly authMode: AgoraAuthMode;
|
|
92
|
-
|
|
93
|
+
/** The configured routing area */
|
|
94
|
+
readonly area: TArea;
|
|
95
|
+
constructor(options: AgoraClient.Options<TArea>);
|
|
93
96
|
/**
|
|
94
97
|
* Get the underlying domain pool for advanced usage.
|
|
95
98
|
* You can use this to manually cycle regions or select the best domain.
|
|
@@ -102,6 +102,7 @@ export class AgoraClient extends BaseAgoraClient {
|
|
|
102
102
|
this.appId = options.appId;
|
|
103
103
|
this.appCertificate = options.appCertificate;
|
|
104
104
|
this.authMode = authMode;
|
|
105
|
+
this.area = options.area;
|
|
105
106
|
}
|
|
106
107
|
/**
|
|
107
108
|
* Get the underlying domain pool for advanced usage.
|
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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
|
|
9
|
-
"User-Agent": "agora-agents/v2.2
|
|
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);
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -9,27 +9,19 @@ export class AgoraClient {
|
|
|
9
9
|
this._options = normalizeClientOptions(options);
|
|
10
10
|
}
|
|
11
11
|
get agents() {
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
19
|
-
|
|
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
|
-
|
|
25
|
-
|
|
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
|
-
|
|
31
|
-
|
|
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
|
}
|