@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
@@ -5,6 +5,27 @@ import { APIPromise } from '../core/api-promise';
5
5
  import { RequestOptions } from '../internal/request-options';
6
6
 
7
7
  export class Notifications extends APIResource {
8
+ /**
9
+ * Replaces your muted event types with a server-computed preset: `recommended`
10
+ * mutes the mobilerun-default noisy lifecycle/progress events, `failures` mutes
11
+ * everything except failures/timeouts/invalid runs, and `everything` unmutes all.
12
+ * The response returns the muted types that were actually stored.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const response =
17
+ * await client.notifications.applyPreferencesPreset({
18
+ * preset: 'recommended',
19
+ * });
20
+ * ```
21
+ */
22
+ applyPreferencesPreset(
23
+ body: NotificationApplyPreferencesPresetParams,
24
+ options?: RequestOptions,
25
+ ): APIPromise<NotificationApplyPreferencesPresetResponse> {
26
+ return this._client.post('/notifications/preferences/apply-preset', { body, ...options });
27
+ }
28
+
8
29
  /**
9
30
  * Returns the catalog of notifiable event types grouped by source category. Each
10
31
  * event lists its type identifier, label, and description, which can be referenced
@@ -58,6 +79,16 @@ export class Notifications extends APIResource {
58
79
  }
59
80
  }
60
81
 
82
+ export interface NotificationApplyPreferencesPresetResponse {
83
+ data: NotificationApplyPreferencesPresetResponse.Data;
84
+ }
85
+
86
+ export namespace NotificationApplyPreferencesPresetResponse {
87
+ export interface Data {
88
+ mutedTypes: Array<string>;
89
+ }
90
+ }
91
+
61
92
  export interface NotificationCatalogResponse {
62
93
  data: Array<NotificationCatalogResponse.Data>;
63
94
  }
@@ -104,15 +135,21 @@ export namespace NotificationUpdatePreferencesResponse {
104
135
  }
105
136
  }
106
137
 
138
+ export interface NotificationApplyPreferencesPresetParams {
139
+ preset: 'recommended' | 'failures' | 'everything';
140
+ }
141
+
107
142
  export interface NotificationUpdatePreferencesParams {
108
143
  mutedTypes: Array<string>;
109
144
  }
110
145
 
111
146
  export declare namespace Notifications {
112
147
  export {
148
+ type NotificationApplyPreferencesPresetResponse as NotificationApplyPreferencesPresetResponse,
113
149
  type NotificationCatalogResponse as NotificationCatalogResponse,
114
150
  type NotificationGetPreferencesResponse as NotificationGetPreferencesResponse,
115
151
  type NotificationUpdatePreferencesResponse as NotificationUpdatePreferencesResponse,
152
+ type NotificationApplyPreferencesPresetParams as NotificationApplyPreferencesPresetParams,
116
153
  type NotificationUpdatePreferencesParams as NotificationUpdatePreferencesParams,
117
154
  };
118
155
  }
@@ -1,6 +1,12 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export { Messages, type MessageListResponse, type MessageListParams } from './messages';
3
+ export {
4
+ Messages,
5
+ type MessageListResponse,
6
+ type MessageSendResponse,
7
+ type MessageListParams,
8
+ type MessageSendParams,
9
+ } from './messages';
4
10
  export {
5
11
  Numbers,
6
12
  type NumberCreateResponse,
@@ -8,9 +14,11 @@ export {
8
14
  type NumberUpdateResponse,
9
15
  type NumberListResponse,
10
16
  type NumberDeleteResponse,
17
+ type NumberCapacityResponse,
11
18
  type NumberCountriesResponse,
12
19
  type NumberPurposesResponse,
13
20
  type NumberCreateParams,
14
21
  type NumberUpdateParams,
15
22
  type NumberListParams,
23
+ type NumberCapacityParams,
16
24
  } from './numbers';
@@ -26,6 +26,28 @@ export class Messages extends APIResource {
26
26
  ): APIPromise<MessageListResponse> {
27
27
  return this._client.get(path`/numbers/phones/${id}/messages`, { query, ...options });
28
28
  }
29
+
30
+ /**
31
+ * Queues an SMS from one of the caller's numbers that can send. Same idempotency
32
+ * contract as the eSIM send: replaying an Idempotency-Key with the same payload
33
+ * returns the original message, reusing it with a different payload returns 422.
34
+ * 409 capability_unavailable: this number cannot send right now. 422
35
+ * invalid_recipient / unsupported_destination / body_too_long: the recipient or
36
+ * text does not fit the number. 429 daily_limit_reached: the rolling 24 h limit
37
+ * for the account is used up; 429 rate_limited: too many sends in a short window.
38
+ * 403 send_disabled: self-service SMS send is switched off.
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const response = await client.numbers.messages.send(
43
+ * '550e8400-e29b-41d4-a716-446655440000',
44
+ * { body: 'x', to: '+15551230001' },
45
+ * );
46
+ * ```
47
+ */
48
+ send(id: string, body: MessageSendParams, options?: RequestOptions): APIPromise<MessageSendResponse> {
49
+ return this._client.post(path`/numbers/phones/${id}/messages`, { body, ...options });
50
+ }
29
51
  }
