@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.
Files changed (206) hide show
  1. package/dist/browser/index.global.js +304 -451
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/CustomClient.js +124 -0
  4. package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1ConversationText.d.ts +1 -1
  5. package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1Settings.d.ts +24 -54
  6. package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.d.ts +1 -1
  7. package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1UpdateSpeak.d.ts +2 -18
  8. package/dist/cjs/api/resources/agent/resources/v1/types/index.d.ts +0 -4
  9. package/dist/cjs/api/resources/agent/resources/v1/types/index.js +0 -4
  10. package/dist/cjs/api/resources/listen/resources/v1/client/Client.d.ts +1 -0
  11. package/dist/cjs/api/resources/listen/resources/v1/client/Client.js +2 -1
  12. package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestCallbackMethod.d.ts +1 -1
  13. package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestCustomIntentMode.d.ts +1 -1
  14. package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestCustomTopicMode.d.ts +1 -1
  15. package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestEncoding.d.ts +1 -1
  16. package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestModel.d.ts +1 -1
  17. package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestSummarize.d.ts +1 -1
  18. package/dist/cjs/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestVersion.d.ts +1 -1
  19. package/dist/cjs/api/resources/listen/resources/v1/types/ListenV1CloseStream.d.ts +1 -1
  20. package/dist/cjs/api/resources/listen/resources/v1/types/ListenV1Finalize.d.ts +1 -1
  21. package/dist/cjs/api/resources/listen/resources/v1/types/ListenV1KeepAlive.d.ts +1 -1
  22. package/dist/cjs/api/resources/listen/resources/v1/types/ListenV1Results.d.ts +19 -0
  23. package/dist/cjs/api/resources/listen/resources/v2/types/ListenV2CloseStream.d.ts +1 -1
  24. package/dist/cjs/api/resources/listen/resources/v2/types/ListenV2TurnInfo.d.ts +1 -1
  25. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/types/BreakdownListRequestDeployment.d.ts +1 -1
  26. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/types/BreakdownListRequestGroupingItem.d.ts +1 -1
  27. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/keys/types/KeysListRequestStatus.d.ts +1 -1
  28. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.js +2 -2
  29. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/types/RequestsListRequestDeployment.d.ts +1 -1
  30. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/types/RequestsListRequestEndpoint.d.ts +1 -1
  31. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/types/RequestsListRequestMethod.d.ts +1 -1
  32. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/types/RequestsListRequestStatus.d.ts +1 -1
  33. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/types/BreakdownGetRequestDeployment.d.ts +1 -1
  34. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/types/BreakdownGetRequestEndpoint.d.ts +1 -1
  35. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/types/BreakdownGetRequestGrouping.d.ts +1 -1
  36. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/types/BreakdownGetRequestMethod.d.ts +1 -1
  37. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/types/UsageGetRequestDeployment.d.ts +1 -1
  38. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/types/UsageGetRequestEndpoint.d.ts +1 -1
  39. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/types/UsageGetRequestMethod.d.ts +1 -1
  40. package/dist/cjs/api/resources/read/resources/v1/resources/text/types/TextAnalyzeRequestCallbackMethod.d.ts +1 -1
  41. package/dist/cjs/api/resources/read/resources/v1/resources/text/types/TextAnalyzeRequestCustomIntentMode.d.ts +1 -1
  42. package/dist/cjs/api/resources/read/resources/v1/resources/text/types/TextAnalyzeRequestCustomTopicMode.d.ts +1 -1
  43. package/dist/cjs/api/resources/read/resources/v1/resources/text/types/TextAnalyzeRequestSummarize.d.ts +1 -1
  44. package/dist/cjs/api/resources/selfHosted/resources/v1/resources/distributionCredentials/types/DistributionCredentialsCreateRequestScopesItem.d.ts +1 -1
  45. package/dist/cjs/api/resources/speak/resources/v1/resources/audio/types/AudioGenerateRequestCallbackMethod.d.ts +1 -1
  46. package/dist/cjs/api/resources/speak/resources/v1/resources/audio/types/AudioGenerateRequestContainer.d.ts +1 -1
  47. package/dist/cjs/api/resources/speak/resources/v1/resources/audio/types/AudioGenerateRequestEncoding.d.ts +1 -1
  48. package/dist/cjs/api/resources/speak/resources/v1/resources/audio/types/AudioGenerateRequestModel.d.ts +1 -1
  49. package/dist/cjs/api/resources/speak/resources/v1/types/SpeakV1Clear.d.ts +1 -1
  50. package/dist/cjs/api/resources/speak/resources/v1/types/SpeakV1Cleared.d.ts +1 -1
  51. package/dist/cjs/api/resources/speak/resources/v1/types/SpeakV1Close.d.ts +1 -1
  52. package/dist/cjs/api/resources/speak/resources/v1/types/SpeakV1Flush.d.ts +1 -1
  53. package/dist/cjs/api/resources/speak/resources/v1/types/SpeakV1Flushed.d.ts +1 -1
  54. package/dist/cjs/api/types/AgentThinkModelsV1Response.d.ts +3 -3
  55. package/dist/cjs/api/types/Anthropic.d.ts +17 -0
  56. package/dist/cjs/api/types/Anthropic.js +12 -0
  57. package/dist/cjs/api/types/AwsBedrockThinkProvider.d.ts +40 -0
  58. package/dist/cjs/api/types/AwsBedrockThinkProvider.js +20 -0
  59. package/dist/cjs/api/types/AwsPollySpeakProvider.d.ts +47 -0
  60. package/dist/cjs/api/types/AwsPollySpeakProvider.js +31 -0
  61. package/dist/cjs/api/types/Cartesia.d.ts +24 -0
  62. package/dist/cjs/api/types/Cartesia.js +12 -0
  63. package/dist/cjs/api/types/Deepgram.d.ts +76 -0
  64. package/dist/cjs/api/types/Deepgram.js +73 -0
  65. package/dist/cjs/api/types/ElevenLabsSpeakProvider.d.ts +20 -0
  66. package/dist/cjs/api/types/ElevenLabsSpeakProvider.js +13 -0
  67. package/dist/cjs/api/types/Google.d.ts +18 -0
  68. package/dist/cjs/api/types/Google.js +13 -0
  69. package/dist/cjs/api/types/Groq.d.ts +9 -0
  70. package/dist/cjs/api/types/Groq.js +3 -0
  71. package/dist/cjs/api/types/ListBillingFieldsV1Response.d.ts +1 -1
  72. package/dist/cjs/api/types/ListenV1CallbackMethod.d.ts +1 -1
  73. package/dist/cjs/api/types/ListenV1DetectEntities.d.ts +6 -0
  74. package/dist/cjs/api/types/ListenV1DetectEntities.js +9 -0
  75. package/dist/cjs/api/types/ListenV1Diarize.d.ts +1 -1
  76. package/dist/cjs/api/types/ListenV1Dictation.d.ts +1 -1
  77. package/dist/cjs/api/types/ListenV1Encoding.d.ts +1 -1
  78. package/dist/cjs/api/types/ListenV1InterimResults.d.ts +1 -1
  79. package/dist/cjs/api/types/ListenV1Model.d.ts +1 -1
  80. package/dist/cjs/api/types/ListenV1Multichannel.d.ts +1 -1
  81. package/dist/cjs/api/types/ListenV1Numerals.d.ts +1 -1
  82. package/dist/cjs/api/types/ListenV1ProfanityFilter.d.ts +1 -1
  83. package/dist/cjs/api/types/ListenV1Punctuate.d.ts +1 -1
  84. package/dist/cjs/api/types/ListenV1Redact.d.ts +1 -1
  85. package/dist/cjs/api/types/ListenV1ResponseResultsChannelsItem.d.ts +12 -0
  86. package/dist/cjs/api/types/ListenV1SmartFormat.d.ts +1 -1
  87. package/dist/cjs/api/types/ListenV1VadEvents.d.ts +1 -1
  88. package/dist/cjs/api/types/ListenV2Encoding.d.ts +1 -1
  89. package/dist/cjs/api/types/OpenAi.d.ts +27 -0
  90. package/dist/cjs/api/types/OpenAi.js +21 -0
  91. package/dist/cjs/api/types/SpeakSettingsV1.d.ts +20 -0
  92. package/dist/cjs/api/types/SpeakSettingsV1.js +3 -0
  93. package/dist/cjs/api/types/SpeakSettingsV1Provider.d.ts +19 -0
  94. package/dist/cjs/api/types/SpeakSettingsV1Provider.js +3 -0
  95. package/dist/cjs/api/types/SpeakV1Encoding.d.ts +1 -1
  96. package/dist/cjs/api/types/SpeakV1Model.d.ts +1 -1
  97. package/dist/cjs/api/types/SpeakV1SampleRate.d.ts +1 -1
  98. package/dist/cjs/api/types/ThinkSettingsV1.d.ts +50 -0
  99. package/dist/cjs/api/types/ThinkSettingsV1.js +3 -0
  100. package/dist/cjs/api/types/index.d.ts +13 -0
  101. package/dist/cjs/api/types/index.js +13 -0
  102. package/dist/cjs/version.d.ts +1 -1
  103. package/dist/cjs/version.js +1 -1
  104. package/dist/esm/BaseClient.mjs +2 -2
  105. package/dist/esm/CustomClient.mjs +124 -0
  106. package/dist/esm/api/resources/agent/resources/v1/types/AgentV1ConversationText.d.mts +1 -1
  107. package/dist/esm/api/resources/agent/resources/v1/types/AgentV1Settings.d.mts +24 -54
  108. package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.d.mts +1 -1
  109. package/dist/esm/api/resources/agent/resources/v1/types/AgentV1UpdateSpeak.d.mts +2 -18
  110. package/dist/esm/api/resources/agent/resources/v1/types/index.d.mts +0 -4
  111. package/dist/esm/api/resources/agent/resources/v1/types/index.mjs +0 -4
  112. package/dist/esm/api/resources/listen/resources/v1/client/Client.d.mts +1 -0
  113. package/dist/esm/api/resources/listen/resources/v1/client/Client.mjs +2 -1
  114. package/dist/esm/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestCallbackMethod.d.mts +1 -1
  115. package/dist/esm/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestCustomIntentMode.d.mts +1 -1
  116. package/dist/esm/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestCustomTopicMode.d.mts +1 -1
  117. package/dist/esm/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestEncoding.d.mts +1 -1
  118. package/dist/esm/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestModel.d.mts +1 -1
  119. package/dist/esm/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestSummarize.d.mts +1 -1
  120. package/dist/esm/api/resources/listen/resources/v1/resources/media/types/MediaTranscribeRequestVersion.d.mts +1 -1
  121. package/dist/esm/api/resources/listen/resources/v1/types/ListenV1CloseStream.d.mts +1 -1
  122. package/dist/esm/api/resources/listen/resources/v1/types/ListenV1Finalize.d.mts +1 -1
  123. package/dist/esm/api/resources/listen/resources/v1/types/ListenV1KeepAlive.d.mts +1 -1
  124. package/dist/esm/api/resources/listen/resources/v1/types/ListenV1Results.d.mts +19 -0
  125. package/dist/esm/api/resources/listen/resources/v2/types/ListenV2CloseStream.d.mts +1 -1
  126. package/dist/esm/api/resources/listen/resources/v2/types/ListenV2TurnInfo.d.mts +1 -1
  127. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/types/BreakdownListRequestDeployment.d.mts +1 -1
  128. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/types/BreakdownListRequestGroupingItem.d.mts +1 -1
  129. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/keys/types/KeysListRequestStatus.d.mts +1 -1
  130. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.mjs +2 -2
  131. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/types/RequestsListRequestDeployment.d.mts +1 -1
  132. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/types/RequestsListRequestEndpoint.d.mts +1 -1
  133. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/types/RequestsListRequestMethod.d.mts +1 -1
  134. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/types/RequestsListRequestStatus.d.mts +1 -1
  135. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/types/BreakdownGetRequestDeployment.d.mts +1 -1
  136. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/types/BreakdownGetRequestEndpoint.d.mts +1 -1
  137. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/types/BreakdownGetRequestGrouping.d.mts +1 -1
  138. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/types/BreakdownGetRequestMethod.d.mts +1 -1
  139. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/types/UsageGetRequestDeployment.d.mts +1 -1
  140. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/types/UsageGetRequestEndpoint.d.mts +1 -1
  141. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/types/UsageGetRequestMethod.d.mts +1 -1
  142. package/dist/esm/api/resources/read/resources/v1/resources/text/types/TextAnalyzeRequestCallbackMethod.d.mts +1 -1
  143. package/dist/esm/api/resources/read/resources/v1/resources/text/types/TextAnalyzeRequestCustomIntentMode.d.mts +1 -1
  144. package/dist/esm/api/resources/read/resources/v1/resources/text/types/TextAnalyzeRequestCustomTopicMode.d.mts +1 -1
  145. package/dist/esm/api/resources/read/resources/v1/resources/text/types/TextAnalyzeRequestSummarize.d.mts +1 -1
  146. package/dist/esm/api/resources/selfHosted/resources/v1/resources/distributionCredentials/types/DistributionCredentialsCreateRequestScopesItem.d.mts +1 -1
  147. package/dist/esm/api/resources/speak/resources/v1/resources/audio/types/AudioGenerateRequestCallbackMethod.d.mts +1 -1
  148. package/dist/esm/api/resources/speak/resources/v1/resources/audio/types/AudioGenerateRequestContainer.d.mts +1 -1
  149. package/dist/esm/api/resources/speak/resources/v1/resources/audio/types/AudioGenerateRequestEncoding.d.mts +1 -1
  150. package/dist/esm/api/resources/speak/resources/v1/resources/audio/types/AudioGenerateRequestModel.d.mts +1 -1
  151. package/dist/esm/api/resources/speak/resources/v1/types/SpeakV1Clear.d.mts +1 -1
  152. package/dist/esm/api/resources/speak/resources/v1/types/SpeakV1Cleared.d.mts +1 -1
  153. package/dist/esm/api/resources/speak/resources/v1/types/SpeakV1Close.d.mts +1 -1
  154. package/dist/esm/api/resources/speak/resources/v1/types/SpeakV1Flush.d.mts +1 -1
  155. package/dist/esm/api/resources/speak/resources/v1/types/SpeakV1Flushed.d.mts +1 -1
  156. package/dist/esm/api/types/AgentThinkModelsV1Response.d.mts +3 -3
  157. package/dist/esm/api/types/Anthropic.d.mts +17 -0
  158. package/dist/esm/api/types/Anthropic.mjs +9 -0
  159. package/dist/esm/api/types/AwsBedrockThinkProvider.d.mts +40 -0
  160. package/dist/esm/api/types/AwsBedrockThinkProvider.mjs +17 -0
  161. package/dist/esm/api/types/AwsPollySpeakProvider.d.mts +47 -0
  162. package/dist/esm/api/types/AwsPollySpeakProvider.mjs +28 -0
  163. package/dist/esm/api/types/Cartesia.d.mts +24 -0
  164. package/dist/esm/api/types/Cartesia.mjs +9 -0
  165. package/dist/esm/api/types/Deepgram.d.mts +76 -0
  166. package/dist/esm/api/types/Deepgram.mjs +70 -0
  167. package/dist/esm/api/types/ElevenLabsSpeakProvider.d.mts +20 -0
  168. package/dist/esm/api/types/ElevenLabsSpeakProvider.mjs +10 -0
  169. package/dist/esm/api/types/Google.d.mts +18 -0
  170. package/dist/esm/api/types/Google.mjs +10 -0
  171. package/dist/esm/api/types/Groq.d.mts +9 -0
  172. package/dist/esm/api/types/Groq.mjs +2 -0
  173. package/dist/esm/api/types/ListBillingFieldsV1Response.d.mts +1 -1
  174. package/dist/esm/api/types/ListenV1CallbackMethod.d.mts +1 -1
  175. package/dist/esm/api/types/ListenV1DetectEntities.d.mts +6 -0
  176. package/dist/esm/api/types/ListenV1DetectEntities.mjs +6 -0
  177. package/dist/esm/api/types/ListenV1Diarize.d.mts +1 -1
  178. package/dist/esm/api/types/ListenV1Dictation.d.mts +1 -1
  179. package/dist/esm/api/types/ListenV1Encoding.d.mts +1 -1
  180. package/dist/esm/api/types/ListenV1InterimResults.d.mts +1 -1
  181. package/dist/esm/api/types/ListenV1Model.d.mts +1 -1
  182. package/dist/esm/api/types/ListenV1Multichannel.d.mts +1 -1
  183. package/dist/esm/api/types/ListenV1Numerals.d.mts +1 -1
  184. package/dist/esm/api/types/ListenV1ProfanityFilter.d.mts +1 -1
  185. package/dist/esm/api/types/ListenV1Punctuate.d.mts +1 -1
  186. package/dist/esm/api/types/ListenV1Redact.d.mts +1 -1
  187. package/dist/esm/api/types/ListenV1ResponseResultsChannelsItem.d.mts +12 -0
  188. package/dist/esm/api/types/ListenV1SmartFormat.d.mts +1 -1
  189. package/dist/esm/api/types/ListenV1VadEvents.d.mts +1 -1
  190. package/dist/esm/api/types/ListenV2Encoding.d.mts +1 -1
  191. package/dist/esm/api/types/OpenAi.d.mts +27 -0
  192. package/dist/esm/api/types/OpenAi.mjs +18 -0
  193. package/dist/esm/api/types/SpeakSettingsV1.d.mts +20 -0
  194. package/dist/esm/api/types/SpeakSettingsV1.mjs +2 -0
  195. package/dist/esm/api/types/SpeakSettingsV1Provider.d.mts +19 -0
  196. package/dist/esm/api/types/SpeakSettingsV1Provider.mjs +2 -0
  197. package/dist/esm/api/types/SpeakV1Encoding.d.mts +1 -1
  198. package/dist/esm/api/types/SpeakV1Model.d.mts +1 -1
  199. package/dist/esm/api/types/SpeakV1SampleRate.d.mts +1 -1
  200. package/dist/esm/api/types/ThinkSettingsV1.d.mts +50 -0
  201. package/dist/esm/api/types/ThinkSettingsV1.mjs +2 -0
  202. package/dist/esm/api/types/index.d.mts +13 -0
  203. package/dist/esm/api/types/index.mjs +13 -0
  204. package/dist/esm/version.d.mts +1 -1
  205. package/dist/esm/version.mjs +1 -1
  206. 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
