@mobilerun/sdk 5.4.0 → 5.6.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 (418) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/client.d.mts +10 -13
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -13
  5. package/client.d.ts.map +1 -1
  6. package/client.js +1 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +2 -4
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/apps.d.mts +23 -12
  12. package/resources/apps.d.mts.map +1 -1
  13. package/resources/apps.d.ts +23 -12
  14. package/resources/apps.d.ts.map +1 -1
  15. package/resources/apps.js +8 -3
  16. package/resources/apps.js.map +1 -1
  17. package/resources/apps.mjs +8 -3
  18. package/resources/apps.mjs.map +1 -1
  19. package/resources/assistant/conversations.d.mts +33 -21
  20. package/resources/assistant/conversations.d.mts.map +1 -1
  21. package/resources/assistant/conversations.d.ts +33 -21
  22. package/resources/assistant/conversations.d.ts.map +1 -1
  23. package/resources/assistant/conversations.js +16 -15
  24. package/resources/assistant/conversations.js.map +1 -1
  25. package/resources/assistant/conversations.mjs +16 -15
  26. package/resources/assistant/conversations.mjs.map +1 -1
  27. package/resources/connect/connect.d.mts +2 -2
  28. package/resources/connect/connect.d.mts.map +1 -1
  29. package/resources/connect/connect.d.ts +2 -2
  30. package/resources/connect/connect.d.ts.map +1 -1
  31. package/resources/connect/connect.js.map +1 -1
  32. package/resources/connect/connect.mjs.map +1 -1
  33. package/resources/connect/index.d.mts +1 -1
  34. package/resources/connect/index.d.mts.map +1 -1
  35. package/resources/connect/index.d.ts +1 -1
  36. package/resources/connect/index.d.ts.map +1 -1
  37. package/resources/connect/index.js.map +1 -1
  38. package/resources/connect/index.mjs.map +1 -1
  39. package/resources/connect/proxies.d.mts +118 -19
  40. package/resources/connect/proxies.d.mts.map +1 -1
  41. package/resources/connect/proxies.d.ts +118 -19
  42. package/resources/connect/proxies.d.ts.map +1 -1
  43. package/resources/connect/proxies.js +19 -0
  44. package/resources/connect/proxies.js.map +1 -1
  45. package/resources/connect/proxies.mjs +19 -0
  46. package/resources/connect/proxies.mjs.map +1 -1
  47. package/resources/devices/apps.d.mts +37 -17
  48. package/resources/devices/apps.d.mts.map +1 -1
  49. package/resources/devices/apps.d.ts +37 -17
  50. package/resources/devices/apps.d.ts.map +1 -1
  51. package/resources/devices/apps.js +15 -14
  52. package/resources/devices/apps.js.map +1 -1
  53. package/resources/devices/apps.mjs +15 -14
  54. package/resources/devices/apps.mjs.map +1 -1
  55. package/resources/devices/browser.d.mts +9 -3
  56. package/resources/devices/browser.d.mts.map +1 -1
  57. package/resources/devices/browser.d.ts +9 -3
  58. package/resources/devices/browser.d.ts.map +1 -1
  59. package/resources/devices/browser.js +9 -3
  60. package/resources/devices/browser.js.map +1 -1
  61. package/resources/devices/browser.mjs +9 -3
  62. package/resources/devices/browser.mjs.map +1 -1
  63. package/resources/devices/devices.d.mts +81 -27
  64. package/resources/devices/devices.d.mts.map +1 -1
  65. package/resources/devices/devices.d.ts +81 -27
  66. package/resources/devices/devices.d.ts.map +1 -1
  67. package/resources/devices/devices.js +24 -11
  68. package/resources/devices/devices.js.map +1 -1
  69. package/resources/devices/devices.mjs +24 -11
  70. package/resources/devices/devices.mjs.map +1 -1
  71. package/resources/devices/index.d.mts +2 -1
  72. package/resources/devices/index.d.mts.map +1 -1
  73. package/resources/devices/index.d.ts +2 -1
  74. package/resources/devices/index.d.ts.map +1 -1
  75. package/resources/devices/index.js +3 -1
  76. package/resources/devices/index.js.map +1 -1
  77. package/resources/devices/index.mjs +1 -0
  78. package/resources/devices/index.mjs.map +1 -1
  79. package/resources/devices/keyboard.d.mts +9 -3
  80. package/resources/devices/keyboard.d.mts.map +1 -1
  81. package/resources/devices/keyboard.d.ts +9 -3
  82. package/resources/devices/keyboard.d.ts.map +1 -1
  83. package/resources/devices/keyboard.js +3 -3
  84. package/resources/devices/keyboard.mjs +3 -3
  85. package/resources/devices/recordings.d.mts +13 -0
  86. package/resources/devices/recordings.d.mts.map +1 -1
  87. package/resources/devices/recordings.d.ts +13 -0
  88. package/resources/devices/recordings.d.ts.map +1 -1
  89. package/resources/devices/traffic-sessions.d.mts +163 -0
  90. package/resources/devices/traffic-sessions.d.mts.map +1 -0
  91. package/resources/devices/traffic-sessions.d.ts +163 -0
  92. package/resources/devices/traffic-sessions.d.ts.map +1 -0
  93. package/resources/devices/traffic-sessions.js +37 -0
  94. package/resources/devices/traffic-sessions.js.map +1 -0
  95. package/resources/devices/traffic-sessions.mjs +33 -0
  96. package/resources/devices/traffic-sessions.mjs.map +1 -0
  97. package/resources/files.d.mts +77 -19
  98. package/resources/files.d.mts.map +1 -1
  99. package/resources/files.d.ts +77 -19
  100. package/resources/files.d.ts.map +1 -1
  101. package/resources/files.js +2 -10
  102. package/resources/files.js.map +1 -1
  103. package/resources/files.mjs +2 -10
  104. package/resources/files.mjs.map +1 -1
  105. package/resources/index.d.mts +5 -6
  106. package/resources/index.d.mts.map +1 -1
  107. package/resources/index.d.ts +5 -6
  108. package/resources/index.d.ts.map +1 -1
  109. package/resources/index.js +1 -3
  110. package/resources/index.js.map +1 -1
  111. package/resources/index.mjs +1 -2
  112. package/resources/index.mjs.map +1 -1
  113. package/resources/mailboxes/connections.d.mts +64 -0
  114. package/resources/mailboxes/connections.d.mts.map +1 -0
  115. package/resources/mailboxes/connections.d.ts +64 -0
  116. package/resources/mailboxes/connections.d.ts.map +1 -0
  117. package/resources/mailboxes/connections.js +42 -0
  118. package/resources/mailboxes/connections.js.map +1 -0
  119. package/resources/mailboxes/connections.mjs +38 -0
  120. package/resources/mailboxes/connections.mjs.map +1 -0
  121. package/resources/mailboxes/index.d.mts +2 -1
  122. package/resources/mailboxes/index.d.mts.map +1 -1
  123. package/resources/mailboxes/index.d.ts +2 -1
  124. package/resources/mailboxes/index.d.ts.map +1 -1
  125. package/resources/mailboxes/index.js +3 -1
  126. package/resources/mailboxes/index.js.map +1 -1
  127. package/resources/mailboxes/index.mjs +1 -0
  128. package/resources/mailboxes/index.mjs.map +1 -1
  129. package/resources/mailboxes/mailboxes.d.mts +107 -50
  130. package/resources/mailboxes/mailboxes.d.mts.map +1 -1
  131. package/resources/mailboxes/mailboxes.d.ts +107 -50
  132. package/resources/mailboxes/mailboxes.d.ts.map +1 -1
  133. package/resources/mailboxes/mailboxes.js +34 -24
  134. package/resources/mailboxes/mailboxes.js.map +1 -1
  135. package/resources/mailboxes/mailboxes.mjs +34 -24
  136. package/resources/mailboxes/mailboxes.mjs.map +1 -1
  137. package/resources/mailboxes/messages.d.mts +2 -2
  138. package/resources/mailboxes/messages.d.ts +2 -2
  139. package/resources/mailboxes/messages.js +2 -2
  140. package/resources/mailboxes/messages.mjs +2 -2
  141. package/resources/messages/conversations.d.mts +4 -15
  142. package/resources/messages/conversations.d.mts.map +1 -1
  143. package/resources/messages/conversations.d.ts +4 -15
  144. package/resources/messages/conversations.d.ts.map +1 -1
  145. package/resources/messages/conversations.js +4 -15
  146. package/resources/messages/conversations.js.map +1 -1
  147. package/resources/messages/conversations.mjs +4 -15
  148. package/resources/messages/conversations.mjs.map +1 -1
  149. package/resources/messages/index.d.mts +1 -1
  150. package/resources/messages/index.d.mts.map +1 -1
  151. package/resources/messages/index.d.ts +1 -1
  152. package/resources/messages/index.d.ts.map +1 -1
  153. package/resources/messages/index.js.map +1 -1
  154. package/resources/messages/index.mjs +1 -1
  155. package/resources/messages/index.mjs.map +1 -1
  156. package/resources/messages/messages.d.mts +28 -5
  157. package/resources/messages/messages.d.mts.map +1 -1
  158. package/resources/messages/messages.d.ts +28 -5
  159. package/resources/messages/messages.d.ts.map +1 -1
  160. package/resources/messages/messages.js +11 -4
  161. package/resources/messages/messages.js.map +1 -1
  162. package/resources/messages/messages.mjs +11 -4
  163. package/resources/messages/messages.mjs.map +1 -1
  164. package/resources/notifications.d.mts +27 -1
  165. package/resources/notifications.d.mts.map +1 -1
  166. package/resources/notifications.d.ts +27 -1
  167. package/resources/notifications.d.ts.map +1 -1
  168. package/resources/notifications.js +17 -0
  169. package/resources/notifications.js.map +1 -1
  170. package/resources/notifications.mjs +17 -0
  171. package/resources/notifications.mjs.map +1 -1
  172. package/resources/numbers/index.d.mts +2 -2
  173. package/resources/numbers/index.d.mts.map +1 -1
  174. package/resources/numbers/index.d.ts +2 -2
  175. package/resources/numbers/index.d.ts.map +1 -1
  176. package/resources/numbers/index.js.map +1 -1
  177. package/resources/numbers/index.mjs +1 -1
  178. package/resources/numbers/index.mjs.map +1 -1
  179. package/resources/numbers/messages.d.mts +60 -1
  180. package/resources/numbers/messages.d.mts.map +1 -1
  181. package/resources/numbers/messages.d.ts +60 -1
  182. package/resources/numbers/messages.d.ts.map +1 -1
  183. package/resources/numbers/messages.js +21 -0
  184. package/resources/numbers/messages.js.map +1 -1
  185. package/resources/numbers/messages.mjs +21 -0
  186. package/resources/numbers/messages.mjs.map +1 -1
  187. package/resources/numbers/numbers.d.mts +167 -46
  188. package/resources/numbers/numbers.d.mts.map +1 -1
  189. package/resources/numbers/numbers.d.ts +167 -46
  190. package/resources/numbers/numbers.d.ts.map +1 -1
  191. package/resources/numbers/numbers.js +25 -40
  192. package/resources/numbers/numbers.js.map +1 -1
  193. package/resources/numbers/numbers.mjs +26 -41
  194. package/resources/numbers/numbers.mjs.map +1 -1
  195. package/resources/store/apps.d.mts +23 -2
  196. package/resources/store/apps.d.mts.map +1 -1
  197. package/resources/store/apps.d.ts +23 -2
  198. package/resources/store/apps.d.ts.map +1 -1
  199. package/resources/tasks/tasks.d.mts +84 -75
  200. package/resources/tasks/tasks.d.mts.map +1 -1
  201. package/resources/tasks/tasks.d.ts +84 -75
  202. package/resources/tasks/tasks.d.ts.map +1 -1
  203. package/resources/tasks/tasks.js +2 -10
  204. package/resources/tasks/tasks.js.map +1 -1
  205. package/resources/tasks/tasks.mjs +2 -10
  206. package/resources/tasks/tasks.mjs.map +1 -1
  207. package/resources/webhooks/deliveries.d.mts +22 -31
  208. package/resources/webhooks/deliveries.d.mts.map +1 -1
  209. package/resources/webhooks/deliveries.d.ts +22 -31
  210. package/resources/webhooks/deliveries.d.ts.map +1 -1
  211. package/resources/webhooks/deliveries.js +4 -30
  212. package/resources/webhooks/deliveries.js.map +1 -1
  213. package/resources/webhooks/deliveries.mjs +4 -30
  214. package/resources/webhooks/deliveries.mjs.map +1 -1
  215. package/resources/webhooks/index.d.mts +1 -0
  216. package/resources/webhooks/index.d.mts.map +1 -1
  217. package/resources/webhooks/index.d.ts +1 -0
  218. package/resources/webhooks/index.d.ts.map +1 -1
  219. package/resources/webhooks/index.js +3 -1
  220. package/resources/webhooks/index.js.map +1 -1
  221. package/resources/webhooks/index.mjs +1 -0
  222. package/resources/webhooks/index.mjs.map +1 -1
  223. package/resources/webhooks/integrations.d.mts +77 -0
  224. package/resources/webhooks/integrations.d.mts.map +1 -0
  225. package/resources/webhooks/integrations.d.ts +77 -0
  226. package/resources/webhooks/integrations.d.ts.map +1 -0
  227. package/resources/webhooks/integrations.js +26 -0
  228. package/resources/webhooks/integrations.js.map +1 -0
  229. package/resources/webhooks/integrations.mjs +22 -0
  230. package/resources/webhooks/integrations.mjs.map +1 -0
  231. package/resources/webhooks/webhooks.d.mts +280 -71
  232. package/resources/webhooks/webhooks.d.mts.map +1 -1
  233. package/resources/webhooks/webhooks.d.ts +280 -71
  234. package/resources/webhooks/webhooks.d.ts.map +1 -1
  235. package/resources/webhooks/webhooks.js +27 -60
  236. package/resources/webhooks/webhooks.js.map +1 -1
  237. package/resources/webhooks/webhooks.mjs +27 -60
  238. package/resources/webhooks/webhooks.mjs.map +1 -1
  239. package/resources/workflows/action-catalog.d.mts +7 -3
  240. package/resources/workflows/action-catalog.d.mts.map +1 -1
  241. package/resources/workflows/action-catalog.d.ts +7 -3
  242. package/resources/workflows/action-catalog.d.ts.map +1 -1
  243. package/resources/workflows/actions/actions.d.mts +9 -5
  244. package/resources/workflows/actions/actions.d.mts.map +1 -1
  245. package/resources/workflows/actions/actions.d.ts +9 -5
  246. package/resources/workflows/actions/actions.d.ts.map +1 -1
  247. package/resources/workflows/actions/actions.js +4 -0
  248. package/resources/workflows/actions/actions.js.map +1 -1
  249. package/resources/workflows/actions/actions.mjs +4 -0
  250. package/resources/workflows/actions/actions.mjs.map +1 -1
  251. package/resources/workflows/events.d.mts +66 -4
  252. package/resources/workflows/events.d.mts.map +1 -1
  253. package/resources/workflows/events.d.ts +66 -4
  254. package/resources/workflows/events.d.ts.map +1 -1
  255. package/resources/workflows/executions/executions.d.mts +334 -0
  256. package/resources/workflows/executions/executions.d.mts.map +1 -0
  257. package/resources/workflows/executions/executions.d.ts +334 -0
  258. package/resources/workflows/executions/executions.d.ts.map +1 -0
  259. package/resources/workflows/executions/executions.js +49 -0
  260. package/resources/workflows/executions/executions.js.map +1 -0
  261. package/resources/workflows/executions/executions.mjs +44 -0
  262. package/resources/workflows/executions/executions.mjs.map +1 -0
  263. package/resources/workflows/executions/index.d.mts +3 -0
  264. package/resources/workflows/executions/index.d.mts.map +1 -0
  265. package/resources/workflows/executions/index.d.ts +3 -0
  266. package/resources/workflows/executions/index.d.ts.map +1 -0
  267. package/resources/workflows/executions/index.js +9 -0
  268. package/resources/workflows/executions/index.js.map +1 -0
  269. package/resources/workflows/executions/index.mjs +4 -0
  270. package/resources/workflows/executions/index.mjs.map +1 -0
  271. package/resources/workflows/executions/screenshots.d.mts +18 -0
  272. package/resources/workflows/executions/screenshots.d.mts.map +1 -0
  273. package/resources/workflows/executions/screenshots.d.ts +18 -0
  274. package/resources/workflows/executions/screenshots.d.ts.map +1 -0
  275. package/resources/workflows/executions/screenshots.js +23 -0
  276. package/resources/workflows/executions/screenshots.js.map +1 -0
  277. package/resources/workflows/executions/screenshots.mjs +19 -0
  278. package/resources/workflows/executions/screenshots.mjs.map +1 -0
  279. package/resources/workflows/executions.d.mts +1 -190
  280. package/resources/workflows/executions.d.mts.map +1 -1
  281. package/resources/workflows/executions.d.ts +1 -190
  282. package/resources/workflows/executions.d.ts.map +1 -1
  283. package/resources/workflows/executions.js +2 -36
  284. package/resources/workflows/executions.js.map +1 -1
  285. package/resources/workflows/executions.mjs +1 -34
  286. package/resources/workflows/executions.mjs.map +1 -1
  287. package/resources/workflows/flows/actions.d.mts +58 -0
  288. package/resources/workflows/flows/actions.d.mts.map +1 -1
  289. package/resources/workflows/flows/actions.d.ts +58 -0
  290. package/resources/workflows/flows/actions.d.ts.map +1 -1
  291. package/resources/workflows/flows/actions.js +4 -0
  292. package/resources/workflows/flows/actions.js.map +1 -1
  293. package/resources/workflows/flows/actions.mjs +4 -0
  294. package/resources/workflows/flows/actions.mjs.map +1 -1
  295. package/resources/workflows/flows/flows.d.mts +666 -15
  296. package/resources/workflows/flows/flows.d.mts.map +1 -1
  297. package/resources/workflows/flows/flows.d.ts +666 -15
  298. package/resources/workflows/flows/flows.d.ts.map +1 -1
  299. package/resources/workflows/flows/flows.js +86 -1
  300. package/resources/workflows/flows/flows.js.map +1 -1
  301. package/resources/workflows/flows/flows.mjs +86 -1
  302. package/resources/workflows/flows/flows.mjs.map +1 -1
  303. package/resources/workflows/flows/index.d.mts +1 -1
  304. package/resources/workflows/flows/index.d.mts.map +1 -1
  305. package/resources/workflows/flows/index.d.ts +1 -1
  306. package/resources/workflows/flows/index.d.ts.map +1 -1
  307. package/resources/workflows/flows/index.js.map +1 -1
  308. package/resources/workflows/flows/index.mjs.map +1 -1
  309. package/resources/workflows/index.d.mts +2 -2
  310. package/resources/workflows/index.d.mts.map +1 -1
  311. package/resources/workflows/index.d.ts +2 -2
  312. package/resources/workflows/index.d.ts.map +1 -1
  313. package/resources/workflows/index.js +4 -4
  314. package/resources/workflows/index.js.map +1 -1
  315. package/resources/workflows/index.mjs +1 -1
  316. package/resources/workflows/index.mjs.map +1 -1
  317. package/resources/workflows/triggers.d.mts +118 -6
  318. package/resources/workflows/triggers.d.mts.map +1 -1
  319. package/resources/workflows/triggers.d.ts +118 -6
  320. package/resources/workflows/triggers.d.ts.map +1 -1
  321. package/resources/workflows/triggers.js +14 -0
  322. package/resources/workflows/triggers.js.map +1 -1
  323. package/resources/workflows/triggers.mjs +14 -0
  324. package/resources/workflows/triggers.mjs.map +1 -1
  325. package/resources/workflows/workflows.d.mts +4 -4
  326. package/resources/workflows/workflows.d.mts.map +1 -1
  327. package/resources/workflows/workflows.d.ts +4 -4
  328. package/resources/workflows/workflows.d.ts.map +1 -1
  329. package/resources/workflows/workflows.js +2 -2
  330. package/resources/workflows/workflows.js.map +1 -1
  331. package/resources/workflows/workflows.mjs +2 -2
  332. package/resources/workflows/workflows.mjs.map +1 -1
  333. package/src/client.ts +22 -42
  334. package/src/resources/apps.ts +24 -12
  335. package/src/resources/assistant/conversations.ts +50 -31
  336. package/src/resources/connect/connect.ts +6 -0
  337. package/src/resources/connect/index.ts +3 -0
  338. package/src/resources/connect/proxies.ts +146 -18
  339. package/src/resources/devices/apps.ts +41 -17
  340. package/src/resources/devices/browser.ts +9 -3
  341. package/src/resources/devices/devices.ts +138 -34
  342. package/src/resources/devices/index.ts +13 -0
  343. package/src/resources/devices/keyboard.ts +10 -3
  344. package/src/resources/devices/recordings.ts +14 -0
  345. package/src/resources/devices/traffic-sessions.ts +282 -0
  346. package/src/resources/files.ts +122 -29
  347. package/src/resources/index.ts +13 -20
  348. package/src/resources/mailboxes/connections.ts +91 -0
  349. package/src/resources/mailboxes/index.ts +7 -0
  350. package/src/resources/mailboxes/mailboxes.ts +190 -49
  351. package/src/resources/mailboxes/messages.ts +2 -2
  352. package/src/resources/messages/conversations.ts +4 -15
  353. package/src/resources/messages/index.ts +6 -1
  354. package/src/resources/messages/messages.ts +57 -5
  355. package/src/resources/notifications.ts +37 -0
  356. package/src/resources/numbers/index.ts +9 -1
  357. package/src/resources/numbers/messages.ts +92 -1
  358. package/src/resources/numbers/numbers.ts +197 -55
  359. package/src/resources/store/apps.ts +291 -2
  360. package/src/resources/tasks/tasks.ts +126 -93
  361. package/src/resources/webhooks/deliveries.ts +26 -31
  362. package/src/resources/webhooks/index.ts +6 -0
  363. package/src/resources/webhooks/integrations.ts +107 -0
  364. package/src/resources/webhooks/webhooks.ts +328 -71
  365. package/src/resources/workflows/action-catalog.ts +11 -3
  366. package/src/resources/workflows/actions/actions.ts +9 -5
  367. package/src/resources/workflows/events.ts +86 -4
  368. package/src/resources/workflows/executions/executions.ts +514 -0
  369. package/src/resources/workflows/executions/index.ts +12 -0
  370. package/src/resources/workflows/executions/screenshots.ts +34 -0
  371. package/src/resources/workflows/executions.ts +1 -296
  372. package/src/resources/workflows/flows/actions.ts +72 -0
  373. package/src/resources/workflows/flows/flows.ts +1058 -129
  374. package/src/resources/workflows/flows/index.ts +12 -0
  375. package/src/resources/workflows/index.ts +13 -1
  376. package/src/resources/workflows/triggers.ts +140 -6
  377. package/src/resources/workflows/workflows.ts +34 -10
  378. package/src/version.ts +1 -1
  379. package/version.d.mts +1 -1
  380. package/version.d.ts +1 -1
  381. package/version.js +1 -1
  382. package/version.mjs +1 -1
  383. package/resources/esims/esims.d.mts +0 -566
  384. package/resources/esims/esims.d.mts.map +0 -1
  385. package/resources/esims/esims.d.ts +0 -566
  386. package/resources/esims/esims.d.ts.map +0 -1
  387. package/resources/esims/esims.js +0 -205
  388. package/resources/esims/esims.js.map +0 -1
  389. package/resources/esims/esims.mjs +0 -200
  390. package/resources/esims/esims.mjs.map +0 -1
  391. package/resources/esims/index.d.mts +0 -3
  392. package/resources/esims/index.d.mts.map +0 -1
  393. package/resources/esims/index.d.ts +0 -3
  394. package/resources/esims/index.d.ts.map +0 -1
  395. package/resources/esims/index.js +0 -9
  396. package/resources/esims/index.js.map +0 -1
  397. package/resources/esims/index.mjs +0 -4
  398. package/resources/esims/index.mjs.map +0 -1
  399. package/resources/esims/messages.d.mts +0 -106
  400. package/resources/esims/messages.d.mts.map +0 -1
  401. package/resources/esims/messages.d.ts +0 -106
  402. package/resources/esims/messages.d.ts.map +0 -1
  403. package/resources/esims/messages.js +0 -37
  404. package/resources/esims/messages.js.map +0 -1
  405. package/resources/esims/messages.mjs +0 -33
  406. package/resources/esims/messages.mjs.map +0 -1
  407. package/resources/esims.d.mts +0 -2
  408. package/resources/esims.d.mts.map +0 -1
  409. package/resources/esims.d.ts +0 -2
  410. package/resources/esims.d.ts.map +0 -1
  411. package/resources/esims.js +0 -6
  412. package/resources/esims.js.map +0 -1
  413. package/resources/esims.mjs +0 -3
  414. package/resources/esims.mjs.map +0 -1
  415. package/src/resources/esims/esims.ts +0 -1019
  416. package/src/resources/esims/index.ts +0 -28
  417. package/src/resources/esims/messages.ts +0 -187
  418. package/src/resources/esims.ts +0 -3
