@meetkai/mka1 0.55.18 → 0.55.21

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 (267) hide show
  1. package/README.md +411 -404
  2. package/bin/mcp-server.js +3500 -3080
  3. package/bin/mcp-server.js.map +26 -22
  4. package/dist/commonjs/funcs/authApiKeysDelete.d.ts +20 -0
  5. package/dist/commonjs/funcs/authApiKeysDelete.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/authApiKeysDelete.js +132 -0
  7. package/dist/commonjs/funcs/authApiKeysDelete.js.map +1 -0
  8. package/dist/commonjs/funcs/llmSpeechGetTranscriptionHistoryContent.d.ts +20 -1
  9. package/dist/commonjs/funcs/llmSpeechGetTranscriptionHistoryContent.d.ts.map +1 -1
  10. package/dist/commonjs/funcs/llmSpeechGetTranscriptionHistoryContent.js +22 -3
  11. package/dist/commonjs/funcs/llmSpeechGetTranscriptionHistoryContent.js.map +1 -1
  12. package/dist/commonjs/funcs/llmSpeechSpeak.d.ts +1 -0
  13. package/dist/commonjs/funcs/llmSpeechSpeak.d.ts.map +1 -1
  14. package/dist/commonjs/funcs/llmSpeechSpeak.js +1 -0
  15. package/dist/commonjs/funcs/llmSpeechSpeak.js.map +1 -1
  16. package/dist/commonjs/funcs/llmSpeechSpeakStreaming.d.ts +1 -0
  17. package/dist/commonjs/funcs/llmSpeechSpeakStreaming.d.ts.map +1 -1
  18. package/dist/commonjs/funcs/llmSpeechSpeakStreaming.js +1 -0
  19. package/dist/commonjs/funcs/llmSpeechSpeakStreaming.js.map +1 -1
  20. package/dist/commonjs/lib/config.d.ts +2 -2
  21. package/dist/commonjs/lib/config.js +2 -2
  22. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  23. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  24. package/dist/commonjs/mcp-server/server.js +3 -1
  25. package/dist/commonjs/mcp-server/server.js.map +1 -1
  26. package/dist/commonjs/mcp-server/tools/authApiKeysDelete.d.ts +8 -0
  27. package/dist/commonjs/mcp-server/tools/authApiKeysDelete.d.ts.map +1 -0
  28. package/dist/commonjs/mcp-server/tools/authApiKeysDelete.js +64 -0
  29. package/dist/commonjs/mcp-server/tools/authApiKeysDelete.js.map +1 -0
  30. package/dist/commonjs/mcp-server/tools/llmSpeechSpeak.d.ts.map +1 -1
  31. package/dist/commonjs/mcp-server/tools/llmSpeechSpeak.js +1 -0
  32. package/dist/commonjs/mcp-server/tools/llmSpeechSpeak.js.map +1 -1
  33. package/dist/commonjs/mcp-server/tools/llmSpeechSpeakStreaming.d.ts.map +1 -1
  34. package/dist/commonjs/mcp-server/tools/llmSpeechSpeakStreaming.js +1 -0
  35. package/dist/commonjs/mcp-server/tools/llmSpeechSpeakStreaming.js.map +1 -1
  36. package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts +1 -0
  37. package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts.map +1 -1
  38. package/dist/commonjs/models/components/addcatalogmodelrequest.js +1 -0
  39. package/dist/commonjs/models/components/addcatalogmodelrequest.js.map +1 -1
  40. package/dist/commonjs/models/components/texttospeechrequest.d.ts +5 -0
  41. package/dist/commonjs/models/components/texttospeechrequest.d.ts.map +1 -1
  42. package/dist/commonjs/models/components/texttospeechrequest.js +2 -0
  43. package/dist/commonjs/models/components/texttospeechrequest.js.map +1 -1
  44. package/dist/commonjs/models/components/texttospeechstreamingrequest.d.ts +5 -0
  45. package/dist/commonjs/models/components/texttospeechstreamingrequest.d.ts.map +1 -1
  46. package/dist/commonjs/models/components/texttospeechstreamingrequest.js +2 -0
  47. package/dist/commonjs/models/components/texttospeechstreamingrequest.js.map +1 -1
  48. package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts +1 -0
  49. package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
  50. package/dist/commonjs/models/components/updatecatalogmodelrequest.js +1 -0
  51. package/dist/commonjs/models/components/updatecatalogmodelrequest.js.map +1 -1
  52. package/dist/commonjs/models/errors/deletescopedapikey.d.ts +188 -0
  53. package/dist/commonjs/models/errors/deletescopedapikey.d.ts.map +1 -0
  54. package/dist/commonjs/models/errors/deletescopedapikey.js +270 -0
  55. package/dist/commonjs/models/errors/deletescopedapikey.js.map +1 -0
  56. package/dist/commonjs/models/errors/index.d.ts +1 -0
  57. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  58. package/dist/commonjs/models/errors/index.js +1 -0
  59. package/dist/commonjs/models/errors/index.js.map +1 -1
  60. package/dist/commonjs/models/operations/deletescopedapikey.d.ts +53 -0
  61. package/dist/commonjs/models/operations/deletescopedapikey.d.ts.map +1 -0
  62. package/dist/commonjs/models/operations/deletescopedapikey.js +107 -0
  63. package/dist/commonjs/models/operations/deletescopedapikey.js.map +1 -0
  64. package/dist/commonjs/models/operations/getmodel.d.ts +41 -0
  65. package/dist/commonjs/models/operations/getmodel.d.ts.map +1 -1
  66. package/dist/commonjs/models/operations/getmodel.js +52 -1
  67. package/dist/commonjs/models/operations/getmodel.js.map +1 -1
  68. package/dist/commonjs/models/operations/getspeechtotexthistorycontent.d.ts +9 -0
  69. package/dist/commonjs/models/operations/getspeechtotexthistorycontent.d.ts.map +1 -1
  70. package/dist/commonjs/models/operations/getspeechtotexthistorycontent.js +45 -1
  71. package/dist/commonjs/models/operations/getspeechtotexthistorycontent.js.map +1 -1
  72. package/dist/commonjs/models/operations/index.d.ts +1 -0
  73. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  74. package/dist/commonjs/models/operations/index.js +1 -0
  75. package/dist/commonjs/models/operations/index.js.map +1 -1
  76. package/dist/commonjs/models/operations/listmodels.d.ts +41 -0
  77. package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
  78. package/dist/commonjs/models/operations/listmodels.js +49 -1
  79. package/dist/commonjs/models/operations/listmodels.js.map +1 -1
  80. package/dist/commonjs/models/operations/updatescopedapikey.d.ts +8 -24
  81. package/dist/commonjs/models/operations/updatescopedapikey.d.ts.map +1 -1
  82. package/dist/commonjs/models/operations/updatescopedapikey.js +8 -24
  83. package/dist/commonjs/models/operations/updatescopedapikey.js.map +1 -1
  84. package/dist/commonjs/models/operations/updateserviceaccountapikey.d.ts +2 -0
  85. package/dist/commonjs/models/operations/updateserviceaccountapikey.d.ts.map +1 -1
  86. package/dist/commonjs/models/operations/updateserviceaccountapikey.js +2 -0
  87. package/dist/commonjs/models/operations/updateserviceaccountapikey.js.map +1 -1
  88. package/dist/commonjs/react-query/authApiKeysDelete.d.ts +29 -0
  89. package/dist/commonjs/react-query/authApiKeysDelete.d.ts.map +1 -0
  90. package/dist/commonjs/react-query/authApiKeysDelete.js +47 -0
  91. package/dist/commonjs/react-query/authApiKeysDelete.js.map +1 -0
  92. package/dist/commonjs/react-query/index.d.ts +1 -0
  93. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  94. package/dist/commonjs/react-query/index.js +1 -0
  95. package/dist/commonjs/react-query/index.js.map +1 -1
  96. package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.core.d.ts +8 -3
  97. package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.core.d.ts.map +1 -1
  98. package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.core.js.map +1 -1
  99. package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.d.ts +1 -0
  100. package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.d.ts.map +1 -1
  101. package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.js +3 -1
  102. package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.js.map +1 -1
  103. package/dist/commonjs/react-query/llmSpeechSpeak.d.ts +1 -0
  104. package/dist/commonjs/react-query/llmSpeechSpeak.d.ts.map +1 -1
  105. package/dist/commonjs/react-query/llmSpeechSpeak.js +1 -0
  106. package/dist/commonjs/react-query/llmSpeechSpeak.js.map +1 -1
  107. package/dist/commonjs/react-query/llmSpeechSpeakStreaming.d.ts +1 -0
  108. package/dist/commonjs/react-query/llmSpeechSpeakStreaming.d.ts.map +1 -1
  109. package/dist/commonjs/react-query/llmSpeechSpeakStreaming.js +1 -0
  110. package/dist/commonjs/react-query/llmSpeechSpeakStreaming.js.map +1 -1
  111. package/dist/commonjs/sdk/apikeys.d.ts +7 -0
  112. package/dist/commonjs/sdk/apikeys.d.ts.map +1 -1
  113. package/dist/commonjs/sdk/apikeys.js +10 -0
  114. package/dist/commonjs/sdk/apikeys.js.map +1 -1
  115. package/dist/commonjs/sdk/speech.d.ts +7 -1
  116. package/dist/commonjs/sdk/speech.d.ts.map +1 -1
  117. package/dist/commonjs/sdk/speech.js +5 -1
  118. package/dist/commonjs/sdk/speech.js.map +1 -1
  119. package/dist/esm/funcs/authApiKeysDelete.d.ts +20 -0
  120. package/dist/esm/funcs/authApiKeysDelete.d.ts.map +1 -0
  121. package/dist/esm/funcs/authApiKeysDelete.js +96 -0
  122. package/dist/esm/funcs/authApiKeysDelete.js.map +1 -0
  123. package/dist/esm/funcs/llmSpeechGetTranscriptionHistoryContent.d.ts +20 -1
  124. package/dist/esm/funcs/llmSpeechGetTranscriptionHistoryContent.d.ts.map +1 -1
  125. package/dist/esm/funcs/llmSpeechGetTranscriptionHistoryContent.js +21 -3
  126. package/dist/esm/funcs/llmSpeechGetTranscriptionHistoryContent.js.map +1 -1
  127. package/dist/esm/funcs/llmSpeechSpeak.d.ts +1 -0
  128. package/dist/esm/funcs/llmSpeechSpeak.d.ts.map +1 -1
  129. package/dist/esm/funcs/llmSpeechSpeak.js +1 -0
  130. package/dist/esm/funcs/llmSpeechSpeak.js.map +1 -1
  131. package/dist/esm/funcs/llmSpeechSpeakStreaming.d.ts +1 -0
  132. package/dist/esm/funcs/llmSpeechSpeakStreaming.d.ts.map +1 -1
  133. package/dist/esm/funcs/llmSpeechSpeakStreaming.js +1 -0
  134. package/dist/esm/funcs/llmSpeechSpeakStreaming.js.map +1 -1
  135. package/dist/esm/lib/config.d.ts +2 -2
  136. package/dist/esm/lib/config.js +2 -2
  137. package/dist/esm/mcp-server/mcp-server.js +1 -1
  138. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  139. package/dist/esm/mcp-server/server.js +3 -1
  140. package/dist/esm/mcp-server/server.js.map +1 -1
  141. package/dist/esm/mcp-server/tools/authApiKeysDelete.d.ts +8 -0
  142. package/dist/esm/mcp-server/tools/authApiKeysDelete.d.ts.map +1 -0
  143. package/dist/esm/mcp-server/tools/authApiKeysDelete.js +28 -0
  144. package/dist/esm/mcp-server/tools/authApiKeysDelete.js.map +1 -0
  145. package/dist/esm/mcp-server/tools/llmSpeechSpeak.d.ts.map +1 -1
  146. package/dist/esm/mcp-server/tools/llmSpeechSpeak.js +1 -0
  147. package/dist/esm/mcp-server/tools/llmSpeechSpeak.js.map +1 -1
  148. package/dist/esm/mcp-server/tools/llmSpeechSpeakStreaming.d.ts.map +1 -1
  149. package/dist/esm/mcp-server/tools/llmSpeechSpeakStreaming.js +1 -0
  150. package/dist/esm/mcp-server/tools/llmSpeechSpeakStreaming.js.map +1 -1
  151. package/dist/esm/models/components/addcatalogmodelrequest.d.ts +1 -0
  152. package/dist/esm/models/components/addcatalogmodelrequest.d.ts.map +1 -1
  153. package/dist/esm/models/components/addcatalogmodelrequest.js +1 -0
  154. package/dist/esm/models/components/addcatalogmodelrequest.js.map +1 -1
  155. package/dist/esm/models/components/texttospeechrequest.d.ts +5 -0
  156. package/dist/esm/models/components/texttospeechrequest.d.ts.map +1 -1
  157. package/dist/esm/models/components/texttospeechrequest.js +2 -0
  158. package/dist/esm/models/components/texttospeechrequest.js.map +1 -1
  159. package/dist/esm/models/components/texttospeechstreamingrequest.d.ts +5 -0
  160. package/dist/esm/models/components/texttospeechstreamingrequest.d.ts.map +1 -1
  161. package/dist/esm/models/components/texttospeechstreamingrequest.js +2 -0
  162. package/dist/esm/models/components/texttospeechstreamingrequest.js.map +1 -1
  163. package/dist/esm/models/components/updatecatalogmodelrequest.d.ts +1 -0
  164. package/dist/esm/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
  165. package/dist/esm/models/components/updatecatalogmodelrequest.js +1 -0
  166. package/dist/esm/models/components/updatecatalogmodelrequest.js.map +1 -1
  167. package/dist/esm/models/errors/deletescopedapikey.d.ts +188 -0
  168. package/dist/esm/models/errors/deletescopedapikey.d.ts.map +1 -0
  169. package/dist/esm/models/errors/deletescopedapikey.js +227 -0
  170. package/dist/esm/models/errors/deletescopedapikey.js.map +1 -0
  171. package/dist/esm/models/errors/index.d.ts +1 -0
  172. package/dist/esm/models/errors/index.d.ts.map +1 -1
  173. package/dist/esm/models/errors/index.js +1 -0
  174. package/dist/esm/models/errors/index.js.map +1 -1
  175. package/dist/esm/models/operations/deletescopedapikey.d.ts +53 -0
  176. package/dist/esm/models/operations/deletescopedapikey.d.ts.map +1 -0
  177. package/dist/esm/models/operations/deletescopedapikey.js +65 -0
  178. package/dist/esm/models/operations/deletescopedapikey.js.map +1 -0
  179. package/dist/esm/models/operations/getmodel.d.ts +41 -0
  180. package/dist/esm/models/operations/getmodel.d.ts.map +1 -1
  181. package/dist/esm/models/operations/getmodel.js +47 -0
  182. package/dist/esm/models/operations/getmodel.js.map +1 -1
  183. package/dist/esm/models/operations/getspeechtotexthistorycontent.d.ts +9 -0
  184. package/dist/esm/models/operations/getspeechtotexthistorycontent.d.ts.map +1 -1
  185. package/dist/esm/models/operations/getspeechtotexthistorycontent.js +42 -0
  186. package/dist/esm/models/operations/getspeechtotexthistorycontent.js.map +1 -1
  187. package/dist/esm/models/operations/index.d.ts +1 -0
  188. package/dist/esm/models/operations/index.d.ts.map +1 -1
  189. package/dist/esm/models/operations/index.js +1 -0
  190. package/dist/esm/models/operations/index.js.map +1 -1
  191. package/dist/esm/models/operations/listmodels.d.ts +41 -0
  192. package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
  193. package/dist/esm/models/operations/listmodels.js +44 -0
  194. package/dist/esm/models/operations/listmodels.js.map +1 -1
  195. package/dist/esm/models/operations/updatescopedapikey.d.ts +8 -24
  196. package/dist/esm/models/operations/updatescopedapikey.d.ts.map +1 -1
  197. package/dist/esm/models/operations/updatescopedapikey.js +8 -24
  198. package/dist/esm/models/operations/updatescopedapikey.js.map +1 -1
  199. package/dist/esm/models/operations/updateserviceaccountapikey.d.ts +2 -0
  200. package/dist/esm/models/operations/updateserviceaccountapikey.d.ts.map +1 -1
  201. package/dist/esm/models/operations/updateserviceaccountapikey.js +2 -0
  202. package/dist/esm/models/operations/updateserviceaccountapikey.js.map +1 -1
  203. package/dist/esm/react-query/authApiKeysDelete.d.ts +29 -0
  204. package/dist/esm/react-query/authApiKeysDelete.d.ts.map +1 -0
  205. package/dist/esm/react-query/authApiKeysDelete.js +42 -0
  206. package/dist/esm/react-query/authApiKeysDelete.js.map +1 -0
  207. package/dist/esm/react-query/index.d.ts +1 -0
  208. package/dist/esm/react-query/index.d.ts.map +1 -1
  209. package/dist/esm/react-query/index.js +1 -0
  210. package/dist/esm/react-query/index.js.map +1 -1
  211. package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.core.d.ts +8 -3
  212. package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.core.d.ts.map +1 -1
  213. package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.core.js +1 -1
  214. package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.core.js.map +1 -1
  215. package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.d.ts +1 -0
  216. package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.d.ts.map +1 -1
  217. package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.js +1 -0
  218. package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.js.map +1 -1
  219. package/dist/esm/react-query/llmSpeechSpeak.d.ts +1 -0
  220. package/dist/esm/react-query/llmSpeechSpeak.d.ts.map +1 -1
  221. package/dist/esm/react-query/llmSpeechSpeak.js +1 -0
  222. package/dist/esm/react-query/llmSpeechSpeak.js.map +1 -1
  223. package/dist/esm/react-query/llmSpeechSpeakStreaming.d.ts +1 -0
  224. package/dist/esm/react-query/llmSpeechSpeakStreaming.d.ts.map +1 -1
  225. package/dist/esm/react-query/llmSpeechSpeakStreaming.js +1 -0
  226. package/dist/esm/react-query/llmSpeechSpeakStreaming.js.map +1 -1
  227. package/dist/esm/sdk/apikeys.d.ts +7 -0
  228. package/dist/esm/sdk/apikeys.d.ts.map +1 -1
  229. package/dist/esm/sdk/apikeys.js +10 -0
  230. package/dist/esm/sdk/apikeys.js.map +1 -1
  231. package/dist/esm/sdk/speech.d.ts +7 -1
  232. package/dist/esm/sdk/speech.d.ts.map +1 -1
  233. package/dist/esm/sdk/speech.js +4 -1
  234. package/dist/esm/sdk/speech.js.map +1 -1
  235. package/jsr.json +1 -1
  236. package/package.json +1 -1
  237. package/src/funcs/authApiKeysDelete.ts +230 -0
  238. package/src/funcs/llmSpeechGetTranscriptionHistoryContent.ts +103 -8
  239. package/src/funcs/llmSpeechSpeak.ts +1 -0
  240. package/src/funcs/llmSpeechSpeakStreaming.ts +1 -0
  241. package/src/lib/config.ts +2 -2
  242. package/src/mcp-server/mcp-server.ts +1 -1
  243. package/src/mcp-server/server.ts +3 -1
  244. package/src/mcp-server/tools/authApiKeysDelete.ts +37 -0
  245. package/src/mcp-server/tools/llmSpeechSpeak.ts +1 -0
  246. package/src/mcp-server/tools/llmSpeechSpeakStreaming.ts +1 -0
  247. package/src/models/components/addcatalogmodelrequest.ts +1 -0
  248. package/src/models/components/texttospeechrequest.ts +7 -0
  249. package/src/models/components/texttospeechstreamingrequest.ts +7 -0
  250. package/src/models/components/updatecatalogmodelrequest.ts +1 -0
  251. package/src/models/errors/deletescopedapikey.ts +461 -0
  252. package/src/models/errors/index.ts +1 -0
  253. package/src/models/operations/deletescopedapikey.ts +168 -0
  254. package/src/models/operations/getmodel.ts +96 -0
  255. package/src/models/operations/getspeechtotexthistorycontent.ts +100 -0
  256. package/src/models/operations/index.ts +1 -0
  257. package/src/models/operations/listmodels.ts +105 -0
  258. package/src/models/operations/updatescopedapikey.ts +18 -48
  259. package/src/models/operations/updateserviceaccountapikey.ts +6 -0
  260. package/src/react-query/authApiKeysDelete.ts +117 -0
  261. package/src/react-query/index.ts +1 -0
  262. package/src/react-query/llmSpeechGetTranscriptionHistoryContent.core.ts +12 -6
  263. package/src/react-query/llmSpeechGetTranscriptionHistoryContent.ts +2 -0
  264. package/src/react-query/llmSpeechSpeak.ts +1 -0
  265. package/src/react-query/llmSpeechSpeakStreaming.ts +1 -0
  266. package/src/sdk/apikeys.ts +18 -0
  267. package/src/sdk/speech.ts +12 -3