30
52
 
31
53
  export interface MessageListResponse {
@@ -68,6 +90,44 @@ export namespace MessageListResponse {
68
90
  }
69
91
  }
70
92
 
93
+ export interface MessageSendResponse {
94
+ data: MessageSendResponse.Data;
95
+ }
96
+
97
+ export namespace MessageSendResponse {
98
+ export interface Data {
99
+ id: string;
100
+
101
+ body: string | null;
102
+
103
+ createdAt: string;
104
+
105
+ deliveryStatus: string | null;
106
+
107
+ detectedSender: string | null;
108
+
109
+ direction: 'inbound' | 'outbound';
110
+
111
+ esimId: string | null;
112
+
113
+ occurredAt: string;
114
+
115
+ peerKey: string | null;
116
+
117
+ peerNumber: string | null;
118
+
119
+ status:
120
+ | 'received'
121
+ | 'queued'
122
+ | 'claimed'
123
+ | 'sending'
124
+ | 'sent'
125
+ | 'sent_unconfirmed'
126
+ | 'delivered'
127
+ | 'failed';
128
+ }
129
+ }
130
+
71
131
  export interface MessageListParams {
72
132
  direction?: 'all' | 'inbound' | 'outbound';
73
133
 
@@ -78,6 +138,37 @@ export interface MessageListParams {
78
138
  since?: string;
79
139
  }
80
140
 
141
+ export interface MessageSendParams {
142
+ /**
143
+ * SMS body text, up to 1600 characters (rejected with 400 beyond that, before
144
+ * hashing). A number's own limit may be lower and is answered 422 body_too_long.
145
+ */
146
+ body: string;
147
+
148
+ /**
149
+ * Recipient phone number, as E.164 or a US 10/11-digit number. Destinations the
150
+ * number cannot send to are rejected with 422 unsupported_destination, non-numbers
151
+ * with 422 invalid_recipient.
152
+ */
153
+ to: string;
154
+
155
+ /**
156
+ * @deprecated Deprecated: use the Idempotency-Key header instead. Optional
157
+ * idempotency key. Replaying the same key and payload returns the original send.
158
+ */
159
+ clientRequestId?: string;
160
+
161
+ /**
162
+ * Request a delivery report. Defaults to false.
163
+ */
164
+ deliveryReport?: boolean;
165
+ }
166
+
81
167
  export declare namespace Messages {
82
- export { type MessageListResponse as MessageListResponse, type MessageListParams as MessageListParams };
168
+ export {
169
+ type MessageListResponse as MessageListResponse,
170
+ type MessageSendResponse as MessageSendResponse,
171
+ type MessageListParams as MessageListParams,
172
+ type MessageSendParams as MessageSendParams,
173
+ };
83
174
  }
@@ -3,9 +3,14 @@
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as Shared from '../shared';
5
5
  import * as MessagesAPI from './messages';
6
- import { MessageListParams, MessageListResponse, Messages } from './messages';
6
+ import {
7
+ MessageListParams,
8
+ MessageListResponse,
9
+ MessageSendParams,
10
+ MessageSendResponse,
11
+ Messages,
12
+ } from './messages';
7
13
  import { APIPromise } from '../../core/api-promise';
8
- import { buildHeaders } from '../../internal/headers';
9
14
  import { RequestOptions } from '../../internal/request-options';
10
15
  import { path } from '../../internal/utils/path';
11
16
 
@@ -13,9 +18,8 @@ export class Numbers extends APIResource {
13
18
  messages: MessagesAPI.Messages = new MessagesAPI.Messages(this._client);
14
19
 
15
20
  /**
16
- * Starts a Mobilerun Phone purchase for the authenticated owner. Accepted requests
17
- * always return the same asynchronous envelope; poll GET /numbers/phones/{id} for
18
- * its business state. `purpose` and `country` are mutually exclusive.
21
+ * Starts a phone-number purchase. Poll the returned phone number for status
22
+ * updates. `purpose` and `country` cannot be combined.
19
23
  *
20
24
  * @example
21
25
  * ```ts
@@ -23,18 +27,10 @@ export class Numbers extends APIResource {
23
27
  * ```
24
28
  */
25
29
  create(
26
- params: NumberCreateParams | null | undefined = {},
30
+ body: NumberCreateParams | null | undefined = {},
27
31
  options?: RequestOptions,
28
32
  ): APIPromise<NumberCreateResponse> {
29
- const { 'Idempotency-Key': idempotencyKey, ...body } = params ?? {};
30
- return this._client.post('/numbers/phones', {
31
- body,
32
- ...options,
33
- headers: buildHeaders([
34
- { ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
35
- options?.headers,
36
- ]),
37
- });
33
+ return this._client.post('/numbers/phones', { body, ...options });
38
34
  }
39
35
 
40
36
  /**
@@ -52,11 +48,8 @@ export class Numbers extends APIResource {
52
48
  }
53
49
 
54
50
  /**
55
- * Updates the phone number's user-defined display label. Omitting `label` leaves
56
- * it unchanged; setting it to null or an empty string clears it. The label is
57
- * capped at 100 characters, is display-only, and never affects routing. It also
58
- * seeds the billing entity name when set at purchase time; a later change here
59
- * does not rename the already-created billing entity.
51
+ * Updates the display label. Omitting `label` leaves it unchanged; null or an
52
+ * empty string clears it.
60
53
  *
61
54
  * @example
62
55
  * ```ts
@@ -74,8 +67,7 @@ export class Numbers extends APIResource {
74
67
  }
75
68
 
76
69
  /**
77
- * Lists phone numbers owned by the authenticated user — both BYO (`user`) and
78
- * provisioned (`mobilerun`) numbers.
70
+ * Lists the caller's phone numbers.
79
71
  *
80
72
  * @example
81
73
  * ```ts
@@ -90,23 +82,9 @@ export class Numbers extends APIResource {
90
82
  }
91
83
 
92
84
  /**
93
- * Cancels a Mobilerun Phone. The outcome depends on the number's current state:
94
- *
95
- * - If the number is still awaiting payment and no payment for it is currently
96
- * being processed, the checkout is closed immediately and the number is retired.
97
- * - If the number is on the standard paid plan and already paid and in service,
98
- * cancellation is scheduled for the end of the current billing period rather
99
- * than taking effect immediately. The number stays usable through the period
100
- * already paid for, with no partial refund. Calling this again while a
101
- * cancellation is already scheduled is a no-op that returns the same result. The
102
- * response's `state` reflects this as `cancel_scheduled` with
103
- * `cancelAtPeriodEnd: true`; `currentPeriodEnd` is populated once billing
104
- * confirms the cancellation.
105
- *
106
- * Any other state (already refunding, a permanent billing failure, a payment
107
- * currently being processed, an included-plan number, or a non-hosted/BYO number)
108
- * returns 409 `not_cancellable`. Returns 404 if the number doesn't exist or isn't
109
- * owned by the caller.
85
+ * Cancels a pending purchase or schedules cancellation of an active paid phone
86
+ * number. Repeating a scheduled cancellation is safe. Returns 409 when
87
+ * cancellation is not available.
110
88
  *
111
89
  * @example
112
90
  * ```ts
@@ -120,8 +98,22 @@ export class Numbers extends APIResource {
120
98
  }
121
99
 
122
100
  /**
123
- * Lists the countries currently offered for a dedicated Mobilerun Phone, with live
124
- * stock status. Pass `country` as the `country` field on POST /numbers/phones.
101
+ * Returns included phone capacity for a country. Creating a phone is
102
+ * authoritative.
103
+ *
104
+ * @example
105
+ * ```ts
106
+ * const response = await client.numbers.capacity({
107
+ * country: 'de',
108
+ * });
109
+ * ```
110
+ */
111
+ capacity(query: NumberCapacityParams, options?: RequestOptions): APIPromise<NumberCapacityResponse> {
112
+ return this._client.get('/numbers/phones/capacity', { query, ...options });
113
+ }
114
+
115
+ /**
116
+ * Lists available countries and current phone-number availability.
125
117
  *
126
118
  * @example
127
119
  * ```ts
@@ -167,10 +159,21 @@ export namespace NumberRetrieveResponse {
167
159
  export interface Data {
168
160
  id: string;
169
161
 
162
+ /**
163
+ * Actions currently available for this phone number.
164
+ */
165
+ actions: Data.Actions;
166
+
170
167
  cancelAtPeriodEnd: boolean;
171
168
 
169
+ /**
170
+ * @deprecated Deprecated: use `actions.cancel`
171
+ */
172
172
  cancellable: boolean;
173
173
 
174
+ /**
175
+ * @deprecated Deprecated: use `actions.send`
176
+ */
174
177
  canSend: boolean;
175
178
 
176
179
  capabilities: Array<'sms' | 'voice'> | null;
@@ -193,6 +196,26 @@ export namespace NumberRetrieveResponse {
193
196
 
194
197
  updatedAt: string | null;
195
198
  }
199
+
200
+ export namespace Data {
201
+ /**
202
+ * Actions currently available for this phone number.
203
+ */
204
+ export interface Actions {
205
+ /**
206
+ * True when DELETE /numbers/phones/{id} would currently succeed.
207
+ */
208
+ cancel: boolean;
209
+
210
+ /**
211
+ * True when this number passes the send gate of POST
212
+ * /numbers/phones/{id}/messages: self-service sending is switched on and the
213
+ * number is active and able to send SMS. Daily and burst limits and recipient/body
214
+ * checks still apply; the send endpoint stays the final judge.
215
+ */
216
+ send: boolean;
217
+ }
218
+ }
196
219
  }
197
220
 
198
221
  export interface NumberUpdateResponse {
@@ -203,10 +226,21 @@ export namespace NumberUpdateResponse {
203
226
  export interface Data {
204
227
  id: string;
205
228
 
229
+ /**
230
+ * Actions currently available for this phone number.
231
+ */
232
+ actions: Data.Actions;
233
+
206
234
  cancelAtPeriodEnd: boolean;
207
235
 
236
+ /**
237
+ * @deprecated Deprecated: use `actions.cancel`
238
+ */
208
239
  cancellable: boolean;
209
240
 
241
+ /**
242
+ * @deprecated Deprecated: use `actions.send`
243
+ */
210
244
  canSend: boolean;
211
245
 
212
246
  capabilities: Array<'sms' | 'voice'> | null;
@@ -229,6 +263,26 @@ export namespace NumberUpdateResponse {
229
263
 
230
264
  updatedAt: string | null;
231
265
  }
266
+
267
+ export namespace Data {
268
+ /**
269
+ * Actions currently available for this phone number.
270
+ */
271
+ export interface Actions {
272
+ /**
273
+ * True when DELETE /numbers/phones/{id} would currently succeed.
274
+ */
275
+ cancel: boolean;
276
+
277
+ /**
278
+ * True when this number passes the send gate of POST
279
+ * /numbers/phones/{id}/messages: self-service sending is switched on and the
280
+ * number is active and able to send SMS. Daily and burst limits and recipient/body
281
+ * checks still apply; the send endpoint stays the final judge.
282
+ */
283
+ send: boolean;
284
+ }
285
+ }
232
286
  }
233
287
 
234
288
  export interface NumberListResponse {
@@ -241,10 +295,21 @@ export namespace NumberListResponse {
241
295
  export interface Item {
242
296
  id: string;
243
297
 
298
+ /**
299
+ * Actions currently available for this phone number.
300
+ */
301
+ actions: Item.Actions;
302
+
244
303
  cancelAtPeriodEnd: boolean;
245
304
 
305
+ /**
306
+ * @deprecated Deprecated: use `actions.cancel`
307
+ */
246
308
  cancellable: boolean;
247
309
 
310
+ /**
311
+ * @deprecated Deprecated: use `actions.send`
312
+ */
248
313
  canSend: boolean;
249
314
 
250
315
  capabilities: Array<'sms' | 'voice'> | null;
@@ -267,6 +332,26 @@ export namespace NumberListResponse {
267
332
 
268
333
  updatedAt: string | null;
269
334
  }
335
+
336
+ export namespace Item {
337
+ /**
338
+ * Actions currently available for this phone number.
339
+ */
340
+ export interface Actions {
341
+ /**
342
+ * True when DELETE /numbers/phones/{id} would currently succeed.
343
+ */
344
+ cancel: boolean;
345
+
346
+ /**
347
+ * True when this number passes the send gate of POST
348
+ * /numbers/phones/{id}/messages: self-service sending is switched on and the
349
+ * number is active and able to send SMS. Daily and burst limits and recipient/body
350
+ * checks still apply; the send endpoint stays the final judge.
351
+ */
352
+ send: boolean;
353
+ }
354
+ }
270
355
  }
271
356
 
272
357
  export interface NumberDeleteResponse {
@@ -277,10 +362,21 @@ export namespace NumberDeleteResponse {
277
362
  export interface Data {
278
363
  id: string;
279
364
 
365
+ /**
366
+ * Actions currently available for this phone number.
367
+ */
368
+ actions: Data.Actions;
369
+
280
370
  cancelAtPeriodEnd: boolean;
281
371
 
372
+ /**
373
+ * @deprecated Deprecated: use `actions.cancel`
374
+ */
282
375
  cancellable: boolean;
283
376
 
377
+ /**
378
+ * @deprecated Deprecated: use `actions.send`
379
+ */
284
380
  canSend: boolean;
285
381
 
286
382
  capabilities: Array<'sms' | 'voice'> | null;
@@ -303,6 +399,46 @@ export namespace NumberDeleteResponse {
303
399
 
304
400
  updatedAt: string | null;
305
401
  }
402
+
403
+ export namespace Data {
404
+ /**
405
+ * Actions currently available for this phone number.
406
+ */
407
+ export interface Actions {
408
+ /**
409
+ * True when DELETE /numbers/phones/{id} would currently succeed.
410
+ */
411
+ cancel: boolean;
412
+
413
+ /**
414
+ * True when this number passes the send gate of POST
415
+ * /numbers/phones/{id}/messages: self-service sending is switched on and the
416
+ * number is active and able to send SMS. Daily and burst limits and recipient/body
417
+ * checks still apply; the send endpoint stays the final judge.
418
+ */
419
+ send: boolean;
420
+ }
421
+ }
422
+ }
423
+
424
+ export interface NumberCapacityResponse {
425
+ data: NumberCapacityResponse.Data;
426
+ }
427
+
428
+ export namespace NumberCapacityResponse {
429
+ export interface Data {
430
+ included: number;
431
+
432
+ /**
433
+ * @deprecated Deprecated — always equal to `remaining`. Migrate to `remaining`;
434
+ * this field will be removed in a future revision.
435
+ */
436
+ includedRemaining: number;
437
+
438
+ remaining: number;
439
+
440
+ status: 'available' | 'exhausted' | 'not_included';
441
+ }
306
442
  }
307
443
 
308
444
  export interface NumberCountriesResponse {
@@ -347,33 +483,28 @@ export namespace NumberPurposesResponse {
347
483
 
348
484
  export interface NumberCreateParams {
349
485
  /**
350
- * Body param: Prefer a free package seat ('included', default) or force the paid
351
- * checkout ('rent')
486
+ * Use included capacity when available, require included capacity without paid
487
+ * fallback (included_only), or start a paid checkout (rent).
352
488
  */
353
- billingPreference?: 'included' | 'rent';
489
+ billingPreference?: 'included' | 'included_only' | 'rent';
354
490
 
355
491
  /**
356
- * Body param: Optional ISO 3166-1 alpha-2 country code from GET
357
- * /numbers/countries. Cannot be combined with `purpose`.
492
+ * Optional ISO 3166-1 alpha-2 country code from GET /numbers/phones/countries.
493
+ * Cannot be combined with `purpose`.
358
494
  */
359
495
  country?: string;
360
496
 
361
497
  /**
362
- * Body param: User-defined display label — NFC-normalized, up to 100 GRAPHEMES
363
- * (not UTF-16 code units; an emoji/flag may span several). Display-only, never
364
- * used for routing. Also seeds the billing entity name at purchase.
498
+ * User-defined display label — NFC-normalized, up to 100 GRAPHEMES (not UTF-16
499
+ * code units; an emoji/flag may span several). Display-only, never used for
500
+ * routing. Also seeds the billing entity name at purchase.
365
501
  */
366
502
  label?: string | null;
367
503
 
368
504
  /**
369
- * Body param: Optional Mobilerun Phone purpose slug from GET /numbers/purposes.
505
+ * Optional purpose from GET /numbers/phones/purposes.
370
506
  */
371
507
  purpose?: string;
372
-
373
- /**
374
- * Header param: Optional request idempotency key.
375
- */
376
- 'Idempotency-Key'?: string;
377
508
  }
378
509
 
379
510
  export interface NumberUpdateParams {
@@ -391,6 +522,13 @@ export interface NumberListParams {
391
522
  pageSize?: number;
392
523
  }
393
524
 
525
+ export interface NumberCapacityParams {
526
+ /**
527
+ * ISO 3166-1 alpha-2 country code from GET /numbers/phones/countries.
528
+ */
529
+ country: string;
530
+ }
531
+
394
532
  Numbers.Messages = Messages;
395
533
 
396
534
  export declare namespace Numbers {
@@ -400,16 +538,20 @@ export declare namespace Numbers {
400
538
  type NumberUpdateResponse as NumberUpdateResponse,
401
539
  type NumberListResponse as NumberListResponse,
402
540
  type NumberDeleteResponse as NumberDeleteResponse,
541
+ type NumberCapacityResponse as NumberCapacityResponse,
403
542
  type NumberCountriesResponse as NumberCountriesResponse,
404
543
  type NumberPurposesResponse as NumberPurposesResponse,
405
544
  type NumberCreateParams as NumberCreateParams,
406
545
  type NumberUpdateParams as NumberUpdateParams,
407
546
  type NumberListParams as NumberListParams,
547
+ type NumberCapacityParams as NumberCapacityParams,
408
548
  };
409
549
 
410
550
  export {
411
551
  Messages as Messages,
412
552
  type MessageListResponse as MessageListResponse,
553
+ type MessageSendResponse as MessageSendResponse,
413
554
  type MessageListParams as MessageListParams,
555
+ type MessageSendParams as MessageSendParams,
414
556
  };
415
557
  }