telnyx 7.26.0 → 7.28.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 (516) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +28 -10
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +28 -10
  5. package/client.d.ts.map +1 -1
  6. package/client.js +18 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +18 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/addresses/addresses.d.mts +22 -2
  12. package/resources/addresses/addresses.d.mts.map +1 -1
  13. package/resources/addresses/addresses.d.ts +22 -2
  14. package/resources/addresses/addresses.d.ts.map +1 -1
  15. package/resources/addresses/addresses.js +12 -0
  16. package/resources/addresses/addresses.js.map +1 -1
  17. package/resources/addresses/addresses.mjs +12 -0
  18. package/resources/addresses/addresses.mjs.map +1 -1
  19. package/resources/ai/ai.d.mts +2 -2
  20. package/resources/ai/ai.d.mts.map +1 -1
  21. package/resources/ai/ai.d.ts +2 -2
  22. package/resources/ai/ai.d.ts.map +1 -1
  23. package/resources/ai/ai.js.map +1 -1
  24. package/resources/ai/ai.mjs.map +1 -1
  25. package/resources/ai/assistants/assistants.d.mts +179 -33
  26. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  27. package/resources/ai/assistants/assistants.d.ts +179 -33
  28. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  29. package/resources/ai/assistants/assistants.js +4 -1
  30. package/resources/ai/assistants/assistants.js.map +1 -1
  31. package/resources/ai/assistants/assistants.mjs +4 -1
  32. package/resources/ai/assistants/assistants.mjs.map +1 -1
  33. package/resources/ai/assistants/versions.d.mts +11 -6
  34. package/resources/ai/assistants/versions.d.mts.map +1 -1
  35. package/resources/ai/assistants/versions.d.ts +11 -6
  36. package/resources/ai/assistants/versions.d.ts.map +1 -1
  37. package/resources/ai/assistants/versions.js +4 -1
  38. package/resources/ai/assistants/versions.js.map +1 -1
  39. package/resources/ai/assistants/versions.mjs +4 -1
  40. package/resources/ai/assistants/versions.mjs.map +1 -1
  41. package/resources/ai/audio.d.mts +33 -10
  42. package/resources/ai/audio.d.mts.map +1 -1
  43. package/resources/ai/audio.d.ts +33 -10
  44. package/resources/ai/audio.d.ts.map +1 -1
  45. package/resources/ai/avatars.d.mts +21 -8
  46. package/resources/ai/avatars.d.mts.map +1 -1
  47. package/resources/ai/avatars.d.ts +21 -8
  48. package/resources/ai/avatars.d.ts.map +1 -1
  49. package/resources/ai/avatars.js +3 -1
  50. package/resources/ai/avatars.js.map +1 -1
  51. package/resources/ai/avatars.mjs +3 -1
  52. package/resources/ai/avatars.mjs.map +1 -1
  53. package/resources/ai/index.d.mts +1 -1
  54. package/resources/ai/index.d.mts.map +1 -1
  55. package/resources/ai/index.d.ts +1 -1
  56. package/resources/ai/index.d.ts.map +1 -1
  57. package/resources/ai/index.js.map +1 -1
  58. package/resources/ai/index.mjs.map +1 -1
  59. package/resources/ai/tools.d.mts +13 -1
  60. package/resources/ai/tools.d.mts.map +1 -1
  61. package/resources/ai/tools.d.ts +13 -1
  62. package/resources/ai/tools.d.ts.map +1 -1
  63. package/resources/calls/actions.d.mts +202 -13
  64. package/resources/calls/actions.d.mts.map +1 -1
  65. package/resources/calls/actions.d.ts +202 -13
  66. package/resources/calls/actions.d.ts.map +1 -1
  67. package/resources/calls/calls.d.mts +2 -2
  68. package/resources/calls/calls.d.mts.map +1 -1
  69. package/resources/calls/calls.d.ts +2 -2
  70. package/resources/calls/calls.d.ts.map +1 -1
  71. package/resources/calls/calls.js.map +1 -1
  72. package/resources/calls/calls.mjs.map +1 -1
  73. package/resources/calls/index.d.mts +1 -1
  74. package/resources/calls/index.d.mts.map +1 -1
  75. package/resources/calls/index.d.ts +1 -1
  76. package/resources/calls/index.d.ts.map +1 -1
  77. package/resources/calls/index.js.map +1 -1
  78. package/resources/calls/index.mjs.map +1 -1
  79. package/resources/compute/compute.d.mts +75 -2
  80. package/resources/compute/compute.d.mts.map +1 -1
  81. package/resources/compute/compute.d.ts +75 -2
  82. package/resources/compute/compute.d.ts.map +1 -1
  83. package/resources/compute/compute.js +17 -0
  84. package/resources/compute/compute.js.map +1 -1
  85. package/resources/compute/compute.mjs +17 -0
  86. package/resources/compute/compute.mjs.map +1 -1
  87. package/resources/compute/funcs/export.d.mts +3 -0
  88. package/resources/compute/funcs/export.d.mts.map +1 -1
  89. package/resources/compute/funcs/export.d.ts +3 -0
  90. package/resources/compute/funcs/export.d.ts.map +1 -1
  91. package/resources/compute/funcs/export.js +3 -0
  92. package/resources/compute/funcs/export.js.map +1 -1
  93. package/resources/compute/funcs/export.mjs +3 -0
  94. package/resources/compute/funcs/export.mjs.map +1 -1
  95. package/resources/compute/funcs/funcs.d.mts +60 -1
  96. package/resources/compute/funcs/funcs.d.mts.map +1 -1
  97. package/resources/compute/funcs/funcs.d.ts +60 -1
  98. package/resources/compute/funcs/funcs.d.ts.map +1 -1
  99. package/resources/compute/funcs/funcs.js +24 -0
  100. package/resources/compute/funcs/funcs.js.map +1 -1
  101. package/resources/compute/funcs/funcs.mjs +24 -0
  102. package/resources/compute/funcs/funcs.mjs.map +1 -1
  103. package/resources/compute/funcs/index.d.mts +1 -1
  104. package/resources/compute/funcs/index.d.mts.map +1 -1
  105. package/resources/compute/funcs/index.d.ts +1 -1
  106. package/resources/compute/funcs/index.d.ts.map +1 -1
  107. package/resources/compute/funcs/index.js.map +1 -1
  108. package/resources/compute/funcs/index.mjs.map +1 -1
  109. package/resources/compute/index.d.mts +2 -2
  110. package/resources/compute/index.d.mts.map +1 -1
  111. package/resources/compute/index.d.ts +2 -2
  112. package/resources/compute/index.d.ts.map +1 -1
  113. package/resources/compute/index.js.map +1 -1
  114. package/resources/compute/index.mjs.map +1 -1
  115. package/resources/credential-connections/credential-connections.d.mts +38 -8
  116. package/resources/credential-connections/credential-connections.d.mts.map +1 -1
  117. package/resources/credential-connections/credential-connections.d.ts +38 -8
  118. package/resources/credential-connections/credential-connections.d.ts.map +1 -1
  119. package/resources/credential-connections/credential-connections.js.map +1 -1
  120. package/resources/credential-connections/credential-connections.mjs.map +1 -1
  121. package/resources/dial-metrics.d.mts +151 -0
  122. package/resources/dial-metrics.d.mts.map +1 -0
  123. package/resources/dial-metrics.d.ts +151 -0
  124. package/resources/dial-metrics.d.ts.map +1 -0
  125. package/resources/dial-metrics.js +44 -0
  126. package/resources/dial-metrics.js.map +1 -0
  127. package/resources/dial-metrics.mjs +40 -0
  128. package/resources/dial-metrics.mjs.map +1 -0
  129. package/resources/dir/dir.d.mts +2 -3
  130. package/resources/dir/dir.d.mts.map +1 -1
  131. package/resources/dir/dir.d.ts +2 -3
  132. package/resources/dir/dir.d.ts.map +1 -1
  133. package/resources/dir/dir.js +1 -2
  134. package/resources/dir/dir.js.map +1 -1
  135. package/resources/dir/dir.mjs +1 -2
  136. package/resources/dir/dir.mjs.map +1 -1
  137. package/resources/dir/references.d.mts +15 -9
  138. package/resources/dir/references.d.mts.map +1 -1
  139. package/resources/dir/references.d.ts +15 -9
  140. package/resources/dir/references.d.ts.map +1 -1
  141. package/resources/dir/references.js +15 -9
  142. package/resources/dir/references.js.map +1 -1
  143. package/resources/dir/references.mjs +15 -9
  144. package/resources/dir/references.mjs.map +1 -1
  145. package/resources/dir/verify-email.d.mts +17 -5
  146. package/resources/dir/verify-email.d.mts.map +1 -1
  147. package/resources/dir/verify-email.d.ts +17 -5
  148. package/resources/dir/verify-email.d.ts.map +1 -1
  149. package/resources/dir/verify-email.js +17 -5
  150. package/resources/dir/verify-email.js.map +1 -1
  151. package/resources/dir/verify-email.mjs +17 -5
  152. package/resources/dir/verify-email.mjs.map +1 -1
  153. package/resources/email-domains/email-domains.d.mts +1 -1
  154. package/resources/email-domains/email-domains.d.mts.map +1 -1
  155. package/resources/email-domains/email-domains.d.ts +1 -1
  156. package/resources/email-domains/email-domains.d.ts.map +1 -1
  157. package/resources/enterprises/verify-email.d.mts +1 -1
  158. package/resources/enterprises/verify-email.d.ts +1 -1
  159. package/resources/enterprises/verify-email.js +1 -1
  160. package/resources/enterprises/verify-email.mjs +1 -1
  161. package/resources/fqdn-connections/fqdn-connections.d.mts +38 -8
  162. package/resources/fqdn-connections/fqdn-connections.d.mts.map +1 -1
  163. package/resources/fqdn-connections/fqdn-connections.d.ts +38 -8
  164. package/resources/fqdn-connections/fqdn-connections.d.ts.map +1 -1
  165. package/resources/fqdn-connections/fqdn-connections.js.map +1 -1
  166. package/resources/fqdn-connections/fqdn-connections.mjs.map +1 -1
  167. package/resources/index.d.mts +8 -5
  168. package/resources/index.d.mts.map +1 -1
  169. package/resources/index.d.ts +8 -5
  170. package/resources/index.d.ts.map +1 -1
  171. package/resources/index.js +10 -4
  172. package/resources/index.js.map +1 -1
  173. package/resources/index.mjs +3 -0
  174. package/resources/index.mjs.map +1 -1
  175. package/resources/ip-connections.d.mts +36 -6
  176. package/resources/ip-connections.d.mts.map +1 -1
  177. package/resources/ip-connections.d.ts +36 -6
  178. package/resources/ip-connections.d.ts.map +1 -1
  179. package/resources/meeting-sessions/actions.d.mts +13 -7
  180. package/resources/meeting-sessions/actions.d.mts.map +1 -1
  181. package/resources/meeting-sessions/actions.d.ts +13 -7
  182. package/resources/meeting-sessions/actions.d.ts.map +1 -1
  183. package/resources/meeting-sessions/actions.js +13 -7
  184. package/resources/meeting-sessions/actions.js.map +1 -1
  185. package/resources/meeting-sessions/actions.mjs +13 -7
  186. package/resources/meeting-sessions/actions.mjs.map +1 -1
  187. package/resources/meeting-sessions/index.d.mts +1 -1
  188. package/resources/meeting-sessions/index.d.mts.map +1 -1
  189. package/resources/meeting-sessions/index.d.ts +1 -1
  190. package/resources/meeting-sessions/index.d.ts.map +1 -1
  191. package/resources/meeting-sessions/index.js.map +1 -1
  192. package/resources/meeting-sessions/index.mjs.map +1 -1
  193. package/resources/meeting-sessions/meeting-sessions.d.mts +46 -65
  194. package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
  195. package/resources/meeting-sessions/meeting-sessions.d.ts +46 -65
  196. package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
  197. package/resources/meeting-sessions/meeting-sessions.js +14 -23
  198. package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
  199. package/resources/meeting-sessions/meeting-sessions.mjs +14 -23
  200. package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
  201. package/resources/messages/messages.d.mts +581 -118
  202. package/resources/messages/messages.d.mts.map +1 -1
  203. package/resources/messages/messages.d.ts +581 -118
  204. package/resources/messages/messages.d.ts.map +1 -1
  205. package/resources/messages/messages.js +71 -14
  206. package/resources/messages/messages.js.map +1 -1
  207. package/resources/messages/messages.mjs +71 -14
  208. package/resources/messages/messages.mjs.map +1 -1
  209. package/resources/messages/rcs.d.mts +26 -6
  210. package/resources/messages/rcs.d.mts.map +1 -1
  211. package/resources/messages/rcs.d.ts +26 -6
  212. package/resources/messages/rcs.d.ts.map +1 -1
  213. package/resources/messages/rcs.js +11 -2
  214. package/resources/messages/rcs.js.map +1 -1
  215. package/resources/messages/rcs.mjs +11 -2
  216. package/resources/messages/rcs.mjs.map +1 -1
  217. package/resources/network-coverage.d.mts +1 -1
  218. package/resources/network-coverage.d.mts.map +1 -1
  219. package/resources/network-coverage.d.ts +1 -1
  220. package/resources/network-coverage.d.ts.map +1 -1
  221. package/resources/number-lookup.d.mts +122 -4
  222. package/resources/number-lookup.d.mts.map +1 -1
  223. package/resources/number-lookup.d.ts +122 -4
  224. package/resources/number-lookup.d.ts.map +1 -1
  225. package/resources/phone-numbers/csv-downloads.d.mts +9 -0
  226. package/resources/phone-numbers/csv-downloads.d.mts.map +1 -1
  227. package/resources/phone-numbers/csv-downloads.d.ts +9 -0
  228. package/resources/phone-numbers/csv-downloads.d.ts.map +1 -1
  229. package/resources/phone-numbers/csv-downloads.js +5 -2
  230. package/resources/phone-numbers/csv-downloads.js.map +1 -1
  231. package/resources/phone-numbers/csv-downloads.mjs +5 -2
  232. package/resources/phone-numbers/csv-downloads.mjs.map +1 -1
  233. package/resources/phone-numbers/index.d.mts +2 -2
  234. package/resources/phone-numbers/index.d.mts.map +1 -1
  235. package/resources/phone-numbers/index.d.ts +2 -2
  236. package/resources/phone-numbers/index.d.ts.map +1 -1
  237. package/resources/phone-numbers/index.js.map +1 -1
  238. package/resources/phone-numbers/index.mjs.map +1 -1
  239. package/resources/phone-numbers/jobs.d.mts +266 -15
  240. package/resources/phone-numbers/jobs.d.mts.map +1 -1
  241. package/resources/phone-numbers/jobs.d.ts +266 -15
  242. package/resources/phone-numbers/jobs.d.ts.map +1 -1
  243. package/resources/phone-numbers/jobs.js +1 -1
  244. package/resources/phone-numbers/jobs.js.map +1 -1
  245. package/resources/phone-numbers/jobs.mjs +1 -1
  246. package/resources/phone-numbers/jobs.mjs.map +1 -1
  247. package/resources/phone-numbers/phone-numbers.d.mts +28 -3
  248. package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
  249. package/resources/phone-numbers/phone-numbers.d.ts +28 -3
  250. package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
  251. package/resources/phone-numbers/phone-numbers.js.map +1 -1
  252. package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
  253. package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
  254. package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
  255. package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
  256. package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
  257. package/resources/porting-orders/porting-orders.d.mts +1 -1
  258. package/resources/porting-orders/porting-orders.d.mts.map +1 -1
  259. package/resources/porting-orders/porting-orders.d.ts +1 -1
  260. package/resources/porting-orders/porting-orders.d.ts.map +1 -1
  261. package/resources/porting-orders/porting-orders.js.map +1 -1
  262. package/resources/porting-orders/porting-orders.mjs.map +1 -1
  263. package/resources/porting-phone-numbers.d.mts +1 -1
  264. package/resources/porting-phone-numbers.d.mts.map +1 -1
  265. package/resources/porting-phone-numbers.d.ts +1 -1
  266. package/resources/porting-phone-numbers.d.ts.map +1 -1
  267. package/resources/shared.d.mts +4 -0
  268. package/resources/shared.d.mts.map +1 -1
  269. package/resources/shared.d.ts +4 -0
  270. package/resources/shared.d.ts.map +1 -1
  271. package/resources/speech-to-text/speech-to-text.d.mts +12 -5
  272. package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
  273. package/resources/speech-to-text/speech-to-text.d.ts +12 -5
  274. package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
  275. package/resources/tailscale-subnet-routers.d.mts +233 -0
  276. package/resources/tailscale-subnet-routers.d.mts.map +1 -0
  277. package/resources/tailscale-subnet-routers.d.ts +233 -0
  278. package/resources/tailscale-subnet-routers.d.ts.map +1 -0
  279. package/resources/tailscale-subnet-routers.js +105 -0
  280. package/resources/tailscale-subnet-routers.js.map +1 -0
  281. package/resources/tailscale-subnet-routers.mjs +101 -0
  282. package/resources/tailscale-subnet-routers.mjs.map +1 -0
  283. package/resources/telephony-credentials.d.mts +11 -2
  284. package/resources/telephony-credentials.d.mts.map +1 -1
  285. package/resources/telephony-credentials.d.ts +11 -2
  286. package/resources/telephony-credentials.d.ts.map +1 -1
  287. package/resources/telephony-credentials.js +9 -2
  288. package/resources/telephony-credentials.js.map +1 -1
  289. package/resources/telephony-credentials.mjs +9 -2
  290. package/resources/telephony-credentials.mjs.map +1 -1
  291. package/resources/texml/accounts/accounts.d.mts +2 -2
  292. package/resources/texml/accounts/accounts.d.ts +2 -2
  293. package/resources/texml/accounts/accounts.js +2 -2
  294. package/resources/texml/accounts/accounts.mjs +2 -2
  295. package/resources/texml/accounts/calls/calls.d.mts +49 -14
  296. package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
  297. package/resources/texml/accounts/calls/calls.d.ts +49 -14
  298. package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
  299. package/resources/texml/accounts/calls/calls.js +7 -7
  300. package/resources/texml/accounts/calls/calls.js.map +1 -1
  301. package/resources/texml/accounts/calls/calls.mjs +7 -7
  302. package/resources/texml/accounts/calls/calls.mjs.map +1 -1
  303. package/resources/texml/accounts/calls/recordings-json.d.mts +14 -4
  304. package/resources/texml/accounts/calls/recordings-json.d.mts.map +1 -1
  305. package/resources/texml/accounts/calls/recordings-json.d.ts +14 -4
  306. package/resources/texml/accounts/calls/recordings-json.d.ts.map +1 -1
  307. package/resources/texml/accounts/calls/recordings-json.js +2 -2
  308. package/resources/texml/accounts/calls/recordings-json.mjs +2 -2
  309. package/resources/texml/accounts/calls/recordings.d.mts +10 -2
  310. package/resources/texml/accounts/calls/recordings.d.mts.map +1 -1
  311. package/resources/texml/accounts/calls/recordings.d.ts +10 -2
  312. package/resources/texml/accounts/calls/recordings.d.ts.map +1 -1
  313. package/resources/texml/accounts/calls/recordings.js +4 -1
  314. package/resources/texml/accounts/calls/recordings.js.map +1 -1
  315. package/resources/texml/accounts/calls/recordings.mjs +4 -1
  316. package/resources/texml/accounts/calls/recordings.mjs.map +1 -1
  317. package/resources/texml/accounts/calls/siprec.d.mts +10 -2
  318. package/resources/texml/accounts/calls/siprec.d.mts.map +1 -1
  319. package/resources/texml/accounts/calls/siprec.d.ts +10 -2
  320. package/resources/texml/accounts/calls/siprec.d.ts.map +1 -1
  321. package/resources/texml/accounts/calls/siprec.js +4 -1
  322. package/resources/texml/accounts/calls/siprec.js.map +1 -1
  323. package/resources/texml/accounts/calls/siprec.mjs +4 -1
  324. package/resources/texml/accounts/calls/siprec.mjs.map +1 -1
  325. package/resources/texml/accounts/calls/streams.d.mts +10 -2
  326. package/resources/texml/accounts/calls/streams.d.mts.map +1 -1
  327. package/resources/texml/accounts/calls/streams.d.ts +10 -2
  328. package/resources/texml/accounts/calls/streams.d.ts.map +1 -1
  329. package/resources/texml/accounts/calls/streams.js +4 -1
  330. package/resources/texml/accounts/calls/streams.js.map +1 -1
  331. package/resources/texml/accounts/calls/streams.mjs +4 -1
  332. package/resources/texml/accounts/calls/streams.mjs.map +1 -1
  333. package/resources/texml/accounts/conferences/conferences.d.mts +29 -9
  334. package/resources/texml/accounts/conferences/conferences.d.mts.map +1 -1
  335. package/resources/texml/accounts/conferences/conferences.d.ts +29 -9
  336. package/resources/texml/accounts/conferences/conferences.d.ts.map +1 -1
  337. package/resources/texml/accounts/conferences/conferences.js +5 -5
  338. package/resources/texml/accounts/conferences/conferences.js.map +1 -1
  339. package/resources/texml/accounts/conferences/conferences.mjs +5 -5
  340. package/resources/texml/accounts/conferences/conferences.mjs.map +1 -1
  341. package/resources/texml/accounts/conferences/participants.d.mts +35 -10
  342. package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
  343. package/resources/texml/accounts/conferences/participants.d.ts +35 -10
  344. package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
  345. package/resources/texml/accounts/conferences/participants.js +5 -5
  346. package/resources/texml/accounts/conferences/participants.mjs +5 -5
  347. package/resources/texml/accounts/queues.d.mts +25 -8
  348. package/resources/texml/accounts/queues.d.mts.map +1 -1
  349. package/resources/texml/accounts/queues.d.ts +25 -8
  350. package/resources/texml/accounts/queues.d.ts.map +1 -1
  351. package/resources/texml/accounts/queues.js +7 -5
  352. package/resources/texml/accounts/queues.js.map +1 -1
  353. package/resources/texml/accounts/queues.mjs +7 -5
  354. package/resources/texml/accounts/queues.mjs.map +1 -1
  355. package/resources/texml/accounts/recordings/json.d.mts +14 -4
  356. package/resources/texml/accounts/recordings/json.d.mts.map +1 -1
  357. package/resources/texml/accounts/recordings/json.d.ts +14 -4
  358. package/resources/texml/accounts/recordings/json.d.ts.map +1 -1
  359. package/resources/texml/accounts/recordings/json.js +2 -2
  360. package/resources/texml/accounts/recordings/json.mjs +2 -2
  361. package/resources/texml/accounts/transcriptions/json.d.mts +14 -4
  362. package/resources/texml/accounts/transcriptions/json.d.mts.map +1 -1
  363. package/resources/texml/accounts/transcriptions/json.d.ts +14 -4
  364. package/resources/texml/accounts/transcriptions/json.d.ts.map +1 -1
  365. package/resources/texml/accounts/transcriptions/json.js +2 -2
  366. package/resources/texml/accounts/transcriptions/json.mjs +2 -2
  367. package/resources/text-to-speech/text-to-speech.d.mts +15 -6
  368. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  369. package/resources/text-to-speech/text-to-speech.d.ts +15 -6
  370. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  371. package/resources/tts-integrations/actions.d.mts +4 -0
  372. package/resources/tts-integrations/actions.d.mts.map +1 -0
  373. package/resources/tts-integrations/actions.d.ts +4 -0
  374. package/resources/tts-integrations/actions.d.ts.map +1 -0
  375. package/resources/tts-integrations/actions.js +9 -0
  376. package/resources/tts-integrations/actions.js.map +1 -0
  377. package/resources/tts-integrations/actions.mjs +5 -0
  378. package/resources/tts-integrations/actions.mjs.map +1 -0
  379. package/resources/tts-integrations/index.d.mts +3 -0
  380. package/resources/tts-integrations/index.d.mts.map +1 -0
  381. package/resources/tts-integrations/index.d.ts +3 -0
  382. package/resources/tts-integrations/index.d.ts.map +1 -0
  383. package/resources/tts-integrations/index.js +9 -0
  384. package/resources/tts-integrations/index.js.map +1 -0
  385. package/resources/tts-integrations/index.mjs +4 -0
  386. package/resources/tts-integrations/index.mjs.map +1 -0
  387. package/resources/tts-integrations/tts-integrations.d.mts +10 -0
  388. package/resources/tts-integrations/tts-integrations.d.mts.map +1 -0
  389. package/resources/tts-integrations/tts-integrations.d.ts +10 -0
  390. package/resources/tts-integrations/tts-integrations.d.ts.map +1 -0
  391. package/resources/tts-integrations/tts-integrations.js +17 -0
  392. package/resources/tts-integrations/tts-integrations.js.map +1 -0
  393. package/resources/tts-integrations/tts-integrations.mjs +12 -0
  394. package/resources/tts-integrations/tts-integrations.mjs.map +1 -0
  395. package/resources/tts-integrations.d.mts +2 -0
  396. package/resources/tts-integrations.d.mts.map +1 -0
  397. package/resources/tts-integrations.d.ts +2 -0
  398. package/resources/tts-integrations.d.ts.map +1 -0
  399. package/resources/tts-integrations.js +6 -0
  400. package/resources/tts-integrations.js.map +1 -0
  401. package/resources/tts-integrations.mjs +3 -0
  402. package/resources/tts-integrations.mjs.map +1 -0
  403. package/resources/uac-connections/uac-connections.d.mts +36 -6
  404. package/resources/uac-connections/uac-connections.d.mts.map +1 -1
  405. package/resources/uac-connections/uac-connections.d.ts +36 -6
  406. package/resources/uac-connections/uac-connections.d.ts.map +1 -1
  407. package/resources/uac-connections/uac-connections.js.map +1 -1
  408. package/resources/uac-connections/uac-connections.mjs.map +1 -1
  409. package/resources/voice-clones.d.mts +57 -10
  410. package/resources/voice-clones.d.mts.map +1 -1
  411. package/resources/voice-clones.d.ts +57 -10
  412. package/resources/voice-clones.d.ts.map +1 -1
  413. package/resources/voice-clones.js +6 -4
  414. package/resources/voice-clones.js.map +1 -1
  415. package/resources/voice-clones.mjs +6 -4
  416. package/resources/voice-clones.mjs.map +1 -1
  417. package/resources/webhooks.d.mts +433 -81
  418. package/resources/webhooks.d.mts.map +1 -1
  419. package/resources/webhooks.d.ts +433 -81
  420. package/resources/webhooks.d.ts.map +1 -1
  421. package/resources/whatsapp/hosted-signups.d.mts +165 -0
  422. package/resources/whatsapp/hosted-signups.d.mts.map +1 -0
  423. package/resources/whatsapp/hosted-signups.d.ts +165 -0
  424. package/resources/whatsapp/hosted-signups.d.ts.map +1 -0
  425. package/resources/whatsapp/hosted-signups.js +56 -0
  426. package/resources/whatsapp/hosted-signups.js.map +1 -0
  427. package/resources/whatsapp/hosted-signups.mjs +52 -0
  428. package/resources/whatsapp/hosted-signups.mjs.map +1 -0
  429. package/resources/whatsapp/index.d.mts +1 -0
  430. package/resources/whatsapp/index.d.mts.map +1 -1
  431. package/resources/whatsapp/index.d.ts +1 -0
  432. package/resources/whatsapp/index.d.ts.map +1 -1
  433. package/resources/whatsapp/index.js +3 -1
  434. package/resources/whatsapp/index.js.map +1 -1
  435. package/resources/whatsapp/index.mjs +1 -0
  436. package/resources/whatsapp/index.mjs.map +1 -1
  437. package/resources/whatsapp/whatsapp.d.mts +4 -0
  438. package/resources/whatsapp/whatsapp.d.mts.map +1 -1
  439. package/resources/whatsapp/whatsapp.d.ts +4 -0
  440. package/resources/whatsapp/whatsapp.d.ts.map +1 -1
  441. package/resources/whatsapp/whatsapp.js +4 -0
  442. package/resources/whatsapp/whatsapp.js.map +1 -1
  443. package/resources/whatsapp/whatsapp.mjs +4 -0
  444. package/resources/whatsapp/whatsapp.mjs.map +1 -1
  445. package/src/client.ts +64 -6
  446. package/src/resources/addresses/addresses.ts +22 -2
  447. package/src/resources/ai/ai.ts +2 -0
  448. package/src/resources/ai/assistants/assistants.ts +191 -31
  449. package/src/resources/ai/assistants/versions.ts +11 -6
  450. package/src/resources/ai/audio.ts +35 -10
  451. package/src/resources/ai/avatars.ts +22 -8
  452. package/src/resources/ai/index.ts +1 -0
  453. package/src/resources/ai/tools.ts +16 -0
  454. package/src/resources/calls/actions.ts +281 -10
  455. package/src/resources/calls/calls.ts +2 -0
  456. package/src/resources/calls/index.ts +1 -0
  457. package/src/resources/compute/compute.ts +105 -0
  458. package/src/resources/compute/funcs/export.ts +3 -0
  459. package/src/resources/compute/funcs/funcs.ts +99 -0
  460. package/src/resources/compute/funcs/index.ts +3 -0
  461. package/src/resources/compute/index.ts +4 -1
  462. package/src/resources/credential-connections/credential-connections.ts +41 -8
  463. package/src/resources/dial-metrics.ts +185 -0
  464. package/src/resources/dir/dir.ts +4 -2
  465. package/src/resources/dir/references.ts +15 -9
  466. package/src/resources/dir/verify-email.ts +17 -5
  467. package/src/resources/email-domains/email-domains.ts +1 -1
  468. package/src/resources/enterprises/verify-email.ts +1 -1
  469. package/src/resources/fqdn-connections/fqdn-connections.ts +41 -8
  470. package/src/resources/index.ts +23 -3
  471. package/src/resources/ip-connections.ts +39 -6
  472. package/src/resources/meeting-sessions/actions.ts +13 -7
  473. package/src/resources/meeting-sessions/index.ts +0 -1
  474. package/src/resources/meeting-sessions/meeting-sessions.ts +48 -79
  475. package/src/resources/messages/messages.ts +786 -125
  476. package/src/resources/messages/rcs.ts +37 -7
  477. package/src/resources/network-coverage.ts +5 -1
  478. package/src/resources/number-lookup.ts +154 -4
  479. package/src/resources/phone-numbers/csv-downloads.ts +15 -2
  480. package/src/resources/phone-numbers/index.ts +3 -1
  481. package/src/resources/phone-numbers/jobs.ts +320 -16
  482. package/src/resources/phone-numbers/phone-numbers.ts +38 -2
  483. package/src/resources/porting-orders/phone-number-blocks.ts +1 -0
  484. package/src/resources/porting-orders/porting-orders.ts +1 -0
  485. package/src/resources/porting-phone-numbers.ts +1 -0
  486. package/src/resources/shared.ts +5 -0
  487. package/src/resources/speech-to-text/speech-to-text.ts +12 -4
  488. package/src/resources/tailscale-subnet-routers.ts +303 -0
  489. package/src/resources/telephony-credentials.ts +24 -2
  490. package/src/resources/texml/accounts/accounts.ts +2 -2
  491. package/src/resources/texml/accounts/calls/calls.ts +49 -14
  492. package/src/resources/texml/accounts/calls/recordings-json.ts +14 -4
  493. package/src/resources/texml/accounts/calls/recordings.ts +10 -2
  494. package/src/resources/texml/accounts/calls/siprec.ts +10 -2
  495. package/src/resources/texml/accounts/calls/streams.ts +10 -2
  496. package/src/resources/texml/accounts/conferences/conferences.ts +29 -9
  497. package/src/resources/texml/accounts/conferences/participants.ts +35 -10
  498. package/src/resources/texml/accounts/queues.ts +25 -8
  499. package/src/resources/texml/accounts/recordings/json.ts +14 -4
  500. package/src/resources/texml/accounts/transcriptions/json.ts +14 -4
  501. package/src/resources/text-to-speech/text-to-speech.ts +15 -6
  502. package/src/resources/tts-integrations/actions.ts +5 -0
  503. package/src/resources/tts-integrations/index.ts +4 -0
  504. package/src/resources/tts-integrations/tts-integrations.ts +15 -0
  505. package/src/resources/tts-integrations.ts +3 -0
  506. package/src/resources/uac-connections/uac-connections.ts +39 -6
  507. package/src/resources/voice-clones.ts +65 -9
  508. package/src/resources/webhooks.ts +517 -95
  509. package/src/resources/whatsapp/hosted-signups.ts +221 -0
  510. package/src/resources/whatsapp/index.ts +9 -0
  511. package/src/resources/whatsapp/whatsapp.ts +22 -0
  512. package/src/version.ts +1 -1
  513. package/version.d.mts +1 -1
  514. package/version.d.ts +1 -1
  515. package/version.js +1 -1
  516. package/version.mjs +1 -1