@@ -0,0 +1,230 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SDKCore } from "../core.js";
6
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
23
+ import { SDKError } from "../models/errors/sdkerror.js";
24
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { APICall, APIPromise } from "../types/async.js";
27
+ import { Result } from "../types/fp.js";
28
+
29
+ /**
30
+ * Delete a scoped API key
31
+ *
32
+ * @remarks
33
+ * Delete one of the caller's own keys. A key caller needs `write:apikeys` and may delete only keys in its own organization whose scopes it holds, including itself. Takes effect immediately.
34
+ *
35
+ * If set, this operation will use {@link Security.bearerAuth} from the global security.
36
+ */
37
+ export function authApiKeysDelete(
38
+ client: SDKCore,
39
+ request: operations.DeleteScopedApiKeyRequest,
40
+ options?: RequestOptions,
41
+ ): APIPromise<
42
+ Result<
43
+ operations.DeleteScopedApiKeyResponseBody,
44
+ | errors.DeleteScopedApiKeyResponseBody
45
+ | errors.DeleteScopedApiKeyAuthApiKeysResponseBody
46
+ | errors.DeleteScopedApiKeyAuthApiKeysResponseResponseBody
47
+ | errors.DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody
48
+ | errors.DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody
49
+ | errors.DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody
50
+ | errors.DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody
51
+ | SDKError
52
+ | ResponseValidationError
53
+ | ConnectionError
54
+ | RequestAbortedError
55
+ | RequestTimeoutError
56
+ | InvalidRequestError
57
+ | UnexpectedClientError
58
+ | SDKValidationError
59
+ >
60
+ > {
61
+ return new APIPromise($do(
62
+ client,
63
+ request,
64
+ options,
65
+ ));
66
+ }
67
+
68
+ async function $do(
69
+ client: SDKCore,
70
+ request: operations.DeleteScopedApiKeyRequest,
71
+ options?: RequestOptions,
72
+ ): Promise<
73
+ [
74
+ Result<
75
+ operations.DeleteScopedApiKeyResponseBody,
76
+ | errors.DeleteScopedApiKeyResponseBody
77
+ | errors.DeleteScopedApiKeyAuthApiKeysResponseBody
78
+ | errors.DeleteScopedApiKeyAuthApiKeysResponseResponseBody
79
+ | errors.DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody
80
+ | errors.DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody
81
+ | errors.DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody
82
+ | errors.DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody
83
+ | SDKError
84
+ | ResponseValidationError
85
+ | ConnectionError
86
+ | RequestAbortedError
87
+ | RequestTimeoutError
88
+ | InvalidRequestError
89
+ | UnexpectedClientError
90
+ | SDKValidationError
91
+ >,
92
+ APICall,
93
+ ]
94
+ > {
95
+ const parsed = safeParse(
96
+ request,
97
+ (value) => operations.DeleteScopedApiKeyRequest$outboundSchema.parse(value),
98
+ "Input validation failed",
99
+ );
100
+ if (!parsed.ok) {
101
+ return [parsed, { status: "invalid" }];
102
+ }
103
+ const payload = parsed.value;
104
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
105
+
106
+ const path = pathToFunc("/api/v1/authentication/api-key/scoped/delete")();
107
+
108
+ const headers = new Headers(compactMap({
109
+ "Content-Type": "application/json",
110
+ Accept: "application/json",
111
+ "X-On-Behalf-Of": encodeSimple(
112
+ "X-On-Behalf-Of",
113
+ payload["X-On-Behalf-Of"],
114
+ { explode: false, charEncoding: "none" },
115
+ ),
116
+ }));
117
+
118
+ const secConfig = await extractSecurity(client._options.bearerAuth);
119
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
120
+ const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
121
+
122
+ const context = {
123
+ options: client._options,
124
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
125
+ operationID: "deleteScopedApiKey",
126
+ oAuth2Scopes: null,
127
+
128
+ resolvedSecurity: requestSecurity,
129
+
130
+ securitySource: client._options.bearerAuth,
131
+ retryConfig: options?.retries
132
+ || client._options.retryConfig
133
+ || {
134
+ strategy: "backoff",
135
+ backoff: {
136
+ initialInterval: 500,
137
+ maxInterval: 5000,
138
+ exponent: 1.5,
139
+ maxElapsedTime: 15000,
140
+ },
141
+ retryConnectionErrors: true,
142
+ }
143
+ || { strategy: "none" },
144
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
145
+ };
146
+
147
+ const requestRes = client._createRequest(context, {
148
+ security: requestSecurity,
149
+ method: "POST",
150
+ baseURL: options?.serverURL,
151
+ path: path,
152
+ headers: headers,
153
+ body: body,
154
+ userAgent: client._options.userAgent,
155
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
156
+ }, options);
157
+ if (!requestRes.ok) {
158
+ return [requestRes, { status: "invalid" }];
159
+ }
160
+ const req = requestRes.value;
161
+
162
+ const doResult = await client._do(req, {
163
+ context,
164
+ isErrorStatusCode: (statusCode: number) =>
165
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
166
+ retryConfig: context.retryConfig,
167
+ retryCodes: context.retryCodes,
168
+ });
169
+ if (!doResult.ok) {
170
+ return [doResult, { status: "request-error", request: req }];
171
+ }
172
+ const response = doResult.value;
173
+
174
+ const responseFields = {
175
+ HttpMeta: { Response: response, Request: req },
176
+ };
177
+
178
+ const [result] = await M.match<
179
+ operations.DeleteScopedApiKeyResponseBody,
180
+ | errors.DeleteScopedApiKeyResponseBody
181
+ | errors.DeleteScopedApiKeyAuthApiKeysResponseBody
182
+ | errors.DeleteScopedApiKeyAuthApiKeysResponseResponseBody
183
+ | errors.DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody
184
+ | errors.DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody
185
+ | errors.DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody
186
+ | errors.DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody
187
+ | SDKError
188
+ | ResponseValidationError
189
+ | ConnectionError
190
+ | RequestAbortedError
191
+ | RequestTimeoutError
192
+ | InvalidRequestError
193
+ | UnexpectedClientError
194
+ | SDKValidationError
195
+ >(
196
+ M.json(200, operations.DeleteScopedApiKeyResponseBody$inboundSchema),
197
+ M.jsonErr(400, errors.DeleteScopedApiKeyResponseBody$inboundSchema),
198
+ M.jsonErr(
199
+ 401,
200
+ errors.DeleteScopedApiKeyAuthApiKeysResponseBody$inboundSchema,
201
+ ),
202
+ M.jsonErr(
203
+ 403,
204
+ errors.DeleteScopedApiKeyAuthApiKeysResponseResponseBody$inboundSchema,
205
+ ),
206
+ M.jsonErr(
207
+ 404,
208
+ errors.DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody$inboundSchema,
209
+ ),
210
+ M.jsonErr(
211
+ 409,
212
+ errors.DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody$inboundSchema,
213
+ ),
214
+ M.jsonErr(
215
+ 410,
216
+ errors.DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody$inboundSchema,
217
+ ),
218
+ M.jsonErr(
219
+ 429,
220
+ errors.DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody$inboundSchema,
221
+ ),
222
+ M.fail("4XX"),
223
+ M.fail("5XX"),
224
+ )(response, req, { extraFields: responseFields });
225
+ if (!result.ok) {
226
+ return [result, { status: "complete", request: req, response }];
227
+ }
228
+
229
+ return [result, { status: "complete", request: req, response }];
230
+ }
@@ -2,7 +2,6 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod/v3";
6
5
  import { SDKCore } from "../core.js";
