@deepgram/sdk 3.3.5 → 3.4.1

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 (295) hide show
  1. package/README.md +129 -9
  2. package/dist/main/DeepgramClient.d.ts +65 -12
  3. package/dist/main/DeepgramClient.d.ts.map +1 -1
  4. package/dist/main/DeepgramClient.js +73 -18
  5. package/dist/main/DeepgramClient.js.map +1 -1
  6. package/dist/main/index.d.ts +13 -4
  7. package/dist/main/index.d.ts.map +1 -1
  8. package/dist/main/index.js +18 -8
  9. package/dist/main/index.js.map +1 -1
  10. package/dist/main/lib/constants.d.ts +16 -7
  11. package/dist/main/lib/constants.d.ts.map +1 -1
  12. package/dist/main/lib/constants.js +26 -9
  13. package/dist/main/lib/constants.js.map +1 -1
  14. package/dist/main/lib/enums/LiveConnectionState.d.ts +5 -0
  15. package/dist/main/lib/enums/LiveConnectionState.d.ts.map +1 -1
  16. package/dist/main/lib/enums/LiveConnectionState.js +5 -0
  17. package/dist/main/lib/enums/LiveConnectionState.js.map +1 -1
  18. package/dist/main/lib/enums/LiveTranscriptionEvents.d.ts +24 -3
  19. package/dist/main/lib/enums/LiveTranscriptionEvents.d.ts.map +1 -1
  20. package/dist/main/lib/enums/LiveTranscriptionEvents.js +23 -2
  21. package/dist/main/lib/enums/LiveTranscriptionEvents.js.map +1 -1
  22. package/dist/main/lib/enums/index.d.ts +2 -2
  23. package/dist/main/lib/enums/index.d.ts.map +1 -1
  24. package/dist/main/lib/enums/index.js +16 -5
  25. package/dist/main/lib/enums/index.js.map +1 -1
  26. package/dist/main/lib/fetch.d.ts +19 -1
  27. package/dist/main/lib/fetch.d.ts.map +1 -1
  28. package/dist/main/lib/fetch.js +19 -1
  29. package/dist/main/lib/fetch.js.map +1 -1
  30. package/dist/main/lib/helpers.d.ts +9 -5
  31. package/dist/main/lib/helpers.d.ts.map +1 -1
  32. package/dist/main/lib/helpers.js +82 -7
  33. package/dist/main/lib/helpers.js.map +1 -1
  34. package/dist/main/lib/types/CreateProjectKeySchema.d.ts +0 -1
  35. package/dist/main/lib/types/CreateProjectKeySchema.d.ts.map +1 -1
  36. package/dist/main/lib/types/DeepgramClientOptions.d.ts +75 -8
  37. package/dist/main/lib/types/DeepgramClientOptions.d.ts.map +1 -1
  38. package/dist/main/lib/types/Fetch.d.ts +3 -13
  39. package/dist/main/lib/types/Fetch.d.ts.map +1 -1
  40. package/dist/main/lib/types/LiveConfigOptions.d.ts +6 -3
  41. package/dist/main/lib/types/LiveConfigOptions.d.ts.map +1 -1
  42. package/dist/main/lib/types/TranscriptionSchema.d.ts +0 -1
  43. package/dist/main/lib/types/TranscriptionSchema.d.ts.map +1 -1
  44. package/dist/main/lib/types/UpdateProjectMemberScopeSchema.d.ts +1 -1
  45. package/dist/main/lib/types/UpdateProjectMemberScopeSchema.d.ts.map +1 -1
  46. package/dist/main/lib/types/UpdateProjectSchema.d.ts +0 -1
  47. package/dist/main/lib/types/UpdateProjectSchema.d.ts.map +1 -1
  48. package/dist/main/lib/types/index.d.ts +39 -39
  49. package/dist/main/lib/types/index.d.ts.map +1 -1
  50. package/dist/main/lib/types/index.js +53 -0
  51. package/dist/main/lib/types/index.js.map +1 -1
  52. package/dist/main/lib/version.d.ts +1 -1
  53. package/dist/main/lib/version.js +1 -1
  54. package/dist/main/packages/AbstractClient.d.ts +63 -10
  55. package/dist/main/packages/AbstractClient.d.ts.map +1 -1
  56. package/dist/main/packages/AbstractClient.js +103 -50
  57. package/dist/main/packages/AbstractClient.js.map +1 -1
  58. package/dist/main/packages/AbstractLiveClient.d.ts +114 -0
  59. package/dist/main/packages/AbstractLiveClient.d.ts.map +1 -0
  60. package/dist/main/packages/AbstractLiveClient.js +238 -0
  61. package/dist/main/packages/AbstractLiveClient.js.map +1 -0
  62. package/dist/main/packages/AbstractRestClient.d.ts +105 -0
  63. package/dist/main/packages/AbstractRestClient.d.ts.map +1 -0
  64. package/dist/main/packages/AbstractRestClient.js +185 -0
  65. package/dist/main/packages/AbstractRestClient.js.map +1 -0
  66. package/dist/main/packages/ListenClient.d.ts +21 -4
  67. package/dist/main/packages/ListenClient.d.ts.map +1 -1
  68. package/dist/main/packages/ListenClient.js +25 -5
  69. package/dist/main/packages/ListenClient.js.map +1 -1
  70. package/dist/main/packages/ListenLiveClient.d.ts +58 -0
  71. package/dist/main/packages/ListenLiveClient.d.ts.map +1 -0
  72. package/dist/main/packages/ListenLiveClient.js +119 -0
  73. package/dist/main/packages/ListenLiveClient.js.map +1 -0
  74. package/dist/main/packages/ListenRestClient.d.ts +57 -0
  75. package/dist/main/packages/ListenRestClient.d.ts.map +1 -0
  76. package/dist/main/packages/ListenRestClient.js +167 -0
  77. package/dist/main/packages/ListenRestClient.js.map +1 -0
  78. package/dist/main/packages/ManageRestClient.d.ts +286 -0
  79. package/dist/main/packages/ManageRestClient.d.ts.map +1 -0
  80. package/dist/main/packages/ManageRestClient.js +628 -0
  81. package/dist/main/packages/ManageRestClient.js.map +1 -0
  82. package/dist/main/packages/ReadRestClient.d.ts +57 -0
  83. package/dist/main/packages/ReadRestClient.d.ts.map +1 -0
  84. package/dist/main/packages/ReadRestClient.js +165 -0
  85. package/dist/main/packages/ReadRestClient.js.map +1 -0
  86. package/dist/main/packages/SelfHostedRestClient.d.ts +47 -0
  87. package/dist/main/packages/SelfHostedRestClient.d.ts.map +1 -0
  88. package/dist/main/packages/SelfHostedRestClient.js +120 -0
  89. package/dist/main/packages/SelfHostedRestClient.js.map +1 -0
  90. package/dist/main/packages/SpeakRestClient.d.ts +36 -0
  91. package/dist/main/packages/SpeakRestClient.d.ts.map +1 -0
  92. package/dist/main/packages/SpeakRestClient.js +84 -0
  93. package/dist/main/packages/SpeakRestClient.js.map +1 -0
  94. package/dist/main/packages/index.d.ts +10 -8
  95. package/dist/main/packages/index.d.ts.map +1 -1
  96. package/dist/main/packages/index.js +24 -17
  97. package/dist/main/packages/index.js.map +1 -1
  98. package/dist/module/DeepgramClient.d.ts +65 -12
  99. package/dist/module/DeepgramClient.d.ts.map +1 -1
  100. package/dist/module/DeepgramClient.js +72 -17
  101. package/dist/module/DeepgramClient.js.map +1 -1
  102. package/dist/module/index.d.ts +13 -4
  103. package/dist/module/index.d.ts.map +1 -1
  104. package/dist/module/index.js +18 -8
  105. package/dist/module/index.js.map +1 -1
  106. package/dist/module/lib/constants.d.ts +16 -7
  107. package/dist/module/lib/constants.d.ts.map +1 -1
  108. package/dist/module/lib/constants.js +26 -9
  109. package/dist/module/lib/constants.js.map +1 -1
  110. package/dist/module/lib/enums/LiveConnectionState.d.ts +5 -0
  111. package/dist/module/lib/enums/LiveConnectionState.d.ts.map +1 -1
  112. package/dist/module/lib/enums/LiveConnectionState.js +5 -0
  113. package/dist/module/lib/enums/LiveConnectionState.js.map +1 -1
  114. package/dist/module/lib/enums/LiveTranscriptionEvents.d.ts +24 -3
  115. package/dist/module/lib/enums/LiveTranscriptionEvents.d.ts.map +1 -1
  116. package/dist/module/lib/enums/LiveTranscriptionEvents.js +23 -2
  117. package/dist/module/lib/enums/LiveTranscriptionEvents.js.map +1 -1
  118. package/dist/module/lib/enums/index.d.ts +2 -2
  119. package/dist/module/lib/enums/index.d.ts.map +1 -1
  120. package/dist/module/lib/enums/index.js +2 -2
  121. package/dist/module/lib/enums/index.js.map +1 -1
  122. package/dist/module/lib/fetch.d.ts +19 -1
  123. package/dist/module/lib/fetch.d.ts.map +1 -1
  124. package/dist/module/lib/fetch.js +19 -1
  125. package/dist/module/lib/fetch.js.map +1 -1
  126. package/dist/module/lib/helpers.d.ts +9 -5
  127. package/dist/module/lib/helpers.d.ts.map +1 -1
  128. package/dist/module/lib/helpers.js +75 -4
  129. package/dist/module/lib/helpers.js.map +1 -1
  130. package/dist/module/lib/types/CreateProjectKeySchema.d.ts +0 -1
  131. package/dist/module/lib/types/CreateProjectKeySchema.d.ts.map +1 -1
  132. package/dist/module/lib/types/DeepgramClientOptions.d.ts +75 -8
  133. package/dist/module/lib/types/DeepgramClientOptions.d.ts.map +1 -1
  134. package/dist/module/lib/types/Fetch.d.ts +3 -13
  135. package/dist/module/lib/types/Fetch.d.ts.map +1 -1
  136. package/dist/module/lib/types/LiveConfigOptions.d.ts +6 -3
  137. package/dist/module/lib/types/LiveConfigOptions.d.ts.map +1 -1
  138. package/dist/module/lib/types/TranscriptionSchema.d.ts +0 -1
  139. package/dist/module/lib/types/TranscriptionSchema.d.ts.map +1 -1
  140. package/dist/module/lib/types/UpdateProjectMemberScopeSchema.d.ts +1 -1
  141. package/dist/module/lib/types/UpdateProjectMemberScopeSchema.d.ts.map +1 -1
  142. package/dist/module/lib/types/UpdateProjectSchema.d.ts +0 -1
  143. package/dist/module/lib/types/UpdateProjectSchema.d.ts.map +1 -1
  144. package/dist/module/lib/types/index.d.ts +39 -39
  145. package/dist/module/lib/types/index.d.ts.map +1 -1
  146. package/dist/module/lib/types/index.js +39 -1
  147. package/dist/module/lib/types/index.js.map +1 -1
  148. package/dist/module/lib/version.d.ts +1 -1
  149. package/dist/module/lib/version.js +1 -1
  150. package/dist/module/packages/AbstractClient.d.ts +63 -10
  151. package/dist/module/packages/AbstractClient.d.ts.map +1 -1
  152. package/dist/module/packages/AbstractClient.js +99 -50
  153. package/dist/module/packages/AbstractClient.js.map +1 -1
  154. package/dist/module/packages/AbstractLiveClient.d.ts +114 -0
  155. package/dist/module/packages/AbstractLiveClient.d.ts.map +1 -0
  156. package/dist/module/packages/AbstractLiveClient.js +211 -0
  157. package/dist/module/packages/AbstractLiveClient.js.map +1 -0
  158. package/dist/module/packages/AbstractRestClient.d.ts +105 -0
  159. package/dist/module/packages/AbstractRestClient.d.ts.map +1 -0
  160. package/dist/module/packages/AbstractRestClient.js +178 -0
  161. package/dist/module/packages/AbstractRestClient.js.map +1 -0
  162. package/dist/module/packages/ListenClient.d.ts +21 -4
  163. package/dist/module/packages/ListenClient.d.ts.map +1 -1
  164. package/dist/module/packages/ListenClient.js +25 -5
  165. package/dist/module/packages/ListenClient.js.map +1 -1
  166. package/dist/module/packages/ListenLiveClient.d.ts +58 -0
  167. package/dist/module/packages/ListenLiveClient.d.ts.map +1 -0
  168. package/dist/module/packages/ListenLiveClient.js +115 -0
  169. package/dist/module/packages/ListenLiveClient.js.map +1 -0
  170. package/dist/module/packages/ListenRestClient.d.ts +57 -0
  171. package/dist/module/packages/ListenRestClient.d.ts.map +1 -0
  172. package/dist/module/packages/ListenRestClient.js +163 -0
  173. package/dist/module/packages/ListenRestClient.js.map +1 -0
  174. package/dist/module/packages/ManageRestClient.d.ts +286 -0
  175. package/dist/module/packages/ManageRestClient.d.ts.map +1 -0
  176. package/dist/module/packages/ManageRestClient.js +624 -0
  177. package/dist/module/packages/ManageRestClient.js.map +1 -0
  178. package/dist/module/packages/ReadRestClient.d.ts +57 -0
  179. package/dist/module/packages/ReadRestClient.d.ts.map +1 -0
  180. package/dist/module/packages/ReadRestClient.js +161 -0
  181. package/dist/module/packages/ReadRestClient.js.map +1 -0
  182. package/dist/module/packages/SelfHostedRestClient.d.ts +47 -0
  183. package/dist/module/packages/SelfHostedRestClient.d.ts.map +1 -0
  184. package/dist/module/packages/SelfHostedRestClient.js +116 -0
  185. package/dist/module/packages/SelfHostedRestClient.js.map +1 -0
  186. package/dist/module/packages/SpeakRestClient.d.ts +36 -0
  187. package/dist/module/packages/SpeakRestClient.d.ts.map +1 -0
  188. package/dist/module/packages/SpeakRestClient.js +80 -0
  189. package/dist/module/packages/SpeakRestClient.js.map +1 -0
  190. package/dist/module/packages/index.d.ts +10 -8
  191. package/dist/module/packages/index.d.ts.map +1 -1
  192. package/dist/module/packages/index.js +10 -8
  193. package/dist/module/packages/index.js.map +1 -1
  194. package/dist/umd/deepgram.js +1 -1
  195. package/package.json +8 -6
  196. package/src/DeepgramClient.ts +81 -17
  197. package/src/index.ts +32 -7
  198. package/src/lib/constants.ts +33 -13
  199. package/src/lib/enums/LiveConnectionState.ts +11 -4
  200. package/src/lib/enums/LiveTranscriptionEvents.ts +27 -4
  201. package/src/lib/enums/index.ts +2 -2
  202. package/src/lib/fetch.ts +22 -2
  203. package/src/lib/helpers.ts +98 -9
  204. package/src/lib/types/CreateProjectKeySchema.ts +0 -1
  205. package/src/lib/types/DeepgramClientOptions.ts +75 -11
  206. package/src/lib/types/Fetch.ts +2 -24
  207. package/src/lib/types/LiveConfigOptions.ts +7 -3
  208. package/src/lib/types/TranscriptionSchema.ts +0 -2
  209. package/src/lib/types/UpdateProjectMemberScopeSchema.ts +1 -1
  210. package/src/lib/types/UpdateProjectSchema.ts +0 -1
  211. package/src/lib/types/index.ts +39 -54
  212. package/src/lib/version.ts +1 -1
  213. package/src/packages/AbstractClient.ts +129 -61
  214. package/src/packages/AbstractLiveClient.ts +280 -0
  215. package/src/packages/AbstractRestClient.ts +221 -0
  216. package/src/packages/ListenClient.ts +26 -5
  217. package/src/packages/ListenLiveClient.ts +133 -0
  218. package/src/packages/ListenRestClient.ts +201 -0
  219. package/src/packages/ManageRestClient.ts +760 -0
  220. package/src/packages/ReadRestClient.ts +200 -0
  221. package/src/packages/SelfHostedRestClient.ts +134 -0
  222. package/src/packages/SpeakRestClient.ts +79 -0
  223. package/src/packages/index.ts +10 -8
  224. package/dist/main/packages/AbstractRestfulClient.d.ts +0 -26
  225. package/dist/main/packages/AbstractRestfulClient.d.ts.map +0 -1
  226. package/dist/main/packages/AbstractRestfulClient.js +0 -118
  227. package/dist/main/packages/AbstractRestfulClient.js.map +0 -1
  228. package/dist/main/packages/AbstractWsClient.d.ts +0 -10
  229. package/dist/main/packages/AbstractWsClient.d.ts.map +0 -1
  230. package/dist/main/packages/AbstractWsClient.js +0 -33
  231. package/dist/main/packages/AbstractWsClient.js.map +0 -1
  232. package/dist/main/packages/LiveClient.d.ts +0 -28
  233. package/dist/main/packages/LiveClient.d.ts.map +0 -1
  234. package/dist/main/packages/LiveClient.js +0 -110
  235. package/dist/main/packages/LiveClient.js.map +0 -1
  236. package/dist/main/packages/ManageClient.d.ts +0 -97
  237. package/dist/main/packages/ManageClient.d.ts.map +0 -1
  238. package/dist/main/packages/ManageClient.js +0 -463
  239. package/dist/main/packages/ManageClient.js.map +0 -1
  240. package/dist/main/packages/OnPremClient.d.ts +0 -21
  241. package/dist/main/packages/OnPremClient.d.ts.map +0 -1
  242. package/dist/main/packages/OnPremClient.js +0 -99
  243. package/dist/main/packages/OnPremClient.js.map +0 -1
  244. package/dist/main/packages/PrerecordedClient.d.ts +0 -10
  245. package/dist/main/packages/PrerecordedClient.d.ts.map +0 -1
  246. package/dist/main/packages/PrerecordedClient.js +0 -125
  247. package/dist/main/packages/PrerecordedClient.js.map +0 -1
  248. package/dist/main/packages/ReadClient.d.ts +0 -10
  249. package/dist/main/packages/ReadClient.d.ts.map +0 -1
  250. package/dist/main/packages/ReadClient.js +0 -123
  251. package/dist/main/packages/ReadClient.js.map +0 -1
  252. package/dist/main/packages/SpeakClient.d.ts +0 -12
  253. package/dist/main/packages/SpeakClient.d.ts.map +0 -1
  254. package/dist/main/packages/SpeakClient.js +0 -57
  255. package/dist/main/packages/SpeakClient.js.map +0 -1
  256. package/dist/module/packages/AbstractRestfulClient.d.ts +0 -26
  257. package/dist/module/packages/AbstractRestfulClient.d.ts.map +0 -1
  258. package/dist/module/packages/AbstractRestfulClient.js +0 -114
  259. package/dist/module/packages/AbstractRestfulClient.js.map +0 -1
  260. package/dist/module/packages/AbstractWsClient.d.ts +0 -10
  261. package/dist/module/packages/AbstractWsClient.d.ts.map +0 -1
  262. package/dist/module/packages/AbstractWsClient.js +0 -29
  263. package/dist/module/packages/AbstractWsClient.js.map +0 -1
  264. package/dist/module/packages/LiveClient.d.ts +0 -28
  265. package/dist/module/packages/LiveClient.d.ts.map +0 -1
  266. package/dist/module/packages/LiveClient.js +0 -106
  267. package/dist/module/packages/LiveClient.js.map +0 -1
  268. package/dist/module/packages/ManageClient.d.ts +0 -97
  269. package/dist/module/packages/ManageClient.d.ts.map +0 -1
  270. package/dist/module/packages/ManageClient.js +0 -459
  271. package/dist/module/packages/ManageClient.js.map +0 -1
  272. package/dist/module/packages/OnPremClient.d.ts +0 -21
  273. package/dist/module/packages/OnPremClient.d.ts.map +0 -1
  274. package/dist/module/packages/OnPremClient.js +0 -95
  275. package/dist/module/packages/OnPremClient.js.map +0 -1
  276. package/dist/module/packages/PrerecordedClient.d.ts +0 -10
  277. package/dist/module/packages/PrerecordedClient.d.ts.map +0 -1
  278. package/dist/module/packages/PrerecordedClient.js +0 -121
  279. package/dist/module/packages/PrerecordedClient.js.map +0 -1
  280. package/dist/module/packages/ReadClient.d.ts +0 -10
  281. package/dist/module/packages/ReadClient.d.ts.map +0 -1
  282. package/dist/module/packages/ReadClient.js +0 -119
  283. package/dist/module/packages/ReadClient.js.map +0 -1
  284. package/dist/module/packages/SpeakClient.d.ts +0 -12
  285. package/dist/module/packages/SpeakClient.d.ts.map +0 -1
  286. package/dist/module/packages/SpeakClient.js +0 -53
  287. package/dist/module/packages/SpeakClient.js.map +0 -1
  288. package/src/packages/AbstractRestfulClient.ts +0 -160
  289. package/src/packages/AbstractWsClient.ts +0 -42
  290. package/src/packages/LiveClient.ts +0 -140
  291. package/src/packages/ManageClient.ts +0 -584
  292. package/src/packages/OnPremClient.ts +0 -113
  293. package/src/packages/PrerecordedClient.ts +0 -162
  294. package/src/packages/ReadClient.ts +0 -161
  295. package/src/packages/SpeakClient.ts +0 -50
