@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,9 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var Anthropic;
|
|
3
|
+
(function (Anthropic) {
|
|
4
|
+
/** Anthropic model to use */
|
|
5
|
+
Anthropic.Model = {
|
|
6
|
+
Claude35HaikuLatest: "claude-3-5-haiku-latest",
|
|
7
|
+
ClaudeSonnet420250514: "claude-sonnet-4-20250514",
|
|
8
|
+
};
|
|
9
|
+
})(Anthropic || (Anthropic = {}));
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface AwsBedrockThinkProvider {
|
|
2
|
+
type: "aws_bedrock";
|
|
3
|
+
/** AWS Bedrock model to use */
|
|
4
|
+
model: AwsBedrockThinkProvider.Model;
|
|
5
|
+
/** AWS Bedrock temperature (0-2) */
|
|
6
|
+
temperature?: number;
|
|
7
|
+
/** AWS credentials type (STS short-lived or IAM long-lived) */
|
|
8
|
+
credentials?: AwsBedrockThinkProvider.Credentials;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace AwsBedrockThinkProvider {
|
|
11
|
+
/** AWS Bedrock model to use */
|
|
12
|
+
const Model: {
|
|
13
|
+
readonly AnthropicClaude35Sonnet20240620V10: "anthropic/claude-3-5-sonnet-20240620-v1:0";
|
|
14
|
+
readonly AnthropicClaude35Haiku20240307V10: "anthropic/claude-3-5-haiku-20240307-v1:0";
|
|
15
|
+
};
|
|
16
|
+
type Model = (typeof Model)[keyof typeof Model] | string;
|
|
17
|
+
/**
|
|
18
|
+
* AWS credentials type (STS short-lived or IAM long-lived)
|
|
19
|
+
*/
|
|
20
|
+
interface Credentials {
|
|
21
|
+
/** AWS credentials type (STS short-lived or IAM long-lived) */
|
|
22
|
+
type?: Credentials.Type;
|
|
23
|
+
/** AWS region */
|
|
24
|
+
region?: string;
|
|
25
|
+
/** AWS access key */
|
|
26
|
+
access_key_id?: string;
|
|
27
|
+
/** AWS secret access key */
|
|
28
|
+
secret_access_key?: string;
|
|
29
|
+
/** AWS session token (required for STS only) */
|
|
30
|
+
session_token?: string;
|
|
31
|
+
}
|
|
32
|
+
namespace Credentials {
|
|
33
|
+
/** AWS credentials type (STS short-lived or IAM long-lived) */
|
|
34
|
+
const Type: {
|
|
35
|
+
readonly Sts: "sts";
|
|
36
|
+
readonly Iam: "iam";
|
|
37
|
+
};
|
|
38
|
+
type Type = (typeof Type)[keyof typeof Type] | string;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var AwsBedrockThinkProvider;
|
|
3
|
+
(function (AwsBedrockThinkProvider) {
|
|
4
|
+
/** AWS Bedrock model to use */
|
|
5
|
+
AwsBedrockThinkProvider.Model = {
|
|
6
|
+
AnthropicClaude35Sonnet20240620V10: "anthropic/claude-3-5-sonnet-20240620-v1:0",
|
|
7
|
+
AnthropicClaude35Haiku20240307V10: "anthropic/claude-3-5-haiku-20240307-v1:0",
|
|
8
|
+
};
|
|
9
|
+
let Credentials;
|
|
10
|
+
(function (Credentials) {
|
|
11
|
+
/** AWS credentials type (STS short-lived or IAM long-lived) */
|
|
12
|
+
Credentials.Type = {
|
|
13
|
+
Sts: "sts",
|
|
14
|
+
Iam: "iam",
|
|
15
|
+
};
|
|
16
|
+
})(Credentials = AwsBedrockThinkProvider.Credentials || (AwsBedrockThinkProvider.Credentials = {}));
|
|
17
|
+
})(AwsBedrockThinkProvider || (AwsBedrockThinkProvider = {}));
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export interface AwsPollySpeakProvider {
|
|
2
|
+
type: "aws_polly";
|
|
3
|
+
/** AWS Polly voice name */
|
|
4
|
+
voice: AwsPollySpeakProvider.Voice;
|
|
5
|
+
/** Language code to use, e.g. 'en-US'. Corresponds to the `language_code` parameter in the AWS Polly API */
|
|
6
|
+
language: string;
|
|
7
|
+
/** Use the `language` field instead. */
|
|
8
|
+
language_code?: string;
|
|
9
|
+
engine: AwsPollySpeakProvider.Engine;
|
|
10
|
+
credentials: AwsPollySpeakProvider.Credentials;
|
|
11
|
+
}
|
|
12
|
+
export declare namespace AwsPollySpeakProvider {
|
|
13
|
+
/** AWS Polly voice name */
|
|
14
|
+
const Voice: {
|
|
15
|
+
readonly Matthew: "Matthew";
|
|
16
|
+
readonly Joanna: "Joanna";
|
|
17
|
+
readonly Amy: "Amy";
|
|
18
|
+
readonly Emma: "Emma";
|
|
19
|
+
readonly Brian: "Brian";
|
|
20
|
+
readonly Arthur: "Arthur";
|
|
21
|
+
readonly Aria: "Aria";
|
|
22
|
+
readonly Ayanda: "Ayanda";
|
|
23
|
+
};
|
|
24
|
+
type Voice = (typeof Voice)[keyof typeof Voice] | string;
|
|
25
|
+
const Engine: {
|
|
26
|
+
readonly Generative: "generative";
|
|
27
|
+
readonly LongForm: "long-form";
|
|
28
|
+
readonly Standard: "standard";
|
|
29
|
+
readonly Neural: "neural";
|
|
30
|
+
};
|
|
31
|
+
type Engine = (typeof Engine)[keyof typeof Engine] | string;
|
|
32
|
+
interface Credentials {
|
|
33
|
+
type: Credentials.Type;
|
|
34
|
+
region: string;
|
|
35
|
+
access_key_id: string;
|
|
36
|
+
secret_access_key: string;
|
|
37
|
+
/** Required for STS only */
|
|
38
|
+
session_token?: string;
|
|
39
|
+
}
|
|
40
|
+
namespace Credentials {
|
|
41
|
+
const Type: {
|
|
42
|
+
readonly Sts: "sts";
|
|
43
|
+
readonly Iam: "iam";
|
|
44
|
+
};
|
|
45
|
+
type Type = (typeof Type)[keyof typeof Type] | string;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var AwsPollySpeakProvider;
|
|
3
|
+
(function (AwsPollySpeakProvider) {
|
|
4
|
+
/** AWS Polly voice name */
|
|
5
|
+
AwsPollySpeakProvider.Voice = {
|
|
6
|
+
Matthew: "Matthew",
|
|
7
|
+
Joanna: "Joanna",
|
|
8
|
+
Amy: "Amy",
|
|
9
|
+
Emma: "Emma",
|
|
10
|
+
Brian: "Brian",
|
|
11
|
+
Arthur: "Arthur",
|
|
12
|
+
Aria: "Aria",
|
|
13
|
+
Ayanda: "Ayanda",
|
|
14
|
+
};
|
|
15
|
+
AwsPollySpeakProvider.Engine = {
|
|
16
|
+
Generative: "generative",
|
|
17
|
+
LongForm: "long-form",
|
|
18
|
+
Standard: "standard",
|
|
19
|
+
Neural: "neural",
|
|
20
|
+
};
|
|
21
|
+
let Credentials;
|
|
22
|
+
(function (Credentials) {
|
|
23
|
+
Credentials.Type = {
|
|
24
|
+
Sts: "sts",
|
|
25
|
+
Iam: "iam",
|
|
26
|
+
};
|
|
27
|
+
})(Credentials = AwsPollySpeakProvider.Credentials || (AwsPollySpeakProvider.Credentials = {}));
|
|
28
|
+
})(AwsPollySpeakProvider || (AwsPollySpeakProvider = {}));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface Cartesia {
|
|
2
|
+
type: "cartesia";
|
|
3
|
+
/** The API version header for the Cartesia text-to-speech API */
|
|
4
|
+
version?: "2025-03-17";
|
|
5
|
+
/** Cartesia model ID */
|
|
6
|
+
model_id: Cartesia.ModelId;
|
|
7
|
+
voice: Cartesia.Voice;
|
|
8
|
+
/** Cartesia language code */
|
|
9
|
+
language?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace Cartesia {
|
|
12
|
+
/** Cartesia model ID */
|
|
13
|
+
const ModelId: {
|
|
14
|
+
readonly Sonic2: "sonic-2";
|
|
15
|
+
readonly SonicMultilingual: "sonic-multilingual";
|
|
16
|
+
};
|
|
17
|
+
type ModelId = (typeof ModelId)[keyof typeof ModelId] | string;
|
|
18
|
+
interface Voice {
|
|
19
|
+
/** Cartesia voice mode */
|
|
20
|
+
mode: string;
|
|
21
|
+
/** Cartesia voice ID */
|
|
22
|
+
id: string;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var Cartesia;
|
|
3
|
+
(function (Cartesia) {
|
|
4
|
+
/** Cartesia model ID */
|
|
5
|
+
Cartesia.ModelId = {
|
|
6
|
+
Sonic2: "sonic-2",
|
|
7
|
+
SonicMultilingual: "sonic-multilingual",
|
|
8
|
+
};
|
|
9
|
+
})(Cartesia || (Cartesia = {}));
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export interface Deepgram {
|
|
2
|
+
type: "deepgram";
|
|
3
|
+
/** The REST API version for the Deepgram text-to-speech API */
|
|
4
|
+
version?: "v1";
|
|
5
|
+
/** Deepgram TTS model */
|
|
6
|
+
model: Deepgram.Model;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace Deepgram {
|
|
9
|
+
/** Deepgram TTS model */
|
|
10
|
+
const Model: {
|
|
11
|
+
readonly AuraAsteriaEn: "aura-asteria-en";
|
|
12
|
+
readonly AuraLunaEn: "aura-luna-en";
|
|
13
|
+
readonly AuraStellaEn: "aura-stella-en";
|
|
14
|
+
readonly AuraAthenaEn: "aura-athena-en";
|
|
15
|
+
readonly AuraHeraEn: "aura-hera-en";
|
|
16
|
+
readonly AuraOrionEn: "aura-orion-en";
|
|
17
|
+
readonly AuraArcasEn: "aura-arcas-en";
|
|
18
|
+
readonly AuraPerseusEn: "aura-perseus-en";
|
|
19
|
+
readonly AuraAngusEn: "aura-angus-en";
|
|
20
|
+
readonly AuraOrpheusEn: "aura-orpheus-en";
|
|
21
|
+
readonly AuraHeliosEn: "aura-helios-en";
|
|
22
|
+
readonly AuraZeusEn: "aura-zeus-en";
|
|
23
|
+
readonly Aura2AmaltheaEn: "aura-2-amalthea-en";
|
|
24
|
+
readonly Aura2AndromedaEn: "aura-2-andromeda-en";
|
|
25
|
+
readonly Aura2ApolloEn: "aura-2-apollo-en";
|
|
26
|
+
readonly Aura2ArcasEn: "aura-2-arcas-en";
|
|
27
|
+
readonly Aura2AriesEn: "aura-2-aries-en";
|
|
28
|
+
readonly Aura2AsteriaEn: "aura-2-asteria-en";
|
|
29
|
+
readonly Aura2AthenaEn: "aura-2-athena-en";
|
|
30
|
+
readonly Aura2AtlasEn: "aura-2-atlas-en";
|
|
31
|
+
readonly Aura2AuroraEn: "aura-2-aurora-en";
|
|
32
|
+
readonly Aura2CallistaEn: "aura-2-callista-en";
|
|
33
|
+
readonly Aura2CoraEn: "aura-2-cora-en";
|
|
34
|
+
readonly Aura2CordeliaEn: "aura-2-cordelia-en";
|
|
35
|
+
readonly Aura2DeliaEn: "aura-2-delia-en";
|
|
36
|
+
readonly Aura2DracoEn: "aura-2-draco-en";
|
|
37
|
+
readonly Aura2ElectraEn: "aura-2-electra-en";
|
|
38
|
+
readonly Aura2HarmoniaEn: "aura-2-harmonia-en";
|
|
39
|
+
readonly Aura2HelenaEn: "aura-2-helena-en";
|
|
40
|
+
readonly Aura2HeraEn: "aura-2-hera-en";
|
|
41
|
+
readonly Aura2HermesEn: "aura-2-hermes-en";
|
|
42
|
+
readonly Aura2HyperionEn: "aura-2-hyperion-en";
|
|
43
|
+
readonly Aura2IrisEn: "aura-2-iris-en";
|
|
44
|
+
readonly Aura2JanusEn: "aura-2-janus-en";
|
|
45
|
+
readonly Aura2JunoEn: "aura-2-juno-en";
|
|
46
|
+
readonly Aura2JupiterEn: "aura-2-jupiter-en";
|
|
47
|
+
readonly Aura2LunaEn: "aura-2-luna-en";
|
|
48
|
+
readonly Aura2MarsEn: "aura-2-mars-en";
|
|
49
|
+
readonly Aura2MinervaEn: "aura-2-minerva-en";
|
|
50
|
+
readonly Aura2NeptuneEn: "aura-2-neptune-en";
|
|
51
|
+
readonly Aura2OdysseusEn: "aura-2-odysseus-en";
|
|
52
|
+
readonly Aura2OpheliaEn: "aura-2-ophelia-en";
|
|
53
|
+
readonly Aura2OrionEn: "aura-2-orion-en";
|
|
54
|
+
readonly Aura2OrpheusEn: "aura-2-orpheus-en";
|
|
55
|
+
readonly Aura2PandoraEn: "aura-2-pandora-en";
|
|
56
|
+
readonly Aura2PhoebeEn: "aura-2-phoebe-en";
|
|
57
|
+
readonly Aura2PlutoEn: "aura-2-pluto-en";
|
|
58
|
+
readonly Aura2SaturnEn: "aura-2-saturn-en";
|
|
59
|
+
readonly Aura2SeleneEn: "aura-2-selene-en";
|
|
60
|
+
readonly Aura2ThaliaEn: "aura-2-thalia-en";
|
|
61
|
+
readonly Aura2TheiaEn: "aura-2-theia-en";
|
|
62
|
+
readonly Aura2VestaEn: "aura-2-vesta-en";
|
|
63
|
+
readonly Aura2ZeusEn: "aura-2-zeus-en";
|
|
64
|
+
readonly Aura2SirioEs: "aura-2-sirio-es";
|
|
65
|
+
readonly Aura2NestorEs: "aura-2-nestor-es";
|
|
66
|
+
readonly Aura2CarinaEs: "aura-2-carina-es";
|
|
67
|
+
readonly Aura2CelesteEs: "aura-2-celeste-es";
|
|
68
|
+
readonly Aura2AlvaroEs: "aura-2-alvaro-es";
|
|
69
|
+
readonly Aura2DianaEs: "aura-2-diana-es";
|
|
70
|
+
readonly Aura2AquilaEs: "aura-2-aquila-es";
|
|
71
|
+
readonly Aura2SelenaEs: "aura-2-selena-es";
|
|
72
|
+
readonly Aura2EstrellaEs: "aura-2-estrella-es";
|
|
73
|
+
readonly Aura2JavierEs: "aura-2-javier-es";
|
|
74
|
+
};
|
|
75
|
+
type Model = (typeof Model)[keyof typeof Model] | string;
|
|
76
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var Deepgram;
|
|
3
|
+
(function (Deepgram) {
|
|
4
|
+
/** Deepgram TTS model */
|
|
5
|
+
Deepgram.Model = {
|
|
6
|
+
AuraAsteriaEn: "aura-asteria-en",
|
|
7
|
+
AuraLunaEn: "aura-luna-en",
|
|
8
|
+
AuraStellaEn: "aura-stella-en",
|
|
9
|
+
AuraAthenaEn: "aura-athena-en",
|
|
10
|
+
AuraHeraEn: "aura-hera-en",
|
|
11
|
+
AuraOrionEn: "aura-orion-en",
|
|
12
|
+
AuraArcasEn: "aura-arcas-en",
|
|
13
|
+
AuraPerseusEn: "aura-perseus-en",
|
|
14
|
+
AuraAngusEn: "aura-angus-en",
|
|
15
|
+
AuraOrpheusEn: "aura-orpheus-en",
|
|
16
|
+
AuraHeliosEn: "aura-helios-en",
|
|
17
|
+
AuraZeusEn: "aura-zeus-en",
|
|
18
|
+
Aura2AmaltheaEn: "aura-2-amalthea-en",
|
|
19
|
+
Aura2AndromedaEn: "aura-2-andromeda-en",
|
|
20
|
+
Aura2ApolloEn: "aura-2-apollo-en",
|
|
21
|
+
Aura2ArcasEn: "aura-2-arcas-en",
|
|
22
|
+
Aura2AriesEn: "aura-2-aries-en",
|
|
23
|
+
Aura2AsteriaEn: "aura-2-asteria-en",
|
|
24
|
+
Aura2AthenaEn: "aura-2-athena-en",
|
|
25
|
+
Aura2AtlasEn: "aura-2-atlas-en",
|
|
26
|
+
Aura2AuroraEn: "aura-2-aurora-en",
|
|
27
|
+
Aura2CallistaEn: "aura-2-callista-en",
|
|
28
|
+
Aura2CoraEn: "aura-2-cora-en",
|
|
29
|
+
Aura2CordeliaEn: "aura-2-cordelia-en",
|
|
30
|
+
Aura2DeliaEn: "aura-2-delia-en",
|
|
31
|
+
Aura2DracoEn: "aura-2-draco-en",
|
|
32
|
+
Aura2ElectraEn: "aura-2-electra-en",
|
|
33
|
+
Aura2HarmoniaEn: "aura-2-harmonia-en",
|
|
34
|
+
Aura2HelenaEn: "aura-2-helena-en",
|
|
35
|
+
Aura2HeraEn: "aura-2-hera-en",
|
|
36
|
+
Aura2HermesEn: "aura-2-hermes-en",
|
|
37
|
+
Aura2HyperionEn: "aura-2-hyperion-en",
|
|
38
|
+
Aura2IrisEn: "aura-2-iris-en",
|
|
39
|
+
Aura2JanusEn: "aura-2-janus-en",
|
|
40
|
+
Aura2JunoEn: "aura-2-juno-en",
|
|
41
|
+
Aura2JupiterEn: "aura-2-jupiter-en",
|
|
42
|
+
Aura2LunaEn: "aura-2-luna-en",
|
|
43
|
+
Aura2MarsEn: "aura-2-mars-en",
|
|
44
|
+
Aura2MinervaEn: "aura-2-minerva-en",
|
|
45
|
+
Aura2NeptuneEn: "aura-2-neptune-en",
|
|
46
|
+
Aura2OdysseusEn: "aura-2-odysseus-en",
|
|
47
|
+
Aura2OpheliaEn: "aura-2-ophelia-en",
|
|
48
|
+
Aura2OrionEn: "aura-2-orion-en",
|
|
49
|
+
Aura2OrpheusEn: "aura-2-orpheus-en",
|
|
50
|
+
Aura2PandoraEn: "aura-2-pandora-en",
|
|
51
|
+
Aura2PhoebeEn: "aura-2-phoebe-en",
|
|
52
|
+
Aura2PlutoEn: "aura-2-pluto-en",
|
|
53
|
+
Aura2SaturnEn: "aura-2-saturn-en",
|
|
54
|
+
Aura2SeleneEn: "aura-2-selene-en",
|
|
55
|
+
Aura2ThaliaEn: "aura-2-thalia-en",
|
|
56
|
+
Aura2TheiaEn: "aura-2-theia-en",
|
|
57
|
+
Aura2VestaEn: "aura-2-vesta-en",
|
|
58
|
+
Aura2ZeusEn: "aura-2-zeus-en",
|
|
59
|
+
Aura2SirioEs: "aura-2-sirio-es",
|
|
60
|
+
Aura2NestorEs: "aura-2-nestor-es",
|
|
61
|
+
Aura2CarinaEs: "aura-2-carina-es",
|
|
62
|
+
Aura2CelesteEs: "aura-2-celeste-es",
|
|
63
|
+
Aura2AlvaroEs: "aura-2-alvaro-es",
|
|
64
|
+
Aura2DianaEs: "aura-2-diana-es",
|
|
65
|
+
Aura2AquilaEs: "aura-2-aquila-es",
|
|
66
|
+
Aura2SelenaEs: "aura-2-selena-es",
|
|
67
|
+
Aura2EstrellaEs: "aura-2-estrella-es",
|
|
68
|
+
Aura2JavierEs: "aura-2-javier-es",
|
|
69
|
+
};
|
|
70
|
+
})(Deepgram || (Deepgram = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface ElevenLabsSpeakProvider {
|
|
2
|
+
type: "eleven_labs";
|
|
3
|
+
/** The REST API version for the ElevenLabs text-to-speech API */
|
|
4
|
+
version?: "v1";
|
|
5
|
+
/** Eleven Labs model ID */
|
|
6
|
+
model_id: ElevenLabsSpeakProvider.ModelId;
|
|
7
|
+
/** Optional language to use, e.g. 'en-US'. Corresponds to the `language_code` parameter in the ElevenLabs API */
|
|
8
|
+
language?: string;
|
|
9
|
+
/** Use the `language` field instead. */
|
|
10
|
+
language_code?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare namespace ElevenLabsSpeakProvider {
|
|
13
|
+
/** Eleven Labs model ID */
|
|
14
|
+
const ModelId: {
|
|
15
|
+
readonly ElevenTurboV25: "eleven_turbo_v2_5";
|
|
16
|
+
readonly ElevenMonolingualV1: "eleven_monolingual_v1";
|
|
17
|
+
readonly ElevenMultilingualV2: "eleven_multilingual_v2";
|
|
18
|
+
};
|
|
19
|
+
type ModelId = (typeof ModelId)[keyof typeof ModelId] | string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var ElevenLabsSpeakProvider;
|
|
3
|
+
(function (ElevenLabsSpeakProvider) {
|
|
4
|
+
/** Eleven Labs model ID */
|
|
5
|
+
ElevenLabsSpeakProvider.ModelId = {
|
|
6
|
+
ElevenTurboV25: "eleven_turbo_v2_5",
|
|
7
|
+
ElevenMonolingualV1: "eleven_monolingual_v1",
|
|
8
|
+
ElevenMultilingualV2: "eleven_multilingual_v2",
|
|
9
|
+
};
|
|
10
|
+
})(ElevenLabsSpeakProvider || (ElevenLabsSpeakProvider = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface Google {
|
|
2
|
+
type: "google";
|
|
3
|
+
/** The REST API version for the Google generative language API */
|
|
4
|
+
version?: "v1beta";
|
|
5
|
+
/** Google model to use */
|
|
6
|
+
model: Google.Model;
|
|
7
|
+
/** Google temperature (0-2) */
|
|
8
|
+
temperature?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace Google {
|
|
11
|
+
/** Google model to use */
|
|
12
|
+
const Model: {
|
|
13
|
+
readonly Gemini20Flash: "gemini-2.0-flash";
|
|
14
|
+
readonly Gemini20FlashLite: "gemini-2.0-flash-lite";
|
|
15
|
+
readonly Gemini25Flash: "gemini-2.5-flash";
|
|
16
|
+
};
|
|
17
|
+
type Model = (typeof Model)[keyof typeof Model] | string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var Google;
|
|
3
|
+
(function (Google) {
|
|
4
|
+
/** Google model to use */
|
|
5
|
+
Google.Model = {
|
|
6
|
+
Gemini20Flash: "gemini-2.0-flash",
|
|
7
|
+
Gemini20FlashLite: "gemini-2.0-flash-lite",
|
|
8
|
+
Gemini25Flash: "gemini-2.5-flash",
|
|
9
|
+
};
|
|
10
|
+
})(Google || (Google = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface Groq {
|
|
2
|
+
type: "groq";
|
|
3
|
+
/** The REST API version for the Groq's chat completions API (mostly OpenAI-compatible) */
|
|
4
|
+
version?: "v1";
|
|
5
|
+
/** Groq model to use */
|
|
6
|
+
model: "openai/gpt-oss-20b";
|
|
7
|
+
/** Groq temperature (0-2) */
|
|
8
|
+
temperature?: number;
|
|
9
|
+
}
|
|
@@ -5,4 +5,4 @@ export declare const ListenV1CallbackMethod: {
|
|
|
5
5
|
readonly Put: "PUT";
|
|
6
6
|
readonly Delete: "DELETE";
|
|
7
7
|
};
|
|
8
|
-
export type ListenV1CallbackMethod = (typeof ListenV1CallbackMethod)[keyof typeof ListenV1CallbackMethod];
|
|
8
|
+
export type ListenV1CallbackMethod = (typeof ListenV1CallbackMethod)[keyof typeof ListenV1CallbackMethod] | string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Identifies and extracts key entities from content in submitted audio. Entities appear in final results. When enabled, Punctuation will also be enabled by default */
|
|
2
|
+
export declare const ListenV1DetectEntities: {
|
|
3
|
+
readonly True: "true";
|
|
4
|
+
readonly False: "false";
|
|
5
|
+
};
|
|
6
|
+
export type ListenV1DetectEntities = (typeof ListenV1DetectEntities)[keyof typeof ListenV1DetectEntities] | string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Identifies and extracts key entities from content in submitted audio. Entities appear in final results. When enabled, Punctuation will also be enabled by default */
|
|
3
|
+
export const ListenV1DetectEntities = {
|
|
4
|
+
True: "true",
|
|
5
|
+
False: "false",
|
|
6
|
+
};
|
|
@@ -3,4 +3,4 @@ export declare const ListenV1Diarize: {
|
|
|
3
3
|
readonly True: "true";
|
|
4
4
|
readonly False: "false";
|
|
5
5
|
};
|
|
6
|
-
export type ListenV1Diarize = (typeof ListenV1Diarize)[keyof typeof ListenV1Diarize];
|
|
6
|
+
export type ListenV1Diarize = (typeof ListenV1Diarize)[keyof typeof ListenV1Diarize] | string;
|
|
@@ -3,4 +3,4 @@ export declare const ListenV1Dictation: {
|
|
|
3
3
|
readonly True: "true";
|
|
4
4
|
readonly False: "false";
|
|
5
5
|
};
|
|
6
|
-
export type ListenV1Dictation = (typeof ListenV1Dictation)[keyof typeof ListenV1Dictation];
|
|
6
|
+
export type ListenV1Dictation = (typeof ListenV1Dictation)[keyof typeof ListenV1Dictation] | string;
|
|
@@ -12,4 +12,4 @@ export declare const ListenV1Encoding: {
|
|
|
12
12
|
readonly Speex: "speex";
|
|
13
13
|
readonly G729: "g729";
|
|
14
14
|
};
|
|
15
|
-
export type ListenV1Encoding = (typeof ListenV1Encoding)[keyof typeof ListenV1Encoding];
|
|
15
|
+
export type ListenV1Encoding = (typeof ListenV1Encoding)[keyof typeof ListenV1Encoding] | string;
|
|
@@ -3,4 +3,4 @@ export declare const ListenV1InterimResults: {
|
|
|
3
3
|
readonly True: "true";
|
|
4
4
|
readonly False: "false";
|
|
5
5
|
};
|
|
6
|
-
export type ListenV1InterimResults = (typeof ListenV1InterimResults)[keyof typeof ListenV1InterimResults];
|
|
6
|
+
export type ListenV1InterimResults = (typeof ListenV1InterimResults)[keyof typeof ListenV1InterimResults] | string;
|
|
@@ -31,4 +31,4 @@ export declare const ListenV1Model: {
|
|
|
31
31
|
readonly Video: "video";
|
|
32
32
|
readonly Custom: "custom";
|
|
33
33
|
};
|
|
34
|
-
export type ListenV1Model = (typeof ListenV1Model)[keyof typeof ListenV1Model];
|
|
34
|
+
export type ListenV1Model = (typeof ListenV1Model)[keyof typeof ListenV1Model] | string;
|
|
@@ -3,4 +3,4 @@ export declare const ListenV1Multichannel: {
|
|
|
3
3
|
readonly True: "true";
|
|
4
4
|
readonly False: "false";
|
|
5
5
|
};
|
|
6
|
-
export type ListenV1Multichannel = (typeof ListenV1Multichannel)[keyof typeof ListenV1Multichannel];
|
|
6
|
+
export type ListenV1Multichannel = (typeof ListenV1Multichannel)[keyof typeof ListenV1Multichannel] | string;
|
|
@@ -3,4 +3,4 @@ export declare const ListenV1Numerals: {
|
|
|
3
3
|
readonly True: "true";
|
|
4
4
|
readonly False: "false";
|
|
5
5
|
};
|
|
6
|
-
export type ListenV1Numerals = (typeof ListenV1Numerals)[keyof typeof ListenV1Numerals];
|
|
6
|
+
export type ListenV1Numerals = (typeof ListenV1Numerals)[keyof typeof ListenV1Numerals] | string;
|
|
@@ -3,4 +3,4 @@ export declare const ListenV1ProfanityFilter: {
|
|
|
3
3
|
readonly True: "true";
|
|
4
4
|
readonly False: "false";
|
|
5
5
|
};
|
|
6
|
-
export type ListenV1ProfanityFilter = (typeof ListenV1ProfanityFilter)[keyof typeof ListenV1ProfanityFilter];
|
|
6
|
+
export type ListenV1ProfanityFilter = (typeof ListenV1ProfanityFilter)[keyof typeof ListenV1ProfanityFilter] | string;
|
|
@@ -3,4 +3,4 @@ export declare const ListenV1Punctuate: {
|
|
|
3
3
|
readonly True: "true";
|
|
4
4
|
readonly False: "false";
|
|
5
5
|
};
|
|
6
|
-
export type ListenV1Punctuate = (typeof ListenV1Punctuate)[keyof typeof ListenV1Punctuate];
|
|
6
|
+
export type ListenV1Punctuate = (typeof ListenV1Punctuate)[keyof typeof ListenV1Punctuate] | string;
|
|
@@ -7,4 +7,4 @@ export declare const ListenV1Redact: {
|
|
|
7
7
|
readonly AggressiveNumbers: "aggressive_numbers";
|
|
8
8
|
readonly Ssn: "ssn";
|
|
9
9
|
};
|
|
10
|
-
export type ListenV1Redact = (typeof ListenV1Redact)[keyof typeof ListenV1Redact];
|
|
10
|
+
export type ListenV1Redact = (typeof ListenV1Redact)[keyof typeof ListenV1Redact] | string;
|
|
@@ -29,6 +29,7 @@ export declare namespace ListenV1ResponseResultsChannelsItem {
|
|
|
29
29
|
confidence?: number;
|
|
30
30
|
words?: Item.Words.Item[];
|
|
31
31
|
paragraphs?: Item.Paragraphs;
|
|
32
|
+
entities?: Item.Entities.Item[];
|
|
32
33
|
summaries?: Item.Summaries.Item[];
|
|
33
34
|
topics?: Item.Topics.Item[];
|
|
34
35
|
}
|
|
@@ -68,6 +69,17 @@ export declare namespace ListenV1ResponseResultsChannelsItem {
|
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
}
|
|
72
|
+
type Entities = Entities.Item[];
|
|
73
|
+
namespace Entities {
|
|
74
|
+
interface Item {
|
|
75
|
+
label?: string;
|
|
76
|
+
value?: string;
|
|
77
|
+
raw_value?: string;
|
|
78
|
+
confidence?: number;
|
|
79
|
+
start_word?: number;
|
|
80
|
+
end_word?: number;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
71
83
|
type Summaries = Summaries.Item[];
|
|
72
84
|
namespace Summaries {
|
|
73
85
|
interface Item {
|
|
@@ -3,4 +3,4 @@ export declare const ListenV1SmartFormat: {
|
|
|
3
3
|
readonly True: "true";
|
|
4
4
|
readonly False: "false";
|
|
5
5
|
};
|
|
6
|
-
export type ListenV1SmartFormat = (typeof ListenV1SmartFormat)[keyof typeof ListenV1SmartFormat];
|
|
6
|
+
export type ListenV1SmartFormat = (typeof ListenV1SmartFormat)[keyof typeof ListenV1SmartFormat] | string;
|
|
@@ -3,4 +3,4 @@ export declare const ListenV1VadEvents: {
|
|
|
3
3
|
readonly True: "true";
|
|
4
4
|
readonly False: "false";
|
|
5
5
|
};
|
|
6
|
-
export type ListenV1VadEvents = (typeof ListenV1VadEvents)[keyof typeof ListenV1VadEvents];
|
|
6
|
+
export type ListenV1VadEvents = (typeof ListenV1VadEvents)[keyof typeof ListenV1VadEvents] | string;
|
|
@@ -7,4 +7,4 @@ export declare const ListenV2Encoding: {
|
|
|
7
7
|
readonly Opus: "opus";
|
|
8
8
|
readonly OggOpus: "ogg-opus";
|
|
9
9
|
};
|
|
10
|
-
export type ListenV2Encoding = (typeof ListenV2Encoding)[keyof typeof ListenV2Encoding];
|
|
10
|
+
export type ListenV2Encoding = (typeof ListenV2Encoding)[keyof typeof ListenV2Encoding] | string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface OpenAi {
|
|
2
|
+
type: "open_ai";
|
|
3
|
+
/** The REST API version for the OpenAI text-to-speech API */
|
|
4
|
+
version?: "v1";
|
|
5
|
+
/** OpenAI TTS model */
|
|
6
|
+
model: OpenAi.Model;
|
|
7
|
+
/** OpenAI voice */
|
|
8
|
+
voice: OpenAi.Voice;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace OpenAi {
|
|
11
|
+
/** OpenAI TTS model */
|
|
12
|
+
const Model: {
|
|
13
|
+
readonly Tts1: "tts-1";
|
|
14
|
+
readonly Tts1Hd: "tts-1-hd";
|
|
15
|
+
};
|
|
16
|
+
type Model = (typeof Model)[keyof typeof Model] | string;
|
|
17
|
+
/** OpenAI voice */
|
|
18
|
+
const Voice: {
|
|
19
|
+
readonly Alloy: "alloy";
|
|
20
|
+
readonly Echo: "echo";
|
|
21
|
+
readonly Fable: "fable";
|
|
22
|
+
readonly Onyx: "onyx";
|
|
23
|
+
readonly Nova: "nova";
|
|
24
|
+
readonly Shimmer: "shimmer";
|
|
25
|
+
};
|
|
26
|
+
type Voice = (typeof Voice)[keyof typeof Voice] | string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var OpenAi;
|
|
3
|
+
(function (OpenAi) {
|
|
4
|
+
/** OpenAI TTS model */
|
|
5
|
+
OpenAi.Model = {
|
|
6
|
+
Tts1: "tts-1",
|
|
7
|
+
Tts1Hd: "tts-1-hd",
|
|
8
|
+
};
|
|
9
|
+
/** OpenAI voice */
|
|
10
|
+
OpenAi.Voice = {
|
|
11
|
+
Alloy: "alloy",
|
|
12
|
+
Echo: "echo",
|
|
13
|
+
Fable: "fable",
|
|
14
|
+
Onyx: "onyx",
|
|
15
|
+
Nova: "nova",
|
|
16
|
+
Shimmer: "shimmer",
|
|
17
|
+
};
|
|
18
|
+
})(OpenAi || (OpenAi = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as Deepgram from "../index.mjs";
|
|
2
|
+
export interface SpeakSettingsV1 {
|
|
3
|
+
provider: Deepgram.SpeakSettingsV1Provider;
|
|
4
|
+
/**
|
|
5
|
+
* Optional if provider is Deepgram. Required for non-Deepgram TTS providers.
|
|
6
|
+
* When present, must include url field and headers object. Valid schemes are https and wss with wss only supported for Eleven Labs.
|
|
7
|
+
*/
|
|
8
|
+
endpoint?: SpeakSettingsV1.Endpoint;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace SpeakSettingsV1 {
|
|
11
|
+
/**
|
|
12
|
+
* Optional if provider is Deepgram. Required for non-Deepgram TTS providers.
|
|
13
|
+
* When present, must include url field and headers object. Valid schemes are https and wss with wss only supported for Eleven Labs.
|
|
14
|
+
*/
|
|
15
|
+
interface Endpoint {
|
|
16
|
+
/** Custom TTS endpoint URL. Cannot contain `output_format` or `model_id` query parameters when the provider is Eleven Labs. */
|
|
17
|
+
url?: string;
|
|
18
|
+
headers?: Record<string, string>;
|
|
19
|
+
}
|
|
20
|
+
}
|