telnyx 7.28.0 → 7.30.0-beta.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 (557) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +27 -0
  3. package/client.d.mts +37 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +37 -6
  6. package/client.d.ts.map +1 -1
  7. package/client.js +31 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +31 -0
  10. package/client.mjs.map +1 -1
  11. package/lib/login-token.d.mts +87 -0
  12. package/lib/login-token.d.mts.map +1 -0
  13. package/lib/login-token.d.ts +87 -0
  14. package/lib/login-token.d.ts.map +1 -0
  15. package/lib/login-token.js +190 -0
  16. package/lib/login-token.js.map +1 -0
  17. package/lib/login-token.mjs +151 -0
  18. package/lib/login-token.mjs.map +1 -0
  19. package/package.json +1 -1
  20. package/resources/addresses/actions.d.mts +19 -4
  21. package/resources/addresses/actions.d.mts.map +1 -1
  22. package/resources/addresses/actions.d.ts +19 -4
  23. package/resources/addresses/actions.d.ts.map +1 -1
  24. package/resources/ai/ai.d.mts +4 -0
  25. package/resources/ai/ai.d.mts.map +1 -1
  26. package/resources/ai/ai.d.ts +4 -0
  27. package/resources/ai/ai.d.ts.map +1 -1
  28. package/resources/ai/ai.js +4 -0
  29. package/resources/ai/ai.js.map +1 -1
  30. package/resources/ai/ai.mjs +4 -0
  31. package/resources/ai/ai.mjs.map +1 -1
  32. package/resources/ai/assistants/assistants.d.mts +31 -27
  33. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  34. package/resources/ai/assistants/assistants.d.ts +31 -27
  35. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  36. package/resources/ai/assistants/assistants.js.map +1 -1
  37. package/resources/ai/assistants/assistants.mjs.map +1 -1
  38. package/resources/ai/avatars.d.mts +9 -9
  39. package/resources/ai/avatars.d.ts +9 -9
  40. package/resources/ai/avatars.js +9 -9
  41. package/resources/ai/avatars.mjs +9 -9
  42. package/resources/ai/index.d.mts +1 -0
  43. package/resources/ai/index.d.mts.map +1 -1
  44. package/resources/ai/index.d.ts +1 -0
  45. package/resources/ai/index.d.ts.map +1 -1
  46. package/resources/ai/index.js +5 -3
  47. package/resources/ai/index.js.map +1 -1
  48. package/resources/ai/index.mjs +1 -0
  49. package/resources/ai/index.mjs.map +1 -1
  50. package/resources/ai/tests/index.d.mts +4 -0
  51. package/resources/ai/tests/index.d.mts.map +1 -0
  52. package/resources/ai/tests/index.d.ts +4 -0
  53. package/resources/ai/tests/index.d.ts.map +1 -0
  54. package/resources/ai/tests/index.js +11 -0
  55. package/resources/ai/tests/index.js.map +1 -0
  56. package/resources/ai/tests/index.mjs +5 -0
  57. package/resources/ai/tests/index.mjs.map +1 -0
  58. package/resources/ai/tests/schedules/index.d.mts +3 -0
  59. package/resources/ai/tests/schedules/index.d.mts.map +1 -0
  60. package/resources/ai/tests/schedules/index.d.ts +3 -0
  61. package/resources/ai/tests/schedules/index.d.ts.map +1 -0
  62. package/resources/ai/tests/schedules/index.js +9 -0
  63. package/resources/ai/tests/schedules/index.js.map +1 -0
  64. package/resources/ai/tests/schedules/index.mjs +4 -0
  65. package/resources/ai/tests/schedules/index.mjs.map +1 -0
  66. package/resources/ai/tests/schedules/schedules.d.mts +10 -0
  67. package/resources/ai/tests/schedules/schedules.d.mts.map +1 -0
  68. package/resources/ai/tests/schedules/schedules.d.ts +10 -0
  69. package/resources/ai/tests/schedules/schedules.d.ts.map +1 -0
  70. package/resources/ai/tests/schedules/schedules.js +17 -0
  71. package/resources/ai/tests/schedules/schedules.js.map +1 -0
  72. package/resources/ai/tests/schedules/schedules.mjs +12 -0
  73. package/resources/ai/tests/schedules/schedules.mjs.map +1 -0
  74. package/resources/ai/tests/schedules/v1/cron-jobs.d.mts +171 -0
  75. package/resources/ai/tests/schedules/v1/cron-jobs.d.mts.map +1 -0
  76. package/resources/ai/tests/schedules/v1/cron-jobs.d.ts +171 -0
  77. package/resources/ai/tests/schedules/v1/cron-jobs.d.ts.map +1 -0
  78. package/resources/ai/tests/schedules/v1/cron-jobs.js +88 -0
  79. package/resources/ai/tests/schedules/v1/cron-jobs.js.map +1 -0
  80. package/resources/ai/tests/schedules/v1/cron-jobs.mjs +84 -0
  81. package/resources/ai/tests/schedules/v1/cron-jobs.mjs.map +1 -0
  82. package/resources/ai/tests/schedules/v1/index.d.mts +3 -0
  83. package/resources/ai/tests/schedules/v1/index.d.mts.map +1 -0
  84. package/resources/ai/tests/schedules/v1/index.d.ts +3 -0
  85. package/resources/ai/tests/schedules/v1/index.d.ts.map +1 -0
  86. package/resources/ai/tests/schedules/v1/index.js +9 -0
  87. package/resources/ai/tests/schedules/v1/index.js.map +1 -0
  88. package/resources/ai/tests/schedules/v1/index.mjs +4 -0
  89. package/resources/ai/tests/schedules/v1/index.mjs.map +1 -0
  90. package/resources/ai/tests/schedules/v1/v1.d.mts +10 -0
  91. package/resources/ai/tests/schedules/v1/v1.d.mts.map +1 -0
  92. package/resources/ai/tests/schedules/v1/v1.d.ts +10 -0
  93. package/resources/ai/tests/schedules/v1/v1.d.ts.map +1 -0
  94. package/resources/ai/tests/schedules/v1/v1.js +17 -0
  95. package/resources/ai/tests/schedules/v1/v1.js.map +1 -0
  96. package/resources/ai/tests/schedules/v1/v1.mjs +12 -0
  97. package/resources/ai/tests/schedules/v1/v1.mjs.map +1 -0
  98. package/resources/ai/tests/schedules/v1.d.mts +2 -0
  99. package/resources/ai/tests/schedules/v1.d.mts.map +1 -0
  100. package/resources/ai/tests/schedules/v1.d.ts +2 -0
  101. package/resources/ai/tests/schedules/v1.d.ts.map +1 -0
  102. package/resources/ai/tests/schedules/v1.js +6 -0
  103. package/resources/ai/tests/schedules/v1.js.map +1 -0
  104. package/resources/ai/tests/schedules/v1.mjs +3 -0
  105. package/resources/ai/tests/schedules/v1.mjs.map +1 -0
  106. package/resources/ai/tests/schedules.d.mts +2 -0
  107. package/resources/ai/tests/schedules.d.mts.map +1 -0
  108. package/resources/ai/tests/schedules.d.ts +2 -0
  109. package/resources/ai/tests/schedules.d.ts.map +1 -0
  110. package/resources/ai/tests/schedules.js +6 -0
  111. package/resources/ai/tests/schedules.js.map +1 -0
  112. package/resources/ai/tests/schedules.mjs +3 -0
  113. package/resources/ai/tests/schedules.mjs.map +1 -0
  114. package/resources/ai/tests/test-framework/index.d.mts +3 -0
  115. package/resources/ai/tests/test-framework/index.d.mts.map +1 -0
  116. package/resources/ai/tests/test-framework/index.d.ts +3 -0
  117. package/resources/ai/tests/test-framework/index.d.ts.map +1 -0
  118. package/resources/ai/tests/test-framework/index.js +9 -0
  119. package/resources/ai/tests/test-framework/index.js.map +1 -0
  120. package/resources/ai/tests/test-framework/index.mjs +4 -0
  121. package/resources/ai/tests/test-framework/index.mjs.map +1 -0
  122. package/resources/ai/tests/test-framework/test-framework.d.mts +10 -0
  123. package/resources/ai/tests/test-framework/test-framework.d.mts.map +1 -0
  124. package/resources/ai/tests/test-framework/test-framework.d.ts +10 -0
  125. package/resources/ai/tests/test-framework/test-framework.d.ts.map +1 -0
  126. package/resources/ai/tests/test-framework/test-framework.js +17 -0
  127. package/resources/ai/tests/test-framework/test-framework.js.map +1 -0
  128. package/resources/ai/tests/test-framework/test-framework.mjs +12 -0
  129. package/resources/ai/tests/test-framework/test-framework.mjs.map +1 -0
  130. package/resources/ai/tests/test-framework/v1/aiagents.d.mts +216 -0
  131. package/resources/ai/tests/test-framework/v1/aiagents.d.mts.map +1 -0
  132. package/resources/ai/tests/test-framework/v1/aiagents.d.ts +216 -0
  133. package/resources/ai/tests/test-framework/v1/aiagents.d.ts.map +1 -0
  134. package/resources/ai/tests/test-framework/v1/aiagents.js +93 -0
  135. package/resources/ai/tests/test-framework/v1/aiagents.js.map +1 -0
  136. package/resources/ai/tests/test-framework/v1/aiagents.mjs +89 -0
  137. package/resources/ai/tests/test-framework/v1/aiagents.mjs.map +1 -0
  138. package/resources/ai/tests/test-framework/v1/index.d.mts +6 -0
  139. package/resources/ai/tests/test-framework/v1/index.d.mts.map +1 -0
  140. package/resources/ai/tests/test-framework/v1/index.d.ts +6 -0
  141. package/resources/ai/tests/test-framework/v1/index.d.ts.map +1 -0
  142. package/resources/ai/tests/test-framework/v1/index.js +15 -0
  143. package/resources/ai/tests/test-framework/v1/index.js.map +1 -0
  144. package/resources/ai/tests/test-framework/v1/index.mjs +7 -0
  145. package/resources/ai/tests/test-framework/v1/index.mjs.map +1 -0
  146. package/resources/ai/tests/test-framework/v1/metrics.d.mts +339 -0
  147. package/resources/ai/tests/test-framework/v1/metrics.d.mts.map +1 -0
  148. package/resources/ai/tests/test-framework/v1/metrics.d.ts +339 -0
  149. package/resources/ai/tests/test-framework/v1/metrics.d.ts.map +1 -0
  150. package/resources/ai/tests/test-framework/v1/metrics.js +145 -0
  151. package/resources/ai/tests/test-framework/v1/metrics.js.map +1 -0
  152. package/resources/ai/tests/test-framework/v1/metrics.mjs +141 -0
  153. package/resources/ai/tests/test-framework/v1/metrics.mjs.map +1 -0
  154. package/resources/ai/tests/test-framework/v1/results.d.mts +207 -0
  155. package/resources/ai/tests/test-framework/v1/results.d.mts.map +1 -0
  156. package/resources/ai/tests/test-framework/v1/results.d.ts +207 -0
  157. package/resources/ai/tests/test-framework/v1/results.d.ts.map +1 -0
  158. package/resources/ai/tests/test-framework/v1/results.js +65 -0
  159. package/resources/ai/tests/test-framework/v1/results.js.map +1 -0
  160. package/resources/ai/tests/test-framework/v1/results.mjs +61 -0
  161. package/resources/ai/tests/test-framework/v1/results.mjs.map +1 -0
  162. package/resources/ai/tests/test-framework/v1/scenarios.d.mts +528 -0
  163. package/resources/ai/tests/test-framework/v1/scenarios.d.mts.map +1 -0
  164. package/resources/ai/tests/test-framework/v1/scenarios.d.ts +528 -0
  165. package/resources/ai/tests/test-framework/v1/scenarios.d.ts.map +1 -0
  166. package/resources/ai/tests/test-framework/v1/scenarios.js +222 -0
  167. package/resources/ai/tests/test-framework/v1/scenarios.js.map +1 -0
  168. package/resources/ai/tests/test-framework/v1/scenarios.mjs +218 -0
  169. package/resources/ai/tests/test-framework/v1/scenarios.mjs.map +1 -0
  170. package/resources/ai/tests/test-framework/v1/v1.d.mts +83 -0
  171. package/resources/ai/tests/test-framework/v1/v1.d.mts.map +1 -0
  172. package/resources/ai/tests/test-framework/v1/v1.d.ts +83 -0
  173. package/resources/ai/tests/test-framework/v1/v1.d.ts.map +1 -0
  174. package/resources/ai/tests/test-framework/v1/v1.js +46 -0
  175. package/resources/ai/tests/test-framework/v1/v1.js.map +1 -0
  176. package/resources/ai/tests/test-framework/v1/v1.mjs +41 -0
  177. package/resources/ai/tests/test-framework/v1/v1.mjs.map +1 -0
  178. package/resources/ai/tests/test-framework/v1.d.mts +2 -0
  179. package/resources/ai/tests/test-framework/v1.d.mts.map +1 -0
  180. package/resources/ai/tests/test-framework/v1.d.ts +2 -0
  181. package/resources/ai/tests/test-framework/v1.d.ts.map +1 -0
  182. package/resources/ai/tests/test-framework/v1.js +6 -0
  183. package/resources/ai/tests/test-framework/v1.js.map +1 -0
  184. package/resources/ai/tests/test-framework/v1.mjs +3 -0
  185. package/resources/ai/tests/test-framework/v1.mjs.map +1 -0
  186. package/resources/ai/tests/test-framework.d.mts +2 -0
  187. package/resources/ai/tests/test-framework.d.mts.map +1 -0
  188. package/resources/ai/tests/test-framework.d.ts +2 -0
  189. package/resources/ai/tests/test-framework.d.ts.map +1 -0
  190. package/resources/ai/tests/test-framework.js +6 -0
  191. package/resources/ai/tests/test-framework.js.map +1 -0
  192. package/resources/ai/tests/test-framework.mjs +3 -0
  193. package/resources/ai/tests/test-framework.mjs.map +1 -0
  194. package/resources/ai/tests/tests.d.mts +14 -0
  195. package/resources/ai/tests/tests.d.mts.map +1 -0
  196. package/resources/ai/tests/tests.d.ts +14 -0
  197. package/resources/ai/tests/tests.d.ts.map +1 -0
  198. package/resources/ai/tests/tests.js +21 -0
  199. package/resources/ai/tests/tests.js.map +1 -0
  200. package/resources/ai/tests/tests.mjs +16 -0
  201. package/resources/ai/tests/tests.mjs.map +1 -0
  202. package/resources/ai/tests.d.mts +2 -0
  203. package/resources/ai/tests.d.mts.map +1 -0
  204. package/resources/ai/tests.d.ts +2 -0
  205. package/resources/ai/tests.d.ts.map +1 -0
  206. package/resources/ai/tests.js +6 -0
  207. package/resources/ai/tests.js.map +1 -0
  208. package/resources/ai/tests.mjs +3 -0
  209. package/resources/ai/tests.mjs.map +1 -0
  210. package/resources/artifact-downloads.d.mts +21 -0
  211. package/resources/artifact-downloads.d.mts.map +1 -0
  212. package/resources/artifact-downloads.d.ts +21 -0
  213. package/resources/artifact-downloads.d.ts.map +1 -0
  214. package/resources/artifact-downloads.js +26 -0
  215. package/resources/artifact-downloads.js.map +1 -0
  216. package/resources/artifact-downloads.mjs +22 -0
  217. package/resources/artifact-downloads.mjs.map +1 -0
  218. package/resources/bot-challenge.js +1 -1
  219. package/resources/bot-challenge.js.map +1 -1
  220. package/resources/bot-challenge.mjs +1 -1
  221. package/resources/bot-challenge.mjs.map +1 -1
  222. package/resources/bot-sessions.js +1 -1
  223. package/resources/bot-sessions.js.map +1 -1
  224. package/resources/bot-sessions.mjs +1 -1
  225. package/resources/bot-sessions.mjs.map +1 -1
  226. package/resources/bot-signup.js +2 -2
  227. package/resources/bot-signup.js.map +1 -1
  228. package/resources/bot-signup.mjs +2 -2
  229. package/resources/bot-signup.mjs.map +1 -1
  230. package/resources/browser-sessions/actions.d.mts +542 -0
  231. package/resources/browser-sessions/actions.d.mts.map +1 -0
  232. package/resources/browser-sessions/actions.d.ts +542 -0
  233. package/resources/browser-sessions/actions.d.ts.map +1 -0
  234. package/resources/browser-sessions/actions.js +55 -0
  235. package/resources/browser-sessions/actions.js.map +1 -0
  236. package/resources/browser-sessions/actions.mjs +51 -0
  237. package/resources/browser-sessions/actions.mjs.map +1 -0
  238. package/resources/browser-sessions/browser-sessions.d.mts +165 -0
  239. package/resources/browser-sessions/browser-sessions.d.mts.map +1 -0
  240. package/resources/browser-sessions/browser-sessions.d.ts +165 -0
  241. package/resources/browser-sessions/browser-sessions.d.ts.map +1 -0
  242. package/resources/browser-sessions/browser-sessions.js +87 -0
  243. package/resources/browser-sessions/browser-sessions.js.map +1 -0
  244. package/resources/browser-sessions/browser-sessions.mjs +82 -0
  245. package/resources/browser-sessions/browser-sessions.mjs.map +1 -0
  246. package/resources/browser-sessions/index.d.mts +3 -0
  247. package/resources/browser-sessions/index.d.mts.map +1 -0
  248. package/resources/browser-sessions/index.d.ts +3 -0
  249. package/resources/browser-sessions/index.d.ts.map +1 -0
  250. package/resources/browser-sessions/index.js +9 -0
  251. package/resources/browser-sessions/index.js.map +1 -0
  252. package/resources/browser-sessions/index.mjs +4 -0
  253. package/resources/browser-sessions/index.mjs.map +1 -0
  254. package/resources/browser-sessions.d.mts +2 -0
  255. package/resources/browser-sessions.d.mts.map +1 -0
  256. package/resources/browser-sessions.d.ts +2 -0
  257. package/resources/browser-sessions.d.ts.map +1 -0
  258. package/resources/browser-sessions.js +6 -0
  259. package/resources/browser-sessions.js.map +1 -0
  260. package/resources/browser-sessions.mjs +3 -0
  261. package/resources/browser-sessions.mjs.map +1 -0
  262. package/resources/call-control-applications.d.mts +2 -2
  263. package/resources/call-control-applications.d.ts +2 -2
  264. package/resources/calls/actions.d.mts +35 -28
  265. package/resources/calls/actions.d.mts.map +1 -1
  266. package/resources/calls/actions.d.ts +35 -28
  267. package/resources/calls/actions.d.ts.map +1 -1
  268. package/resources/conferences/actions.d.mts +3 -2
  269. package/resources/conferences/actions.d.mts.map +1 -1
  270. package/resources/conferences/actions.d.ts +3 -2
  271. package/resources/conferences/actions.d.ts.map +1 -1
  272. package/resources/email/dedicated-ips/actions.d.mts +73 -0
  273. package/resources/email/dedicated-ips/actions.d.mts.map +1 -0
  274. package/resources/email/dedicated-ips/actions.d.ts +73 -0
  275. package/resources/email/dedicated-ips/actions.d.ts.map +1 -0
  276. package/resources/email/dedicated-ips/actions.js +84 -0
  277. package/resources/email/dedicated-ips/actions.js.map +1 -0
  278. package/resources/email/dedicated-ips/actions.mjs +80 -0
  279. package/resources/email/dedicated-ips/actions.mjs.map +1 -0
  280. package/resources/email/dedicated-ips/dedicated-ips.d.mts +444 -0
  281. package/resources/email/dedicated-ips/dedicated-ips.d.mts.map +1 -0
  282. package/resources/email/dedicated-ips/dedicated-ips.d.ts +444 -0
  283. package/resources/email/dedicated-ips/dedicated-ips.d.ts.map +1 -0
  284. package/resources/email/dedicated-ips/dedicated-ips.js +142 -0
  285. package/resources/email/dedicated-ips/dedicated-ips.js.map +1 -0
  286. package/resources/email/dedicated-ips/dedicated-ips.mjs +137 -0
  287. package/resources/email/dedicated-ips/dedicated-ips.mjs.map +1 -0
  288. package/resources/email/dedicated-ips/index.d.mts +3 -0
  289. package/resources/email/dedicated-ips/index.d.mts.map +1 -0
  290. package/resources/email/dedicated-ips/index.d.ts +3 -0
  291. package/resources/email/dedicated-ips/index.d.ts.map +1 -0
  292. package/resources/email/dedicated-ips/index.js +9 -0
  293. package/resources/email/dedicated-ips/index.js.map +1 -0
  294. package/resources/email/dedicated-ips/index.mjs +4 -0
  295. package/resources/email/dedicated-ips/index.mjs.map +1 -0
  296. package/resources/email/dedicated-ips.d.mts +2 -0
  297. package/resources/email/dedicated-ips.d.mts.map +1 -0
  298. package/resources/email/dedicated-ips.d.ts +2 -0
  299. package/resources/email/dedicated-ips.d.ts.map +1 -0
  300. package/resources/email/dedicated-ips.js +6 -0
  301. package/resources/email/dedicated-ips.js.map +1 -0
  302. package/resources/email/dedicated-ips.mjs +3 -0
  303. package/resources/email/dedicated-ips.mjs.map +1 -0
  304. package/resources/email/email.d.mts +14 -0
  305. package/resources/email/email.d.mts.map +1 -0
  306. package/resources/email/email.d.ts +14 -0
  307. package/resources/email/email.d.ts.map +1 -0
  308. package/resources/email/email.js +21 -0
  309. package/resources/email/email.js.map +1 -0
  310. package/resources/email/email.mjs +16 -0
  311. package/resources/email/email.mjs.map +1 -0
  312. package/resources/email/index.d.mts +4 -0
  313. package/resources/email/index.d.mts.map +1 -0
  314. package/resources/email/index.d.ts +4 -0
  315. package/resources/email/index.d.ts.map +1 -0
  316. package/resources/email/index.js +11 -0
  317. package/resources/email/index.js.map +1 -0
  318. package/resources/email/index.mjs +5 -0
  319. package/resources/email/index.mjs.map +1 -0
  320. package/resources/email/ip-pools/index.d.mts +3 -0
  321. package/resources/email/ip-pools/index.d.mts.map +1 -0
  322. package/resources/email/ip-pools/index.d.ts +3 -0
  323. package/resources/email/ip-pools/index.d.ts.map +1 -0
  324. package/resources/email/ip-pools/index.js +9 -0
  325. package/resources/email/ip-pools/index.js.map +1 -0
  326. package/resources/email/ip-pools/index.mjs +4 -0
  327. package/resources/email/ip-pools/index.mjs.map +1 -0
  328. package/resources/email/ip-pools/ip-pools.d.mts +184 -0
  329. package/resources/email/ip-pools/ip-pools.d.mts.map +1 -0
  330. package/resources/email/ip-pools/ip-pools.d.ts +184 -0
  331. package/resources/email/ip-pools/ip-pools.d.ts.map +1 -0
  332. package/resources/email/ip-pools/ip-pools.js +102 -0
  333. package/resources/email/ip-pools/ip-pools.js.map +1 -0
  334. package/resources/email/ip-pools/ip-pools.mjs +97 -0
  335. package/resources/email/ip-pools/ip-pools.mjs.map +1 -0
  336. package/resources/email/ip-pools/ips.d.mts +83 -0
  337. package/resources/email/ip-pools/ips.d.mts.map +1 -0
  338. package/resources/email/ip-pools/ips.d.ts +83 -0
  339. package/resources/email/ip-pools/ips.d.ts.map +1 -0
  340. package/resources/email/ip-pools/ips.js +54 -0
  341. package/resources/email/ip-pools/ips.js.map +1 -0
  342. package/resources/email/ip-pools/ips.mjs +50 -0
  343. package/resources/email/ip-pools/ips.mjs.map +1 -0
  344. package/resources/email/ip-pools.d.mts +2 -0
  345. package/resources/email/ip-pools.d.mts.map +1 -0
  346. package/resources/email/ip-pools.d.ts +2 -0
  347. package/resources/email/ip-pools.d.ts.map +1 -0
  348. package/resources/email/ip-pools.js +6 -0
  349. package/resources/email/ip-pools.js.map +1 -0
  350. package/resources/email/ip-pools.mjs +3 -0
  351. package/resources/email/ip-pools.mjs.map +1 -0
  352. package/resources/email.d.mts +2 -0
  353. package/resources/email.d.mts.map +1 -0
  354. package/resources/email.d.ts +2 -0
  355. package/resources/email.d.ts.map +1 -0
  356. package/resources/email.js +6 -0
  357. package/resources/email.js.map +1 -0
  358. package/resources/email.mjs +3 -0
  359. package/resources/email.mjs.map +1 -0
  360. package/resources/fax-applications.d.mts +6 -6
  361. package/resources/fax-applications.d.ts +6 -6
  362. package/resources/fqdn-connections/fqdn-connections.d.mts +2 -2
  363. package/resources/fqdn-connections/fqdn-connections.d.ts +2 -2
  364. package/resources/index.d.mts +8 -2
  365. package/resources/index.d.mts.map +1 -1
  366. package/resources/index.d.ts +8 -2
  367. package/resources/index.d.ts.map +1 -1
  368. package/resources/index.js +16 -4
  369. package/resources/index.js.map +1 -1
  370. package/resources/index.mjs +6 -0
  371. package/resources/index.mjs.map +1 -1
  372. package/resources/ip-connections.d.mts +4 -4
  373. package/resources/ip-connections.d.ts +4 -4
  374. package/resources/messaging-profiles/index.d.mts +1 -1
  375. package/resources/messaging-profiles/index.d.mts.map +1 -1
  376. package/resources/messaging-profiles/index.d.ts +1 -1
  377. package/resources/messaging-profiles/index.d.ts.map +1 -1
  378. package/resources/messaging-profiles/index.js.map +1 -1
  379. package/resources/messaging-profiles/index.mjs.map +1 -1
  380. package/resources/messaging-profiles/messaging-profiles.d.mts +26 -1
  381. package/resources/messaging-profiles/messaging-profiles.d.mts.map +1 -1
  382. package/resources/messaging-profiles/messaging-profiles.d.ts +26 -1
  383. package/resources/messaging-profiles/messaging-profiles.d.ts.map +1 -1
  384. package/resources/messaging-profiles/messaging-profiles.js.map +1 -1
  385. package/resources/messaging-profiles/messaging-profiles.mjs.map +1 -1
  386. package/resources/network-routes.d.mts +257 -0
  387. package/resources/network-routes.d.mts.map +1 -0
  388. package/resources/network-routes.d.ts +257 -0
  389. package/resources/network-routes.d.ts.map +1 -0
  390. package/resources/network-routes.js +83 -0
  391. package/resources/network-routes.js.map +1 -0
  392. package/resources/network-routes.mjs +79 -0
  393. package/resources/network-routes.mjs.map +1 -0
  394. package/resources/pay-connectors.d.mts +378 -0
  395. package/resources/pay-connectors.d.mts.map +1 -0
  396. package/resources/pay-connectors.d.ts +378 -0
  397. package/resources/pay-connectors.d.ts.map +1 -0
  398. package/resources/pay-connectors.js +116 -0
  399. package/resources/pay-connectors.js.map +1 -0
  400. package/resources/pay-connectors.mjs +112 -0
  401. package/resources/pay-connectors.mjs.map +1 -0
  402. package/resources/public-internet-gateways.d.mts +0 -8
  403. package/resources/public-internet-gateways.d.mts.map +1 -1
  404. package/resources/public-internet-gateways.d.ts +0 -8
  405. package/resources/public-internet-gateways.d.ts.map +1 -1
  406. package/resources/spend-limits.d.mts +150 -32
  407. package/resources/spend-limits.d.mts.map +1 -1
  408. package/resources/spend-limits.d.ts +150 -32
  409. package/resources/spend-limits.d.ts.map +1 -1
  410. package/resources/spend-limits.js +26 -7
  411. package/resources/spend-limits.js.map +1 -1
  412. package/resources/spend-limits.mjs +26 -7
  413. package/resources/spend-limits.mjs.map +1 -1
  414. package/resources/telephony-credentials.d.mts +48 -2
  415. package/resources/telephony-credentials.d.mts.map +1 -1
  416. package/resources/telephony-credentials.d.ts +48 -2
  417. package/resources/telephony-credentials.d.ts.map +1 -1
  418. package/resources/telephony-credentials.js +46 -2
  419. package/resources/telephony-credentials.js.map +1 -1
  420. package/resources/telephony-credentials.mjs +46 -2
  421. package/resources/telephony-credentials.mjs.map +1 -1
  422. package/resources/texml-applications.d.mts +6 -6
  423. package/resources/texml-applications.d.ts +6 -6
  424. package/resources/text-to-speech/text-to-speech.d.mts +1 -6
  425. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  426. package/resources/text-to-speech/text-to-speech.d.ts +1 -6
  427. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  428. package/resources/text-to-speech/text-to-speech.js +1 -2
  429. package/resources/text-to-speech/text-to-speech.js.map +1 -1
  430. package/resources/text-to-speech/text-to-speech.mjs +1 -2
  431. package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
  432. package/resources/tunnels/actions.d.mts +29 -0
  433. package/resources/tunnels/actions.d.mts.map +1 -0
  434. package/resources/tunnels/actions.d.ts +29 -0
  435. package/resources/tunnels/actions.d.ts.map +1 -0
  436. package/resources/tunnels/actions.js +28 -0
  437. package/resources/tunnels/actions.js.map +1 -0
  438. package/resources/tunnels/actions.mjs +24 -0
  439. package/resources/tunnels/actions.mjs.map +1 -0
  440. package/resources/tunnels/index.d.mts +3 -0
  441. package/resources/tunnels/index.d.mts.map +1 -0
  442. package/resources/tunnels/index.d.ts +3 -0
  443. package/resources/tunnels/index.d.ts.map +1 -0
  444. package/resources/tunnels/index.js +9 -0
  445. package/resources/tunnels/index.js.map +1 -0
  446. package/resources/tunnels/index.mjs +4 -0
  447. package/resources/tunnels/index.mjs.map +1 -0
  448. package/resources/tunnels/tunnels.d.mts +194 -0
  449. package/resources/tunnels/tunnels.d.mts.map +1 -0
  450. package/resources/tunnels/tunnels.d.ts +194 -0
  451. package/resources/tunnels/tunnels.d.ts.map +1 -0
  452. package/resources/tunnels/tunnels.js +82 -0
  453. package/resources/tunnels/tunnels.js.map +1 -0
  454. package/resources/tunnels/tunnels.mjs +77 -0
  455. package/resources/tunnels/tunnels.mjs.map +1 -0
  456. package/resources/tunnels.d.mts +2 -0
  457. package/resources/tunnels.d.mts.map +1 -0
  458. package/resources/tunnels.d.ts +2 -0
  459. package/resources/tunnels.d.ts.map +1 -0
  460. package/resources/tunnels.js +6 -0
  461. package/resources/tunnels.js.map +1 -0
  462. package/resources/tunnels.mjs +3 -0
  463. package/resources/tunnels.mjs.map +1 -0
  464. package/resources/voice-clones.d.mts +54 -8
  465. package/resources/voice-clones.d.mts.map +1 -1
  466. package/resources/voice-clones.d.ts +54 -8
  467. package/resources/voice-clones.d.ts.map +1 -1
  468. package/resources/voice-clones.js +6 -5
  469. package/resources/voice-clones.js.map +1 -1
  470. package/resources/voice-clones.mjs +6 -5
  471. package/resources/voice-clones.mjs.map +1 -1
  472. package/resources/whatsapp/hosted-signups.d.mts +2 -1
  473. package/resources/whatsapp/hosted-signups.d.mts.map +1 -1
  474. package/resources/whatsapp/hosted-signups.d.ts +2 -1
  475. package/resources/whatsapp/hosted-signups.d.ts.map +1 -1
  476. package/resources/wireguard-interfaces.d.mts +0 -8
  477. package/resources/wireguard-interfaces.d.mts.map +1 -1
  478. package/resources/wireguard-interfaces.d.ts +0 -8
  479. package/resources/wireguard-interfaces.d.ts.map +1 -1
  480. package/src/client.ts +130 -0
  481. package/src/lib/login-token.ts +219 -0
  482. package/src/resources/addresses/actions.ts +23 -4
  483. package/src/resources/ai/ai.ts +6 -0
  484. package/src/resources/ai/assistants/assistants.ts +31 -24
  485. package/src/resources/ai/avatars.ts +9 -9
  486. package/src/resources/ai/index.ts +1 -0
  487. package/src/resources/ai/tests/index.ts +5 -0
  488. package/src/resources/ai/tests/schedules/index.ts +4 -0
  489. package/src/resources/ai/tests/schedules/schedules.ts +15 -0
  490. package/src/resources/ai/tests/schedules/v1/cron-jobs.ts +248 -0
  491. package/src/resources/ai/tests/schedules/v1/index.ts +12 -0
  492. package/src/resources/ai/tests/schedules/v1/v1.ts +31 -0
  493. package/src/resources/ai/tests/schedules/v1.ts +3 -0
  494. package/src/resources/ai/tests/schedules.ts +3 -0
  495. package/src/resources/ai/tests/test-framework/index.ts +4 -0
  496. package/src/resources/ai/tests/test-framework/test-framework.ts +15 -0
  497. package/src/resources/ai/tests/test-framework/v1/aiagents.ts +304 -0
  498. package/src/resources/ai/tests/test-framework/v1/index.ts +54 -0
  499. package/src/resources/ai/tests/test-framework/v1/metrics.ts +491 -0
  500. package/src/resources/ai/tests/test-framework/v1/results.ts +304 -0
  501. package/src/resources/ai/tests/test-framework/v1/scenarios.ts +774 -0
  502. package/src/resources/ai/tests/test-framework/v1/v1.ts +214 -0
  503. package/src/resources/ai/tests/test-framework/v1.ts +3 -0
  504. package/src/resources/ai/tests/test-framework.ts +3 -0
  505. package/src/resources/ai/tests/tests.ts +21 -0
  506. package/src/resources/ai/tests.ts +3 -0
  507. package/src/resources/artifact-downloads.ts +39 -0
  508. package/src/resources/bot-challenge.ts +1 -1
  509. package/src/resources/bot-sessions.ts +1 -1
  510. package/src/resources/bot-signup.ts +2 -2
  511. package/src/resources/browser-sessions/actions.ts +778 -0
  512. package/src/resources/browser-sessions/browser-sessions.ts +278 -0
  513. package/src/resources/browser-sessions/index.ts +31 -0
  514. package/src/resources/browser-sessions.ts +3 -0
  515. package/src/resources/call-control-applications.ts +2 -2
  516. package/src/resources/calls/actions.ts +38 -27
  517. package/src/resources/conferences/actions.ts +3 -2
  518. package/src/resources/email/dedicated-ips/actions.ts +87 -0
  519. package/src/resources/email/dedicated-ips/dedicated-ips.ts +563 -0
  520. package/src/resources/email/dedicated-ips/index.ts +13 -0
  521. package/src/resources/email/dedicated-ips.ts +3 -0
  522. package/src/resources/email/email.ts +55 -0
  523. package/src/resources/email/index.ts +22 -0
  524. package/src/resources/email/ip-pools/index.ts +12 -0
  525. package/src/resources/email/ip-pools/ip-pools.ts +247 -0
  526. package/src/resources/email/ip-pools/ips.ts +112 -0
  527. package/src/resources/email/ip-pools.ts +3 -0
  528. package/src/resources/email.ts +3 -0
  529. package/src/resources/fax-applications.ts +6 -6
  530. package/src/resources/fqdn-connections/fqdn-connections.ts +2 -2
  531. package/src/resources/index.ts +46 -0
  532. package/src/resources/ip-connections.ts +4 -4
  533. package/src/resources/messaging-profiles/index.ts +1 -0
  534. package/src/resources/messaging-profiles/messaging-profiles.ts +31 -0
  535. package/src/resources/network-routes.ts +332 -0
  536. package/src/resources/pay-connectors.ts +482 -0
  537. package/src/resources/public-internet-gateways.ts +0 -10
  538. package/src/resources/spend-limits.ts +179 -36
  539. package/src/resources/telephony-credentials.ts +75 -2
  540. package/src/resources/texml-applications.ts +6 -6
  541. package/src/resources/text-to-speech/text-to-speech.ts +1 -7
  542. package/src/resources/tunnels/actions.ts +36 -0
  543. package/src/resources/tunnels/index.ts +13 -0
  544. package/src/resources/tunnels/tunnels.ts +260 -0
  545. package/src/resources/tunnels.ts +3 -0
  546. package/src/resources/voice-clones.ts +88 -8
  547. package/src/resources/whatsapp/hosted-signups.ts +2 -1
  548. package/src/resources/wireguard-interfaces.ts +0 -10
  549. package/src/version.ts +1 -1
  550. package/version.d.mts +1 -1
  551. package/version.d.mts.map +1 -1
  552. package/version.d.ts +1 -1
  553. package/version.d.ts.map +1 -1
  554. package/version.js +1 -1
  555. package/version.js.map +1 -1
  556. package/version.mjs +1 -1
  557. package/version.mjs.map +1 -1
