telnyx 7.27.0 → 7.29.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 (599) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +46 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +46 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +40 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +40 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/addresses/actions.d.mts +19 -4
  12. package/resources/addresses/actions.d.mts.map +1 -1
  13. package/resources/addresses/actions.d.ts +19 -4
  14. package/resources/addresses/actions.d.ts.map +1 -1
  15. package/resources/ai/ai.d.mts +4 -0
  16. package/resources/ai/ai.d.mts.map +1 -1
  17. package/resources/ai/ai.d.ts +4 -0
  18. package/resources/ai/ai.d.ts.map +1 -1
  19. package/resources/ai/ai.js +4 -0
  20. package/resources/ai/ai.js.map +1 -1
  21. package/resources/ai/ai.mjs +4 -0
  22. package/resources/ai/ai.mjs.map +1 -1
  23. package/resources/ai/assistants/assistants.d.mts +42 -27
  24. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  25. package/resources/ai/assistants/assistants.d.ts +42 -27
  26. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  27. package/resources/ai/assistants/assistants.js.map +1 -1
  28. package/resources/ai/assistants/assistants.mjs.map +1 -1
  29. package/resources/ai/audio.d.mts +22 -11
  30. package/resources/ai/audio.d.mts.map +1 -1
  31. package/resources/ai/audio.d.ts +22 -11
  32. package/resources/ai/audio.d.ts.map +1 -1
  33. package/resources/ai/avatars.d.mts +9 -9
  34. package/resources/ai/avatars.d.ts +9 -9
  35. package/resources/ai/avatars.js +9 -9
  36. package/resources/ai/avatars.mjs +9 -9
  37. package/resources/ai/index.d.mts +1 -0
  38. package/resources/ai/index.d.mts.map +1 -1
  39. package/resources/ai/index.d.ts +1 -0
  40. package/resources/ai/index.d.ts.map +1 -1
  41. package/resources/ai/index.js +5 -3
  42. package/resources/ai/index.js.map +1 -1
  43. package/resources/ai/index.mjs +1 -0
  44. package/resources/ai/index.mjs.map +1 -1
  45. package/resources/ai/tests/index.d.mts +4 -0
  46. package/resources/ai/tests/index.d.mts.map +1 -0
  47. package/resources/ai/tests/index.d.ts +4 -0
  48. package/resources/ai/tests/index.d.ts.map +1 -0
  49. package/resources/ai/tests/index.js +11 -0
  50. package/resources/ai/tests/index.js.map +1 -0
  51. package/resources/ai/tests/index.mjs +5 -0
  52. package/resources/ai/tests/index.mjs.map +1 -0
  53. package/resources/ai/tests/schedules/index.d.mts +3 -0
  54. package/resources/ai/tests/schedules/index.d.mts.map +1 -0
  55. package/resources/ai/tests/schedules/index.d.ts +3 -0
  56. package/resources/ai/tests/schedules/index.d.ts.map +1 -0
  57. package/resources/ai/tests/schedules/index.js +9 -0
  58. package/resources/ai/tests/schedules/index.js.map +1 -0
  59. package/resources/ai/tests/schedules/index.mjs +4 -0
  60. package/resources/ai/tests/schedules/index.mjs.map +1 -0
  61. package/resources/ai/tests/schedules/schedules.d.mts +10 -0
  62. package/resources/ai/tests/schedules/schedules.d.mts.map +1 -0
  63. package/resources/ai/tests/schedules/schedules.d.ts +10 -0
  64. package/resources/ai/tests/schedules/schedules.d.ts.map +1 -0
  65. package/resources/ai/tests/schedules/schedules.js +17 -0
  66. package/resources/ai/tests/schedules/schedules.js.map +1 -0
  67. package/resources/ai/tests/schedules/schedules.mjs +12 -0
  68. package/resources/ai/tests/schedules/schedules.mjs.map +1 -0
  69. package/resources/ai/tests/schedules/v1/cron-jobs.d.mts +171 -0
  70. package/resources/ai/tests/schedules/v1/cron-jobs.d.mts.map +1 -0
  71. package/resources/ai/tests/schedules/v1/cron-jobs.d.ts +171 -0
  72. package/resources/ai/tests/schedules/v1/cron-jobs.d.ts.map +1 -0
  73. package/resources/ai/tests/schedules/v1/cron-jobs.js +88 -0
  74. package/resources/ai/tests/schedules/v1/cron-jobs.js.map +1 -0
  75. package/resources/ai/tests/schedules/v1/cron-jobs.mjs +84 -0
  76. package/resources/ai/tests/schedules/v1/cron-jobs.mjs.map +1 -0
  77. package/resources/ai/tests/schedules/v1/index.d.mts +3 -0
  78. package/resources/ai/tests/schedules/v1/index.d.mts.map +1 -0
  79. package/resources/ai/tests/schedules/v1/index.d.ts +3 -0
  80. package/resources/ai/tests/schedules/v1/index.d.ts.map +1 -0
  81. package/resources/ai/tests/schedules/v1/index.js +9 -0
  82. package/resources/ai/tests/schedules/v1/index.js.map +1 -0
  83. package/resources/ai/tests/schedules/v1/index.mjs +4 -0
  84. package/resources/ai/tests/schedules/v1/index.mjs.map +1 -0
  85. package/resources/ai/tests/schedules/v1/v1.d.mts +10 -0
  86. package/resources/ai/tests/schedules/v1/v1.d.mts.map +1 -0
  87. package/resources/ai/tests/schedules/v1/v1.d.ts +10 -0
  88. package/resources/ai/tests/schedules/v1/v1.d.ts.map +1 -0
  89. package/resources/ai/tests/schedules/v1/v1.js +17 -0
  90. package/resources/ai/tests/schedules/v1/v1.js.map +1 -0
  91. package/resources/ai/tests/schedules/v1/v1.mjs +12 -0
  92. package/resources/ai/tests/schedules/v1/v1.mjs.map +1 -0
  93. package/resources/ai/tests/schedules/v1.d.mts +2 -0
  94. package/resources/ai/tests/schedules/v1.d.mts.map +1 -0
  95. package/resources/ai/tests/schedules/v1.d.ts +2 -0
  96. package/resources/ai/tests/schedules/v1.d.ts.map +1 -0
  97. package/resources/ai/tests/schedules/v1.js +6 -0
  98. package/resources/ai/tests/schedules/v1.js.map +1 -0
  99. package/resources/ai/tests/schedules/v1.mjs +3 -0
  100. package/resources/ai/tests/schedules/v1.mjs.map +1 -0
  101. package/resources/ai/tests/schedules.d.mts +2 -0
  102. package/resources/ai/tests/schedules.d.mts.map +1 -0
  103. package/resources/ai/tests/schedules.d.ts +2 -0
  104. package/resources/ai/tests/schedules.d.ts.map +1 -0
  105. package/resources/ai/tests/schedules.js +6 -0
  106. package/resources/ai/tests/schedules.js.map +1 -0
  107. package/resources/ai/tests/schedules.mjs +3 -0
  108. package/resources/ai/tests/schedules.mjs.map +1 -0
  109. package/resources/ai/tests/test-framework/index.d.mts +3 -0
  110. package/resources/ai/tests/test-framework/index.d.mts.map +1 -0
  111. package/resources/ai/tests/test-framework/index.d.ts +3 -0
  112. package/resources/ai/tests/test-framework/index.d.ts.map +1 -0
  113. package/resources/ai/tests/test-framework/index.js +9 -0
  114. package/resources/ai/tests/test-framework/index.js.map +1 -0
  115. package/resources/ai/tests/test-framework/index.mjs +4 -0
  116. package/resources/ai/tests/test-framework/index.mjs.map +1 -0
  117. package/resources/ai/tests/test-framework/test-framework.d.mts +10 -0
  118. package/resources/ai/tests/test-framework/test-framework.d.mts.map +1 -0
  119. package/resources/ai/tests/test-framework/test-framework.d.ts +10 -0
  120. package/resources/ai/tests/test-framework/test-framework.d.ts.map +1 -0
  121. package/resources/ai/tests/test-framework/test-framework.js +17 -0
  122. package/resources/ai/tests/test-framework/test-framework.js.map +1 -0
  123. package/resources/ai/tests/test-framework/test-framework.mjs +12 -0
  124. package/resources/ai/tests/test-framework/test-framework.mjs.map +1 -0
  125. package/resources/ai/tests/test-framework/v1/aiagents.d.mts +216 -0
  126. package/resources/ai/tests/test-framework/v1/aiagents.d.mts.map +1 -0
  127. package/resources/ai/tests/test-framework/v1/aiagents.d.ts +216 -0
  128. package/resources/ai/tests/test-framework/v1/aiagents.d.ts.map +1 -0
  129. package/resources/ai/tests/test-framework/v1/aiagents.js +93 -0
  130. package/resources/ai/tests/test-framework/v1/aiagents.js.map +1 -0
  131. package/resources/ai/tests/test-framework/v1/aiagents.mjs +89 -0
  132. package/resources/ai/tests/test-framework/v1/aiagents.mjs.map +1 -0
  133. package/resources/ai/tests/test-framework/v1/index.d.mts +6 -0
  134. package/resources/ai/tests/test-framework/v1/index.d.mts.map +1 -0
  135. package/resources/ai/tests/test-framework/v1/index.d.ts +6 -0
  136. package/resources/ai/tests/test-framework/v1/index.d.ts.map +1 -0
  137. package/resources/ai/tests/test-framework/v1/index.js +15 -0
  138. package/resources/ai/tests/test-framework/v1/index.js.map +1 -0
  139. package/resources/ai/tests/test-framework/v1/index.mjs +7 -0
  140. package/resources/ai/tests/test-framework/v1/index.mjs.map +1 -0
  141. package/resources/ai/tests/test-framework/v1/metrics.d.mts +339 -0
  142. package/resources/ai/tests/test-framework/v1/metrics.d.mts.map +1 -0
  143. package/resources/ai/tests/test-framework/v1/metrics.d.ts +339 -0
  144. package/resources/ai/tests/test-framework/v1/metrics.d.ts.map +1 -0
  145. package/resources/ai/tests/test-framework/v1/metrics.js +145 -0
  146. package/resources/ai/tests/test-framework/v1/metrics.js.map +1 -0
  147. package/resources/ai/tests/test-framework/v1/metrics.mjs +141 -0
  148. package/resources/ai/tests/test-framework/v1/metrics.mjs.map +1 -0
  149. package/resources/ai/tests/test-framework/v1/results.d.mts +207 -0
  150. package/resources/ai/tests/test-framework/v1/results.d.mts.map +1 -0
  151. package/resources/ai/tests/test-framework/v1/results.d.ts +207 -0
  152. package/resources/ai/tests/test-framework/v1/results.d.ts.map +1 -0
  153. package/resources/ai/tests/test-framework/v1/results.js +65 -0
  154. package/resources/ai/tests/test-framework/v1/results.js.map +1 -0
  155. package/resources/ai/tests/test-framework/v1/results.mjs +61 -0
  156. package/resources/ai/tests/test-framework/v1/results.mjs.map +1 -0
  157. package/resources/ai/tests/test-framework/v1/scenarios.d.mts +528 -0
  158. package/resources/ai/tests/test-framework/v1/scenarios.d.mts.map +1 -0
  159. package/resources/ai/tests/test-framework/v1/scenarios.d.ts +528 -0
  160. package/resources/ai/tests/test-framework/v1/scenarios.d.ts.map +1 -0
  161. package/resources/ai/tests/test-framework/v1/scenarios.js +222 -0
  162. package/resources/ai/tests/test-framework/v1/scenarios.js.map +1 -0
  163. package/resources/ai/tests/test-framework/v1/scenarios.mjs +218 -0
  164. package/resources/ai/tests/test-framework/v1/scenarios.mjs.map +1 -0
  165. package/resources/ai/tests/test-framework/v1/v1.d.mts +83 -0
  166. package/resources/ai/tests/test-framework/v1/v1.d.mts.map +1 -0
  167. package/resources/ai/tests/test-framework/v1/v1.d.ts +83 -0
  168. package/resources/ai/tests/test-framework/v1/v1.d.ts.map +1 -0
  169. package/resources/ai/tests/test-framework/v1/v1.js +46 -0
  170. package/resources/ai/tests/test-framework/v1/v1.js.map +1 -0
  171. package/resources/ai/tests/test-framework/v1/v1.mjs +41 -0
  172. package/resources/ai/tests/test-framework/v1/v1.mjs.map +1 -0
  173. package/resources/ai/tests/test-framework/v1.d.mts +2 -0
  174. package/resources/ai/tests/test-framework/v1.d.mts.map +1 -0
  175. package/resources/ai/tests/test-framework/v1.d.ts +2 -0
  176. package/resources/ai/tests/test-framework/v1.d.ts.map +1 -0
  177. package/resources/ai/tests/test-framework/v1.js +6 -0
  178. package/resources/ai/tests/test-framework/v1.js.map +1 -0
  179. package/resources/ai/tests/test-framework/v1.mjs +3 -0
  180. package/resources/ai/tests/test-framework/v1.mjs.map +1 -0
  181. package/resources/ai/tests/test-framework.d.mts +2 -0
  182. package/resources/ai/tests/test-framework.d.mts.map +1 -0
  183. package/resources/ai/tests/test-framework.d.ts +2 -0
  184. package/resources/ai/tests/test-framework.d.ts.map +1 -0
  185. package/resources/ai/tests/test-framework.js +6 -0
  186. package/resources/ai/tests/test-framework.js.map +1 -0
  187. package/resources/ai/tests/test-framework.mjs +3 -0
  188. package/resources/ai/tests/test-framework.mjs.map +1 -0
  189. package/resources/ai/tests/tests.d.mts +14 -0
  190. package/resources/ai/tests/tests.d.mts.map +1 -0
  191. package/resources/ai/tests/tests.d.ts +14 -0
  192. package/resources/ai/tests/tests.d.ts.map +1 -0
  193. package/resources/ai/tests/tests.js +21 -0
  194. package/resources/ai/tests/tests.js.map +1 -0
  195. package/resources/ai/tests/tests.mjs +16 -0
  196. package/resources/ai/tests/tests.mjs.map +1 -0
  197. package/resources/ai/tests.d.mts +2 -0
  198. package/resources/ai/tests.d.mts.map +1 -0
  199. package/resources/ai/tests.d.ts +2 -0
  200. package/resources/ai/tests.d.ts.map +1 -0
  201. package/resources/ai/tests.js +6 -0
  202. package/resources/ai/tests.js.map +1 -0
  203. package/resources/ai/tests.mjs +3 -0
  204. package/resources/ai/tests.mjs.map +1 -0
  205. package/resources/artifact-downloads.d.mts +21 -0
  206. package/resources/artifact-downloads.d.mts.map +1 -0
  207. package/resources/artifact-downloads.d.ts +21 -0
  208. package/resources/artifact-downloads.d.ts.map +1 -0
  209. package/resources/artifact-downloads.js +26 -0
  210. package/resources/artifact-downloads.js.map +1 -0
  211. package/resources/artifact-downloads.mjs +22 -0
  212. package/resources/artifact-downloads.mjs.map +1 -0
  213. package/resources/bot-challenge.js +1 -1
  214. package/resources/bot-challenge.js.map +1 -1
  215. package/resources/bot-challenge.mjs +1 -1
  216. package/resources/bot-challenge.mjs.map +1 -1
  217. package/resources/bot-sessions.js +1 -1
  218. package/resources/bot-sessions.js.map +1 -1
  219. package/resources/bot-sessions.mjs +1 -1
  220. package/resources/bot-sessions.mjs.map +1 -1
  221. package/resources/bot-signup.js +2 -2
  222. package/resources/bot-signup.js.map +1 -1
  223. package/resources/bot-signup.mjs +2 -2
  224. package/resources/bot-signup.mjs.map +1 -1
  225. package/resources/browser-sessions/actions.d.mts +542 -0
  226. package/resources/browser-sessions/actions.d.mts.map +1 -0
  227. package/resources/browser-sessions/actions.d.ts +542 -0
  228. package/resources/browser-sessions/actions.d.ts.map +1 -0
  229. package/resources/browser-sessions/actions.js +55 -0
  230. package/resources/browser-sessions/actions.js.map +1 -0
  231. package/resources/browser-sessions/actions.mjs +51 -0
  232. package/resources/browser-sessions/actions.mjs.map +1 -0
  233. package/resources/browser-sessions/browser-sessions.d.mts +165 -0
  234. package/resources/browser-sessions/browser-sessions.d.mts.map +1 -0
  235. package/resources/browser-sessions/browser-sessions.d.ts +165 -0
  236. package/resources/browser-sessions/browser-sessions.d.ts.map +1 -0
  237. package/resources/browser-sessions/browser-sessions.js +87 -0
  238. package/resources/browser-sessions/browser-sessions.js.map +1 -0
  239. package/resources/browser-sessions/browser-sessions.mjs +82 -0
  240. package/resources/browser-sessions/browser-sessions.mjs.map +1 -0
  241. package/resources/browser-sessions/index.d.mts +3 -0
  242. package/resources/browser-sessions/index.d.mts.map +1 -0
  243. package/resources/browser-sessions/index.d.ts +3 -0
  244. package/resources/browser-sessions/index.d.ts.map +1 -0
  245. package/resources/browser-sessions/index.js +9 -0
  246. package/resources/browser-sessions/index.js.map +1 -0
  247. package/resources/browser-sessions/index.mjs +4 -0
  248. package/resources/browser-sessions/index.mjs.map +1 -0
  249. package/resources/browser-sessions.d.mts +2 -0
  250. package/resources/browser-sessions.d.mts.map +1 -0
  251. package/resources/browser-sessions.d.ts +2 -0
  252. package/resources/browser-sessions.d.ts.map +1 -0
  253. package/resources/browser-sessions.js +6 -0
  254. package/resources/browser-sessions.js.map +1 -0
  255. package/resources/browser-sessions.mjs +3 -0
  256. package/resources/browser-sessions.mjs.map +1 -0
  257. package/resources/call-control-applications.d.mts +2 -2
  258. package/resources/call-control-applications.d.ts +2 -2
  259. package/resources/calls/actions.d.mts +35 -28
  260. package/resources/calls/actions.d.mts.map +1 -1
  261. package/resources/calls/actions.d.ts +35 -28
  262. package/resources/calls/actions.d.ts.map +1 -1
  263. package/resources/compute/compute.d.mts +75 -2
  264. package/resources/compute/compute.d.mts.map +1 -1
  265. package/resources/compute/compute.d.ts +75 -2
  266. package/resources/compute/compute.d.ts.map +1 -1
  267. package/resources/compute/compute.js +17 -0
  268. package/resources/compute/compute.js.map +1 -1
  269. package/resources/compute/compute.mjs +17 -0
  270. package/resources/compute/compute.mjs.map +1 -1
  271. package/resources/compute/funcs/export.d.mts +3 -0
  272. package/resources/compute/funcs/export.d.mts.map +1 -1
  273. package/resources/compute/funcs/export.d.ts +3 -0
  274. package/resources/compute/funcs/export.d.ts.map +1 -1
  275. package/resources/compute/funcs/export.js +3 -0
  276. package/resources/compute/funcs/export.js.map +1 -1
  277. package/resources/compute/funcs/export.mjs +3 -0
  278. package/resources/compute/funcs/export.mjs.map +1 -1
  279. package/resources/compute/funcs/funcs.d.mts +60 -1
  280. package/resources/compute/funcs/funcs.d.mts.map +1 -1
  281. package/resources/compute/funcs/funcs.d.ts +60 -1
  282. package/resources/compute/funcs/funcs.d.ts.map +1 -1
  283. package/resources/compute/funcs/funcs.js +24 -0
  284. package/resources/compute/funcs/funcs.js.map +1 -1
  285. package/resources/compute/funcs/funcs.mjs +24 -0
  286. package/resources/compute/funcs/funcs.mjs.map +1 -1
  287. package/resources/compute/funcs/index.d.mts +1 -1
  288. package/resources/compute/funcs/index.d.mts.map +1 -1
  289. package/resources/compute/funcs/index.d.ts +1 -1
  290. package/resources/compute/funcs/index.d.ts.map +1 -1
  291. package/resources/compute/funcs/index.js.map +1 -1
  292. package/resources/compute/funcs/index.mjs.map +1 -1
  293. package/resources/compute/index.d.mts +2 -2
  294. package/resources/compute/index.d.mts.map +1 -1
  295. package/resources/compute/index.d.ts +2 -2
  296. package/resources/compute/index.d.ts.map +1 -1
  297. package/resources/compute/index.js.map +1 -1
  298. package/resources/compute/index.mjs.map +1 -1
  299. package/resources/conferences/actions.d.mts +3 -2
  300. package/resources/conferences/actions.d.mts.map +1 -1
  301. package/resources/conferences/actions.d.ts +3 -2
  302. package/resources/conferences/actions.d.ts.map +1 -1
  303. package/resources/email/dedicated-ips/actions.d.mts +73 -0
  304. package/resources/email/dedicated-ips/actions.d.mts.map +1 -0
  305. package/resources/email/dedicated-ips/actions.d.ts +73 -0
  306. package/resources/email/dedicated-ips/actions.d.ts.map +1 -0
  307. package/resources/email/dedicated-ips/actions.js +84 -0
  308. package/resources/email/dedicated-ips/actions.js.map +1 -0
  309. package/resources/email/dedicated-ips/actions.mjs +80 -0
  310. package/resources/email/dedicated-ips/actions.mjs.map +1 -0
  311. package/resources/email/dedicated-ips/dedicated-ips.d.mts +444 -0
  312. package/resources/email/dedicated-ips/dedicated-ips.d.mts.map +1 -0
  313. package/resources/email/dedicated-ips/dedicated-ips.d.ts +444 -0
  314. package/resources/email/dedicated-ips/dedicated-ips.d.ts.map +1 -0
  315. package/resources/email/dedicated-ips/dedicated-ips.js +142 -0
  316. package/resources/email/dedicated-ips/dedicated-ips.js.map +1 -0
  317. package/resources/email/dedicated-ips/dedicated-ips.mjs +137 -0
  318. package/resources/email/dedicated-ips/dedicated-ips.mjs.map +1 -0
  319. package/resources/email/dedicated-ips/index.d.mts +3 -0
  320. package/resources/email/dedicated-ips/index.d.mts.map +1 -0
  321. package/resources/email/dedicated-ips/index.d.ts +3 -0
  322. package/resources/email/dedicated-ips/index.d.ts.map +1 -0
  323. package/resources/email/dedicated-ips/index.js +9 -0
  324. package/resources/email/dedicated-ips/index.js.map +1 -0
  325. package/resources/email/dedicated-ips/index.mjs +4 -0
  326. package/resources/email/dedicated-ips/index.mjs.map +1 -0
  327. package/resources/email/dedicated-ips.d.mts +2 -0
  328. package/resources/email/dedicated-ips.d.mts.map +1 -0
  329. package/resources/email/dedicated-ips.d.ts +2 -0
  330. package/resources/email/dedicated-ips.d.ts.map +1 -0
  331. package/resources/email/dedicated-ips.js +6 -0
  332. package/resources/email/dedicated-ips.js.map +1 -0
  333. package/resources/email/dedicated-ips.mjs +3 -0
  334. package/resources/email/dedicated-ips.mjs.map +1 -0
  335. package/resources/email/email.d.mts +14 -0
  336. package/resources/email/email.d.mts.map +1 -0
  337. package/resources/email/email.d.ts +14 -0
  338. package/resources/email/email.d.ts.map +1 -0
  339. package/resources/email/email.js +21 -0
  340. package/resources/email/email.js.map +1 -0
  341. package/resources/email/email.mjs +16 -0
  342. package/resources/email/email.mjs.map +1 -0
  343. package/resources/email/index.d.mts +4 -0
  344. package/resources/email/index.d.mts.map +1 -0
  345. package/resources/email/index.d.ts +4 -0
  346. package/resources/email/index.d.ts.map +1 -0
  347. package/resources/email/index.js +11 -0
  348. package/resources/email/index.js.map +1 -0
  349. package/resources/email/index.mjs +5 -0
  350. package/resources/email/index.mjs.map +1 -0
  351. package/resources/email/ip-pools/index.d.mts +3 -0
  352. package/resources/email/ip-pools/index.d.mts.map +1 -0
  353. package/resources/email/ip-pools/index.d.ts +3 -0
  354. package/resources/email/ip-pools/index.d.ts.map +1 -0
  355. package/resources/email/ip-pools/index.js +9 -0
  356. package/resources/email/ip-pools/index.js.map +1 -0
  357. package/resources/email/ip-pools/index.mjs +4 -0
  358. package/resources/email/ip-pools/index.mjs.map +1 -0
  359. package/resources/email/ip-pools/ip-pools.d.mts +184 -0
  360. package/resources/email/ip-pools/ip-pools.d.mts.map +1 -0
  361. package/resources/email/ip-pools/ip-pools.d.ts +184 -0
  362. package/resources/email/ip-pools/ip-pools.d.ts.map +1 -0
  363. package/resources/email/ip-pools/ip-pools.js +102 -0
  364. package/resources/email/ip-pools/ip-pools.js.map +1 -0
  365. package/resources/email/ip-pools/ip-pools.mjs +97 -0
  366. package/resources/email/ip-pools/ip-pools.mjs.map +1 -0
  367. package/resources/email/ip-pools/ips.d.mts +83 -0
  368. package/resources/email/ip-pools/ips.d.mts.map +1 -0
  369. package/resources/email/ip-pools/ips.d.ts +83 -0
  370. package/resources/email/ip-pools/ips.d.ts.map +1 -0
  371. package/resources/email/ip-pools/ips.js +54 -0
  372. package/resources/email/ip-pools/ips.js.map +1 -0
  373. package/resources/email/ip-pools/ips.mjs +50 -0
  374. package/resources/email/ip-pools/ips.mjs.map +1 -0
  375. package/resources/email/ip-pools.d.mts +2 -0
  376. package/resources/email/ip-pools.d.mts.map +1 -0
  377. package/resources/email/ip-pools.d.ts +2 -0
  378. package/resources/email/ip-pools.d.ts.map +1 -0
  379. package/resources/email/ip-pools.js +6 -0
  380. package/resources/email/ip-pools.js.map +1 -0
  381. package/resources/email/ip-pools.mjs +3 -0
  382. package/resources/email/ip-pools.mjs.map +1 -0
  383. package/resources/email.d.mts +2 -0
  384. package/resources/email.d.mts.map +1 -0
  385. package/resources/email.d.ts +2 -0
  386. package/resources/email.d.ts.map +1 -0
  387. package/resources/email.js +6 -0
  388. package/resources/email.js.map +1 -0
  389. package/resources/email.mjs +3 -0
  390. package/resources/email.mjs.map +1 -0
  391. package/resources/fax-applications.d.mts +6 -6
  392. package/resources/fax-applications.d.ts +6 -6
  393. package/resources/fqdn-connections/fqdn-connections.d.mts +2 -2
  394. package/resources/fqdn-connections/fqdn-connections.d.ts +2 -2
  395. package/resources/index.d.mts +10 -3
  396. package/resources/index.d.mts.map +1 -1
  397. package/resources/index.d.ts +10 -3
  398. package/resources/index.d.ts.map +1 -1
  399. package/resources/index.js +18 -4
  400. package/resources/index.js.map +1 -1
  401. package/resources/index.mjs +7 -0
  402. package/resources/index.mjs.map +1 -1
  403. package/resources/ip-connections.d.mts +4 -4
  404. package/resources/ip-connections.d.ts +4 -4
  405. package/resources/messaging-profiles/index.d.mts +1 -1
  406. package/resources/messaging-profiles/index.d.mts.map +1 -1
  407. package/resources/messaging-profiles/index.d.ts +1 -1
  408. package/resources/messaging-profiles/index.d.ts.map +1 -1
  409. package/resources/messaging-profiles/index.js.map +1 -1
  410. package/resources/messaging-profiles/index.mjs.map +1 -1
  411. package/resources/messaging-profiles/messaging-profiles.d.mts +26 -1
  412. package/resources/messaging-profiles/messaging-profiles.d.mts.map +1 -1
  413. package/resources/messaging-profiles/messaging-profiles.d.ts +26 -1
  414. package/resources/messaging-profiles/messaging-profiles.d.ts.map +1 -1
  415. package/resources/messaging-profiles/messaging-profiles.js.map +1 -1
  416. package/resources/messaging-profiles/messaging-profiles.mjs.map +1 -1
  417. package/resources/network-coverage.d.mts +1 -1
  418. package/resources/network-coverage.d.mts.map +1 -1
  419. package/resources/network-coverage.d.ts +1 -1
  420. package/resources/network-coverage.d.ts.map +1 -1
  421. package/resources/network-routes.d.mts +257 -0
  422. package/resources/network-routes.d.mts.map +1 -0
  423. package/resources/network-routes.d.ts +257 -0
  424. package/resources/network-routes.d.ts.map +1 -0
  425. package/resources/network-routes.js +83 -0
  426. package/resources/network-routes.js.map +1 -0
  427. package/resources/network-routes.mjs +79 -0
  428. package/resources/network-routes.mjs.map +1 -0
  429. package/resources/number-lookup.d.mts +122 -4
  430. package/resources/number-lookup.d.mts.map +1 -1
  431. package/resources/number-lookup.d.ts +122 -4
  432. package/resources/number-lookup.d.ts.map +1 -1
  433. package/resources/pay-connectors.d.mts +378 -0
  434. package/resources/pay-connectors.d.mts.map +1 -0
  435. package/resources/pay-connectors.d.ts +378 -0
  436. package/resources/pay-connectors.d.ts.map +1 -0
  437. package/resources/pay-connectors.js +116 -0
  438. package/resources/pay-connectors.js.map +1 -0
  439. package/resources/pay-connectors.mjs +112 -0
  440. package/resources/pay-connectors.mjs.map +1 -0
  441. package/resources/public-internet-gateways.d.mts +0 -8
  442. package/resources/public-internet-gateways.d.mts.map +1 -1
  443. package/resources/public-internet-gateways.d.ts +0 -8
  444. package/resources/public-internet-gateways.d.ts.map +1 -1
  445. package/resources/spend-limits.d.mts +150 -32
  446. package/resources/spend-limits.d.mts.map +1 -1
  447. package/resources/spend-limits.d.ts +150 -32
  448. package/resources/spend-limits.d.ts.map +1 -1
  449. package/resources/spend-limits.js +26 -7
  450. package/resources/spend-limits.js.map +1 -1
  451. package/resources/spend-limits.mjs +26 -7
  452. package/resources/spend-limits.mjs.map +1 -1
  453. package/resources/tailscale-subnet-routers.d.mts +233 -0
  454. package/resources/tailscale-subnet-routers.d.mts.map +1 -0
  455. package/resources/tailscale-subnet-routers.d.ts +233 -0
  456. package/resources/tailscale-subnet-routers.d.ts.map +1 -0
  457. package/resources/tailscale-subnet-routers.js +105 -0
  458. package/resources/tailscale-subnet-routers.js.map +1 -0
  459. package/resources/tailscale-subnet-routers.mjs +101 -0
  460. package/resources/tailscale-subnet-routers.mjs.map +1 -0
  461. package/resources/texml-applications.d.mts +6 -6
  462. package/resources/texml-applications.d.ts +6 -6
  463. package/resources/text-to-speech/text-to-speech.d.mts +1 -6
  464. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  465. package/resources/text-to-speech/text-to-speech.d.ts +1 -6
  466. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  467. package/resources/text-to-speech/text-to-speech.js +1 -2
  468. package/resources/text-to-speech/text-to-speech.js.map +1 -1
  469. package/resources/text-to-speech/text-to-speech.mjs +1 -2
  470. package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
  471. package/resources/tunnels/actions.d.mts +29 -0
  472. package/resources/tunnels/actions.d.mts.map +1 -0
  473. package/resources/tunnels/actions.d.ts +29 -0
  474. package/resources/tunnels/actions.d.ts.map +1 -0
  475. package/resources/tunnels/actions.js +28 -0
  476. package/resources/tunnels/actions.js.map +1 -0
  477. package/resources/tunnels/actions.mjs +24 -0
  478. package/resources/tunnels/actions.mjs.map +1 -0
  479. package/resources/tunnels/index.d.mts +3 -0
  480. package/resources/tunnels/index.d.mts.map +1 -0
  481. package/resources/tunnels/index.d.ts +3 -0
  482. package/resources/tunnels/index.d.ts.map +1 -0
  483. package/resources/tunnels/index.js +9 -0
  484. package/resources/tunnels/index.js.map +1 -0
  485. package/resources/tunnels/index.mjs +4 -0
  486. package/resources/tunnels/index.mjs.map +1 -0
  487. package/resources/tunnels/tunnels.d.mts +194 -0
  488. package/resources/tunnels/tunnels.d.mts.map +1 -0
  489. package/resources/tunnels/tunnels.d.ts +194 -0
  490. package/resources/tunnels/tunnels.d.ts.map +1 -0
  491. package/resources/tunnels/tunnels.js +82 -0
  492. package/resources/tunnels/tunnels.js.map +1 -0
  493. package/resources/tunnels/tunnels.mjs +77 -0
  494. package/resources/tunnels/tunnels.mjs.map +1 -0
  495. package/resources/tunnels.d.mts +2 -0
  496. package/resources/tunnels.d.mts.map +1 -0
  497. package/resources/tunnels.d.ts +2 -0
  498. package/resources/tunnels.d.ts.map +1 -0
  499. package/resources/tunnels.js +6 -0
  500. package/resources/tunnels.js.map +1 -0
  501. package/resources/tunnels.mjs +3 -0
  502. package/resources/tunnels.mjs.map +1 -0
  503. package/resources/voice-clones.d.mts +54 -8
  504. package/resources/voice-clones.d.mts.map +1 -1
  505. package/resources/voice-clones.d.ts +54 -8
  506. package/resources/voice-clones.d.ts.map +1 -1
  507. package/resources/voice-clones.js +6 -5
  508. package/resources/voice-clones.js.map +1 -1
  509. package/resources/voice-clones.mjs +6 -5
  510. package/resources/voice-clones.mjs.map +1 -1
  511. package/resources/whatsapp/hosted-signups.d.mts +2 -1
  512. package/resources/whatsapp/hosted-signups.d.mts.map +1 -1
  513. package/resources/whatsapp/hosted-signups.d.ts +2 -1
  514. package/resources/whatsapp/hosted-signups.d.ts.map +1 -1
  515. package/resources/wireguard-interfaces.d.mts +0 -8
  516. package/resources/wireguard-interfaces.d.mts.map +1 -1
  517. package/resources/wireguard-interfaces.d.ts +0 -8
  518. package/resources/wireguard-interfaces.d.ts.map +1 -1
  519. package/src/client.ts +161 -2
  520. package/src/resources/addresses/actions.ts +23 -4
  521. package/src/resources/ai/ai.ts +6 -0
  522. package/src/resources/ai/assistants/assistants.ts +43 -24
  523. package/src/resources/ai/audio.ts +23 -11
  524. package/src/resources/ai/avatars.ts +9 -9
  525. package/src/resources/ai/index.ts +1 -0
  526. package/src/resources/ai/tests/index.ts +5 -0
  527. package/src/resources/ai/tests/schedules/index.ts +4 -0
  528. package/src/resources/ai/tests/schedules/schedules.ts +15 -0
  529. package/src/resources/ai/tests/schedules/v1/cron-jobs.ts +248 -0
  530. package/src/resources/ai/tests/schedules/v1/index.ts +12 -0
  531. package/src/resources/ai/tests/schedules/v1/v1.ts +31 -0
  532. package/src/resources/ai/tests/schedules/v1.ts +3 -0
  533. package/src/resources/ai/tests/schedules.ts +3 -0
  534. package/src/resources/ai/tests/test-framework/index.ts +4 -0
  535. package/src/resources/ai/tests/test-framework/test-framework.ts +15 -0
  536. package/src/resources/ai/tests/test-framework/v1/aiagents.ts +304 -0
  537. package/src/resources/ai/tests/test-framework/v1/index.ts +54 -0
  538. package/src/resources/ai/tests/test-framework/v1/metrics.ts +491 -0
  539. package/src/resources/ai/tests/test-framework/v1/results.ts +304 -0
  540. package/src/resources/ai/tests/test-framework/v1/scenarios.ts +774 -0
  541. package/src/resources/ai/tests/test-framework/v1/v1.ts +214 -0
  542. package/src/resources/ai/tests/test-framework/v1.ts +3 -0
  543. package/src/resources/ai/tests/test-framework.ts +3 -0
  544. package/src/resources/ai/tests/tests.ts +21 -0
  545. package/src/resources/ai/tests.ts +3 -0
  546. package/src/resources/artifact-downloads.ts +39 -0
  547. package/src/resources/bot-challenge.ts +1 -1
  548. package/src/resources/bot-sessions.ts +1 -1
  549. package/src/resources/bot-signup.ts +2 -2
  550. package/src/resources/browser-sessions/actions.ts +778 -0
  551. package/src/resources/browser-sessions/browser-sessions.ts +278 -0
  552. package/src/resources/browser-sessions/index.ts +31 -0
  553. package/src/resources/browser-sessions.ts +3 -0
  554. package/src/resources/call-control-applications.ts +2 -2
  555. package/src/resources/calls/actions.ts +38 -27
  556. package/src/resources/compute/compute.ts +105 -0
  557. package/src/resources/compute/funcs/export.ts +3 -0
  558. package/src/resources/compute/funcs/funcs.ts +99 -0
  559. package/src/resources/compute/funcs/index.ts +3 -0
  560. package/src/resources/compute/index.ts +4 -1
  561. package/src/resources/conferences/actions.ts +3 -2
  562. package/src/resources/email/dedicated-ips/actions.ts +87 -0
  563. package/src/resources/email/dedicated-ips/dedicated-ips.ts +563 -0
  564. package/src/resources/email/dedicated-ips/index.ts +13 -0
  565. package/src/resources/email/dedicated-ips.ts +3 -0
  566. package/src/resources/email/email.ts +55 -0
  567. package/src/resources/email/index.ts +22 -0
  568. package/src/resources/email/ip-pools/index.ts +12 -0
  569. package/src/resources/email/ip-pools/ip-pools.ts +247 -0
  570. package/src/resources/email/ip-pools/ips.ts +112 -0
  571. package/src/resources/email/ip-pools.ts +3 -0
  572. package/src/resources/email.ts +3 -0
  573. package/src/resources/fax-applications.ts +6 -6
  574. package/src/resources/fqdn-connections/fqdn-connections.ts +2 -2
  575. package/src/resources/index.ts +59 -1
  576. package/src/resources/ip-connections.ts +4 -4
  577. package/src/resources/messaging-profiles/index.ts +1 -0
  578. package/src/resources/messaging-profiles/messaging-profiles.ts +31 -0
  579. package/src/resources/network-coverage.ts +5 -1
  580. package/src/resources/network-routes.ts +332 -0
  581. package/src/resources/number-lookup.ts +154 -4
  582. package/src/resources/pay-connectors.ts +482 -0
  583. package/src/resources/public-internet-gateways.ts +0 -10
  584. package/src/resources/spend-limits.ts +179 -36
  585. package/src/resources/tailscale-subnet-routers.ts +303 -0
  586. package/src/resources/texml-applications.ts +6 -6
  587. package/src/resources/text-to-speech/text-to-speech.ts +1 -7
  588. package/src/resources/tunnels/actions.ts +36 -0
  589. package/src/resources/tunnels/index.ts +13 -0
  590. package/src/resources/tunnels/tunnels.ts +260 -0
  591. package/src/resources/tunnels.ts +3 -0
  592. package/src/resources/voice-clones.ts +88 -8
  593. package/src/resources/whatsapp/hosted-signups.ts +2 -1
  594. package/src/resources/wireguard-interfaces.ts +0 -10
  595. package/src/version.ts +1 -1
  596. package/version.d.mts +1 -1
  597. package/version.d.ts +1 -1
  598. package/version.js +1 -1
  599. package/version.mjs +1 -1
