@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
|
@@ -47,7 +47,7 @@ export declare namespace AgentV1Settings {
|
|
|
47
47
|
readonly Speex: "speex";
|
|
48
48
|
readonly G729: "g729";
|
|
49
49
|
};
|
|
50
|
-
type Encoding = (typeof Encoding)[keyof typeof Encoding];
|
|
50
|
+
type Encoding = (typeof Encoding)[keyof typeof Encoding] | string;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Audio output configuration settings
|
|
@@ -69,7 +69,7 @@ export declare namespace AgentV1Settings {
|
|
|
69
69
|
readonly Mulaw: "mulaw";
|
|
70
70
|
readonly Alaw: "alaw";
|
|
71
71
|
};
|
|
72
|
-
type Encoding = (typeof Encoding)[keyof typeof Encoding];
|
|
72
|
+
type Encoding = (typeof Encoding)[keyof typeof Encoding] | string;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
interface Agent {
|
|
@@ -102,7 +102,7 @@ export declare namespace AgentV1Settings {
|
|
|
102
102
|
* Conversation text as part of the conversation history */
|
|
103
103
|
{
|
|
104
104
|
type: "History";
|
|
105
|
-
role: "user" | "assistant";
|
|
105
|
+
role: "user" | "assistant" | string;
|
|
106
106
|
content: string;
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
@@ -122,63 +122,33 @@ export declare namespace AgentV1Settings {
|
|
|
122
122
|
interface Listen {
|
|
123
123
|
provider?: Deepgram.agent.AgentV1SettingsAgentListenProvider;
|
|
124
124
|
}
|
|
125
|
-
|
|
126
|
-
provider:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
type Functions = Functions.Item[];
|
|
145
|
-
namespace Functions {
|
|
146
|
-
interface Item {
|
|
147
|
-
/** Function name */
|
|
148
|
-
name?: string;
|
|
149
|
-
/** Function description */
|
|
150
|
-
description?: string;
|
|
151
|
-
/** Function parameters */
|
|
152
|
-
parameters?: Record<string, unknown>;
|
|
153
|
-
/** The Function endpoint to call. if not passed, function is called client-side */
|
|
154
|
-
endpoint?: Item.Endpoint;
|
|
155
|
-
}
|
|
156
|
-
namespace Item {
|
|
157
|
-
/**
|
|
158
|
-
* The Function endpoint to call. if not passed, function is called client-side
|
|
159
|
-
*/
|
|
160
|
-
interface Endpoint {
|
|
161
|
-
/** Endpoint URL */
|
|
162
|
-
url?: string;
|
|
163
|
-
/** HTTP method */
|
|
164
|
-
method?: string;
|
|
165
|
-
headers?: Record<string, string>;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* 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
|
|
171
|
-
*/
|
|
172
|
-
type ContextLength = "max" | number;
|
|
173
|
-
}
|
|
125
|
+
type Think = {
|
|
126
|
+
provider: Record<string, unknown>;
|
|
127
|
+
endpoint?: {
|
|
128
|
+
url?: string | undefined;
|
|
129
|
+
headers?: Record<string, string> | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
functions?: Record<string, unknown>[] | undefined;
|
|
132
|
+
prompt?: string | undefined;
|
|
133
|
+
context_length?: ("max" | number) | undefined;
|
|
134
|
+
} | {
|
|
135
|
+
provider: Record<string, unknown>;
|
|
136
|
+
endpoint?: {
|
|
137
|
+
url?: string | undefined;
|
|
138
|
+
headers?: Record<string, string> | undefined;
|
|
139
|
+
} | undefined;
|
|
140
|
+
functions?: Record<string, unknown>[] | undefined;
|
|
141
|
+
prompt?: string | undefined;
|
|
142
|
+
context_length?: ("max" | number) | undefined;
|
|
143
|
+
}[];
|
|
174
144
|
type Speak = {
|
|
175
|
-
provider:
|
|
145
|
+
provider: Record<string, unknown>;
|
|
176
146
|
endpoint?: {
|
|
177
147
|
url?: string | undefined;
|
|
178
148
|
headers?: Record<string, string> | undefined;
|
|
179
149
|
} | undefined;
|
|
180
150
|
} | {
|
|
181
|
-
provider:
|
|
151
|
+
provider: Record<string, unknown>;
|
|
182
152
|
endpoint?: {
|
|
183
153
|
url?: string | undefined;
|
|
184
154
|
headers?: Record<string, string> | undefined;
|
package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ export declare namespace AgentV1SettingsAgentListenProvider {
|
|
|
7
7
|
type: "deepgram";
|
|
8
8
|
/** Model to use for speech to text using the V1 API (e.g. Nova-3, Nova-2) */
|
|
9
9
|
model?: string;
|
|
10
|
-
/** Language code to use for speech-to-text.
|
|
10
|
+
/** Language code to use for speech-to-text. Can be a BCP-47 language tag (e.g. `en`), or `multi` for code-switching transcription */
|
|
11
11
|
language?: string;
|
|
12
12
|
/** Prompt keyterm recognition to improve Keyword Recall Rate */
|
|
13
13
|
keyterms?: string[];
|
|
@@ -1,32 +1,16 @@
|
|
|
1
|
-
import type * as Deepgram from "../../../../../index.mjs";
|
|
2
1
|
export interface AgentV1UpdateSpeak {
|
|
3
2
|
/** Message type identifier for updating the speak model */
|
|
4
3
|
type: "UpdateSpeak";
|
|
5
|
-
/** Configuration for the speak model. Optional, defaults to latest deepgram TTS model */
|
|
6
4
|
speak: AgentV1UpdateSpeak.Speak;
|
|
7
5
|
}
|
|
8
6
|
export declare namespace AgentV1UpdateSpeak {
|
|
9
|
-
/**
|
|
10
|
-
* Configuration for the speak model. Optional, defaults to latest deepgram TTS model
|
|
11
|
-
*/
|
|
12
7
|
interface Speak {
|
|
13
|
-
provider
|
|
14
|
-
|
|
15
|
-
* Optional if provider is Deepgram. Required for non-Deepgram TTS providers.
|
|
16
|
-
* When present, must include url field and headers object. Valid schemes are https and wss with wss only supported for Eleven Labs.
|
|
17
|
-
*/
|
|
8
|
+
/** TTS provider configuration (Deepgram, ElevenLabs, Cartesia, OpenAI, or AWS Polly) */
|
|
9
|
+
provider: Record<string, unknown>;
|
|
18
10
|
endpoint?: Speak.Endpoint;
|
|
19
11
|
}
|
|
20
12
|
namespace Speak {
|
|
21
|
-
/**
|
|
22
|
-
* Optional if provider is Deepgram. Required for non-Deepgram TTS providers.
|
|
23
|
-
* When present, must include url field and headers object. Valid schemes are https and wss with wss only supported for Eleven Labs.
|
|
24
|
-
*/
|
|
25
13
|
interface Endpoint {
|
|
26
|
-
/**
|
|
27
|
-
* Custom TTS endpoint URL. Cannot contain `output_format` or `model_id` query
|
|
28
|
-
* parameters when the provider is Eleven Labs.
|
|
29
|
-
*/
|
|
30
14
|
url?: string;
|
|
31
15
|
headers?: Record<string, string>;
|
|
32
16
|
}
|
|
@@ -13,14 +13,10 @@ export * from "./AgentV1ReceiveFunctionCallResponse.mjs";
|
|
|
13
13
|
export * from "./AgentV1SendFunctionCallResponse.mjs";
|
|
14
14
|
export * from "./AgentV1Settings.mjs";
|
|
15
15
|
export * from "./AgentV1SettingsAgentListenProvider.mjs";
|
|
16
|
-
export * from "./AgentV1SettingsAgentSpeakEndpointProvider.mjs";
|
|
17
|
-
export * from "./AgentV1SettingsAgentSpeakOneItemProvider.mjs";
|
|
18
|
-
export * from "./AgentV1SettingsAgentThinkProvider.mjs";
|
|
19
16
|
export * from "./AgentV1SettingsApplied.mjs";
|
|
20
17
|
export * from "./AgentV1SpeakUpdated.mjs";
|
|
21
18
|
export * from "./AgentV1UpdatePrompt.mjs";
|
|
22
19
|
export * from "./AgentV1UpdateSpeak.mjs";
|
|
23
|
-
export * from "./AgentV1UpdateSpeakSpeakProvider.mjs";
|
|
24
20
|
export * from "./AgentV1UserStartedSpeaking.mjs";
|
|
25
21
|
export * from "./AgentV1Warning.mjs";
|
|
26
22
|
export * from "./AgentV1Welcome.mjs";
|
|
@@ -13,14 +13,10 @@ export * from "./AgentV1ReceiveFunctionCallResponse.mjs";
|
|
|
13
13
|
export * from "./AgentV1SendFunctionCallResponse.mjs";
|
|
14
14
|
export * from "./AgentV1Settings.mjs";
|
|
15
15
|
export * from "./AgentV1SettingsAgentListenProvider.mjs";
|
|
16
|
-
export * from "./AgentV1SettingsAgentSpeakEndpointProvider.mjs";
|
|
17
|
-
export * from "./AgentV1SettingsAgentSpeakOneItemProvider.mjs";
|
|
18
|
-
export * from "./AgentV1SettingsAgentThinkProvider.mjs";
|
|
19
16
|
export * from "./AgentV1SettingsApplied.mjs";
|
|
20
17
|
export * from "./AgentV1SpeakUpdated.mjs";
|
|
21
18
|
export * from "./AgentV1UpdatePrompt.mjs";
|
|
22
19
|
export * from "./AgentV1UpdateSpeak.mjs";
|
|
23
|
-
export * from "./AgentV1UpdateSpeakSpeakProvider.mjs";
|
|
24
20
|
export * from "./AgentV1UserStartedSpeaking.mjs";
|
|
25
21
|
export * from "./AgentV1Warning.mjs";
|
|
26
22
|
export * from "./AgentV1Welcome.mjs";
|
|
@@ -25,11 +25,12 @@ export class V1Client {
|
|
|
25
25
|
connect(args) {
|
|
26
26
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27
27
|
var _a, _b;
|
|
28
|
-
const { callback, callback_method: callbackMethod, channels, diarize, dictation, encoding, endpointing, extra, interim_results: interimResults, keyterm, keywords, language, mip_opt_out: mipOptOut, model, multichannel, numerals, profanity_filter: profanityFilter, punctuate, redact, replace, sample_rate: sampleRate, search, smart_format: smartFormat, tag, utterance_end_ms: utteranceEndMs, vad_events: vadEvents, version, headers, debug, reconnectAttempts, } = args;
|
|
28
|
+
const { callback, callback_method: callbackMethod, channels, detect_entities: detectEntities, diarize, dictation, encoding, endpointing, extra, interim_results: interimResults, keyterm, keywords, language, mip_opt_out: mipOptOut, model, multichannel, numerals, profanity_filter: profanityFilter, punctuate, redact, replace, sample_rate: sampleRate, search, smart_format: smartFormat, tag, utterance_end_ms: utteranceEndMs, vad_events: vadEvents, version, headers, debug, reconnectAttempts, } = args;
|
|
29
29
|
const _queryParams = {
|
|
30
30
|
callback,
|
|
31
31
|
callback_method: callbackMethod,
|
|
32
32
|
channels,
|
|
33
|
+
detect_entities: detectEntities,
|
|
33
34
|
diarize,
|
|
34
35
|
dictation,
|
|
35
36
|
encoding,
|
|
@@ -2,4 +2,4 @@ export declare const MediaTranscribeRequestCallbackMethod: {
|
|
|
2
2
|
readonly Post: "POST";
|
|
3
3
|
readonly Put: "PUT";
|
|
4
4
|
};
|
|
5
|
-
export type MediaTranscribeRequestCallbackMethod = (typeof MediaTranscribeRequestCallbackMethod)[keyof typeof MediaTranscribeRequestCallbackMethod];
|
|
5
|
+
export type MediaTranscribeRequestCallbackMethod = (typeof MediaTranscribeRequestCallbackMethod)[keyof typeof MediaTranscribeRequestCallbackMethod] | string;
|
|
@@ -2,4 +2,4 @@ export declare const MediaTranscribeRequestCustomIntentMode: {
|
|
|
2
2
|
readonly Extended: "extended";
|
|
3
3
|
readonly Strict: "strict";
|
|
4
4
|
};
|
|
5
|
-
export type MediaTranscribeRequestCustomIntentMode = (typeof MediaTranscribeRequestCustomIntentMode)[keyof typeof MediaTranscribeRequestCustomIntentMode];
|
|
5
|
+
export type MediaTranscribeRequestCustomIntentMode = (typeof MediaTranscribeRequestCustomIntentMode)[keyof typeof MediaTranscribeRequestCustomIntentMode] | string;
|
|
@@ -2,4 +2,4 @@ export declare const MediaTranscribeRequestCustomTopicMode: {
|
|
|
2
2
|
readonly Extended: "extended";
|
|
3
3
|
readonly Strict: "strict";
|
|
4
4
|
};
|
|
5
|
-
export type MediaTranscribeRequestCustomTopicMode = (typeof MediaTranscribeRequestCustomTopicMode)[keyof typeof MediaTranscribeRequestCustomTopicMode];
|
|
5
|
+
export type MediaTranscribeRequestCustomTopicMode = (typeof MediaTranscribeRequestCustomTopicMode)[keyof typeof MediaTranscribeRequestCustomTopicMode] | string;
|
|
@@ -8,4 +8,4 @@ export declare const MediaTranscribeRequestEncoding: {
|
|
|
8
8
|
readonly Speex: "speex";
|
|
9
9
|
readonly G729: "g729";
|
|
10
10
|
};
|
|
11
|
-
export type MediaTranscribeRequestEncoding = (typeof MediaTranscribeRequestEncoding)[keyof typeof MediaTranscribeRequestEncoding];
|
|
11
|
+
export type MediaTranscribeRequestEncoding = (typeof MediaTranscribeRequestEncoding)[keyof typeof MediaTranscribeRequestEncoding] | string;
|
|
@@ -29,4 +29,4 @@ export declare const MediaTranscribeRequestModel: {
|
|
|
29
29
|
readonly Voicemail: "voicemail";
|
|
30
30
|
readonly Video: "video";
|
|
31
31
|
};
|
|
32
|
-
export type MediaTranscribeRequestModel = (typeof MediaTranscribeRequestModel)[keyof typeof MediaTranscribeRequestModel];
|
|
32
|
+
export type MediaTranscribeRequestModel = (typeof MediaTranscribeRequestModel)[keyof typeof MediaTranscribeRequestModel] | string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const MediaTranscribeRequestSummarize: {
|
|
2
2
|
readonly V2: "v2";
|
|
3
3
|
};
|
|
4
|
-
export type MediaTranscribeRequestSummarize = (typeof MediaTranscribeRequestSummarize)[keyof typeof MediaTranscribeRequestSummarize];
|
|
4
|
+
export type MediaTranscribeRequestSummarize = (typeof MediaTranscribeRequestSummarize)[keyof typeof MediaTranscribeRequestSummarize] | string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const MediaTranscribeRequestVersion: {
|
|
2
2
|
readonly Latest: "latest";
|
|
3
3
|
};
|
|
4
|
-
export type MediaTranscribeRequestVersion = (typeof MediaTranscribeRequestVersion)[keyof typeof MediaTranscribeRequestVersion];
|
|
4
|
+
export type MediaTranscribeRequestVersion = (typeof MediaTranscribeRequestVersion)[keyof typeof MediaTranscribeRequestVersion] | string;
|
|
@@ -15,6 +15,8 @@ export interface ListenV1Results {
|
|
|
15
15
|
metadata: ListenV1Results.Metadata;
|
|
16
16
|
/** Whether the transcription is from a finalize message */
|
|
17
17
|
from_finalize?: boolean;
|
|
18
|
+
/** Extracted entities from the audio when detect_entities is enabled. Only present in is_final messages. Returns an empty array if no entities are detected */
|
|
19
|
+
entities?: ListenV1Results.Entities.Item[];
|
|
18
20
|
}
|
|
19
21
|
export declare namespace ListenV1Results {
|
|
20
22
|
interface Channel {
|
|
@@ -71,4 +73,21 @@ export declare namespace ListenV1Results {
|
|
|
71
73
|
arch: string;
|
|
72
74
|
}
|
|
73
75
|
}
|
|
76
|
+
type Entities = Entities.Item[];
|
|
77
|
+
namespace Entities {
|
|
78
|
+
interface Item {
|
|
79
|
+
/** The type/category of the entity (e.g., NAME, PHONE_NUMBER, EMAIL_ADDRESS, ORGANIZATION, CARDINAL) */
|
|
80
|
+
label: string;
|
|
81
|
+
/** The formatted text representation of the entity */
|
|
82
|
+
value: string;
|
|
83
|
+
/** The original spoken text of the entity (present when formatting is enabled) */
|
|
84
|
+
raw_value: string;
|
|
85
|
+
/** The confidence score of the entity detection */
|
|
86
|
+
confidence: number;
|
|
87
|
+
/** The index of the first word of the entity in the transcript (inclusive) */
|
|
88
|
+
start_word: number;
|
|
89
|
+
/** The index of the last word of the entity in the transcript (exclusive) */
|
|
90
|
+
end_word: number;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
74
93
|
}
|
|
@@ -47,7 +47,7 @@ export declare namespace ListenV2TurnInfo {
|
|
|
47
47
|
readonly TurnResumed: "TurnResumed";
|
|
48
48
|
readonly EndOfTurn: "EndOfTurn";
|
|
49
49
|
};
|
|
50
|
-
type Event = (typeof Event)[keyof typeof Event];
|
|
50
|
+
type Event = (typeof Event)[keyof typeof Event] | string;
|
|
51
51
|
type Words = Words.Item[];
|
|
52
52
|
namespace Words {
|
|
53
53
|
interface Item {
|
|
@@ -4,4 +4,4 @@ export declare const BreakdownListRequestDeployment: {
|
|
|
4
4
|
readonly Beta: "beta";
|
|
5
5
|
readonly SelfHosted: "self-hosted";
|
|
6
6
|
};
|
|
7
|
-
export type BreakdownListRequestDeployment = (typeof BreakdownListRequestDeployment)[keyof typeof BreakdownListRequestDeployment];
|
|
7
|
+
export type BreakdownListRequestDeployment = (typeof BreakdownListRequestDeployment)[keyof typeof BreakdownListRequestDeployment] | string;
|
|
@@ -4,4 +4,4 @@ export declare const BreakdownListRequestGroupingItem: {
|
|
|
4
4
|
readonly LineItem: "line_item";
|
|
5
5
|
readonly Tags: "tags";
|
|
6
6
|
};
|
|
7
|
-
export type BreakdownListRequestGroupingItem = (typeof BreakdownListRequestGroupingItem)[keyof typeof BreakdownListRequestGroupingItem];
|
|
7
|
+
export type BreakdownListRequestGroupingItem = (typeof BreakdownListRequestGroupingItem)[keyof typeof BreakdownListRequestGroupingItem] | string;
|
|
@@ -2,4 +2,4 @@ export declare const KeysListRequestStatus: {
|
|
|
2
2
|
readonly Active: "active";
|
|
3
3
|
readonly Expired: "expired";
|
|
4
4
|
};
|
|
5
|
-
export type KeysListRequestStatus = (typeof KeysListRequestStatus)[keyof typeof KeysListRequestStatus];
|
|
5
|
+
export type KeysListRequestStatus = (typeof KeysListRequestStatus)[keyof typeof KeysListRequestStatus] | string;
|
|
@@ -50,8 +50,8 @@ export class RequestsClient {
|
|
|
50
50
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
51
51
|
const { start, end, limit, page, accessor, request_id: requestId, deployment, endpoint, method, status, } = request;
|
|
52
52
|
const _queryParams = {
|
|
53
|
-
start,
|
|
54
|
-
end,
|
|
53
|
+
start: start != null ? start : undefined,
|
|
54
|
+
end: end != null ? end : undefined,
|
|
55
55
|
limit,
|
|
56
56
|
page,
|
|
57
57
|
accessor,
|
|
@@ -4,4 +4,4 @@ export declare const RequestsListRequestDeployment: {
|
|
|
4
4
|
readonly Beta: "beta";
|
|
5
5
|
readonly SelfHosted: "self-hosted";
|
|
6
6
|
};
|
|
7
|
-
export type RequestsListRequestDeployment = (typeof RequestsListRequestDeployment)[keyof typeof RequestsListRequestDeployment];
|
|
7
|
+
export type RequestsListRequestDeployment = (typeof RequestsListRequestDeployment)[keyof typeof RequestsListRequestDeployment] | string;
|
|
@@ -4,4 +4,4 @@ export declare const RequestsListRequestEndpoint: {
|
|
|
4
4
|
readonly Speak: "speak";
|
|
5
5
|
readonly Agent: "agent";
|
|
6
6
|
};
|
|
7
|
-
export type RequestsListRequestEndpoint = (typeof RequestsListRequestEndpoint)[keyof typeof RequestsListRequestEndpoint];
|
|
7
|
+
export type RequestsListRequestEndpoint = (typeof RequestsListRequestEndpoint)[keyof typeof RequestsListRequestEndpoint] | string;
|
|
@@ -4,4 +4,4 @@ export declare const RequestsListRequestMethod: {
|
|
|
4
4
|
readonly Async: "async";
|
|
5
5
|
readonly Streaming: "streaming";
|
|
6
6
|
};
|
|
7
|
-
export type RequestsListRequestMethod = (typeof RequestsListRequestMethod)[keyof typeof RequestsListRequestMethod];
|
|
7
|
+
export type RequestsListRequestMethod = (typeof RequestsListRequestMethod)[keyof typeof RequestsListRequestMethod] | string;
|
|
@@ -2,4 +2,4 @@ export declare const RequestsListRequestStatus: {
|
|
|
2
2
|
readonly Succeeded: "succeeded";
|
|
3
3
|
readonly Failed: "failed";
|
|
4
4
|
};
|
|
5
|
-
export type RequestsListRequestStatus = (typeof RequestsListRequestStatus)[keyof typeof RequestsListRequestStatus];
|
|
5
|
+
export type RequestsListRequestStatus = (typeof RequestsListRequestStatus)[keyof typeof RequestsListRequestStatus] | string;
|
|
@@ -4,4 +4,4 @@ export declare const BreakdownGetRequestDeployment: {
|
|
|
4
4
|
readonly Beta: "beta";
|
|
5
5
|
readonly SelfHosted: "self-hosted";
|
|
6
6
|
};
|
|
7
|
-
export type BreakdownGetRequestDeployment = (typeof BreakdownGetRequestDeployment)[keyof typeof BreakdownGetRequestDeployment];
|
|
7
|
+
export type BreakdownGetRequestDeployment = (typeof BreakdownGetRequestDeployment)[keyof typeof BreakdownGetRequestDeployment] | string;
|
|
@@ -4,4 +4,4 @@ export declare const BreakdownGetRequestEndpoint: {
|
|
|
4
4
|
readonly Speak: "speak";
|
|
5
5
|
readonly Agent: "agent";
|
|
6
6
|
};
|
|
7
|
-
export type BreakdownGetRequestEndpoint = (typeof BreakdownGetRequestEndpoint)[keyof typeof BreakdownGetRequestEndpoint];
|
|
7
|
+
export type BreakdownGetRequestEndpoint = (typeof BreakdownGetRequestEndpoint)[keyof typeof BreakdownGetRequestEndpoint] | string;
|
|
@@ -7,4 +7,4 @@ export declare const BreakdownGetRequestGrouping: {
|
|
|
7
7
|
readonly Tags: "tags";
|
|
8
8
|
readonly Deployment: "deployment";
|
|
9
9
|
};
|
|
10
|
-
export type BreakdownGetRequestGrouping = (typeof BreakdownGetRequestGrouping)[keyof typeof BreakdownGetRequestGrouping];
|
|
10
|
+
export type BreakdownGetRequestGrouping = (typeof BreakdownGetRequestGrouping)[keyof typeof BreakdownGetRequestGrouping] | string;
|
|
@@ -4,4 +4,4 @@ export declare const BreakdownGetRequestMethod: {
|
|
|
4
4
|
readonly Async: "async";
|
|
5
5
|
readonly Streaming: "streaming";
|
|
6
6
|
};
|
|
7
|
-
export type BreakdownGetRequestMethod = (typeof BreakdownGetRequestMethod)[keyof typeof BreakdownGetRequestMethod];
|
|
7
|
+
export type BreakdownGetRequestMethod = (typeof BreakdownGetRequestMethod)[keyof typeof BreakdownGetRequestMethod] | string;
|
|
@@ -4,4 +4,4 @@ export declare const UsageGetRequestDeployment: {
|
|
|
4
4
|
readonly Beta: "beta";
|
|
5
5
|
readonly SelfHosted: "self-hosted";
|
|
6
6
|
};
|
|
7
|
-
export type UsageGetRequestDeployment = (typeof UsageGetRequestDeployment)[keyof typeof UsageGetRequestDeployment];
|
|
7
|
+
export type UsageGetRequestDeployment = (typeof UsageGetRequestDeployment)[keyof typeof UsageGetRequestDeployment] | string;
|
|
@@ -4,4 +4,4 @@ export declare const UsageGetRequestEndpoint: {
|
|
|
4
4
|
readonly Speak: "speak";
|
|
5
5
|
readonly Agent: "agent";
|
|
6
6
|
};
|
|
7
|
-
export type UsageGetRequestEndpoint = (typeof UsageGetRequestEndpoint)[keyof typeof UsageGetRequestEndpoint];
|
|
7
|
+
export type UsageGetRequestEndpoint = (typeof UsageGetRequestEndpoint)[keyof typeof UsageGetRequestEndpoint] | string;
|
|
@@ -4,4 +4,4 @@ export declare const UsageGetRequestMethod: {
|
|
|
4
4
|
readonly Async: "async";
|
|
5
5
|
readonly Streaming: "streaming";
|
|
6
6
|
};
|
|
7
|
-
export type UsageGetRequestMethod = (typeof UsageGetRequestMethod)[keyof typeof UsageGetRequestMethod];
|
|
7
|
+
export type UsageGetRequestMethod = (typeof UsageGetRequestMethod)[keyof typeof UsageGetRequestMethod] | string;
|
|
@@ -2,4 +2,4 @@ export declare const TextAnalyzeRequestCallbackMethod: {
|
|
|
2
2
|
readonly Post: "POST";
|
|
3
3
|
readonly Put: "PUT";
|
|
4
4
|
};
|
|
5
|
-
export type TextAnalyzeRequestCallbackMethod = (typeof TextAnalyzeRequestCallbackMethod)[keyof typeof TextAnalyzeRequestCallbackMethod];
|
|
5
|
+
export type TextAnalyzeRequestCallbackMethod = (typeof TextAnalyzeRequestCallbackMethod)[keyof typeof TextAnalyzeRequestCallbackMethod] | string;
|
|
@@ -2,4 +2,4 @@ export declare const TextAnalyzeRequestCustomIntentMode: {
|
|
|
2
2
|
readonly Extended: "extended";
|
|
3
3
|
readonly Strict: "strict";
|
|
4
4
|
};
|
|
5
|
-
export type TextAnalyzeRequestCustomIntentMode = (typeof TextAnalyzeRequestCustomIntentMode)[keyof typeof TextAnalyzeRequestCustomIntentMode];
|
|
5
|
+
export type TextAnalyzeRequestCustomIntentMode = (typeof TextAnalyzeRequestCustomIntentMode)[keyof typeof TextAnalyzeRequestCustomIntentMode] | string;
|
|
@@ -2,4 +2,4 @@ export declare const TextAnalyzeRequestCustomTopicMode: {
|
|
|
2
2
|
readonly Extended: "extended";
|
|
3
3
|
readonly Strict: "strict";
|
|
4
4
|
};
|
|
5
|
-
export type TextAnalyzeRequestCustomTopicMode = (typeof TextAnalyzeRequestCustomTopicMode)[keyof typeof TextAnalyzeRequestCustomTopicMode];
|
|
5
|
+
export type TextAnalyzeRequestCustomTopicMode = (typeof TextAnalyzeRequestCustomTopicMode)[keyof typeof TextAnalyzeRequestCustomTopicMode] | string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const TextAnalyzeRequestSummarize: {
|
|
2
2
|
readonly V2: "v2";
|
|
3
3
|
};
|
|
4
|
-
export type TextAnalyzeRequestSummarize = (typeof TextAnalyzeRequestSummarize)[keyof typeof TextAnalyzeRequestSummarize];
|
|
4
|
+
export type TextAnalyzeRequestSummarize = (typeof TextAnalyzeRequestSummarize)[keyof typeof TextAnalyzeRequestSummarize] | string;
|
|
@@ -8,4 +8,4 @@ export declare const DistributionCredentialsCreateRequestScopesItem: {
|
|
|
8
8
|
readonly SelfHostedProductHotpepper: "self-hosted:product:hotpepper";
|
|
9
9
|
readonly SelfHostedProductMetricsServer: "self-hosted:product:metrics-server";
|
|
10
10
|
};
|
|
11
|
-
export type DistributionCredentialsCreateRequestScopesItem = (typeof DistributionCredentialsCreateRequestScopesItem)[keyof typeof DistributionCredentialsCreateRequestScopesItem];
|
|
11
|
+
export type DistributionCredentialsCreateRequestScopesItem = (typeof DistributionCredentialsCreateRequestScopesItem)[keyof typeof DistributionCredentialsCreateRequestScopesItem] | string;
|
|
@@ -2,4 +2,4 @@ export declare const AudioGenerateRequestCallbackMethod: {
|
|
|
2
2
|
readonly Post: "POST";
|
|
3
3
|
readonly Put: "PUT";
|
|
4
4
|
};
|
|
5
|
-
export type AudioGenerateRequestCallbackMethod = (typeof AudioGenerateRequestCallbackMethod)[keyof typeof AudioGenerateRequestCallbackMethod];
|
|
5
|
+
export type AudioGenerateRequestCallbackMethod = (typeof AudioGenerateRequestCallbackMethod)[keyof typeof AudioGenerateRequestCallbackMethod] | string;
|
|
@@ -3,4 +3,4 @@ export declare const AudioGenerateRequestContainer: {
|
|
|
3
3
|
readonly Wav: "wav";
|
|
4
4
|
readonly Ogg: "ogg";
|
|
5
5
|
};
|
|
6
|
-
export type AudioGenerateRequestContainer = (typeof AudioGenerateRequestContainer)[keyof typeof AudioGenerateRequestContainer];
|
|
6
|
+
export type AudioGenerateRequestContainer = (typeof AudioGenerateRequestContainer)[keyof typeof AudioGenerateRequestContainer] | string;
|
|
@@ -7,4 +7,4 @@ export declare const AudioGenerateRequestEncoding: {
|
|
|
7
7
|
readonly Opus: "opus";
|
|
8
8
|
readonly Aac: "aac";
|
|
9
9
|
};
|
|
10
|
-
export type AudioGenerateRequestEncoding = (typeof AudioGenerateRequestEncoding)[keyof typeof AudioGenerateRequestEncoding];
|
|
10
|
+
export type AudioGenerateRequestEncoding = (typeof AudioGenerateRequestEncoding)[keyof typeof AudioGenerateRequestEncoding] | string;
|
|
@@ -63,4 +63,4 @@ export declare const AudioGenerateRequestModel: {
|
|
|
63
63
|
readonly Aura2EstrellaEs: "aura-2-estrella-es";
|
|
64
64
|
readonly Aura2JavierEs: "aura-2-javier-es";
|
|
65
65
|
};
|
|
66
|
-
export type AudioGenerateRequestModel = (typeof AudioGenerateRequestModel)[keyof typeof AudioGenerateRequestModel];
|
|
66
|
+
export type AudioGenerateRequestModel = (typeof AudioGenerateRequestModel)[keyof typeof AudioGenerateRequestModel] | string;
|
|
@@ -8,21 +8,21 @@ export declare namespace AgentThinkModelsV1Response {
|
|
|
8
8
|
/**
|
|
9
9
|
* OpenAI models */
|
|
10
10
|
{
|
|
11
|
-
id: "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o" | "gpt-4o-mini";
|
|
11
|
+
id: "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o" | "gpt-4o-mini" | string;
|
|
12
12
|
name: string;
|
|
13
13
|
provider: "open_ai";
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Anthropic models */
|
|
17
17
|
| {
|
|
18
|
-
id: "claude-3-5-haiku-latest" | "claude-sonnet-4-20250514";
|
|
18
|
+
id: "claude-3-5-haiku-latest" | "claude-sonnet-4-20250514" | string;
|
|
19
19
|
name: string;
|
|
20
20
|
provider: "anthropic";
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Google models */
|
|
24
24
|
| {
|
|
25
|
-
id: "gemini-2.5-flash" | "gemini-2.0-flash" | "gemini-2.0-flash-lite";
|
|
25
|
+
id: "gemini-2.5-flash" | "gemini-2.0-flash" | "gemini-2.0-flash-lite" | string;
|
|
26
26
|
name: string;
|
|
27
27
|
provider: "google";
|
|
28
28
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface Anthropic {
|
|
2
|
+
type: "anthropic";
|
|
3
|
+
/** The REST API version for the Anthropic Messages API */
|
|
4
|
+
version?: "v1";
|
|
5
|
+
/** Anthropic model to use */
|
|
6
|
+
model: Anthropic.Model;
|
|
7
|
+
/** Anthropic temperature (0-1) */
|
|
8
|
+
temperature?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace Anthropic {
|
|
11
|
+
/** Anthropic model to use */
|
|
12
|
+
const Model: {
|
|
13
|
+
readonly Claude35HaikuLatest: "claude-3-5-haiku-latest";
|
|
14
|
+
readonly ClaudeSonnet420250514: "claude-sonnet-4-20250514";
|
|
15
|
+
};
|
|
16
|
+
type Model = (typeof Model)[keyof typeof Model] | string;
|
|
17
|
+
}
|