@@ -7,6 +7,10 @@ export declare class Proxies extends APIResource {
7
7
  * password.
8
8
  */
9
9
  retrieve(id: string, options?: RequestOptions): APIPromise<ProxyRetrieveResponse>;
10
+ /**
11
+ * Renames the proxy identified by the path ID.
12
+ */
13
+ update(id: string, body: ProxyUpdateParams, options?: RequestOptions): APIPromise<ProxyUpdateResponse>;
10
14
  /**
11
15
  * Returns proxies owned by the calling tenant (the X-Owner-Id header, falling back
12
16
  * to X-User-ID). Credentials are omitted from the list.
@@ -21,6 +25,17 @@ export declare class Proxies extends APIResource {
21
25
  * Returns 404 if no such proxy exists for the caller.
22
26
  */
23
27
  cancel(id: string, options?: RequestOptions): APIPromise<void>;
28
+ /**
29
+ * Checks right now that the proxy's upstream accepts a connection through its
30
+ * current session. If the upstream refuses the session and the proxy is a rotating
31
+ * (sticky-session) proxy, the proxy is moved onto a fresh session that has been
32
+ * checked to work; its credentials and country stay the same, its exit IP changes.
33
+ * Intended for callers that are about to depend on the proxy (e.g. while
34
+ * provisioning a phone). After `rotated`, the gateway uses the new session within
35
+ * about 30 seconds. A `refused` or `unreachable` result is not an error: the
36
+ * response describes the proxy's state.
37
+ */
38
+ ensureHealthy(id: string, options?: RequestOptions): APIPromise<ProxyEnsureHealthyResponse>;
24
39
  /**
25
40
  * Returns the connection history recorded for this proxy, one item per connection
26
41
  * (aggregated across the connection's lifetime). Supports filtering on every
@@ -47,24 +62,63 @@ export interface ProxyRetrieveResponse {
47
62
  country: string;
48
63
  createdAt: string;
49
64
  host: string;
65
+ /**
66
+ * Display name for the proxy. Set it on create or change it with PATCH; when no
67
+ * name has been set, a label generated from the proxy's country, type, and id is
68
+ * returned instead — so this is never empty.
69
+ */
70
+ name: string;
50
71
  password: string;
51
72
  port: number;
52
73
  /**
53
- * Lifecycle of a proxy. A freshly created proxy is `provisioning` — or
54
- * `pending_payment` until the customer completes checkout — and becomes `active`
55
- * once its upstream is assigned. `cancelling` retains full access through the paid
56
- * period; when the subscription expires the proxy is `ended`. `error` marks a
57
- * failed provisioning attempt.
74
+ * Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
75
+ * identity is being resolved — clients should poll until a `paymentUrl` or a later
76
+ * status appears — then `provisioning` — or `pending_payment` until the customer
77
+ * completes checkout — and becomes `active` once its upstream is assigned.
78
+ * `cancelling` retains full access through the paid period; when the subscription
79
+ * expires the proxy is `ended`. `error` marks a failed provisioning attempt.
58
80
  */
59
- status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
81
+ status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
60
82
  type: 'dedicated_residential' | 'residential' | 'mobile';
61
83
  username: string;
84
+ billingMode?: 'included' | 'standalone_paid';
62
85
  /**
63
86
  * Checkout URL to complete payment while status is `pending_payment`. Null once
64
87
  * paid or when no payment was required.
65
88
  */
66
89
  paymentUrl?: string | null;
67
90
  }
