@mobilerun/sdk 5.5.0 → 6.0.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 (502) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +0 -9
  3. package/client.d.mts +12 -30
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +12 -30
  6. package/client.d.ts.map +1 -1
  7. package/client.js +1 -18
  8. package/client.js.map +1 -1
  9. package/client.mjs +2 -19
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/apps.d.mts +39 -26
  13. package/resources/apps.d.mts.map +1 -1
  14. package/resources/apps.d.ts +39 -26
  15. package/resources/apps.d.ts.map +1 -1
  16. package/resources/apps.js +20 -7
  17. package/resources/apps.js.map +1 -1
  18. package/resources/apps.mjs +20 -7
  19. package/resources/apps.mjs.map +1 -1
  20. package/resources/assistant/conversations.d.mts +7 -17
  21. package/resources/assistant/conversations.d.mts.map +1 -1
  22. package/resources/assistant/conversations.d.ts +7 -17
  23. package/resources/assistant/conversations.d.ts.map +1 -1
  24. package/resources/assistant/conversations.js +4 -11
  25. package/resources/assistant/conversations.js.map +1 -1
  26. package/resources/assistant/conversations.mjs +4 -11
  27. package/resources/assistant/conversations.mjs.map +1 -1
  28. package/resources/connect/connect.d.mts +2 -2
  29. package/resources/connect/connect.d.mts.map +1 -1
  30. package/resources/connect/connect.d.ts +2 -2
  31. package/resources/connect/connect.d.ts.map +1 -1
  32. package/resources/connect/connect.js.map +1 -1
  33. package/resources/connect/connect.mjs.map +1 -1
  34. package/resources/connect/index.d.mts +1 -1
  35. package/resources/connect/index.d.mts.map +1 -1
  36. package/resources/connect/index.d.ts +1 -1
  37. package/resources/connect/index.d.ts.map +1 -1
  38. package/resources/connect/index.js.map +1 -1
  39. package/resources/connect/index.mjs.map +1 -1
  40. package/resources/connect/proxies.d.mts +102 -17
  41. package/resources/connect/proxies.d.mts.map +1 -1
  42. package/resources/connect/proxies.d.ts +102 -17
  43. package/resources/connect/proxies.d.ts.map +1 -1
  44. package/resources/connect/proxies.js +27 -14
  45. package/resources/connect/proxies.js.map +1 -1
  46. package/resources/connect/proxies.mjs +27 -14
  47. package/resources/connect/proxies.mjs.map +1 -1
  48. package/resources/connect/users.d.mts +4 -4
  49. package/resources/connect/users.d.ts +4 -4
  50. package/resources/connect/users.js +2 -2
  51. package/resources/connect/users.mjs +2 -2
  52. package/resources/devices/actions.d.mts +25 -5
  53. package/resources/devices/actions.d.mts.map +1 -1
  54. package/resources/devices/actions.d.ts +25 -5
  55. package/resources/devices/actions.d.ts.map +1 -1
  56. package/resources/devices/actions.js +5 -3
  57. package/resources/devices/actions.js.map +1 -1
  58. package/resources/devices/actions.mjs +5 -3
  59. package/resources/devices/actions.mjs.map +1 -1
  60. package/resources/devices/apps.d.mts +13 -0
  61. package/resources/devices/apps.d.mts.map +1 -1
  62. package/resources/devices/apps.d.ts +13 -0
  63. package/resources/devices/apps.d.ts.map +1 -1
  64. package/resources/devices/browser.d.mts +9 -3
  65. package/resources/devices/browser.d.mts.map +1 -1
  66. package/resources/devices/browser.d.ts +9 -3
  67. package/resources/devices/browser.d.ts.map +1 -1
  68. package/resources/devices/browser.js +9 -3
  69. package/resources/devices/browser.js.map +1 -1
  70. package/resources/devices/browser.mjs +9 -3
  71. package/resources/devices/browser.mjs.map +1 -1
  72. package/resources/devices/devices.d.mts +88 -36
  73. package/resources/devices/devices.d.mts.map +1 -1
  74. package/resources/devices/devices.d.ts +88 -36
  75. package/resources/devices/devices.d.ts.map +1 -1
  76. package/resources/devices/devices.js +30 -15
  77. package/resources/devices/devices.js.map +1 -1
  78. package/resources/devices/devices.mjs +30 -15
  79. package/resources/devices/devices.mjs.map +1 -1
  80. package/resources/devices/index.d.mts +3 -2
  81. package/resources/devices/index.d.mts.map +1 -1
  82. package/resources/devices/index.d.ts +3 -2
  83. package/resources/devices/index.d.ts.map +1 -1
  84. package/resources/devices/index.js +3 -1
  85. package/resources/devices/index.js.map +1 -1
  86. package/resources/devices/index.mjs +1 -0
  87. package/resources/devices/index.mjs.map +1 -1
  88. package/resources/devices/keyboard.d.mts +8 -2
  89. package/resources/devices/keyboard.d.mts.map +1 -1
  90. package/resources/devices/keyboard.d.ts +8 -2
  91. package/resources/devices/keyboard.d.ts.map +1 -1
  92. package/resources/devices/recordings.d.mts +29 -6
  93. package/resources/devices/recordings.d.mts.map +1 -1
  94. package/resources/devices/recordings.d.ts +29 -6
  95. package/resources/devices/recordings.d.ts.map +1 -1
  96. package/resources/devices/recordings.js +9 -0
  97. package/resources/devices/recordings.js.map +1 -1
  98. package/resources/devices/recordings.mjs +9 -0
  99. package/resources/devices/recordings.mjs.map +1 -1
  100. package/resources/devices/screenshots.d.mts +72 -0
  101. package/resources/devices/screenshots.d.mts.map +1 -0
  102. package/resources/devices/screenshots.d.ts +72 -0
  103. package/resources/devices/screenshots.d.ts.map +1 -0
  104. package/resources/devices/screenshots.js +57 -0
  105. package/resources/devices/screenshots.js.map +1 -0
  106. package/resources/devices/screenshots.mjs +53 -0
  107. package/resources/devices/screenshots.mjs.map +1 -0
  108. package/resources/devices/state.d.mts +11 -2
  109. package/resources/devices/state.d.mts.map +1 -1
  110. package/resources/devices/state.d.ts +11 -2
  111. package/resources/devices/state.d.ts.map +1 -1
  112. package/resources/devices/state.js +5 -2
  113. package/resources/devices/state.js.map +1 -1
  114. package/resources/devices/state.mjs +5 -2
  115. package/resources/devices/state.mjs.map +1 -1
  116. package/resources/devices/traffic-sessions.d.mts +1 -11
  117. package/resources/devices/traffic-sessions.d.mts.map +1 -1
  118. package/resources/devices/traffic-sessions.d.ts +1 -11
  119. package/resources/devices/traffic-sessions.d.ts.map +1 -1
  120. package/resources/devices/traffic-sessions.js +2 -8
  121. package/resources/devices/traffic-sessions.js.map +1 -1
  122. package/resources/devices/traffic-sessions.mjs +2 -8
  123. package/resources/devices/traffic-sessions.mjs.map +1 -1
  124. package/resources/files.d.mts +8 -22
  125. package/resources/files.d.mts.map +1 -1
  126. package/resources/files.d.ts +8 -22
  127. package/resources/files.d.ts.map +1 -1
  128. package/resources/files.js +5 -13
  129. package/resources/files.js.map +1 -1
  130. package/resources/files.mjs +5 -13
  131. package/resources/files.mjs.map +1 -1
  132. package/resources/index.d.mts +6 -11
  133. package/resources/index.d.mts.map +1 -1
  134. package/resources/index.d.ts +6 -11
  135. package/resources/index.d.ts.map +1 -1
  136. package/resources/index.js +1 -11
  137. package/resources/index.js.map +1 -1
  138. package/resources/index.mjs +1 -6
  139. package/resources/index.mjs.map +1 -1
  140. package/resources/mailboxes/connections.d.mts +58 -0
  141. package/resources/mailboxes/connections.d.mts.map +1 -0
  142. package/resources/mailboxes/connections.d.ts +58 -0
  143. package/resources/mailboxes/connections.d.ts.map +1 -0
  144. package/resources/mailboxes/connections.js +41 -0
  145. package/resources/mailboxes/connections.js.map +1 -0
  146. package/resources/mailboxes/connections.mjs +37 -0
  147. package/resources/mailboxes/connections.mjs.map +1 -0
  148. package/resources/mailboxes/index.d.mts +2 -1
  149. package/resources/mailboxes/index.d.mts.map +1 -1
  150. package/resources/mailboxes/index.d.ts +2 -1
  151. package/resources/mailboxes/index.d.ts.map +1 -1
  152. package/resources/mailboxes/index.js +3 -1
  153. package/resources/mailboxes/index.js.map +1 -1
  154. package/resources/mailboxes/index.mjs +1 -0
  155. package/resources/mailboxes/index.mjs.map +1 -1
  156. package/resources/mailboxes/mailboxes.d.mts +74 -24
  157. package/resources/mailboxes/mailboxes.d.mts.map +1 -1
  158. package/resources/mailboxes/mailboxes.d.ts +74 -24
  159. package/resources/mailboxes/mailboxes.d.ts.map +1 -1
  160. package/resources/mailboxes/mailboxes.js +26 -8
  161. package/resources/mailboxes/mailboxes.js.map +1 -1
  162. package/resources/mailboxes/mailboxes.mjs +26 -8
  163. package/resources/mailboxes/mailboxes.mjs.map +1 -1
  164. package/resources/messages/index.d.mts +1 -1
  165. package/resources/messages/index.d.mts.map +1 -1
  166. package/resources/messages/index.d.ts +1 -1
  167. package/resources/messages/index.d.ts.map +1 -1
  168. package/resources/messages/index.js.map +1 -1
  169. package/resources/messages/index.mjs +1 -1
  170. package/resources/messages/index.mjs.map +1 -1
  171. package/resources/messages/messages.d.mts +26 -1
  172. package/resources/messages/messages.d.mts.map +1 -1
  173. package/resources/messages/messages.d.ts +26 -1
  174. package/resources/messages/messages.d.ts.map +1 -1
  175. package/resources/messages/messages.js +9 -0
  176. package/resources/messages/messages.js.map +1 -1
  177. package/resources/messages/messages.mjs +9 -0
  178. package/resources/messages/messages.mjs.map +1 -1
  179. package/resources/models.d.mts +12 -23
  180. package/resources/models.d.mts.map +1 -1
  181. package/resources/models.d.ts +12 -23
  182. package/resources/models.d.ts.map +1 -1
  183. package/resources/models.js +3 -4
  184. package/resources/models.js.map +1 -1
  185. package/resources/models.mjs +3 -4
  186. package/resources/models.mjs.map +1 -1
  187. package/resources/numbers/index.d.mts +2 -2
  188. package/resources/numbers/index.d.mts.map +1 -1
  189. package/resources/numbers/index.d.ts +2 -2
  190. package/resources/numbers/index.d.ts.map +1 -1
  191. package/resources/numbers/index.js.map +1 -1
  192. package/resources/numbers/index.mjs +1 -1
  193. package/resources/numbers/index.mjs.map +1 -1
  194. package/resources/numbers/messages.d.mts +57 -1
  195. package/resources/numbers/messages.d.mts.map +1 -1
  196. package/resources/numbers/messages.d.ts +57 -1
  197. package/resources/numbers/messages.d.ts.map +1 -1
  198. package/resources/numbers/messages.js +23 -0
  199. package/resources/numbers/messages.js.map +1 -1
  200. package/resources/numbers/messages.mjs +23 -0
  201. package/resources/numbers/messages.mjs.map +1 -1
  202. package/resources/numbers/numbers.d.mts +148 -44
  203. package/resources/numbers/numbers.d.mts.map +1 -1
  204. package/resources/numbers/numbers.d.ts +148 -44
  205. package/resources/numbers/numbers.d.ts.map +1 -1
  206. package/resources/numbers/numbers.js +3 -23
  207. package/resources/numbers/numbers.js.map +1 -1
  208. package/resources/numbers/numbers.mjs +4 -24
  209. package/resources/numbers/numbers.mjs.map +1 -1
  210. package/resources/proxies.d.mts +1 -87
  211. package/resources/proxies.d.mts.map +1 -1
  212. package/resources/proxies.d.ts +1 -87
  213. package/resources/proxies.d.ts.map +1 -1
  214. package/resources/proxies.js +0 -6
  215. package/resources/proxies.js.map +1 -1
  216. package/resources/proxies.mjs +0 -6
  217. package/resources/proxies.mjs.map +1 -1
  218. package/resources/tasks/tasks.d.mts +51 -188
  219. package/resources/tasks/tasks.d.mts.map +1 -1
  220. package/resources/tasks/tasks.d.ts +51 -188
  221. package/resources/tasks/tasks.d.ts.map +1 -1
  222. package/resources/tasks/tasks.js +2 -10
  223. package/resources/tasks/tasks.js.map +1 -1
  224. package/resources/tasks/tasks.mjs +2 -10
  225. package/resources/tasks/tasks.mjs.map +1 -1
  226. package/resources/webhooks/deliveries.d.mts +22 -31
  227. package/resources/webhooks/deliveries.d.mts.map +1 -1
  228. package/resources/webhooks/deliveries.d.ts +22 -31
  229. package/resources/webhooks/deliveries.d.ts.map +1 -1
  230. package/resources/webhooks/deliveries.js +4 -30
  231. package/resources/webhooks/deliveries.js.map +1 -1
  232. package/resources/webhooks/deliveries.mjs +4 -30
  233. package/resources/webhooks/deliveries.mjs.map +1 -1
  234. package/resources/webhooks/index.d.mts +2 -1
  235. package/resources/webhooks/index.d.mts.map +1 -1
  236. package/resources/webhooks/index.d.ts +2 -1
  237. package/resources/webhooks/index.d.ts.map +1 -1
  238. package/resources/webhooks/index.js +3 -1
  239. package/resources/webhooks/index.js.map +1 -1
  240. package/resources/webhooks/index.mjs +1 -0
  241. package/resources/webhooks/index.mjs.map +1 -1
  242. package/resources/webhooks/integrations.d.mts +77 -0
  243. package/resources/webhooks/integrations.d.mts.map +1 -0
  244. package/resources/webhooks/integrations.d.ts +77 -0
  245. package/resources/webhooks/integrations.d.ts.map +1 -0
  246. package/resources/webhooks/integrations.js +26 -0
  247. package/resources/webhooks/integrations.js.map +1 -0
  248. package/resources/webhooks/integrations.mjs +22 -0
  249. package/resources/webhooks/integrations.mjs.map +1 -0
  250. package/resources/webhooks/webhooks.d.mts +276 -104
  251. package/resources/webhooks/webhooks.d.mts.map +1 -1
  252. package/resources/webhooks/webhooks.d.ts +276 -104
  253. package/resources/webhooks/webhooks.d.ts.map +1 -1
  254. package/resources/webhooks/webhooks.js +32 -68
  255. package/resources/webhooks/webhooks.js.map +1 -1
  256. package/resources/webhooks/webhooks.mjs +32 -68
  257. package/resources/webhooks/webhooks.mjs.map +1 -1
  258. package/resources/workflows/action-catalog.d.mts +7 -3
  259. package/resources/workflows/action-catalog.d.mts.map +1 -1
  260. package/resources/workflows/action-catalog.d.ts +7 -3
  261. package/resources/workflows/action-catalog.d.ts.map +1 -1
  262. package/resources/workflows/actions/actions.d.mts +9 -5
  263. package/resources/workflows/actions/actions.d.mts.map +1 -1
  264. package/resources/workflows/actions/actions.d.ts +9 -5
  265. package/resources/workflows/actions/actions.d.ts.map +1 -1
  266. package/resources/workflows/actions/actions.js +4 -0
  267. package/resources/workflows/actions/actions.js.map +1 -1
  268. package/resources/workflows/actions/actions.mjs +4 -0
  269. package/resources/workflows/actions/actions.mjs.map +1 -1
  270. package/resources/workflows/events.d.mts +52 -5
  271. package/resources/workflows/events.d.mts.map +1 -1
  272. package/resources/workflows/events.d.ts +52 -5
  273. package/resources/workflows/events.d.ts.map +1 -1
  274. package/resources/workflows/executions/executions.d.mts +330 -0
  275. package/resources/workflows/executions/executions.d.mts.map +1 -0
  276. package/resources/workflows/executions/executions.d.ts +330 -0
  277. package/resources/workflows/executions/executions.d.ts.map +1 -0
  278. package/resources/workflows/executions/executions.js +49 -0
  279. package/resources/workflows/executions/executions.js.map +1 -0
  280. package/resources/workflows/executions/executions.mjs +44 -0
  281. package/resources/workflows/executions/executions.mjs.map +1 -0
  282. package/resources/workflows/executions/index.d.mts +3 -0
  283. package/resources/workflows/executions/index.d.mts.map +1 -0
  284. package/resources/workflows/executions/index.d.ts +3 -0
  285. package/resources/workflows/executions/index.d.ts.map +1 -0
  286. package/resources/workflows/executions/index.js +9 -0
  287. package/resources/workflows/executions/index.js.map +1 -0
  288. package/resources/workflows/executions/index.mjs +4 -0
  289. package/resources/workflows/executions/index.mjs.map +1 -0
  290. package/resources/workflows/executions/screenshots.d.mts +18 -0
  291. package/resources/workflows/executions/screenshots.d.mts.map +1 -0
  292. package/resources/workflows/executions/screenshots.d.ts +18 -0
  293. package/resources/workflows/executions/screenshots.d.ts.map +1 -0
  294. package/resources/workflows/executions/screenshots.js +23 -0
  295. package/resources/workflows/executions/screenshots.js.map +1 -0
  296. package/resources/workflows/executions/screenshots.mjs +19 -0
  297. package/resources/workflows/executions/screenshots.mjs.map +1 -0
  298. package/resources/workflows/executions.d.mts +1 -269
  299. package/resources/workflows/executions.d.mts.map +1 -1
  300. package/resources/workflows/executions.d.ts +1 -269
  301. package/resources/workflows/executions.d.ts.map +1 -1
  302. package/resources/workflows/executions.js +2 -37
  303. package/resources/workflows/executions.js.map +1 -1
  304. package/resources/workflows/executions.mjs +1 -35
  305. package/resources/workflows/executions.mjs.map +1 -1
  306. package/resources/workflows/flows/actions.d.mts +39 -0
  307. package/resources/workflows/flows/actions.d.mts.map +1 -1
  308. package/resources/workflows/flows/actions.d.ts +39 -0
  309. package/resources/workflows/flows/actions.d.ts.map +1 -1
  310. package/resources/workflows/flows/actions.js +4 -0
  311. package/resources/workflows/flows/actions.js.map +1 -1
  312. package/resources/workflows/flows/actions.mjs +4 -0
  313. package/resources/workflows/flows/actions.mjs.map +1 -1
  314. package/resources/workflows/flows/flows.d.mts +574 -27
  315. package/resources/workflows/flows/flows.d.mts.map +1 -1
  316. package/resources/workflows/flows/flows.d.ts +574 -27
  317. package/resources/workflows/flows/flows.d.ts.map +1 -1
  318. package/resources/workflows/flows/flows.js +78 -3
  319. package/resources/workflows/flows/flows.js.map +1 -1
  320. package/resources/workflows/flows/flows.mjs +78 -3
  321. package/resources/workflows/flows/flows.mjs.map +1 -1
  322. package/resources/workflows/flows/index.d.mts +1 -1
  323. package/resources/workflows/flows/index.d.mts.map +1 -1
  324. package/resources/workflows/flows/index.d.ts +1 -1
  325. package/resources/workflows/flows/index.d.ts.map +1 -1
  326. package/resources/workflows/flows/index.js.map +1 -1
  327. package/resources/workflows/flows/index.mjs.map +1 -1
  328. package/resources/workflows/index.d.mts +2 -2
  329. package/resources/workflows/index.d.mts.map +1 -1
  330. package/resources/workflows/index.d.ts +2 -2
  331. package/resources/workflows/index.d.ts.map +1 -1
  332. package/resources/workflows/index.js +4 -4
  333. package/resources/workflows/index.js.map +1 -1
  334. package/resources/workflows/index.mjs +1 -1
  335. package/resources/workflows/index.mjs.map +1 -1
  336. package/resources/workflows/triggers.d.mts +110 -15
  337. package/resources/workflows/triggers.d.mts.map +1 -1
  338. package/resources/workflows/triggers.d.ts +110 -15
  339. package/resources/workflows/triggers.d.ts.map +1 -1
  340. package/resources/workflows/triggers.js +13 -1
  341. package/resources/workflows/triggers.js.map +1 -1
  342. package/resources/workflows/triggers.mjs +13 -1
  343. package/resources/workflows/triggers.mjs.map +1 -1
  344. package/resources/workflows/workflows.d.mts +4 -4
  345. package/resources/workflows/workflows.d.mts.map +1 -1
  346. package/resources/workflows/workflows.d.ts +4 -4
  347. package/resources/workflows/workflows.d.ts.map +1 -1
  348. package/resources/workflows/workflows.js +2 -2
  349. package/resources/workflows/workflows.js.map +1 -1
  350. package/resources/workflows/workflows.mjs +2 -2
  351. package/resources/workflows/workflows.mjs.map +1 -1
  352. package/src/client.ts +14 -103
  353. package/src/resources/apps.ts +39 -26
  354. package/src/resources/assistant/conversations.ts +12 -27
  355. package/src/resources/connect/connect.ts +6 -0
  356. package/src/resources/connect/index.ts +3 -0
  357. package/src/resources/connect/proxies.ts +127 -25
  358. package/src/resources/connect/users.ts +4 -4
  359. package/src/resources/devices/actions.ts +28 -5
  360. package/src/resources/devices/apps.ts +18 -0
  361. package/src/resources/devices/browser.ts +9 -3
  362. package/src/resources/devices/devices.ts +139 -41
  363. package/src/resources/devices/index.ts +13 -0
  364. package/src/resources/devices/keyboard.ts +9 -2
  365. package/src/resources/devices/recordings.ts +45 -5
  366. package/src/resources/devices/screenshots.ts +140 -0
  367. package/src/resources/devices/state.ts +12 -2
  368. package/src/resources/devices/traffic-sessions.ts +2 -19
  369. package/src/resources/files.ts +11 -32
  370. package/src/resources/index.ts +9 -43
  371. package/src/resources/mailboxes/connections.ts +84 -0
  372. package/src/resources/mailboxes/index.ts +7 -0
  373. package/src/resources/mailboxes/mailboxes.ts +147 -24
  374. package/src/resources/messages/index.ts +6 -1
  375. package/src/resources/messages/messages.ts +55 -1
  376. package/src/resources/models.ts +16 -23
  377. package/src/resources/numbers/index.ts +7 -2
  378. package/src/resources/numbers/messages.ts +88 -1
  379. package/src/resources/numbers/numbers.ts +171 -62
  380. package/src/resources/proxies.ts +0 -110
  381. package/src/resources/tasks/tasks.ts +57 -198
  382. package/src/resources/webhooks/deliveries.ts +26 -31
  383. package/src/resources/webhooks/index.ts +6 -1
  384. package/src/resources/webhooks/integrations.ts +107 -0
  385. package/src/resources/webhooks/webhooks.ts +315 -114
  386. package/src/resources/workflows/action-catalog.ts +11 -3
  387. package/src/resources/workflows/actions/actions.ts +9 -5
  388. package/src/resources/workflows/events.ts +66 -5
  389. package/src/resources/workflows/executions/executions.ts +510 -0
  390. package/src/resources/workflows/executions/index.ts +12 -0
  391. package/src/resources/workflows/executions/screenshots.ts +34 -0
  392. package/src/resources/workflows/executions.ts +1 -412
  393. package/src/resources/workflows/flows/actions.ts +46 -0
  394. package/src/resources/workflows/flows/flows.ts +811 -26
  395. package/src/resources/workflows/flows/index.ts +11 -0
  396. package/src/resources/workflows/index.ts +12 -1
  397. package/src/resources/workflows/triggers.ts +131 -16
  398. package/src/resources/workflows/workflows.ts +32 -10
  399. package/src/version.ts +1 -1
  400. package/version.d.mts +1 -1
  401. package/version.d.ts +1 -1
  402. package/version.js +1 -1
  403. package/version.mjs +1 -1
  404. package/resources/app-events/app-events.d.mts +0 -81
  405. package/resources/app-events/app-events.d.mts.map +0 -1
  406. package/resources/app-events/app-events.d.ts +0 -81
  407. package/resources/app-events/app-events.d.ts.map +0 -1
  408. package/resources/app-events/app-events.js +0 -33
  409. package/resources/app-events/app-events.js.map +0 -1
  410. package/resources/app-events/app-events.mjs +0 -28
  411. package/resources/app-events/app-events.mjs.map +0 -1
  412. package/resources/app-events/catalog.d.mts +0 -64
  413. package/resources/app-events/catalog.d.mts.map +0 -1
  414. package/resources/app-events/catalog.d.ts +0 -64
  415. package/resources/app-events/catalog.d.ts.map +0 -1
  416. package/resources/app-events/catalog.js +0 -25
  417. package/resources/app-events/catalog.js.map +0 -1
  418. package/resources/app-events/catalog.mjs +0 -21
  419. package/resources/app-events/catalog.mjs.map +0 -1
  420. package/resources/app-events/index.d.mts +0 -3
  421. package/resources/app-events/index.d.mts.map +0 -1
  422. package/resources/app-events/index.d.ts +0 -3
  423. package/resources/app-events/index.d.ts.map +0 -1
  424. package/resources/app-events/index.js +0 -9
  425. package/resources/app-events/index.js.map +0 -1
  426. package/resources/app-events/index.mjs +0 -4
  427. package/resources/app-events/index.mjs.map +0 -1
  428. package/resources/app-events.d.mts +0 -2
  429. package/resources/app-events.d.mts.map +0 -1
  430. package/resources/app-events.d.ts +0 -2
  431. package/resources/app-events.d.ts.map +0 -1
  432. package/resources/app-events.js +0 -6
  433. package/resources/app-events.js.map +0 -1
  434. package/resources/app-events.mjs +0 -3
  435. package/resources/app-events.mjs.map +0 -1
  436. package/resources/carriers.d.mts +0 -331
  437. package/resources/carriers.d.mts.map +0 -1
  438. package/resources/carriers.d.ts +0 -331
  439. package/resources/carriers.d.ts.map +0 -1
  440. package/resources/carriers.js +0 -46
  441. package/resources/carriers.js.map +0 -1
  442. package/resources/carriers.mjs +0 -42
  443. package/resources/carriers.mjs.map +0 -1
  444. package/resources/notifications.d.mts +0 -86
  445. package/resources/notifications.d.mts.map +0 -1
  446. package/resources/notifications.d.ts +0 -86
  447. package/resources/notifications.d.ts.map +0 -1
  448. package/resources/notifications.js +0 -55
  449. package/resources/notifications.js.map +0 -1
  450. package/resources/notifications.mjs +0 -51
  451. package/resources/notifications.mjs.map +0 -1
  452. package/resources/profiles.d.mts +0 -147
  453. package/resources/profiles.d.mts.map +0 -1
  454. package/resources/profiles.d.ts +0 -147
  455. package/resources/profiles.d.ts.map +0 -1
  456. package/resources/profiles.js +0 -40
  457. package/resources/profiles.js.map +0 -1
  458. package/resources/profiles.mjs +0 -36
  459. package/resources/profiles.mjs.map +0 -1
  460. package/resources/store/apps.d.mts +0 -119
  461. package/resources/store/apps.d.mts.map +0 -1
  462. package/resources/store/apps.d.ts +0 -119
  463. package/resources/store/apps.d.ts.map +0 -1
  464. package/resources/store/apps.js +0 -31
  465. package/resources/store/apps.js.map +0 -1
  466. package/resources/store/apps.mjs +0 -27
  467. package/resources/store/apps.mjs.map +0 -1
  468. package/resources/store/index.d.mts +0 -3
  469. package/resources/store/index.d.mts.map +0 -1
  470. package/resources/store/index.d.ts +0 -3
  471. package/resources/store/index.d.ts.map +0 -1
  472. package/resources/store/index.js +0 -9
  473. package/resources/store/index.js.map +0 -1
  474. package/resources/store/index.mjs +0 -4
  475. package/resources/store/index.mjs.map +0 -1
  476. package/resources/store/store.d.mts +0 -20
  477. package/resources/store/store.d.mts.map +0 -1
  478. package/resources/store/store.d.ts +0 -20
  479. package/resources/store/store.d.ts.map +0 -1
  480. package/resources/store/store.js +0 -23
  481. package/resources/store/store.js.map +0 -1
  482. package/resources/store/store.mjs +0 -18
  483. package/resources/store/store.mjs.map +0 -1
  484. package/resources/store.d.mts +0 -2
  485. package/resources/store.d.mts.map +0 -1
  486. package/resources/store.d.ts +0 -2
  487. package/resources/store.d.ts.map +0 -1
  488. package/resources/store.js +0 -6
  489. package/resources/store.js.map +0 -1
  490. package/resources/store.mjs +0 -3
  491. package/resources/store.mjs.map +0 -1
  492. package/src/resources/app-events/app-events.ts +0 -133
  493. package/src/resources/app-events/catalog.ts +0 -100
  494. package/src/resources/app-events/index.ts +0 -9
  495. package/src/resources/app-events.ts +0 -3
  496. package/src/resources/carriers.ts +0 -508
  497. package/src/resources/notifications.ts +0 -118
  498. package/src/resources/profiles.ts +0 -232
  499. package/src/resources/store/apps.ts +0 -704
  500. package/src/resources/store/index.ts +0 -10
  501. package/src/resources/store/store.ts +0 -36
  502. package/src/resources/store.ts +0 -3
