telnyx 7.28.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 (534) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/client.d.mts +35 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +35 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +31 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +31 -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 +31 -27
  24. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  25. package/resources/ai/assistants/assistants.d.ts +31 -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/avatars.d.mts +9 -9
  30. package/resources/ai/avatars.d.ts +9 -9
  31. package/resources/ai/avatars.js +9 -9
  32. package/resources/ai/avatars.mjs +9 -9
  33. package/resources/ai/index.d.mts +1 -0
  34. package/resources/ai/index.d.mts.map +1 -1
  35. package/resources/ai/index.d.ts +1 -0
  36. package/resources/ai/index.d.ts.map +1 -1
  37. package/resources/ai/index.js +5 -3
  38. package/resources/ai/index.js.map +1 -1
  39. package/resources/ai/index.mjs +1 -0
  40. package/resources/ai/index.mjs.map +1 -1
  41. package/resources/ai/tests/index.d.mts +4 -0
  42. package/resources/ai/tests/index.d.mts.map +1 -0
  43. package/resources/ai/tests/index.d.ts +4 -0
  44. package/resources/ai/tests/index.d.ts.map +1 -0
  45. package/resources/ai/tests/index.js +11 -0
  46. package/resources/ai/tests/index.js.map +1 -0
  47. package/resources/ai/tests/index.mjs +5 -0
  48. package/resources/ai/tests/index.mjs.map +1 -0
  49. package/resources/ai/tests/schedules/index.d.mts +3 -0
  50. package/resources/ai/tests/schedules/index.d.mts.map +1 -0
  51. package/resources/ai/tests/schedules/index.d.ts +3 -0
  52. package/resources/ai/tests/schedules/index.d.ts.map +1 -0
  53. package/resources/ai/tests/schedules/index.js +9 -0
  54. package/resources/ai/tests/schedules/index.js.map +1 -0
  55. package/resources/ai/tests/schedules/index.mjs +4 -0
  56. package/resources/ai/tests/schedules/index.mjs.map +1 -0
  57. package/resources/ai/tests/schedules/schedules.d.mts +10 -0
  58. package/resources/ai/tests/schedules/schedules.d.mts.map +1 -0
  59. package/resources/ai/tests/schedules/schedules.d.ts +10 -0
  60. package/resources/ai/tests/schedules/schedules.d.ts.map +1 -0
  61. package/resources/ai/tests/schedules/schedules.js +17 -0
  62. package/resources/ai/tests/schedules/schedules.js.map +1 -0
  63. package/resources/ai/tests/schedules/schedules.mjs +12 -0
  64. package/resources/ai/tests/schedules/schedules.mjs.map +1 -0
  65. package/resources/ai/tests/schedules/v1/cron-jobs.d.mts +171 -0
  66. package/resources/ai/tests/schedules/v1/cron-jobs.d.mts.map +1 -0
  67. package/resources/ai/tests/schedules/v1/cron-jobs.d.ts +171 -0
  68. package/resources/ai/tests/schedules/v1/cron-jobs.d.ts.map +1 -0
  69. package/resources/ai/tests/schedules/v1/cron-jobs.js +88 -0
  70. package/resources/ai/tests/schedules/v1/cron-jobs.js.map +1 -0
  71. package/resources/ai/tests/schedules/v1/cron-jobs.mjs +84 -0
  72. package/resources/ai/tests/schedules/v1/cron-jobs.mjs.map +1 -0
  73. package/resources/ai/tests/schedules/v1/index.d.mts +3 -0
  74. package/resources/ai/tests/schedules/v1/index.d.mts.map +1 -0
  75. package/resources/ai/tests/schedules/v1/index.d.ts +3 -0
  76. package/resources/ai/tests/schedules/v1/index.d.ts.map +1 -0
  77. package/resources/ai/tests/schedules/v1/index.js +9 -0
  78. package/resources/ai/tests/schedules/v1/index.js.map +1 -0
  79. package/resources/ai/tests/schedules/v1/index.mjs +4 -0
  80. package/resources/ai/tests/schedules/v1/index.mjs.map +1 -0
  81. package/resources/ai/tests/schedules/v1/v1.d.mts +10 -0
  82. package/resources/ai/tests/schedules/v1/v1.d.mts.map +1 -0
  83. package/resources/ai/tests/schedules/v1/v1.d.ts +10 -0
  84. package/resources/ai/tests/schedules/v1/v1.d.ts.map +1 -0
  85. package/resources/ai/tests/schedules/v1/v1.js +17 -0
  86. package/resources/ai/tests/schedules/v1/v1.js.map +1 -0
  87. package/resources/ai/tests/schedules/v1/v1.mjs +12 -0
  88. package/resources/ai/tests/schedules/v1/v1.mjs.map +1 -0
  89. package/resources/ai/tests/schedules/v1.d.mts +2 -0
  90. package/resources/ai/tests/schedules/v1.d.mts.map +1 -0
  91. package/resources/ai/tests/schedules/v1.d.ts +2 -0
  92. package/resources/ai/tests/schedules/v1.d.ts.map +1 -0
  93. package/resources/ai/tests/schedules/v1.js +6 -0
  94. package/resources/ai/tests/schedules/v1.js.map +1 -0
  95. package/resources/ai/tests/schedules/v1.mjs +3 -0
  96. package/resources/ai/tests/schedules/v1.mjs.map +1 -0
  97. package/resources/ai/tests/schedules.d.mts +2 -0
  98. package/resources/ai/tests/schedules.d.mts.map +1 -0
  99. package/resources/ai/tests/schedules.d.ts +2 -0
  100. package/resources/ai/tests/schedules.d.ts.map +1 -0
  101. package/resources/ai/tests/schedules.js +6 -0
  102. package/resources/ai/tests/schedules.js.map +1 -0
  103. package/resources/ai/tests/schedules.mjs +3 -0
  104. package/resources/ai/tests/schedules.mjs.map +1 -0
  105. package/resources/ai/tests/test-framework/index.d.mts +3 -0
  106. package/resources/ai/tests/test-framework/index.d.mts.map +1 -0
  107. package/resources/ai/tests/test-framework/index.d.ts +3 -0
  108. package/resources/ai/tests/test-framework/index.d.ts.map +1 -0
  109. package/resources/ai/tests/test-framework/index.js +9 -0
  110. package/resources/ai/tests/test-framework/index.js.map +1 -0
  111. package/resources/ai/tests/test-framework/index.mjs +4 -0
  112. package/resources/ai/tests/test-framework/index.mjs.map +1 -0
  113. package/resources/ai/tests/test-framework/test-framework.d.mts +10 -0
  114. package/resources/ai/tests/test-framework/test-framework.d.mts.map +1 -0
  115. package/resources/ai/tests/test-framework/test-framework.d.ts +10 -0
  116. package/resources/ai/tests/test-framework/test-framework.d.ts.map +1 -0
  117. package/resources/ai/tests/test-framework/test-framework.js +17 -0
  118. package/resources/ai/tests/test-framework/test-framework.js.map +1 -0
  119. package/resources/ai/tests/test-framework/test-framework.mjs +12 -0
  120. package/resources/ai/tests/test-framework/test-framework.mjs.map +1 -0
  121. package/resources/ai/tests/test-framework/v1/aiagents.d.mts +216 -0
  122. package/resources/ai/tests/test-framework/v1/aiagents.d.mts.map +1 -0
  123. package/resources/ai/tests/test-framework/v1/aiagents.d.ts +216 -0
  124. package/resources/ai/tests/test-framework/v1/aiagents.d.ts.map +1 -0
  125. package/resources/ai/tests/test-framework/v1/aiagents.js +93 -0
  126. package/resources/ai/tests/test-framework/v1/aiagents.js.map +1 -0
  127. package/resources/ai/tests/test-framework/v1/aiagents.mjs +89 -0
  128. package/resources/ai/tests/test-framework/v1/aiagents.mjs.map +1 -0
  129. package/resources/ai/tests/test-framework/v1/index.d.mts +6 -0
  130. package/resources/ai/tests/test-framework/v1/index.d.mts.map +1 -0
  131. package/resources/ai/tests/test-framework/v1/index.d.ts +6 -0
  132. package/resources/ai/tests/test-framework/v1/index.d.ts.map +1 -0
  133. package/resources/ai/tests/test-framework/v1/index.js +15 -0
  134. package/resources/ai/tests/test-framework/v1/index.js.map +1 -0
  135. package/resources/ai/tests/test-framework/v1/index.mjs +7 -0
  136. package/resources/ai/tests/test-framework/v1/index.mjs.map +1 -0
  137. package/resources/ai/tests/test-framework/v1/metrics.d.mts +339 -0
  138. package/resources/ai/tests/test-framework/v1/metrics.d.mts.map +1 -0
  139. package/resources/ai/tests/test-framework/v1/metrics.d.ts +339 -0
  140. package/resources/ai/tests/test-framework/v1/metrics.d.ts.map +1 -0
  141. package/resources/ai/tests/test-framework/v1/metrics.js +145 -0
  142. package/resources/ai/tests/test-framework/v1/metrics.js.map +1 -0
  143. package/resources/ai/tests/test-framework/v1/metrics.mjs +141 -0
  144. package/resources/ai/tests/test-framework/v1/metrics.mjs.map +1 -0
  145. package/resources/ai/tests/test-framework/v1/results.d.mts +207 -0
  146. package/resources/ai/tests/test-framework/v1/results.d.mts.map +1 -0
  147. package/resources/ai/tests/test-framework/v1/results.d.ts +207 -0
  148. package/resources/ai/tests/test-framework/v1/results.d.ts.map +1 -0
  149. package/resources/ai/tests/test-framework/v1/results.js +65 -0
  150. package/resources/ai/tests/test-framework/v1/results.js.map +1 -0
  151. package/resources/ai/tests/test-framework/v1/results.mjs +61 -0
  152. package/resources/ai/tests/test-framework/v1/results.mjs.map +1 -0
  153. package/resources/ai/tests/test-framework/v1/scenarios.d.mts +528 -0
  154. package/resources/ai/tests/test-framework/v1/scenarios.d.mts.map +1 -0
  155. package/resources/ai/tests/test-framework/v1/scenarios.d.ts +528 -0
  156. package/resources/ai/tests/test-framework/v1/scenarios.d.ts.map +1 -0
  157. package/resources/ai/tests/test-framework/v1/scenarios.js +222 -0
  158. package/resources/ai/tests/test-framework/v1/scenarios.js.map +1 -0
  159. package/resources/ai/tests/test-framework/v1/scenarios.mjs +218 -0
  160. package/resources/ai/tests/test-framework/v1/scenarios.mjs.map +1 -0
  161. package/resources/ai/tests/test-framework/v1/v1.d.mts +83 -0
  162. package/resources/ai/tests/test-framework/v1/v1.d.mts.map +1 -0
  163. package/resources/ai/tests/test-framework/v1/v1.d.ts +83 -0
  164. package/resources/ai/tests/test-framework/v1/v1.d.ts.map +1 -0
  165. package/resources/ai/tests/test-framework/v1/v1.js +46 -0
  166. package/resources/ai/tests/test-framework/v1/v1.js.map +1 -0
  167. package/resources/ai/tests/test-framework/v1/v1.mjs +41 -0
  168. package/resources/ai/tests/test-framework/v1/v1.mjs.map +1 -0
  169. package/resources/ai/tests/test-framework/v1.d.mts +2 -0
  170. package/resources/ai/tests/test-framework/v1.d.mts.map +1 -0
  171. package/resources/ai/tests/test-framework/v1.d.ts +2 -0
  172. package/resources/ai/tests/test-framework/v1.d.ts.map +1 -0
  173. package/resources/ai/tests/test-framework/v1.js +6 -0
  174. package/resources/ai/tests/test-framework/v1.js.map +1 -0
  175. package/resources/ai/tests/test-framework/v1.mjs +3 -0
  176. package/resources/ai/tests/test-framework/v1.mjs.map +1 -0
  177. package/resources/ai/tests/test-framework.d.mts +2 -0
  178. package/resources/ai/tests/test-framework.d.mts.map +1 -0
  179. package/resources/ai/tests/test-framework.d.ts +2 -0
  180. package/resources/ai/tests/test-framework.d.ts.map +1 -0
  181. package/resources/ai/tests/test-framework.js +6 -0
  182. package/resources/ai/tests/test-framework.js.map +1 -0
  183. package/resources/ai/tests/test-framework.mjs +3 -0
  184. package/resources/ai/tests/test-framework.mjs.map +1 -0
  185. package/resources/ai/tests/tests.d.mts +14 -0
  186. package/resources/ai/tests/tests.d.mts.map +1 -0
  187. package/resources/ai/tests/tests.d.ts +14 -0
  188. package/resources/ai/tests/tests.d.ts.map +1 -0
  189. package/resources/ai/tests/tests.js +21 -0
  190. package/resources/ai/tests/tests.js.map +1 -0
  191. package/resources/ai/tests/tests.mjs +16 -0
  192. package/resources/ai/tests/tests.mjs.map +1 -0
  193. package/resources/ai/tests.d.mts +2 -0
  194. package/resources/ai/tests.d.mts.map +1 -0
  195. package/resources/ai/tests.d.ts +2 -0
  196. package/resources/ai/tests.d.ts.map +1 -0
  197. package/resources/ai/tests.js +6 -0
  198. package/resources/ai/tests.js.map +1 -0
  199. package/resources/ai/tests.mjs +3 -0
  200. package/resources/ai/tests.mjs.map +1 -0
  201. package/resources/artifact-downloads.d.mts +21 -0
  202. package/resources/artifact-downloads.d.mts.map +1 -0
  203. package/resources/artifact-downloads.d.ts +21 -0
  204. package/resources/artifact-downloads.d.ts.map +1 -0
  205. package/resources/artifact-downloads.js +26 -0
  206. package/resources/artifact-downloads.js.map +1 -0
  207. package/resources/artifact-downloads.mjs +22 -0
  208. package/resources/artifact-downloads.mjs.map +1 -0
  209. package/resources/bot-challenge.js +1 -1
  210. package/resources/bot-challenge.js.map +1 -1
  211. package/resources/bot-challenge.mjs +1 -1
  212. package/resources/bot-challenge.mjs.map +1 -1
  213. package/resources/bot-sessions.js +1 -1
  214. package/resources/bot-sessions.js.map +1 -1
  215. package/resources/bot-sessions.mjs +1 -1
  216. package/resources/bot-sessions.mjs.map +1 -1
  217. package/resources/bot-signup.js +2 -2
  218. package/resources/bot-signup.js.map +1 -1
  219. package/resources/bot-signup.mjs +2 -2
  220. package/resources/bot-signup.mjs.map +1 -1
  221. package/resources/browser-sessions/actions.d.mts +542 -0
  222. package/resources/browser-sessions/actions.d.mts.map +1 -0
  223. package/resources/browser-sessions/actions.d.ts +542 -0
  224. package/resources/browser-sessions/actions.d.ts.map +1 -0
  225. package/resources/browser-sessions/actions.js +55 -0
  226. package/resources/browser-sessions/actions.js.map +1 -0
  227. package/resources/browser-sessions/actions.mjs +51 -0
  228. package/resources/browser-sessions/actions.mjs.map +1 -0
  229. package/resources/browser-sessions/browser-sessions.d.mts +165 -0
  230. package/resources/browser-sessions/browser-sessions.d.mts.map +1 -0
  231. package/resources/browser-sessions/browser-sessions.d.ts +165 -0
  232. package/resources/browser-sessions/browser-sessions.d.ts.map +1 -0
  233. package/resources/browser-sessions/browser-sessions.js +87 -0
  234. package/resources/browser-sessions/browser-sessions.js.map +1 -0
  235. package/resources/browser-sessions/browser-sessions.mjs +82 -0
  236. package/resources/browser-sessions/browser-sessions.mjs.map +1 -0
  237. package/resources/browser-sessions/index.d.mts +3 -0
  238. package/resources/browser-sessions/index.d.mts.map +1 -0
  239. package/resources/browser-sessions/index.d.ts +3 -0
  240. package/resources/browser-sessions/index.d.ts.map +1 -0
  241. package/resources/browser-sessions/index.js +9 -0
  242. package/resources/browser-sessions/index.js.map +1 -0
  243. package/resources/browser-sessions/index.mjs +4 -0
  244. package/resources/browser-sessions/index.mjs.map +1 -0
  245. package/resources/browser-sessions.d.mts +2 -0
  246. package/resources/browser-sessions.d.mts.map +1 -0
  247. package/resources/browser-sessions.d.ts +2 -0
  248. package/resources/browser-sessions.d.ts.map +1 -0
  249. package/resources/browser-sessions.js +6 -0
  250. package/resources/browser-sessions.js.map +1 -0
  251. package/resources/browser-sessions.mjs +3 -0
  252. package/resources/browser-sessions.mjs.map +1 -0
  253. package/resources/call-control-applications.d.mts +2 -2
  254. package/resources/call-control-applications.d.ts +2 -2
  255. package/resources/calls/actions.d.mts +35 -28
  256. package/resources/calls/actions.d.mts.map +1 -1
  257. package/resources/calls/actions.d.ts +35 -28
  258. package/resources/calls/actions.d.ts.map +1 -1
  259. package/resources/conferences/actions.d.mts +3 -2
  260. package/resources/conferences/actions.d.mts.map +1 -1
  261. package/resources/conferences/actions.d.ts +3 -2
  262. package/resources/conferences/actions.d.ts.map +1 -1
  263. package/resources/email/dedicated-ips/actions.d.mts +73 -0
  264. package/resources/email/dedicated-ips/actions.d.mts.map +1 -0
  265. package/resources/email/dedicated-ips/actions.d.ts +73 -0
  266. package/resources/email/dedicated-ips/actions.d.ts.map +1 -0
  267. package/resources/email/dedicated-ips/actions.js +84 -0
  268. package/resources/email/dedicated-ips/actions.js.map +1 -0
  269. package/resources/email/dedicated-ips/actions.mjs +80 -0
  270. package/resources/email/dedicated-ips/actions.mjs.map +1 -0
  271. package/resources/email/dedicated-ips/dedicated-ips.d.mts +444 -0
  272. package/resources/email/dedicated-ips/dedicated-ips.d.mts.map +1 -0
  273. package/resources/email/dedicated-ips/dedicated-ips.d.ts +444 -0
  274. package/resources/email/dedicated-ips/dedicated-ips.d.ts.map +1 -0
  275. package/resources/email/dedicated-ips/dedicated-ips.js +142 -0
  276. package/resources/email/dedicated-ips/dedicated-ips.js.map +1 -0
  277. package/resources/email/dedicated-ips/dedicated-ips.mjs +137 -0
  278. package/resources/email/dedicated-ips/dedicated-ips.mjs.map +1 -0
  279. package/resources/email/dedicated-ips/index.d.mts +3 -0
  280. package/resources/email/dedicated-ips/index.d.mts.map +1 -0
  281. package/resources/email/dedicated-ips/index.d.ts +3 -0
  282. package/resources/email/dedicated-ips/index.d.ts.map +1 -0
  283. package/resources/email/dedicated-ips/index.js +9 -0
  284. package/resources/email/dedicated-ips/index.js.map +1 -0
  285. package/resources/email/dedicated-ips/index.mjs +4 -0
  286. package/resources/email/dedicated-ips/index.mjs.map +1 -0
  287. package/resources/email/dedicated-ips.d.mts +2 -0
  288. package/resources/email/dedicated-ips.d.mts.map +1 -0
  289. package/resources/email/dedicated-ips.d.ts +2 -0
  290. package/resources/email/dedicated-ips.d.ts.map +1 -0
  291. package/resources/email/dedicated-ips.js +6 -0
  292. package/resources/email/dedicated-ips.js.map +1 -0
  293. package/resources/email/dedicated-ips.mjs +3 -0
  294. package/resources/email/dedicated-ips.mjs.map +1 -0
  295. package/resources/email/email.d.mts +14 -0
  296. package/resources/email/email.d.mts.map +1 -0
  297. package/resources/email/email.d.ts +14 -0
  298. package/resources/email/email.d.ts.map +1 -0
  299. package/resources/email/email.js +21 -0
  300. package/resources/email/email.js.map +1 -0
  301. package/resources/email/email.mjs +16 -0
  302. package/resources/email/email.mjs.map +1 -0
  303. package/resources/email/index.d.mts +4 -0
  304. package/resources/email/index.d.mts.map +1 -0
  305. package/resources/email/index.d.ts +4 -0
  306. package/resources/email/index.d.ts.map +1 -0
  307. package/resources/email/index.js +11 -0
  308. package/resources/email/index.js.map +1 -0
  309. package/resources/email/index.mjs +5 -0
  310. package/resources/email/index.mjs.map +1 -0
  311. package/resources/email/ip-pools/index.d.mts +3 -0
  312. package/resources/email/ip-pools/index.d.mts.map +1 -0
  313. package/resources/email/ip-pools/index.d.ts +3 -0
  314. package/resources/email/ip-pools/index.d.ts.map +1 -0
  315. package/resources/email/ip-pools/index.js +9 -0
  316. package/resources/email/ip-pools/index.js.map +1 -0
  317. package/resources/email/ip-pools/index.mjs +4 -0
  318. package/resources/email/ip-pools/index.mjs.map +1 -0
  319. package/resources/email/ip-pools/ip-pools.d.mts +184 -0
  320. package/resources/email/ip-pools/ip-pools.d.mts.map +1 -0
  321. package/resources/email/ip-pools/ip-pools.d.ts +184 -0
  322. package/resources/email/ip-pools/ip-pools.d.ts.map +1 -0
  323. package/resources/email/ip-pools/ip-pools.js +102 -0
  324. package/resources/email/ip-pools/ip-pools.js.map +1 -0
  325. package/resources/email/ip-pools/ip-pools.mjs +97 -0
  326. package/resources/email/ip-pools/ip-pools.mjs.map +1 -0
  327. package/resources/email/ip-pools/ips.d.mts +83 -0
  328. package/resources/email/ip-pools/ips.d.mts.map +1 -0
  329. package/resources/email/ip-pools/ips.d.ts +83 -0
  330. package/resources/email/ip-pools/ips.d.ts.map +1 -0
  331. package/resources/email/ip-pools/ips.js +54 -0
  332. package/resources/email/ip-pools/ips.js.map +1 -0
  333. package/resources/email/ip-pools/ips.mjs +50 -0
  334. package/resources/email/ip-pools/ips.mjs.map +1 -0
  335. package/resources/email/ip-pools.d.mts +2 -0
  336. package/resources/email/ip-pools.d.mts.map +1 -0
  337. package/resources/email/ip-pools.d.ts +2 -0
  338. package/resources/email/ip-pools.d.ts.map +1 -0
  339. package/resources/email/ip-pools.js +6 -0
  340. package/resources/email/ip-pools.js.map +1 -0
  341. package/resources/email/ip-pools.mjs +3 -0
  342. package/resources/email/ip-pools.mjs.map +1 -0
  343. package/resources/email.d.mts +2 -0
  344. package/resources/email.d.mts.map +1 -0
  345. package/resources/email.d.ts +2 -0
  346. package/resources/email.d.ts.map +1 -0
  347. package/resources/email.js +6 -0
  348. package/resources/email.js.map +1 -0
  349. package/resources/email.mjs +3 -0
  350. package/resources/email.mjs.map +1 -0
  351. package/resources/fax-applications.d.mts +6 -6
  352. package/resources/fax-applications.d.ts +6 -6
  353. package/resources/fqdn-connections/fqdn-connections.d.mts +2 -2
  354. package/resources/fqdn-connections/fqdn-connections.d.ts +2 -2
  355. package/resources/index.d.mts +8 -2
  356. package/resources/index.d.mts.map +1 -1
  357. package/resources/index.d.ts +8 -2
  358. package/resources/index.d.ts.map +1 -1
  359. package/resources/index.js +16 -4
  360. package/resources/index.js.map +1 -1
  361. package/resources/index.mjs +6 -0
  362. package/resources/index.mjs.map +1 -1
  363. package/resources/ip-connections.d.mts +4 -4
  364. package/resources/ip-connections.d.ts +4 -4
  365. package/resources/messaging-profiles/index.d.mts +1 -1
  366. package/resources/messaging-profiles/index.d.mts.map +1 -1
  367. package/resources/messaging-profiles/index.d.ts +1 -1
  368. package/resources/messaging-profiles/index.d.ts.map +1 -1
  369. package/resources/messaging-profiles/index.js.map +1 -1
  370. package/resources/messaging-profiles/index.mjs.map +1 -1
  371. package/resources/messaging-profiles/messaging-profiles.d.mts +26 -1
  372. package/resources/messaging-profiles/messaging-profiles.d.mts.map +1 -1
  373. package/resources/messaging-profiles/messaging-profiles.d.ts +26 -1
  374. package/resources/messaging-profiles/messaging-profiles.d.ts.map +1 -1
  375. package/resources/messaging-profiles/messaging-profiles.js.map +1 -1
  376. package/resources/messaging-profiles/messaging-profiles.mjs.map +1 -1
  377. package/resources/network-routes.d.mts +257 -0
  378. package/resources/network-routes.d.mts.map +1 -0
  379. package/resources/network-routes.d.ts +257 -0
  380. package/resources/network-routes.d.ts.map +1 -0
  381. package/resources/network-routes.js +83 -0
  382. package/resources/network-routes.js.map +1 -0
  383. package/resources/network-routes.mjs +79 -0
  384. package/resources/network-routes.mjs.map +1 -0
  385. package/resources/pay-connectors.d.mts +378 -0
  386. package/resources/pay-connectors.d.mts.map +1 -0
  387. package/resources/pay-connectors.d.ts +378 -0
  388. package/resources/pay-connectors.d.ts.map +1 -0
  389. package/resources/pay-connectors.js +116 -0
  390. package/resources/pay-connectors.js.map +1 -0
  391. package/resources/pay-connectors.mjs +112 -0
  392. package/resources/pay-connectors.mjs.map +1 -0
  393. package/resources/public-internet-gateways.d.mts +0 -8
  394. package/resources/public-internet-gateways.d.mts.map +1 -1
  395. package/resources/public-internet-gateways.d.ts +0 -8
  396. package/resources/public-internet-gateways.d.ts.map +1 -1
  397. package/resources/spend-limits.d.mts +150 -32
  398. package/resources/spend-limits.d.mts.map +1 -1
  399. package/resources/spend-limits.d.ts +150 -32
  400. package/resources/spend-limits.d.ts.map +1 -1
  401. package/resources/spend-limits.js +26 -7
  402. package/resources/spend-limits.js.map +1 -1
  403. package/resources/spend-limits.mjs +26 -7
  404. package/resources/spend-limits.mjs.map +1 -1
  405. package/resources/texml-applications.d.mts +6 -6
  406. package/resources/texml-applications.d.ts +6 -6
  407. package/resources/text-to-speech/text-to-speech.d.mts +1 -6
  408. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  409. package/resources/text-to-speech/text-to-speech.d.ts +1 -6
  410. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  411. package/resources/text-to-speech/text-to-speech.js +1 -2
  412. package/resources/text-to-speech/text-to-speech.js.map +1 -1
  413. package/resources/text-to-speech/text-to-speech.mjs +1 -2
  414. package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
  415. package/resources/tunnels/actions.d.mts +29 -0
  416. package/resources/tunnels/actions.d.mts.map +1 -0
  417. package/resources/tunnels/actions.d.ts +29 -0
  418. package/resources/tunnels/actions.d.ts.map +1 -0
  419. package/resources/tunnels/actions.js +28 -0
  420. package/resources/tunnels/actions.js.map +1 -0
  421. package/resources/tunnels/actions.mjs +24 -0
  422. package/resources/tunnels/actions.mjs.map +1 -0
  423. package/resources/tunnels/index.d.mts +3 -0
  424. package/resources/tunnels/index.d.mts.map +1 -0
  425. package/resources/tunnels/index.d.ts +3 -0
  426. package/resources/tunnels/index.d.ts.map +1 -0
  427. package/resources/tunnels/index.js +9 -0
  428. package/resources/tunnels/index.js.map +1 -0
  429. package/resources/tunnels/index.mjs +4 -0
  430. package/resources/tunnels/index.mjs.map +1 -0
  431. package/resources/tunnels/tunnels.d.mts +194 -0
  432. package/resources/tunnels/tunnels.d.mts.map +1 -0
  433. package/resources/tunnels/tunnels.d.ts +194 -0
  434. package/resources/tunnels/tunnels.d.ts.map +1 -0
  435. package/resources/tunnels/tunnels.js +82 -0
  436. package/resources/tunnels/tunnels.js.map +1 -0
  437. package/resources/tunnels/tunnels.mjs +77 -0
  438. package/resources/tunnels/tunnels.mjs.map +1 -0
  439. package/resources/tunnels.d.mts +2 -0
  440. package/resources/tunnels.d.mts.map +1 -0
  441. package/resources/tunnels.d.ts +2 -0
  442. package/resources/tunnels.d.ts.map +1 -0
  443. package/resources/tunnels.js +6 -0
  444. package/resources/tunnels.js.map +1 -0
  445. package/resources/tunnels.mjs +3 -0
  446. package/resources/tunnels.mjs.map +1 -0
  447. package/resources/voice-clones.d.mts +54 -8
  448. package/resources/voice-clones.d.mts.map +1 -1
  449. package/resources/voice-clones.d.ts +54 -8
  450. package/resources/voice-clones.d.ts.map +1 -1
  451. package/resources/voice-clones.js +6 -5
  452. package/resources/voice-clones.js.map +1 -1
  453. package/resources/voice-clones.mjs +6 -5
  454. package/resources/voice-clones.mjs.map +1 -1
  455. package/resources/whatsapp/hosted-signups.d.mts +2 -1
  456. package/resources/whatsapp/hosted-signups.d.mts.map +1 -1
  457. package/resources/whatsapp/hosted-signups.d.ts +2 -1
  458. package/resources/whatsapp/hosted-signups.d.ts.map +1 -1
  459. package/resources/wireguard-interfaces.d.mts +0 -8
  460. package/resources/wireguard-interfaces.d.mts.map +1 -1
  461. package/resources/wireguard-interfaces.d.ts +0 -8
  462. package/resources/wireguard-interfaces.d.ts.map +1 -1
  463. package/src/client.ts +126 -0
  464. package/src/resources/addresses/actions.ts +23 -4
  465. package/src/resources/ai/ai.ts +6 -0
  466. package/src/resources/ai/assistants/assistants.ts +31 -24
  467. package/src/resources/ai/avatars.ts +9 -9
  468. package/src/resources/ai/index.ts +1 -0
  469. package/src/resources/ai/tests/index.ts +5 -0
  470. package/src/resources/ai/tests/schedules/index.ts +4 -0
  471. package/src/resources/ai/tests/schedules/schedules.ts +15 -0
  472. package/src/resources/ai/tests/schedules/v1/cron-jobs.ts +248 -0
  473. package/src/resources/ai/tests/schedules/v1/index.ts +12 -0
  474. package/src/resources/ai/tests/schedules/v1/v1.ts +31 -0
  475. package/src/resources/ai/tests/schedules/v1.ts +3 -0
  476. package/src/resources/ai/tests/schedules.ts +3 -0
  477. package/src/resources/ai/tests/test-framework/index.ts +4 -0
  478. package/src/resources/ai/tests/test-framework/test-framework.ts +15 -0
  479. package/src/resources/ai/tests/test-framework/v1/aiagents.ts +304 -0
  480. package/src/resources/ai/tests/test-framework/v1/index.ts +54 -0
  481. package/src/resources/ai/tests/test-framework/v1/metrics.ts +491 -0
  482. package/src/resources/ai/tests/test-framework/v1/results.ts +304 -0
  483. package/src/resources/ai/tests/test-framework/v1/scenarios.ts +774 -0
  484. package/src/resources/ai/tests/test-framework/v1/v1.ts +214 -0
  485. package/src/resources/ai/tests/test-framework/v1.ts +3 -0
  486. package/src/resources/ai/tests/test-framework.ts +3 -0
  487. package/src/resources/ai/tests/tests.ts +21 -0
  488. package/src/resources/ai/tests.ts +3 -0
  489. package/src/resources/artifact-downloads.ts +39 -0
  490. package/src/resources/bot-challenge.ts +1 -1
  491. package/src/resources/bot-sessions.ts +1 -1
  492. package/src/resources/bot-signup.ts +2 -2
  493. package/src/resources/browser-sessions/actions.ts +778 -0
  494. package/src/resources/browser-sessions/browser-sessions.ts +278 -0
  495. package/src/resources/browser-sessions/index.ts +31 -0
  496. package/src/resources/browser-sessions.ts +3 -0
  497. package/src/resources/call-control-applications.ts +2 -2
  498. package/src/resources/calls/actions.ts +38 -27
  499. package/src/resources/conferences/actions.ts +3 -2
  500. package/src/resources/email/dedicated-ips/actions.ts +87 -0
  501. package/src/resources/email/dedicated-ips/dedicated-ips.ts +563 -0
  502. package/src/resources/email/dedicated-ips/index.ts +13 -0
  503. package/src/resources/email/dedicated-ips.ts +3 -0
  504. package/src/resources/email/email.ts +55 -0
  505. package/src/resources/email/index.ts +22 -0
  506. package/src/resources/email/ip-pools/index.ts +12 -0
  507. package/src/resources/email/ip-pools/ip-pools.ts +247 -0
  508. package/src/resources/email/ip-pools/ips.ts +112 -0
  509. package/src/resources/email/ip-pools.ts +3 -0
  510. package/src/resources/email.ts +3 -0
  511. package/src/resources/fax-applications.ts +6 -6
  512. package/src/resources/fqdn-connections/fqdn-connections.ts +2 -2
  513. package/src/resources/index.ts +46 -0
  514. package/src/resources/ip-connections.ts +4 -4
  515. package/src/resources/messaging-profiles/index.ts +1 -0
  516. package/src/resources/messaging-profiles/messaging-profiles.ts +31 -0
  517. package/src/resources/network-routes.ts +332 -0
  518. package/src/resources/pay-connectors.ts +482 -0
  519. package/src/resources/public-internet-gateways.ts +0 -10
  520. package/src/resources/spend-limits.ts +179 -36
  521. package/src/resources/texml-applications.ts +6 -6
  522. package/src/resources/text-to-speech/text-to-speech.ts +1 -7
  523. package/src/resources/tunnels/actions.ts +36 -0
  524. package/src/resources/tunnels/index.ts +13 -0
  525. package/src/resources/tunnels/tunnels.ts +260 -0
  526. package/src/resources/tunnels.ts +3 -0
  527. package/src/resources/voice-clones.ts +88 -8
  528. package/src/resources/whatsapp/hosted-signups.ts +2 -1
  529. package/src/resources/wireguard-interfaces.ts +0 -10
  530. package/src/version.ts +1 -1
  531. package/version.d.mts +1 -1
  532. package/version.d.ts +1 -1
  533. package/version.js +1 -1
  534. package/version.mjs +1 -1