91
+ /**
92
+ * A provisioned proxy without its credentials.
93
+ */
94
+ export interface ProxyUpdateResponse {
95
+ id: string;
96
+ /**
97
+ * ISO 3166-1 alpha-2 country code (lowercase).
98
+ */
99
+ country: string;
100
+ createdAt: string;
101
+ host: string;
102
+ /**
103
+ * Display name for the proxy. Set it on create or change it with PATCH; when no
104
+ * name has been set, a label generated from the proxy's country, type, and id is
105
+ * returned instead — so this is never empty.
106
+ */
107
+ name: string;
108
+ port: number;
109
+ /**
110
+ * Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
111
+ * identity is being resolved — clients should poll until a `paymentUrl` or a later
112
+ * status appears — then `provisioning` — or `pending_payment` until the customer
113
+ * completes checkout — and becomes `active` once its upstream is assigned.
114
+ * `cancelling` retains full access through the paid period; when the subscription
115
+ * expires the proxy is `ended`. `error` marks a failed provisioning attempt.
116
+ */
117
+ status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
118
+ type: 'dedicated_residential' | 'residential' | 'mobile';
119
+ username: string;
120
+ billingMode?: 'included' | 'standalone_paid';
121
+ }
68
122
  /**
69
123
  * A page of proxies.
70
124
  */
