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
* 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.
10
+
*
11
+
* 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.
12
+
*/
3
13
exportinterfaceDeepgramClientOptions{
4
-
global?: {
5
-
/**
6
-
* Optional headers for initializing the client.
7
-
*/
8
-
headers?: Record<string,string>;
9
-
10
-
/**
11
-
* The URL used to interact with production, On-prem and other Deepgram environments. Defaults to `api.deepgram.com`.
* Prevent client using a real API key when using a proxy configuration.
52
-
*/
53
-
if(this.key!=="proxy"){
54
-
thrownewDeepgramError(
55
-
`Do not attempt to pass any other API key than the string "proxy" when making proxied REST requests. Please ensure your proxy application is responsible for writing our API key to the Authorization header.`
56
-
);
57
-
}
58
-
59
-
proxyUrlString=this.options.restProxy.url;
60
-
61
-
/**
62
-
* Check if the proxy URL provided is missing a protocol and warn in the console.
0 commit comments