@@ -0,0 +1,542 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ /**
5
+ * Execute browser actions: navigate, observe, click, fill, select, press, scroll, wait_for, screenshot, batch.
6
+ */
7
+ export declare class Actions extends APIResource {
8
+ /**
9
+ * Executes a browser action on the session. Returns 200 if completed within
10
+ * wait_seconds, 202 if still in-flight.
11
+ *
12
+ * Action types: navigate, observe, click, fill, select, press, scroll, wait_for,
13
+ * screenshot, batch.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const action = await client.browserSessions.actions.create(
18
+ * 'id',
19
+ * { type: 'navigate', url: 'https://example.com/' },
20
+ * );
21
+ * ```
22
+ */
23
+ create(id: string, params: ActionCreateParams, options?: RequestOptions): APIPromise<ActionCreateResponse>;
24
+ /**
25
+ * Returns the stored status and result of an action. Use this to poll actions that
26
+ * returned 202; HTTP 200 can contain any action status. Stored observations
27
+ * contain metadata with empty tree and refs, not the full snapshot; submit a fresh
28
+ * observe action to obtain current refs.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const action =
33
+ * await client.browserSessions.actions.retrieve(
34
+ * 'actionId',
35
+ * { id: 'id' },
36
+ * );
37
+ * ```
38
+ */
39
+ retrieve(actionID: string, params: ActionRetrieveParams, options?: RequestOptions): APIPromise<ActionRetrieveResponse>;
40
+ }
41
+ export interface ActionResponse {
42
+ id: string;
43
+ completed_at: string | null;
44
+ created_at: string;
45
+ /**
46
+ * Null unless an execution failure is recorded. Action failures (policy_denied,
47
+ * stale_observation, stale_ref, navigation_blocked, timeout, execution_lost,
48
+ * result_too_large) are returned on the action resource with HTTP 200. An unknown
49
+ * action with execution_lost has retryable=false; inspect session state and
50
+ * reconcile possible effects before any new action. Separately, a request may
51
+ * return HTTP 503 with a top-level execution_lost error and retryable=true; that
52
+ * is not proof of safe re-execution.
53
+ */
54
+ error: ActionResponse.Error | null;
55
+ /**
56
+ * Normalized request metadata; defaults may be materialized and fill values are
57
+ * redacted as {redacted: true, length: number}, including inside batch actions.
58
+ */
59
+ request: unknown;
60
+ result: ActionResponse.Result | null;
61
+ seq: number;
62
+ session_id: string;
63
+ started_at: string | null;
64
+ /**
65
+ * POST returns 202 for queued or running actions. Terminal states are succeeded,
66
+ * failed, and unknown (the execution outcome could not be determined, with
67
+ * error.code=execution_lost). GET returns 200 for both nonterminal and terminal
68
+ * states.
69
+ */
70
+ status: 'queued' | 'running' | 'succeeded' | 'failed' | 'unknown';
71
+ type: string;
72
+ }
73
+ export declare namespace ActionResponse {
74
+ /**
75
+ * Null unless an execution failure is recorded. Action failures (policy_denied,
76
+ * stale_observation, stale_ref, navigation_blocked, timeout, execution_lost,
77
+ * result_too_large) are returned on the action resource with HTTP 200. An unknown
78
+ * action with execution_lost has retryable=false; inspect session state and
79
+ * reconcile possible effects before any new action. Separately, a request may
80
+ * return HTTP 503 with a top-level execution_lost error and retryable=true; that
81
+ * is not proof of safe re-execution.
82
+ */
83
+ interface Error {
84
+ code: string;
85
+ retryable: boolean;
86
+ }
87
+ interface Result {
88
+ artifact?: Result.Artifact;
89
+ /**
90
+ * Full tree and refs are delivered only in the original successful POST response
91
+ * when completed within wait_seconds. GET polling and idempotent replays return
92
+ * metadata with an empty tree and refs plus ref_count. Submit a fresh observe
93
+ * action to obtain usable refs.
94
+ */
95
+ observation?: Result.Observation;
96
+ /**
97
+ * Present only for batch actions.
98
+ */
99
+ results?: Array<unknown>;
100
+ title?: string;
101
+ url?: string;
102
+ }
103
+ namespace Result {
104
+ interface Artifact {
105
+ artifact_id?: string;
106
+ content_type?: string;
107
+ size_bytes?: number;
108
+ }
109
+ /**
110
+ * Full tree and refs are delivered only in the original successful POST response
111
+ * when completed within wait_seconds. GET polling and idempotent replays return
112
+ * metadata with an empty tree and refs plus ref_count. Submit a fresh observe
113
+ * action to obtain usable refs.
114
+ */
115
+ interface Observation {
116
+ observation_id?: string;
117
+ /**
118
+ * Number of refs in the original observation, present on stored observation
119
+ * metadata.
120
+ */
121
+ ref_count?: number;
122
+ refs?: unknown;
123
+ title?: string;
124
+ tree?: string;
125
+ truncated?: boolean;
126
+ url?: string;
127
+ }
128
+ }
129
+ }
130
+ /**
131
+ * Click an element identified by observation_id + ref.
132
+ */
133
+ export interface ClickAction {
134
+ observation_id: string;
135
+ ref: string;
136
+ type: 'click';
137
+ idempotency_key?: string;
138
+ include_observation?: boolean;
139
+ timeout_ms?: number;
140
+ wait?: 'no_wait' | 'dom_stable' | 'url_change';
141
+ }
142
+ /**
143
+ * Type text into the element identified by observation_id + ref.
144
+ */
145
+ export interface FillAction {
146
+ observation_id: string;
147
+ ref: string;
148
+ type: 'fill';
149
+ value: string;
150
+ idempotency_key?: string;
151
+ include_observation?: boolean;
152
+ }
153
+ /**
154
+ * Navigate to a URL.
155
+ */
156
+ export interface NavigateAction {
157
+ type: 'navigate';
158
+ url: string;
159
+ idempotency_key?: string;
160
+ include_observation?: boolean;
161
+ wait_until?: 'load' | 'dom_stable' | 'none';
162
+ }
163
+ /**
164
+ * Capture an observation (DOM snapshot) of the current page.
165
+ */
166
+ export interface ObserveAction {
167
+ type: 'observe';
168
+ idempotency_key?: string;
169
+ include_observation?: boolean;
170
+ }
171
+ /**
172
+ * Press a keyboard key.
173
+ */
174
+ export interface PressAction {
175
+ key: 'Enter' | 'Tab' | 'Escape' | 'Backspace' | 'ArrowUp' | 'ArrowDown' | 'ArrowLeft' | 'ArrowRight' | 'PageUp' | 'PageDown' | 'Home' | 'End';
176
+ type: 'press';
177
+ idempotency_key?: string;
178
+ include_observation?: boolean;
179
+ }
180
+ /**
181
+ * Capture a screenshot of the current page.
182
+ */
183
+ export interface ScreenshotAction {
184
+ type: 'screenshot';
185
+ idempotency_key?: string;
186
+ include_observation?: boolean;
187
+ }
188
+ /**
189
+ * Scroll the page.
190
+ */
191
+ export interface ScrollAction {
192
+ type: 'scroll';
193
+ delta_x?: number;
194
+ delta_y?: number;
195
+ idempotency_key?: string;
196
+ include_observation?: boolean;
197
+ }
198
+ /**
199
+ * Select an option on the element identified by observation_id + ref.
200
+ */
201
+ export interface SelectAction {
202
+ observation_id: string;
203
+ ref: string;
204
+ type: 'select';
205
+ value: string;
206
+ idempotency_key?: string;
207
+ include_observation?: boolean;
208
+ }
209
+ /**
210
+ * Wait for a condition before continuing.
211
+ */
212
+ export interface WaitForAction {
213
+ condition: WaitForAction.UnionMember0 | WaitForAction.UnionMember1 | WaitForAction.UnionMember2 | WaitForAction.Kind;
214
+ type: 'wait_for';
215
+ idempotency_key?: string;
216
+ include_observation?: boolean;
217
+ timeout_ms?: number;
218
+ }
219
+ export declare namespace WaitForAction {
220
+ interface UnionMember0 {
221
+ kind: 'url_pattern';
222
+ pattern: string;
223
+ }
224
+ interface UnionMember1 {
225
+ kind: 'ref';
226
+ observation_id: string;
227
+ ref: string;
228
+ }
229
+ interface UnionMember2 {
230
+ kind: 'text';
231
+ text: string;
232
+ }
233
+ interface Kind {
234
+ kind: 'dom_stable';
235
+ }
236
+ }
237
+ export interface ActionCreateResponse {
238
+ data?: ActionResponse;
239
+ }
240
+ export interface ActionRetrieveResponse {
241
+ data?: ActionResponse;
242
+ }
243
+ export type ActionCreateParams = ActionCreateParams.NavigateAction | ActionCreateParams.ObserveAction | ActionCreateParams.ClickAction | ActionCreateParams.FillAction | ActionCreateParams.SelectAction | ActionCreateParams.PressAction | ActionCreateParams.ScrollAction | ActionCreateParams.ScreenshotAction | ActionCreateParams.WaitForAction | ActionCreateParams.BatchAction;
244
+ export declare namespace ActionCreateParams {
245
+ interface NavigateAction {
246
+ /**
247
+ * Body param
248
+ */
249
+ type: 'navigate';
250
+ /**
251
+ * Body param
252
+ */
253
+ url: string;
254
+ /**
255
+ * Query param: Maximum seconds the submission request waits for completion, not an
256
+ * execution timeout. If still queued or running, returns 202 without cancelling
257
+ * execution; poll the returned action ID.
258
+ */
259
+ wait_seconds?: number;
260
+ /**
261
+ * Body param
262
+ */
263
+ idempotency_key?: string;
264
+ /**
265
+ * Body param
266
+ */
267
+ include_observation?: boolean;
268
+ /**
269
+ * Body param
270
+ */
271
+ wait_until?: 'load' | 'dom_stable' | 'none';
272
+ }
273
+ interface ObserveAction {
274
+ /**
275
+ * Body param
276
+ */
277
+ type: 'observe';
278
+ /**
279
+ * Query param: Maximum seconds the submission request waits for completion, not an
280
+ * execution timeout. If still queued or running, returns 202 without cancelling
281
+ * execution; poll the returned action ID.
282
+ */
283
+ wait_seconds?: number;
284
+ /**
285
+ * Body param
286
+ */
287
+ idempotency_key?: string;
288
+ /**
289
+ * Body param
290
+ */
291
+ include_observation?: boolean;
292
+ }
293
+ interface ClickAction {
294
+ /**
295
+ * Body param
296
+ */
297
+ observation_id: string;
298
+ /**
299
+ * Body param
300
+ */
301
+ ref: string;
302
+ /**
303
+ * Body param
304
+ */
305
+ type: 'click';
306
+ /**
307
+ * Query param: Maximum seconds the submission request waits for completion, not an
308
+ * execution timeout. If still queued or running, returns 202 without cancelling
309
+ * execution; poll the returned action ID.
310
+ */
311
+ wait_seconds?: number;
312
+ /**
313
+ * Body param
314
+ */
315
+ idempotency_key?: string;
316
+ /**
317
+ * Body param
318
+ */
319
+ include_observation?: boolean;
320
+ /**
321
+ * Body param
322
+ */
323
+ timeout_ms?: number;
324
+ /**
325
+ * Body param
326
+ */
327
+ wait?: 'no_wait' | 'dom_stable' | 'url_change';
328
+ }
329
+ interface FillAction {
330
+ /**
331
+ * Body param
332
+ */
333
+ observation_id: string;
334
+ /**
335
+ * Body param
336
+ */
337
+ ref: string;
338
+ /**
339
+ * Body param
340
+ */
341
+ type: 'fill';
342
+ /**
343
+ * Body param
344
+ */
345
+ value: string;
346
+ /**
347
+ * Query param: Maximum seconds the submission request waits for completion, not an
348
+ * execution timeout. If still queued or running, returns 202 without cancelling
349
+ * execution; poll the returned action ID.
350
+ */
351
+ wait_seconds?: number;
352
+ /**
353
+ * Body param
354
+ */
355
+ idempotency_key?: string;
356
+ /**
357
+ * Body param
358
+ */
359
+ include_observation?: boolean;
360
+ }
361
+ interface SelectAction {
362
+ /**
363
+ * Body param
364
+ */
365
+ observation_id: string;
366
+ /**
367
+ * Body param
368
+ */
369
+ ref: string;
370
+ /**
371
+ * Body param
372
+ */
373
+ type: 'select';
374
+ /**
375
+ * Body param
376
+ */
377
+ value: string;
378
+ /**
379
+ * Query param: Maximum seconds the submission request waits for completion, not an
380
+ * execution timeout. If still queued or running, returns 202 without cancelling
381
+ * execution; poll the returned action ID.
382
+ */
383
+ wait_seconds?: number;
384
+ /**
385
+ * Body param
386
+ */
387
+ idempotency_key?: string;
388
+ /**
389
+ * Body param
390
+ */
391
+ include_observation?: boolean;
392
+ }
393
+ interface PressAction {
394
+ /**
395
+ * Body param
396
+ */
397
+ key: 'Enter' | 'Tab' | 'Escape' | 'Backspace' | 'ArrowUp' | 'ArrowDown' | 'ArrowLeft' | 'ArrowRight' | 'PageUp' | 'PageDown' | 'Home' | 'End';
398
+ /**
399
+ * Body param
400
+ */
401
+ type: 'press';
402
+ /**
403
+ * Query param: Maximum seconds the submission request waits for completion, not an
404
+ * execution timeout. If still queued or running, returns 202 without cancelling
405
+ * execution; poll the returned action ID.
406
+ */
407
+ wait_seconds?: number;
408
+ /**
409
+ * Body param
410
+ */
411
+ idempotency_key?: string;
412
+ /**
413
+ * Body param
414
+ */
415
+ include_observation?: boolean;
416
+ }
417
+ interface ScrollAction {
418
+ /**
419
+ * Body param
420
+ */
421
+ type: 'scroll';
422
+ /**
423
+ * Query param: Maximum seconds the submission request waits for completion, not an
424
+ * execution timeout. If still queued or running, returns 202 without cancelling
425
+ * execution; poll the returned action ID.
426
+ */
427
+ wait_seconds?: number;
428
+ /**
429
+ * Body param
430
+ */
431
+ delta_x?: number;
432
+ /**
433
+ * Body param
434
+ */
435
+ delta_y?: number;
436
+ /**
437
+ * Body param
438
+ */
439
+ idempotency_key?: string;
440
+ /**
441
+ * Body param
442
+ */
443
+ include_observation?: boolean;
444
+ }
445
+ interface ScreenshotAction {
446
+ /**
447
+ * Body param
448
+ */
449
+ type: 'screenshot';
450
+ /**
451
+ * Query param: Maximum seconds the submission request waits for completion, not an
452
+ * execution timeout. If still queued or running, returns 202 without cancelling
453
+ * execution; poll the returned action ID.
454
+ */
455
+ wait_seconds?: number;
456
+ /**
457
+ * Body param
458
+ */
459
+ idempotency_key?: string;
460
+ /**
461
+ * Body param
462
+ */
463
+ include_observation?: boolean;
464
+ }
465
+ interface WaitForAction {
466
+ /**
467
+ * Body param
468
+ */
469
+ condition: WaitForAction.UnionMember0 | WaitForAction.UnionMember1 | WaitForAction.UnionMember2 | WaitForAction.Kind;
470
+ /**
471
+ * Body param
472
+ */
473
+ type: 'wait_for';
474
+ /**
475
+ * Query param: Maximum seconds the submission request waits for completion, not an
476
+ * execution timeout. If still queued or running, returns 202 without cancelling
477
+ * execution; poll the returned action ID.
478
+ */
479
+ wait_seconds?: number;
480
+ /**
481
+ * Body param
482
+ */
483
+ idempotency_key?: string;
484
+ /**
485
+ * Body param
486
+ */
487
+ include_observation?: boolean;
488
+ /**
489
+ * Body param
490
+ */
491
+ timeout_ms?: number;
492
+ }
493
+ namespace WaitForAction {
494
+ interface UnionMember0 {
495
+ kind: 'url_pattern';
496
+ pattern: string;
497
+ }
498
+ interface UnionMember1 {
499
+ kind: 'ref';
500
+ observation_id: string;
501
+ ref: string;
502
+ }
503
+ interface UnionMember2 {
504
+ kind: 'text';
505
+ text: string;
506
+ }
507
+ interface Kind {
508
+ kind: 'dom_stable';
509
+ }
510
+ }
511
+ interface BatchAction {
512
+ /**
513
+ * Body param
514
+ */
515
+ actions: Array<NavigateAction | ObserveAction | ClickAction | FillAction | SelectAction | PressAction | ScrollAction | ScreenshotAction | WaitForAction>;
516
+ /**
517
+ * Body param
518
+ */
519
+ type: 'batch';
520
+ /**
521
+ * Query param: Maximum seconds the submission request waits for completion, not an
522
+ * execution timeout. If still queued or running, returns 202 without cancelling
523
+ * execution; poll the returned action ID.
524
+ */
525
+ wait_seconds?: number;
526
+ /**
527
+ * Body param
528
+ */
529
+ idempotency_key?: string;
530
+ /**
531
+ * Body param
532
+ */
533
+ include_observation?: boolean;
534
+ }
535
+ }
536
+ export interface ActionRetrieveParams {
537
+ id: string;
538
+ }
539
+ export declare namespace Actions {
540
+ export { type ActionResponse as ActionResponse, type ClickAction as ClickAction, type FillAction as FillAction, type NavigateAction as NavigateAction, type ObserveAction as ObserveAction, type PressAction as PressAction, type ScreenshotAction as ScreenshotAction, type ScrollAction as ScrollAction, type SelectAction as SelectAction, type WaitForAction as WaitForAction, type ActionCreateResponse as ActionCreateResponse, type ActionRetrieveResponse as ActionRetrieveResponse, type ActionCreateParams as ActionCreateParams, type ActionRetrieveParams as ActionRetrieveParams, };
541
+ }
542
+ //# sourceMappingURL=actions.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../src/resources/browser-sessions/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAS1G;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CACN,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;CAItC;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IAEX,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;;OAQG;IACH,KAAK,EAAE,cAAc,CAAC,KAAK,GAAG,IAAI,CAAC;IAEnC;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,EAAE,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC;IAErC,GAAG,EAAE,MAAM,CAAC;IAEZ,UAAU,EAAE,MAAM,CAAC;IAEnB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;;;;OAKG;IACH,MAAM,EAAE,QAAQ,GAAG,SAA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