@@ -87,17 +141,25 @@ export declare namespace ProxyListResponse {
87
141
  country: string;
88
142
  createdAt: string;
89
143
  host: string;
144
+ /**
145
+ * Display name for the proxy. Set it on create or change it with PATCH; when no
146
+ * name has been set, a label generated from the proxy's country, type, and id is
147
+ * returned instead — so this is never empty.
148
+ */
149
+ name: string;
90
150
  port: number;
91
151
  /**
92
- * Lifecycle of a proxy. A freshly created proxy is `provisioning` — or
93
- * `pending_payment` until the customer completes checkout — and becomes `active`
94
- * once its upstream is assigned. `cancelling` retains full access through the paid
95
- * period; when the subscription expires the proxy is `ended`. `error` marks a
96
- * failed provisioning attempt.
152
+ * Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
153
+ * identity is being resolved — clients should poll until a `paymentUrl` or a later
154
+ * status appears — then `provisioning` — or `pending_payment` until the customer
155
+ * completes checkout — and becomes `active` once its upstream is assigned.
156
+ * `cancelling` retains full access through the paid period; when the subscription
157
+ * expires the proxy is `ended`. `error` marks a failed provisioning attempt.
97
158
  */
98
- status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
159
+ status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
99
160
  type: 'dedicated_residential' | 'residential' | 'mobile';
100
161
  username: string;
162
+ billingMode?: 'included' | 'standalone_paid';
101
163
  }