@@ -1,25 +1,27 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
2
  import * as Shared from "../shared.js";
3
+ import * as ConnectionsAPI from "./connections.js";
4
+ import { ConnectionCreateParams, ConnectionCreateResponse, ConnectionRetrieveResponse, Connections } from "./connections.js";
3
5
  import * as MessagesAPI from "./messages.js";
4
6
  import { MessageListParams, MessageListResponse, MessageRetrieveParams, MessageRetrieveResponse, Messages } from "./messages.js";
5
7
  import { APIPromise } from "../../core/api-promise.js";
6
8
  import { RequestOptions } from "../../internal/request-options.js";
7
9
  export declare class Mailboxes extends APIResource {
10
+ connections: ConnectionsAPI.Connections;
8
11
  messages: MessagesAPI.Messages;
9
12
  /**
10
13
  * Creates a mailbox on the default domain or a connected custom domain. An
11
- * optional `localPart` selects the address. Replaying the same `clientRequestId`
12
- * and payload returns the original mailbox. Poll the mailbox when a 202 response
13
- * does not yet include a checkout URL.
14
+ * optional `localPart` selects the address. Replaying the same Idempotency-Key and
15
+ * payload returns the original mailbox. Fresh requests and replays return 202 with
16
+ * the current mailbox state. Poll the mailbox when the response does not yet
17
+ * include a checkout URL.
14
18
  *
15
19
  * @example
16
20
  * ```ts
17
- * const mailbox = await client.mailboxes.create({
18
- * clientRequestId: 'x',
19
- * });
21
+ * const mailbox = await client.mailboxes.create();
20
22
  * ```
21
23
  */
22
- create(body: MailboxCreateParams, options?: RequestOptions): APIPromise<MailboxCreateResponse>;
24
+ create(body?: MailboxCreateParams | null | undefined, options?: RequestOptions): APIPromise<MailboxCreateResponse>;
23
25
  /**
24
26
  * Get a mailbox
25
27
  *
@@ -54,7 +56,8 @@ export declare class Mailboxes extends APIResource {
54
56
  list(query?: MailboxListParams | null | undefined, options?: RequestOptions): APIPromise<MailboxListResponse>;
55
57
  /**
56
58
  * Cancels a pending mailbox or schedules an active paid mailbox for cancellation.
57
- * Existing addresses and messages are retained. Repeating the request is safe.
59
+ * Existing addresses and messages are retained. Repeating the request is safe. An
60
+ * external inbox (Gmail) cannot be cancelled here; disconnect the link instead.
58
61
  *
59
62
  * @example
60
63
  * ```ts
@@ -73,6 +76,18 @@ export declare class Mailboxes extends APIResource {
73
76
  * ```
74
77
  */
75
78
  capacity(options?: RequestOptions): APIPromise<MailboxCapacityResponse>;
79
+ /**
80
+ * Removes only this mailbox link. The Gmail connection used by your agents stays
81
+ * in place.
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * const response = await client.mailboxes.disconnect(
86
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
87
+ * );
88
+ * ```
89
+ */
90
+ disconnect(mailboxID: string, options?: RequestOptions): APIPromise<MailboxDisconnectResponse>;
76
91
  /**
77
92
  * Returns the most likely recent OTP for the mailbox. Returns 204 when no matching
78
93
  * code is available.
@@ -117,7 +132,7 @@ export declare namespace MailboxCreateResponse {
117
132
  interface Data {
118
133
  id: string;
119
134
  address: string | null;
120
- billingMode: 'rent' | 'included' | 'domain';
135
+ billingMode: 'rent' | 'included' | 'domain' | 'external';
121
136
  cancelAtPeriodEnd: boolean;
122
137
  checkoutExpiresAt: string | null;
123
138
  checkoutUrl: string | null;
@@ -126,7 +141,8 @@ export declare namespace MailboxCreateResponse {
126
141
  domainId: string | null;
127
142
  inboundMessages: Data.InboundMessages;
128
143
  label: string | null;
129
- status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error';
144
+ provider: 'matix' | 'gmail';
145
+ status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error' | 'pending_connection' | 'connection_expired' | 'connection_removed';
130
146
  }
131
147
  namespace Data {
132
148
  interface InboundMessages {
@@ -144,7 +160,7 @@ export declare namespace MailboxRetrieveResponse {
144
160
  interface Data {
145
161
  id: string;
146
162
  address: string | null;
147
- billingMode: 'rent' | 'included' | 'domain';
163
+ billingMode: 'rent' | 'included' | 'domain' | 'external';
148
164
  cancelAtPeriodEnd: boolean;
149
165
  checkoutExpiresAt: string | null;
150
166
  checkoutUrl: string | null;
@@ -153,7 +169,8 @@ export declare namespace MailboxRetrieveResponse {
153
169
  domainId: string | null;
154
170
  inboundMessages: Data.InboundMessages;
155
171
  label: string | null;
156
- status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error';
172
+ provider: 'matix' | 'gmail';
173
+ status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error' | 'pending_connection' | 'connection_expired' | 'connection_removed';
157
174
  }
158
175
  namespace Data {
159
176
  interface InboundMessages {
@@ -171,7 +188,7 @@ export declare namespace MailboxUpdateResponse {
171
188
  interface Data {
172
189
  id: string;
173
190
  address: string | null;
174
- billingMode: 'rent' | 'included' | 'domain';
191
+ billingMode: 'rent' | 'included' | 'domain' | 'external';
175
192
  cancelAtPeriodEnd: boolean;
176
193
  checkoutExpiresAt: string | null;
177
194
  checkoutUrl: string | null;
@@ -180,7 +197,8 @@ export declare namespace MailboxUpdateResponse {
180
197
  domainId: string | null;
181
198
  inboundMessages: Data.InboundMessages;
182
199
  label: string | null;
183
- status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error';
200
+ provider: 'matix' | 'gmail';
201
+ status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error' | 'pending_connection' | 'connection_expired' | 'connection_removed';
184
202
  }
185
203
  namespace Data {
186
204
  interface InboundMessages {
@@ -199,7 +217,7 @@ export declare namespace MailboxListResponse {
199
217
  interface Item {
200
218
  id: string;
201
219
  address: string | null;
202
- billingMode: 'rent' | 'included' | 'domain';
220
+ billingMode: 'rent' | 'included' | 'domain' | 'external';
203
221
  cancelAtPeriodEnd: boolean;
204
222
  checkoutExpiresAt: string | null;
205
223
  checkoutUrl: string | null;
@@ -208,7 +226,8 @@ export declare namespace MailboxListResponse {
208
226
  domainId: string | null;
209
227
  inboundMessages: Item.InboundMessages;
210
228
  label: string | null;
211
- status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error';
229
+ provider: 'matix' | 'gmail';
230
+ status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error' | 'pending_connection' | 'connection_expired' | 'connection_removed';
212
231
  }
213
232
  namespace Item {
214
233
  interface InboundMessages {
@@ -226,7 +245,7 @@ export declare namespace MailboxDeleteResponse {
226
245
  interface Data {
227
246
  id: string;
228
247
  address: string | null;
229
- billingMode: 'rent' | 'included' | 'domain';
248
+ billingMode: 'rent' | 'included' | 'domain' | 'external';
230
249
  cancelAtPeriodEnd: boolean;
231
250
  checkoutExpiresAt: string | null;
232
251
  checkoutUrl: string | null;
@@ -235,7 +254,8 @@ export declare namespace MailboxDeleteResponse {
235
254
  domainId: string | null;
236
255
  inboundMessages: Data.InboundMessages;
237
256
  label: string | null;
238
- status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error';
257
+ provider: 'matix' | 'gmail';
258
+ status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error' | 'pending_connection' | 'connection_expired' | 'connection_removed';
239
259
  }
240
260
  namespace Data {
241
261
  interface InboundMessages {
@@ -257,6 +277,34 @@ export declare namespace MailboxCapacityResponse {
257
277
  status: 'available' | 'exhausted' | 'not_included';
258
278
  }
259
279
  }
280
+ export interface MailboxDisconnectResponse {
281
+ data: MailboxDisconnectResponse.Data;
282
+ }
283
+ export declare namespace MailboxDisconnectResponse {
284
+ interface Data {
285
+ id: string;
286
+ address: string | null;
287
+ billingMode: 'rent' | 'included' | 'domain' | 'external';
288
+ cancelAtPeriodEnd: boolean;
289
+ checkoutExpiresAt: string | null;
290
+ checkoutUrl: string | null;
291
+ createdAt: string;
292
+ currentPeriodEnd: string | null;
293
+ domainId: string | null;
294
+ inboundMessages: Data.InboundMessages;
295
+ label: string | null;
296
+ provider: 'matix' | 'gmail';
297
+ status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error' | 'pending_connection' | 'connection_expired' | 'connection_removed';
298
+ }
299
+ namespace Data {
300
+ interface InboundMessages {
301
+ exhausted: boolean;
302
+ included: number;
303
+ resetsAt: string | null;
304
+ used: number;
305
+ }
306
+ }
307
+ }
260
308
  export interface MailboxOtpResponse {
261
309
  data: MailboxOtpResponse.Data;
262
310
  }
@@ -280,7 +328,7 @@ export declare namespace MailboxRestartResponse {
280
328
  interface Data {
281
329
  id: string;
282
330
  address: string | null;
283
- billingMode: 'rent' | 'included' | 'domain';
331
+ billingMode: 'rent' | 'included' | 'domain' | 'external';
284
332
  cancelAtPeriodEnd: boolean;
285
333
  checkoutExpiresAt: string | null;
286
334
  checkoutUrl: string | null;
@@ -289,7 +337,8 @@ export declare namespace MailboxRestartResponse {
289
337
  domainId: string | null;
290
338
  inboundMessages: Data.InboundMessages;
291
339
  label: string | null;
292
- status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error';
340
+ provider: 'matix' | 'gmail';
341
+ status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error' | 'pending_connection' | 'connection_expired' | 'connection_removed';
293
342
  }
294
343
  namespace Data {
295
344
  interface InboundMessages {
@@ -307,7 +356,7 @@ export declare namespace MailboxUncancelResponse {
307
356
  interface Data {
308
357
  id: string;
309
358
  address: string | null;
310
- billingMode: 'rent' | 'included' | 'domain';
359
+ billingMode: 'rent' | 'included' | 'domain' | 'external';
311
360
  cancelAtPeriodEnd: boolean;
312
361
  checkoutExpiresAt: string | null;
313
362
  checkoutUrl: string | null;
@@ -316,7 +365,8 @@ export declare namespace MailboxUncancelResponse {
316
365
  domainId: string | null;
317
366
  inboundMessages: Data.InboundMessages;
318
367
  label: string | null;
319
- status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error';
368
+ provider: 'matix' | 'gmail';
369
+ status: 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error' | 'pending_connection' | 'connection_expired' | 'connection_removed';
320
370
  }
321
371
  namespace Data {
322
372
  interface InboundMessages {
@@ -328,7 +378,6 @@ export declare namespace MailboxUncancelResponse {
328
378
  }
329
379
  }
330
380
  export interface MailboxCreateParams {
331
- clientRequestId: string;
332
381
  /**
333
382
  * included uses package capacity when available and otherwise starts paid
334
383
  * checkout; included_only fails without creating a paid reservation when no
@@ -368,7 +417,8 @@ export interface MailboxRestartParams {
368
417
  billingPreference?: 'included' | 'included_only' | 'rent';
369
418
  }
370
419
  export declare namespace Mailboxes {
371
- export { type MailboxCreateResponse as MailboxCreateResponse, type MailboxRetrieveResponse as MailboxRetrieveResponse, type MailboxUpdateResponse as MailboxUpdateResponse, type MailboxListResponse as MailboxListResponse, type MailboxDeleteResponse as MailboxDeleteResponse, type MailboxCapacityResponse as MailboxCapacityResponse, type MailboxOtpResponse as MailboxOtpResponse, type MailboxRestartResponse as MailboxRestartResponse, type MailboxUncancelResponse as MailboxUncancelResponse, type MailboxCreateParams as MailboxCreateParams, type MailboxUpdateParams as MailboxUpdateParams, type MailboxListParams as MailboxListParams, type MailboxOtpParams as MailboxOtpParams, type MailboxRestartParams as MailboxRestartParams, };
420
+ export { type MailboxCreateResponse as MailboxCreateResponse, type MailboxRetrieveResponse as MailboxRetrieveResponse, type MailboxUpdateResponse as MailboxUpdateResponse, type MailboxListResponse as MailboxListResponse, type MailboxDeleteResponse as MailboxDeleteResponse, type MailboxCapacityResponse as MailboxCapacityResponse, type MailboxDisconnectResponse as MailboxDisconnectResponse, type MailboxOtpResponse as MailboxOtpResponse, type MailboxRestartResponse as MailboxRestartResponse, type MailboxUncancelResponse as MailboxUncancelResponse, type MailboxCreateParams as MailboxCreateParams, type MailboxUpdateParams as MailboxUpdateParams, type MailboxListParams as MailboxListParams, type MailboxOtpParams as MailboxOtpParams, type MailboxRestartParams as MailboxRestartParams, };
421
+ export { Connections as Connections, type ConnectionCreateResponse as ConnectionCreateResponse, type ConnectionRetrieveResponse as ConnectionRetrieveResponse, type ConnectionCreateParams as ConnectionCreateParams, };
372
422
  export { Messages as Messages, type MessageRetrieveResponse as MessageRetrieveResponse, type MessageListResponse as MessageListResponse, type MessageRetrieveParams as MessageRetrieveParams, type MessageListParams as MessageListParams, };
373
423
  }
374
424
  //# sourceMappingURL=mailboxes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mailboxes.d.ts","sourceRoot":"","sources":["../../src/resources/mailboxes/mailboxes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,QAAQ,EACT,sBAAmB;AACpB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;;;OASG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAI1F;;;;;;;;;;OAUG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,cAAc,GAC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EACzC,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -4,28 +4,30 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Mailboxes = void 0;
5
5
  const tslib_1 = require("../../internal/tslib.js");
6
6
  const resource_1 = require("../../core/resource.js");
7
+ const ConnectionsAPI = tslib_1.__importStar(require("./connections.js"));
8
+ const connections_1 = require("./connections.js");
7
9
  const MessagesAPI = tslib_1.__importStar(require("./messages.js"));
8
10
  const messages_1 = require("./messages.js");
9
11
  const path_1 = require("../../internal/utils/path.js");
10
12
  class Mailboxes extends resource_1.APIResource {
11
13
  constructor() {
12
14
  super(...arguments);
15
+ this.connections = new ConnectionsAPI.Connections(this._client);
13
16
  this.messages = new MessagesAPI.Messages(this._client);
14
17
  }
15
18
  /**
16
19
  * Creates a mailbox on the default domain or a connected custom domain. An
17
- * optional `localPart` selects the address. Replaying the same `clientRequestId`
18
- * and payload returns the original mailbox. Poll the mailbox when a 202 response
19
- * does not yet include a checkout URL.
20
+ * optional `localPart` selects the address. Replaying the same Idempotency-Key and
21
+ * payload returns the original mailbox. Fresh requests and replays return 202 with
22
+ * the current mailbox state. Poll the mailbox when the response does not yet
23
+ * include a checkout URL.
20
24
  *
21
25
  * @example
22
26
  * ```ts
23
- * const mailbox = await client.mailboxes.create({
24
- * clientRequestId: 'x',
25
- * });
27
+ * const mailbox = await client.mailboxes.create();
26
28
  * ```
27
29
  */
28
- create(body, options) {
30
+ create(body = {}, options) {
29
31
  return this._client.post('/mailboxes', { body, ...options });
30
32
  }
31
33
  /**
@@ -68,7 +70,8 @@ class Mailboxes extends resource_1.APIResource {
68
70
  }
69
71
  /**
70
72
  * Cancels a pending mailbox or schedules an active paid mailbox for cancellation.
71
- * Existing addresses and messages are retained. Repeating the request is safe.
73
+ * Existing addresses and messages are retained. Repeating the request is safe. An
74
+ * external inbox (Gmail) cannot be cancelled here; disconnect the link instead.
72
75
  *
73
76
  * @example
74
77
  * ```ts
@@ -91,6 +94,20 @@ class Mailboxes extends resource_1.APIResource {
91
94
  capacity(options) {
92
95
  return this._client.get('/mailboxes/capacity', options);
93
96
  }
97
+ /**
98
+ * Removes only this mailbox link. The Gmail connection used by your agents stays
99
+ * in place.
100
+ *
101
+ * @example
102
+ * ```ts
103
+ * const response = await client.mailboxes.disconnect(
104
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
105
+ * );
106
+ * ```
107
+ */
108
+ disconnect(mailboxID, options) {
109
+ return this._client.post((0, path_1.path) `/mailboxes/${mailboxID}/disconnect`, options);
110
+ }
94
111
  /**
95
112
  * Returns the most likely recent OTP for the mailbox. Returns 204 when no matching
96
113
  * code is available.
@@ -135,5 +152,6 @@ class Mailboxes extends resource_1.APIResource {
135
152
  }
136
153
  }
137
154
  exports.Mailboxes = Mailboxes;
155
+ Mailboxes.Connections = connections_1.Connections;
138
156
  Mailboxes.Messages = messages_1.Messages;
139
157
  //# sourceMappingURL=mailboxes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mailboxes.js","sourceRoot":"","sources":["../../src/resources/mailboxes/mailboxes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,mEAA0C;AAC1C,4CAMoB;AAGpB,uDAAiD;AAEjD,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OA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,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CACL,SAAiB,EACjB,OAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,cAAc,SAAS,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,cAAc,SAAS,WAAW,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF;AAtKD,8BAsKC;AAshBD,SAAS,CAAC,WAAW,GAAG,yBAAW,CAAC;AACpC,SAAS,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
@@ -1,27 +1,29 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
+ import * as ConnectionsAPI from "./connections.mjs";
4
+ import { Connections, } from "./connections.mjs";
3
5
  import * as MessagesAPI from "./messages.mjs";
4
6
  import { Messages, } from "./messages.mjs";
5
7
  import { path } from "../../internal/utils/path.mjs";
6
8
  export class Mailboxes extends APIResource {
7
9
  constructor() {
8
10
  super(...arguments);
11
+ this.connections = new ConnectionsAPI.Connections(this._client);
9
12
  this.messages = new MessagesAPI.Messages(this._client);
10
13
  }
11
14
  /**
12
15
  * Creates a mailbox on the default domain or a connected custom domain. An
13
- * optional `localPart` selects the address. Replaying the same `clientRequestId`
14
- * and payload returns the original mailbox. Poll the mailbox when a 202 response
15
- * does not yet include a checkout URL.
16
+ * optional `localPart` selects the address. Replaying the same Idempotency-Key and
17
+ * payload returns the original mailbox. Fresh requests and replays return 202 with
18
+ * the current mailbox state. Poll the mailbox when the response does not yet
19
+ * include a checkout URL.
16
20
  *
17
21
  * @example
18
22
  * ```ts
19
- * const mailbox = await client.mailboxes.create({
20
- * clientRequestId: 'x',
21
- * });
23
+ * const mailbox = await client.mailboxes.create();
22
24
  * ```
23
25
  */
24
- create(body, options) {
26
+ create(body = {}, options) {
25
27
  return this._client.post('/mailboxes', { body, ...options });
26
28
  }
27
29
  /**
@@ -64,7 +66,8 @@ export class Mailboxes extends APIResource {
64
66
  }
65
67
  /**
66
68
  * Cancels a pending mailbox or schedules an active paid mailbox for cancellation.
67
- * Existing addresses and messages are retained. Repeating the request is safe.
69
+ * Existing addresses and messages are retained. Repeating the request is safe. An
70
+ * external inbox (Gmail) cannot be cancelled here; disconnect the link instead.
68
71
  *
69
72
  * @example
70
73
  * ```ts
@@ -87,6 +90,20 @@ export class Mailboxes extends APIResource {
87
90
  capacity(options) {
88
91
  return this._client.get('/mailboxes/capacity', options);
89
92
  }
93
+ /**
94
+ * Removes only this mailbox link. The Gmail connection used by your agents stays
95
+ * in place.
96
+ *
97
+ * @example
98
+ * ```ts
99
+ * const response = await client.mailboxes.disconnect(
100
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
101
+ * );
102
+ * ```
103
+ */
104
+ disconnect(mailboxID, options) {
105
+ return this._client.post(path `/mailboxes/${mailboxID}/disconnect`, options);
106
+ }
90
107
  /**
91
108
  * Returns the most likely recent OTP for the mailbox. Returns 204 when no matching
92
109
  * code is available.
@@ -130,5 +147,6 @@ export class Mailboxes extends APIResource {
130
147
  return this._client.post(path `/mailboxes/${mailboxID}/uncancel`, options);
131
148
  }
132
149
  }
150
+ Mailboxes.Connections = Connections;
133
151
  Mailboxes.Messages = Messages;
134
152
  //# sourceMappingURL=mailboxes.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mailboxes.mjs","sourceRoot":"","sources":["../../src/resources/mailboxes/mailboxes.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,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c,SAAS,aAAa,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CACD,SAAiB,EACjB,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CACL,SAAiB,EACjB,OAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,cAAc,SAAS,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,cAAc,SAAS,WAAW,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF;AAshBD,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AACpC,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export { Conversations, type ConversationListResponse, type ConversationMarkReadResponse, type ConversationListParams, type ConversationMarkReadParams, } from "./conversations.mjs";
2
- export { Messages, type MessageListResponse, type MessageListParams } from "./messages.mjs";
2
+ export { Messages, type MessageRetrieveResponse, type MessageListResponse, type MessageListParams, } from "./messages.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/messages/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,GAChC,4BAAwB;AACzB,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,uBAAmB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/messages/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,GAChC,4BAAwB;AACzB,OAAO,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,uBAAmB"}
@@ -1,3 +1,3 @@
1
1
  export { Conversations, type ConversationListResponse, type ConversationMarkReadResponse, type ConversationListParams, type ConversationMarkReadParams, } from "./conversations.js";
2
- export { Messages, type MessageListResponse, type MessageListParams } from "./messages.js";
2
+ export { Messages, type MessageRetrieveResponse, type MessageListResponse, type MessageListParams, } from "./messages.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/messages/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,GAChC,2BAAwB;AACzB,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,sBAAmB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/messages/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,GAChC,2BAAwB;AACzB,OAAO,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,sBAAmB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/messages/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAMyB;AALvB,8GAAA,aAAa,OAAA;AAMf,0CAAwF;AAA/E,oGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/messages/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAMyB;AALvB,8GAAA,aAAa,OAAA;AAMf,0CAKoB;AAJlB,oGAAA,QAAQ,OAAA"}
@@ -1,4 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  export { Conversations, } from "./conversations.mjs";
3
- export { Messages } from "./messages.mjs";
3
+ export { Messages, } from "./messages.mjs";
4
4
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/messages/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,aAAa,GAKd,4BAAwB;AACzB,OAAO,EAAE,QAAQ,EAAoD,uBAAmB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/messages/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,aAAa,GAKd,4BAAwB;AACzB,OAAO,EACL,QAAQ,GAIT,uBAAmB"}
@@ -6,12 +6,37 @@ import { APIPromise } from "../../core/api-promise.mjs";
6
6
  import { RequestOptions } from "../../internal/request-options.mjs";
7
7
  export declare class Messages extends APIResource {
8
8
  conversations: ConversationsAPI.Conversations;
9
+ /**
10
+ * Returns one message. For an outbound message that is not yet final, the status
11
+ * may be refreshed once (at most every 30 s) before it is returned; a failed
12
+ * refresh returns the stored message.
13
+ */
14
+ retrieve(id: string, options?: RequestOptions): APIPromise<MessageRetrieveResponse>;
9
15
  /**
10
16
  * Lists SMS messages newest first, with filters for direction, eSIM, phone number,
11
17
  * status, and conversation.
12
18
  */
13
19
  list(query?: MessageListParams | null | undefined, options?: RequestOptions): APIPromise<MessageListResponse>;
14
20
  }
21
+ export interface MessageRetrieveResponse {
22
+ data: MessageRetrieveResponse.Data;
23
+ }
24
+ export declare namespace MessageRetrieveResponse {
25
+ interface Data {
26
+ id: string;
27
+ body: string | null;
28
+ createdAt: string;
29
+ deliveryStatus: string | null;
30
+ detectedSender: string | null;
31
+ direction: 'inbound' | 'outbound';
32
+ esimId: string | null;
33
+ occurredAt: string;
34
+ peerKey: string | null;
35
+ peerNumber: string | null;
36
+ providerCode: string | null;
37
+ status: 'received' | 'queued' | 'claimed' | 'sending' | 'sent' | 'sent_unconfirmed' | 'delivered' | 'failed';
38
+ }
39
+ }
15
40
  export interface MessageListResponse {
16
41
  items: Array<MessageListResponse.Item>;
17
42
  pagination: Shared.Pagination;
@@ -43,7 +68,7 @@ export interface MessageListParams {
43
68
  status?: 'all' | 'received' | 'queued' | 'claimed' | 'sending' | 'sent' | 'sent_unconfirmed' | 'delivered' | 'failed';
44
69
  }
45
70
  export declare namespace Messages {
46
- export { type MessageListResponse as MessageListResponse, type MessageListParams as MessageListParams };
71
+ export { type MessageRetrieveResponse as MessageRetrieveResponse, type MessageListResponse as MessageListResponse, type MessageListParams as MessageListParams, };
47
72
  export { Conversations as Conversations, type ConversationListResponse as ConversationListResponse, type ConversationMarkReadResponse as ConversationMarkReadResponse, type ConversationListParams as ConversationListParams, type ConversationMarkReadParams as ConversationMarkReadParams, };
48
73
  }
49
74
  //# sourceMappingURL=messages.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../../src/resources/messages/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,gBAAgB,4BAAwB;AACpD,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,4BAA4B,EAC5B,aAAa,EACd,4BAAwB;AACzB,OAAO,EAAE,UAAU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,CAAC;QAEvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B,MAAM,EACF,UAAU,GACV,QAAQ,GACR,SAAS,GACT,SAAS,GACT,MAAM,GACN,kBAAkB,GAClB,WAAW,GACX,QAAQ,CAAC;KACd;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,UAAU,CAAC;IAE3C,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EACH,KAAK,GACL,UAAU,GACV,QAAQ,GACR,SAAS,GACT,SAAS,GACT,MAAM,GACN,kBAAkB,GAClB,WAAW,GACX,QAAQ,CAAC;CACd;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -6,12 +6,37 @@ import { APIPromise } from "../../core/api-promise.js";
6
6
  import { RequestOptions } from "../../internal/request-options.js";
7
7
  export declare class Messages extends APIResource {
8
8
  conversations: ConversationsAPI.Conversations;
9
+ /**
10
+ * Returns one message. For an outbound message that is not yet final, the status
11
+ * may be refreshed once (at most every 30 s) before it is returned; a failed
12
+ * refresh returns the stored message.
13
+ */
14
+ retrieve(id: string, options?: RequestOptions): APIPromise<MessageRetrieveResponse>;
9
15
  /**
10
16
  * Lists SMS messages newest first, with filters for direction, eSIM, phone number,
11
17
  * status, and conversation.
12
18
  */
13
19
  list(query?: MessageListParams | null | undefined, options?: RequestOptions): APIPromise<MessageListResponse>;
14
20
  }
21
+ export interface MessageRetrieveResponse {
22
+ data: MessageRetrieveResponse.Data;
23
+ }
24
+ export declare namespace MessageRetrieveResponse {
25
+ interface Data {
26
+ id: string;
27
+ body: string | null;
28
+ createdAt: string;
29
+ deliveryStatus: string | null;
30
+ detectedSender: string | null;
31
+ direction: 'inbound' | 'outbound';
32
+ esimId: string | null;
33
+ occurredAt: string;
34
+ peerKey: string | null;
35
+ peerNumber: string | null;
36
+ providerCode: string | null;
37
+ status: 'received' | 'queued' | 'claimed' | 'sending' | 'sent' | 'sent_unconfirmed' | 'delivered' | 'failed';
38
+ }
39
+ }
15
40
  export interface MessageListResponse {
16
41
  items: Array<MessageListResponse.Item>;
17
42
  pagination: Shared.Pagination;
@@ -43,7 +68,7 @@ export interface MessageListParams {
43
68
  status?: 'all' | 'received' | 'queued' | 'claimed' | 'sending' | 'sent' | 'sent_unconfirmed' | 'delivered' | 'failed';
44
69
  }
45
70
  export declare namespace Messages {
46
- export { type MessageListResponse as MessageListResponse, type MessageListParams as MessageListParams };
71
+ export { type MessageRetrieveResponse as MessageRetrieveResponse, type MessageListResponse as MessageListResponse, type MessageListParams as MessageListParams, };
47
72
  export { Conversations as Conversations, type ConversationListResponse as ConversationListResponse, type ConversationMarkReadResponse as ConversationMarkReadResponse, type ConversationListParams as ConversationListParams, type ConversationMarkReadParams as ConversationMarkReadParams, };
48
73
  }
49
74
  //# sourceMappingURL=messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/resources/messages/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;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