7
6
  import { encodeSimple } from "../lib/encodings.js";
8
7
  import { matchStatusCode } from "../lib/http.js";
@@ -26,6 +25,24 @@ import * as operations from "../models/operations/index.js";
26
25
  import { APICall, APIPromise } from "../types/async.js";
27
26
  import { Result } from "../types/fp.js";
28
27
 
28
+ export enum GetTranscriptionHistoryContentAcceptEnum {
29
+ applicationOctetStream = "application/octet-stream",
30
+ audioFlac = "audio/flac",
31
+ audioMp3 = "audio/mp3",
32
+ audioMp4 = "audio/mp4",
33
+ audioMpeg = "audio/mpeg",
34
+ audioMpga = "audio/mpga",
35
+ audioOgg = "audio/ogg",
36
+ audioWav = "audio/wav",
37
+ audioWebm = "audio/webm",
38
+ audioXFlac = "audio/x-flac",
39
+ audioXM4a = "audio/x-m4a",
40
+ audioXWav = "audio/x-wav",
41
+ videoMp4 = "video/mp4",
42
+ videoMpeg = "video/mpeg",
43
+ videoWebm = "video/webm",
44
+ }
45
+
29
46
  /**
30
47
  * Retrieve speech-to-text audio
31
48
  *
@@ -37,10 +54,12 @@ import { Result } from "../types/fp.js";
37
54
  export function llmSpeechGetTranscriptionHistoryContent(
38
55
  client: SDKCore,
39
56
  request: operations.GetSpeechToTextHistoryContentRequest,
40
- options?: RequestOptions,
57
+ options?: RequestOptions & {
58
+ acceptHeaderOverride?: GetTranscriptionHistoryContentAcceptEnum;
59
+ },
41
60
  ): APIPromise<
42
61
  Result<
43
- ReadableStream<Uint8Array>,
62
+ operations.GetSpeechToTextHistoryContentResponse,
44
63
  | SDKError
45
64
  | ResponseValidationError
46
65
  | ConnectionError
@@ -61,11 +80,13 @@ export function llmSpeechGetTranscriptionHistoryContent(
61
80
  async function $do(
62
81
  client: SDKCore,
63
82
  request: operations.GetSpeechToTextHistoryContentRequest,
64
- options?: RequestOptions,
83
+ options?: RequestOptions & {
84
+ acceptHeaderOverride?: GetTranscriptionHistoryContentAcceptEnum;
85
+ },
65
86
  ): Promise<
66
87
  [
67
88
  Result<
68
- ReadableStream<Uint8Array>,
89
+ operations.GetSpeechToTextHistoryContentResponse,
69
90
  | SDKError
70
91
  | ResponseValidationError
71
92
  | ConnectionError
@@ -103,7 +124,8 @@ async function $do(
103
124
  )(pathParams);
104
125
 
105
126
  const headers = new Headers(compactMap({
106
- Accept: "application/octet-stream",
127
+ Accept: options?.acceptHeaderOverride
128
+ || "application/octet-stream;q=1, audio/flac;q=0.93, audio/mp3;q=0.87, audio/mp4;q=0.80, audio/mpeg;q=0.73, audio/mpga;q=0.67, audio/ogg;q=0.60, audio/wav;q=0.53, audio/webm;q=0.47, audio/x-flac;q=0.40, audio/x-m4a;q=0.33, audio/x-wav;q=0.27, video/mp4;q=0.20, video/mpeg;q=0.13, video/webm;q=0",
107
129
  "X-On-Behalf-Of": encodeSimple(
108
130
  "X-On-Behalf-Of",
109
131
  payload["X-On-Behalf-Of"],
@@ -168,7 +190,7 @@ async function $do(
168
190
  const response = doResult.value;
169
191
 
170
192
  const [result] = await M.match<
171
- ReadableStream<Uint8Array>,
193
+ operations.GetSpeechToTextHistoryContentResponse,
172
194
  | SDKError
173
195
  | ResponseValidationError
174
196
  | ConnectionError
@@ -178,7 +200,80 @@ async function $do(
178
200
  | UnexpectedClientError
179
201
  | SDKValidationError
180
202
  >(
181
- M.stream(200, z.instanceof(ReadableStream<Uint8Array>)),
203
+ M.stream(
204
+ 200,
205
+ operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
206
+ { ctype: "audio/flac" },
207
+ ),
208
+ M.stream(
209
+ 200,
210
+ operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
211
+ { ctype: "audio/x-flac" },
212
+ ),
213
+ M.stream(
214
+ 200,
215
+ operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
216
+ { ctype: "audio/mpeg" },
217
+ ),
218
+ M.stream(
219
+ 200,
220
+ operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
221
+ { ctype: "audio/mp3" },
222
+ ),
223
+ M.stream(
224
+ 200,
225
+ operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
226
+ { ctype: "audio/mp4" },
227
+ ),
228
+ M.stream(
229
+ 200,
230
+ operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
231
+ { ctype: "audio/wav" },
232
+ ),
233
+ M.stream(
234
+ 200,
235
+ operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
236
+ { ctype: "audio/x-wav" },
237
+ ),
238
+ M.stream(
239
+ 200,
240
+ operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
241
+ { ctype: "audio/webm" },
242
+ ),
243
+ M.stream(
244
+ 200,
245
+ operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
246
+ { ctype: "audio/ogg" },
247
+ ),
248
+ M.stream(
249
+ 200,
250
+ operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
251
+ { ctype: "video/mp4" },
252
+ ),
253
+ M.stream(
254
+ 200,
255
+ operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
256
+ { ctype: "video/mpeg" },
257
+ ),
258
+ M.stream(
259
+ 200,
260
+ operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
261
+ { ctype: "video/webm" },
262
+ ),
263
+ M.stream(
264
+ 200,
265
+ operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
266
+ { ctype: "audio/x-m4a" },
267
+ ),
268
+ M.stream(
269
+ 200,
270
+ operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
271
+ { ctype: "audio/mpga" },
272
+ ),
273
+ M.stream(
274
+ 200,
275
+ operations.GetSpeechToTextHistoryContentResponse$inboundSchema,
276
+ ),
182
277
  M.fail("4XX"),
183
278
  M.fail("5XX"),
184
279
  )(response, req);
@@ -34,6 +34,7 @@ import { Result } from "../types/fp.js";
34
34
  * **Request Body:**
35
35
  * - `text`: Input text to convert to speech - required
36
36
  * - `language`: Language code (default: "auto") - "auto" for automatic detection, or one of the supported ISO 639-1 codes: en, zh, hi, es, ar, bn, pt, ru, ja, pa, de, ko, fr, tr, it, th, pl, nl, id, vi, ur, uk
37
+ * - `voice`: Optional public voice ID from model discovery; otherwise the resolved language selects its configured default. The example assumes an operator-configured `meetkai:speech` model exposing `sophia`; use IDs advertised by your deployment
37
38
  * - `model`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider
38
39
  *
39
40
  * **Response:** Returns audio file in WAV format with X-Language-Code header. When `store` is `true`, the generation is persisted before the response returns and the new history record id is included in the X-Tts-Id header.
@@ -46,6 +46,7 @@ export enum SpeakStreamingAcceptEnum {
46
46
  * - `text`: Input text to convert to speech - required
47
47
  * - `language`: Language code (default: "auto") - "auto" for automatic detection, or one of the supported ISO 639-1 codes: en, zh, hi, es, ar, bn, pt, ru, ja, pa, de, ko, fr, tr, it, th, pl, nl, id, vi, ur, uk
48
48
  * - `format`: Audio format (default: "mp3") - "mp3" for compressed MPEG audio (96 kbps) or "pcm" for uncompressed WAV
49
+ * - `voice`: Optional public voice ID from model discovery; otherwise the resolved language selects its configured default. The example assumes an operator-configured `meetkai:speech` model exposing `sophia`; use IDs advertised by your deployment
49
50
  * - `model`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider (note: not all providers support `format: "mp3"`)
50
51
  *
51
52
  * **Response:**
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "1.1.0",
68
- sdkVersion: "0.55.18",
68
+ sdkVersion: "0.55.21",
69
69
  genVersion: "2.950.2",
70
- userAgent: "speakeasy-sdk/typescript 0.55.18 2.950.2 1.1.0 @meetkai/mka1",
70
+ userAgent: "speakeasy-sdk/typescript 0.55.21 2.950.2 1.1.0 @meetkai/mka1",
71
71
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.55.18",
22
+ currentVersion: "0.55.21",
23
23
  },
24
24
  });
25
25
 
@@ -60,6 +60,7 @@ import { tool$analyticsQuery } from "./tools/analyticsQuery.js";
60
60
  import { tool$analyticsVisitorsSearch } from "./tools/analyticsVisitorsSearch.js";
61
61
  import { tool$authApiKeyGetJwtFromKey } from "./tools/authApiKeyGetJwtFromKey.js";
62
62
  import { tool$authApiKeysCreate } from "./tools/authApiKeysCreate.js";
63
+ import { tool$authApiKeysDelete } from "./tools/authApiKeysDelete.js";
63
64
  import { tool$authApiKeysExchangeToken } from "./tools/authApiKeysExchangeToken.js";
64
65
  import { tool$authApiKeysList } from "./tools/authApiKeysList.js";
65
66
  import { tool$authApiKeysRegenerate } from "./tools/authApiKeysRegenerate.js";
@@ -513,7 +514,7 @@ export function createMCPServer(deps: {
513
514
  }) {
514
515
  const server = new McpServer({
515
516
  name: "SDK",
516
- version: "0.55.18",
517
+ version: "0.55.21",
517
518
  });
518
519
 
519
520
  const client = new SDKCore({
@@ -935,6 +936,7 @@ export function createMCPServer(deps: {
935
936
  tool(tool$authApiKeysList);
936
937
  tool(tool$authApiKeysUpdate);
937
938
  tool(tool$authApiKeysRegenerate);
939
+ tool(tool$authApiKeysDelete);
938
940
  tool(tool$authApiKeysExchangeToken);
939
941
  tool(tool$authServiceAccountsCreate);
940
942
  tool(tool$authServiceAccountsList);
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { authApiKeysDelete } from "../../funcs/authApiKeysDelete.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.DeleteScopedApiKeyRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$authApiKeysDelete: ToolDefinition<typeof args> = {
14
+ name: "auth-api-keys-delete",
15
+ description: `Delete a scoped API key
16
+
17
+ Delete one of the caller's own keys. A key caller needs \`write:apikeys\` and may delete only keys in its own organization whose scopes it holds, including itself. Takes effect immediately.`,
18
+ args,
19
+ tool: async (client, args, ctx) => {
20
+ const [result, apiCall] = await authApiKeysDelete(
21
+ client,
22
+ args.request,
23
+ { fetchOptions: { signal: ctx.mcpReq.signal } },
24
+ ).$inspect();
25
+
26
+ if (!result.ok) {
27
+ return {
28
+ content: [{ type: "text", text: result.error.message }],
29
+ isError: true,
30
+ };
31
+ }
32
+
33
+ const value = result.value;
34
+
35
+ return formatResult(value, apiCall);
36
+ },
37
+ };
@@ -19,6 +19,7 @@ Convert text to speech with automatic language detection.
19
19
  **Request Body:**
20
20
  - \`text\`: Input text to convert to speech - required
21
21
  - \`language\`: Language code (default: "auto") - "auto" for automatic detection, or one of the supported ISO 639-1 codes: en, zh, hi, es, ar, bn, pt, ru, ja, pa, de, ko, fr, tr, it, th, pl, nl, id, vi, ur, uk
22
+ - \`voice\`: Optional public voice ID from model discovery; otherwise the resolved language selects its configured default. The example assumes an operator-configured \`meetkai:speech\` model exposing \`sophia\`; use IDs advertised by your deployment
22
23
  - \`model\`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider
23
24
 
24
25
  **Response:** Returns audio file in WAV format with X-Language-Code header. When \`store\` is \`true\`, the generation is persisted before the response returns and the new history record id is included in the X-Tts-Id header.`,
@@ -26,6 +26,7 @@ Convert text to speech with real-time streaming audio delivery.
26
26
  - \`text\`: Input text to convert to speech - required
27
27
  - \`language\`: Language code (default: "auto") - "auto" for automatic detection, or one of the supported ISO 639-1 codes: en, zh, hi, es, ar, bn, pt, ru, ja, pa, de, ko, fr, tr, it, th, pl, nl, id, vi, ur, uk
28
28
  - \`format\`: Audio format (default: "mp3") - "mp3" for compressed MPEG audio (96 kbps) or "pcm" for uncompressed WAV
29
+ - \`voice\`: Optional public voice ID from model discovery; otherwise the resolved language selects its configured default. The example assumes an operator-configured \`meetkai:speech\` model exposing \`sophia\`; use IDs advertised by your deployment
29
30
  - \`model\`: TTS model identifier (default: "auto") - "auto" selects the default provider; a registry-resolvable id dispatches to the matching provider (note: not all providers support \`format: "mp3"\`)
30
31
 
31
32
  **Response:**
@@ -25,6 +25,7 @@ export const ApiProviderType = {
25
25
  Meetkai: "meetkai",
26
26
  MeetkaiGateway: "meetkaiGateway",
27
27
  Openai: "openai",
28
+ Openrouter: "openrouter",
28
29
  } as const;
29
30
  export type ApiProviderType = ClosedEnum<typeof ApiProviderType>;
30
31
 
@@ -49,6 +49,10 @@ export type TextToSpeechRequest = {
49
49
  * Input text to convert to speech
50
50
  */