@@ -0,0 +1,194 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as NetworkRoutesAPI from "../network-routes.js";
3
+ import * as ActionsAPI from "./actions.js";
4
+ import { ActionRotateTokenResponse, Actions } from "./actions.js";
5
+ import { APIPromise } from "../../core/api-promise.js";
6
+ import { RequestOptions } from "../../internal/request-options.js";
7
+ /**
8
+ * Tunnels connect a Network to hosts behind a tunnel process within the user's network.
9
+ */
10
+ export declare class Tunnels extends APIResource {
11
+ actions: ActionsAPI.Actions;
12
+ /**
13
+ * Lists the tunnels on the account with their status and connected tunnel
14
+ * processes. Responses never include `tunnel_token`.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const tunnels = await client.tunnels.list();
19
+ * ```
20
+ */
21
+ list(query?: TunnelListParams | null | undefined, options?: RequestOptions): APIPromise<TunnelListResponse>;
22
+ /**
23
+ * Creates a tunnel and returns its `tunnel_token`. The token is the only
24
+ * credential the tunnel process needs, and this response and
25
+ * `POST /tunnels/{id}/actions/rotate_token` are the only ones that return it. A
26
+ * new tunnel is `inactive` until a tunnel process connects with the token.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const tunnel = await client.tunnels.create({
31
+ * name: 'chicago-dc',
32
+ * });
33
+ * ```
34
+ */
35
+ create(body: TunnelCreateParams, options?: RequestOptions): APIPromise<TunnelCreateResponse>;
36
+ /**
37
+ * Deletes a tunnel. A tunnel that a route names as its next hop cannot be deleted;
38
+ * delete those routes first. Connected tunnel processes are disconnected and
39
+ * cannot reconnect with the tunnel's token.
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * await client.tunnels.delete(
44
+ * '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
45
+ * );
46
+ * ```
47
+ */
48
+ delete(id: string, options?: RequestOptions): APIPromise<void>;
49
+ /**
50
+ * Retrieves a tunnel with its status and the tunnel processes connected to it. The
51
+ * response never includes `tunnel_token`.
52
+ *
53
+ * @example
54
+ * ```ts
55
+ * const tunnel = await client.tunnels.retrieve(
56
+ * '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
57
+ * );
58
+ * ```
59
+ */
60
+ retrieve(id: string, options?: RequestOptions): APIPromise<TunnelRetrieveResponse>;
61
+ }
62
+ export interface Tunnel {
63
+ /**
64
+ * Identifies the resource.
65
+ */
66
+ id?: string;
67
+ /**
68
+ * The number of tunnel processes connected with the tunnel's token.
69
+ */
70
+ connection_count?: number;
71
+ /**
72
+ * The tunnel processes connected with the tunnel's token.
73
+ */
74
+ connections?: Array<Tunnel.Connection>;
75
+ /**
76
+ * ISO 8601 formatted date-time indicating when the resource was created.
77
+ */
78
+ created_at?: string;
79
+ /**
80
+ * A user specified name for the tunnel.
81
+ */
82
+ name?: string;
83
+ /**
84
+ * Identifies the type of the resource.
85
+ */
86
+ record_type?: string;
87
+ /**
88
+ * `inactive` when no tunnel process is connected, and `healthy` when one or more
89
+ * are. `degraded` (Preview, not reported yet) when a process is connected but
90
+ * fails to reach its destinations.
91
+ */
92
+ status?: 'inactive' | 'healthy' | 'degraded';
93
+ }
94
+ export declare namespace Tunnel {
95
+ /**
96
+ * A tunnel process connected to the tunnel.
97
+ */
98
+ interface Connection {
99
+ /**
100
+ * When the process connected.
101
+ */
102
+ connected_at?: string;
103
+ /**
104
+ * The name the host reports for itself. Preview: empty until the CLI reports it.
105
+ */
106
+ hostname?: string;
107
+ /**
108
+ * The Telnyx region the process is connected to. Preview: empty until the CLI
109
+ * reports it.
110
+ */
111
+ region_code?: string;
112
+ /**
113
+ * The `telnyx-edge` CLI version of the process. Preview: empty until the CLI
114
+ * reports it.
115
+ */
116
+ version?: string;
117
+ }
118
+ }
119
+ export interface TunnelWithToken extends Tunnel {
120
+ /**
121
+ * The credential that a tunnel process presents with
122
+ * `telnyx-edge tunnel run --token`. Returned only by create and rotate_token.
123
+ * Telnyx stores only a hash of it.
124
+ */
125
+ tunnel_token?: string;
126
+ }
127
+ export interface TunnelCreateResponse {
128
+ data?: TunnelWithToken;
129
+ }
130
+ export interface TunnelRetrieveResponse {
131
+ data?: Tunnel;
132
+ }
133
+ export interface TunnelListResponse {
134
+ data?: Array<Tunnel>;
135
+ meta?: NetworkRoutesAPI.NetappsCursorPaginationMeta;
136
+ }
137
+ export interface TunnelListParams {
138
+ /**
139
+ * Consolidated filter parameter (deepObject style). Originally: filter[name],
140
+ * filter[status]
141
+ */
142
+ filter?: TunnelListParams.Filter;
143
+ /**
144
+ * Consolidated page parameter (deepObject style). Originally: page[after],
145
+ * page[limit]
146
+ */
147
+ page?: TunnelListParams.Page;
148
+ /**
149
+ * Sorts the results by a field, ascending, or descending with a leading `-`. The
150
+ * default is `-created_at`.
151
+ */
152
+ sort?: 'name' | '-name' | 'status' | '-status' | 'created_at' | '-created_at' | 'updated_at' | '-updated_at';
153
+ }
154
+ export declare namespace TunnelListParams {
155
+ /**
156
+ * Consolidated filter parameter (deepObject style). Originally: filter[name],
157
+ * filter[status]
158
+ */
159
+ interface Filter {
160
+ /**
161
+ * The name of the tunnel.
162
+ */
163
+ name?: string;
164
+ /**
165
+ * The status of the tunnel.
166
+ */
167
+ status?: 'inactive' | 'healthy' | 'degraded';
168
+ }
169
+ /**
170
+ * Consolidated page parameter (deepObject style). Originally: page[after],
171
+ * page[limit]
172
+ */
173
+ interface Page {
174
+ /**
175
+ * The cursor from `meta.cursors.after` of the previous page.
176
+ */
177
+ after?: string;
178
+ /**
179
+ * The number of results per page.
180
+ */
181
+ limit?: number;
182
+ }
183
+ }
184
+ export interface TunnelCreateParams {
185
+ /**
186
+ * A user specified name for the tunnel.
187
+ */
188
+ name: string;
189
+ }
190
+ export declare namespace Tunnels {
191
+ export { type Tunnel as Tunnel, type TunnelWithToken as TunnelWithToken, type TunnelCreateResponse as TunnelCreateResponse, type TunnelRetrieveResponse as TunnelRetrieveResponse, type TunnelListResponse as TunnelListResponse, type TunnelListParams as TunnelListParams, type TunnelCreateParams as TunnelCreateParams, };
192
+ export { Actions as Actions, type ActionRotateTokenResponse as ActionRotateTokenResponse };
193
+ }
194
+ //# sourceMappingURL=tunnels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tunnels.d.ts","sourceRoot":"","sources":["../../src/resources/tunnels/tunnels.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,gBAAgB,6BAA0B;AACtD,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EAAE,yBAAyB,EAAE,OAAO,EAAE,qBAAkB;AAC/D,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5F;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO9D;;;;;;;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AC,EAAE,gBAAgB,CAAC,MAAM,CAAC;IAEjC;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC;IAE7B;;;OAGG;IACH,IAAI,CAAC,EACD,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,aAAa,CAAC;CACnB;AAED,yBAAiB,gBAAgB,CAAC;IAChC;;;OAGG;IACH,UAAiB,MAAM;QACrB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;KAC9C;IAED;;;OAGG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CAC5F"}
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Tunnels = void 0;
5
+ const tslib_1 = require("../../internal/tslib.js");
6
+ const resource_1 = require("../../core/resource.js");
7
+ const ActionsAPI = tslib_1.__importStar(require("./actions.js"));
8
+ const actions_1 = require("./actions.js");
9
+ const headers_1 = require("../../internal/headers.js");
10
+ const path_1 = require("../../internal/utils/path.js");
11
+ /**
12
+ * Tunnels connect a Network to hosts behind a tunnel process within the user's network.
13
+ */
14
+ class Tunnels extends resource_1.APIResource {
15
+ constructor() {
16
+ super(...arguments);
17
+ this.actions = new ActionsAPI.Actions(this._client);
18
+ }
19
+ /**
20
+ * Lists the tunnels on the account with their status and connected tunnel
21
+ * processes. Responses never include `tunnel_token`.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const tunnels = await client.tunnels.list();
26
+ * ```
27
+ */
28
+ list(query = {}, options) {
29
+ return this._client.get('/tunnels', { query, ...options });
30
+ }
31
+ /**
32
+ * Creates a tunnel and returns its `tunnel_token`. The token is the only
33
+ * credential the tunnel process needs, and this response and
34
+ * `POST /tunnels/{id}/actions/rotate_token` are the only ones that return it. A
35
+ * new tunnel is `inactive` until a tunnel process connects with the token.
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * const tunnel = await client.tunnels.create({
40
+ * name: 'chicago-dc',
41
+ * });
42
+ * ```
43
+ */
44
+ create(body, options) {
45
+ return this._client.post('/tunnels', { body, ...options });
46
+ }
47
+ /**
48
+ * Deletes a tunnel. A tunnel that a route names as its next hop cannot be deleted;
49
+ * delete those routes first. Connected tunnel processes are disconnected and
50
+ * cannot reconnect with the tunnel's token.
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * await client.tunnels.delete(
55
+ * '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
56
+ * );
57
+ * ```
58
+ */
59
+ delete(id, options) {
60
+ return this._client.delete((0, path_1.path) `/tunnels/${id}`, {
61
+ ...options,
62
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
63
+ });
64
+ }
65
+ /**
66
+ * Retrieves a tunnel with its status and the tunnel processes connected to it. The
67
+ * response never includes `tunnel_token`.
68
+ *
69
+ * @example
70
+ * ```ts
71
+ * const tunnel = await client.tunnels.retrieve(
72
+ * '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
73
+ * );
74
+ * ```
75
+ */
76
+ retrieve(id, options) {
77
+ return this._client.get((0, path_1.path) `/tunnels/${id}`, options);
78
+ }
79
+ }
80
+ exports.Tunnels = Tunnels;
81
+ Tunnels.Actions = actions_1.Actions;
82
+ //# sourceMappingURL=tunnels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tunnels.js","sourceRoot":"","sources":["../../src/resources/tunnels/tunnels.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,iEAAwC;AACxC,0CAA+D;AAE/D,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoErE,CAAC;IAlEC;;;;;;;;OAQG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,YAAY,EAAE,EAAE,EAAE;YAC/C,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;CACF;AArED,0BAqEC;AAkKD,OAAO,CAAC,OAAO,GAAG,iBAAO,CAAC"}
@@ -0,0 +1,77 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import * as ActionsAPI from "./actions.mjs";
4
+ import { Actions } from "./actions.mjs";
5
+ import { buildHeaders } from "../../internal/headers.mjs";
6
+ import { path } from "../../internal/utils/path.mjs";
7
+ /**
8
+ * Tunnels connect a Network to hosts behind a tunnel process within the user's network.
9
+ */
10
+ export class Tunnels extends APIResource {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.actions = new ActionsAPI.Actions(this._client);
14
+ }
15
+ /**
16
+ * Lists the tunnels on the account with their status and connected tunnel
17
+ * processes. Responses never include `tunnel_token`.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const tunnels = await client.tunnels.list();
22
+ * ```
23
+ */
24
+ list(query = {}, options) {
25
+ return this._client.get('/tunnels', { query, ...options });
26
+ }
27
+ /**
28
+ * Creates a tunnel and returns its `tunnel_token`. The token is the only
29
+ * credential the tunnel process needs, and this response and
30
+ * `POST /tunnels/{id}/actions/rotate_token` are the only ones that return it. A
31
+ * new tunnel is `inactive` until a tunnel process connects with the token.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const tunnel = await client.tunnels.create({
36
+ * name: 'chicago-dc',
37
+ * });
38
+ * ```
39
+ */
40
+ create(body, options) {
41
+ return this._client.post('/tunnels', { body, ...options });
42
+ }
43
+ /**
44
+ * Deletes a tunnel. A tunnel that a route names as its next hop cannot be deleted;
45
+ * delete those routes first. Connected tunnel processes are disconnected and
46
+ * cannot reconnect with the tunnel's token.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * await client.tunnels.delete(
51
+ * '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
52
+ * );
53
+ * ```
54
+ */
55
+ delete(id, options) {
56
+ return this._client.delete(path `/tunnels/${id}`, {
57
+ ...options,
58
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
59
+ });
60
+ }
61
+ /**
62
+ * Retrieves a tunnel with its status and the tunnel processes connected to it. The
63
+ * response never includes `tunnel_token`.
64
+ *
65
+ * @example
66
+ * ```ts
67
+ * const tunnel = await client.tunnels.retrieve(
68
+ * '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
69
+ * );
70
+ * ```
71
+ */
72
+ retrieve(id, options) {
73
+ return this._client.get(path `/tunnels/${id}`, options);
74
+ }
75
+ }
76
+ Tunnels.Actions = Actions;
77
+ //# sourceMappingURL=tunnels.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tunnels.mjs","sourceRoot":"","sources":["../../src/resources/tunnels/tunnels.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAA6B,OAAO,EAAE,sBAAkB;AAE/D,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoErE,CAAC;IAlEC;;;;;;;;OAQG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,EAAE,EAAE,EAAE;YAC/C,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;CACF;AAkKD,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./tunnels/index.mjs";
2
+ //# sourceMappingURL=tunnels.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tunnels.d.mts","sourceRoot":"","sources":["../src/resources/tunnels.ts"],"names":[],"mappings":"AAEA,oCAAgC"}
@@ -0,0 +1,2 @@
1
+ export * from "./tunnels/index.js";
2
+ //# sourceMappingURL=tunnels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tunnels.d.ts","sourceRoot":"","sources":["../src/resources/tunnels.ts"],"names":[],"mappings":"AAEA,mCAAgC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./tunnels/index.js"), exports);
6
+ //# sourceMappingURL=tunnels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tunnels.js","sourceRoot":"","sources":["../src/resources/tunnels.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./tunnels/index.mjs";
3
+ //# sourceMappingURL=tunnels.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tunnels.mjs","sourceRoot":"","sources":["../src/resources/tunnels.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,oCAAgC"}
@@ -40,11 +40,12 @@ export declare class VoiceClones extends APIResource {
40
40
  /**
41
41
  * Creates a new voice clone by uploading an audio file directly. Supported
42
42
  * formats: WAV, MP3, FLAC, OGG, M4A. Maximum file size: 20MB. Reference audio is
43
- * trimmed per model: Qwen3TTS and Bayan use the first 10 seconds, Ultra uses up to
44
- * 60 seconds, and Minimax accepts 10 seconds to 5 minutes. Ultra clones return
45
- * `202` with status `pending`; all other models return `201` with status `active`.
46
- * Bayan clones require `ref_text` (the exact transcript of the reference audio)
47
- * and support `ar` (default) and `en` only.
43
+ * trimmed per model: Qwen3TTS, Bayan, and Resemble use the first 10 seconds, Ultra
44
+ * uses up to 60 seconds, and Minimax accepts 10 seconds to 5 minutes. Ultra clones
45
+ * return `202` with status `pending`; all other models return `201` with status
46
+ * `active`. Bayan clones require `ref_text` (the exact transcript of the reference
47
+ * audio) and support `ar` (default) and `en` only. Resemble clones
48
+ * (`provider: resemble`) take `model_id` `Pro`, `Turbo`, or `Urdu`.
48
49
  *
49
50
  * @example
50
51
  * ```ts
@@ -122,13 +123,14 @@ export interface VoiceCloneData {
122
123
  */
123
124
  label?: string | null;
124
125
  /**
125
- * ISO 639-1 language code of the voice clone.
126
+ * Language code of the voice clone (ISO 639-1, or the Resemble catalogue code such
127
+ * as `en-US`).
126
128
  */
127
129
  language?: string | null;
128
130
  /**
129
131
  * TTS model identifier for the voice clone.
130
132
  */
131
- model_id?: 'Qwen3TTS' | 'Ultra' | 'Bayan' | 'speech-2.8-turbo';
133
+ model_id?: 'Qwen3TTS' | 'Ultra' | 'Bayan' | 'speech-2.8-turbo' | 'Pro' | 'Turbo' | 'Urdu';
132
134
  /**
133
135
  * Name of the voice clone.
134
136
  */
@@ -199,6 +201,10 @@ export interface VoiceDesignsPaginationMeta {
199
201
  total_results?: number;
200
202
  }
201
203
  export interface VoiceCloneListParams extends DefaultFlatPaginationParams {
204
+ /**
205
+ * Filter by TTS model. Case-insensitive.
206
+ */
207
+ 'filter[model_id]'?: 'Qwen3TTS' | 'Ultra' | 'Bayan' | 'speech-2.8-turbo' | 'Pro' | 'Turbo' | 'Urdu';
202
208
  /**
203
209
  * Case-insensitive substring filter on the name field.
204
210
  */
@@ -276,7 +282,7 @@ export interface VoiceCloneCreateFromUploadParams {
276
282
  * Multipart form data for creating a voice clone from a direct audio upload.
277
283
  * Maximum file size: 20MB.
278
284
  */
279
- voice_clone_upload_request: VoiceCloneCreateFromUploadParams.TelnyxQwen3TtsClone | VoiceCloneCreateFromUploadParams.TelnyxUltraClone | VoiceCloneCreateFromUploadParams.TelnyxBayanClone | VoiceCloneCreateFromUploadParams.MinimaxClone;
285
+ voice_clone_upload_request: VoiceCloneCreateFromUploadParams.TelnyxQwen3TtsClone | VoiceCloneCreateFromUploadParams.TelnyxUltraClone | VoiceCloneCreateFromUploadParams.TelnyxBayanClone | VoiceCloneCreateFromUploadParams.MinimaxClone | VoiceCloneCreateFromUploadParams.ResembleClone;
280
286
  }
281
287
  export declare namespace VoiceCloneCreateFromUploadParams {
282
288
  /**
@@ -441,6 +447,46 @@ export declare namespace VoiceCloneCreateFromUploadParams {
441
447
  */
442
448
  ref_text?: string;
443
449
  }
450
+ /**
451
+ * Upload-based voice clone using the Resemble provider. The clone is `active` on
452
+ * creation. Use it as voice `Resemble.<model_id>.<clone_id>`.
453
+ */
454
+ interface ResembleClone {
455
+ /**
456
+ * Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
457
+ * Converted to WAV and trimmed to the first 10 seconds. For best quality, provide
458
+ * about 10 seconds of clean, single-speaker speech. Maximum size: 20MB.
459
+ */
460
+ audio_file: Uploadable;
461
+ /**
462
+ * Gender of the voice clone.
463
+ */
464
+ gender: 'male' | 'female' | 'neutral';
465
+ /**
466
+ * Resemble model: `Pro`, `Turbo` (English only), or `Urdu`. A clone works only
467
+ * with this model.
468
+ */
469
+ model_id: 'Pro' | 'Turbo' | 'Urdu';
470
+ /**
471
+ * Name for the voice clone.
472
+ */
473
+ name: string;
474
+ /**
475
+ * Voice synthesis provider. Must be `resemble`.
476
+ */
477
+ provider: 'resemble' | 'Resemble';
478
+ /**
479
+ * Optional custom label describing the voice style.
480
+ */
481
+ label?: string;
482
+ /**
483
+ * Language of the reference audio, matched case-insensitively. Pro: required, one
484
+ * of `ar`, `da`, `de`, `el`, `en-US`, `es`, `fi`, `fr-fr`, `he`, `hi`, `it`, `ja`,
485
+ * `ko`, `ms`, `nl`, `no`, `pl`, `pt`, `ru`, `sv`, `sw`, `tr`, `zh`. Turbo: `en` or
486
+ * `en-US` (default `en-US`). Urdu: `ur` (default). Other values return `422`.
487
+ */
488
+ language?: 'ar' | 'da' | 'de' | 'el' | 'en' | 'en-US' | 'es' | 'fi' | 'fr-fr' | 'he' | 'hi' | 'it' | 'ja' | 'ko' | 'ms' | 'nl' | 'no' | 'pl' | 'pt' | 'ru' | 'sv' | 'sw' | 'tr' | 'ur' | 'zh';
489
+ }
444
490
  }
445
491
  export interface VoiceCloneUpdateParams {
446
492
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"voice-clones.d.mts","sourceRoot":"","sources":["../src/resources/voice-clones.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,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GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;KACV;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IAEvC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -40,11 +40,12 @@ export declare class VoiceClones extends APIResource {
40
40
  /**
41
41
  * Creates a new voice clone by uploading an audio file directly. Supported
42
42
  * formats: WAV, MP3, FLAC, OGG, M4A. Maximum file size: 20MB. Reference audio is
43
- * trimmed per model: Qwen3TTS and Bayan use the first 10 seconds, Ultra uses up to
44
- * 60 seconds, and Minimax accepts 10 seconds to 5 minutes. Ultra clones return
45
- * `202` with status `pending`; all other models return `201` with status `active`.
46
- * Bayan clones require `ref_text` (the exact transcript of the reference audio)
47
- * and support `ar` (default) and `en` only.
43
+ * trimmed per model: Qwen3TTS, Bayan, and Resemble use the first 10 seconds, Ultra
44
+ * uses up to 60 seconds, and Minimax accepts 10 seconds to 5 minutes. Ultra clones
45
+ * return `202` with status `pending`; all other models return `201` with status
46
+ * `active`. Bayan clones require `ref_text` (the exact transcript of the reference
47
+ * audio) and support `ar` (default) and `en` only. Resemble clones
48
+ * (`provider: resemble`) take `model_id` `Pro`, `Turbo`, or `Urdu`.
48
49
  *
49
50
  * @example
50
51
  * ```ts
@@ -122,13 +123,14 @@ export interface VoiceCloneData {
122
123
  */
123
124
  label?: string | null;
124
125
  /**
125
- * ISO 639-1 language code of the voice clone.
126
+ * Language code of the voice clone (ISO 639-1, or the Resemble catalogue code such
127
+ * as `en-US`).
126
128
  */
127
129
  language?: string | null;
128
130
  /**
129
131
  * TTS model identifier for the voice clone.
130
132
  */
131
- model_id?: 'Qwen3TTS' | 'Ultra' | 'Bayan' | 'speech-2.8-turbo';
133
+ model_id?: 'Qwen3TTS' | 'Ultra' | 'Bayan' | 'speech-2.8-turbo' | 'Pro' | 'Turbo' | 'Urdu';
132
134
  /**
133
135
  * Name of the voice clone.
134
136
  */
@@ -199,6 +201,10 @@ export interface VoiceDesignsPaginationMeta {
199
201
  total_results?: number;
200
202
  }
201
203
  export interface VoiceCloneListParams extends DefaultFlatPaginationParams {
204
+ /**
205
+ * Filter by TTS model. Case-insensitive.
206
+ */
207
+ 'filter[model_id]'?: 'Qwen3TTS' | 'Ultra' | 'Bayan' | 'speech-2.8-turbo' | 'Pro' | 'Turbo' | 'Urdu';
202
208
  /**
203
209
  * Case-insensitive substring filter on the name field.
204
210
  */
@@ -276,7 +282,7 @@ export interface VoiceCloneCreateFromUploadParams {
276
282
  * Multipart form data for creating a voice clone from a direct audio upload.
277
283
  * Maximum file size: 20MB.
278
284
  */
279
- voice_clone_upload_request: VoiceCloneCreateFromUploadParams.TelnyxQwen3TtsClone | VoiceCloneCreateFromUploadParams.TelnyxUltraClone | VoiceCloneCreateFromUploadParams.TelnyxBayanClone | VoiceCloneCreateFromUploadParams.MinimaxClone;
285
+ voice_clone_upload_request: VoiceCloneCreateFromUploadParams.TelnyxQwen3TtsClone | VoiceCloneCreateFromUploadParams.TelnyxUltraClone | VoiceCloneCreateFromUploadParams.TelnyxBayanClone | VoiceCloneCreateFromUploadParams.MinimaxClone | VoiceCloneCreateFromUploadParams.ResembleClone;
280
286
  }
281
287
  export declare namespace VoiceCloneCreateFromUploadParams {
282
288
  /**
@@ -441,6 +447,46 @@ export declare namespace VoiceCloneCreateFromUploadParams {
441
447
  */
442
448
  ref_text?: string;
443
449
  }
450
+ /**
451
+ * Upload-based voice clone using the Resemble provider. The clone is `active` on
452
+ * creation. Use it as voice `Resemble.<model_id>.<clone_id>`.
453
+ */
454
+ interface ResembleClone {
455
+ /**
456
+ * Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
457
+ * Converted to WAV and trimmed to the first 10 seconds. For best quality, provide
458
+ * about 10 seconds of clean, single-speaker speech. Maximum size: 20MB.
459
+ */
460
+ audio_file: Uploadable;
461
+ /**
462
+ * Gender of the voice clone.
463
+ */
464
+ gender: 'male' | 'female' | 'neutral';
465
+ /**
466
+ * Resemble model: `Pro`, `Turbo` (English only), or `Urdu`. A clone works only
467
+ * with this model.
468
+ */
469
+ model_id: 'Pro' | 'Turbo' | 'Urdu';
470
+ /**
471
+ * Name for the voice clone.
472
+ */
473
+ name: string;
474
+ /**
475
+ * Voice synthesis provider. Must be `resemble`.
476
+ */
477
+ provider: 'resemble' | 'Resemble';
478
+ /**
479
+ * Optional custom label describing the voice style.
480
+ */
481
+ label?: string;
482
+ /**
483
+ * Language of the reference audio, matched case-insensitively. Pro: required, one
484
+ * of `ar`, `da`, `de`, `el`, `en-US`, `es`, `fi`, `fr-fr`, `he`, `hi`, `it`, `ja`,
485
+ * `ko`, `ms`, `nl`, `no`, `pl`, `pt`, `ru`, `sv`, `sw`, `tr`, `zh`. Turbo: `en` or
486
+ * `en-US` (default `en-US`). Urdu: `ur` (default). Other values return `422`.
487
+ */
488
+ language?: 'ar' | 'da' | 'de' | 'el' | 'en' | 'en-US' | 'es' | 'fi' | 'fr-fr' | 'he' | 'hi' | 'it' | 'ja' | 'ko' | 'ms' | 'nl' | 'no' | 'pl' | 'pt' | 'ru' | 'sv' | 'sw' | 'tr' | 'ur' | 'zh';
489
+ }
444
490
  }
445
491
  export interface VoiceCloneUpdateParams {
446
492
  /**