@@ -0,0 +1,303 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from '../core/pagination';
6
+ import { RequestOptions } from '../internal/request-options';
7
+ import { path } from '../internal/utils/path';
8
+
9
+ /**
10
+ * Tailscale Subnet Router operations
11
+ */
12
+ export class TailscaleSubnetRouters extends APIResource {
13
+ /**
14
+ * Returns a paginated list of the Tailscale Subnet Routers on the account, with
15
+ * support for filtering by Network.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * // Automatically fetches more pages as needed.
20
+ * for await (const tailscaleSubnetRouter of client.tailscaleSubnetRouters.list()) {
21
+ * // ...
22
+ * }
23
+ * ```
24
+ */
25
+ list(
26
+ query: TailscaleSubnetRouterListParams | null | undefined = {},
27
+ options?: RequestOptions,
28
+ ): PagePromise<TailscaleSubnetRoutersDefaultFlatPagination, TailscaleSubnetRouter> {
29
+ return this._client.getAPIList(
30
+ '/tailscale_subnet_routers',
31
+ DefaultFlatPagination<TailscaleSubnetRouter>,
32
+ { query, ...options },
33
+ );
34
+ }
35
+
36
+ /**
37
+ * Creates a Tailscale Subnet Router on a Network and enrolls it in the user's
38
+ * tailnet with the auth key. The response returns the router with `status`
39
+ * `provisioning`. Poll `GET /tailscale_subnet_routers/{id}` until it is
40
+ * `provisioned`. Then approve its routes in the tailnet, unless an auto-approver
41
+ * covers them.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const tailscaleSubnetRouter =
46
+ * await client.tailscaleSubnetRouters.create({
47
+ * advertised_routes: ['172.27.0.0/24'],
48
+ * auth_key: 'tskey-auth-k1AbCdEfGh2IjKlMnOpQrStUv',
49
+ * name: 'tailnet-ashburn',
50
+ * network_id: '0de011ae-ee53-4df4-ba96-754728eb5aad',
51
+ * region_code: 'ashburn-va',
52
+ * });
53
+ * ```
54
+ */
55
+ create(
56
+ body: TailscaleSubnetRouterCreateParams,
57
+ options?: RequestOptions,
58
+ ): APIPromise<TailscaleSubnetRouterCreateResponse> {
59
+ return this._client.post('/tailscale_subnet_routers', { body, ...options });
60
+ }
61
+
62
+ /**
63
+ * Removes the router from the Network and logs it out of the tailnet. The response
64
+ * returns the router with `status` `deleting`. The record disappears once removal
65
+ * completes. A machine entry can remain in the tailnet's admin console until it is
66
+ * removed there.
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * const tailscaleSubnetRouter =
71
+ * await client.tailscaleSubnetRouters.delete(
72
+ * '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
73
+ * );
74
+ * ```
75
+ */
76
+ delete(id: string, options?: RequestOptions): APIPromise<TailscaleSubnetRouterDeleteResponse> {
77
+ return this._client.delete(path`/tailscale_subnet_routers/${id}`, options);
78
+ }
79
+
80
+ /**
81
+ * Returns the details of a single Tailscale Subnet Router by its identifier,
82
+ * including its enrollment state.
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * const tailscaleSubnetRouter =
87
+ * await client.tailscaleSubnetRouters.retrieve(
88
+ * '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
89
+ * );
90
+ * ```
91
+ */
92
+ retrieve(id: string, options?: RequestOptions): APIPromise<TailscaleSubnetRouterRetrieveResponse> {
93
+ return this._client.get(path`/tailscale_subnet_routers/${id}`, options);
94
+ }
95
+
96
+ /**
97
+ * Renames the router, changes its advertised routes, or retries a failed
98
+ * enrollment. Any change queues a new provisioning run and returns the router with
99
+ * `status` `provisioning`. The router keeps its machine identity on the tailnet.
100
+ * Send an empty object to retry a `failed` router with its stored auth key.
101
+ * Include a new `auth_key` only while the router has never enrolled. The router's
102
+ * Network and region cannot change: create a new router instead.
103
+ *
104
+ * @example
105
+ * ```ts
106
+ * const tailscaleSubnetRouter =
107
+ * await client.tailscaleSubnetRouters.update(
108
+ * '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
109
+ * {
110
+ * advertised_routes: ['172.27.0.0/24', '172.27.1.0/24'],
111
+ * },
112
+ * );
113
+ * ```
114
+ */
115
+ update(
116
+ id: string,
117
+ body: TailscaleSubnetRouterUpdateParams,
118
+ options?: RequestOptions,
119
+ ): APIPromise<TailscaleSubnetRouterUpdateResponse> {
120
+ return this._client.patch(path`/tailscale_subnet_routers/${id}`, { body, ...options });
121
+ }
122
+ }
123
+
124
+ export type TailscaleSubnetRoutersDefaultFlatPagination = DefaultFlatPagination<TailscaleSubnetRouter>;
125
+
126
+ export interface TailscaleSubnetRouter {
127
+ /**
128
+ * Identifies the resource.
129
+ */
130
+ id?: string;
131
+
132
+ /**
133
+ * IPv4 subnets of the Network that the router advertises to the tailnet. Each
134
+ * entry is a canonical CIDR that the Network routes. Default, loopback,
135
+ * link-local, multicast, and Tailscale (`100.64.0.0/10`) ranges are rejected. So
136
+ * are ranges that overlap the router's own, `172.27.254.0/24` and `198.18.0.0/20`.
137
+ */
138
+ advertised_routes?: Array<string>;
139
+
140
+ /**
141
+ * ISO 8601 formatted date-time indicating when the resource was created.
142
+ */
143
+ created_at?: string;
144
+
145
+ /**
146
+ * The router's address on the Network, from `172.27.254.0/24`. Tailnet traffic
147
+ * enters the Network from this address.
148
+ */
149
+ customer_address?: string;
150
+
151
+ /**
152
+ * The router's node id on the tailnet. Set once the router has enrolled.
153
+ */
154
+ device_id?: string | null;
155
+
156
+ /**
157
+ * A user specified name for the router.
158
+ */
159
+ name?: string;
160
+
161
+ /**
162
+ * The id of the Network the router is attached to.
163
+ */
164
+ network_id?: string;
165
+
166
+ /**
167
+ * Identifies the type of the resource.
168
+ */
169
+ record_type?: string;
170
+
171
+ /**
172
+ * The code of the region the router is created in. `GET /network_coverage` lists
173
+ * the regions whose `available_services` include `tailscale_subnet_router`.
174
+ */
175
+ region_code?: string;
176
+
177
+ /**
178
+ * `provisioning`: Telnyx is creating the router or applying a change.
179
+ * `provisioned`: the router is on the tailnet and advertises its routes; the
180
+ * tailnet still approves them. `failed`: enrollment did not complete, and `PATCH`
181
+ * retries it. `deleting`: the router is being removed.
182
+ */
183
+ status?: 'provisioning' | 'provisioned' | 'failed' | 'deleting';
184
+
185
+ /**
186
+ * The name of the tailnet the router is enrolled in. Set once the router has
187
+ * enrolled.
188
+ */
189
+ tailnet_name?: string | null;
190
+
191
+ /**
192
+ * The router's addresses on the tailnet. Empty until the router has enrolled.
193
+ */
194
+ tailscale_ips?: Array<string>;
195
+
196
+ /**
197
+ * ISO 8601 formatted date-time indicating when the resource was updated.
198
+ */
199
+ updated_at?: string;
200
+ }
201
+
202
+ export interface TailscaleSubnetRouterCreateResponse {
203
+ data?: TailscaleSubnetRouter;
204
+ }
205
+
206
+ export interface TailscaleSubnetRouterRetrieveResponse {
207
+ data?: TailscaleSubnetRouter;
208
+ }
209
+
210
+ export interface TailscaleSubnetRouterUpdateResponse {
211
+ data?: TailscaleSubnetRouter;
212
+ }
213
+
214
+ export interface TailscaleSubnetRouterDeleteResponse {
215
+ data?: TailscaleSubnetRouter;
216
+ }
217
+
218
+ export interface TailscaleSubnetRouterListParams extends DefaultFlatPaginationParams {
219
+ /**
220
+ * Consolidated filter parameter (deepObject style). Originally: filter[network_id]
221
+ */
222
+ filter?: TailscaleSubnetRouterListParams.Filter;
223
+ }
224
+
225
+ export namespace TailscaleSubnetRouterListParams {
226
+ /**
227
+ * Consolidated filter parameter (deepObject style). Originally: filter[network_id]
228
+ */
229
+ export interface Filter {
230
+ /**
231
+ * The id of the Network to filter on.
232
+ */
233
+ network_id?: string;
234
+ }
235
+ }
236
+
237
+ export interface TailscaleSubnetRouterCreateParams {
238
+ /**
239
+ * IPv4 subnets of the Network that the router advertises to the tailnet. Each
240
+ * entry is a canonical CIDR that the Network routes. Default, loopback,
241
+ * link-local, multicast, and Tailscale (`100.64.0.0/10`) ranges are rejected. So
242
+ * are ranges that overlap the router's own, `172.27.254.0/24` and `198.18.0.0/20`.
243
+ */
244
+ advertised_routes: Array<string>;
245
+
246
+ /**
247
+ * A Tailscale auth key that enrolls the router in the user's tailnet: reusable,
248
+ * pre-approved, tagged, and not ephemeral. Telnyx stores it encrypted until
249
+ * enrollment succeeds, then discards it. It is never returned.
250
+ */
251
+ auth_key: string;
252
+
253
+ /**
254
+ * A user specified name for the router.
255
+ */
256
+ name: string;
257
+
258
+ /**
259
+ * The id of the Network to attach the router to.
260
+ */
261
+ network_id: string;
262
+
263
+ /**
264
+ * The code of the region to create the router in. `GET /network_coverage` lists
265
+ * the regions whose `available_services` include `tailscale_subnet_router`.
266
+ */
267
+ region_code: string;
268
+ }
269
+
270
+ export interface TailscaleSubnetRouterUpdateParams {
271
+ /**
272
+ * IPv4 subnets of the Network that the router advertises to the tailnet. Each
273
+ * entry is a canonical CIDR that the Network routes. Default, loopback,
274
+ * link-local, multicast, and Tailscale (`100.64.0.0/10`) ranges are rejected. So
275
+ * are ranges that overlap the router's own, `172.27.254.0/24` and `198.18.0.0/20`.
276
+ */
277
+ advertised_routes?: Array<string>;
278
+
279
+ /**
280
+ * A replacement Tailscale auth key. Accepted only while the router has never
281
+ * enrolled, for example after a `failed` enrollment. Never returned.
282
+ */
283
+ auth_key?: string;
284
+
285
+ /**
286
+ * A user specified name for the router.
287
+ */
288
+ name?: string;
289
+ }
290
+
291
+ export declare namespace TailscaleSubnetRouters {
292
+ export {
293
+ type TailscaleSubnetRouter as TailscaleSubnetRouter,
294
+ type TailscaleSubnetRouterCreateResponse as TailscaleSubnetRouterCreateResponse,
295
+ type TailscaleSubnetRouterRetrieveResponse as TailscaleSubnetRouterRetrieveResponse,
296
+ type TailscaleSubnetRouterUpdateResponse as TailscaleSubnetRouterUpdateResponse,
297
+ type TailscaleSubnetRouterDeleteResponse as TailscaleSubnetRouterDeleteResponse,
298
+ type TailscaleSubnetRoutersDefaultFlatPagination as TailscaleSubnetRoutersDefaultFlatPagination,
299
+ type TailscaleSubnetRouterListParams as TailscaleSubnetRouterListParams,
300
+ type TailscaleSubnetRouterCreateParams as TailscaleSubnetRouterCreateParams,
301
+ type TailscaleSubnetRouterUpdateParams as TailscaleSubnetRouterUpdateParams,
302
+ };
303
+ }
@@ -102,10 +102,21 @@ export class TelephonyCredentials extends APIResource {
102
102
  * await client.telephonyCredentials.createToken('id');
103
103
  * ```
104
104
  */
105
- createToken(id: string, options?: RequestOptions): APIPromise<string> {
105
+ createToken(
106
+ id: string,
107
+ params: TelephonyCredentialCreateTokenParams | null | undefined = {},
108
+ options?: RequestOptions,
109
+ ): APIPromise<string> {
110
+ const { 'Idempotency-Key': idempotencyKey } = params ?? {};
106
111
  return this._client.post(path`/telephony_credentials/${id}/token`, {
107
112
  ...options,
108
- headers: buildHeaders([{ Accept: 'text/plain' }, options?.headers]),
113
+ headers: buildHeaders([
114
+ {
115
+ Accept: 'text/plain',
116
+ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined),
117
+ },
118
+ options?.headers,
119
+ ]),
109
120
  });
110
121
  }
111
122
  }
@@ -263,6 +274,16 @@ export interface TelephonyCredentialUpdateParams {
263
274
  tag?: string;
264
275
  }
265
276
 
277
+ export interface TelephonyCredentialCreateTokenParams {
278
+ /**
279
+ * Unique key for safely retrying the same logical request. Generate a UUID v4 for
280
+ * each operation and reuse it only when retrying that operation with the same
281
+ * request body. Valid characters: A-Z, a-z, 0-9, -, and \_. Length: 1-255
282
+ * characters. Do not include sensitive data in the key.
283
+ */
284
+ 'Idempotency-Key'?: string;
285
+ }
286
+
266
287
  export declare namespace TelephonyCredentials {
267
288
  export {
268
289
  type TelephonyCredential as TelephonyCredential,
@@ -275,5 +296,6 @@ export declare namespace TelephonyCredentials {
275
296
  type TelephonyCredentialListParams as TelephonyCredentialListParams,
276
297
  type TelephonyCredentialCreateParams as TelephonyCredentialCreateParams,
277
298
  type TelephonyCredentialUpdateParams as TelephonyCredentialUpdateParams,
299
+ type TelephonyCredentialCreateTokenParams as TelephonyCredentialCreateTokenParams,
278
300
  };
279
301
  }
@@ -67,7 +67,7 @@ export class Accounts extends APIResource {
67
67
  * ```ts
68
68
  * const texmlGetCallRecordingsResponseBody =
69
69
  * await client.texml.accounts.retrieveRecordingsJson(
70
- * 'account_sid',
70
+ * 'f5586561-8ff0-4291-a51b-c7dfe4139ff9',
71
71
  * );
72
72
  * ```
73
73
  */
@@ -86,7 +86,7 @@ export class Accounts extends APIResource {
86
86
  * ```ts
87
87
  * const response =
88
88
  * await client.texml.accounts.retrieveTranscriptionsJson(
89
- * 'account_sid',
89
+ * 'f5586561-8ff0-4291-a51b-c7dfe4139ff9',
90
90
  * );
91
91
  * ```
92
92
  */
@@ -39,7 +39,7 @@ export class Calls extends APIResource {
39
39
  * ```ts
40
40
  * const response =
41
41
  * await client.texml.accounts.calls.retrieveCalls(
42
- * 'account_sid',
42
+ * 'f5586561-8ff0-4291-a51b-c7dfe4139ff9',
43
43
  * );
44
44
  * ```
45
45
  */
@@ -63,12 +63,12 @@ export class Calls extends APIResource {
63
63
 
64
64
  /**
65
65
  * Initiate an outbound TeXML call. Telnyx will request TeXML from the XML Request
66
- * URL configured for the connection in the Mission Control Portal.
66
+ * URL configured for the TeXML Application in the Mission Control Portal.
67
67
  *
68
68
  * @example
69
69
  * ```ts
70
70
  * const response = await client.texml.accounts.calls.calls(
71
- * 'account_sid',
71
+ * 'f5586561-8ff0-4291-a51b-c7dfe4139ff9',
72
72
  * { body: { Url: 'https://www.example.com/texml.xml' } },
73
73
  * );
74
74
  * ```
@@ -90,7 +90,7 @@ export class Calls extends APIResource {
90
90
  * ```ts
91
91
  * const callResource =
92
92
  * await client.texml.accounts.calls.retrieve('call_sid', {
93
- * account_sid: 'account_sid',
93
+ * account_sid: 'f5586561-8ff0-4291-a51b-c7dfe4139ff9',
94
94
  * });
95
95
  * ```
96
96
  */
@@ -107,7 +107,7 @@ export class Calls extends APIResource {
107
107
  * ```ts
108
108
  * const callResource =
109
109
  * await client.texml.accounts.calls.update('call_sid', {
110
- * account_sid: 'account_sid',
110
+ * account_sid: 'f5586561-8ff0-4291-a51b-c7dfe4139ff9',
111
111
  * });
112
112
  * ```
113
113
  */
@@ -128,7 +128,7 @@ export class Calls extends APIResource {
128
128
  * ```ts
129
129
  * const response =
130
130
  * await client.texml.accounts.calls.siprecJson('call_sid', {
131
- * account_sid: 'account_sid',
131
+ * account_sid: 'f5586561-8ff0-4291-a51b-c7dfe4139ff9',
132
132
  * });
133
133
  * ```
134
134
  */
@@ -153,7 +153,7 @@ export class Calls extends APIResource {
153
153
  * const response =
154
154
  * await client.texml.accounts.calls.streamsJson(
155
155
  * 'call_sid',
156
- * { account_sid: 'account_sid' },
156
+ * { account_sid: 'f5586561-8ff0-4291-a51b-c7dfe4139ff9' },
157
157
  * );
158
158
  * ```
159
159
  */
@@ -512,7 +512,12 @@ export namespace CallCallsParams {
512
512
  Url: string;
513
513
 
514
514
  /**
515
- * The ID of the TeXML Application.
515
+ * The ID of the TeXML Application that will handle the call, for example
516
+ * `1293384261075731499`. The `ApplicationSid` name is kept for Twilio API
517
+ * compatibility, but the value is the numeric ID of one of your TeXML Applications
518
+ * (see the TeXML Applications API or the Mission Control Portal), not a Twilio
519
+ * `AP...` SID. If `Url` and `Texml` are omitted, Telnyx fetches instructions from
520
+ * the XML Request URL configured on this application.
516
521
  */
517
522
  ApplicationSid?: string;
518
523
 
@@ -842,7 +847,12 @@ export namespace CallCallsParams {
842
847
  Texml: string;
843
848
 
844
849
  /**
845
- * The ID of the TeXML Application.
850
+ * The ID of the TeXML Application that will handle the call, for example
851
+ * `1293384261075731499`. The `ApplicationSid` name is kept for Twilio API
852
+ * compatibility, but the value is the numeric ID of one of your TeXML Applications
853
+ * (see the TeXML Applications API or the Mission Control Portal), not a Twilio
854
+ * `AP...` SID. If `Url` and `Texml` are omitted, Telnyx fetches instructions from
855
+ * the XML Request URL configured on this application.
846
856
  */
847
857
  ApplicationSid?: string;
848
858
 
@@ -1166,7 +1176,12 @@ export namespace CallCallsParams {
1166
1176
 
1167
1177
  export interface ApplicationDefault {
1168
1178
  /**
1169
- * The ID of the TeXML Application.
1179
+ * The ID of the TeXML Application that will handle the call, for example
1180
+ * `1293384261075731499`. The `ApplicationSid` name is kept for Twilio API
1181
+ * compatibility, but the value is the numeric ID of one of your TeXML Applications
1182
+ * (see the TeXML Applications API or the Mission Control Portal), not a Twilio
1183
+ * `AP...` SID. If `Url` and `Texml` are omitted, Telnyx fetches instructions from
1184
+ * the XML Request URL configured on this application.
1170
1185
  */
1171
1186
  ApplicationSid?: string;
1172
1187
 
@@ -1493,14 +1508,24 @@ export namespace CallCallsParams {
1493
1508
 
1494
1509
  export interface CallRetrieveParams {
1495
1510
  /**
1496
- * The id of the account the resource belongs to.
1511
+ * The UUID of the Telnyx account that owns the resource, for example
1512
+ * `f5586561-8ff0-4291-a51b-c7dfe4139ff9`. The `account_sid` path segment is kept
1513
+ * for Twilio API compatibility, but the value is a Telnyx account UUID, not a
1514
+ * Twilio `AC...` SID. It must match the account that owns the API key used to
1515
+ * authenticate the request, otherwise the endpoint returns `404`. The same value
1516
+ * is sent as `AccountSid` in TeXML webhooks.
1497
1517
  */
1498
1518
  account_sid: string;
1499
1519
  }
1500
1520
 
1501
1521
  export interface CallUpdateParams {
1502
1522
  /**
1503
- * Path param: The id of the account the resource belongs to.
1523
+ * Path param: The UUID of the Telnyx account that owns the resource, for example
1524
+ * `f5586561-8ff0-4291-a51b-c7dfe4139ff9`. The `account_sid` path segment is kept
1525
+ * for Twilio API compatibility, but the value is a Telnyx account UUID, not a
1526
+ * Twilio `AC...` SID. It must match the account that owns the API key used to
1527
+ * authenticate the request, otherwise the endpoint returns `404`. The same value
1528
+ * is sent as `AccountSid` in TeXML webhooks.
1504
1529
  */
1505
1530
  account_sid: string;
1506
1531
 
@@ -1551,7 +1576,12 @@ export interface CallUpdateParams {
1551
1576
 
1552
1577
  export interface CallSiprecJsonParams {
1553
1578
  /**
1554
- * Path param: The id of the account the resource belongs to.
1579
+ * Path param: The UUID of the Telnyx account that owns the resource, for example
1580
+ * `f5586561-8ff0-4291-a51b-c7dfe4139ff9`. The `account_sid` path segment is kept
1581
+ * for Twilio API compatibility, but the value is a Telnyx account UUID, not a
1582
+ * Twilio `AC...` SID. It must match the account that owns the API key used to
1583
+ * authenticate the request, otherwise the endpoint returns `404`. The same value
1584
+ * is sent as `AccountSid` in TeXML webhooks.
1555
1585
  */
1556
1586
  account_sid: string;
1557
1587
 
@@ -1611,7 +1641,12 @@ export interface CallSiprecJsonParams {
1611
1641
 
1612
1642
  export interface CallStreamsJsonParams {
1613
1643
  /**
1614
- * Path param: The id of the account the resource belongs to.
1644
+ * Path param: The UUID of the Telnyx account that owns the resource, for example
1645
+ * `f5586561-8ff0-4291-a51b-c7dfe4139ff9`. The `account_sid` path segment is kept
1646
+ * for Twilio API compatibility, but the value is a Telnyx account UUID, not a
1647
+ * Twilio `AC...` SID. It must match the account that owns the API key used to
1648
+ * authenticate the request, otherwise the endpoint returns `404`. The same value
1649
+ * is sent as `AccountSid` in TeXML webhooks.
1615
1650
  */
1616
1651
  account_sid: string;
1617
1652
 
@@ -19,7 +19,7 @@ export class RecordingsJson extends APIResource {
19
19
  * const texmlGetCallRecordingsResponseBody =
20
20
  * await client.texml.accounts.calls.recordingsJson.retrieveRecordingsJson(
21
21
  * 'call_sid',
22
- * { account_sid: 'account_sid' },
22
+ * { account_sid: 'f5586561-8ff0-4291-a51b-c7dfe4139ff9' },
23
23
  * );
24
24
  * ```
25
25
  */
@@ -40,7 +40,7 @@ export class RecordingsJson extends APIResource {
40
40
  * const texmlCreateCallRecordingResponseBody =
41
41
  * await client.texml.accounts.calls.recordingsJson.recordingsJson(
42
42
  * 'call_sid',
43
- * { account_sid: 'account_sid' },
43
+ * { account_sid: 'f5586561-8ff0-4291-a51b-c7dfe4139ff9' },
44
44
  * );
45
45
  * ```
46
46
  */
@@ -171,14 +171,24 @@ export type TwimlRecordingChannels = 1 | 2;
171
171
 
172
172
  export interface RecordingsJsonRetrieveRecordingsJsonParams {
173
173
  /**
174
- * The id of the account the resource belongs to.
174
+ * The UUID of the Telnyx account that owns the resource, for example
175
+ * `f5586561-8ff0-4291-a51b-c7dfe4139ff9`. The `account_sid` path segment is kept
176
+ * for Twilio API compatibility, but the value is a Telnyx account UUID, not a
177
+ * Twilio `AC...` SID. It must match the account that owns the API key used to
178
+ * authenticate the request, otherwise the endpoint returns `404`. The same value
179
+ * is sent as `AccountSid` in TeXML webhooks.
175
180
  */
176
181
  account_sid: string;
177
182
  }
178
183
 
179
184
  export interface RecordingsJsonRecordingsJsonParams {
180
185
  /**
181
- * Path param: The id of the account the resource belongs to.
186
+ * Path param: The UUID of the Telnyx account that owns the resource, for example
187
+ * `f5586561-8ff0-4291-a51b-c7dfe4139ff9`. The `account_sid` path segment is kept
188
+ * for Twilio API compatibility, but the value is a Telnyx account UUID, not a
189
+ * Twilio `AC...` SID. It must match the account that owns the API key used to
190
+ * authenticate the request, otherwise the endpoint returns `404`. The same value
191
+ * is sent as `AccountSid` in TeXML webhooks.
182
192
  */
183
193
  account_sid: string;
184
194
 
@@ -19,7 +19,10 @@ export class Recordings extends APIResource {
19
19
  * const texmlCreateCallRecordingResponseBody =
20
20
  * await client.texml.accounts.calls.recordings.recordingSidJson(
21
21
  * '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
22
- * { account_sid: 'account_sid', call_sid: 'call_sid' },
22
+ * {
23
+ * account_sid: 'f5586561-8ff0-4291-a51b-c7dfe4139ff9',
24
+ * call_sid: 'call_sid',
25
+ * },
23
26
  * );
24
27
  * ```
25
28
  */
@@ -42,7 +45,12 @@ export class Recordings extends APIResource {
42
45
 
43
46
  export interface RecordingRecordingSidJsonParams {
44
47
  /**
45
- * Path param: The id of the account the resource belongs to.
48
+ * Path param: The UUID of the Telnyx account that owns the resource, for example
49
+ * `f5586561-8ff0-4291-a51b-c7dfe4139ff9`. The `account_sid` path segment is kept
50
+ * for Twilio API compatibility, but the value is a Telnyx account UUID, not a
51
+ * Twilio `AC...` SID. It must match the account that owns the API key used to
52
+ * authenticate the request, otherwise the endpoint returns `404`. The same value
53
+ * is sent as `AccountSid` in TeXML webhooks.
46
54
  */
47
55
  account_sid: string;
48
56
 
@@ -18,7 +18,10 @@ export class Siprec extends APIResource {
18
18
  * const response =
19
19
  * await client.texml.accounts.calls.siprec.siprecSidJson(
20
20
  * 'siprec_sid',
21
- * { account_sid: 'account_sid', call_sid: 'call_sid' },
21
+ * {
22
+ * account_sid: 'f5586561-8ff0-4291-a51b-c7dfe4139ff9',
23
+ * call_sid: 'call_sid',
24
+ * },
22
25
  * );
23
26
  * ```
24
27
  */
@@ -78,7 +81,12 @@ export interface SiprecSiprecSidJsonResponse {
78
81
 
79
82
  export interface SiprecSiprecSidJsonParams {
80
83
  /**
81
- * Path param: The id of the account the resource belongs to.
84
+ * Path param: The UUID of the Telnyx account that owns the resource, for example
85
+ * `f5586561-8ff0-4291-a51b-c7dfe4139ff9`. The `account_sid` path segment is kept
86
+ * for Twilio API compatibility, but the value is a Telnyx account UUID, not a
87
+ * Twilio `AC...` SID. It must match the account that owns the API key used to
88
+ * authenticate the request, otherwise the endpoint returns `404`. The same value
89
+ * is sent as `AccountSid` in TeXML webhooks.
82
90
  */
83
91
  account_sid: string;
84
92
 
@@ -18,7 +18,10 @@ export class Streams extends APIResource {
18
18
  * const response =
19
19
  * await client.texml.accounts.calls.streams.streamingSidJson(
20
20
  * '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
21
- * { account_sid: 'account_sid', call_sid: 'call_sid' },
21
+ * {
22
+ * account_sid: 'f5586561-8ff0-4291-a51b-c7dfe4139ff9',
23
+ * call_sid: 'call_sid',
24
+ * },
22
25
  * );
23
26
  * ```
24
27
  */
@@ -64,7 +67,12 @@ export interface StreamStreamingSidJsonResponse {
64
67
 
65
68
  export interface StreamStreamingSidJsonParams {
66
69
  /**
67
- * Path param: The id of the account the resource belongs to.
70
+ * Path param: The UUID of the Telnyx account that owns the resource, for example
71
+ * `f5586561-8ff0-4291-a51b-c7dfe4139ff9`. The `account_sid` path segment is kept
72
+ * for Twilio API compatibility, but the value is a Telnyx account UUID, not a
73
+ * Twilio `AC...` SID. It must match the account that owns the API key used to
74
+ * authenticate the request, otherwise the endpoint returns `404`. The same value
75
+ * is sent as `AccountSid` in TeXML webhooks.
68
76
  */
69
77
  account_sid: string;
70
78