@deepgram/sdk 5.0.0-alpha.2 → 5.0.0-beta.1
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/LICENSE +1 -1
- package/dist/browser/index.global.js +674 -1135
- package/dist/cjs/BaseClient.d.ts +7 -7
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +1 -2
- package/dist/cjs/CustomClient.d.ts +9 -1
- package/dist/cjs/CustomClient.js +346 -232
- package/dist/cjs/api/resources/agent/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/agent/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/agent/resources/v1/client/Socket.d.ts +8 -8
- package/dist/cjs/api/resources/agent/resources/v1/client/Socket.js +9 -9
- package/dist/cjs/api/resources/agent/resources/v1/resources/settings/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/agent/resources/v1/resources/settings/resources/think/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/agent/resources/v1/resources/settings/resources/think/resources/models/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1Settings.d.ts +3 -43
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.d.ts +26 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.js +3 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakEndpointProvider.d.ts +28 -13
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakEndpointProvider.js +19 -17
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakOneItemProvider.d.ts +28 -13
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakOneItemProvider.js +19 -17
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentThinkProvider.d.ts +115 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentThinkProvider.js +57 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1UpdateSpeakSpeakProvider.d.ts +18 -3
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1UpdateSpeakSpeakProvider.js +2 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/index.js +2 -0
- package/dist/cjs/api/resources/auth/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/auth/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/auth/resources/v1/resources/tokens/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/listen/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/listen/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/listen/resources/v1/client/Client.js +29 -80
- package/dist/cjs/api/resources/listen/resources/v1/client/Socket.d.ts +4 -4
- package/dist/cjs/api/resources/listen/resources/v1/client/Socket.js +5 -5
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/client/Client.js +76 -298
- package/dist/cjs/api/resources/listen/resources/v1/types/ListenV1Results.d.ts +3 -3
- package/dist/cjs/api/resources/listen/resources/v2/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/listen/resources/v2/client/Client.js +11 -26
- package/dist/cjs/api/resources/listen/resources/v2/client/Socket.d.ts +2 -2
- package/dist/cjs/api/resources/listen/resources/v2/client/Socket.js +3 -3
- package/dist/cjs/api/resources/manage/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/models/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/models/client/Client.js +3 -4
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/client/Client.js +4 -7
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/balances/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/client/Client.js +9 -27
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/fields/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/fields/client/Client.js +4 -7
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/purchases/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/purchases/client/Client.js +3 -4
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.js +3 -4
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/members/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/members/resources/invites/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/members/resources/scopes/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/models/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/models/client/Client.js +3 -4
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.js +12 -31
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/client/Client.js +46 -133
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/client/Client.js +47 -136
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/fields/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/fields/client/Client.js +4 -7
- package/dist/cjs/api/resources/read/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/read/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/read/resources/v1/resources/text/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/read/resources/v1/resources/text/client/Client.js +14 -52
- package/dist/cjs/api/resources/selfHosted/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/selfHosted/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/selfHosted/resources/v1/resources/distributionCredentials/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/selfHosted/resources/v1/resources/distributionCredentials/client/Client.js +4 -12
- package/dist/cjs/api/resources/speak/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/speak/resources/v1/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/speak/resources/v1/client/Client.js +6 -13
- package/dist/cjs/api/resources/speak/resources/v1/client/Socket.d.ts +4 -4
- package/dist/cjs/api/resources/speak/resources/v1/client/Socket.js +4 -4
- package/dist/cjs/api/resources/speak/resources/v1/resources/audio/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/speak/resources/v1/resources/audio/client/Client.js +11 -33
- package/dist/cjs/api/types/SpeakV1SampleRate.d.ts +1 -1
- package/dist/cjs/api/types/SpeakV1SampleRate.js +1 -1
- package/dist/cjs/auth/HeaderAuthProvider.d.ts +14 -8
- package/dist/cjs/auth/HeaderAuthProvider.js +19 -9
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
- package/dist/cjs/core/fetcher/Fetcher.d.ts +1 -2
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/core/websocket/ws.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +7 -7
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +1 -2
- package/dist/esm/CustomClient.d.mts +9 -1
- package/dist/esm/CustomClient.mjs +347 -233
- package/dist/esm/api/resources/agent/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/agent/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/agent/resources/v1/client/Socket.d.mts +8 -8
- package/dist/esm/api/resources/agent/resources/v1/client/Socket.mjs +9 -9
- package/dist/esm/api/resources/agent/resources/v1/resources/settings/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/agent/resources/v1/resources/settings/resources/think/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/agent/resources/v1/resources/settings/resources/think/resources/models/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1Settings.d.mts +3 -43
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.d.mts +26 -0
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.mjs +2 -0
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakEndpointProvider.d.mts +28 -13
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakEndpointProvider.mjs +19 -17
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakOneItemProvider.d.mts +28 -13
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakOneItemProvider.mjs +19 -17
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentThinkProvider.d.mts +115 -0
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentThinkProvider.mjs +54 -0
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1UpdateSpeakSpeakProvider.d.mts +18 -3
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1UpdateSpeakSpeakProvider.mjs +2 -0
- package/dist/esm/api/resources/agent/resources/v1/types/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/resources/v1/types/index.mjs +2 -0
- package/dist/esm/api/resources/auth/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/auth/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/auth/resources/v1/resources/tokens/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/listen/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/listen/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/listen/resources/v1/client/Client.mjs +29 -80
- package/dist/esm/api/resources/listen/resources/v1/client/Socket.d.mts +4 -4
- package/dist/esm/api/resources/listen/resources/v1/client/Socket.mjs +5 -5
- package/dist/esm/api/resources/listen/resources/v1/resources/media/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/listen/resources/v1/resources/media/client/Client.mjs +76 -298
- package/dist/esm/api/resources/listen/resources/v1/types/ListenV1Results.d.mts +3 -3
- package/dist/esm/api/resources/listen/resources/v2/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/listen/resources/v2/client/Client.mjs +11 -26
- package/dist/esm/api/resources/listen/resources/v2/client/Socket.d.mts +2 -2
- package/dist/esm/api/resources/listen/resources/v2/client/Socket.mjs +3 -3
- package/dist/esm/api/resources/manage/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/models/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/models/client/Client.mjs +3 -4
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/client/Client.mjs +4 -7
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/balances/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/client/Client.mjs +9 -27
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/fields/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/fields/client/Client.mjs +4 -7
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/purchases/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/purchases/client/Client.mjs +3 -4
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.mjs +3 -4
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/members/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/members/resources/invites/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/members/resources/scopes/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/models/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/models/client/Client.mjs +3 -4
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.mjs +12 -31
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/client/Client.mjs +46 -133
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/client/Client.mjs +47 -136
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/fields/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/fields/client/Client.mjs +4 -7
- package/dist/esm/api/resources/read/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/read/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/read/resources/v1/resources/text/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/read/resources/v1/resources/text/client/Client.mjs +14 -52
- package/dist/esm/api/resources/selfHosted/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/selfHosted/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/selfHosted/resources/v1/resources/distributionCredentials/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/selfHosted/resources/v1/resources/distributionCredentials/client/Client.mjs +4 -12
- package/dist/esm/api/resources/speak/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/speak/resources/v1/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/speak/resources/v1/client/Client.mjs +6 -13
- package/dist/esm/api/resources/speak/resources/v1/client/Socket.d.mts +4 -4
- package/dist/esm/api/resources/speak/resources/v1/client/Socket.mjs +4 -4
- package/dist/esm/api/resources/speak/resources/v1/resources/audio/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/speak/resources/v1/resources/audio/client/Client.mjs +11 -33
- package/dist/esm/api/types/SpeakV1SampleRate.d.mts +1 -1
- package/dist/esm/api/types/SpeakV1SampleRate.mjs +1 -1
- package/dist/esm/auth/HeaderAuthProvider.d.mts +14 -8
- package/dist/esm/auth/HeaderAuthProvider.mjs +19 -9
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
- package/dist/esm/core/fetcher/Fetcher.d.mts +1 -2
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/core/websocket/ws.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +11 -10
package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentThinkProvider.d.ts
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type * as Deepgram from "../../../../../index.js";
|
|
2
|
+
export type AgentV1SettingsAgentThinkProvider = Deepgram.agent.AgentV1SettingsAgentThinkProvider.OpenAi | Deepgram.agent.AgentV1SettingsAgentThinkProvider.AwsBedrock | Deepgram.agent.AgentV1SettingsAgentThinkProvider.Anthropic | Deepgram.agent.AgentV1SettingsAgentThinkProvider.Google | Deepgram.agent.AgentV1SettingsAgentThinkProvider.Groq;
|
|
3
|
+
export declare namespace AgentV1SettingsAgentThinkProvider {
|
|
4
|
+
interface OpenAi {
|
|
5
|
+
type: "open_ai";
|
|
6
|
+
/** The REST API version for the OpenAI text-to-speech API */
|
|
7
|
+
version?: "v1";
|
|
8
|
+
/** OpenAI TTS model */
|
|
9
|
+
model: OpenAi.Model;
|
|
10
|
+
/** OpenAI voice */
|
|
11
|
+
voice: OpenAi.Voice;
|
|
12
|
+
}
|
|
13
|
+
namespace OpenAi {
|
|
14
|
+
/** OpenAI TTS model */
|
|
15
|
+
const Model: {
|
|
16
|
+
readonly Tts1: "tts-1";
|
|
17
|
+
readonly Tts1Hd: "tts-1-hd";
|
|
18
|
+
};
|
|
19
|
+
type Model = (typeof Model)[keyof typeof Model];
|
|
20
|
+
/** OpenAI voice */
|
|
21
|
+
const Voice: {
|
|
22
|
+
readonly Alloy: "alloy";
|
|
23
|
+
readonly Echo: "echo";
|
|
24
|
+
readonly Fable: "fable";
|
|
25
|
+
readonly Onyx: "onyx";
|
|
26
|
+
readonly Nova: "nova";
|
|
27
|
+
readonly Shimmer: "shimmer";
|
|
28
|
+
};
|
|
29
|
+
type Voice = (typeof Voice)[keyof typeof Voice];
|
|
30
|
+
}
|
|
31
|
+
interface AwsBedrock {
|
|
32
|
+
type: "aws_bedrock";
|
|
33
|
+
/** AWS Bedrock model to use */
|
|
34
|
+
model: AgentV1SettingsAgentThinkProviderAwsBedrock.Model;
|
|
35
|
+
/** AWS Bedrock temperature (0-2) */
|
|
36
|
+
temperature?: number;
|
|
37
|
+
/** AWS credentials type (STS short-lived or IAM long-lived) */
|
|
38
|
+
credentials?: AgentV1SettingsAgentThinkProviderAwsBedrock.Credentials;
|
|
39
|
+
}
|
|
40
|
+
namespace AgentV1SettingsAgentThinkProviderAwsBedrock {
|
|
41
|
+
/** AWS Bedrock model to use */
|
|
42
|
+
const Model: {
|
|
43
|
+
readonly AnthropicClaude35Sonnet20240620V10: "anthropic/claude-3-5-sonnet-20240620-v1:0";
|
|
44
|
+
readonly AnthropicClaude35Haiku20240307V10: "anthropic/claude-3-5-haiku-20240307-v1:0";
|
|
45
|
+
};
|
|
46
|
+
type Model = (typeof Model)[keyof typeof Model];
|
|
47
|
+
/**
|
|
48
|
+
* AWS credentials type (STS short-lived or IAM long-lived)
|
|
49
|
+
*/
|
|
50
|
+
interface Credentials {
|
|
51
|
+
/** AWS credentials type (STS short-lived or IAM long-lived) */
|
|
52
|
+
type?: Credentials.Type;
|
|
53
|
+
/** AWS region */
|
|
54
|
+
region?: string;
|
|
55
|
+
/** AWS access key */
|
|
56
|
+
access_key_id?: string;
|
|
57
|
+
/** AWS secret access key */
|
|
58
|
+
secret_access_key?: string;
|
|
59
|
+
/** AWS session token (required for STS only) */
|
|
60
|
+
session_token?: string;
|
|
61
|
+
}
|
|
62
|
+
namespace Credentials {
|
|
63
|
+
/** AWS credentials type (STS short-lived or IAM long-lived) */
|
|
64
|
+
const Type: {
|
|
65
|
+
readonly Sts: "sts";
|
|
66
|
+
readonly Iam: "iam";
|
|
67
|
+
};
|
|
68
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
interface Anthropic {
|
|
72
|
+
type: "anthropic";
|
|
73
|
+
/** The REST API version for the Anthropic Messages API */
|
|
74
|
+
version?: "v1";
|
|
75
|
+
/** Anthropic model to use */
|
|
76
|
+
model: Anthropic.Model;
|
|
77
|
+
/** Anthropic temperature (0-1) */
|
|
78
|
+
temperature?: number;
|
|
79
|
+
}
|
|
80
|
+
namespace Anthropic {
|
|
81
|
+
/** Anthropic model to use */
|
|
82
|
+
const Model: {
|
|
83
|
+
readonly Claude35HaikuLatest: "claude-3-5-haiku-latest";
|
|
84
|
+
readonly ClaudeSonnet420250514: "claude-sonnet-4-20250514";
|
|
85
|
+
};
|
|
86
|
+
type Model = (typeof Model)[keyof typeof Model];
|
|
87
|
+
}
|
|
88
|
+
interface Google {
|
|
89
|
+
type: "google";
|
|
90
|
+
/** The REST API version for the Google generative language API */
|
|
91
|
+
version?: "v1beta";
|
|
92
|
+
/** Google model to use */
|
|
93
|
+
model: Google.Model;
|
|
94
|
+
/** Google temperature (0-2) */
|
|
95
|
+
temperature?: number;
|
|
96
|
+
}
|
|
97
|
+
namespace Google {
|
|
98
|
+
/** Google model to use */
|
|
99
|
+
const Model: {
|
|
100
|
+
readonly Gemini20Flash: "gemini-2.0-flash";
|
|
101
|
+
readonly Gemini20FlashLite: "gemini-2.0-flash-lite";
|
|
102
|
+
readonly Gemini25Flash: "gemini-2.5-flash";
|
|
103
|
+
};
|
|
104
|
+
type Model = (typeof Model)[keyof typeof Model];
|
|
105
|
+
}
|
|
106
|
+
interface Groq {
|
|
107
|
+
type: "groq";
|
|
108
|
+
/** The REST API version for the Groq's chat completions API (mostly OpenAI-compatible) */
|
|
109
|
+
version?: "v1";
|
|
110
|
+
/** Groq model to use */
|
|
111
|
+
model: "openai/gpt-oss-20b";
|
|
112
|
+
/** Groq temperature (0-2) */
|
|
113
|
+
temperature?: number;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AgentV1SettingsAgentThinkProvider = void 0;
|
|
5
|
+
var AgentV1SettingsAgentThinkProvider;
|
|
6
|
+
(function (AgentV1SettingsAgentThinkProvider) {
|
|
7
|
+
let OpenAi;
|
|
8
|
+
(function (OpenAi) {
|
|
9
|
+
/** OpenAI TTS model */
|
|
10
|
+
OpenAi.Model = {
|
|
11
|
+
Tts1: "tts-1",
|
|
12
|
+
Tts1Hd: "tts-1-hd",
|
|
13
|
+
};
|
|
14
|
+
/** OpenAI voice */
|
|
15
|
+
OpenAi.Voice = {
|
|
16
|
+
Alloy: "alloy",
|
|
17
|
+
Echo: "echo",
|
|
18
|
+
Fable: "fable",
|
|
19
|
+
Onyx: "onyx",
|
|
20
|
+
Nova: "nova",
|
|
21
|
+
Shimmer: "shimmer",
|
|
22
|
+
};
|
|
23
|
+
})(OpenAi = AgentV1SettingsAgentThinkProvider.OpenAi || (AgentV1SettingsAgentThinkProvider.OpenAi = {}));
|
|
24
|
+
let AgentV1SettingsAgentThinkProviderAwsBedrock;
|
|
25
|
+
(function (AgentV1SettingsAgentThinkProviderAwsBedrock) {
|
|
26
|
+
/** AWS Bedrock model to use */
|
|
27
|
+
AgentV1SettingsAgentThinkProviderAwsBedrock.Model = {
|
|
28
|
+
AnthropicClaude35Sonnet20240620V10: "anthropic/claude-3-5-sonnet-20240620-v1:0",
|
|
29
|
+
AnthropicClaude35Haiku20240307V10: "anthropic/claude-3-5-haiku-20240307-v1:0",
|
|
30
|
+
};
|
|
31
|
+
let Credentials;
|
|
32
|
+
(function (Credentials) {
|
|
33
|
+
/** AWS credentials type (STS short-lived or IAM long-lived) */
|
|
34
|
+
Credentials.Type = {
|
|
35
|
+
Sts: "sts",
|
|
36
|
+
Iam: "iam",
|
|
37
|
+
};
|
|
38
|
+
})(Credentials = AgentV1SettingsAgentThinkProviderAwsBedrock.Credentials || (AgentV1SettingsAgentThinkProviderAwsBedrock.Credentials = {}));
|
|
39
|
+
})(AgentV1SettingsAgentThinkProviderAwsBedrock = AgentV1SettingsAgentThinkProvider.AgentV1SettingsAgentThinkProviderAwsBedrock || (AgentV1SettingsAgentThinkProvider.AgentV1SettingsAgentThinkProviderAwsBedrock = {}));
|
|
40
|
+
let Anthropic;
|
|
41
|
+
(function (Anthropic) {
|
|
42
|
+
/** Anthropic model to use */
|
|
43
|
+
Anthropic.Model = {
|
|
44
|
+
Claude35HaikuLatest: "claude-3-5-haiku-latest",
|
|
45
|
+
ClaudeSonnet420250514: "claude-sonnet-4-20250514",
|
|
46
|
+
};
|
|
47
|
+
})(Anthropic = AgentV1SettingsAgentThinkProvider.Anthropic || (AgentV1SettingsAgentThinkProvider.Anthropic = {}));
|
|
48
|
+
let Google;
|
|
49
|
+
(function (Google) {
|
|
50
|
+
/** Google model to use */
|
|
51
|
+
Google.Model = {
|
|
52
|
+
Gemini20Flash: "gemini-2.0-flash",
|
|
53
|
+
Gemini20FlashLite: "gemini-2.0-flash-lite",
|
|
54
|
+
Gemini25Flash: "gemini-2.5-flash",
|
|
55
|
+
};
|
|
56
|
+
})(Google = AgentV1SettingsAgentThinkProvider.Google || (AgentV1SettingsAgentThinkProvider.Google = {}));
|
|
57
|
+
})(AgentV1SettingsAgentThinkProvider || (exports.AgentV1SettingsAgentThinkProvider = AgentV1SettingsAgentThinkProvider = {}));
|
package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1UpdateSpeakSpeakProvider.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export type AgentV1UpdateSpeakSpeakProvider = Deepgram.agent.AgentV1UpdateSpeakS
|
|
|
3
3
|
export declare namespace AgentV1UpdateSpeakSpeakProvider {
|
|
4
4
|
interface Deepgram {
|
|
5
5
|
type: "deepgram";
|
|
6
|
+
/** The REST API version for the Deepgram text-to-speech API */
|
|
7
|
+
version?: "v1";
|
|
6
8
|
/** Deepgram TTS model */
|
|
7
9
|
model: AgentV1UpdateSpeakSpeakProviderDeepgram.Model;
|
|
8
10
|
}
|
|
@@ -77,9 +79,13 @@ export declare namespace AgentV1UpdateSpeakSpeakProvider {
|
|
|
77
79
|
}
|
|
78
80
|
interface ElevenLabs {
|
|
79
81
|
type: "eleven_labs";
|
|
82
|
+
/** The REST API version for the ElevenLabs text-to-speech API */
|
|
83
|
+
version?: "v1";
|
|
80
84
|
/** Eleven Labs model ID */
|
|
81
85
|
model_id: AgentV1UpdateSpeakSpeakProviderElevenLabs.ModelId;
|
|
82
|
-
/**
|
|
86
|
+
/** Language code to use, e.g. 'en-US'. Corresponds to the `language_code` parameter in the ElevenLabs API */
|
|
87
|
+
language?: string;
|
|
88
|
+
/** Use the `language` field instead. */
|
|
83
89
|
language_code?: string;
|
|
84
90
|
}
|
|
85
91
|
namespace AgentV1UpdateSpeakSpeakProviderElevenLabs {
|
|
@@ -93,6 +99,8 @@ export declare namespace AgentV1UpdateSpeakSpeakProvider {
|
|
|
93
99
|
}
|
|
94
100
|
interface Cartesia {
|
|
95
101
|
type: "cartesia";
|
|
102
|
+
/** The API version header for the Cartesia text-to-speech API */
|
|
103
|
+
version?: AgentV1UpdateSpeakSpeakProviderCartesia.Version;
|
|
96
104
|
/** Cartesia model ID */
|
|
97
105
|
model_id: AgentV1UpdateSpeakSpeakProviderCartesia.ModelId;
|
|
98
106
|
voice: AgentV1UpdateSpeakSpeakProviderCartesia.Voice;
|
|
@@ -100,6 +108,9 @@ export declare namespace AgentV1UpdateSpeakSpeakProvider {
|
|
|
100
108
|
language?: string;
|
|
101
109
|
}
|
|
102
110
|
namespace AgentV1UpdateSpeakSpeakProviderCartesia {
|
|
111
|
+
/** The API version header for the Cartesia text-to-speech API */
|
|
112
|
+
const Version: {};
|
|
113
|
+
type Version = (typeof Version)[keyof typeof Version];
|
|
103
114
|
/** Cartesia model ID */
|
|
104
115
|
const ModelId: {
|
|
105
116
|
readonly Sonic2: "sonic-2";
|
|
@@ -115,6 +126,8 @@ export declare namespace AgentV1UpdateSpeakSpeakProvider {
|
|
|
115
126
|
}
|
|
116
127
|
interface OpenAi {
|
|
117
128
|
type: "open_ai";
|
|
129
|
+
/** The REST API version for the OpenAI text-to-speech API */
|
|
130
|
+
version?: "v1";
|
|
118
131
|
/** OpenAI TTS model */
|
|
119
132
|
model: AgentV1UpdateSpeakSpeakProviderOpenAi.Model;
|
|
120
133
|
/** OpenAI voice */
|
|
@@ -142,8 +155,10 @@ export declare namespace AgentV1UpdateSpeakSpeakProvider {
|
|
|
142
155
|
type: "aws_polly";
|
|
143
156
|
/** AWS Polly voice name */
|
|
144
157
|
voice: AgentV1UpdateSpeakSpeakProviderAwsPolly.Voice;
|
|
145
|
-
/** Language code
|
|
146
|
-
|
|
158
|
+
/** Language code to use, e.g. 'en-US'. Corresponds to the `language_code` parameter in the AWS Polly API */
|
|
159
|
+
language: string;
|
|
160
|
+
/** Use the `language` field instead. */
|
|
161
|
+
language_code?: string;
|
|
147
162
|
engine: AgentV1UpdateSpeakSpeakProviderAwsPolly.Engine;
|
|
148
163
|
credentials: AgentV1UpdateSpeakSpeakProviderAwsPolly.Credentials;
|
|
149
164
|
}
|
|
@@ -84,6 +84,8 @@ var AgentV1UpdateSpeakSpeakProvider;
|
|
|
84
84
|
})(AgentV1UpdateSpeakSpeakProviderElevenLabs = AgentV1UpdateSpeakSpeakProvider.AgentV1UpdateSpeakSpeakProviderElevenLabs || (AgentV1UpdateSpeakSpeakProvider.AgentV1UpdateSpeakSpeakProviderElevenLabs = {}));
|
|
85
85
|
let AgentV1UpdateSpeakSpeakProviderCartesia;
|
|
86
86
|
(function (AgentV1UpdateSpeakSpeakProviderCartesia) {
|
|
87
|
+
/** The API version header for the Cartesia text-to-speech API */
|
|
88
|
+
AgentV1UpdateSpeakSpeakProviderCartesia.Version = {};
|
|
87
89
|
/** Cartesia model ID */
|
|
88
90
|
AgentV1UpdateSpeakSpeakProviderCartesia.ModelId = {
|
|
89
91
|
Sonic2: "sonic-2",
|
|
@@ -12,8 +12,10 @@ export * from "./AgentV1PromptUpdated.js";
|
|
|
12
12
|
export * from "./AgentV1ReceiveFunctionCallResponse.js";
|
|
13
13
|
export * from "./AgentV1SendFunctionCallResponse.js";
|
|
14
14
|
export * from "./AgentV1Settings.js";
|
|
15
|
+
export * from "./AgentV1SettingsAgentListenProvider.js";
|
|
15
16
|
export * from "./AgentV1SettingsAgentSpeakEndpointProvider.js";
|
|
16
17
|
export * from "./AgentV1SettingsAgentSpeakOneItemProvider.js";
|
|
18
|
+
export * from "./AgentV1SettingsAgentThinkProvider.js";
|
|
17
19
|
export * from "./AgentV1SettingsApplied.js";
|
|
18
20
|
export * from "./AgentV1SpeakUpdated.js";
|
|
19
21
|
export * from "./AgentV1UpdatePrompt.js";
|
|
@@ -28,8 +28,10 @@ __exportStar(require("./AgentV1PromptUpdated.js"), exports);
|
|
|
28
28
|
__exportStar(require("./AgentV1ReceiveFunctionCallResponse.js"), exports);
|
|
29
29
|
__exportStar(require("./AgentV1SendFunctionCallResponse.js"), exports);
|
|
30
30
|
__exportStar(require("./AgentV1Settings.js"), exports);
|
|
31
|
+
__exportStar(require("./AgentV1SettingsAgentListenProvider.js"), exports);
|
|
31
32
|
__exportStar(require("./AgentV1SettingsAgentSpeakEndpointProvider.js"), exports);
|
|
32
33
|
__exportStar(require("./AgentV1SettingsAgentSpeakOneItemProvider.js"), exports);
|
|
34
|
+
__exportStar(require("./AgentV1SettingsAgentThinkProvider.js"), exports);
|
|
33
35
|
__exportStar(require("./AgentV1SettingsApplied.js"), exports);
|
|
34
36
|
__exportStar(require("./AgentV1SpeakUpdated.js"), exports);
|
|
35
37
|
__exportStar(require("./AgentV1UpdatePrompt.js"), exports);
|
|
@@ -2,8 +2,7 @@ import type { BaseClientOptions } from "../../../../BaseClient.js";
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import { V1Client } from "../resources/v1/client/Client.js";
|
|
4
4
|
export declare namespace AuthClient {
|
|
5
|
-
|
|
6
|
-
}
|
|
5
|
+
type Options = BaseClientOptions;
|
|
7
6
|
}
|
|
8
7
|
export declare class AuthClient {
|
|
9
8
|
protected readonly _options: NormalizedClientOptionsWithAuth<AuthClient.Options>;
|
|
@@ -2,8 +2,7 @@ import type { BaseClientOptions } from "../../../../../../BaseClient.js";
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
3
|
import { TokensClient } from "../resources/tokens/client/Client.js";
|
|
4
4
|
export declare namespace V1Client {
|
|
5
|
-
|
|
6
|
-
}
|
|
5
|
+
type Options = BaseClientOptions;
|
|
7
6
|
}
|
|
8
7
|
export declare class V1Client {
|
|
9
8
|
protected readonly _options: NormalizedClientOptionsWithAuth<V1Client.Options>;
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../Ba
|
|
|
3
3
|
import * as core from "../../../../../../../../core/index.js";
|
|
4
4
|
import * as Deepgram from "../../../../../../../index.js";
|
|
5
5
|
export declare namespace TokensClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"
|
|
|
3
3
|
import { V1Client } from "../resources/v1/client/Client.js";
|
|
4
4
|
import { V2Client } from "../resources/v2/client/Client.js";
|
|
5
5
|
export declare namespace ListenClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
}
|
|
9
8
|
export declare class ListenClient {
|
|
10
9
|
protected readonly _options: NormalizedClientOptionsWithAuth<ListenClient.Options>;
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClie
|
|
|
3
3
|
import { MediaClient } from "../resources/media/client/Client.js";
|
|
4
4
|
import { V1Socket } from "./Socket.js";
|
|
5
5
|
export declare namespace V1Client {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface ConnectArgs {
|
|
9
8
|
callback?: string;
|
|
10
9
|
callback_method?: string;
|
|
@@ -62,86 +62,35 @@ class V1Client {
|
|
|
62
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
63
|
var _a, _b;
|
|
64
64
|
const { callback, callback_method: callbackMethod, channels, diarize, dictation, encoding, endpointing, extra, interim_results: interimResults, keyterm, keywords, language, mip_opt_out: mipOptOut, model, multichannel, numerals, profanity_filter: profanityFilter, punctuate, redact, replace, sample_rate: sampleRate, search, smart_format: smartFormat, tag, utterance_end_ms: utteranceEndMs, vad_events: vadEvents, version, headers, debug, reconnectAttempts, } = args;
|
|
65
|
-
const _queryParams = {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
_queryParams.keyterm = keyterm;
|
|
95
|
-
}
|
|
96
|
-
if (keywords != null) {
|
|
97
|
-
_queryParams.keywords = keywords;
|
|
98
|
-
}
|
|
99
|
-
if (language != null) {
|
|
100
|
-
_queryParams.language = language;
|
|
101
|
-
}
|
|
102
|
-
if (mipOptOut != null) {
|
|
103
|
-
_queryParams.mip_opt_out = mipOptOut;
|
|
104
|
-
}
|
|
105
|
-
_queryParams.model = model;
|
|
106
|
-
if (multichannel != null) {
|
|
107
|
-
_queryParams.multichannel = multichannel;
|
|
108
|
-
}
|
|
109
|
-
if (numerals != null) {
|
|
110
|
-
_queryParams.numerals = numerals;
|
|
111
|
-
}
|
|
112
|
-
if (profanityFilter != null) {
|
|
113
|
-
_queryParams.profanity_filter = profanityFilter;
|
|
114
|
-
}
|
|
115
|
-
if (punctuate != null) {
|
|
116
|
-
_queryParams.punctuate = punctuate;
|
|
117
|
-
}
|
|
118
|
-
if (redact != null) {
|
|
119
|
-
_queryParams.redact = redact;
|
|
120
|
-
}
|
|
121
|
-
if (replace != null) {
|
|
122
|
-
_queryParams.replace = replace;
|
|
123
|
-
}
|
|
124
|
-
if (sampleRate != null) {
|
|
125
|
-
_queryParams.sample_rate = sampleRate;
|
|
126
|
-
}
|
|
127
|
-
if (search != null) {
|
|
128
|
-
_queryParams.search = search;
|
|
129
|
-
}
|
|
130
|
-
if (smartFormat != null) {
|
|
131
|
-
_queryParams.smart_format = smartFormat;
|
|
132
|
-
}
|
|
133
|
-
if (tag != null) {
|
|
134
|
-
_queryParams.tag = tag;
|
|
135
|
-
}
|
|
136
|
-
if (utteranceEndMs != null) {
|
|
137
|
-
_queryParams.utterance_end_ms = utteranceEndMs;
|
|
138
|
-
}
|
|
139
|
-
if (vadEvents != null) {
|
|
140
|
-
_queryParams.vad_events = vadEvents;
|
|
141
|
-
}
|
|
142
|
-
if (version != null) {
|
|
143
|
-
_queryParams.version = version;
|
|
144
|
-
}
|
|
65
|
+
const _queryParams = {
|
|
66
|
+
callback,
|
|
67
|
+
callback_method: callbackMethod,
|
|
68
|
+
channels,
|
|
69
|
+
diarize,
|
|
70
|
+
dictation,
|
|
71
|
+
encoding,
|
|
72
|
+
endpointing,
|
|
73
|
+
extra,
|
|
74
|
+
interim_results: interimResults,
|
|
75
|
+
keyterm,
|
|
76
|
+
keywords,
|
|
77
|
+
language,
|
|
78
|
+
mip_opt_out: mipOptOut,
|
|
79
|
+
model,
|
|
80
|
+
multichannel,
|
|
81
|
+
numerals,
|
|
82
|
+
profanity_filter: profanityFilter,
|
|
83
|
+
punctuate,
|
|
84
|
+
redact,
|
|
85
|
+
replace,
|
|
86
|
+
sample_rate: sampleRate,
|
|
87
|
+
search,
|
|
88
|
+
smart_format: smartFormat,
|
|
89
|
+
tag,
|
|
90
|
+
utterance_end_ms: utteranceEndMs,
|
|
91
|
+
vad_events: vadEvents,
|
|
92
|
+
version,
|
|
93
|
+
};
|
|
145
94
|
const _headers = (0, headers_js_1.mergeHeaders)((0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: args.Authorization }), headers);
|
|
146
95
|
const socket = new core.ReconnectingWebSocket({
|
|
147
96
|
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.DeepgramEnvironment.Production).production, "/v1/listen"),
|
|
@@ -33,10 +33,10 @@ export declare class V1Socket {
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
on<T extends keyof V1Socket.EventHandlers>(event: T, callback: V1Socket.EventHandlers[T]): void;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
sendMedia(message: ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
37
|
+
sendFinalize(message: Deepgram.listen.ListenV1Finalize): void;
|
|
38
|
+
sendCloseStream(message: Deepgram.listen.ListenV1CloseStream): void;
|
|
39
|
+
sendKeepAlive(message: Deepgram.listen.ListenV1KeepAlive): void;
|
|
40
40
|
/** Connect to the websocket and register event handlers. */
|
|
41
41
|
connect(): V1Socket;
|
|
42
42
|
/** Close the websocket and unregister event handlers. */
|
|
@@ -90,19 +90,19 @@ class V1Socket {
|
|
|
90
90
|
on(event, callback) {
|
|
91
91
|
this.eventHandlers[event] = callback;
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
sendMedia(message) {
|
|
94
94
|
this.assertSocketIsOpen();
|
|
95
|
-
this.
|
|
95
|
+
this.sendBinary(message);
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
sendFinalize(message) {
|
|
98
98
|
this.assertSocketIsOpen();
|
|
99
99
|
this.sendJson(message);
|
|
100
100
|
}
|
|
101
|
-
|
|
101
|
+
sendCloseStream(message) {
|
|
102
102
|
this.assertSocketIsOpen();
|
|
103
103
|
this.sendJson(message);
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
sendKeepAlive(message) {
|
|
106
106
|
this.assertSocketIsOpen();
|
|
107
107
|
this.sendJson(message);
|
|
108
108
|
}
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../Ba
|
|
|
3
3
|
import * as core from "../../../../../../../../core/index.js";
|
|
4
4
|
import * as Deepgram from "../../../../../../../index.js";
|
|
5
5
|
export declare namespace MediaClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|