@deepgram/sdk 4.11.0 → 4.11.2
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 +230 -17
- package/dist/main/lib/types/AgentLiveSchema.d.ts +6 -5
- package/dist/main/lib/types/AgentLiveSchema.d.ts.map +1 -1
- package/dist/main/lib/version.d.ts +1 -1
- package/dist/main/lib/version.js +1 -1
- package/dist/main/packages/AbstractLiveClient.d.ts.map +1 -1
- package/dist/main/packages/AbstractLiveClient.js +2 -2
- package/dist/main/packages/AbstractLiveClient.js.map +1 -1
- package/dist/module/lib/types/AgentLiveSchema.d.ts +6 -5
- package/dist/module/lib/types/AgentLiveSchema.d.ts.map +1 -1
- package/dist/module/lib/version.d.ts +1 -1
- package/dist/module/lib/version.js +1 -1
- package/dist/module/packages/AbstractLiveClient.d.ts.map +1 -1
- package/dist/module/packages/AbstractLiveClient.js +2 -2
- package/dist/module/packages/AbstractLiveClient.js.map +1 -1
- package/dist/umd/deepgram.js +1 -1
- package/package.json +1 -1
- package/src/lib/types/AgentLiveSchema.ts +6 -5
- package/src/lib/version.ts +1 -1
- package/src/packages/AbstractLiveClient.ts +2 -3
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
> 🎯 **Development Setup**: This project uses [Corepack](https://nodejs.org/api/corepack.html) for package manager consistency. Run `corepack enable` once, then use `pnpm` commands normally. See [DEVELOPMENT.md](./DEVELOPMENT.md) for details.
|
|
6
6
|
|
|
7
7
|
<!-- TOC -->
|
|
8
|
+
|
|
8
9
|
- [Documentation](#documentation)
|
|
9
10
|
- [Migrating from earlier versions](#migrating-from-earlier-versions)
|
|
10
11
|
- [V2 to V3](#v2-to-v3)
|
|
@@ -13,7 +14,14 @@
|
|
|
13
14
|
- [Installation](#installation)
|
|
14
15
|
- [UMD](#umd)
|
|
15
16
|
- [ESM](#esm)
|
|
16
|
-
- [
|
|
17
|
+
- [Authentication](#authentication)
|
|
18
|
+
- [1. API Key Authentication (Recommended)](#1-api-key-authentication-recommended)
|
|
19
|
+
- [2. Access Token Authentication](#2-access-token-authentication)
|
|
20
|
+
- [3. Proxy Authentication](#3-proxy-authentication)
|
|
21
|
+
- [Getting Credentials](#getting-credentials)
|
|
22
|
+
- [API Keys](#api-keys)
|
|
23
|
+
- [Access Tokens](#access-tokens)
|
|
24
|
+
- [Environment Variables](#environment-variables)
|
|
17
25
|
- [Getting an API Key](#getting-an-api-key)
|
|
18
26
|
- [Scoped Configuration](#scoped-configuration)
|
|
19
27
|
- [Global Defaults](#global-defaults)
|
|
@@ -38,9 +46,9 @@
|
|
|
38
46
|
- [Single-Request](#single-request)
|
|
39
47
|
- [Continuous Text Stream (WebSocket)](#continuous-text-stream-websocket)
|
|
40
48
|
- [Text Intelligence](#text-intelligence)
|
|
41
|
-
- [
|
|
49
|
+
- [Token Management](#token-management)
|
|
42
50
|
- [Get Token Details](#get-token-details)
|
|
43
|
-
- [Grant Token](#grant-token)
|
|
51
|
+
- [Grant Access Token](#grant-access-token)
|
|
44
52
|
- [Projects](#projects)
|
|
45
53
|
- [Get Projects](#get-projects)
|
|
46
54
|
- [Get Project](#get-project)
|
|
@@ -67,11 +75,12 @@
|
|
|
67
75
|
- [Get Request](#get-request)
|
|
68
76
|
- [Summarize Usage](#summarize-usage)
|
|
69
77
|
- [Get Fields](#get-fields)
|
|
70
|
-
- [Summarize Usage](#summarize-usage)
|
|
78
|
+
- [Summarize Usage (Deprecated)](#summarize-usage-1)
|
|
71
79
|
- [Billing](#billing)
|
|
72
80
|
- [Get All Balances](#get-all-balances)
|
|
73
81
|
- [Get Balance](#get-balance)
|
|
74
82
|
- [Models](#models)
|
|
83
|
+
- [Get All Models](#get-all-models)
|
|
75
84
|
- [Get All Project Models](#get-all-project-models)
|
|
76
85
|
- [Get Model](#get-model)
|
|
77
86
|
- [On-Prem APIs](#on-prem-apis)
|
|
@@ -163,18 +172,88 @@ You can now use type="module" `<script>`s to import deepgram from CDNs, like:
|
|
|
163
172
|
</script>
|
|
164
173
|
```
|
|
165
174
|
|
|
166
|
-
##
|
|
175
|
+
## Authentication
|
|
176
|
+
|
|
177
|
+
The Deepgram SDK supports three authentication methods:
|
|
167
178
|
|
|
168
|
-
|
|
179
|
+
### 1. API Key Authentication (Recommended)
|
|
180
|
+
|
|
181
|
+
Uses `Token` scheme in Authorization header.
|
|
169
182
|
|
|
170
183
|
```js
|
|
171
184
|
import { createClient } from "@deepgram/sdk";
|
|
172
|
-
// - or -
|
|
173
|
-
// const { createClient } = require("@deepgram/sdk");
|
|
174
185
|
|
|
175
|
-
|
|
186
|
+
// Method 1: Pass API key as first parameter
|
|
187
|
+
const deepgramClient = createClient("YOUR_DEEPGRAM_API_KEY");
|
|
188
|
+
|
|
189
|
+
// Method 2: Pass API key in options object
|
|
190
|
+
const deepgramClient = createClient({ key: "YOUR_DEEPGRAM_API_KEY" });
|
|
191
|
+
|
|
192
|
+
// Method 3: Use environment variable (DEEPGRAM_API_KEY)
|
|
193
|
+
const deepgramClient = createClient();
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### 2. Access Token Authentication
|
|
197
|
+
|
|
198
|
+
Uses `Bearer` scheme in Authorization header. Access tokens are temporary (30-second TTL) and must be obtained using an API key.
|
|
199
|
+
|
|
200
|
+
```js
|
|
201
|
+
import { createClient } from "@deepgram/sdk";
|
|
202
|
+
|
|
203
|
+
// Must use accessToken property in options object
|
|
204
|
+
const deepgramClient = createClient({ accessToken: "YOUR_ACCESS_TOKEN" });
|
|
205
|
+
|
|
206
|
+
// Or use environment variable (DEEPGRAM_ACCESS_TOKEN)
|
|
207
|
+
const deepgramClient = createClient();
|
|
176
208
|
```
|
|
177
209
|
|
|
210
|
+
### 3. Proxy Authentication
|
|
211
|
+
|
|
212
|
+
For browser environments or custom proxy setups. Pass `"proxy"` as the API key.
|
|
213
|
+
|
|
214
|
+
```js
|
|
215
|
+
import { createClient } from "@deepgram/sdk";
|
|
216
|
+
|
|
217
|
+
const deepgramClient = createClient("proxy", {
|
|
218
|
+
global: { fetch: { options: { proxy: { url: "http://localhost:8080" } } } },
|
|
219
|
+
});
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
> **Important**: Your proxy must set the `Authorization: token DEEPGRAM_API_KEY` header and forward requests to Deepgram's API.
|
|
223
|
+
|
|
224
|
+
### Getting Credentials
|
|
225
|
+
|
|
226
|
+
#### API Keys
|
|
227
|
+
|
|
228
|
+
Create API keys via the Management API:
|
|
229
|
+
|
|
230
|
+
```js
|
|
231
|
+
const { result, error } = await deepgramClient.manage.createProjectKey(projectId, {
|
|
232
|
+
comment: "My API key",
|
|
233
|
+
scopes: ["usage:write"],
|
|
234
|
+
});
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
**Endpoint**: `POST https://api.deepgram.com/v1/projects/:projectId/keys`
|
|
238
|
+
|
|
239
|
+
#### Access Tokens
|
|
240
|
+
|
|
241
|
+
Generate temporary access tokens (requires existing API key):
|
|
242
|
+
|
|
243
|
+
```js
|
|
244
|
+
const { result, error } = await deepgramClient.auth.grantToken();
|
|
245
|
+
// Returns: { access_token: string, expires_in: 30 }
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
**Endpoint**: `POST https://api.deepgram.com/v1/auth/grant`
|
|
249
|
+
|
|
250
|
+
### Environment Variables
|
|
251
|
+
|
|
252
|
+
The SDK automatically checks for credentials in this priority order:
|
|
253
|
+
|
|
254
|
+
1. `DEEPGRAM_ACCESS_TOKEN` (highest priority)
|
|
255
|
+
2. `DEEPGRAM_API_KEY` (fallback)
|
|
256
|
+
|
|
178
257
|
### Getting an API Key
|
|
179
258
|
|
|
180
259
|
🔑 To access the Deepgram API you will need a [free Deepgram API Key](https://console.deepgram.com/signup?jump=keys).
|
|
@@ -289,16 +368,51 @@ Useful for many things.
|
|
|
289
368
|
```js
|
|
290
369
|
import { createClient } from "@deepgram/sdk";
|
|
291
370
|
|
|
292
|
-
const deepgramClient = createClient(
|
|
371
|
+
const deepgramClient = createClient({
|
|
293
372
|
global: { fetch: { options: { headers: { "x-custom-header": "foo" } } } },
|
|
294
373
|
});
|
|
295
374
|
```
|
|
296
375
|
|
|
297
376
|
## Browser Usage
|
|
298
377
|
|
|
299
|
-
|
|
378
|
+
The SDK works in modern browsers with some considerations:
|
|
379
|
+
|
|
380
|
+
### WebSocket Features (Full Support)
|
|
381
|
+
|
|
382
|
+
- **Live Transcription**: ✅ Direct connection to `wss://api.deepgram.com`
|
|
383
|
+
- **Voice Agent**: ✅ Direct connection to `wss://agent.deepgram.com`
|
|
384
|
+
- **Live Text-to-Speech**: ✅ Direct connection to `wss://api.deepgram.com`
|
|
385
|
+
|
|
386
|
+
### REST API Features (Proxy Required)
|
|
387
|
+
|
|
388
|
+
- **Pre-recorded Transcription**: ⚠️ Requires proxy due to CORS
|
|
389
|
+
- **Text Intelligence**: ⚠️ Requires proxy due to CORS
|
|
390
|
+
- **Management APIs**: ⚠️ Requires proxy due to CORS
|
|
391
|
+
|
|
392
|
+
### Setup Options
|
|
393
|
+
|
|
394
|
+
#### Option 1: CDN (UMD)
|
|
395
|
+
|
|
396
|
+
```html
|
|
397
|
+
<script src="https://cdn.jsdelivr.net/npm/@deepgram/sdk"></script>
|
|
398
|
+
<script>
|
|
399
|
+
const { createClient } = deepgram;
|
|
400
|
+
const deepgramClient = createClient("YOUR_API_KEY");
|
|
401
|
+
</script>
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
#### Option 2: CDN (ESM)
|
|
300
405
|
|
|
301
|
-
|
|
406
|
+
```html
|
|
407
|
+
<script type="module">
|
|
408
|
+
import { createClient } from "https://cdn.jsdelivr.net/npm/@deepgram/sdk/+esm";
|
|
409
|
+
const deepgramClient = createClient("YOUR_API_KEY");
|
|
410
|
+
</script>
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
#### Option 3: Proxy for REST APIs
|
|
414
|
+
|
|
415
|
+
See [proxy requests in the browser](#proxy-requests-in-the-browser) for REST API access.
|
|
302
416
|
|
|
303
417
|
## Transcription
|
|
304
418
|
|
|
@@ -316,6 +430,8 @@ const { result, error } = await deepgramClient.listen.prerecorded.transcribeUrl(
|
|
|
316
430
|
);
|
|
317
431
|
```
|
|
318
432
|
|
|
433
|
+
**API Endpoint**: `POST https://api.deepgram.com/v1/listen`
|
|
434
|
+
|
|
319
435
|
[See our API reference for more info](https://developers.deepgram.com/reference/speech-to-text-api/listen).
|
|
320
436
|
|
|
321
437
|
### Local Files
|
|
@@ -332,6 +448,8 @@ const { result, error } = await deepgramClient.listen.prerecorded.transcribeFile
|
|
|
332
448
|
);
|
|
333
449
|
```
|
|
334
450
|
|
|
451
|
+
**API Endpoint**: `POST https://api.deepgram.com/v1/listen`
|
|
452
|
+
|
|
335
453
|
[See our API reference for more info](https://developers.deepgram.com/reference/speech-to-text-api/listen).
|
|
336
454
|
|
|
337
455
|
### Callbacks / Async
|
|
@@ -351,6 +469,8 @@ const { result, error } = await deepgramClient.listen.prerecorded.transcribeUrlC
|
|
|
351
469
|
);
|
|
352
470
|
```
|
|
353
471
|
|
|
472
|
+
**API Endpoint**: `POST https://api.deepgram.com/v1/listen?callback=http://callback/endpoint`
|
|
473
|
+
|
|
354
474
|
[See our API reference for more info](https://developers.deepgram.com/reference/speech-to-text-api/listen).
|
|
355
475
|
|
|
356
476
|
### Live Transcription (WebSocket)
|
|
@@ -374,6 +494,8 @@ deepgramConnection.on(LiveTranscriptionEvents.Open, () => {
|
|
|
374
494
|
});
|
|
375
495
|
```
|
|
376
496
|
|
|
497
|
+
**WebSocket Endpoint**: `wss://api.deepgram.com/v1/listen`
|
|
498
|
+
|
|
377
499
|
[See our API reference for more info](https://developers.deepgram.com/reference/speech-to-text-api/listen-streaming).
|
|
378
500
|
|
|
379
501
|
### Captions
|
|
@@ -424,6 +546,8 @@ deepgramConnection.on(AgentEvents.Open, () => {
|
|
|
424
546
|
});
|
|
425
547
|
```
|
|
426
548
|
|
|
549
|
+
**WebSocket Endpoint**: `wss://agent.deepgram.com/v1/agent/converse`
|
|
550
|
+
|
|
427
551
|
[See our API reference for more info](https://developers.deepgram.com/reference/voice-agent-api/agent).
|
|
428
552
|
|
|
429
553
|
## Text to Speech
|
|
@@ -442,6 +566,8 @@ const { result } = await deepgramClient.speak.request(
|
|
|
442
566
|
);
|
|
443
567
|
```
|
|
444
568
|
|
|
569
|
+
**API Endpoint**: `POST https://api.deepgram.com/v1/speak`
|
|
570
|
+
|
|
445
571
|
[See our API reference for more info](https://developers.deepgram.com/reference/text-to-speech-api/speak).
|
|
446
572
|
|
|
447
573
|
### Continuous Text Stream (WebSocket)
|
|
@@ -469,6 +595,8 @@ deepgramConnection.on(LiveTTSEvents.Open, () => {
|
|
|
469
595
|
});
|
|
470
596
|
```
|
|
471
597
|
|
|
598
|
+
**WebSocket Endpoint**: `wss://api.deepgram.com/v1/speak`
|
|
599
|
+
|
|
472
600
|
[See our API reference for more info](https://developers.deepgram.com/reference/text-to-speech-api/speak-streaming).
|
|
473
601
|
|
|
474
602
|
## Text Intelligence
|
|
@@ -489,9 +617,11 @@ const { result, error } = await deepgramClient.read.analyzeText(
|
|
|
489
617
|
);
|
|
490
618
|
```
|
|
491
619
|
|
|
620
|
+
**API Endpoint**: `POST https://api.deepgram.com/v1/read`
|
|
621
|
+
|
|
492
622
|
[See our API reference for more info](https://developers.deepgram.com/reference/text-intelligence-api/text-read).
|
|
493
623
|
|
|
494
|
-
##
|
|
624
|
+
## Token Management
|
|
495
625
|
|
|
496
626
|
### Get Token Details
|
|
497
627
|
|
|
@@ -501,17 +631,26 @@ Retrieves the details of the current authentication token.
|
|
|
501
631
|
const { result, error } = await deepgramClient.manage.getTokenDetails();
|
|
502
632
|
```
|
|
503
633
|
|
|
634
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/auth/token`
|
|
635
|
+
|
|
504
636
|
[See our API reference for more info](https://developers.deepgram.com/reference/authentication)
|
|
505
637
|
|
|
506
|
-
### Grant Token
|
|
638
|
+
### Grant Access Token
|
|
507
639
|
|
|
508
|
-
Creates a temporary token with a 30-second TTL.
|
|
640
|
+
Creates a temporary access token with a 30-second TTL. Requires an existing API key for authentication.
|
|
509
641
|
|
|
510
642
|
```js
|
|
643
|
+
// Create a temporary access token
|
|
511
644
|
const { result, error } = await deepgramClient.auth.grantToken();
|
|
645
|
+
// Returns: { access_token: string, expires_in: 30 }
|
|
646
|
+
|
|
647
|
+
// Use the access token in a new client instance
|
|
648
|
+
const tempClient = createClient({ accessToken: result.access_token });
|
|
512
649
|
```
|
|
513
650
|
|
|
514
|
-
|
|
651
|
+
**API Endpoint**: `POST https://api.deepgram.com/v1/auth/grant`
|
|
652
|
+
|
|
653
|
+
> **Important**: You _must_ pass an `accessToken` property to use a temporary token. Passing the token as a raw string will treat it as an API key and use the incorrect authorization scheme.
|
|
515
654
|
|
|
516
655
|
[See our API reference for more info](https://developers.deepgram.com/reference/token-based-auth-api/grant-token).
|
|
517
656
|
|
|
@@ -525,6 +664,8 @@ Returns all projects accessible by the API key.
|
|
|
525
664
|
const { result, error } = await deepgramClient.manage.getProjects();
|
|
526
665
|
```
|
|
527
666
|
|
|
667
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects`
|
|
668
|
+
|
|
528
669
|
[See our API reference for more info](https://developers.deepgram.com/reference/get-projects).
|
|
529
670
|
|
|
530
671
|
### Get Project
|
|
@@ -535,6 +676,8 @@ Retrieves a specific project based on the provided project_id.
|
|
|
535
676
|
const { result, error } = await deepgramClient.manage.getProject(projectId);
|
|
536
677
|
```
|
|
537
678
|
|
|
679
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects/:projectId`
|
|
680
|
+
|
|
538
681
|
[See our API reference for more info](https://developers.deepgram.com/reference/get-project).
|
|
539
682
|
|
|
540
683
|
### Update Project
|
|
@@ -545,6 +688,8 @@ Update a project.
|
|
|
545
688
|
const { result, error } = await deepgramClient.manage.updateProject(projectId, options);
|
|
546
689
|
```
|
|
547
690
|
|
|
691
|
+
**API Endpoint**: `PATCH https://api.deepgram.com/v1/projects/:projectId`
|
|
692
|
+
|
|
548
693
|
[See our API reference for more info](https://developers.deepgram.com/reference/update-project).
|
|
549
694
|
|
|
550
695
|
### Delete Project
|
|
@@ -555,6 +700,8 @@ Delete a project.
|
|
|
555
700
|
const { error } = await deepgramClient.manage.deleteProject(projectId);
|
|
556
701
|
```
|
|
557
702
|
|
|
703
|
+
**API Endpoint**: `DELETE https://api.deepgram.com/v1/projects/:projectId`
|
|
704
|
+
|
|
558
705
|
[See our API reference for more info](https://developers.deepgram.com/reference/delete-project).
|
|
559
706
|
|
|
560
707
|
## Keys
|
|
@@ -567,6 +714,8 @@ Retrieves all keys associated with the provided project_id.
|
|
|
567
714
|
const { result, error } = await deepgramClient.manage.getProjectKeys(projectId);
|
|
568
715
|
```
|
|
569
716
|
|
|
717
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects/:projectId/keys`
|
|
718
|
+
|
|
570
719
|
[See our API reference for more info](https://developers.deepgram.com/reference/list-keys).
|
|
571
720
|
|
|
572
721
|
### Get Key
|
|
@@ -577,6 +726,8 @@ Retrieves a specific key associated with the provided project_id.
|
|
|
577
726
|
const { result, error } = await deepgramClient.manage.getProjectKey(projectId, projectKeyId);
|
|
578
727
|
```
|
|
579
728
|
|
|
729
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects/:projectId/keys/:keyId`
|
|
730
|
+
|
|
580
731
|
[See our API reference for more info](https://developers.deepgram.com/reference/get-key).
|
|
581
732
|
|
|
582
733
|
### Create Key
|
|
@@ -584,9 +735,17 @@ const { result, error } = await deepgramClient.manage.getProjectKey(projectId, p
|
|
|
584
735
|
Creates an API key with the provided scopes.
|
|
585
736
|
|
|
586
737
|
```js
|
|
587
|
-
const { result, error } = await deepgramClient.manage.createProjectKey(projectId,
|
|
738
|
+
const { result, error } = await deepgramClient.manage.createProjectKey(projectId, {
|
|
739
|
+
comment: "My API key",
|
|
740
|
+
scopes: ["usage:write"], // Required: array of scope strings
|
|
741
|
+
tags: ["production"], // Optional: array of tag strings
|
|
742
|
+
time_to_live_in_seconds: 86400, // Optional: TTL in seconds
|
|
743
|
+
// OR use expiration_date: "2024-12-31T23:59:59Z" // Optional: ISO date string
|
|
744
|
+
});
|
|
588
745
|
```
|
|
589
746
|
|
|
747
|
+
**API Endpoint**: `POST https://api.deepgram.com/v1/projects/:projectId/keys`
|
|
748
|
+
|
|
590
749
|
[See our API reference for more info](https://developers.deepgram.com/reference/create-key).
|
|
591
750
|
|
|
592
751
|
### Delete Key
|
|
@@ -597,6 +756,8 @@ Deletes a specific key associated with the provided project_id.
|
|
|
597
756
|
const { error } = await deepgramClient.manage.deleteProjectKey(projectId, projectKeyId);
|
|
598
757
|
```
|
|
599
758
|
|
|
759
|
+
**API Endpoint**: `DELETE https://api.deepgram.com/v1/projects/:projectId/keys/:keyId`
|
|
760
|
+
|
|
600
761
|
[See our API reference for more info](https://developers.deepgram.com/reference/delete-key).
|
|
601
762
|
|
|
602
763
|
## Members
|
|
@@ -609,6 +770,8 @@ Retrieves account objects for all of the accounts in the specified project_id.
|
|
|
609
770
|
const { result, error } = await deepgramClient.manage.getProjectMembers(projectId);
|
|
610
771
|
```
|
|
611
772
|
|
|
773
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects/:projectId/members`
|
|
774
|
+
|
|
612
775
|
[See our API reference for more info](https://developers.deepgram.com/reference/get-members).
|
|
613
776
|
|
|
614
777
|
### Remove Member
|
|
@@ -619,6 +782,8 @@ Removes member account for specified member_id.
|
|
|
619
782
|
const { error } = await deepgramClient.manage.removeProjectMember(projectId, projectMemberId);
|
|
620
783
|
```
|
|
621
784
|
|
|
785
|
+
**API Endpoint**: `DELETE https://api.deepgram.com/v1/projects/:projectId/members/:memberId`
|
|
786
|
+
|
|
622
787
|
[See our API reference for more info](https://developers.deepgram.com/reference/remove-member).
|
|
623
788
|
|
|
624
789
|
## Scopes
|
|
@@ -634,6 +799,8 @@ const { result, error } = await deepgramClient.manage.getProjectMemberScopes(
|
|
|
634
799
|
);
|
|
635
800
|
```
|
|
636
801
|
|
|
802
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects/:projectId/members/:memberId/scopes`
|
|
803
|
+
|
|
637
804
|
[See our API reference for more info](https://developers.deepgram.com/reference/get-member-scopes).
|
|
638
805
|
|
|
639
806
|
### Update Scope
|
|
@@ -648,6 +815,8 @@ const { result, error } = await deepgramClient.manage.updateProjectMemberScope(
|
|
|
648
815
|
);
|
|
649
816
|
```
|
|
650
817
|
|
|
818
|
+
**API Endpoint**: `PUT https://api.deepgram.com/v1/projects/:projectId/members/:memberId/scopes`
|
|
819
|
+
|
|
651
820
|
[See our API reference for more info](https://developers.deepgram.com/reference/update-scope).
|
|
652
821
|
|
|
653
822
|
## Invitations
|
|
@@ -660,6 +829,8 @@ Retrieves all invitations associated with the provided project_id.
|
|
|
660
829
|
const { result, error } = await deepgramClient.manage.getProjectInvites(projectId);
|
|
661
830
|
```
|
|
662
831
|
|
|
832
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects/:projectId/invites`
|
|
833
|
+
|
|
663
834
|
[See our API reference for more info](https://developers.deepgram.com/reference/list-invites).
|
|
664
835
|
|
|
665
836
|
### Send Invite
|
|
@@ -670,6 +841,8 @@ Sends an invitation to the provided email address.
|
|
|
670
841
|
const { result, error } = await deepgramClient.manage.sendProjectInvite(projectId, options);
|
|
671
842
|
```
|
|
672
843
|
|
|
844
|
+
**API Endpoint**: `POST https://api.deepgram.com/v1/projects/:projectId/invites`
|
|
845
|
+
|
|
673
846
|
[See our API reference for more info](https://developers.deepgram.com/reference/send-invites).
|
|
674
847
|
|
|
675
848
|
### Delete Invite
|
|
@@ -680,6 +853,8 @@ Removes the specified invitation from the project.
|
|
|
680
853
|
const { error } = await deepgramClient.manage.deleteProjectInvite(projectId, email);
|
|
681
854
|
```
|
|
682
855
|
|
|
856
|
+
**API Endpoint**: `DELETE https://api.deepgram.com/v1/projects/:projectId/invites/:email`
|
|
857
|
+
|
|
683
858
|
[See our API reference for more info](https://developers.deepgram.com/reference/delete-invite).
|
|
684
859
|
|
|
685
860
|
### Leave Project
|
|
@@ -690,6 +865,8 @@ Removes the authenticated user from the project.
|
|
|
690
865
|
const { result, error } = await deepgramClient.manage.leaveProject(projectId);
|
|
691
866
|
```
|
|
692
867
|
|
|
868
|
+
**API Endpoint**: `DELETE https://api.deepgram.com/v1/projects/:projectId/leave`
|
|
869
|
+
|
|
693
870
|
[See our API reference for more info](https://developers.deepgram.com/reference/leave-project).
|
|
694
871
|
|
|
695
872
|
## Usage
|
|
@@ -702,6 +879,8 @@ Retrieves all requests associated with the provided project_id based on the prov
|
|
|
702
879
|
const { result, error } = await deepgramClient.manage.getProjectUsageRequests(projectId, options);
|
|
703
880
|
```
|
|
704
881
|
|
|
882
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects/:projectId/requests`
|
|
883
|
+
|
|
705
884
|
### Get Request
|
|
706
885
|
|
|
707
886
|
Retrieves a specific request associated with the provided project_id.
|
|
@@ -710,6 +889,8 @@ Retrieves a specific request associated with the provided project_id.
|
|
|
710
889
|
const { result, error } = await deepgramClient.manage.getProjectUsageRequest(projectId, requestId);
|
|
711
890
|
```
|
|
712
891
|
|
|
892
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects/:projectId/requests/:requestId`
|
|
893
|
+
|
|
713
894
|
[See our API reference for more info](https://developers.deepgram.com/reference/get-request).
|
|
714
895
|
|
|
715
896
|
### Summarize Usage
|
|
@@ -720,6 +901,8 @@ Retrieves usage associated with the provided project_id based on the provided op
|
|
|
720
901
|
const { result, error } = await deepgramClient.manage.getProjectUsageSummary(projectId, options);
|
|
721
902
|
```
|
|
722
903
|
|
|
904
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects/:projectId/usage`
|
|
905
|
+
|
|
723
906
|
[See our API reference for more info](https://developers.deepgram.com/reference/summarize-usage).
|
|
724
907
|
|
|
725
908
|
### Get Fields
|
|
@@ -730,6 +913,8 @@ Lists the features, models, tags, languages, and processing method used for requ
|
|
|
730
913
|
const { result, error } = await deepgramClient.manage.getProjectUsageFields(projectId, options);
|
|
731
914
|
```
|
|
732
915
|
|
|
916
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects/:projectId/usage/fields`
|
|
917
|
+
|
|
733
918
|
[See our API reference for more info](https://developers.deepgram.com/reference/get-fields).
|
|
734
919
|
|
|
735
920
|
### Summarize Usage
|
|
@@ -740,6 +925,8 @@ const { result, error } = await deepgramClient.manage.getProjectUsageFields(proj
|
|
|
740
925
|
const { result, error } = await deepgramClient.manage.getProjectUsage(projectId, options);
|
|
741
926
|
```
|
|
742
927
|
|
|
928
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects/:projectId/usage` (deprecated)
|
|
929
|
+
|
|
743
930
|
[See our API reference for more info](https://developers.deepgram.com/reference/management-api/usage/get).
|
|
744
931
|
|
|
745
932
|
## Billing
|
|
@@ -752,6 +939,8 @@ Retrieves the list of balance info for the specified project.
|
|
|
752
939
|
const { result, error } = await deepgramClient.manage.getProjectBalances(projectId);
|
|
753
940
|
```
|
|
754
941
|
|
|
942
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects/:projectId/balances`
|
|
943
|
+
|
|
755
944
|
[See our API reference for more info](https://developers.deepgram.com/reference/get-all-balances).
|
|
756
945
|
|
|
757
946
|
### Get Balance
|
|
@@ -762,10 +951,22 @@ Retrieves the balance info for the specified project and balance_id.
|
|
|
762
951
|
const { result, error } = await deepgramClient.manage.getProjectBalance(projectId, balanceId);
|
|
763
952
|
```
|
|
764
953
|
|
|
954
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects/:projectId/balances/:balanceId`
|
|
955
|
+
|
|
765
956
|
[See our API reference for more info](https://developers.deepgram.com/reference/get-balance).
|
|
766
957
|
|
|
767
958
|
## Models
|
|
768
959
|
|
|
960
|
+
### Get All Models
|
|
961
|
+
|
|
962
|
+
Retrieves all models available globally.
|
|
963
|
+
|
|
964
|
+
```js
|
|
965
|
+
const { result, error } = await deepgramClient.models.getAll();
|
|
966
|
+
```
|
|
967
|
+
|
|
968
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/models`
|
|
969
|
+
|
|
769
970
|
### Get All Project Models
|
|
770
971
|
|
|
771
972
|
Retrieves all models available for a given project.
|
|
@@ -774,6 +975,8 @@ Retrieves all models available for a given project.
|
|
|
774
975
|
const { result, error } = await deepgramClient.manage.getAllModels(projectId, {});
|
|
775
976
|
```
|
|
776
977
|
|
|
978
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects/:projectId/models`
|
|
979
|
+
|
|
777
980
|
[See our API reference for more info](https://developers.deepgram.com/reference/management-api/projects/list-models).
|
|
778
981
|
|
|
779
982
|
### Get Model
|
|
@@ -784,6 +987,8 @@ Retrieves details of a specific model.
|
|
|
784
987
|
const { result, error } = await deepgramClient.manage.getModel(projectId, modelId);
|
|
785
988
|
```
|
|
786
989
|
|
|
990
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects/:projectId/models/:modelId`
|
|
991
|
+
|
|
787
992
|
[See our API reference for more info](https://developers.deepgram.com/reference/management-api/models/get)
|
|
788
993
|
|
|
789
994
|
## On-Prem APIs
|
|
@@ -796,6 +1001,8 @@ Lists sets of distribution credentials for the specified project.
|
|
|
796
1001
|
const { result, error } = await deepgramClient.onprem.listCredentials(projectId);
|
|
797
1002
|
```
|
|
798
1003
|
|
|
1004
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects/:projectId/onprem/distribution/credentials`
|
|
1005
|
+
|
|
799
1006
|
[See our API reference for more info](https://developers.deepgram.com/reference/self-hosted-api/list-credentials)
|
|
800
1007
|
|
|
801
1008
|
### Get On-Prem credentials
|
|
@@ -806,6 +1013,8 @@ Returns a set of distribution credentials for the specified project.
|
|
|
806
1013
|
const { result, error } = await deepgramClient.onprem.getCredentials(projectId, credentialId);
|
|
807
1014
|
```
|
|
808
1015
|
|
|
1016
|
+
**API Endpoint**: `GET https://api.deepgram.com/v1/projects/:projectId/onprem/distribution/credentials/:credentialsId`
|
|
1017
|
+
|
|
809
1018
|
[See our API reference for more info](https://developers.deepgram.com/reference/self-hosted-api/get-credentials)
|
|
810
1019
|
|
|
811
1020
|
### Create On-Prem credentials
|
|
@@ -816,6 +1025,8 @@ Creates a set of distribution credentials for the specified project.
|
|
|
816
1025
|
const { result, error } = await deepgramClient.onprem.createCredentials(projectId, options);
|
|
817
1026
|
```
|
|
818
1027
|
|
|
1028
|
+
**API Endpoint**: `POST https://api.deepgram.com/v1/projects/:projectId/onprem/distribution/credentials`
|
|
1029
|
+
|
|
819
1030
|
[See our API reference for more info](https://developers.deepgram.com/reference/self-hosted-api/create-credentials)
|
|
820
1031
|
|
|
821
1032
|
### Delete On-Prem credentials
|
|
@@ -826,6 +1037,8 @@ Deletes a set of distribution credentials for the specified project.
|
|
|
826
1037
|
const { result, error } = await deepgramClient.onprem.deleteCredentials(projectId, credentialId);
|
|
827
1038
|
```
|
|
828
1039
|
|
|
1040
|
+
**API Endpoint**: `DELETE https://api.deepgram.com/v1/projects/:projectId/onprem/distribution/credentials/:credentialsId`
|
|
1041
|
+
|
|
829
1042
|
[See our API reference for more info](https://developers.deepgram.com/reference/self-hosted-api/delete-credentials)
|
|
830
1043
|
|
|
831
1044
|
## Backwards Compatibility
|
|
@@ -17,6 +17,12 @@ interface AgentLiveSchema extends Record<string, unknown> {
|
|
|
17
17
|
* @default false
|
|
18
18
|
*/
|
|
19
19
|
experimental?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @see https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program
|
|
22
|
+
* To opt out of Deepgram Model Improvement Program.
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
mips_opt_out?: boolean;
|
|
20
26
|
audio: {
|
|
21
27
|
input?: {
|
|
22
28
|
/**
|
|
@@ -80,11 +86,6 @@ interface AgentLiveSchema extends Record<string, unknown> {
|
|
|
80
86
|
* Optional message the agent will say at the start of the connection.
|
|
81
87
|
*/
|
|
82
88
|
greeting?: string;
|
|
83
|
-
/**
|
|
84
|
-
* To opt out of Deepgram Model Improvement Program.
|
|
85
|
-
* @default false
|
|
86
|
-
*/
|
|
87
|
-
mip_opt_out?: boolean;
|
|
88
89
|
};
|
|
89
90
|
}
|
|
90
91
|
export type { AgentLiveSchema, SpeakProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentLiveSchema.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/AgentLiveSchema.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE3D,KAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,CAAC,EAAE;QACT,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAClC,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,UAAU,eAAgB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACvD;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE;QACL,KAAK,CAAC,EAAE;YACN;;eAEG;YACH,QAAQ,EAAE,MAAM,CAAC;YACjB;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;SACrB,CAAC;QACF;;WAEG;QACH,MAAM,CAAC,EAAE;YACP,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB;;eAEG;YACH,SAAS,CAAC,EAAE,MAAM,CAAC;SACpB,CAAC;KACH,CAAC;IACF,KAAK,EAAE;QACL;;;WAGG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE;YACP,QAAQ,EAAE,QAAQ,CAAC;SACp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EAAE,CAAC;YACJ,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,cAAc,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;SACjC,CAAC;QACF;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "4.11.
|
|
1
|
+
export declare const version = "4.11.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/main/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractLiveClient.d.ts","sourceRoot":"","sources":["../../../src/packages/AbstractLiveClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAQ,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,IAAI,CAAC;AAEnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAEvD;;;;;;;GAOG;AACH,UAAU,wBAAwB;IAChC,KACE,OAAO,EAAE,MAAM,GAAG,GAAG,EACrB,QAAQ,CAAC,EAAE,GAAG,EACd,OAAO,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GACxC,aAAa,CAAC;CAClB;AAED;;;;;GAKG;AACH,KAAK,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAEhE;;GAEG;AACH,KAAK,cAAc,GAAG,MAAM,GAAG,eAAe,GAAG,IAAI,CAAC;AAmBtD;;;;;;GAMG;AACH,8BAAsB,kBAAmB,SAAQ,cAAc;IACtD,OAAO,EAAE;QAAE,CAAC,GA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,CAAC"}
|
|
@@ -138,8 +138,8 @@ class AbstractLiveClient extends AbstractClient_1.AbstractClient {
|
|
|
138
138
|
headers: this.headers,
|
|
139
139
|
});
|
|
140
140
|
console.log(`Using WS package`);
|
|
141
|
+
this.setupConnection();
|
|
141
142
|
});
|
|
142
|
-
this.setupConnection();
|
|
143
143
|
return;
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
@@ -165,8 +165,8 @@ class AbstractLiveClient extends AbstractClient_1.AbstractClient {
|
|
|
165
165
|
this.conn = new WS(requestUrl, undefined, {
|
|
166
166
|
headers: this.headers,
|
|
167
167
|
});
|
|
168
|
+
this.setupConnection();
|
|
168
169
|
});
|
|
169
|
-
this.setupConnection();
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
172
|
* Disconnects the socket from the client.
|