102
164
  /**
103
165
  * Pagination metadata for a list response.
@@ -140,24 +202,46 @@ export interface ProxyBuyResponse {
140
202
  country: string;
141
203
  createdAt: string;
142
204
  host: string;
205
+ /**
206
+ * Display name for the proxy. Set it on create or change it with PATCH; when no
207
+ * name has been set, a label generated from the proxy's country, type, and id is
208
+ * returned instead — so this is never empty.
209
+ */
210
+ name: string;
143
211
  password: string;
144
212
  port: number;
145
213
  /**
146
- * Lifecycle of a proxy. A freshly created proxy is `provisioning` — or
147
- * `pending_payment` until the customer completes checkout — and becomes `active`
148
- * once its upstream is assigned. `cancelling` retains full access through the paid
149
- * period; when the subscription expires the proxy is `ended`. `error` marks a
150
- * failed provisioning attempt.
214
+ * Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
215
+ * identity is being resolved — clients should poll until a `paymentUrl` or a later
216
+ * status appears — then `provisioning` — or `pending_payment` until the customer
217
+ * completes checkout — and becomes `active` once its upstream is assigned.
218
+ * `cancelling` retains full access through the paid period; when the subscription
219
+ * expires the proxy is `ended`. `error` marks a failed provisioning attempt.
151
220
  */
152
- status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
221
+ status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
153
222
  type: 'dedicated_residential' | 'residential' | 'mobile';