- interface Think {
126
- provider: Deepgram.agent.AgentV1SettingsAgentThinkProvider;
127
- /** Optional for non-Deepgram LLM providers. When present, must include url field and headers object */
128
- endpoint?: Think.Endpoint;
129
- functions?: Think.Functions.Item[];
130
- prompt?: string;
131
- /** 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 */
132
- context_length?: Think.ContextLength;
133
- }
134
- namespace Think {
135
- /**
136
- * Optional for non-Deepgram LLM providers. When present, must include url field and headers object
137
- */
138
- interface Endpoint {
139
- /** Custom LLM endpoint URL */
140
- url?: string;
141
- /** Custom headers for the endpoint */
142
- headers?: Record<string, string>;
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: Deepgram.agent.AgentV1SettingsAgentSpeakEndpointProvider;
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: Deepgram.agent.AgentV1SettingsAgentSpeakOneItemProvider;
151
+ provider: Record<string, unknown>;
182
152
  endpoint?: {
183
153
  url?: string | undefined;
184
154
  headers?: Record<string, string> | undefined;
@@ -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. Can be a BCP-47 language tag (e.g. `en`), or `multi` for code-switching transcription */
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: Deepgram.agent.AgentV1UpdateSpeakSpeakProvider;
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";
@@ -8,6 +8,7 @@ export declare namespace V1Client {
8
8
  callback?: string;
9
9
  callback_method?: string;
10
10
  channels?: string;
11
+ detect_entities?: string;
11
12
  diarize?: string;
12
13
  dictation?: string;
13
14
  encoding?: string;
@@ -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;
@@ -9,5 +9,5 @@ export declare namespace ListenV1CloseStream {
9
9
  readonly CloseStream: "CloseStream";
10
10
  readonly KeepAlive: "KeepAlive";
11
11
  };
12
- type Type = (typeof Type)[keyof typeof Type];
12
+ type Type = (typeof Type)[keyof typeof Type] | string;
13
13
  }
@@ -9,5 +9,5 @@ export declare namespace ListenV1Finalize {
9
9
  readonly CloseStream: "CloseStream";
10
10
  readonly KeepAlive: "KeepAlive";
11
11
  };
12
- type Type = (typeof Type)[keyof typeof Type];
12
+ type Type = (typeof Type)[keyof typeof Type] | string;
13
13
  }
@@ -9,5 +9,5 @@ export declare namespace ListenV1KeepAlive {
9
9
  readonly CloseStream: "CloseStream";
10
10
  readonly KeepAlive: "KeepAlive";
11
11
  };
12
- type Type = (typeof Type)[keyof typeof Type];
12
+ type Type = (typeof Type)[keyof typeof Type] | string;
13
13
  }
@@ -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
  }