51
51
  text: string;
52
+ /**
53
+ * Public voice ID from model discovery. Overrides the model's language default. With language=auto, the selected voice determines the language; an explicit conflicting language is rejected.
54
+ */
55
+ voice?: string | undefined;
52
56
  /**
53
57
  * Language code: 'auto' for automatic detection, or ISO 639-1 language codes. With 'auto', text confidently detected as a language without a voice is rejected with a 400 naming it.
54
58
  */
@@ -77,6 +81,7 @@ export const TextToSpeechRequest$inboundSchema: z.ZodType<
77
81
  unknown
78
82
  > = z.object({
79
83
  text: z.string(),
84
+ voice: z.string().optional(),
80
85
  language: Language$inboundSchema.default("auto"),
81
86
  model: z.string().default("auto"),
82
87
  store: z.boolean().default(false),
@@ -84,6 +89,7 @@ export const TextToSpeechRequest$inboundSchema: z.ZodType<
84
89
  /** @internal */
85
90
  export type TextToSpeechRequest$Outbound = {
86
91
  text: string;
92
+ voice?: string | undefined;
87
93
  language: string;
88
94
  model: string;
89
95
  store: boolean;
@@ -96,6 +102,7 @@ export const TextToSpeechRequest$outboundSchema: z.ZodType<
96
102
  TextToSpeechRequest
97
103
  > = z.object({
98
104
  text: z.string(),
105
+ voice: z.string().optional(),
99
106
  language: Language$outboundSchema.default("auto"),
100
107
  model: z.string().default("auto"),
101
108
  store: z.boolean().default(false),
@@ -63,6 +63,10 @@ export type TextToSpeechStreamingRequest = {
63
63
  * Input text to convert to speech
64
64
  */
65
65
  text: string;
66
+ /**
67
+ * Public voice ID from model discovery. Overrides the model's language default. With language=auto, the selected voice determines the language; an explicit conflicting language is rejected.
68
+ */
69
+ voice?: string | undefined;
66
70
  /**
67
71
  * Language code: 'auto' for automatic detection, or ISO 639-1 language codes. With 'auto', text confidently detected as a language without a voice is rejected with a 400 naming it.
68
72
  */
@@ -105,6 +109,7 @@ export const TextToSpeechStreamingRequest$inboundSchema: z.ZodType<
105
109
  unknown
106
110
  > = z.object({
107
111
  text: z.string(),
112
+ voice: z.string().optional(),
108
113
  language: TextToSpeechStreamingRequestLanguage$inboundSchema.default("auto"),
109
114
  model: z.string().default("auto"),
110
115
  store: z.boolean().default(false),
@@ -113,6 +118,7 @@ export const TextToSpeechStreamingRequest$inboundSchema: z.ZodType<
113
118
  /** @internal */
114
119
  export type TextToSpeechStreamingRequest$Outbound = {
115
120
  text: string;
121
+ voice?: string | undefined;
116
122
  language: string;
117
123
  model: string;
118
124
  store: boolean;
@@ -126,6 +132,7 @@ export const TextToSpeechStreamingRequest$outboundSchema: z.ZodType<
126
132
  TextToSpeechStreamingRequest
127
133
  > = z.object({
128
134
  text: z.string(),
135
+ voice: z.string().optional(),
129
136
  language: TextToSpeechStreamingRequestLanguage$outboundSchema.default("auto"),
130
137
  model: z.string().default("auto"),
131
138
  store: z.boolean().default(false),
@@ -25,6 +25,7 @@ export const UpdateCatalogModelRequestApiProviderType = {
25
25
  Meetkai: "meetkai",
26
26
  MeetkaiGateway: "meetkaiGateway",
27
27
  Openai: "openai",
28
+ Openrouter: "openrouter",
28
29
  } as const;
29
30
  export type UpdateCatalogModelRequestApiProviderType = ClosedEnum<
30
31
  typeof UpdateCatalogModelRequestApiProviderType