@deepgram/sdk 5.0.0-beta.2 → 5.0.0-beta.3
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/dist/browser/index.global.js +304 -451
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/CustomClient.js +124 -0
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1ConversationText.d.ts +1 -1
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1Settings.d.ts +24 -54
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.d.ts +1 -1
- package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1UpdateSpeak.d.ts +2 -18
- package/dist/cjs/api/resources/agent/resources/v1/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/agent/resources/v1/types/index.js +0 -4
- package/dist/cjs/api/resources/listen/resources/v1/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/listen/resources/v1/client/Client.js +2 -1
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestCallbackMethod.d.ts +1 -1
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestCustomIntentMode.d.ts +1 -1
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestCustomTopicMode.d.ts +1 -1
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestEncoding.d.ts +1 -1
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestModel.d.ts +1 -1
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestSummarize.d.ts +1 -1
- package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestVersion.d.ts +1 -1
- package/dist/cjs/api/resources/listen/resources/v1/types/ListenV1CloseStream.d.ts +1 -1
- package/dist/cjs/api/resources/listen/resources/v1/types/ListenV1Finalize.d.ts +1 -1
- package/dist/cjs/api/resources/listen/resources/v1/types/ListenV1KeepAlive.d.ts +1 -1
- package/dist/cjs/api/resources/listen/resources/v1/types/ListenV1Results.d.ts +19 -0
- package/dist/cjs/api/resources/listen/resources/v2/types/ListenV2CloseStream.d.ts +1 -1
- package/dist/cjs/api/resources/listen/resources/v2/types/ListenV2TurnInfo.d.ts +1 -1
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/types/BreakdownListRequestDeployment.d.ts +1 -1
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/types/BreakdownListRequestGroupingItem.d.ts +1 -1
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/keys/types/KeysListRequestStatus.d.ts +1 -1
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.js +2 -2
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/types/RequestsListRequestDeployment.d.ts +1 -1
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/types/RequestsListRequestEndpoint.d.ts +1 -1
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/types/RequestsListRequestMethod.d.ts +1 -1
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/types/RequestsListRequestStatus.d.ts +1 -1
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/types/BreakdownGetRequestDeployment.d.ts +1 -1
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/types/BreakdownGetRequestEndpoint.d.ts +1 -1
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/types/BreakdownGetRequestGrouping.d.ts +1 -1
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/types/BreakdownGetRequestMethod.d.ts +1 -1
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/types/UsageGetRequestDeployment.d.ts +1 -1
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/types/UsageGetRequestEndpoint.d.ts +1 -1
- package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/types/UsageGetRequestMethod.d.ts +1 -1
- package/dist/cjs/api/resources/read/resources/v1/resources/text/types/TextAnalyzeRequestCallbackMethod.d.ts +1 -1
- package/dist/cjs/api/resources/read/resources/v1/resources/text/types/TextAnalyzeRequestCustomIntentMode.d.ts +1 -1
- package/dist/cjs/api/resources/read/resources/v1/resources/text/types/TextAnalyzeRequestCustomTopicMode.d.ts +1 -1
- package/dist/cjs/api/resources/read/resources/v1/resources/text/types/TextAnalyzeRequestSummarize.d.ts +1 -1
- package/dist/cjs/api/resources/selfHosted/resources/v1/resources/distributionCredentials/types/DistributionCredentialsCreateRequestScopesItem.d.ts +1 -1
- package/dist/cjs/api/resources/speak/resources/v1/resources/audio/types/AudioGenerateRequestCallbackMethod.d.ts +1 -1
- package/dist/cjs/api/resources/speak/resources/v1/resources/audio/types/AudioGenerateRequestContainer.d.ts +1 -1
- package/dist/cjs/api/resources/speak/resources/v1/resources/audio/types/AudioGenerateRequestEncoding.d.ts +1 -1
- package/dist/cjs/api/resources/speak/resources/v1/resources/audio/types/AudioGenerateRequestModel.d.ts +1 -1
- package/dist/cjs/api/resources/speak/resources/v1/types/SpeakV1Clear.d.ts +1 -1
- package/dist/cjs/api/resources/speak/resources/v1/types/SpeakV1Cleared.d.ts +1 -1
- package/dist/cjs/api/resources/speak/resources/v1/types/SpeakV1Close.d.ts +1 -1
- package/dist/cjs/api/resources/speak/resources/v1/types/SpeakV1Flush.d.ts +1 -1
- package/dist/cjs/api/resources/speak/resources/v1/types/SpeakV1Flushed.d.ts +1 -1
- package/dist/cjs/api/types/AgentThinkModelsV1Response.d.ts +3 -3
- package/dist/cjs/api/types/Anthropic.d.ts +17 -0
- package/dist/cjs/api/types/Anthropic.js +12 -0
- package/dist/cjs/api/types/AwsBedrockThinkProvider.d.ts +40 -0
- package/dist/cjs/api/types/AwsBedrockThinkProvider.js +20 -0
- package/dist/cjs/api/types/AwsPollySpeakProvider.d.ts +47 -0
- package/dist/cjs/api/types/AwsPollySpeakProvider.js +31 -0
- package/dist/cjs/api/types/Cartesia.d.ts +24 -0
- package/dist/cjs/api/types/Cartesia.js +12 -0
- package/dist/cjs/api/types/Deepgram.d.ts +76 -0
- package/dist/cjs/api/types/Deepgram.js +73 -0
- package/dist/cjs/api/types/ElevenLabsSpeakProvider.d.ts +20 -0
- package/dist/cjs/api/types/ElevenLabsSpeakProvider.js +13 -0
- package/dist/cjs/api/types/Google.d.ts +18 -0
- package/dist/cjs/api/types/Google.js +13 -0
- package/dist/cjs/api/types/Groq.d.ts +9 -0
- package/dist/cjs/api/types/Groq.js +3 -0
- package/dist/cjs/api/types/ListBillingFieldsV1Response.d.ts +1 -1
- package/dist/cjs/api/types/ListenV1CallbackMethod.d.ts +1 -1
- package/dist/cjs/api/types/ListenV1DetectEntities.d.ts +6 -0
- package/dist/cjs/api/types/ListenV1DetectEntities.js +9 -0
- package/dist/cjs/api/types/ListenV1Diarize.d.ts +1 -1
- package/dist/cjs/api/types/ListenV1Dictation.d.ts +1 -1
- package/dist/cjs/api/types/ListenV1Encoding.d.ts +1 -1
- package/dist/cjs/api/types/ListenV1InterimResults.d.ts +1 -1
- package/dist/cjs/api/types/ListenV1Model.d.ts +1 -1
- package/dist/cjs/api/types/ListenV1Multichannel.d.ts +1 -1
- package/dist/cjs/api/types/ListenV1Numerals.d.ts +1 -1
- package/dist/cjs/api/types/ListenV1ProfanityFilter.d.ts +1 -1
- package/dist/cjs/api/types/ListenV1Punctuate.d.ts +1 -1
- package/dist/cjs/api/types/ListenV1Redact.d.ts +1 -1
- package/dist/cjs/api/types/ListenV1ResponseResultsChannelsItem.d.ts +12 -0
- package/dist/cjs/api/types/ListenV1SmartFormat.d.ts +1 -1
- package/dist/cjs/api/types/ListenV1VadEvents.d.ts +1 -1
- package/dist/cjs/api/types/ListenV2Encoding.d.ts +1 -1
- package/dist/cjs/api/types/OpenAi.d.ts +27 -0
- package/dist/cjs/api/types/OpenAi.js +21 -0
- package/dist/cjs/api/types/SpeakSettingsV1.d.ts +20 -0
- package/dist/cjs/api/types/SpeakSettingsV1.js +3 -0
- package/dist/cjs/api/types/SpeakSettingsV1Provider.d.ts +19 -0
- package/dist/cjs/api/types/SpeakSettingsV1Provider.js +3 -0
- package/dist/cjs/api/types/SpeakV1Encoding.d.ts +1 -1
- package/dist/cjs/api/types/SpeakV1Model.d.ts +1 -1
- package/dist/cjs/api/types/SpeakV1SampleRate.d.ts +1 -1
- package/dist/cjs/api/types/ThinkSettingsV1.d.ts +50 -0
- package/dist/cjs/api/types/ThinkSettingsV1.js +3 -0
- package/dist/cjs/api/types/index.d.ts +13 -0
- package/dist/cjs/api/types/index.js +13 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/CustomClient.mjs +124 -0
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1ConversationText.d.mts +1 -1
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1Settings.d.mts +24 -54
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.d.mts +1 -1
- package/dist/esm/api/resources/agent/resources/v1/types/AgentV1UpdateSpeak.d.mts +2 -18
- package/dist/esm/api/resources/agent/resources/v1/types/index.d.mts +0 -4
- package/dist/esm/api/resources/agent/resources/v1/types/index.mjs +0 -4
- package/dist/esm/api/resources/listen/resources/v1/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/listen/resources/v1/client/Client.mjs +2 -1
- package/dist/esm/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestCallbackMethod.d.mts +1 -1
- package/dist/esm/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestCustomIntentMode.d.mts +1 -1
- package/dist/esm/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestCustomTopicMode.d.mts +1 -1
- package/dist/esm/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestEncoding.d.mts +1 -1
- package/dist/esm/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestModel.d.mts +1 -1
- package/dist/esm/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestSummarize.d.mts +1 -1
- package/dist/esm/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestVersion.d.mts +1 -1
- package/dist/esm/api/resources/listen/resources/v1/types/ListenV1CloseStream.d.mts +1 -1
- package/dist/esm/api/resources/listen/resources/v1/types/ListenV1Finalize.d.mts +1 -1
- package/dist/esm/api/resources/listen/resources/v1/types/ListenV1KeepAlive.d.mts +1 -1
- package/dist/esm/api/resources/listen/resources/v1/types/ListenV1Results.d.mts +19 -0
- package/dist/esm/api/resources/listen/resources/v2/types/ListenV2CloseStream.d.mts +1 -1
- package/dist/esm/api/resources/listen/resources/v2/types/ListenV2TurnInfo.d.mts +1 -1
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/types/BreakdownListRequestDeployment.d.mts +1 -1
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/types/BreakdownListRequestGroupingItem.d.mts +1 -1
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/keys/types/KeysListRequestStatus.d.mts +1 -1
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.mjs +2 -2
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/types/RequestsListRequestDeployment.d.mts +1 -1
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/types/RequestsListRequestEndpoint.d.mts +1 -1
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/types/RequestsListRequestMethod.d.mts +1 -1
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/types/RequestsListRequestStatus.d.mts +1 -1
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/types/BreakdownGetRequestDeployment.d.mts +1 -1
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/types/BreakdownGetRequestEndpoint.d.mts +1 -1
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/types/BreakdownGetRequestGrouping.d.mts +1 -1
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/types/BreakdownGetRequestMethod.d.mts +1 -1
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/types/UsageGetRequestDeployment.d.mts +1 -1
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/types/UsageGetRequestEndpoint.d.mts +1 -1
- package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/types/UsageGetRequestMethod.d.mts +1 -1
- package/dist/esm/api/resources/read/resources/v1/resources/text/types/TextAnalyzeRequestCallbackMethod.d.mts +1 -1
- package/dist/esm/api/resources/read/resources/v1/resources/text/types/TextAnalyzeRequestCustomIntentMode.d.mts +1 -1
- package/dist/esm/api/resources/read/resources/v1/resources/text/types/TextAnalyzeRequestCustomTopicMode.d.mts +1 -1
- package/dist/esm/api/resources/read/resources/v1/resources/text/types/TextAnalyzeRequestSummarize.d.mts +1 -1
- package/dist/esm/api/resources/selfHosted/resources/v1/resources/distributionCredentials/types/DistributionCredentialsCreateRequestScopesItem.d.mts +1 -1
- package/dist/esm/api/resources/speak/resources/v1/resources/audio/types/AudioGenerateRequestCallbackMethod.d.mts +1 -1
- package/dist/esm/api/resources/speak/resources/v1/resources/audio/types/AudioGenerateRequestContainer.d.mts +1 -1
- package/dist/esm/api/resources/speak/resources/v1/resources/audio/types/AudioGenerateRequestEncoding.d.mts +1 -1
- package/dist/esm/api/resources/speak/resources/v1/resources/audio/types/AudioGenerateRequestModel.d.mts +1 -1
- package/dist/esm/api/resources/speak/resources/v1/types/SpeakV1Clear.d.mts +1 -1
- package/dist/esm/api/resources/speak/resources/v1/types/SpeakV1Cleared.d.mts +1 -1
- package/dist/esm/api/resources/speak/resources/v1/types/SpeakV1Close.d.mts +1 -1
- package/dist/esm/api/resources/speak/resources/v1/types/SpeakV1Flush.d.mts +1 -1
- package/dist/esm/api/resources/speak/resources/v1/types/SpeakV1Flushed.d.mts +1 -1
- package/dist/esm/api/types/AgentThinkModelsV1Response.d.mts +3 -3
- package/dist/esm/api/types/Anthropic.d.mts +17 -0
- package/dist/esm/api/types/Anthropic.mjs +9 -0
- package/dist/esm/api/types/AwsBedrockThinkProvider.d.mts +40 -0
- package/dist/esm/api/types/AwsBedrockThinkProvider.mjs +17 -0
- package/dist/esm/api/types/AwsPollySpeakProvider.d.mts +47 -0
- package/dist/esm/api/types/AwsPollySpeakProvider.mjs +28 -0
- package/dist/esm/api/types/Cartesia.d.mts +24 -0
- package/dist/esm/api/types/Cartesia.mjs +9 -0
- package/dist/esm/api/types/Deepgram.d.mts +76 -0
- package/dist/esm/api/types/Deepgram.mjs +70 -0
- package/dist/esm/api/types/ElevenLabsSpeakProvider.d.mts +20 -0
- package/dist/esm/api/types/ElevenLabsSpeakProvider.mjs +10 -0
- package/dist/esm/api/types/Google.d.mts +18 -0
- package/dist/esm/api/types/Google.mjs +10 -0
- package/dist/esm/api/types/Groq.d.mts +9 -0
- package/dist/esm/api/types/Groq.mjs +2 -0
- package/dist/esm/api/types/ListBillingFieldsV1Response.d.mts +1 -1
- package/dist/esm/api/types/ListenV1CallbackMethod.d.mts +1 -1
- package/dist/esm/api/types/ListenV1DetectEntities.d.mts +6 -0
- package/dist/esm/api/types/ListenV1DetectEntities.mjs +6 -0
- package/dist/esm/api/types/ListenV1Diarize.d.mts +1 -1
- package/dist/esm/api/types/ListenV1Dictation.d.mts +1 -1
- package/dist/esm/api/types/ListenV1Encoding.d.mts +1 -1
- package/dist/esm/api/types/ListenV1InterimResults.d.mts +1 -1
- package/dist/esm/api/types/ListenV1Model.d.mts +1 -1
- package/dist/esm/api/types/ListenV1Multichannel.d.mts +1 -1
- package/dist/esm/api/types/ListenV1Numerals.d.mts +1 -1
- package/dist/esm/api/types/ListenV1ProfanityFilter.d.mts +1 -1
- package/dist/esm/api/types/ListenV1Punctuate.d.mts +1 -1
- package/dist/esm/api/types/ListenV1Redact.d.mts +1 -1
- package/dist/esm/api/types/ListenV1ResponseResultsChannelsItem.d.mts +12 -0
- package/dist/esm/api/types/ListenV1SmartFormat.d.mts +1 -1
- package/dist/esm/api/types/ListenV1VadEvents.d.mts +1 -1
- package/dist/esm/api/types/ListenV2Encoding.d.mts +1 -1
- package/dist/esm/api/types/OpenAi.d.mts +27 -0
- package/dist/esm/api/types/OpenAi.mjs +18 -0
- package/dist/esm/api/types/SpeakSettingsV1.d.mts +20 -0
- package/dist/esm/api/types/SpeakSettingsV1.mjs +2 -0
- package/dist/esm/api/types/SpeakSettingsV1Provider.d.mts +19 -0
- package/dist/esm/api/types/SpeakSettingsV1Provider.mjs +2 -0
- package/dist/esm/api/types/SpeakV1Encoding.d.mts +1 -1
- package/dist/esm/api/types/SpeakV1Model.d.mts +1 -1
- package/dist/esm/api/types/SpeakV1SampleRate.d.mts +1 -1
- package/dist/esm/api/types/ThinkSettingsV1.d.mts +50 -0
- package/dist/esm/api/types/ThinkSettingsV1.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +13 -0
- package/dist/esm/api/types/index.mjs +13 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as Deepgram from "../index.mjs";
|
|
2
|
+
export type SpeakSettingsV1Provider = Deepgram.SpeakSettingsV1Provider.Deepgram | Deepgram.SpeakSettingsV1Provider.ElevenLabs | Deepgram.SpeakSettingsV1Provider.Cartesia | Deepgram.SpeakSettingsV1Provider.OpenAi | Deepgram.SpeakSettingsV1Provider.AwsPolly;
|
|
3
|
+
export declare namespace SpeakSettingsV1Provider {
|
|
4
|
+
interface Deepgram extends Deepgram.Deepgram {
|
|
5
|
+
type: "deepgram";
|
|
6
|
+
}
|
|
7
|
+
interface ElevenLabs extends Deepgram.ElevenLabsSpeakProvider {
|
|
8
|
+
type: "eleven_labs";
|
|
9
|
+
}
|
|
10
|
+
interface Cartesia extends Deepgram.Cartesia {
|
|
11
|
+
type: "cartesia";
|
|
12
|
+
}
|
|
13
|
+
interface OpenAi extends Deepgram.OpenAi {
|
|
14
|
+
type: "open_ai";
|
|
15
|
+
}
|
|
16
|
+
interface AwsPolly extends Deepgram.AwsPollySpeakProvider {
|
|
17
|
+
type: "aws_polly";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -4,4 +4,4 @@ export declare const SpeakV1Encoding: {
|
|
|
4
4
|
readonly Mulaw: "mulaw";
|
|
5
5
|
readonly Alaw: "alaw";
|
|
6
6
|
};
|
|
7
|
-
export type SpeakV1Encoding = (typeof SpeakV1Encoding)[keyof typeof SpeakV1Encoding];
|
|
7
|
+
export type SpeakV1Encoding = (typeof SpeakV1Encoding)[keyof typeof SpeakV1Encoding] | string;
|
|
@@ -64,4 +64,4 @@ export declare const SpeakV1Model: {
|
|
|
64
64
|
readonly Aura2EstrellaEs: "aura-2-estrella-es";
|
|
65
65
|
readonly Aura2JavierEs: "aura-2-javier-es";
|
|
66
66
|
};
|
|
67
|
-
export type SpeakV1Model = (typeof SpeakV1Model)[keyof typeof SpeakV1Model];
|
|
67
|
+
export type SpeakV1Model = (typeof SpeakV1Model)[keyof typeof SpeakV1Model] | string;
|
|
@@ -6,4 +6,4 @@ export declare const SpeakV1SampleRate: {
|
|
|
6
6
|
readonly ThirtyTwoThousand: "32000";
|
|
7
7
|
readonly FortyEightThousand: "48000";
|
|
8
8
|
};
|
|
9
|
-
export type SpeakV1SampleRate = (typeof SpeakV1SampleRate)[keyof typeof SpeakV1SampleRate];
|
|
9
|
+
export type SpeakV1SampleRate = (typeof SpeakV1SampleRate)[keyof typeof SpeakV1SampleRate] | string;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface ThinkSettingsV1 {
|
|
2
|
+
/** Think provider configuration (OpenAI, AWS Bedrock, Anthropic, Google, or Groq) */
|
|
3
|
+
provider: Record<string, unknown>;
|
|
4
|
+
/** Optional for non-Deepgram LLM providers. When present, must include url field and headers object */
|
|
5
|
+
endpoint?: ThinkSettingsV1.Endpoint;
|
|
6
|
+
functions?: ThinkSettingsV1.Functions.Item[];
|
|
7
|
+
prompt?: string;
|
|
8
|
+
/** Specifies the number of characters retained in context between user messages, agent responses, and function calls. This setting is only configurable when a custom think endpoint is used */
|
|
9
|
+
context_length?: ThinkSettingsV1.ContextLength;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace ThinkSettingsV1 {
|
|
12
|
+
/**
|
|
13
|
+
* Optional for non-Deepgram LLM providers. When present, must include url field and headers object
|
|
14
|
+
*/
|
|
15
|
+
interface Endpoint {
|
|
16
|
+
/** Custom LLM endpoint URL */
|
|
17
|
+
url?: string;
|
|
18
|
+
/** Custom headers for the endpoint */
|
|
19
|
+
headers?: Record<string, string>;
|
|
20
|
+
}
|
|
21
|
+
type Functions = Functions.Item[];
|
|
22
|
+
namespace Functions {
|
|
23
|
+
interface Item {
|
|
24
|
+
/** Function name */
|
|
25
|
+
name?: string;
|
|
26
|
+
/** Function description */
|
|
27
|
+
description?: string;
|
|
28
|
+
/** Function parameters */
|
|
29
|
+
parameters?: Record<string, unknown>;
|
|
30
|
+
/** The Function endpoint to call. if not passed, function is called client-side */
|
|
31
|
+
endpoint?: Item.Endpoint;
|
|
32
|
+
}
|
|
33
|
+
namespace Item {
|
|
34
|
+
/**
|
|
35
|
+
* The Function endpoint to call. if not passed, function is called client-side
|
|
36
|
+
*/
|
|
37
|
+
interface Endpoint {
|
|
38
|
+
/** Endpoint URL */
|
|
39
|
+
url?: string;
|
|
40
|
+
/** HTTP method */
|
|
41
|
+
method?: string;
|
|
42
|
+
headers?: Record<string, string>;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Specifies the number of characters retained in context between user messages, agent responses, and function calls. This setting is only configurable when a custom think endpoint is used
|
|
48
|
+
*/
|
|
49
|
+
type ContextLength = "max" | number;
|
|
50
|
+
}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
export * from "./AgentThinkModelsV1Response.mjs";
|
|
2
|
+
export * from "./Anthropic.mjs";
|
|
3
|
+
export * from "./AwsBedrockThinkProvider.mjs";
|
|
4
|
+
export * from "./AwsPollySpeakProvider.mjs";
|
|
2
5
|
export * from "./BillingBreakdownV1Response.mjs";
|
|
6
|
+
export * from "./Cartesia.mjs";
|
|
3
7
|
export * from "./CreateKeyV1RequestOne.mjs";
|
|
4
8
|
export * from "./CreateKeyV1Response.mjs";
|
|
5
9
|
export * from "./CreateProjectDistributionCredentialsV1Response.mjs";
|
|
6
10
|
export * from "./CreateProjectInviteV1Response.mjs";
|
|
11
|
+
export * from "./Deepgram.mjs";
|
|
7
12
|
export * from "./DeleteProjectInviteV1Response.mjs";
|
|
8
13
|
export * from "./DeleteProjectKeyV1Response.mjs";
|
|
9
14
|
export * from "./DeleteProjectMemberV1Response.mjs";
|
|
10
15
|
export * from "./DeleteProjectV1Response.mjs";
|
|
16
|
+
export * from "./ElevenLabsSpeakProvider.mjs";
|
|
11
17
|
export * from "./ErrorResponse.mjs";
|
|
12
18
|
export * from "./ErrorResponseLegacyError.mjs";
|
|
13
19
|
export * from "./ErrorResponseModernError.mjs";
|
|
@@ -18,13 +24,16 @@ export * from "./GetProjectDistributionCredentialsV1Response.mjs";
|
|
|
18
24
|
export * from "./GetProjectKeyV1Response.mjs";
|
|
19
25
|
export * from "./GetProjectRequestV1Response.mjs";
|
|
20
26
|
export * from "./GetProjectV1Response.mjs";
|
|
27
|
+
export * from "./Google.mjs";
|
|
21
28
|
export * from "./GrantV1Response.mjs";
|
|
29
|
+
export * from "./Groq.mjs";
|
|
22
30
|
export * from "./LeaveProjectV1Response.mjs";
|
|
23
31
|
export * from "./ListBillingFieldsV1Response.mjs";
|
|
24
32
|
export * from "./ListenV1AcceptedResponse.mjs";
|
|
25
33
|
export * from "./ListenV1Callback.mjs";
|
|
26
34
|
export * from "./ListenV1CallbackMethod.mjs";
|
|
27
35
|
export * from "./ListenV1Channels.mjs";
|
|
36
|
+
export * from "./ListenV1DetectEntities.mjs";
|
|
28
37
|
export * from "./ListenV1Diarize.mjs";
|
|
29
38
|
export * from "./ListenV1Dictation.mjs";
|
|
30
39
|
export * from "./ListenV1Encoding.mjs";
|
|
@@ -79,6 +88,7 @@ export * from "./ListProjectMembersV1Response.mjs";
|
|
|
79
88
|
export * from "./ListProjectPurchasesV1Response.mjs";
|
|
80
89
|
export * from "./ListProjectRequestsV1Response.mjs";
|
|
81
90
|
export * from "./ListProjectsV1Response.mjs";
|
|
91
|
+
export * from "./OpenAi.mjs";
|
|
82
92
|
export * from "./ProjectRequestResponse.mjs";
|
|
83
93
|
export * from "./ReadV1Request.mjs";
|
|
84
94
|
export * from "./ReadV1RequestText.mjs";
|
|
@@ -90,11 +100,14 @@ export * from "./ReadV1ResponseResultsSummary.mjs";
|
|
|
90
100
|
export * from "./SharedIntents.mjs";
|
|
91
101
|
export * from "./SharedSentiments.mjs";
|
|
92
102
|
export * from "./SharedTopics.mjs";
|
|
103
|
+
export * from "./SpeakSettingsV1.mjs";
|
|
104
|
+
export * from "./SpeakSettingsV1Provider.mjs";
|
|
93
105
|
export * from "./SpeakV1Encoding.mjs";
|
|
94
106
|
export * from "./SpeakV1MipOptOut.mjs";
|
|
95
107
|
export * from "./SpeakV1Model.mjs";
|
|
96
108
|
export * from "./SpeakV1Response.mjs";
|
|
97
109
|
export * from "./SpeakV1SampleRate.mjs";
|
|
110
|
+
export * from "./ThinkSettingsV1.mjs";
|
|
98
111
|
export * from "./UpdateProjectMemberScopesV1Response.mjs";
|
|
99
112
|
export * from "./UpdateProjectV1Response.mjs";
|
|
100
113
|
export * from "./UsageBreakdownV1Response.mjs";
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
export * from "./AgentThinkModelsV1Response.mjs";
|
|
2
|
+
export * from "./Anthropic.mjs";
|
|
3
|
+
export * from "./AwsBedrockThinkProvider.mjs";
|
|
4
|
+
export * from "./AwsPollySpeakProvider.mjs";
|
|
2
5
|
export * from "./BillingBreakdownV1Response.mjs";
|
|
6
|
+
export * from "./Cartesia.mjs";
|
|
3
7
|
export * from "./CreateKeyV1RequestOne.mjs";
|
|
4
8
|
export * from "./CreateKeyV1Response.mjs";
|
|
5
9
|
export * from "./CreateProjectDistributionCredentialsV1Response.mjs";
|
|
6
10
|
export * from "./CreateProjectInviteV1Response.mjs";
|
|
11
|
+
export * from "./Deepgram.mjs";
|
|
7
12
|
export * from "./DeleteProjectInviteV1Response.mjs";
|
|
8
13
|
export * from "./DeleteProjectKeyV1Response.mjs";
|
|
9
14
|
export * from "./DeleteProjectMemberV1Response.mjs";
|
|
10
15
|
export * from "./DeleteProjectV1Response.mjs";
|
|
16
|
+
export * from "./ElevenLabsSpeakProvider.mjs";
|
|
11
17
|
export * from "./ErrorResponse.mjs";
|
|
12
18
|
export * from "./ErrorResponseLegacyError.mjs";
|
|
13
19
|
export * from "./ErrorResponseModernError.mjs";
|
|
@@ -18,13 +24,16 @@ export * from "./GetProjectDistributionCredentialsV1Response.mjs";
|
|
|
18
24
|
export * from "./GetProjectKeyV1Response.mjs";
|
|
19
25
|
export * from "./GetProjectRequestV1Response.mjs";
|
|
20
26
|
export * from "./GetProjectV1Response.mjs";
|
|
27
|
+
export * from "./Google.mjs";
|
|
21
28
|
export * from "./GrantV1Response.mjs";
|
|
29
|
+
export * from "./Groq.mjs";
|
|
22
30
|
export * from "./LeaveProjectV1Response.mjs";
|
|
23
31
|
export * from "./ListBillingFieldsV1Response.mjs";
|
|
24
32
|
export * from "./ListenV1AcceptedResponse.mjs";
|
|
25
33
|
export * from "./ListenV1Callback.mjs";
|
|
26
34
|
export * from "./ListenV1CallbackMethod.mjs";
|
|
27
35
|
export * from "./ListenV1Channels.mjs";
|
|
36
|
+
export * from "./ListenV1DetectEntities.mjs";
|
|
28
37
|
export * from "./ListenV1Diarize.mjs";
|
|
29
38
|
export * from "./ListenV1Dictation.mjs";
|
|
30
39
|
export * from "./ListenV1Encoding.mjs";
|
|
@@ -79,6 +88,7 @@ export * from "./ListProjectMembersV1Response.mjs";
|
|
|
79
88
|
export * from "./ListProjectPurchasesV1Response.mjs";
|
|
80
89
|
export * from "./ListProjectRequestsV1Response.mjs";
|
|
81
90
|
export * from "./ListProjectsV1Response.mjs";
|
|
91
|
+
export * from "./OpenAi.mjs";
|
|
82
92
|
export * from "./ProjectRequestResponse.mjs";
|
|
83
93
|
export * from "./ReadV1Request.mjs";
|
|
84
94
|
export * from "./ReadV1RequestText.mjs";
|
|
@@ -90,11 +100,14 @@ export * from "./ReadV1ResponseResultsSummary.mjs";
|
|
|
90
100
|
export * from "./SharedIntents.mjs";
|
|
91
101
|
export * from "./SharedSentiments.mjs";
|
|
92
102
|
export * from "./SharedTopics.mjs";
|
|
103
|
+
export * from "./SpeakSettingsV1.mjs";
|
|
104
|
+
export * from "./SpeakSettingsV1Provider.mjs";
|
|
93
105
|
export * from "./SpeakV1Encoding.mjs";
|
|
94
106
|
export * from "./SpeakV1MipOptOut.mjs";
|
|
95
107
|
export * from "./SpeakV1Model.mjs";
|
|
96
108
|
export * from "./SpeakV1Response.mjs";
|
|
97
109
|
export * from "./SpeakV1SampleRate.mjs";
|
|
110
|
+
export * from "./ThinkSettingsV1.mjs";
|
|
98
111
|
export * from "./UpdateProjectMemberScopesV1Response.mjs";
|
|
99
112
|
export * from "./UpdateProjectV1Response.mjs";
|
|
100
113
|
export * from "./UsageBreakdownV1Response.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.283";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.283";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepgram/sdk",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"msw": "2.11.2",
|
|
44
44
|
"@types/node": "^18.19.70",
|
|
45
45
|
"typescript": "~5.7.2",
|
|
46
|
-
"@biomejs/biome": "2.3.
|
|
46
|
+
"@biomejs/biome": "2.3.11"
|
|
47
47
|
},
|
|
48
48
|
"browser": {
|
|
49
49
|
"fs": false,
|