154
223
  username: string;
224
+ billingMode?: 'included' | 'standalone_paid';
155
225
  /**
156
226
  * Checkout URL to complete payment while status is `pending_payment`. Null once
157
227
  * paid or when no payment was required.
158
228
  */
159
229
  paymentUrl?: string | null;
160
230
  }
231
+ /**
232
+ * The outcome of an ensure-healthy check.
233
+ */
234
+ export interface ProxyEnsureHealthyResponse {
235
+ proxyId: string;
236
+ /**
237
+ * `healthy`: the upstream accepted the current session. `rotated`: the session was
238
+ * refused and the proxy now uses a fresh, checked session; retry through the
239
+ * proxy. `refused`: the session was refused and could not be replaced.
240
+ * `unreachable`: the upstream could not be reached; the session was left
241
+ * unchanged.
242
+ */
243
+ status: 'healthy' | 'rotated' | 'refused' | 'unreachable';
244
+ }
161
245
  /**
162
246
  * A page of connections.
163
247
  */
@@ -325,6 +409,15 @@ export declare namespace ProxyPingResponse {
325
409
  target: string;
326
410
  }
327
411
  }
412
+ export interface ProxyUpdateParams {
413
+ /**
414
+ * New display name, up to 64 characters excluding surrounding whitespace, and
415
+ * containing no NUL. Send null (or an empty/whitespace-only string) to drop a
416
+ * custom name and go back to the generated label. Omit to leave the name
417
+ * unchanged.
418
+ */
419
+ name?: string | null;
420
+ }
328
421
  export interface ProxyListParams {
329
422
  /**
330
423
  * Filter to proxies in this country (ISO 3166-1 alpha-2, lowercase).
@@ -345,6 +438,12 @@ export interface ProxyBuyParams {
345
438
  */
346
439
  country: string;
347
440
  type: 'dedicated_residential' | 'residential' | 'mobile';
441
+ /**
442
+ * Display name for the proxy, up to 64 characters excluding surrounding
443
+ * whitespace, and containing no NUL. Omit it (or send only whitespace) to get a
444
+ * generated label built from the country, type, and id.
445
+ */
446
+ name?: string;
348
447
  }