@@ -0,0 +1,57 @@
1
+ import { CallbackUrl } from "../lib/helpers";
2
+ import type { AnalyzeSchema, AsyncAnalyzeResponse, DeepgramResponse, SyncAnalyzeResponse, TextSource, UrlSource } from "../lib/types";
3
+ import { AbstractRestClient } from "./AbstractRestClient";
4
+ /**
5
+ * The `ReadRestClient` class extends the `AbstractRestClient` class and provides methods for analyzing audio sources synchronously and asynchronously.
6
+ *
7
+ * The `analyzeUrl` method analyzes a URL-based audio source synchronously, returning a promise that resolves to the analysis response or an error.
8
+ *
9
+ * The `analyzeText` method analyzes a text-based audio source synchronously, returning a promise that resolves to the analysis response or an error.
10
+ *
11
+ * The `analyzeUrlCallback` method analyzes a URL-based audio source asynchronously, returning a promise that resolves to the analysis response or an error.
12
+ *
13
+ * The `analyzeTextCallback` method analyzes a text-based audio source asynchronously, returning a promise that resolves to the analysis response or an error.
14
+ */
15
+ export declare class ReadRestClient extends AbstractRestClient {
16
+ namespace: string;
17
+ /**
18
+ * Analyzes a URL-based audio source synchronously.
19
+ *
20
+ * @param source - The URL-based audio source to analyze.
21
+ * @param options - Optional analysis options.
22
+ * @param endpoint - The API endpoint to use for the analysis. Defaults to ":version/read".
23
+ * @returns A promise that resolves to the analysis response, or an error if the analysis fails.
24
+ */
25
+ analyzeUrl(source: UrlSource, options?: AnalyzeSchema, endpoint?: string): Promise<DeepgramResponse<SyncAnalyzeResponse>>;
26
+ /**
27
+ * Analyzes a text-based audio source synchronously.
28
+ *
29
+ * @param source - The text-based audio source to analyze.
30
+ * @param options - Optional analysis options.
31
+ * @param endpoint - The API endpoint to use for the analysis. Defaults to ":version/read".
32
+ * @returns A promise that resolves to the analysis response, or an error if the analysis fails.
33
+ */
34
+ analyzeText(source: TextSource, options?: AnalyzeSchema, endpoint?: string): Promise<DeepgramResponse<SyncAnalyzeResponse>>;
35
+ /**
36
+ * Analyzes a URL-based audio source asynchronously.
37
+ *
38
+ * @param source - The URL-based audio source to analyze.
39
+ * @param callback - The URL to call back with the analysis results.
40
+ * @param options - Optional analysis options.
41
+ * @param endpoint - The API endpoint to use for the analysis. Defaults to ":version/read".
42
+ * @returns A promise that resolves to the analysis response, or an error if the analysis fails.
43
+ */
44
+ analyzeUrlCallback(source: UrlSource, callback: CallbackUrl, options?: AnalyzeSchema, endpoint?: string): Promise<DeepgramResponse<AsyncAnalyzeResponse>>;
45
+ /**
46
+ * Analyzes a text-based audio source asynchronously.
47
+ *
48
+ * @param source - The text-based audio source to analyze.
49
+ * @param callback - The URL to call back with the analysis results.
50
+ * @param options - Optional analysis options.
51
+ * @param endpoint - The API endpoint to use for the analysis. Defaults to ":version/read".
52
+ * @returns A promise that resolves to the analysis response, or an error if the analysis fails.
53
+ */
54
+ analyzeTextCallback(source: TextSource, callback: CallbackUrl, options?: AnalyzeSchema, endpoint?: string): Promise<DeepgramResponse<AsyncAnalyzeResponse>>;
55
+ }
56
+ export { ReadRestClient as ReadClient };
57
+ //# sourceMappingURL=ReadRestClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReadRestClient.d.ts","sourceRoot":"","sources":["../../../src/packages/ReadRestClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiD,MAAM,gBAAgB,CAAC;AAE5F,OAAO,KAAK,EACV,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACV,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;;;;;;;;GAUG;AACH,qBAAa,cAAe,SAAQ,kBAAkB;IAC7C,SAAS,EAAE,MAAM,CAAU;IAElC;;;;;;;OAOG;IACG,UAAU,CACd,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE,aAAa,EACvB,QAAQ,SAAkB,GACzB,OAAO,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IA+BjD;;;;;;;OAOG;IACG,WAAW,CACf,MAAM,EAAE,UAAU,EAClB,OAAO,CAAC,EAAE,aAAa,EACvB,QAAQ,SAAkB,GACzB,OAAO,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IA+BjD;;;;;;;;OAQG;IACG,kBAAkB,CACtB,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,WAAW,EACrB,OAAO,CAAC,EAAE,aAAa,EACvB,QAAQ,SAAkB,GACzB,OAAO,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;IA6BlD;;;;;;;;OAQG;IACG,mBAAmB,CACvB,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,WAAW,EACrB,OAAO,CAAC,EAAE,aAAa,EACvB,QAAQ,SAAkB,GACzB,OAAO,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;CA4BnD;AAED,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,CAAC"}
@@ -0,0 +1,165 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ReadClient = exports.ReadRestClient = void 0;
13
+ const helpers_1 = require("../lib/helpers");
14
+ const errors_1 = require("../lib/errors");
15
+ const AbstractRestClient_1 = require("./AbstractRestClient");
16
+ /**
17
+ * The `ReadRestClient` class extends the `AbstractRestClient` class and provides methods for analyzing audio sources synchronously and asynchronously.
18
+ *
19
+ * The `analyzeUrl` method analyzes a URL-based audio source synchronously, returning a promise that resolves to the analysis response or an error.
20
+ *
21
+ * The `analyzeText` method analyzes a text-based audio source synchronously, returning a promise that resolves to the analysis response or an error.
22
+ *
23
+ * The `analyzeUrlCallback` method analyzes a URL-based audio source asynchronously, returning a promise that resolves to the analysis response or an error.
24
+ *
25
+ * The `analyzeTextCallback` method analyzes a text-based audio source asynchronously, returning a promise that resolves to the analysis response or an error.
26
+ */
27
+ class ReadRestClient extends AbstractRestClient_1.AbstractRestClient {
28
+ constructor() {
29
+ super(...arguments);
30
+ this.namespace = "read";
31
+ }
32
+ /**
33
+ * Analyzes a URL-based audio source synchronously.
34
+ *
35
+ * @param source - The URL-based audio source to analyze.
36
+ * @param options - Optional analysis options.
37
+ * @param endpoint - The API endpoint to use for the analysis. Defaults to ":version/read".
38
+ * @returns A promise that resolves to the analysis response, or an error if the analysis fails.
39
+ */
40
+ analyzeUrl(source, options, endpoint = ":version/read") {
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ try {
43
+ let body;
44
+ if ((0, helpers_1.isUrlSource)(source)) {
45
+ body = JSON.stringify(source);
46
+ }
47
+ else {
48
+ throw new errors_1.DeepgramError("Unknown source type");
49
+ }
50
+ if (options !== undefined && "callback" in options) {
51
+ throw new errors_1.DeepgramError("Callback cannot be provided as an option to a synchronous transcription. Use `analyzeUrlCallback` or `analyzeTextCallback` instead.");
52
+ }
53
+ const requestUrl = this.getRequestUrl(endpoint, {}, Object.assign({}, options));
54
+ const result = yield this.post(requestUrl, body).then((result) => result.json());
55
+ return { result, error: null };
56
+ }
57
+ catch (error) {
58
+ if ((0, errors_1.isDeepgramError)(error)) {
59
+ return { result: null, error };
60
+ }
61
+ throw error;
62
+ }
63
+ });
64
+ }
65
+ /**
66
+ * Analyzes a text-based audio source synchronously.
67
+ *
68
+ * @param source - The text-based audio source to analyze.
69
+ * @param options - Optional analysis options.
70
+ * @param endpoint - The API endpoint to use for the analysis. Defaults to ":version/read".
71
+ * @returns A promise that resolves to the analysis response, or an error if the analysis fails.
72
+ */
73
+ analyzeText(source, options, endpoint = ":version/read") {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ try {
76
+ let body;
77
+ if ((0, helpers_1.isTextSource)(source)) {
78
+ body = JSON.stringify(source);
79
+ }
80
+ else {
81
+ throw new errors_1.DeepgramError("Unknown source type");
82
+ }
83
+ if (options !== undefined && "callback" in options) {
84
+ throw new errors_1.DeepgramError("Callback cannot be provided as an option to a synchronous requests. Use `analyzeUrlCallback` or `analyzeTextCallback` instead.");
85
+ }
86
+ const requestUrl = this.getRequestUrl(endpoint, {}, Object.assign({}, options));
87
+ const result = yield this.post(requestUrl, body).then((result) => result.json());
88
+ return { result, error: null };
89
+ }
90
+ catch (error) {
91
+ if ((0, errors_1.isDeepgramError)(error)) {
92
+ return { result: null, error };
93
+ }
94
+ throw error;
95
+ }
96
+ });
97
+ }
98
+ /**
99
+ * Analyzes a URL-based audio source asynchronously.
100
+ *
101
+ * @param source - The URL-based audio source to analyze.
102
+ * @param callback - The URL to call back with the analysis results.
103
+ * @param options - Optional analysis options.
104
+ * @param endpoint - The API endpoint to use for the analysis. Defaults to ":version/read".
105
+ * @returns A promise that resolves to the analysis response, or an error if the analysis fails.
106
+ */
107
+ analyzeUrlCallback(source, callback, options, endpoint = ":version/read") {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ try {
110
+ let body;
111
+ if ((0, helpers_1.isUrlSource)(source)) {
112
+ body = JSON.stringify(source);
113
+ }
114
+ else {
115
+ throw new errors_1.DeepgramError("Unknown source type");
116
+ }
117
+ const requestUrl = this.getRequestUrl(endpoint, {}, Object.assign(Object.assign({}, options), { callback: callback.toString() }));
118
+ const result = yield this.post(requestUrl, body).then((result) => result.json());
119
+ return { result, error: null };
120
+ }
121
+ catch (error) {
122
+ if ((0, errors_1.isDeepgramError)(error)) {
123
+ return { result: null, error };
124
+ }
125
+ throw error;
126
+ }
127
+ });
128
+ }
129
+ /**
130
+ * Analyzes a text-based audio source asynchronously.
131
+ *
132
+ * @param source - The text-based audio source to analyze.
133
+ * @param callback - The URL to call back with the analysis results.
134
+ * @param options - Optional analysis options.
135
+ * @param endpoint - The API endpoint to use for the analysis. Defaults to ":version/read".
136
+ * @returns A promise that resolves to the analysis response, or an error if the analysis fails.
137
+ */
138
+ analyzeTextCallback(source, callback, options, endpoint = ":version/read") {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
+ try {
141
+ let body;
142
+ if ((0, helpers_1.isTextSource)(source)) {
143
+ body = JSON.stringify(source);
144
+ }
145
+ else {
146
+ throw new errors_1.DeepgramError("Unknown source type");
147
+ }
148
+ const requestUrl = this.getRequestUrl(endpoint, {}, Object.assign(Object.assign({}, options), { callback: callback.toString() }));
149
+ const result = yield this.post(requestUrl, body, {
150
+ headers: { "Content-Type": "deepgram/audio+video" },
151
+ }).then((result) => result.json());
152
+ return { result, error: null };
153
+ }
154
+ catch (error) {
155
+ if ((0, errors_1.isDeepgramError)(error)) {
156
+ return { result: null, error };
157
+ }
158
+ throw error;
159
+ }
160
+ });
161
+ }
162
+ }
163
+ exports.ReadRestClient = ReadRestClient;
164
+ exports.ReadClient = ReadRestClient;
165
+ //# sourceMappingURL=ReadRestClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReadRestClient.js","sourceRoot":"","sources":["../../../src/packages/ReadRestClient.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA4F;AAC5F,0CAA+D;AAS/D,6DAA0D;AAE1D;;;;;;;;;;GAUG;AACH,MAAa,cAAe,SAAQ,uCAAkB;IAAtD;;QACS,cAAS,GAAW,MAAM,CAAC;IA6KpC,CAAC;IA3KC;;;;;;;OAOG;IACG,UAAU,CACd,MAAiB,EACjB,OAAuB,EACvB,QAAQ,GAAG,eAAe;;YAE1B,IAAI;gBACF,IAAI,IAAI,CAAC;gBAET,IAAI,IAAA,qBAAW,EAAC,MAAM,CAAC,EAAE;oBACvB,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;iBAC/B;qBAAM;oBACL,MAAM,IAAI,sBAAa,CAAC,qBAAqB,CAAC,CAAC;iBAChD;gBAED,IAAI,OAAO,KAAK,SAAS,IAAI,UAAU,IAAI,OAAO,EAAE;oBAClD,MAAM,IAAI,sBAAa,CACrB,qIAAqI,CACtI,CAAC;iBACH;gBAED,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,EAAE,gBAAO,EAAE,EAAK,OAAO,EAAG,CAAC;gBAC3E,MAAM,MAAM,GAAwB,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CACpF,MAAM,CAAC,IAAI,EAAE,CACd,CAAC;gBAEF,OAAO,EAAE,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AE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE,IAC5C,CAAC;gBACF,MAAM,MAAM,GAAyB,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,EAAE;oBACrE,OAAO,EAAE,EAAE,cAAc,EAAE,sBAAsB,EAAE;iBACpD,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;gBAEnC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;aAChC;YAAC,OAAO,KAAK,EAAE;gBACd,IAAI,IAAA,wBAAe,EAAC,KAAK,CAAC,EAAE;oBAC1B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;iBAChC;gBAED,MAAM,KAAK,CAAC;aACb;QACH,CAAC;KAAA;CACF;AA9KD,wCA8KC;AAE0B,oCAAU"}
@@ -0,0 +1,47 @@
1
+ import type { CreateOnPremCredentialsSchema, DeepgramResponse, ListOnPremCredentialsResponse, MessageResponse, OnPremCredentialResponse } from "../lib/types";
2
+ import { AbstractRestClient } from "./AbstractRestClient";
3
+ /**
4
+ * The `SelfHostedRestClient` class extends the `AbstractRestClient` class and provides methods for interacting with the Deepgram self-hosted API.
5
+ *
6
+ * This class is used to list, retrieve, create, and delete self-hosted credentials for a Deepgram project.
7
+ */
8
+ export declare class SelfHostedRestClient extends AbstractRestClient {
9
+ namespace: string;
10
+ /**
11
+ * Lists the self-hosted credentials for a Deepgram project.
12
+ *
13
+ * @param projectId - The ID of the Deepgram project.
14
+ * @returns A promise that resolves to an object containing the list of self-hosted credentials and any error that occurred.
15
+ * @see https://developers.deepgram.com/reference/list-credentials
16
+ */
17
+ listCredentials(projectId: string, endpoint?: string): Promise<DeepgramResponse<ListOnPremCredentialsResponse>>;
18
+ /**
19
+ * Retrieves the self-hosted credentials for a specific Deepgram project and credentials ID.
20
+ *
21
+ * @param projectId - The ID of the Deepgram project.
22
+ * @param credentialsId - The ID of the self-hosted credentials to retrieve.
23
+ * @returns A promise that resolves to an object containing the self-hosted credentials and any error that occurred.
24
+ * @see https://developers.deepgram.com/reference/get-credentials
25
+ */
26
+ getCredentials(projectId: string, credentialsId: string, endpoint?: string): Promise<DeepgramResponse<OnPremCredentialResponse>>;
27
+ /**
28
+ * Creates self-hosted credentials for a specific Deepgram project.
29
+ *
30
+ * @param projectId - The ID of the Deepgram project.
31
+ * @param options - The options for creating the self-hosted credentials.
32
+ * @returns A promise that resolves to an object containing the created self-hosted credentials and any error that occurred.
33
+ * @see https://developers.deepgram.com/reference/create-credentials
34
+ */
35
+ createCredentials(projectId: string, options: CreateOnPremCredentialsSchema, endpoint?: string): Promise<DeepgramResponse<OnPremCredentialResponse>>;
36
+ /**
37
+ * Deletes self-hosted credentials for a specific Deepgram project.
38
+ *
39
+ * @param projectId - The ID of the Deepgram project.
40
+ * @param credentialsId - The ID of the self-hosted credentials to delete.
41
+ * @returns A promise that resolves to an object containing a message response and any error that occurred.
42
+ * @see https://developers.deepgram.com/reference/delete-credentials
43
+ */
44
+ deleteCredentials(projectId: string, credentialsId: string, endpoint?: string): Promise<DeepgramResponse<MessageResponse>>;
45
+ }
46
+ export { SelfHostedRestClient as OnPremClient };
47
+ //# sourceMappingURL=SelfHostedRestClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelfHostedRestClient.d.ts","sourceRoot":"","sources":["../../../src/packages/SelfHostedRestClient.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,6BAA6B,EAC7B,gBAAgB,EAChB,6BAA6B,EAC7B,eAAe,EACf,wBAAwB,EACzB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;;GAIG;AACH,qBAAa,oBAAqB,SAAQ,kBAAkB;IACnD,SAAS,EAAE,MAAM,CAAgB;IAExC;;;;;;OAMG;IACG,eAAe,CACnB,SAAS,EAAE,MAAM,EACjB,QAAQ,SAAiE,GACxE,OAAO,CAAC,gBAAgB,CAAC,6BAA6B,CAAC,CAAC;IAiB3D;;;;;;;OAOG;IACG,cAAc,CAClB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,QAAQ,SAAgF,GACvF,OAAO,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IAiBtD;;;;;;;OAOG;IACG,iBAAiB,CACrB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,6BAA6B,EACtC,QAAQ,SAAiE,GACxE,OAAO,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IAmBtD;;;;;;;OAOG;IACG,iBAAiB,CACrB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,QAAQ,SAAgF,GACvF,OAAO,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;CAc9C;AAED,OAAO,EAAE,oBAAoB,IAAI,YAAY,EAAE,CAAC"}
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.OnPremClient = exports.SelfHostedRestClient = void 0;
13
+ const errors_1 = require("../lib/errors");
14
+ const AbstractRestClient_1 = require("./AbstractRestClient");
15
+ /**
16
+ * The `SelfHostedRestClient` class extends the `AbstractRestClient` class and provides methods for interacting with the Deepgram self-hosted API.
17
+ *
18
+ * This class is used to list, retrieve, create, and delete self-hosted credentials for a Deepgram project.
19
+ */
20
+ class SelfHostedRestClient extends AbstractRestClient_1.AbstractRestClient {
21
+ constructor() {
22
+ super(...arguments);
23
+ this.namespace = "selfhosted";
24
+ }
25
+ /**
26
+ * Lists the self-hosted credentials for a Deepgram project.
27
+ *
28
+ * @param projectId - The ID of the Deepgram project.
29
+ * @returns A promise that resolves to an object containing the list of self-hosted credentials and any error that occurred.
30
+ * @see https://developers.deepgram.com/reference/list-credentials
31
+ */
32
+ listCredentials(projectId, endpoint = ":version/projects/:projectId/onprem/distribution/credentials") {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ try {
35
+ const requestUrl = this.getRequestUrl(endpoint, { projectId });
36
+ const result = yield this.get(requestUrl).then((result) => result.json());
37
+ return { result, error: null };
38
+ }
39
+ catch (error) {
40
+ if ((0, errors_1.isDeepgramError)(error)) {
41
+ return { result: null, error };
42
+ }
43
+ throw error;
44
+ }
45
+ });
46
+ }
47
+ /**
48
+ * Retrieves the self-hosted credentials for a specific Deepgram project and credentials ID.
49
+ *
50
+ * @param projectId - The ID of the Deepgram project.
51
+ * @param credentialsId - The ID of the self-hosted credentials to retrieve.
52
+ * @returns A promise that resolves to an object containing the self-hosted credentials and any error that occurred.
53
+ * @see https://developers.deepgram.com/reference/get-credentials
54
+ */
55
+ getCredentials(projectId, credentialsId, endpoint = ":version/projects/:projectId/onprem/distribution/credentials/:credentialsId") {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ try {
58
+ const requestUrl = this.getRequestUrl(endpoint, { projectId, credentialsId });
59
+ const result = yield this.get(requestUrl).then((result) => result.json());
60
+ return { result, error: null };
61
+ }
62
+ catch (error) {
63
+ if ((0, errors_1.isDeepgramError)(error)) {
64
+ return { result: null, error };
65
+ }
66
+ throw error;
67
+ }
68
+ });
69
+ }
70
+ /**
71
+ * Creates self-hosted credentials for a specific Deepgram project.
72
+ *
73
+ * @param projectId - The ID of the Deepgram project.
74
+ * @param options - The options for creating the self-hosted credentials.
75
+ * @returns A promise that resolves to an object containing the created self-hosted credentials and any error that occurred.
76
+ * @see https://developers.deepgram.com/reference/create-credentials
77
+ */
78
+ createCredentials(projectId, options, endpoint = ":version/projects/:projectId/onprem/distribution/credentials") {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ try {
81
+ const requestUrl = this.getRequestUrl(endpoint, { projectId });
82
+ const body = JSON.stringify(options);
83
+ const result = yield this.post(requestUrl, body).then((result) => result.json());
84
+ return { result, error: null };
85
+ }
86
+ catch (error) {
87
+ if ((0, errors_1.isDeepgramError)(error)) {
88
+ return { result: null, error };
89
+ }
90
+ throw error;
91
+ }
92
+ });
93
+ }
94
+ /**
95
+ * Deletes self-hosted credentials for a specific Deepgram project.
96
+ *
97
+ * @param projectId - The ID of the Deepgram project.
98
+ * @param credentialsId - The ID of the self-hosted credentials to delete.
99
+ * @returns A promise that resolves to an object containing a message response and any error that occurred.
100
+ * @see https://developers.deepgram.com/reference/delete-credentials
101
+ */
102
+ deleteCredentials(projectId, credentialsId, endpoint = ":version/projects/:projectId/onprem/distribution/credentials/:credentialsId") {
103
+ return __awaiter(this, void 0, void 0, function* () {
104
+ try {
105
+ const requestUrl = this.getRequestUrl(endpoint, { projectId, credentialsId });
106
+ const result = yield this.delete(requestUrl).then((result) => result.json());
107
+ return { result, error: null };
108
+ }
109
+ catch (error) {
110
+ if ((0, errors_1.isDeepgramError)(error)) {
111
+ return { result: null, error };
112
+ }
113
+ throw error;
114
+ }
115
+ });
116
+ }
117
+ }
118
+ exports.SelfHostedRestClient = SelfHostedRestClient;
119
+ exports.OnPremClient = SelfHostedRestClient;
120
+ //# sourceMappingURL=SelfHostedRestClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelfHostedRestClient.js","sourceRoot":"","sources":["../../../src/packages/SelfHostedRestClient.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAgD;AAQhD,6DAA0D;AAE1D;;;;GAIG;AACH,MAAa,oBAAqB,SAAQ,uCAAkB;IAA5D;;QACS,cA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,CAAC;iBAChC;gBAED,MAAM,KAAK,CAAC;aACb;QACH,CAAC;KAAA;CACF;AApHD,oDAoHC;AAEgC,4CAAY"}
@@ -0,0 +1,36 @@
1
+ import { SpeakSchema, TextSource } from "../lib/types";
2
+ import { AbstractRestClient } from "./AbstractRestClient";
3
+ /**
4
+ * Provides a client for interacting with the Deepgram Text-to-Speech API.
5
+ */
6
+ export declare class SpeakRestClient extends AbstractRestClient {
7
+ namespace: string;
8
+ result: undefined | Response;
9
+ /**
10
+ * Sends a request to the Deepgram Text-to-Speech API to generate audio from the provided text source.
11
+ *
12
+ * @param source - The text source to be converted to audio.
13
+ * @param options - Optional configuration options for the text-to-speech request.
14
+ * @param endpoint - The API endpoint to use for the request. Defaults to ":version/speak".
15
+ * @returns A promise that resolves to the SpeakRestClient instance, which can be used to retrieve the response headers and body.
16
+ * @throws {DeepgramError} If the text source type is unknown.
17
+ * @throws {DeepgramUnknownError} If the request was made before a previous request completed.
18
+ * @see https://developers.deepgram.com/reference/text-to-speech-api
19
+ */
20
+ request(source: TextSource, options?: SpeakSchema, endpoint?: string): Promise<SpeakRestClient>;
21
+ /**
22
+ * Retrieves the response body as a readable stream.
23
+ *
24
+ * @returns A promise that resolves to the response body as a readable stream, or `null` if no request has been made yet.
25
+ * @throws {DeepgramUnknownError} If a request has not been made yet.
26
+ */
27
+ getStream(): Promise<ReadableStream<Uint8Array> | null>;
28
+ /**
29
+ * Retrieves the response headers from the previous request.
30
+ *
31
+ * @returns A promise that resolves to the response headers, or throws a `DeepgramUnknownError` if no request has been made yet.
32
+ */
33
+ getHeaders(): Promise<Headers>;
34
+ }
35
+ export { SpeakRestClient as SpeakClient };
36
+ //# sourceMappingURL=SpeakRestClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpeakRestClient.d.ts","sourceRoot":"","sources":["../../../src/packages/SpeakRestClient.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;GAEG;AACH,qBAAa,eAAgB,SAAQ,kBAAkB;IAC9C,SAAS,EAAE,MAAM,CAAW;IAC5B,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAC;IAEpC;;;;;;;;;;OAUG;IACG,OAAO,CACX,MAAM,EAAE,UAAU,EAClB,OAAO,CAAC,EAAE,WAAW,EACrB,QAAQ,SAAmB,GAC1B,OAAO,CAAC,eAAe,CAAC;IAyB3B;;;;;OAKG;IACG,SAAS,IAAI,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;IAO7D;;;;OAIG;IACG,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;CAMrC;AAED,OAAO,EAAE,eAAe,IAAI,WAAW,EAAE,CAAC"}
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SpeakClient = exports.SpeakRestClient = void 0;
13
+ const errors_1 = require("../lib/errors");
14
+ const helpers_1 = require("../lib/helpers");
15
+ const AbstractRestClient_1 = require("./AbstractRestClient");
16
+ /**
17
+ * Provides a client for interacting with the Deepgram Text-to-Speech API.
18
+ */
19
+ class SpeakRestClient extends AbstractRestClient_1.AbstractRestClient {
20
+ constructor() {
21
+ super(...arguments);
22
+ this.namespace = "speak";
23
+ }
24
+ /**
25
+ * Sends a request to the Deepgram Text-to-Speech API to generate audio from the provided text source.
26
+ *
27
+ * @param source - The text source to be converted to audio.
28
+ * @param options - Optional configuration options for the text-to-speech request.
29
+ * @param endpoint - The API endpoint to use for the request. Defaults to ":version/speak".
30
+ * @returns A promise that resolves to the SpeakRestClient instance, which can be used to retrieve the response headers and body.
31
+ * @throws {DeepgramError} If the text source type is unknown.
32
+ * @throws {DeepgramUnknownError} If the request was made before a previous request completed.
33
+ * @see https://developers.deepgram.com/reference/text-to-speech-api
34
+ */
35
+ request(source, options, endpoint = ":version/speak") {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ try {
38
+ let body;
39
+ if ((0, helpers_1.isTextSource)(source)) {
40
+ body = JSON.stringify(source);
41
+ }
42
+ else {
43
+ throw new errors_1.DeepgramError("Unknown transcription source type");
44
+ }
45
+ const requestUrl = this.getRequestUrl(endpoint, {}, Object.assign({ model: "aura-asteria-en" }, options));
46
+ this.result = yield this.post(requestUrl, body, {
47
+ headers: { Accept: "audio/*", "Content-Type": "application/json" },
48
+ });
49
+ return this;
50
+ }
51
+ catch (error) {
52
+ throw error;
53
+ }
54
+ });
55
+ }
56
+ /**
57
+ * Retrieves the response body as a readable stream.
58
+ *
59
+ * @returns A promise that resolves to the response body as a readable stream, or `null` if no request has been made yet.
60
+ * @throws {DeepgramUnknownError} If a request has not been made yet.
61
+ */
62
+ getStream() {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ if (!this.result)
65
+ throw new errors_1.DeepgramUnknownError("Tried to get stream before making request", "");
66
+ return this.result.body;
67
+ });
68
+ }
69
+ /**
70
+ * Retrieves the response headers from the previous request.
71
+ *
72
+ * @returns A promise that resolves to the response headers, or throws a `DeepgramUnknownError` if no request has been made yet.
73
+ */
74
+ getHeaders() {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ if (!this.result)
77
+ throw new errors_1.DeepgramUnknownError("Tried to get headers before making request", "");
78
+ return this.result.headers;
79
+ });
80
+ }
81
+ }
82
+ exports.SpeakRestClient = SpeakRestClient;
83
+ exports.SpeakClient = SpeakRestClient;
84
+ //# sourceMappingURL=SpeakRestClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpeakRestClient.js","sourceRoot":"","sources":["../../../src/packages/SpeakRestClient.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAoE;AACpE,4CAA8C;AAE9C,6DAA0D;AAE1D;;GAEG;AACH,MAAa,eAAgB,SAAQ,uCAAkB;IAAvD;;QACS,cAAS,GAAW,OAAO,CAAC;IAmErC,CAAC;IAhEC;;;;;;;;;;OAUG;IACG,OAAO,CACX,MAAkB,EAClB,OAAqB,EACrB,QAAQ,GAAG,gBAAgB;;YAE3B,IAAI;gBACF,IAAI,IAAI,CAAC;gBAET,IAAI,IAAA,sBAAY,EAAC,MAAM,CAAC,EAAE;oBACxB,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;iBAC/B;qBAAM;oBACL,MAAM,IAAI,sBAAa,CAAC,mCAAmC,CAAC,CAAC;iBAC9D;gBAED,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CACnC,QAAQ,EACR,EAAE,gBACG,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAK,OAAO,EAC9C,CAAC;gBACF,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,EAAE;oBAC9C,OAAO,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,kBAAkB,EAAE;iBACnE,CAAC,CAAC;gBAEH,OAAO,IAAI,CAAC;aACb;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,KAAK,CAAC;aACb;QACH,CAAC;KAAA;IAED;;;;;OAKG;IACG,SAAS;;YACb,IAAI,CAAC,IAAI,CAAC,MAAM;gBACd,MAAM,IAAI,6BAAoB,CAAC,2CAA2C,EAAE,EAAE,CAAC,CAAC;YAElF,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;QAC1B,CAAC;KAAA;IAED;;;;OAIG;IACG,UAAU;;YACd,IAAI,CAAC,IAAI,CAAC,MAAM;gBACd,MAAM,IAAI,6BAAoB,CAAC,4CAA4C,EAAE,EAAE,CAAC,CAAC;YAEnF,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;QAC7B,CAAC;KAAA;CACF;AApED,0CAoEC;AAE2B,sCAAW"}
@@ -1,9 +1,11 @@
1
- export { AbstractClient } from "./AbstractClient";
2
- export { AbstractRestfulClient } from "./AbstractRestfulClient";
3
- export { AbstractWsClient } from "./AbstractWsClient";
4
- export { ListenClient } from "./ListenClient";
5
- export { LiveClient } from "./LiveClient";
6
- export { ManageClient } from "./ManageClient";
7
- export { OnPremClient } from "./OnPremClient";
8
- export { PrerecordedClient } from "./PrerecordedClient";
1
+ export * from "./AbstractClient";
2
+ export * from "./AbstractLiveClient";
3
+ export * from "./AbstractRestClient";
4
+ export * from "./ListenClient";
5
+ export * from "./ListenLiveClient";
6
+ export * from "./ListenRestClient";
7
+ export * from "./ManageRestClient";
8
+ export * from "./ReadRestClient";
9
+ export * from "./SelfHostedRestClient";
10
+ export * from "./SpeakRestClient";
9
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
@@ -1,20 +1,27 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PrerecordedClient = exports.OnPremClient = exports.ManageClient = exports.LiveClient = exports.ListenClient = exports.AbstractWsClient = exports.AbstractRestfulClient = exports.AbstractClient = void 0;
4
- var AbstractClient_1 = require("./AbstractClient");
5
- Object.defineProperty(exports, "AbstractClient", { enumerable: true, get: function () { return AbstractClient_1.AbstractClient; } });
6
- var AbstractRestfulClient_1 = require("./AbstractRestfulClient");
7
- Object.defineProperty(exports, "AbstractRestfulClient", { enumerable: true, get: function () { return AbstractRestfulClient_1.AbstractRestfulClient; } });
8
- var AbstractWsClient_1 = require("./AbstractWsClient");
9
- Object.defineProperty(exports, "AbstractWsClient", { enumerable: true, get: function () { return AbstractWsClient_1.AbstractWsClient; } });
10
- var ListenClient_1 = require("./ListenClient");
11
- Object.defineProperty(exports, "ListenClient", { enumerable: true, get: function () { return ListenClient_1.ListenClient; } });
12
- var LiveClient_1 = require("./LiveClient");
13
- Object.defineProperty(exports, "LiveClient", { enumerable: true, get: function () { return LiveClient_1.LiveClient; } });
14
- var ManageClient_1 = require("./ManageClient");
15
- Object.defineProperty(exports, "ManageClient", { enumerable: true, get: function () { return ManageClient_1.ManageClient; } });
16
- var OnPremClient_1 = require("./OnPremClient");
17
- Object.defineProperty(exports, "OnPremClient", { enumerable: true, get: function () { return OnPremClient_1.OnPremClient; } });
18
- var PrerecordedClient_1 = require("./PrerecordedClient");
19
- Object.defineProperty(exports, "PrerecordedClient", { enumerable: true, get: function () { return PrerecordedClient_1.PrerecordedClient; } });
17
+ __exportStar(require("./AbstractClient"), exports);
18
+ __exportStar(require("./AbstractLiveClient"), exports);
19
+ __exportStar(require("./AbstractRestClient"), exports);
20
+ __exportStar(require("./ListenClient"), exports);
21
+ __exportStar(require("./ListenLiveClient"), exports);
22
+ __exportStar(require("./ListenRestClient"), exports);
23
+ __exportStar(require("./ManageRestClient"), exports);
24
+ __exportStar(require("./ReadRestClient"), exports);
25
+ __exportStar(require("./SelfHostedRestClient"), exports);
26
+ __exportStar(require("./SpeakRestClient"), exports);
20
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/packages/index.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAC9B,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA;AACzB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,yDAAwD;AAA/C,sHAAA,iBAAiB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/packages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,uDAAqC;AACrC,uDAAqC;AACrC,iDAA+B;AAC/B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,yDAAuC;AACvC,oDAAkC"}