You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/DeepgramClient.ts
+33-6Lines changed: 33 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -4,41 +4,68 @@ import {
4
4
ListenClient,
5
5
ManageClient,
6
6
ReadClient,
7
-
SelfHostedClientasOnPremClient,
8
-
SelfHostedClient,
7
+
OnPremClient,
8
+
SelfHostedRestClient,
9
9
SpeakClient,
10
10
}from"./packages";
11
11
12
12
/**
13
-
* The DeepgramClient class provides access to various Deepgram API clients, including ListenClient, ManageClient, SelfHostedClient, ReadClient, and SpeakClient.
13
+
* The DeepgramClient class provides access to various Deepgram API clients, including ListenClient, ManageClient, SelfHostedRestClient, ReadClient, and SpeakClient.
* Defines the arguments for creating a Deepgram client.
9
-
*
10
-
* The `DeepgramClientArgs` type represents the possible arguments that can be passed when creating a Deepgram client. It can be either:
11
-
*
12
-
* 1. An array with two elements:
13
-
* - The first element is a string or an `IKeyFactory` object, representing the API key.
14
-
* - The second element is a `DeepgramClientOptions` object, representing the configuration options for the Deepgram client.
15
-
* 2. An array with a single `DeepgramClientOptions` object, representing the configuration options for the Deepgram client.
16
-
*/
17
-
18
-
/**
19
-
* Configures the options for a Deepgram client.
20
-
*
21
-
* The `DeepgramClientOptions` interface defines the configuration options for a Deepgram client. It includes options for various namespaces, such as `global`, `listen`, `manage`, `onprem`, `read`, and `speak`. Each namespace has its own options for configuring the transport, including the URL, proxy, and options for the fetch and WebSocket clients.
22
-
*
23
-
* The `global` namespace is used to configure options that apply globally to the Deepgram client. The other namespaces are used to configure options specific to different Deepgram API endpoints.
* The `DeepgramClientOptions` interface defines the configuration options for a Deepgram client. It includes options for various namespaces, such as `global`, `listen`, `manage`, `onprem`, `read`, and `speak`. Each namespace has its own options for configuring the transport, including the URL, proxy, and options for the fetch and WebSocket clients.
50
+
*
51
+
* The `global` namespace is used to configure options that apply globally to the Deepgram client. The other namespaces are used to configure options specific to different Deepgram API endpoints.
0 commit comments