@@ -13,7 +13,7 @@ class TextToSpeech extends resource_1.APIResource {
13
13
  * `provider` is specified, returns voices for that provider only. Otherwise,
14
14
  * returns voices from all providers.
15
15
  *
16
- * Some providers (ElevenLabs, Resemble) require an API key to list voices.
16
+ * Some providers (ElevenLabs) require an API key to list voices.
17
17
  *
18
18
  * @example
19
19
  * ```ts
@@ -76,7 +76,6 @@ class TextToSpeech extends resource_1.APIResource {
76
76
  * output_type: 'binary_output',
77
77
  * provider: 'aws',
78
78
  * resemble: {
79
- * api_key: 'string',
80
79
  * precision: 'string',
81
80
  * sample_rate: 'string',
82
81
  * format: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"text-to-speech.js","sourceRoot":"","sources":["../../src/resources/text-to-speech/text-to-speech.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAGtD;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;OAWG;IACH,UAAU,CACR,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAA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C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,cAAc,CACZ,QAA6D,EAAE,EAC/D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE;YAChD,KAAK;YACL,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;CACF;AAtJD,oCAsJC"}
@@ -10,7 +10,7 @@ export class TextToSpeech extends APIResource {
10
10
  * `provider` is specified, returns voices for that provider only. Otherwise,
11
11
  * returns voices from all providers.
12
12
  *
13
- * Some providers (ElevenLabs, Resemble) require an API key to list voices.
13
+ * Some providers (ElevenLabs) require an API key to list voices.
14
14
  *
15
15
  * @example
16
16
  * ```ts
@@ -73,7 +73,6 @@ export class TextToSpeech extends APIResource {
73
73
  * output_type: 'binary_output',
74
74
  * provider: 'aws',
75
75
  * resemble: {
76
- * api_key: 'string',
77
76
  * precision: 'string',
78
77
  * sample_rate: 'string',
79
78
  * format: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"text-to-speech.mjs","sourceRoot":"","sources":["../../src/resources/text-to-speech/text-to-speech.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAGtD;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,UAAU,CACR,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,K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AI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,cAAc,CACZ,QAA6D,EAAE,EAC/D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE;YAChD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,29 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as TunnelsAPI from "./tunnels.mjs";
3
+ import { APIPromise } from "../../core/api-promise.mjs";
4
+ import { RequestOptions } from "../../internal/request-options.mjs";
5
+ /**
6
+ * Tunnels connect a Network to hosts behind a tunnel process within the user's network.
7
+ */
8
+ export declare class Actions extends APIResource {
9
+ /**
10
+ * Issues a new `tunnel_token` and invalidates the previous one. Tunnel processes
11
+ * already connected stay connected until they reconnect, and are then refused
12
+ * until they use the new token.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const response = await client.tunnels.actions.rotateToken(
17
+ * '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
18
+ * );
19
+ * ```
20
+ */
21
+ rotateToken(id: string, options?: RequestOptions): APIPromise<ActionRotateTokenResponse>;
22
+ }
23
+ export interface ActionRotateTokenResponse {
24
+ data?: TunnelsAPI.TunnelWithToken;
25
+ }
26
+ export declare namespace Actions {
27
+ export { type ActionRotateTokenResponse as ActionRotateTokenResponse };
28
+ }
29
+ //# sourceMappingURL=actions.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../src/resources/tunnels/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAGzF;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
@@ -0,0 +1,29 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as TunnelsAPI from "./tunnels.js";
3
+ import { APIPromise } from "../../core/api-promise.js";
4
+ import { RequestOptions } from "../../internal/request-options.js";
5
+ /**
6
+ * Tunnels connect a Network to hosts behind a tunnel process within the user's network.
7
+ */
8
+ export declare class Actions extends APIResource {
9
+ /**
10
+ * Issues a new `tunnel_token` and invalidates the previous one. Tunnel processes
11
+ * already connected stay connected until they reconnect, and are then refused
12
+ * until they use the new token.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const response = await client.tunnels.actions.rotateToken(
17
+ * '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
18
+ * );
19
+ * ```
20
+ */
21
+ rotateToken(id: string, options?: RequestOptions): APIPromise<ActionRotateTokenResponse>;
22
+ }
23
+ export interface ActionRotateTokenResponse {
24
+ data?: TunnelsAPI.TunnelWithToken;
25
+ }
26
+ export declare namespace Actions {
27
+ export { type ActionRotateTokenResponse as ActionRotateTokenResponse };
28
+ }
29
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/resources/tunnels/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAGzF;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
@@ -0,0 +1,28 @@
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.Actions = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ /**
8
+ * Tunnels connect a Network to hosts behind a tunnel process within the user's network.
9
+ */
10
+ class Actions extends resource_1.APIResource {
11
+ /**
12
+ * Issues a new `tunnel_token` and invalidates the previous one. Tunnel processes
13
+ * already connected stay connected until they reconnect, and are then refused
14
+ * until they use the new token.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const response = await client.tunnels.actions.rotateToken(
19
+ * '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
20
+ * );
21
+ * ```
22
+ */
23
+ rotateToken(id, options) {
24
+ return this._client.post((0, path_1.path) `/tunnels/${id}/actions/rotate_token`, options);
25
+ }
26
+ }
27
+ exports.Actions = Actions;
28
+ //# sourceMappingURL=actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.js","sourceRoot":"","sources":["../../src/resources/tunnels/actions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAU,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,YAAY,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF;AAhBD,0BAgBC"}
@@ -0,0 +1,24 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
4
+ /**
5
+ * Tunnels connect a Network to hosts behind a tunnel process within the user's network.
6
+ */
7
+ export class Actions extends APIResource {
8
+ /**
9
+ * Issues a new `tunnel_token` and invalidates the previous one. Tunnel processes
10
+ * already connected stay connected until they reconnect, and are then refused
11
+ * until they use the new token.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const response = await client.tunnels.actions.rotateToken(
16
+ * '62d438d2-8a51-4c5e-9d0c-1f6b2a7e4c39',
17
+ * );
18
+ * ```
19
+ */
20
+ rotateToken(id, options) {
21
+ return this._client.post(path `/tunnels/${id}/actions/rotate_token`, options);
22
+ }
23
+ }
24
+ //# sourceMappingURL=actions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.mjs","sourceRoot":"","sources":["../../src/resources/tunnels/actions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAU,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF"}
@@ -0,0 +1,3 @@
1
+ export { Actions, type ActionRotateTokenResponse } from "./actions.mjs";
2
+ export { Tunnels, type Tunnel, type TunnelWithToken, type TunnelCreateResponse, type TunnelRetrieveResponse, type TunnelListResponse, type TunnelListParams, type TunnelCreateParams, } from "./tunnels.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/tunnels/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,KAAK,yBAAyB,EAAE,sBAAkB;AACpE,OAAO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB,sBAAkB"}
@@ -0,0 +1,3 @@
1
+ export { Actions, type ActionRotateTokenResponse } from "./actions.js";
2
+ export { Tunnels, type Tunnel, type TunnelWithToken, type TunnelCreateResponse, type TunnelRetrieveResponse, type TunnelListResponse, type TunnelListParams, type TunnelCreateParams, } from "./tunnels.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/tunnels/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,KAAK,yBAAyB,EAAE,qBAAkB;AACpE,OAAO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB,qBAAkB"}
@@ -0,0 +1,9 @@
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 = exports.Actions = void 0;
5
+ var actions_1 = require("./actions.js");
6
+ Object.defineProperty(exports, "Actions", { enumerable: true, get: function () { return actions_1.Actions; } });
7
+ var tunnels_1 = require("./tunnels.js");
8
+ Object.defineProperty(exports, "Tunnels", { enumerable: true, get: function () { return tunnels_1.Tunnels; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/tunnels/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAoE;AAA3D,kGAAA,OAAO,OAAA;AAChB,wCASmB;AARjB,kGAAA,OAAO,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Actions } from "./actions.mjs";
3
+ export { Tunnels, } from "./tunnels.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/tunnels/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,OAAO,EAAkC,sBAAkB;AACpE,OAAO,EACL,OAAO,GAQR,sBAAkB"}
@@ -0,0 +1,194 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as NetworkRoutesAPI from "../network-routes.mjs";
3
+ import * as ActionsAPI from "./actions.mjs";
4
+ import { ActionRotateTokenResponse, Actions } from "./actions.mjs";
5
+ import { APIPromise } from "../../core/api-promise.mjs";
6
+ import { RequestOptions } from "../../internal/request-options.mjs";
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.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tunnels.d.mts","sourceRoot":"","sources":["../../src/resources/tunnels/tunnels.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,gBAAgB,8BAA0B;AACtD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,yBAAyB,EAAE,OAAO,EAAE,sBAAkB;AAC/D,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC,OAAO,EAAE,UAAU,CAAC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AAsB,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,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;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGnF;AAED,MAAM,WAAW,MAAM;IACrB;;OA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