@tapra/sdk 0.0.0-stage → 0.1.0

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 (398) hide show
  1. package/README.md +41 -3
  2. package/dist/lib/index.d.ts +3 -0
  3. package/dist/lib/index.js +5 -0
  4. package/dist/lib/index.js.map +1 -0
  5. package/dist/lib/realtime.d.ts +99 -0
  6. package/dist/lib/realtime.js +230 -0
  7. package/dist/lib/realtime.js.map +1 -0
  8. package/dist/src/BaseClient.d.ts +57 -0
  9. package/dist/src/BaseClient.js +37 -0
  10. package/dist/src/BaseClient.js.map +1 -0
  11. package/dist/src/Client.d.ts +41 -0
  12. package/dist/src/Client.js +61 -0
  13. package/dist/src/Client.js.map +1 -0
  14. package/dist/src/api/errors/BadRequestError.d.ts +7 -0
  15. package/dist/src/api/errors/BadRequestError.js +18 -0
  16. package/dist/src/api/errors/BadRequestError.js.map +1 -0
  17. package/dist/src/api/errors/ContentTooLargeError.d.ts +7 -0
  18. package/dist/src/api/errors/ContentTooLargeError.js +18 -0
  19. package/dist/src/api/errors/ContentTooLargeError.js.map +1 -0
  20. package/dist/src/api/errors/ForbiddenError.d.ts +7 -0
  21. package/dist/src/api/errors/ForbiddenError.js +18 -0
  22. package/dist/src/api/errors/ForbiddenError.js.map +1 -0
  23. package/dist/src/api/errors/InternalServerError.d.ts +7 -0
  24. package/dist/src/api/errors/InternalServerError.js +18 -0
  25. package/dist/src/api/errors/InternalServerError.js.map +1 -0
  26. package/dist/src/api/errors/PaymentRequiredError.d.ts +7 -0
  27. package/dist/src/api/errors/PaymentRequiredError.js +18 -0
  28. package/dist/src/api/errors/PaymentRequiredError.js.map +1 -0
  29. package/dist/src/api/errors/ServiceUnavailableError.d.ts +7 -0
  30. package/dist/src/api/errors/ServiceUnavailableError.js +18 -0
  31. package/dist/src/api/errors/ServiceUnavailableError.js.map +1 -0
  32. package/dist/src/api/errors/TooManyRequestsError.d.ts +7 -0
  33. package/dist/src/api/errors/TooManyRequestsError.js +18 -0
  34. package/dist/src/api/errors/TooManyRequestsError.js.map +1 -0
  35. package/dist/src/api/errors/UnauthorizedError.d.ts +7 -0
  36. package/dist/src/api/errors/UnauthorizedError.js +18 -0
  37. package/dist/src/api/errors/UnauthorizedError.js.map +1 -0
  38. package/dist/src/api/errors/index.d.ts +8 -0
  39. package/dist/src/api/errors/index.js +9 -0
  40. package/dist/src/api/errors/index.js.map +1 -0
  41. package/dist/src/api/index.d.ts +3 -0
  42. package/dist/src/api/index.js +4 -0
  43. package/dist/src/api/index.js.map +1 -0
  44. package/dist/src/api/resources/diarization/client/Client.d.ts +40 -0
  45. package/dist/src/api/resources/diarization/client/Client.js +97 -0
  46. package/dist/src/api/resources/diarization/client/Client.js.map +1 -0
  47. package/dist/src/api/resources/diarization/client/index.d.ts +1 -0
  48. package/dist/src/api/resources/diarization/client/index.js +2 -0
  49. package/dist/src/api/resources/diarization/client/index.js.map +1 -0
  50. package/dist/src/api/resources/diarization/client/requests/DiarizationRequest.d.ts +11 -0
  51. package/dist/src/api/resources/diarization/client/requests/DiarizationRequest.js +3 -0
  52. package/dist/src/api/resources/diarization/client/requests/DiarizationRequest.js.map +1 -0
  53. package/dist/src/api/resources/diarization/client/requests/index.d.ts +1 -0
  54. package/dist/src/api/resources/diarization/client/requests/index.js +2 -0
  55. package/dist/src/api/resources/diarization/client/requests/index.js.map +1 -0
  56. package/dist/src/api/resources/diarization/exports.d.ts +2 -0
  57. package/dist/src/api/resources/diarization/exports.js +4 -0
  58. package/dist/src/api/resources/diarization/exports.js.map +1 -0
  59. package/dist/src/api/resources/diarization/index.d.ts +1 -0
  60. package/dist/src/api/resources/diarization/index.js +2 -0
  61. package/dist/src/api/resources/diarization/index.js.map +1 -0
  62. package/dist/src/api/resources/index.d.ts +11 -0
  63. package/dist/src/api/resources/index.js +12 -0
  64. package/dist/src/api/resources/index.js.map +1 -0
  65. package/dist/src/api/resources/models/client/Client.d.ts +27 -0
  66. package/dist/src/api/resources/models/client/Client.js +56 -0
  67. package/dist/src/api/resources/models/client/Client.js.map +1 -0
  68. package/dist/src/api/resources/models/client/index.d.ts +1 -0
  69. package/dist/src/api/resources/models/client/index.js +2 -0
  70. package/dist/src/api/resources/models/client/index.js.map +1 -0
  71. package/dist/src/api/resources/models/exports.d.ts +2 -0
  72. package/dist/src/api/resources/models/exports.js +4 -0
  73. package/dist/src/api/resources/models/exports.js.map +1 -0
  74. package/dist/src/api/resources/models/index.d.ts +1 -0
  75. package/dist/src/api/resources/models/index.js +2 -0
  76. package/dist/src/api/resources/models/index.js.map +1 -0
  77. package/dist/src/api/resources/script/client/Client.d.ts +47 -0
  78. package/dist/src/api/resources/script/client/Client.js +99 -0
  79. package/dist/src/api/resources/script/client/Client.js.map +1 -0
  80. package/dist/src/api/resources/script/client/index.d.ts +1 -0
  81. package/dist/src/api/resources/script/client/index.js +2 -0
  82. package/dist/src/api/resources/script/client/index.js.map +1 -0
  83. package/dist/src/api/resources/script/client/requests/ConversionRequest.d.ts +26 -0
  84. package/dist/src/api/resources/script/client/requests/ConversionRequest.js +10 -0
  85. package/dist/src/api/resources/script/client/requests/ConversionRequest.js.map +1 -0
  86. package/dist/src/api/resources/script/client/requests/index.d.ts +1 -0
  87. package/dist/src/api/resources/script/client/requests/index.js +2 -0
  88. package/dist/src/api/resources/script/client/requests/index.js.map +1 -0
  89. package/dist/src/api/resources/script/exports.d.ts +2 -0
  90. package/dist/src/api/resources/script/exports.js +4 -0
  91. package/dist/src/api/resources/script/exports.js.map +1 -0
  92. package/dist/src/api/resources/script/index.d.ts +1 -0
  93. package/dist/src/api/resources/script/index.js +2 -0
  94. package/dist/src/api/resources/script/index.js.map +1 -0
  95. package/dist/src/api/resources/speech/client/Client.d.ts +43 -0
  96. package/dist/src/api/resources/speech/client/Client.js +145 -0
  97. package/dist/src/api/resources/speech/client/Client.js.map +1 -0
  98. package/dist/src/api/resources/speech/client/index.d.ts +1 -0
  99. package/dist/src/api/resources/speech/client/index.js +2 -0
  100. package/dist/src/api/resources/speech/client/index.js.map +1 -0
  101. package/dist/src/api/resources/speech/client/requests/SpeechRequest.d.ts +56 -0
  102. package/dist/src/api/resources/speech/client/requests/SpeechRequest.js +23 -0
  103. package/dist/src/api/resources/speech/client/requests/SpeechRequest.js.map +1 -0
  104. package/dist/src/api/resources/speech/client/requests/index.d.ts +1 -0
  105. package/dist/src/api/resources/speech/client/requests/index.js +2 -0
  106. package/dist/src/api/resources/speech/client/requests/index.js.map +1 -0
  107. package/dist/src/api/resources/speech/exports.d.ts +2 -0
  108. package/dist/src/api/resources/speech/exports.js +4 -0
  109. package/dist/src/api/resources/speech/exports.js.map +1 -0
  110. package/dist/src/api/resources/speech/index.d.ts +1 -0
  111. package/dist/src/api/resources/speech/index.js +2 -0
  112. package/dist/src/api/resources/speech/index.js.map +1 -0
  113. package/dist/src/api/resources/transcriptions/client/Client.d.ts +40 -0
  114. package/dist/src/api/resources/transcriptions/client/Client.js +118 -0
  115. package/dist/src/api/resources/transcriptions/client/Client.js.map +1 -0
  116. package/dist/src/api/resources/transcriptions/client/index.d.ts +1 -0
  117. package/dist/src/api/resources/transcriptions/client/index.js +2 -0
  118. package/dist/src/api/resources/transcriptions/client/index.js.map +1 -0
  119. package/dist/src/api/resources/transcriptions/client/requests/TranscriptionRequest.d.ts +32 -0
  120. package/dist/src/api/resources/transcriptions/client/requests/TranscriptionRequest.js +10 -0
  121. package/dist/src/api/resources/transcriptions/client/requests/TranscriptionRequest.js.map +1 -0
  122. package/dist/src/api/resources/transcriptions/client/requests/index.d.ts +1 -0
  123. package/dist/src/api/resources/transcriptions/client/requests/index.js +2 -0
  124. package/dist/src/api/resources/transcriptions/client/requests/index.js.map +1 -0
  125. package/dist/src/api/resources/transcriptions/exports.d.ts +2 -0
  126. package/dist/src/api/resources/transcriptions/exports.js +4 -0
  127. package/dist/src/api/resources/transcriptions/exports.js.map +1 -0
  128. package/dist/src/api/resources/transcriptions/index.d.ts +1 -0
  129. package/dist/src/api/resources/transcriptions/index.js +2 -0
  130. package/dist/src/api/resources/transcriptions/index.js.map +1 -0
  131. package/dist/src/api/resources/translations/client/Client.d.ts +57 -0
  132. package/dist/src/api/resources/translations/client/Client.js +208 -0
  133. package/dist/src/api/resources/translations/client/Client.js.map +1 -0
  134. package/dist/src/api/resources/translations/client/index.d.ts +1 -0
  135. package/dist/src/api/resources/translations/client/index.js +2 -0
  136. package/dist/src/api/resources/translations/client/index.js.map +1 -0
  137. package/dist/src/api/resources/translations/client/requests/CreateTranslationsRequest.d.ts +26 -0
  138. package/dist/src/api/resources/translations/client/requests/CreateTranslationsRequest.js +11 -0
  139. package/dist/src/api/resources/translations/client/requests/CreateTranslationsRequest.js.map +1 -0
  140. package/dist/src/api/resources/translations/client/requests/CreateTranslationsStreamRequest.d.ts +26 -0
  141. package/dist/src/api/resources/translations/client/requests/CreateTranslationsStreamRequest.js +11 -0
  142. package/dist/src/api/resources/translations/client/requests/CreateTranslationsStreamRequest.js.map +1 -0
  143. package/dist/src/api/resources/translations/client/requests/index.d.ts +2 -0
  144. package/dist/src/api/resources/translations/client/requests/index.js +3 -0
  145. package/dist/src/api/resources/translations/client/requests/index.js.map +1 -0
  146. package/dist/src/api/resources/translations/exports.d.ts +2 -0
  147. package/dist/src/api/resources/translations/exports.js +4 -0
  148. package/dist/src/api/resources/translations/exports.js.map +1 -0
  149. package/dist/src/api/resources/translations/index.d.ts +1 -0
  150. package/dist/src/api/resources/translations/index.js +2 -0
  151. package/dist/src/api/resources/translations/index.js.map +1 -0
  152. package/dist/src/api/types/Conversion.d.ts +18 -0
  153. package/dist/src/api/types/Conversion.js +9 -0
  154. package/dist/src/api/types/Conversion.js.map +1 -0
  155. package/dist/src/api/types/Diarization.d.ts +12 -0
  156. package/dist/src/api/types/Diarization.js +3 -0
  157. package/dist/src/api/types/Diarization.js.map +1 -0
  158. package/dist/src/api/types/ErrorObject.d.ts +18 -0
  159. package/dist/src/api/types/ErrorObject.js +16 -0
  160. package/dist/src/api/types/ErrorObject.js.map +1 -0
  161. package/dist/src/api/types/Error_.d.ts +6 -0
  162. package/dist/src/api/types/Error_.js +3 -0
  163. package/dist/src/api/types/Error_.js.map +1 -0
  164. package/dist/src/api/types/Model.d.ts +17 -0
  165. package/dist/src/api/types/Model.js +11 -0
  166. package/dist/src/api/types/Model.js.map +1 -0
  167. package/dist/src/api/types/ModelList.d.ts +13 -0
  168. package/dist/src/api/types/ModelList.js +8 -0
  169. package/dist/src/api/types/ModelList.js.map +1 -0
  170. package/dist/src/api/types/RealtimeClientMessage.d.ts +13 -0
  171. package/dist/src/api/types/RealtimeClientMessage.js +9 -0
  172. package/dist/src/api/types/RealtimeClientMessage.js.map +1 -0
  173. package/dist/src/api/types/RealtimeEvent.d.ts +39 -0
  174. package/dist/src/api/types/RealtimeEvent.js +13 -0
  175. package/dist/src/api/types/RealtimeEvent.js.map +1 -0
  176. package/dist/src/api/types/Segment.d.ts +10 -0
  177. package/dist/src/api/types/Segment.js +3 -0
  178. package/dist/src/api/types/Segment.js.map +1 -0
  179. package/dist/src/api/types/Speaker.d.ts +9 -0
  180. package/dist/src/api/types/Speaker.js +3 -0
  181. package/dist/src/api/types/Speaker.js.map +1 -0
  182. package/dist/src/api/types/SpeakerTurn.d.ts +7 -0
  183. package/dist/src/api/types/SpeakerTurn.js +3 -0
  184. package/dist/src/api/types/SpeakerTurn.js.map +1 -0
  185. package/dist/src/api/types/Speech.d.ts +25 -0
  186. package/dist/src/api/types/Speech.js +8 -0
  187. package/dist/src/api/types/Speech.js.map +1 -0
  188. package/dist/src/api/types/Transcription.d.ts +21 -0
  189. package/dist/src/api/types/Transcription.js +3 -0
  190. package/dist/src/api/types/Transcription.js.map +1 -0
  191. package/dist/src/api/types/Translation.d.ts +16 -0
  192. package/dist/src/api/types/Translation.js +3 -0
  193. package/dist/src/api/types/Translation.js.map +1 -0
  194. package/dist/src/api/types/TranslationLanguage.d.ts +8 -0
  195. package/dist/src/api/types/TranslationLanguage.js +3 -0
  196. package/dist/src/api/types/TranslationLanguage.js.map +1 -0
  197. package/dist/src/api/types/TranslationLanguageList.d.ts +14 -0
  198. package/dist/src/api/types/TranslationLanguageList.js +8 -0
  199. package/dist/src/api/types/TranslationLanguageList.js.map +1 -0
  200. package/dist/src/api/types/TranslationRequest.d.ts +22 -0
  201. package/dist/src/api/types/TranslationRequest.js +11 -0
  202. package/dist/src/api/types/TranslationRequest.js.map +1 -0
  203. package/dist/src/api/types/TranslationStreamEvent.d.ts +19 -0
  204. package/dist/src/api/types/TranslationStreamEvent.js +11 -0
  205. package/dist/src/api/types/TranslationStreamEvent.js.map +1 -0
  206. package/dist/src/api/types/Usage.d.ts +8 -0
  207. package/dist/src/api/types/Usage.js +3 -0
  208. package/dist/src/api/types/Usage.js.map +1 -0
  209. package/dist/src/api/types/Word.d.ts +9 -0
  210. package/dist/src/api/types/Word.js +3 -0
  211. package/dist/src/api/types/Word.js.map +1 -0
  212. package/dist/src/api/types/index.d.ts +20 -0
  213. package/dist/src/api/types/index.js +21 -0
  214. package/dist/src/api/types/index.js.map +1 -0
  215. package/dist/src/auth/BearerAuthProvider.d.ts +20 -0
  216. package/dist/src/auth/BearerAuthProvider.js +34 -0
  217. package/dist/src/auth/BearerAuthProvider.js.map +1 -0
  218. package/dist/src/auth/index.d.ts +1 -0
  219. package/dist/src/auth/index.js +2 -0
  220. package/dist/src/auth/index.js.map +1 -0
  221. package/dist/src/core/auth/AuthProvider.d.ts +8 -0
  222. package/dist/src/core/auth/AuthProvider.js +7 -0
  223. package/dist/src/core/auth/AuthProvider.js.map +1 -0
  224. package/dist/src/core/auth/AuthRequest.d.ts +9 -0
  225. package/dist/src/core/auth/AuthRequest.js +2 -0
  226. package/dist/src/core/auth/AuthRequest.js.map +1 -0
  227. package/dist/src/core/auth/BasicAuth.d.ts +8 -0
  228. package/dist/src/core/auth/BasicAuth.js +30 -0
  229. package/dist/src/core/auth/BasicAuth.js.map +1 -0
  230. package/dist/src/core/auth/BearerToken.d.ts +7 -0
  231. package/dist/src/core/auth/BearerToken.js +14 -0
  232. package/dist/src/core/auth/BearerToken.js.map +1 -0
  233. package/dist/src/core/auth/NoOpAuthProvider.d.ts +5 -0
  234. package/dist/src/core/auth/NoOpAuthProvider.js +6 -0
  235. package/dist/src/core/auth/NoOpAuthProvider.js.map +1 -0
  236. package/dist/src/core/auth/index.d.ts +5 -0
  237. package/dist/src/core/auth/index.js +5 -0
  238. package/dist/src/core/auth/index.js.map +1 -0
  239. package/dist/src/core/base64.d.ts +2 -0
  240. package/dist/src/core/base64.js +23 -0
  241. package/dist/src/core/base64.js.map +1 -0
  242. package/dist/src/core/exports.d.ts +2 -0
  243. package/dist/src/core/exports.js +3 -0
  244. package/dist/src/core/exports.js.map +1 -0
  245. package/dist/src/core/fetcher/APIResponse.d.ts +20 -0
  246. package/dist/src/core/fetcher/APIResponse.js +2 -0
  247. package/dist/src/core/fetcher/APIResponse.js.map +1 -0
  248. package/dist/src/core/fetcher/BinaryResponse.d.ts +19 -0
  249. package/dist/src/core/fetcher/BinaryResponse.js +15 -0
  250. package/dist/src/core/fetcher/BinaryResponse.js.map +1 -0
  251. package/dist/src/core/fetcher/EndpointMetadata.d.ts +13 -0
  252. package/dist/src/core/fetcher/EndpointMetadata.js +2 -0
  253. package/dist/src/core/fetcher/EndpointMetadata.js.map +1 -0
  254. package/dist/src/core/fetcher/EndpointSupplier.d.ts +12 -0
  255. package/dist/src/core/fetcher/EndpointSupplier.js +11 -0
  256. package/dist/src/core/fetcher/EndpointSupplier.js.map +1 -0
  257. package/dist/src/core/fetcher/Fetcher.d.ts +56 -0
  258. package/dist/src/core/fetcher/Fetcher.js +224 -0
  259. package/dist/src/core/fetcher/Fetcher.js.map +1 -0
  260. package/dist/src/core/fetcher/Headers.d.ts +2 -0
  261. package/dist/src/core/fetcher/Headers.js +84 -0
  262. package/dist/src/core/fetcher/Headers.js.map +1 -0
  263. package/dist/src/core/fetcher/HttpResponsePromise.d.ts +58 -0
  264. package/dist/src/core/fetcher/HttpResponsePromise.js +91 -0
  265. package/dist/src/core/fetcher/HttpResponsePromise.js.map +1 -0
  266. package/dist/src/core/fetcher/RawResponse.d.ts +29 -0
  267. package/dist/src/core/fetcher/RawResponse.js +41 -0
  268. package/dist/src/core/fetcher/RawResponse.js.map +1 -0
  269. package/dist/src/core/fetcher/Supplier.d.ts +4 -0
  270. package/dist/src/core/fetcher/Supplier.js +11 -0
  271. package/dist/src/core/fetcher/Supplier.js.map +1 -0
  272. package/dist/src/core/fetcher/createRequestUrl.d.ts +1 -0
  273. package/dist/src/core/fetcher/createRequestUrl.js +6 -0
  274. package/dist/src/core/fetcher/createRequestUrl.js.map +1 -0
  275. package/dist/src/core/fetcher/getErrorResponseBody.d.ts +1 -0
  276. package/dist/src/core/fetcher/getErrorResponseBody.js +31 -0
  277. package/dist/src/core/fetcher/getErrorResponseBody.js.map +1 -0
  278. package/dist/src/core/fetcher/getFetchFn.d.ts +1 -0
  279. package/dist/src/core/fetcher/getFetchFn.js +4 -0
  280. package/dist/src/core/fetcher/getFetchFn.js.map +1 -0
  281. package/dist/src/core/fetcher/getHeader.d.ts +1 -0
  282. package/dist/src/core/fetcher/getHeader.js +9 -0
  283. package/dist/src/core/fetcher/getHeader.js.map +1 -0
  284. package/dist/src/core/fetcher/getRequestBody.d.ts +7 -0
  285. package/dist/src/core/fetcher/getRequestBody.js +14 -0
  286. package/dist/src/core/fetcher/getRequestBody.js.map +1 -0
  287. package/dist/src/core/fetcher/getResponseBody.d.ts +1 -0
  288. package/dist/src/core/fetcher/getResponseBody.js +67 -0
  289. package/dist/src/core/fetcher/getResponseBody.js.map +1 -0
  290. package/dist/src/core/fetcher/index.d.ts +13 -0
  291. package/dist/src/core/fetcher/index.js +8 -0
  292. package/dist/src/core/fetcher/index.js.map +1 -0
  293. package/dist/src/core/fetcher/makePassthroughRequest.d.ts +49 -0
  294. package/dist/src/core/fetcher/makePassthroughRequest.js +142 -0
  295. package/dist/src/core/fetcher/makePassthroughRequest.js.map +1 -0
  296. package/dist/src/core/fetcher/makeRequest.d.ts +6 -0
  297. package/dist/src/core/fetcher/makeRequest.js +54 -0
  298. package/dist/src/core/fetcher/makeRequest.js.map +1 -0
  299. package/dist/src/core/fetcher/redactUrl.d.ts +2 -0
  300. package/dist/src/core/fetcher/redactUrl.js +85 -0
  301. package/dist/src/core/fetcher/redactUrl.js.map +1 -0
  302. package/dist/src/core/fetcher/requestWithRetries.d.ts +1 -0
  303. package/dist/src/core/fetcher/requestWithRetries.js +57 -0
  304. package/dist/src/core/fetcher/requestWithRetries.js.map +1 -0
  305. package/dist/src/core/fetcher/signals.d.ts +5 -0
  306. package/dist/src/core/fetcher/signals.js +29 -0
  307. package/dist/src/core/fetcher/signals.js.map +1 -0
  308. package/dist/src/core/file/exports.d.ts +1 -0
  309. package/dist/src/core/file/exports.js +2 -0
  310. package/dist/src/core/file/exports.js.map +1 -0
  311. package/dist/src/core/file/file.d.ts +10 -0
  312. package/dist/src/core/file/file.js +169 -0
  313. package/dist/src/core/file/file.js.map +1 -0
  314. package/dist/src/core/file/index.d.ts +2 -0
  315. package/dist/src/core/file/index.js +3 -0
  316. package/dist/src/core/file/index.js.map +1 -0
  317. package/dist/src/core/file/types.d.ts +66 -0
  318. package/dist/src/core/file/types.js +2 -0
  319. package/dist/src/core/file/types.js.map +1 -0
  320. package/dist/src/core/form-data-utils/FormDataWrapper.d.ts +15 -0
  321. package/dist/src/core/form-data-utils/FormDataWrapper.js +109 -0
  322. package/dist/src/core/form-data-utils/FormDataWrapper.js.map +1 -0
  323. package/dist/src/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  324. package/dist/src/core/form-data-utils/encodeAsFormParameter.js +10 -0
  325. package/dist/src/core/form-data-utils/encodeAsFormParameter.js.map +1 -0
  326. package/dist/src/core/form-data-utils/index.d.ts +2 -0
  327. package/dist/src/core/form-data-utils/index.js +3 -0
  328. package/dist/src/core/form-data-utils/index.js.map +1 -0
  329. package/dist/src/core/headers.d.ts +2 -0
  330. package/dist/src/core/headers.js +28 -0
  331. package/dist/src/core/headers.js.map +1 -0
  332. package/dist/src/core/index.d.ts +9 -0
  333. package/dist/src/core/index.js +10 -0
  334. package/dist/src/core/index.js.map +1 -0
  335. package/dist/src/core/json.d.ts +15 -0
  336. package/dist/src/core/json.js +20 -0
  337. package/dist/src/core/json.js.map +1 -0
  338. package/dist/src/core/logging/exports.d.ts +18 -0
  339. package/dist/src/core/logging/exports.js +10 -0
  340. package/dist/src/core/logging/exports.js.map +1 -0
  341. package/dist/src/core/logging/index.d.ts +1 -0
  342. package/dist/src/core/logging/index.js +2 -0
  343. package/dist/src/core/logging/index.js.map +1 -0
  344. package/dist/src/core/logging/logger.d.ts +126 -0
  345. package/dist/src/core/logging/logger.js +141 -0
  346. package/dist/src/core/logging/logger.js.map +1 -0
  347. package/dist/src/core/requestBody.d.ts +12 -0
  348. package/dist/src/core/requestBody.js +24 -0
  349. package/dist/src/core/requestBody.js.map +1 -0
  350. package/dist/src/core/runtime/index.d.ts +1 -0
  351. package/dist/src/core/runtime/index.js +2 -0
  352. package/dist/src/core/runtime/index.js.map +1 -0
  353. package/dist/src/core/runtime/runtime.d.ts +28 -0
  354. package/dist/src/core/runtime/runtime.js +172 -0
  355. package/dist/src/core/runtime/runtime.js.map +1 -0
  356. package/dist/src/core/stream/Stream.d.ts +100 -0
  357. package/dist/src/core/stream/Stream.js +427 -0
  358. package/dist/src/core/stream/Stream.js.map +1 -0
  359. package/dist/src/core/stream/index.d.ts +2 -0
  360. package/dist/src/core/stream/index.js +2 -0
  361. package/dist/src/core/stream/index.js.map +1 -0
  362. package/dist/src/core/url/QueryStringBuilder.d.ts +47 -0
  363. package/dist/src/core/url/QueryStringBuilder.js +79 -0
  364. package/dist/src/core/url/QueryStringBuilder.js.map +1 -0
  365. package/dist/src/core/url/encodePathParam.d.ts +1 -0
  366. package/dist/src/core/url/encodePathParam.js +19 -0
  367. package/dist/src/core/url/encodePathParam.js.map +1 -0
  368. package/dist/src/core/url/index.d.ts +4 -0
  369. package/dist/src/core/url/index.js +5 -0
  370. package/dist/src/core/url/index.js.map +1 -0
  371. package/dist/src/core/url/join.d.ts +1 -0
  372. package/dist/src/core/url/join.js +66 -0
  373. package/dist/src/core/url/join.js.map +1 -0
  374. package/dist/src/core/url/qs.d.ts +7 -0
  375. package/dist/src/core/url/qs.js +77 -0
  376. package/dist/src/core/url/qs.js.map +1 -0
  377. package/dist/src/environments.d.ts +4 -0
  378. package/dist/src/environments.js +5 -0
  379. package/dist/src/environments.js.map +1 -0
  380. package/dist/src/errors/TapraError.d.ts +15 -0
  381. package/dist/src/errors/TapraError.js +39 -0
  382. package/dist/src/errors/TapraError.js.map +1 -0
  383. package/dist/src/errors/TapraTimeoutError.d.ts +6 -0
  384. package/dist/src/errors/TapraTimeoutError.js +16 -0
  385. package/dist/src/errors/TapraTimeoutError.js.map +1 -0
  386. package/dist/src/errors/handleNonStatusCodeError.d.ts +2 -0
  387. package/dist/src/errors/handleNonStatusCodeError.js +33 -0
  388. package/dist/src/errors/handleNonStatusCodeError.js.map +1 -0
  389. package/dist/src/errors/index.d.ts +2 -0
  390. package/dist/src/errors/index.js +3 -0
  391. package/dist/src/errors/index.js.map +1 -0
  392. package/dist/src/exports.d.ts +1 -0
  393. package/dist/src/exports.js +2 -0
  394. package/dist/src/exports.js.map +1 -0
  395. package/dist/src/index.d.ts +6 -0
  396. package/dist/src/index.js +6 -0
  397. package/dist/src/index.js.map +1 -0
  398. package/package.json +30 -6
