@ai-sdk/deepgram 3.0.0-beta.5 → 3.0.0-beta.51

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/CHANGELOG.md CHANGED
@@ -1,5 +1,383 @@
1
1
  # @ai-sdk/deepgram
2
2
 
3
+ ## 3.0.0-beta.51
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [0416e3e]
8
+ - @ai-sdk/provider@4.0.0-beta.20
9
+ - @ai-sdk/provider-utils@5.0.0-beta.50
10
+
11
+ ## 3.0.0-beta.50
12
+
13
+ ### Patch Changes
14
+
15
+ - b8396f0: trigger initial beta release
16
+ - Updated dependencies [b8396f0]
17
+ - @ai-sdk/provider-utils@5.0.0-beta.49
18
+ - @ai-sdk/provider@4.0.0-beta.19
19
+
20
+ ## 3.0.0-canary.49
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [aeda373]
25
+ - Updated dependencies [375fdd7]
26
+ - Updated dependencies [b4507d5]
27
+ - @ai-sdk/provider-utils@5.0.0-canary.48
28
+
29
+ ## 3.0.0-canary.48
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [bae5e2b]
34
+ - @ai-sdk/provider-utils@5.0.0-canary.47
35
+
36
+ ## 3.0.0-canary.47
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [ce769dd]
41
+ - @ai-sdk/provider@4.0.0-canary.18
42
+ - @ai-sdk/provider-utils@5.0.0-canary.46
43
+
44
+ ## 3.0.0-canary.46
45
+
46
+ ### Patch Changes
47
+
48
+ - Updated dependencies [ee798eb]
49
+ - Updated dependencies [daf6637]
50
+ - @ai-sdk/provider-utils@5.0.0-canary.45
51
+
52
+ ## 3.0.0-canary.45
53
+
54
+ ### Patch Changes
55
+
56
+ - Updated dependencies [6c93e36]
57
+ - Updated dependencies [f617ac2]
58
+ - @ai-sdk/provider-utils@5.0.0-canary.44
59
+
60
+ ## 3.0.0-canary.44
61
+
62
+ ### Patch Changes
63
+
64
+ - 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
65
+ - Updated dependencies [7fc6bd6]
66
+ - @ai-sdk/provider-utils@5.0.0-canary.43
67
+ - @ai-sdk/provider@4.0.0-canary.17
68
+
69
+ ## 3.0.0-canary.43
70
+
71
+ ### Patch Changes
72
+
73
+ - Updated dependencies [a6617c5]
74
+ - @ai-sdk/provider-utils@5.0.0-canary.42
75
+
76
+ ## 3.0.0-canary.42
77
+
78
+ ### Patch Changes
79
+
80
+ - Updated dependencies [28dfa06]
81
+ - Updated dependencies [e93fa91]
82
+ - @ai-sdk/provider-utils@5.0.0-canary.41
83
+
84
+ ## 3.0.0-canary.41
85
+
86
+ ### Patch Changes
87
+
88
+ - Updated dependencies [a7de9c9]
89
+ - @ai-sdk/provider-utils@5.0.0-canary.40
90
+
91
+ ## 3.0.0-canary.40
92
+
93
+ ### Patch Changes
94
+
95
+ - Updated dependencies [105f95b]
96
+ - @ai-sdk/provider-utils@5.0.0-canary.39
97
+
98
+ ## 3.0.0-canary.39
99
+
100
+ ### Patch Changes
101
+
102
+ - Updated dependencies [ca446f8]
103
+ - @ai-sdk/provider-utils@5.0.0-canary.38
104
+
105
+ ## 3.0.0-canary.38
106
+
107
+ ### Patch Changes
108
+
109
+ - Updated dependencies [d848405]
110
+ - @ai-sdk/provider-utils@5.0.0-canary.37
111
+
112
+ ## 3.0.0-canary.37
113
+
114
+ ### Patch Changes
115
+
116
+ - Updated dependencies [ca39020]
117
+ - @ai-sdk/provider-utils@5.0.0-canary.36
118
+
119
+ ## 3.0.0-canary.36
120
+
121
+ ### Patch Changes
122
+
123
+ - Updated dependencies [f634bac]
124
+ - @ai-sdk/provider-utils@5.0.0-canary.35
125
+
126
+ ## 3.0.0-canary.35
127
+
128
+ ### Patch Changes
129
+
130
+ - Updated dependencies [69254e0]
131
+ - Updated dependencies [3015fc3]
132
+ - @ai-sdk/provider-utils@5.0.0-canary.34
133
+
134
+ ## 3.0.0-canary.34
135
+
136
+ ### Patch Changes
137
+
138
+ - Updated dependencies [2427d88]
139
+ - @ai-sdk/provider-utils@5.0.0-canary.33
140
+
141
+ ## 3.0.0-canary.33
142
+
143
+ ### Patch Changes
144
+
145
+ - Updated dependencies [5463d0d]
146
+ - @ai-sdk/provider-utils@5.0.0-canary.32
147
+ - @ai-sdk/provider@4.0.0-canary.16
148
+
149
+ ## 3.0.0-canary.32
150
+
151
+ ### Patch Changes
152
+
153
+ - 0c4c275: trigger initial canary release
154
+ - Updated dependencies [0c4c275]
155
+ - @ai-sdk/provider-utils@5.0.0-canary.31
156
+ - @ai-sdk/provider@4.0.0-canary.15
157
+
158
+ ## 3.0.0-beta.31
159
+
160
+ ### Major Changes
161
+
162
+ - 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
163
+
164
+ For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
165
+
166
+ ### Patch Changes
167
+
168
+ - Updated dependencies [08d2129]
169
+ - @ai-sdk/provider-utils@5.0.0-beta.30
170
+
171
+ ## 3.0.0-beta.30
172
+
173
+ ### Patch Changes
174
+
175
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
176
+ - Updated dependencies [9bd6512]
177
+ - Updated dependencies [258c093]
178
+ - Updated dependencies [b6783da]
179
+ - @ai-sdk/provider-utils@5.0.0-beta.29
180
+ - @ai-sdk/provider@4.0.0-beta.14
181
+
182
+ ## 3.0.0-beta.29
183
+
184
+ ### Patch Changes
185
+
186
+ - 9f0e36c: trigger release for all packages after provenance setup
187
+ - Updated dependencies [9f0e36c]
188
+ - @ai-sdk/provider@4.0.0-beta.13
189
+ - @ai-sdk/provider-utils@5.0.0-beta.28
190
+
191
+ ## 3.0.0-beta.28
192
+
193
+ ### Patch Changes
194
+
195
+ - Updated dependencies [785fe16]
196
+ - Updated dependencies [67df0a0]
197
+ - Updated dependencies [befb78c]
198
+ - Updated dependencies [0458559]
199
+ - Updated dependencies [5852c0a]
200
+ - Updated dependencies [fc92055]
201
+ - @ai-sdk/provider-utils@5.0.0-beta.27
202
+
203
+ ## 3.0.0-beta.27
204
+
205
+ ### Patch Changes
206
+
207
+ - Updated dependencies [2e98477]
208
+ - @ai-sdk/provider-utils@5.0.0-beta.26
209
+
210
+ ## 3.0.0-beta.26
211
+
212
+ ### Patch Changes
213
+
214
+ - Updated dependencies [eea8d98]
215
+ - @ai-sdk/provider-utils@5.0.0-beta.25
216
+
217
+ ## 3.0.0-beta.25
218
+
219
+ ### Patch Changes
220
+
221
+ - Updated dependencies [f807e45]
222
+ - @ai-sdk/provider-utils@5.0.0-beta.24
223
+
224
+ ## 3.0.0-beta.24
225
+
226
+ ### Patch Changes
227
+
228
+ - Updated dependencies [350ea38]
229
+ - @ai-sdk/provider-utils@5.0.0-beta.23
230
+
231
+ ## 3.0.0-beta.23
232
+
233
+ ### Patch Changes
234
+
235
+ - Updated dependencies [083947b]
236
+ - @ai-sdk/provider-utils@5.0.0-beta.22
237
+
238
+ ## 3.0.0-beta.22
239
+
240
+ ### Patch Changes
241
+
242
+ - Updated dependencies [add1126]
243
+ - @ai-sdk/provider-utils@5.0.0-beta.21
244
+
245
+ ## 3.0.0-beta.21
246
+
247
+ ### Patch Changes
248
+
249
+ - b3976a2: Add workflow serialization support to all provider models.
250
+
251
+ **`@ai-sdk/provider-utils`:** New `serializeModel()` helper that extracts only serializable properties from a model instance, filtering out functions and objects containing functions. Third-party provider authors can use this to add workflow support to their own models.
252
+
253
+ **All providers:** `headers` is now optional in provider config types. This is non-breaking — existing code that passes `headers` continues to work. Custom provider implementations that construct model configs manually can now omit `headers`, which is useful when models are deserialized from a workflow step boundary where auth is provided separately.
254
+
255
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
256
+
257
+ - Updated dependencies [b3976a2]
258
+ - Updated dependencies [ff5eba1]
259
+ - @ai-sdk/provider-utils@5.0.0-beta.20
260
+ - @ai-sdk/provider@4.0.0-beta.12
261
+
262
+ ## 3.0.0-beta.20
263
+
264
+ ### Major Changes
265
+
266
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
267
+
268
+ ### Patch Changes
269
+
270
+ - Updated dependencies [ef992f8]
271
+ - @ai-sdk/provider@4.0.0-beta.11
272
+ - @ai-sdk/provider-utils@5.0.0-beta.19
273
+
274
+ ## 3.0.0-beta.19
275
+
276
+ ### Patch Changes
277
+
278
+ - Updated dependencies [90e2d8a]
279
+ - @ai-sdk/provider-utils@5.0.0-beta.18
280
+
281
+ ## 3.0.0-beta.18
282
+
283
+ ### Patch Changes
284
+
285
+ - Updated dependencies [3ae1786]
286
+ - @ai-sdk/provider-utils@5.0.0-beta.17
287
+
288
+ ## 3.0.0-beta.17
289
+
290
+ ### Patch Changes
291
+
292
+ - Updated dependencies [176466a]
293
+ - @ai-sdk/provider@4.0.0-beta.10
294
+ - @ai-sdk/provider-utils@5.0.0-beta.16
295
+
296
+ ## 3.0.0-beta.16
297
+
298
+ ### Patch Changes
299
+
300
+ - Updated dependencies [e311194]
301
+ - @ai-sdk/provider@4.0.0-beta.9
302
+ - @ai-sdk/provider-utils@5.0.0-beta.15
303
+
304
+ ## 3.0.0-beta.15
305
+
306
+ ### Patch Changes
307
+
308
+ - Updated dependencies [34bd95d]
309
+ - Updated dependencies [008271d]
310
+ - @ai-sdk/provider@4.0.0-beta.8
311
+ - @ai-sdk/provider-utils@5.0.0-beta.14
312
+
313
+ ## 3.0.0-beta.14
314
+
315
+ ### Patch Changes
316
+
317
+ - Updated dependencies [b0c2869]
318
+ - Updated dependencies [7e26e81]
319
+ - @ai-sdk/provider-utils@5.0.0-beta.13
320
+
321
+ ## 3.0.0-beta.13
322
+
323
+ ### Patch Changes
324
+
325
+ - Updated dependencies [46d1149]
326
+ - @ai-sdk/provider-utils@5.0.0-beta.12
327
+
328
+ ## 3.0.0-beta.12
329
+
330
+ ### Patch Changes
331
+
332
+ - Updated dependencies [6fd51c0]
333
+ - @ai-sdk/provider-utils@5.0.0-beta.11
334
+ - @ai-sdk/provider@4.0.0-beta.7
335
+
336
+ ## 3.0.0-beta.11
337
+
338
+ ### Patch Changes
339
+
340
+ - Updated dependencies [c29a26f]
341
+ - @ai-sdk/provider-utils@5.0.0-beta.10
342
+ - @ai-sdk/provider@4.0.0-beta.6
343
+
344
+ ## 3.0.0-beta.10
345
+
346
+ ### Patch Changes
347
+
348
+ - 38fc777: Add AI Gateway hint to provider READMEs
349
+
350
+ ## 3.0.0-beta.9
351
+
352
+ ### Patch Changes
353
+
354
+ - Updated dependencies [2e17091]
355
+ - @ai-sdk/provider-utils@5.0.0-beta.9
356
+
357
+ ## 3.0.0-beta.8
358
+
359
+ ### Patch Changes
360
+
361
+ - Updated dependencies [986c6fd]
362
+ - Updated dependencies [493295c]
363
+ - @ai-sdk/provider-utils@5.0.0-beta.8
364
+
365
+ ## 3.0.0-beta.7
366
+
367
+ ### Patch Changes
368
+
369
+ - Updated dependencies [1f509d4]
370
+ - @ai-sdk/provider-utils@5.0.0-beta.7
371
+ - @ai-sdk/provider@4.0.0-beta.5
372
+
373
+ ## 3.0.0-beta.6
374
+
375
+ ### Patch Changes
376
+
377
+ - Updated dependencies [3887c70]
378
+ - @ai-sdk/provider-utils@5.0.0-beta.6
379
+ - @ai-sdk/provider@4.0.0-beta.4
380
+
3
381
  ## 3.0.0-beta.5