349
448
  export interface ProxyListConnectionsParams {
350
449
  /**
@@ -451,6 +550,6 @@ export interface ProxyListConnectionsParams {
451
550
  userId?: string;
452
551
  }
453
552
  export declare namespace Proxies {
454
- export { type ProxyRetrieveResponse as ProxyRetrieveResponse, type ProxyListResponse as ProxyListResponse, type ProxyBuyResponse as ProxyBuyResponse, type ProxyListConnectionsResponse as ProxyListConnectionsResponse, type ProxyPingResponse as ProxyPingResponse, type ProxyListParams as ProxyListParams, type ProxyBuyParams as ProxyBuyParams, type ProxyListConnectionsParams as ProxyListConnectionsParams, };
553
+ export { type ProxyRetrieveResponse as ProxyRetrieveResponse, type ProxyUpdateResponse as ProxyUpdateResponse, type ProxyListResponse as ProxyListResponse, type ProxyBuyResponse as ProxyBuyResponse, type ProxyEnsureHealthyResponse as ProxyEnsureHealthyResponse, type ProxyListConnectionsResponse as ProxyListConnectionsResponse, type ProxyPingResponse as ProxyPingResponse, type ProxyUpdateParams as ProxyUpdateParams, type ProxyListParams as ProxyListParams, type ProxyBuyParams as ProxyBuyParams, type ProxyListConnectionsParams as ProxyListConnectionsParams, };
455
554
  }
456
555
  //# sourceMappingURL=proxies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"proxies.d.ts","sourceRoot":"","sources":["../../src/resources/connect/proxies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjF;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAIhC;;OAEG;IACH,GAAG,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAIjF;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO9D;;;;;OAKG;IACH,eAAe,CACb,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,0BAA0B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;;OAKG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;CAG1E;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB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B;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -13,6 +13,12 @@ class Proxies extends resource_1.APIResource {
13
13
  retrieve(id, options) {
14
14
  return this._client.get((0, path_1.path) `/connect/proxies/${id}`, options);
15
15
  }
16
+ /**
17
+ * Renames the proxy identified by the path ID.
18
+ */
19
+ update(id, body, options) {
20
+ return this._client.patch((0, path_1.path) `/connect/proxies/${id}`, { body, ...options });
21
+ }
16
22
  /**
17
23
  * Returns proxies owned by the calling tenant (the X-Owner-Id header, falling back
18
24
  * to X-User-ID). Credentials are omitted from the list.
@@ -36,6 +42,19 @@ class Proxies extends resource_1.APIResource {
36
42
  headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
37
43
  });
38
44
  }
45
+ /**
46
+ * Checks right now that the proxy's upstream accepts a connection through its
47
+ * current session. If the upstream refuses the session and the proxy is a rotating
48
+ * (sticky-session) proxy, the proxy is moved onto a fresh session that has been
49
+ * checked to work; its credentials and country stay the same, its exit IP changes.
50
+ * Intended for callers that are about to depend on the proxy (e.g. while
51
+ * provisioning a phone). After `rotated`, the gateway uses the new session within
52
+ * about 30 seconds. A `refused` or `unreachable` result is not an error: the
53
+ * response describes the proxy's state.
54
+ */
55
+ ensureHealthy(id, options) {
56
+ return this._client.post((0, path_1.path) `/connect/proxies/${id}/ensure-healthy`, options);
57
+ }
39
58
  /**
40
59
  * Returns the connection history recorded for this proxy, one item per connection
41
60
  * (aggregated across the connection's lifetime). Supports filtering on every
@@ -1 +1 @@
1
- {"version":3,"file":"proxies.js","sourceRoot":"","sources":["../../src/resources/connect/proxies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;OAGG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,IAAoB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE;YACvD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,eAAe,CACb,EAAU,EACV,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,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H,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE;YACvD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAU,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;;;OAKG;IACH,eAAe,CACb,EAAU,EACV,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;OAKG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF;AAlFD,0BAkFC"}
@@ -10,6 +10,12 @@ export class Proxies extends APIResource {
10
10
  retrieve(id, options) {
11
11
  return this._client.get(path `/connect/proxies/${id}`, options);
12
12
  }
13
+ /**
14
+ * Renames the proxy identified by the path ID.
15
+ */
16
+ update(id, body, options) {
17
+ return this._client.patch(path `/connect/proxies/${id}`, { body, ...options });
18
+ }
13
19
  /**
14
20
  * Returns proxies owned by the calling tenant (the X-Owner-Id header, falling back
15
21
  * to X-User-ID). Credentials are omitted from the list.
@@ -33,6 +39,19 @@ export class Proxies extends APIResource {
33
39
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
34
40
  });
35
41
  }
42
+ /**
43
+ * Checks right now that the proxy's upstream accepts a connection through its
44
+ * current session. If the upstream refuses the session and the proxy is a rotating
45
+ * (sticky-session) proxy, the proxy is moved onto a fresh session that has been
46
+ * checked to work; its credentials and country stay the same, its exit IP changes.
47
+ * Intended for callers that are about to depend on the proxy (e.g. while
48
+ * provisioning a phone). After `rotated`, the gateway uses the new session within
49
+ * about 30 seconds. A `refused` or `unreachable` result is not an error: the
50
+ * response describes the proxy's state.
51
+ */
52
+ ensureHealthy(id, options) {
53
+ return this._client.post(path `/connect/proxies/${id}/ensure-healthy`, options);
54
+ }
36
55
  /**
37
56
  * Returns the connection history recorded for this proxy, one item per connection
38
57
  * (aggregated across the connection's lifetime). Supports filtering on every
@@ -1 +1 @@
1
- {"version":3,"file":"proxies.mjs","sourceRoot":"","sources":["../../src/resources/connect/proxies.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,IAAoB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG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AAC,IAAI,CAAA,oBAAoB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF"}
@@ -20,23 +20,24 @@ export declare class Apps extends APIResource {
20
20
  grantPermission(permission: 'POST_NOTIFICATIONS', params: AppGrantPermissionParams, options?: RequestOptions): APIPromise<void>;
21
21
  /**
22
22
  * Requests an app install on the device. The request body must supply exactly one
23
- * of an Android packageName or an iOS bundleId; protected packages are rejected.
24
- * background (default false) selects the response contract: false installs inline
25
- * and returns the outcome directly (200 on success, an error status on failure);
26
- * true accepts the request and runs the download + install in the background,
27
- * returning 202 immediately — poll list-app-installs for the backend's view of
28
- * that attempt's status. Refuses with 409 once 2 other installs are already
29
- * running on the device, in either mode; a repeat request for an app that already
30
- * has an install running is also refused with 409 rather than superseding it —
31
- * retry once that attempt reaches a terminal state.
23
+ * of an Android packageName or an iOS bundleId; optional country and versionCode
24
+ * select an exact regional uploaded Android version, and protected packages are
25
+ * rejected. background (default false) selects the response contract: false
26
+ * installs inline and returns the outcome directly (200 on success, an error
27
+ * status on failure); true accepts the request and runs the download + install in
28
+ * the background, returning 202 immediately — poll list-app-installs for the
29
+ * backend's view of that attempt's status. Refuses with 409 once 2 other installs
30
+ * are already running on the device, in either mode; a repeat request for an app
31
+ * that already has an install running is also refused with 409 rather than
32
+ * superseding it — retry once that attempt reaches a terminal state.
32
33
  */
33
34
  install(deviceID: string, params: AppInstallParams, options?: RequestOptions): APIPromise<void>;
34
35
  /**
35
- * Reports the backend's view of background app-install attempts on this device —
36
- * status reflects the install ATTEMPT, not device ground truth; list-apps remains
37
- * authoritative for what is actually installed. Records are in-memory and lost on
38
- * service restart; terminal records are kept ~15 minutes. Not gated on device
39
- * readiness, so it also answers while the device is offline or crashed.
36
+ * Reports the backend's durable view of background app-install attempts on this
37
+ * device — status reflects the install ATTEMPT, not device ground truth; list-apps
38
+ * remains authoritative for what is actually installed. Terminal and projected
39
+ * timeout records are kept ~15 minutes. Not gated on device readiness, so it also
40
+ * answers while the device is offline or crashed.
40
41
  */
41
42
  listInstalls(deviceID: string, params?: AppListInstallsParams | null | undefined, options?: RequestOptions): APIPromise<AppListInstallsResponse>;
42
43
  /**
@@ -92,10 +93,9 @@ export declare namespace AppListInstallsResponse {
92
93
  status: 'running' | 'succeeded' | 'failed';
93
94
  updatedAt: string;
94
95
  /**
95
- * Closed set: download_failed, adb_install_failed, panic, timeout, failed. Only
96
- * present when status is failed.
96
+ * Only present when status is failed.
97
97
  */
98
- errorClass?: string;
98
+ errorClass?: 'download_failed' | 'adb_install_failed' | 'panic' | 'timeout' | 'failed';
99
99
  }
100
100
  }