@@ -9,5 +9,5 @@ export declare namespace ListenV2CloseStream {
9
9
  readonly CloseStream: "CloseStream";
10
10
  readonly KeepAlive: "KeepAlive";
11
11
  };
12
- type Type = (typeof Type)[keyof typeof Type];
12
+ type Type = (typeof Type)[keyof typeof Type] | string;
13
13
  }
@@ -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;
@@ -9,5 +9,5 @@ export declare namespace SpeakV1Clear {
9
9
  readonly Clear: "Clear";
10
10
  readonly Close: "Close";
11
11
  };
12
- type Type = (typeof Type)[keyof typeof Type];
12
+ type Type = (typeof Type)[keyof typeof Type] | string;
13
13
  }
@@ -10,5 +10,5 @@ export declare namespace SpeakV1Cleared {
10
10
  readonly Flushed: "Flushed";
11
11
  readonly Cleared: "Cleared";
12
12
  };
13
- type Type = (typeof Type)[keyof typeof Type];
13
+ type Type = (typeof Type)[keyof typeof Type] | string;
14
14
  }
@@ -9,5 +9,5 @@ export declare namespace SpeakV1Close {
9
9
  readonly Clear: "Clear";
10
10
  readonly Close: "Close";
11
11
  };
12
- type Type = (typeof Type)[keyof typeof Type];
12
+ type Type = (typeof Type)[keyof typeof Type] | string;
13
13
  }
@@ -9,5 +9,5 @@ export declare namespace SpeakV1Flush {
9
9
  readonly Clear: "Clear";
10
10
  readonly Close: "Close";
11
11
  };
12
- type Type = (typeof Type)[keyof typeof Type];
12
+ type Type = (typeof Type)[keyof typeof Type] | string;
13
13
  }
@@ -10,5 +10,5 @@ export declare namespace SpeakV1Flushed {
10
10
  readonly Flushed: "Flushed";
11
11
  readonly Cleared: "Cleared";
12
12
  };
13
- type Type = (typeof Type)[keyof typeof Type];
13
+ type Type = (typeof Type)[keyof typeof Type] | string;
14
14
  }
@@ -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
+ }