@@ -0,0 +1,2 @@
1
+ export { ModelsClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,4 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { ModelsClient } from "./client/Client.js";
3
+ export * from "./client/index.js";
4
+ //# sourceMappingURL=exports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../../src/api/resources/models/exports.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAEhE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/resources/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,47 @@
1
+ import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import * as core from "../../../../core/index.js";
4
+ import * as Tapra from "../../../index.js";
5
+ export declare namespace ScriptClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
10
+ }
11
+ }
12
+ /**
13
+ * Bidirectional Tunisian Arabizi ↔ Arabic script conversion.
14
+ */
15
+ export declare class ScriptClient {
16
+ protected readonly _options: NormalizedClientOptionsWithAuth<ScriptClient.Options>;
17
+ constructor(options?: ScriptClient.Options);
18
+ /**
19
+ * @param {Tapra.ConversionRequest} request
20
+ * @param {ScriptClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
21
+ *
22
+ * @throws {@link Tapra.BadRequestError}
23
+ * @throws {@link Tapra.UnauthorizedError}
24
+ * @throws {@link Tapra.PaymentRequiredError}
25
+ * @throws {@link Tapra.ForbiddenError}
26
+ * @throws {@link Tapra.ContentTooLargeError}
27
+ * @throws {@link Tapra.TooManyRequestsError}
28
+ * @throws {@link Tapra.InternalServerError}
29
+ * @throws {@link Tapra.ServiceUnavailableError}
30
+ * @throws {@link errors.TapraError}
31
+ * @throws {@link errors.TapraTimeoutError}
32
+ *
33
+ * @example
34
+ * await client.script.convert({
35
+ * text: "3lech 7abit l9anoun?",
36
+ * direction: "ZI2AR"
37
+ * })
38
+ *
39
+ * @example
40
+ * await client.script.convert({
41
+ * text: "\u0639\u0644\u0627\u0634 \u062D\u0628\u064A\u062A \u0627\u0644\u0642\u0627\u0646\u0648\u0646\u061F",
42
+ * direction: "AR2ZI"
43
+ * })
44
+ */
45
+ convert(request: Tapra.ConversionRequest, requestOptions?: ScriptClient.IdempotentRequestOptions): core.HttpResponsePromise<Tapra.Conversion>;
46
+ private __convert;
47
+ }
@@ -0,0 +1,99 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.js";
4
+ import * as core from "../../../../core/index.js";
5
+ import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.js";
6
+ import * as environments from "../../../../environments.js";
7
+ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js";
8
+ import * as errors from "../../../../errors/index.js";
9
+ import * as Tapra from "../../../index.js";
10
+ /**
11
+ * Bidirectional Tunisian Arabizi ↔ Arabic script conversion.
12
+ */
13
+ export class ScriptClient {
14
+ _options;
15
+ constructor(options = {}) {
16
+ this._options = normalizeClientOptionsWithAuth(options);
17
+ }
18
+ /**
19
+ * @param {Tapra.ConversionRequest} request
20
+ * @param {ScriptClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
21
+ *
22
+ * @throws {@link Tapra.BadRequestError}
23
+ * @throws {@link Tapra.UnauthorizedError}
24
+ * @throws {@link Tapra.PaymentRequiredError}
25
+ * @throws {@link Tapra.ForbiddenError}
26
+ * @throws {@link Tapra.ContentTooLargeError}
27
+ * @throws {@link Tapra.TooManyRequestsError}
28
+ * @throws {@link Tapra.InternalServerError}
29
+ * @throws {@link Tapra.ServiceUnavailableError}
30
+ * @throws {@link errors.TapraError}
31
+ * @throws {@link errors.TapraTimeoutError}
32
+ *
33
+ * @example
34
+ * await client.script.convert({
35
+ * text: "3lech 7abit l9anoun?",
36
+ * direction: "ZI2AR"
37
+ * })
38
+ *
39
+ * @example
40
+ * await client.script.convert({
41
+ * text: "\u0639\u0644\u0627\u0634 \u062D\u0628\u064A\u062A \u0627\u0644\u0642\u0627\u0646\u0648\u0646\u061F",
42
+ * direction: "AR2ZI"
43
+ * })
44
+ */
45
+ convert(request, requestOptions) {
46
+ return core.HttpResponsePromise.fromPromise(this.__convert(request, requestOptions));
47
+ }
48
+ async __convert(request, requestOptions) {
49
+ const _authRequest = await this._options.authProvider.getAuthRequest();
50
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, mergeOnlyDefinedHeaders({ "Idempotency-Key": requestOptions?.idempotencyKey }), requestOptions?.headers);
51
+ const _response = await core.fetcher({
52
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
53
+ (await core.Supplier.get(this._options.environment)) ??
54
+ environments.TapraEnvironment.Default, "v1/converters/transliterate"),
55
+ method: "POST",
56
+ headers: _headers,
57
+ contentType: "application/json",
58
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
59
+ requestType: "json",
60
+ body: mergeAdditionalBodyParameters(request, requestOptions?.additionalBodyParameters),
61
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
62
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
63
+ abortSignal: requestOptions?.abortSignal,
64
+ fetchFn: this._options?.fetch,
65
+ logging: this._options.logging,
66
+ });
67
+ if (_response.ok) {
68
+ return { data: _response.body, rawResponse: _response.rawResponse };
69
+ }
70
+ if (_response.error.reason === "status-code") {
71
+ switch (_response.error.statusCode) {
72
+ case 400:
73
+ throw new Tapra.BadRequestError(_response.error.body, _response.rawResponse);
74
+ case 401:
75
+ throw new Tapra.UnauthorizedError(_response.error.body, _response.rawResponse);
76
+ case 402:
77
+ throw new Tapra.PaymentRequiredError(_response.error.body, _response.rawResponse);
78
+ case 403:
79
+ throw new Tapra.ForbiddenError(_response.error.body, _response.rawResponse);
80
+ case 413:
81
+ throw new Tapra.ContentTooLargeError(_response.error.body, _response.rawResponse);
82
+ case 429:
83
+ throw new Tapra.TooManyRequestsError(_response.error.body, _response.rawResponse);
84
+ case 500:
85
+ throw new Tapra.InternalServerError(_response.error.body, _response.rawResponse);
86
+ case 503:
87
+ throw new Tapra.ServiceUnavailableError(_response.error.body, _response.rawResponse);
88
+ default:
89
+ throw new errors.TapraError({
90
+ statusCode: _response.error.statusCode,
91
+ body: _response.error.body,
92
+ rawResponse: _response.rawResponse,
93
+ });
94
+ }
95
+ }
96
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/converters/transliterate");
97
+ }
98
+ }
99
+ //# sourceMappingURL=Client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../../src/api/resources/script/client/Client.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAGhE,OAAO,EAAwC,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AACjH,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACpF,OAAO,KAAK,IAAI,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,KAAK,YAAY,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAU3C;;GAEG;AACH,MAAM,OAAO,YAAY;IACF,QAAQ,CAAwD;IAEnF,YAAY,UAAgC,EAAE;QAC1C,IAAI,CAAC,QAAQ,GAAG,8BAA8B,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACI,OAAO,CACV,OAAgC,EAChC,cAAsD;QAEtD,OAAO,IAAI,CAAC,mBAAmB,C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W,CAAC,CAAC;gBACtG,KAAK,GAAG;oBACJ,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,SAAS,CAAC,KAAK,CAAC,IAAoB,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;gBACrG,KAAK,GAAG;oBACJ,MAAM,IAAI,KAAK,CAAC,uBAAuB,CACnC,SAAS,CAAC,KAAK,CAAC,IAAoB,EACpC,SAAS,CAAC,WAAW,CACxB,CAAC;gBACN;oBACI,MAAM,IAAI,MAAM,CAAC,UAAU,CAAC;wBACxB,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU;wBACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,IAAI;wBAC1B,WAAW,EAAE,SAAS,CAAC,WAAW;qBACrC,CAAC,CAAC;YACX,CAAC;QACL,CAAC;QAED,OAAO,wBAAwB,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,8BAA8B,CAAC,CAAC;IACpH,CAAC;CACJ"}
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1,2 @@
1
+ export * from "./requests/index.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/resources/script/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * text: "3lech 7abit l9anoun?",
5
+ * direction: "ZI2AR"
6
+ * }
7
+ *
8
+ * @example
9
+ * {
10
+ * text: "\u0639\u0644\u0627\u0634 \u062D\u0628\u064A\u062A \u0627\u0644\u0642\u0627\u0646\u0648\u0646\u061F",
11
+ * direction: "AR2ZI"
12
+ * }
13
+ */
14
+ export interface ConversionRequest {
15
+ text: string;
16
+ /** ZI2AR: Arabizi → Arabic script. AR2ZI: the reverse. */
17
+ direction: ConversionRequest.Direction;
18
+ }
19
+ export declare namespace ConversionRequest {
20
+ /** ZI2AR: Arabizi → Arabic script. AR2ZI: the reverse. */
21
+ const Direction: {
22
+ readonly Zi2Ar: "ZI2AR";
23
+ readonly Ar2Zi: "AR2ZI";
24
+ };
25
+ type Direction = (typeof Direction)[keyof typeof Direction];
26
+ }
@@ -0,0 +1,10 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var ConversionRequest;
3
+ (function (ConversionRequest) {
4
+ /** ZI2AR: Arabizi → Arabic script. AR2ZI: the reverse. */
5
+ ConversionRequest.Direction = {
6
+ Zi2Ar: "ZI2AR",
7
+ Ar2Zi: "AR2ZI",
8
+ };
9
+ })(ConversionRequest || (ConversionRequest = {}));
10
+ //# sourceMappingURL=ConversionRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConversionRequest.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/script/client/requests/ConversionRequest.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAqBhE,MAAM,KAAW,iBAAiB,CAOjC;AAPD,WAAiB,iBAAiB;IAC9B,0DAA0D;IAC7C,2BAAS,GAAG;QACrB,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,OAAO;KACR,CAAC;AAEf,CAAC,EAPgB,iBAAiB,KAAjB,iBAAiB,QAOjC"}
@@ -0,0 +1 @@
1
+ export { ConversionRequest } from "./ConversionRequest.js";
@@ -0,0 +1,2 @@
1
+ export { ConversionRequest } from "./ConversionRequest.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/script/client/requests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { ScriptClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,4 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { ScriptClient } from "./client/Client.js";
3
+ export * from "./client/index.js";
4
+ //# sourceMappingURL=exports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../../src/api/resources/script/exports.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAEhE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/resources/script/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,43 @@
1
+ import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import * as core from "../../../../core/index.js";
4
+ import * as Tapra from "../../../index.js";
5
+ export declare namespace SpeechClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
10
+ }
11
+ }
12
+ /**
13
+ * Tunisian Derja code-switch text-to-speech with optional instant voice cloning.
14
+ */
15
+ export declare class SpeechClient {
16
+ protected readonly _options: NormalizedClientOptionsWithAuth<SpeechClient.Options>;
17
+ constructor(options?: SpeechClient.Options);
18
+ /**
19
+ * Generates a WAV clip from Derja, Arabizi, French, and English text. Send `ref_audio` to clone a voice; otherwise `instruct` designs one. `response_format=wav` returns raw audio.
20
+ *
21
+ * @param {Tapra.SpeechRequest} request
22
+ * @param {SpeechClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
23
+ *
24
+ * @throws {@link Tapra.BadRequestError}
25
+ * @throws {@link Tapra.UnauthorizedError}
26
+ * @throws {@link Tapra.PaymentRequiredError}
27
+ * @throws {@link Tapra.ForbiddenError}
28
+ * @throws {@link Tapra.ContentTooLargeError}
29
+ * @throws {@link Tapra.TooManyRequestsError}
30
+ * @throws {@link Tapra.InternalServerError}
31
+ * @throws {@link Tapra.ServiceUnavailableError}
32
+ * @throws {@link errors.TapraError}
33
+ * @throws {@link errors.TapraTimeoutError}
34
+ *
35
+ * @example
36
+ * import { createReadStream } from "fs";
37
+ * await client.speech.create({
38
+ * input: "input"
39
+ * })
40
+ */
41
+ create(request: Tapra.SpeechRequest, requestOptions?: SpeechClient.IdempotentRequestOptions): core.HttpResponsePromise<Tapra.Speech>;
42
+ private __create;
43
+ }
@@ -0,0 +1,145 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.js";
4
+ import * as core from "../../../../core/index.js";
5
+ import * as environments from "../../../../environments.js";
6
+ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js";
7
+ import * as errors from "../../../../errors/index.js";
8
+ import * as Tapra from "../../../index.js";
9
+ /**
10
+ * Tunisian Derja code-switch text-to-speech with optional instant voice cloning.
11
+ */
12
+ export class SpeechClient {
13
+ _options;
14
+ constructor(options = {}) {
15
+ this._options = normalizeClientOptionsWithAuth(options);
16
+ }
17
+ /**
18
+ * Generates a WAV clip from Derja, Arabizi, French, and English text. Send `ref_audio` to clone a voice; otherwise `instruct` designs one. `response_format=wav` returns raw audio.
19
+ *
20
+ * @param {Tapra.SpeechRequest} request
21
+ * @param {SpeechClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
22
+ *
23
+ * @throws {@link Tapra.BadRequestError}
24
+ * @throws {@link Tapra.UnauthorizedError}
25
+ * @throws {@link Tapra.PaymentRequiredError}
26
+ * @throws {@link Tapra.ForbiddenError}
27
+ * @throws {@link Tapra.ContentTooLargeError}
28
+ * @throws {@link Tapra.TooManyRequestsError}
29
+ * @throws {@link Tapra.InternalServerError}
30
+ * @throws {@link Tapra.ServiceUnavailableError}
31
+ * @throws {@link errors.TapraError}
32
+ * @throws {@link errors.TapraTimeoutError}
33
+ *
34
+ * @example
35
+ * import { createReadStream } from "fs";
36
+ * await client.speech.create({
37
+ * input: "input"
38
+ * })
39
+ */
40
+ create(request, requestOptions) {
41
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
42
+ }
43
+ async __create(request, requestOptions) {
44
+ const _body = await core.newFormData();
45
+ _body.append("input", request.input);
46
+ if (request.model != null) {
47
+ _body.append("model", request.model);
48
+ }
49
+ if (request.language != null) {
50
+ _body.append("language", request.language);
51
+ }
52
+ if (request.engine != null) {
53
+ _body.append("engine", request.engine);
54
+ }
55
+ if (request.convert_arabizi != null) {
56
+ _body.append("convert_arabizi", request.convert_arabizi?.toString());
57
+ }
58
+ if (request.pronunciation_style != null) {
59
+ _body.append("pronunciation_style", request.pronunciation_style);
60
+ }
61
+ if (request.pronunciation_mode != null) {
62
+ _body.append("pronunciation_mode", request.pronunciation_mode);
63
+ }
64
+ if (request.duration != null) {
65
+ _body.append("duration", request.duration?.toString());
66
+ }
67
+ if (request.num_step != null) {
68
+ _body.append("num_step", request.num_step?.toString());
69
+ }
70
+ if (request.class_temperature != null) {
71
+ _body.append("class_temperature", request.class_temperature?.toString());
72
+ }
73
+ if (request.speed != null) {
74
+ _body.append("speed", request.speed?.toString());
75
+ }
76
+ if (request.instruct != null) {
77
+ _body.append("instruct", request.instruct);
78
+ }
79
+ if (request.ref_audio != null) {
80
+ await _body.appendFile("ref_audio", request.ref_audio);
81
+ }
82
+ if (request.ref_text != null) {
83
+ _body.append("ref_text", request.ref_text);
84
+ }
85
+ if (request.clone_voice != null) {
86
+ _body.append("clone_voice", request.clone_voice?.toString());
87
+ }
88
+ if (request.response_format != null) {
89
+ _body.append("response_format", request.response_format);
90
+ }
91
+ const _maybeEncodedRequest = await _body.getRequest();
92
+ const _authRequest = await this._options.authProvider.getAuthRequest();
93
+ const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, mergeOnlyDefinedHeaders({
94
+ "Idempotency-Key": requestOptions?.idempotencyKey,
95
+ ..._maybeEncodedRequest.headers,
96
+ }), requestOptions?.headers);
97
+ const _response = await core.fetcher({
98
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
99
+ (await core.Supplier.get(this._options.environment)) ??
100
+ environments.TapraEnvironment.Default, "v1/audio/speech"),
101
+ method: "POST",
102
+ headers: _headers,
103
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
104
+ requestType: "file",
105
+ duplex: _maybeEncodedRequest.duplex,
106
+ body: _maybeEncodedRequest.body,
107
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
108
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
109
+ abortSignal: requestOptions?.abortSignal,
110
+ fetchFn: this._options?.fetch,
111
+ logging: this._options.logging,
112
+ });
113
+ if (_response.ok) {
114
+ return { data: _response.body, rawResponse: _response.rawResponse };
115
+ }
116
+ if (_response.error.reason === "status-code") {
117
+ switch (_response.error.statusCode) {
118
+ case 400:
119
+ throw new Tapra.BadRequestError(_response.error.body, _response.rawResponse);
120
+ case 401:
121
+ throw new Tapra.UnauthorizedError(_response.error.body, _response.rawResponse);
122
+ case 402:
123
+ throw new Tapra.PaymentRequiredError(_response.error.body, _response.rawResponse);
124
+ case 403:
125
+ throw new Tapra.ForbiddenError(_response.error.body, _response.rawResponse);
126
+ case 413:
127
+ throw new Tapra.ContentTooLargeError(_response.error.body, _response.rawResponse);
128
+ case 429:
129
+ throw new Tapra.TooManyRequestsError(_response.error.body, _response.rawResponse);
130
+ case 500:
131
+ throw new Tapra.InternalServerError(_response.error.body, _response.rawResponse);
132
+ case 503:
133
+ throw new Tapra.ServiceUnavailableError(_response.error.body, _response.rawResponse);
134
+ default:
135
+ throw new errors.TapraError({
136
+ statusCode: _response.error.statusCode,
137
+ body: _response.error.body,
138
+ rawResponse: _response.rawResponse,
139
+ });
140
+ }
141
+ }
142
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/audio/speech");
143
+ }
144
+ }
145
+ //# sourceMappingURL=Client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../../src/api/resources/speech/client/Client.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAGhE,OAAO,EAAwC,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AACjH,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACpF,OAAO,KAAK,IAAI,MAAM,2BAA2B,CAAC;AAClD,OAAO,KAAK,YAAY,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAU3C;;GAEG;AACH,MAAM,OAAO,YAAY;IACF,QAAQ,CAAwD;IAEnF,YAAY,UAAgC,EAAE;QAC1C,IAAI,CAAC,QAAQ,GAAG,8BAA8B,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACI,MAAM,CACT,OAA4B,EAC5B,cAAsD;QAEtD,OAAO,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;IACxF,CAAC;IAEO,KAAK,CAAC,QAAQ,CAClB,OAA4B,EAC5B,cAAsD;QAEtD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;QACvC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;QACrC,IAAI,OAAO,CAAC,KAAK,IAAI,IAAI,EAAE,CAAC;YACxB,KAAK,CAAC,MAAM,CA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wBACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,IAAI;wBAC1B,WAAW,EAAE,SAAS,CAAC,WAAW;qBACrC,CAAC,CAAC;YACX,CAAC;QACL,CAAC;QAED,OAAO,wBAAwB,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,kBAAkB,CAAC,CAAC;IACxG,CAAC;CACJ"}
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1,2 @@
1
+ export * from "./requests/index.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/resources/speech/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,56 @@
1
+ import type * as core from "../../../../../core/index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * input: "input"
6
+ * }
7
+ */
8
+ export interface SpeechRequest {
9
+ input: string;
10
+ model?: string;
11
+ /** `aeb` (Tunisian) uses Tapra; other codes use the multilingual engine. */
12
+ language?: string;
13
+ engine?: SpeechRequest.Engine;
14
+ /** Convert Arabizi input to Arabic script first. */
15
+ convert_arabizi?: boolean;
16
+ pronunciation_style?: SpeechRequest.PronunciationStyle;
17
+ pronunciation_mode?: SpeechRequest.PronunciationMode;
18
+ /** Target length in seconds. */
19
+ duration?: number | null;
20
+ num_step?: number;
21
+ class_temperature?: number;
22
+ speed?: number;
23
+ /** Voice-design instruction; ignored with ref_audio. */
24
+ instruct?: string;
25
+ /** Reference clip to clone. */
26
+ ref_audio?: core.file.Uploadable | undefined;
27
+ /** Transcript of ref_audio. */
28
+ ref_text?: string;
29
+ /** Instant voice clone, billed at 1.25× the Speech rate. */
30
+ clone_voice?: boolean;
31
+ response_format?: SpeechRequest.ResponseFormat;
32
+ }
33
+ export declare namespace SpeechRequest {
34
+ const Engine: {
35
+ readonly Auto: "auto";
36
+ readonly Tapra: "tapra";
37
+ readonly Omnivoice: "omnivoice";
38
+ };
39
+ type Engine = (typeof Engine)[keyof typeof Engine];
40
+ const PronunciationStyle: {
41
+ readonly French: "french";
42
+ readonly Tunisian: "tunisian";
43
+ };
44
+ type PronunciationStyle = (typeof PronunciationStyle)[keyof typeof PronunciationStyle];
45
+ const PronunciationMode: {
46
+ readonly Off: "off";
47
+ readonly Selective: "selective";
48
+ readonly Corpus: "corpus";
49
+ };
50
+ type PronunciationMode = (typeof PronunciationMode)[keyof typeof PronunciationMode];
51
+ const ResponseFormat: {
52
+ readonly Json: "json";
53
+ readonly Wav: "wav";
54
+ };
55
+ type ResponseFormat = (typeof ResponseFormat)[keyof typeof ResponseFormat];
56
+ }
@@ -0,0 +1,23 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var SpeechRequest;
3
+ (function (SpeechRequest) {
4
+ SpeechRequest.Engine = {
5
+ Auto: "auto",
6
+ Tapra: "tapra",
7
+ Omnivoice: "omnivoice",
8
+ };
9
+ SpeechRequest.PronunciationStyle = {
10
+ French: "french",
11
+ Tunisian: "tunisian",
12
+ };
13
+ SpeechRequest.PronunciationMode = {
14
+ Off: "off",
15
+ Selective: "selective",
16
+ Corpus: "corpus",
17
+ };
18
+ SpeechRequest.ResponseFormat = {
19
+ Json: "json",
20
+ Wav: "wav",
21
+ };
22
+ })(SpeechRequest || (SpeechRequest = {}));
23
+ //# sourceMappingURL=SpeechRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpeechRequest.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/speech/client/requests/SpeechRequest.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAoChE,MAAM,KAAW,aAAa,CAuB7B;AAvBD,WAAiB,aAAa;IACb,oBAAM,GAAG;QAClB,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,OAAO;QACd,SAAS,EAAE,WAAW;KAChB,CAAC;IAEE,gCAAkB,GAAG;QAC9B,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE,UAAU;KACd,CAAC;IAEE,+BAAiB,GAAG;QAC7B,GAAG,EAAE,KAAK;QACV,SAAS,EAAE,WAAW;QACtB,MAAM,EAAE,QAAQ;KACV,CAAC;IAEE,4BAAc,GAAG;QAC1B,IAAI,EAAE,MAAM;QACZ,GAAG,EAAE,KAAK;KACJ,CAAC;AAEf,CAAC,EAvBgB,aAAa,KAAb,aAAa,QAuB7B"}
@@ -0,0 +1 @@
1
+ export { SpeechRequest } from "./SpeechRequest.js";
@@ -0,0 +1,2 @@
1
+ export { SpeechRequest } from "./SpeechRequest.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/speech/client/requests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { SpeechClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,4 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { SpeechClient } from "./client/Client.js";
3
+ export * from "./client/index.js";
4
+ //# sourceMappingURL=exports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../../src/api/resources/speech/exports.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAEhE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/resources/speech/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}