101
101
  export interface AppListParams {
@@ -149,10 +149,20 @@ export declare namespace AppInstallParams {
149
149
  * directly (200 on success, an error status on failure).
150
150
  */
151
151
  background?: boolean;
152
+ /**
153
+ * Body param: Optional ISO 3166-1 alpha-2 country of the uploaded app version
154
+ * (e.g. MY or SG).
155
+ */
156
+ country?: string;
152
157
  /**
153
158
  * Body param: Android package name (e.g. com.example.app)
154
159
  */
155
160
  packageName?: string;
161
+ /**
162
+ * Body param: Optional exact app-library version code. Use with country when
163
+ * multiple regional versions share an identifier.
164
+ */
165
+ versionCode?: number;
156
166
  /**
157
167
  * Header param
158
168
  */
@@ -173,6 +183,16 @@ export declare namespace AppInstallParams {
173
183
  * Body param: iOS bundle identifier (e.g. com.example.app)
174
184
  */
175
185
  bundleId?: string;
186
+ /**
187
+ * Body param: Optional ISO 3166-1 alpha-2 country of the uploaded app version
188
+ * (e.g. MY or SG).
189
+ */
190
+ country?: string;
191
+ /**
192
+ * Body param: Optional exact app-library version code. Use with country when
193
+ * multiple regional versions share an identifier.
194
+ */
195
+ versionCode?: number;
176
196
  /**
177
197
  * Header param
178
198
  */
@@ -1 +1 @@
1
- {"version":3,"file":"apps.d.mts","sourceRoot":"","sources":["../../src/resources/devices/apps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+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CAAC;QAElB;;;WAGG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;KAChC;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
@@ -20,23 +20,24 @@ export declare class Apps extends APIResource {
20
20
  grantPermission(permission: 'POST_NOTIFICATIONS', params: AppGrantPermissionParams, options?: RequestOptions): APIPromise<void>;
21
21
  /**
22
22
  * Requests an app install on the device. The request body must supply exactly one
23
- * of an Android packageName or an iOS bundleId; protected packages are rejected.
24
- * background (default false) selects the response contract: false installs inline
25
- * and returns the outcome directly (200 on success, an error status on failure);
26
- * true accepts the request and runs the download + install in the background,
27
- * returning 202 immediately — poll list-app-installs for the backend's view of
28
- * that attempt's status. Refuses with 409 once 2 other installs are already
29
- * running on the device, in either mode; a repeat request for an app that already
30
- * has an install running is also refused with 409 rather than superseding it —
31
- * retry once that attempt reaches a terminal state.
23
+ * of an Android packageName or an iOS bundleId; optional country and versionCode
24
+ * select an exact regional uploaded Android version, and protected packages are
25
+ * rejected. background (default false) selects the response contract: false
26
+ * installs inline and returns the outcome directly (200 on success, an error
27
+ * status on failure); true accepts the request and runs the download + install in
28
+ * the background, returning 202 immediately — poll list-app-installs for the
29
+ * backend's view of that attempt's status. Refuses with 409 once 2 other installs
30
+ * are already running on the device, in either mode; a repeat request for an app
31
+ * that already has an install running is also refused with 409 rather than
32
+ * superseding it — retry once that attempt reaches a terminal state.
32
33
  */
33
34
  install(deviceID: string, params: AppInstallParams, options?: RequestOptions): APIPromise<void>;
34
35
  /**
35
- * Reports the backend's view of background app-install attempts on this device —
36
- * status reflects the install ATTEMPT, not device ground truth; list-apps remains
37
- * authoritative for what is actually installed. Records are in-memory and lost on
38
- * service restart; terminal records are kept ~15 minutes. Not gated on device
39
- * readiness, so it also answers while the device is offline or crashed.
36
+ * Reports the backend's durable view of background app-install attempts on this
37
+ * device — status reflects the install ATTEMPT, not device ground truth; list-apps
38
+ * remains authoritative for what is actually installed. Terminal and projected
39
+ * timeout records are kept ~15 minutes. Not gated on device readiness, so it also
40
+ * answers while the device is offline or crashed.
40
41
  */
41
42
  listInstalls(deviceID: string, params?: AppListInstallsParams | null | undefined, options?: RequestOptions): APIPromise<AppListInstallsResponse>;
42
43
  /**
@@ -92,10 +93,9 @@ export declare namespace AppListInstallsResponse {
92
93
  status: 'running' | 'succeeded' | 'failed';
93
94
  updatedAt: string;
94
95
  /**
95
- * Closed set: download_failed, adb_install_failed, panic, timeout, failed. Only
96
- * present when status is failed.
96
+ * Only present when status is failed.
97
97
  */
98
- errorClass?: string;
98
+ errorClass?: 'download_failed' | 'adb_install_failed' | 'panic' | 'timeout' | 'failed';
99
99
  }
100
100
  }
101
101
  export interface AppListParams {
@@ -149,10 +149,20 @@ export declare namespace AppInstallParams {
149
149
  * directly (200 on success, an error status on failure).
150
150
  */
151
151
  background?: boolean;
152
+ /**
153
+ * Body param: Optional ISO 3166-1 alpha-2 country of the uploaded app version
154
+ * (e.g. MY or SG).
155
+ */
156
+ country?: string;
152
157
  /**
153
158
  * Body param: Android package name (e.g. com.example.app)
154
159
  */
155
160
  packageName?: string;
161
+ /**
162
+ * Body param: Optional exact app-library version code. Use with country when
163
+ * multiple regional versions share an identifier.
164
+ */
165
+ versionCode?: number;
156
166
  /**
157
167
  * Header param
158
168
  */
@@ -173,6 +183,16 @@ export declare namespace AppInstallParams {
173
183
  * Body param: iOS bundle identifier (e.g. com.example.app)
174
184
  */
175
185
  bundleId?: string;
186
+ /**
187
+ * Body param: Optional ISO 3166-1 alpha-2 country of the uploaded app version
188
+ * (e.g. MY or SG).
189
+ */
190
+ country?: string;
191
+ /**
192
+ * Body param: Optional exact app-library version code. Use with country when
193
+ * multiple regional versions share an identifier.
194
+ */
195
+ versionCode?: number;
176
196
  /**
177
197
  * Header param
178
198
  */
@@ -1 +1 @@
1
- {"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/resources/devices/apps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;OAIG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,aAAa,GAAG,I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AChC;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
@@ -67,15 +67,16 @@ class Apps extends resource_1.APIResource {
67
67
  }
68
68
  /**
69
69
  * Requests an app install on the device. The request body must supply exactly one
70
- * of an Android packageName or an iOS bundleId; protected packages are rejected.
71
- * background (default false) selects the response contract: false installs inline
72
- * and returns the outcome directly (200 on success, an error status on failure);
73
- * true accepts the request and runs the download + install in the background,
74
- * returning 202 immediately — poll list-app-installs for the backend's view of
75
- * that attempt's status. Refuses with 409 once 2 other installs are already
76
- * running on the device, in either mode; a repeat request for an app that already
77
- * has an install running is also refused with 409 rather than superseding it —
78
- * retry once that attempt reaches a terminal state.
70
+ * of an Android packageName or an iOS bundleId; optional country and versionCode
71
+ * select an exact regional uploaded Android version, and protected packages are
72
+ * rejected. background (default false) selects the response contract: false
73
+ * installs inline and returns the outcome directly (200 on success, an error
74
+ * status on failure); true accepts the request and runs the download + install in
75
+ * the background, returning 202 immediately — poll list-app-installs for the
76
+ * backend's view of that attempt's status. Refuses with 409 once 2 other installs
77
+ * are already running on the device, in either mode; a repeat request for an app
78
+ * that already has an install running is also refused with 409 rather than
79
+ * superseding it — retry once that attempt reaches a terminal state.
79
80
  */
80
81
  install(deviceID, params, options) {
81
82
  const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
@@ -94,11 +95,11 @@ class Apps extends resource_1.APIResource {
94
95
  });
95
96
  }
96
97
  /**
97
- * Reports the backend's view of background app-install attempts on this device —
98
- * status reflects the install ATTEMPT, not device ground truth; list-apps remains
99
- * authoritative for what is actually installed. Records are in-memory and lost on
100
- * service restart; terminal records are kept ~15 minutes. Not gated on device
101
- * readiness, so it also answers while the device is offline or crashed.
98
+ * Reports the backend's durable view of background app-install attempts on this
99
+ * device — status reflects the install ATTEMPT, not device ground truth; list-apps
100
+ * remains authoritative for what is actually installed. Terminal and projected
101
+ * timeout records are kept ~15 minutes. Not gated on device readiness, so it also
102
+ * answers while the device is offline or crashed.
102
103
  */
103
104
  listInstalls(deviceID, params = {}, options) {
104
105
  const { 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};