4
382
 
5
383
  ### Patch Changes
@@ -241,13 +619,13 @@
241
619
  Before
242
620
 
243
621
  ```ts
244
- model.textEmbeddingModel('my-model-id');
622
+ model.textEmbeddingModel("my-model-id");
245
623
  ```
246
624
 
247
625
  After
248
626
 
249
627
  ```ts
250
- model.embeddingModel('my-model-id');
628
+ model.embeddingModel("my-model-id");
251
629
  ```
252
630
 
253
631
  - 7f91f36: feat(deepgram): add language detection support
@@ -463,13 +841,13 @@
463
841
  Before
464
842
 
465
843
  ```ts
466
- model.textEmbeddingModel('my-model-id');
844
+ model.textEmbeddingModel("my-model-id");
467
845
  ```
468
846
 
469
847
  After
470
848
 
471
849
  ```ts
472
- model.embeddingModel('my-model-id');
850
+ model.embeddingModel("my-model-id");
473
851
  ```
474
852
 
475
853
  - Updated dependencies [8d9e8ad]
package/README.md CHANGED
@@ -3,6 +3,8 @@
3
3
  The **[Deepgram provider](https://ai-sdk.dev/providers/ai-sdk-providers/deepgram)** for the [AI SDK](https://ai-sdk.dev/docs)
4
4
  contains transcription model support for the Deepgram transcription API and speech model support for the Deepgram text-to-speech API.
5
5
 
6
+ > **Deploying to Vercel?** With Vercel's AI Gateway you can access Deepgram (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).
7
+
6
8
  ## Setup
7
9
 
8
10
  The Deepgram provider is available in the `@ai-sdk/deepgram` module. You can install it with
@@ -33,7 +35,7 @@ import { deepgram } from '@ai-sdk/deepgram';
33
35
 
34
36
  ```ts
35
37
  import { deepgram } from '@ai-sdk/deepgram';
36
- import { experimental_transcribe as transcribe } from 'ai';
38
+ import { transcribe } from 'ai';
37
39
 
38
40
  const { text } = await transcribe({
39
41
  model: deepgram.transcription('nova-3'),
@@ -47,7 +49,7 @@ const { text } = await transcribe({
47
49
 
48
50
  ```ts
49
51
  import { deepgram } from '@ai-sdk/deepgram';
50
- import { experimental_transcribe as transcribe } from 'ai';
52
+ import { transcribe } from 'ai';
51
53
 
52
54
  const { text, language } = await transcribe({
53
55
  model: deepgram.transcription('nova-3'),
@@ -66,7 +68,7 @@ const { text, language } = await transcribe({
66
68
 
67
69
  ```ts
68
70
  import { deepgram } from '@ai-sdk/deepgram';
69
- import { experimental_generateSpeech as generateSpeech } from 'ai';
71
+ import { generateSpeech } from 'ai';
70
72
 
71
73
  const { audio } = await generateSpeech({
72
74
  model: deepgram.speech('aura-2-helena-en'),
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
+ import * as _ai_sdk_provider from '@ai-sdk/provider';
1
2
  import { TranscriptionModelV4, ProviderV4, SpeechModelV4 } from '@ai-sdk/provider';
2
- import { FetchFunction } from '@ai-sdk/provider-utils';
3
+ import { FetchFunction, WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@ai-sdk/provider-utils';
3
4
  import { z } from 'zod/v4';
4
5
 
5
6
  type DeepgramConfig = {
@@ -8,34 +9,13 @@ type DeepgramConfig = {
8
9
  modelId: string;
9
10
  path: string;
10
11
  }) => string;
11
- headers: () => Record<string, string | undefined>;
12
+ headers?: () => Record<string, string | undefined>;
12
13
  fetch?: FetchFunction;
13
14
  generateId?: () => string;
14
15
  };
15
16
 
16
17
  type DeepgramTranscriptionModelId = 'base' | 'base-general' | 'base-meeting' | 'base-phonecall' | 'base-finance' | 'base-conversationalai' | 'base-voicemail' | 'base-video' | 'enhanced' | 'enhanced-general' | 'enhanced-meeting' | 'enhanced-phonecall' | 'enhanced-finance' | 'nova' | 'nova-general' | 'nova-phonecall' | 'nova-medical' | 'nova-2' | 'nova-2-general' | 'nova-2-meeting' | 'nova-2-phonecall' | 'nova-2-finance' | 'nova-2-conversationalai' | 'nova-2-voicemail' | 'nova-2-video' | 'nova-2-medical' | 'nova-2-drivethru' | 'nova-2-automotive' | 'nova-2-atc' | 'nova-3' | 'nova-3-general' | 'nova-3-medical' | (string & {});
17
18
 
18
- declare const deepgramTranscriptionModelOptionsSchema: z.ZodObject<{
19
- language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- detectLanguage: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
21
- smartFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
22
- punctuate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
23
- paragraphs: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
24
- summarize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"v2">, z.ZodLiteral<false>]>>>;
25
- topics: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
26
- intents: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
27
- sentiment: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
28
- detectEntities: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
29
- redact: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
30
- replace: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
- search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
- keyterm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
- diarize: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
34
- utterances: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
35
- uttSplit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
- fillerWords: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
37
- }, z.core.$strip>;
38
- type DeepgramTranscriptionModelOptions = z.infer<typeof deepgramTranscriptionModelOptionsSchema>;
39
19
  interface DeepgramTranscriptionModelConfig extends DeepgramConfig {
40
20
  _internal?: {
41
21
  currentDate?: () => Date;
@@ -46,6 +26,14 @@ declare class DeepgramTranscriptionModel implements TranscriptionModelV4 {
46
26
  private readonly config;
47
27
  readonly specificationVersion = "v4";
48
28
  get provider(): string;
29
+ static [WORKFLOW_SERIALIZE](model: DeepgramTranscriptionModel): {
30
+ modelId: string;
31
+ config: _ai_sdk_provider.JSONObject;
32
+ };
33
+ static [WORKFLOW_DESERIALIZE](options: {
34
+ modelId: DeepgramTranscriptionModelId;
35
+ config: DeepgramTranscriptionModelConfig;
36
+ }): DeepgramTranscriptionModel;
49
37
  constructor(modelId: DeepgramTranscriptionModelId, config: DeepgramTranscriptionModelConfig);
50
38
  private getArgs;
51
39
  doGenerate(options: Parameters<TranscriptionModelV4['doGenerate']>[0]): Promise<Awaited<ReturnType<TranscriptionModelV4['doGenerate']>>>;
@@ -94,20 +82,6 @@ declare function createDeepgram(options?: DeepgramProviderSettings): DeepgramPro
94
82
  */
95
83
  declare const deepgram: DeepgramProvider;
96
84
 
97
- declare const deepgramSpeechModelOptionsSchema: z.ZodObject<{
98
- bitRate: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
99
- container: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
- encoding: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
- sampleRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
102
- callback: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
- callbackMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
104
- POST: "POST";
105
- PUT: "PUT";
106
- }>>>;
107
- mipOptOut: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
108
- tag: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
109
- }, z.core.$strip>;
110
- type DeepgramSpeechModelOptions = z.infer<typeof deepgramSpeechModelOptionsSchema>;
111
85
  interface DeepgramSpeechModelConfig extends DeepgramConfig {
112
86
  _internal?: {
113
87
  currentDate?: () => Date;
@@ -118,11 +92,56 @@ declare class DeepgramSpeechModel implements SpeechModelV4 {
118
92
  private readonly config;
119
93
  readonly specificationVersion = "v4";
120
94
  get provider(): string;
95
+ static [WORKFLOW_SERIALIZE](model: DeepgramSpeechModel): {
96
+ modelId: string;
97
+ config: _ai_sdk_provider.JSONObject;
98
+ };
99
+ static [WORKFLOW_DESERIALIZE](options: {
100
+ modelId: DeepgramSpeechModelId;
101
+ config: DeepgramSpeechModelConfig;
102
+ }): DeepgramSpeechModel;
121
103
  constructor(modelId: DeepgramSpeechModelId, config: DeepgramSpeechModelConfig);
122
104
  private getArgs;
123
105
  doGenerate(options: Parameters<SpeechModelV4['doGenerate']>[0]): Promise<Awaited<ReturnType<SpeechModelV4['doGenerate']>>>;
124
106
  }
125
107
 
108
+ declare const deepgramSpeechModelOptionsSchema: z.ZodObject<{
109
+ bitRate: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
110
+ container: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
+ encoding: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ sampleRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
113
+ callback: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
+ callbackMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
115
+ POST: "POST";
116
+ PUT: "PUT";
117
+ }>>>;
118
+ mipOptOut: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
119
+ tag: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
120
+ }, z.core.$strip>;
121
+ type DeepgramSpeechModelOptions = z.infer<typeof deepgramSpeechModelOptionsSchema>;
122
+
123
+ declare const deepgramTranscriptionModelOptionsSchema: z.ZodObject<{
124
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
+ detectLanguage: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
126
+ smartFormat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
127
+ punctuate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
128
+ paragraphs: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
129
+ summarize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"v2">, z.ZodLiteral<false>]>>>;
130
+ topics: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
131
+ intents: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
132
+ sentiment: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
133
+ detectEntities: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
134
+ redact: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
135
+ replace: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
+ search: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ keyterm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ diarize: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
139
+ utterances: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
140
+ uttSplit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
141
+ fillerWords: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
142
+ }, z.core.$strip>;
143
+ type DeepgramTranscriptionModelOptions = z.infer<typeof deepgramTranscriptionModelOptionsSchema>;
144
+
126
145
  declare const VERSION: string;
127
146
 
128
147
  export { type DeepgramProvider, type DeepgramProviderSettings, type DeepgramSpeechModelOptions as DeepgramSpeechCallOptions, DeepgramSpeechModel, type DeepgramSpeechModelId, type DeepgramSpeechModelOptions, type DeepgramTranscriptionModelOptions, VERSION, createDeepgram, deepgram };