@mobilerun/sdk 5.1.0 → 5.2.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 (374) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/client.d.mts +4 -16
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -16
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -12
  7. package/client.js.map +1 -1
  8. package/client.mjs +1 -13
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/apps.d.mts +12 -7
  12. package/resources/apps.d.mts.map +1 -1
  13. package/resources/apps.d.ts +12 -7
  14. package/resources/apps.d.ts.map +1 -1
  15. package/resources/apps.js +0 -4
  16. package/resources/apps.js.map +1 -1
  17. package/resources/apps.mjs +0 -4
  18. package/resources/apps.mjs.map +1 -1
  19. package/resources/carriers.d.mts +0 -3
  20. package/resources/carriers.d.mts.map +1 -1
  21. package/resources/carriers.d.ts +0 -3
  22. package/resources/carriers.d.ts.map +1 -1
  23. package/resources/carriers.js +0 -3
  24. package/resources/carriers.js.map +1 -1
  25. package/resources/carriers.mjs +0 -3
  26. package/resources/carriers.mjs.map +1 -1
  27. package/resources/connect/countries.d.mts +8 -3
  28. package/resources/connect/countries.d.mts.map +1 -1
  29. package/resources/connect/countries.d.ts +8 -3
  30. package/resources/connect/countries.d.ts.map +1 -1
  31. package/resources/connect/countries.js +6 -1
  32. package/resources/connect/countries.js.map +1 -1
  33. package/resources/connect/countries.mjs +6 -1
  34. package/resources/connect/countries.mjs.map +1 -1
  35. package/resources/connect/proxies.d.mts +11 -9
  36. package/resources/connect/proxies.d.mts.map +1 -1
  37. package/resources/connect/proxies.d.ts +11 -9
  38. package/resources/connect/proxies.d.ts.map +1 -1
  39. package/resources/connect/proxies.js +7 -5
  40. package/resources/connect/proxies.js.map +1 -1
  41. package/resources/connect/proxies.mjs +7 -5
  42. package/resources/connect/proxies.mjs.map +1 -1
  43. package/resources/connect/users.d.mts +7 -2
  44. package/resources/connect/users.d.mts.map +1 -1
  45. package/resources/connect/users.d.ts +7 -2
  46. package/resources/connect/users.d.ts.map +1 -1
  47. package/resources/connect/users.js +7 -2
  48. package/resources/connect/users.js.map +1 -1
  49. package/resources/connect/users.mjs +7 -2
  50. package/resources/connect/users.mjs.map +1 -1
  51. package/resources/credentials/credentials.d.mts +3 -4
  52. package/resources/credentials/credentials.d.mts.map +1 -1
  53. package/resources/credentials/credentials.d.ts +3 -4
  54. package/resources/credentials/credentials.d.ts.map +1 -1
  55. package/resources/credentials/credentials.js +3 -4
  56. package/resources/credentials/credentials.js.map +1 -1
  57. package/resources/credentials/credentials.mjs +3 -4
  58. package/resources/credentials/credentials.mjs.map +1 -1
  59. package/resources/credentials/packages/credentials/credentials.d.mts +14 -7
  60. package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
  61. package/resources/credentials/packages/credentials/credentials.d.ts +14 -7
  62. package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
  63. package/resources/credentials/packages/credentials/credentials.js +7 -6
  64. package/resources/credentials/packages/credentials/credentials.js.map +1 -1
  65. package/resources/credentials/packages/credentials/credentials.mjs +7 -6
  66. package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
  67. package/resources/credentials/packages/credentials/fields.d.mts +8 -6
  68. package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
  69. package/resources/credentials/packages/credentials/fields.d.ts +8 -6
  70. package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
  71. package/resources/credentials/packages/credentials/fields.js +8 -6
  72. package/resources/credentials/packages/credentials/fields.js.map +1 -1
  73. package/resources/credentials/packages/credentials/fields.mjs +8 -6
  74. package/resources/credentials/packages/credentials/fields.mjs.map +1 -1
  75. package/resources/credentials/packages/packages.d.mts +5 -5
  76. package/resources/credentials/packages/packages.d.mts.map +1 -1
  77. package/resources/credentials/packages/packages.d.ts +5 -5
  78. package/resources/credentials/packages/packages.d.ts.map +1 -1
  79. package/resources/credentials/packages/packages.js +5 -5
  80. package/resources/credentials/packages/packages.js.map +1 -1
  81. package/resources/credentials/packages/packages.mjs +5 -5
  82. package/resources/credentials/packages/packages.mjs.map +1 -1
  83. package/resources/devices/actions.d.mts +10 -5
  84. package/resources/devices/actions.d.mts.map +1 -1
  85. package/resources/devices/actions.d.ts +10 -5
  86. package/resources/devices/actions.d.ts.map +1 -1
  87. package/resources/devices/actions.js +10 -5
  88. package/resources/devices/actions.js.map +1 -1
  89. package/resources/devices/actions.mjs +10 -5
  90. package/resources/devices/actions.mjs.map +1 -1
  91. package/resources/devices/apps.d.mts +38 -5
  92. package/resources/devices/apps.d.mts.map +1 -1
  93. package/resources/devices/apps.d.ts +38 -5
  94. package/resources/devices/apps.d.ts.map +1 -1
  95. package/resources/devices/apps.js +21 -5
  96. package/resources/devices/apps.js.map +1 -1
  97. package/resources/devices/apps.mjs +21 -5
  98. package/resources/devices/apps.mjs.map +1 -1
  99. package/resources/devices/devices.d.mts +76 -14
  100. package/resources/devices/devices.d.mts.map +1 -1
  101. package/resources/devices/devices.d.ts +76 -14
  102. package/resources/devices/devices.d.ts.map +1 -1
  103. package/resources/devices/devices.js +28 -12
  104. package/resources/devices/devices.js.map +1 -1
  105. package/resources/devices/devices.mjs +28 -12
  106. package/resources/devices/devices.mjs.map +1 -1
  107. package/resources/devices/esim.d.mts +6 -4
  108. package/resources/devices/esim.d.mts.map +1 -1
  109. package/resources/devices/esim.d.ts +6 -4
  110. package/resources/devices/esim.d.ts.map +1 -1
  111. package/resources/devices/esim.js +6 -4
  112. package/resources/devices/esim.js.map +1 -1
  113. package/resources/devices/esim.mjs +6 -4
  114. package/resources/devices/esim.mjs.map +1 -1
  115. package/resources/devices/files.d.mts +7 -4
  116. package/resources/devices/files.d.mts.map +1 -1
  117. package/resources/devices/files.d.ts +7 -4
  118. package/resources/devices/files.d.ts.map +1 -1
  119. package/resources/devices/files.js +7 -4
  120. package/resources/devices/files.js.map +1 -1
  121. package/resources/devices/files.mjs +7 -4
  122. package/resources/devices/files.mjs.map +1 -1
  123. package/resources/devices/keyboard.d.mts +5 -3
  124. package/resources/devices/keyboard.d.mts.map +1 -1
  125. package/resources/devices/keyboard.d.ts +5 -3
  126. package/resources/devices/keyboard.d.ts.map +1 -1
  127. package/resources/devices/keyboard.js +5 -3
  128. package/resources/devices/keyboard.js.map +1 -1
  129. package/resources/devices/keyboard.mjs +5 -3
  130. package/resources/devices/keyboard.mjs.map +1 -1
  131. package/resources/devices/language.d.mts +4 -2
  132. package/resources/devices/language.d.mts.map +1 -1
  133. package/resources/devices/language.d.ts +4 -2
  134. package/resources/devices/language.d.ts.map +1 -1
  135. package/resources/devices/language.js +4 -2
  136. package/resources/devices/language.js.map +1 -1
  137. package/resources/devices/language.mjs +4 -2
  138. package/resources/devices/language.mjs.map +1 -1
  139. package/resources/devices/location.d.mts +4 -2
  140. package/resources/devices/location.d.mts.map +1 -1
  141. package/resources/devices/location.d.ts +4 -2
  142. package/resources/devices/location.d.ts.map +1 -1
  143. package/resources/devices/location.js +4 -2
  144. package/resources/devices/location.js.map +1 -1
  145. package/resources/devices/location.mjs +4 -2
  146. package/resources/devices/location.mjs.map +1 -1
  147. package/resources/devices/packages.d.mts +2 -1
  148. package/resources/devices/packages.d.mts.map +1 -1
  149. package/resources/devices/packages.d.ts +2 -1
  150. package/resources/devices/packages.d.ts.map +1 -1
  151. package/resources/devices/packages.js +2 -1
  152. package/resources/devices/packages.js.map +1 -1
  153. package/resources/devices/packages.mjs +2 -1
  154. package/resources/devices/packages.mjs.map +1 -1
  155. package/resources/devices/proxy.d.mts +29 -3
  156. package/resources/devices/proxy.d.mts.map +1 -1
  157. package/resources/devices/proxy.d.ts +29 -3
  158. package/resources/devices/proxy.d.ts.map +1 -1
  159. package/resources/devices/proxy.js +7 -3
  160. package/resources/devices/proxy.js.map +1 -1
  161. package/resources/devices/proxy.mjs +7 -3
  162. package/resources/devices/proxy.mjs.map +1 -1
  163. package/resources/devices/state.d.mts +7 -3
  164. package/resources/devices/state.d.mts.map +1 -1
  165. package/resources/devices/state.d.ts +7 -3
  166. package/resources/devices/state.d.ts.map +1 -1
  167. package/resources/devices/state.js +6 -3
  168. package/resources/devices/state.js.map +1 -1
  169. package/resources/devices/state.mjs +6 -3
  170. package/resources/devices/state.mjs.map +1 -1
  171. package/resources/devices/tasks.d.mts +4 -12
  172. package/resources/devices/tasks.d.mts.map +1 -1
  173. package/resources/devices/tasks.d.ts +4 -12
  174. package/resources/devices/tasks.d.ts.map +1 -1
  175. package/resources/devices/tasks.js +2 -4
  176. package/resources/devices/tasks.js.map +1 -1
  177. package/resources/devices/tasks.mjs +2 -4
  178. package/resources/devices/tasks.mjs.map +1 -1
  179. package/resources/devices/timezone.d.mts +4 -2
  180. package/resources/devices/timezone.d.mts.map +1 -1
  181. package/resources/devices/timezone.d.ts +4 -2
  182. package/resources/devices/timezone.d.ts.map +1 -1
  183. package/resources/devices/timezone.js +4 -2
  184. package/resources/devices/timezone.js.map +1 -1
  185. package/resources/devices/timezone.mjs +4 -2
  186. package/resources/devices/timezone.mjs.map +1 -1
  187. package/resources/hooks.d.mts +0 -239
  188. package/resources/hooks.d.mts.map +1 -1
  189. package/resources/hooks.d.ts +0 -239
  190. package/resources/hooks.d.ts.map +1 -1
  191. package/resources/hooks.js +0 -57
  192. package/resources/hooks.js.map +1 -1
  193. package/resources/hooks.mjs +0 -57
  194. package/resources/hooks.mjs.map +1 -1
  195. package/resources/index.d.mts +2 -2
  196. package/resources/index.d.mts.map +1 -1
  197. package/resources/index.d.ts +2 -2
  198. package/resources/index.d.ts.map +1 -1
  199. package/resources/index.js.map +1 -1
  200. package/resources/index.mjs +1 -1
  201. package/resources/index.mjs.map +1 -1
  202. package/resources/profiles.d.mts +69 -6
  203. package/resources/profiles.d.mts.map +1 -1
  204. package/resources/profiles.d.ts +69 -6
  205. package/resources/profiles.d.ts.map +1 -1
  206. package/resources/profiles.js.map +1 -1
  207. package/resources/profiles.mjs.map +1 -1
  208. package/resources/proxies.d.mts +14 -8
  209. package/resources/proxies.d.mts.map +1 -1
  210. package/resources/proxies.d.ts +14 -8
  211. package/resources/proxies.d.ts.map +1 -1
  212. package/resources/proxies.js +14 -8
  213. package/resources/proxies.js.map +1 -1
  214. package/resources/proxies.mjs +14 -8
  215. package/resources/proxies.mjs.map +1 -1
  216. package/resources/shared.d.mts +14 -0
  217. package/resources/shared.d.mts.map +1 -1
  218. package/resources/shared.d.ts +14 -0
  219. package/resources/shared.d.ts.map +1 -1
  220. package/resources/tasks/tasks.d.mts +159 -64
  221. package/resources/tasks/tasks.d.mts.map +1 -1
  222. package/resources/tasks/tasks.d.ts +159 -64
  223. package/resources/tasks/tasks.d.ts.map +1 -1
  224. package/resources/tasks/tasks.js +10 -2
  225. package/resources/tasks/tasks.js.map +1 -1
  226. package/resources/tasks/tasks.mjs +10 -2
  227. package/resources/tasks/tasks.mjs.map +1 -1
  228. package/resources/webhooks/deliveries.d.mts +38 -4
  229. package/resources/webhooks/deliveries.d.mts.map +1 -1
  230. package/resources/webhooks/deliveries.d.ts +38 -4
  231. package/resources/webhooks/deliveries.d.ts.map +1 -1
  232. package/resources/webhooks/deliveries.js +15 -4
  233. package/resources/webhooks/deliveries.js.map +1 -1
  234. package/resources/webhooks/deliveries.mjs +15 -4
  235. package/resources/webhooks/deliveries.mjs.map +1 -1
  236. package/resources/webhooks/webhooks.d.mts +67 -9
  237. package/resources/webhooks/webhooks.d.mts.map +1 -1
  238. package/resources/webhooks/webhooks.d.ts +67 -9
  239. package/resources/webhooks/webhooks.d.ts.map +1 -1
  240. package/resources/webhooks/webhooks.js +26 -8
  241. package/resources/webhooks/webhooks.js.map +1 -1
  242. package/resources/webhooks/webhooks.mjs +26 -8
  243. package/resources/webhooks/webhooks.mjs.map +1 -1
  244. package/resources/workflows/action-catalog.d.mts +5 -2
  245. package/resources/workflows/action-catalog.d.mts.map +1 -1
  246. package/resources/workflows/action-catalog.d.ts +5 -2
  247. package/resources/workflows/action-catalog.d.ts.map +1 -1
  248. package/resources/workflows/action-catalog.js +5 -2
  249. package/resources/workflows/action-catalog.js.map +1 -1
  250. package/resources/workflows/action-catalog.mjs +5 -2
  251. package/resources/workflows/action-catalog.mjs.map +1 -1
  252. package/resources/workflows/actions/actions.d.mts +15 -5
  253. package/resources/workflows/actions/actions.d.mts.map +1 -1
  254. package/resources/workflows/actions/actions.d.ts +15 -5
  255. package/resources/workflows/actions/actions.d.ts.map +1 -1
  256. package/resources/workflows/actions/actions.js +10 -5
  257. package/resources/workflows/actions/actions.js.map +1 -1
  258. package/resources/workflows/actions/actions.mjs +10 -5
  259. package/resources/workflows/actions/actions.mjs.map +1 -1
  260. package/resources/workflows/actions/services.d.mts +5 -2
  261. package/resources/workflows/actions/services.d.mts.map +1 -1
  262. package/resources/workflows/actions/services.d.ts +5 -2
  263. package/resources/workflows/actions/services.d.ts.map +1 -1
  264. package/resources/workflows/actions/services.js +5 -2
  265. package/resources/workflows/actions/services.js.map +1 -1
  266. package/resources/workflows/actions/services.mjs +5 -2
  267. package/resources/workflows/actions/services.mjs.map +1 -1
  268. package/resources/workflows/events/catalog.d.mts +0 -51
  269. package/resources/workflows/events/catalog.d.mts.map +1 -1
  270. package/resources/workflows/events/catalog.d.ts +0 -51
  271. package/resources/workflows/events/catalog.d.ts.map +1 -1
  272. package/resources/workflows/events/catalog.js +0 -12
  273. package/resources/workflows/events/catalog.js.map +1 -1
  274. package/resources/workflows/events/catalog.mjs +0 -12
  275. package/resources/workflows/events/catalog.mjs.map +1 -1
  276. package/resources/workflows/events/events.d.mts +10 -20
  277. package/resources/workflows/events/events.d.mts.map +1 -1
  278. package/resources/workflows/events/events.d.ts +10 -20
  279. package/resources/workflows/events/events.d.ts.map +1 -1
  280. package/resources/workflows/events/events.js.map +1 -1
  281. package/resources/workflows/events/events.mjs +1 -1
  282. package/resources/workflows/events/events.mjs.map +1 -1
  283. package/resources/workflows/events/index.d.mts +1 -1
  284. package/resources/workflows/events/index.d.mts.map +1 -1
  285. package/resources/workflows/events/index.d.ts +1 -1
  286. package/resources/workflows/events/index.d.ts.map +1 -1
  287. package/resources/workflows/events/index.js.map +1 -1
  288. package/resources/workflows/events/index.mjs +1 -1
  289. package/resources/workflows/events/index.mjs.map +1 -1
  290. package/resources/workflows/executions.d.mts +43 -5
  291. package/resources/workflows/executions.d.mts.map +1 -1
  292. package/resources/workflows/executions.d.ts +43 -5
  293. package/resources/workflows/executions.d.ts.map +1 -1
  294. package/resources/workflows/executions.js +8 -3
  295. package/resources/workflows/executions.js.map +1 -1
  296. package/resources/workflows/executions.mjs +8 -3
  297. package/resources/workflows/executions.mjs.map +1 -1
  298. package/resources/workflows/flows/actions.d.mts +12 -4
  299. package/resources/workflows/flows/actions.d.mts.map +1 -1
  300. package/resources/workflows/flows/actions.d.ts +12 -4
  301. package/resources/workflows/flows/actions.d.ts.map +1 -1
  302. package/resources/workflows/flows/actions.js +12 -4
  303. package/resources/workflows/flows/actions.js.map +1 -1
  304. package/resources/workflows/flows/actions.mjs +12 -4
  305. package/resources/workflows/flows/actions.mjs.map +1 -1
  306. package/resources/workflows/flows/flows.d.mts +33 -7
  307. package/resources/workflows/flows/flows.d.mts.map +1 -1
  308. package/resources/workflows/flows/flows.d.ts +33 -7
  309. package/resources/workflows/flows/flows.d.ts.map +1 -1
  310. package/resources/workflows/flows/flows.js +18 -6
  311. package/resources/workflows/flows/flows.js.map +1 -1
  312. package/resources/workflows/flows/flows.mjs +18 -6
  313. package/resources/workflows/flows/flows.mjs.map +1 -1
  314. package/resources/workflows/triggers.d.mts +75 -63
  315. package/resources/workflows/triggers.d.mts.map +1 -1
  316. package/resources/workflows/triggers.d.ts +75 -63
  317. package/resources/workflows/triggers.d.ts.map +1 -1
  318. package/resources/workflows/triggers.js +12 -5
  319. package/resources/workflows/triggers.js.map +1 -1
  320. package/resources/workflows/triggers.mjs +12 -5
  321. package/resources/workflows/triggers.mjs.map +1 -1
  322. package/resources/workflows/workflows.d.mts +15 -0
  323. package/resources/workflows/workflows.d.mts.map +1 -1
  324. package/resources/workflows/workflows.d.ts +15 -0
  325. package/resources/workflows/workflows.d.ts.map +1 -1
  326. package/resources/workflows/workflows.js.map +1 -1
  327. package/resources/workflows/workflows.mjs.map +1 -1
  328. package/src/client.ts +8 -46
  329. package/src/resources/apps.ts +16 -8
  330. package/src/resources/carriers.ts +0 -3
  331. package/src/resources/connect/countries.ts +8 -3
  332. package/src/resources/connect/proxies.ts +11 -9
  333. package/src/resources/connect/users.ts +7 -2
  334. package/src/resources/credentials/credentials.ts +3 -4
  335. package/src/resources/credentials/packages/credentials/credentials.ts +16 -7
  336. package/src/resources/credentials/packages/credentials/fields.ts +8 -6
  337. package/src/resources/credentials/packages/packages.ts +5 -5
  338. package/src/resources/devices/actions.ts +10 -5
  339. package/src/resources/devices/apps.ts +41 -5
  340. package/src/resources/devices/devices.ts +97 -15
  341. package/src/resources/devices/esim.ts +6 -4
  342. package/src/resources/devices/files.ts +7 -4
  343. package/src/resources/devices/keyboard.ts +5 -3
  344. package/src/resources/devices/language.ts +4 -2
  345. package/src/resources/devices/location.ts +4 -2
  346. package/src/resources/devices/packages.ts +2 -1
  347. package/src/resources/devices/proxy.ts +32 -3
  348. package/src/resources/devices/state.ts +8 -3
  349. package/src/resources/devices/tasks.ts +4 -15
  350. package/src/resources/devices/timezone.ts +4 -2
  351. package/src/resources/hooks.ts +1 -333
  352. package/src/resources/index.ts +4 -17
  353. package/src/resources/profiles.ts +105 -6
  354. package/src/resources/proxies.ts +14 -8
  355. package/src/resources/shared.ts +17 -0
  356. package/src/resources/tasks/tasks.ts +198 -78
  357. package/src/resources/webhooks/deliveries.ts +43 -4
  358. package/src/resources/webhooks/webhooks.ts +79 -9
  359. package/src/resources/workflows/action-catalog.ts +5 -2
  360. package/src/resources/workflows/actions/actions.ts +17 -5
  361. package/src/resources/workflows/actions/services.ts +5 -2
  362. package/src/resources/workflows/events/catalog.ts +1 -84
  363. package/src/resources/workflows/events/events.ts +14 -36
  364. package/src/resources/workflows/events/index.ts +1 -7
  365. package/src/resources/workflows/executions.ts +50 -5
  366. package/src/resources/workflows/flows/actions.ts +12 -4
  367. package/src/resources/workflows/flows/flows.ts +41 -7
  368. package/src/resources/workflows/triggers.ts +92 -75
  369. package/src/resources/workflows/workflows.ts +21 -0
  370. package/src/version.ts +1 -1
  371. package/version.d.mts +1 -1
  372. package/version.d.ts +1 -1
  373. package/version.js +1 -1
  374. package/version.mjs +1 -1
@@ -6,9 +6,6 @@ import { APIPromise } from '../core/api-promise';
6
6
  import { RequestOptions } from '../internal/request-options';
7
7
  import { path } from '../internal/utils/path';
8
8
 
9
- /**
10
- * App Management
11
- */
12
9
  export class Apps extends APIResource {
13
10
  /**
14
11
  * Retrieves an app by its ID
@@ -82,7 +79,6 @@ export class Apps extends APIResource {
82
79
  * fileName: 'J!Q0Ok0bzJb7.apk/i',
83
80
  * },
84
81
  * ],
85
- * sizeBytes: 0,
86
82
  * versionCode: 0,
87
83
  * versionName: 'x',
88
84
  * });
@@ -454,11 +450,15 @@ export namespace AppListResponse {
454
450
 
455
451
  createdAt: string | null;
456
452
 
453
+ createdBy: string | null;
454
+
455
+ ownerId: string | null;
456
+
457
457
  queuedAt: string | null;
458
458
 
459
459
  sizeBytes: number | null;
460
460
 
461
- source: 'user' | 'system' | 'portal';
461
+ source: 'user' | 'system' | 'portal' | 'store';
462
462
 
463
463
  status: 'queued' | 'available' | 'failed';
464
464
 
@@ -466,6 +466,9 @@ export namespace AppListResponse {
466
466
 
467
467
  updatedAt: string | null;
468
468
 
469
+ /**
470
+ * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
471
+ */
469
472
  userId: string | null;
470
473
 
471
474
  versionCode: number;
@@ -778,11 +781,15 @@ export namespace AppListVersionsResponse {
778
781
 
779
782
  createdAt: string | null;
780
783
 
784
+ createdBy: string | null;
785
+
786
+ ownerId: string | null;
787
+
781
788
  queuedAt: string | null;
782
789
 
783
790
  sizeBytes: number | null;
784
791
 
785
- source: 'user' | 'system' | 'portal';
792
+ source: 'user' | 'system' | 'portal' | 'store';
786
793
 
787
794
  status: 'queued' | 'available' | 'failed';
788
795
 
@@ -790,6 +797,9 @@ export namespace AppListVersionsResponse {
790
797
 
791
798
  updatedAt: string | null;
792
799
 
800
+ /**
801
+ * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
802
+ */
793
803
  userId: string | null;
794
804
 
795
805
  versionCode: number;
@@ -827,8 +837,6 @@ export interface AppCreateSignedUploadURLParams {
827
837
 
828
838
  files: Array<AppCreateSignedUploadURLParams.File>;
829
839
 
830
- sizeBytes: number;
831
-
832
840
  versionCode: number;
833
841
 
834
842
  versionName: string;
@@ -6,9 +6,6 @@ import { APIPromise } from '../core/api-promise';
6
6
  import { RequestOptions } from '../internal/request-options';
7
7
  import { path } from '../internal/utils/path';
8
8
 
9
- /**
10
- * Mobile Carriers
11
- */
12
9
  export class Carriers extends APIResource {
13
10
  /**
14
11
  * Create a new carrier
@@ -4,9 +4,14 @@ import { APIResource } from '../../core/resource';
4
4
  import { APIPromise } from '../../core/api-promise';
5
5
  import { RequestOptions } from '../../internal/request-options';
6
6
 
7
+ /**
8
+ * Mobilerun Connect country coverage information
9
+ */
7
10
  export class Countries extends APIResource {
8
11
  /**
9
- * Lookup of countries that can be selected when creating a proxy.
12
+ * Lookup of countries that can be selected when creating a proxy. Each country
13
+ * lists the proxy types available there; without a ?type filter, every covered
14
+ * country is returned.
10
15
  */
11
16
  list(
12
17
  query: CountryListParams | null | undefined = {},
@@ -40,7 +45,7 @@ export namespace CountryListResponse {
40
45
  /**
41
46
  * Proxy types available to provision in this country.
42
47
  */
43
- proxyTypes: Array<'residential'>;
48
+ proxyTypes: Array<'dedicated_residential' | 'residential' | 'mobile'>;
44
49
  }
45
50
 
46
51
  /**
@@ -93,7 +98,7 @@ export interface CountryListParams {
93
98
  /**
94
99
  * Filter to countries offering this proxy type.
95
100
  */
96
- type?: 'residential';
101
+ type?: 'dedicated_residential' | 'residential' | 'mobile';
97
102
  }
98
103
 
99
104
  export declare namespace Countries {
@@ -8,15 +8,16 @@ import { path } from '../../internal/utils/path';
8
8
 
9
9
  export class Proxies extends APIResource {
10
10
  /**
11
- * Get a proxy by ID, including its password
11
+ * Returns the proxy identified by the path ID. The response includes the proxy's
12
+ * password.
12
13
  */
13
14
  retrieve(id: string, options?: RequestOptions): APIPromise<ProxyRetrieveResponse> {
14
15
  return this._client.get(path`/connect/proxies/${id}`, options);
15
16
  }
16
17
 
17
18
  /**
18
- * Returns proxies owned by the user identified by the X-User-ID header.
19
- * Credentials are omitted from the list.
19
+ * Returns proxies owned by the calling tenant (the X-Owner-Id header, falling back
20
+ * to X-User-ID). Credentials are omitted from the list.
20
21
  */
21
22
  list(
22
23
  query: ProxyListParams | null | undefined = {},
@@ -26,14 +27,15 @@ export class Proxies extends APIResource {
26
27
  }
27
28
 
28
29
  /**
29
- * Provisions a proxy for the caller in the selected country.
30
+ * Provisions a proxy of the requested type for the caller in the selected country.
30
31
  */
31
32
  buy(body: ProxyBuyParams, options?: RequestOptions): APIPromise<ProxyBuyResponse> {
32
33
  return this._client.post('/connect/proxies', { body, ...options });
33
34
  }
34
35
 
35
36
  /**
36
- * Delete a proxy
37
+ * Deletes the proxy identified by the path ID and releases its provisioning.
38
+ * Returns 404 if no such proxy exists for the caller.
37
39
  */
38
40
  cancel(id: string, options?: RequestOptions): APIPromise<void> {
39
41
  return this._client.delete(path`/connect/proxies/${id}`, {
@@ -95,7 +97,7 @@ export interface ProxyRetrieveResponse {
95
97
  */
96
98
  status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
97
99
 
98
- type: 'residential';
100
+ type: 'dedicated_residential' | 'residential' | 'mobile';
99
101
 
100
102
  username: string;
101
103
 
@@ -145,7 +147,7 @@ export namespace ProxyListResponse {
145
147
  */
146
148
  status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
147
149
 
148
- type: 'residential';
150
+ type: 'dedicated_residential' | 'residential' | 'mobile';
149
151
 
150
152
  username: string;
151
153
  }
@@ -214,7 +216,7 @@ export interface ProxyBuyResponse {
214
216
  */
215
217
  status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
216
218
 
217
- type: 'residential';
219
+ type: 'dedicated_residential' | 'residential' | 'mobile';
218
220
 
219
221
  username: string;
220
222
 
@@ -450,7 +452,7 @@ export interface ProxyBuyParams {
450
452
  */
451
453
  country: string;
452
454
 
453
- type?: 'residential';
455
+ type: 'dedicated_residential' | 'residential' | 'mobile';
454
456
  }
455
457
 
456
458
  export interface ProxyListConnectionsParams {
@@ -6,6 +6,9 @@ import { buildHeaders } from '../../internal/headers';
6
6
  import { RequestOptions } from '../../internal/request-options';
7
7
  import { path } from '../../internal/utils/path';
8
8
 
9
+ /**
10
+ * Manage your Mobilerun Connect Socks Users
11
+ */
9
12
  export class Users extends APIResource {
10
13
  /**
11
14
  * Creates a SOCKS5 credential, optionally bound to a proxy for dedicated routing.
@@ -16,7 +19,8 @@ export class Users extends APIResource {
16
19
  }
17
20
 
18
21
  /**
19
- * Get a SOCKS5 user by ID, including its password
22
+ * Returns the SOCKS5 user identified by the path ID. The response includes the
23
+ * user's password.
20
24
  */
21
25
  retrieve(id: string, options?: RequestOptions): APIPromise<UserRetrieveResponse> {
22
26
  return this._client.get(path`/connect/users/${id}`, options);
@@ -40,7 +44,8 @@ export class Users extends APIResource {
40
44
  }
41
45
 
42
46
  /**
43
- * Delete a SOCKS5 user
47
+ * Deletes the SOCKS5 user identified by the path ID, revoking its credentials and
48
+ * any proxy binding. Returns 404 if no such user exists for the caller.
44
49
  */
45
50
  delete(id: string, options?: RequestOptions): APIPromise<void> {
46
51
  return this._client.delete(path`/connect/users/${id}`, {
@@ -13,14 +13,13 @@ import * as PackagesCredentialsAPI from './packages/credentials/credentials';
13
13
  import { APIPromise } from '../../core/api-promise';
14
14
  import { RequestOptions } from '../../internal/request-options';
15
15
 
16
- /**
17
- * Vault & Secrets
18
- */
19
16
  export class Credentials extends APIResource {
20
17
  packages: PackagesAPI.Packages = new PackagesAPI.Packages(this._client);
21
18
 
22
19
  /**
23
- * List all credentials for the authenticated user
20
+ * Returns a paginated list of all credentials belonging to the authenticated user
21
+ * across every package. Accepts standard pagination query parameters and responds
22
+ * with the credential items plus pagination metadata.
24
23
  */
25
24
  list(
26
25
  query: CredentialListParams | null | undefined = {},
@@ -15,14 +15,13 @@ import { APIPromise } from '../../../../core/api-promise';
15
15
  import { RequestOptions } from '../../../../internal/request-options';
16
16
  import { path } from '../../../../internal/utils/path';
17
17
 
18
- /**
19
- * Vault & Secrets
20
- */
21
18
  export class Credentials extends APIResource {
22
19
  fields: FieldsAPI.Fields = new FieldsAPI.Fields(this._client);
23
20
 
24
21
  /**
25
- * Create a credential with fields for a package
22
+ * Creates a credential under the given package with a `credentialName` and at
23
+ * least one field. Each field has a `fieldType` (email, username, password,
24
+ * api_token, phone_number, two_factor_secret, or backup_codes) and a value.
26
25
  */
27
26
  create(
28
27
  packageName: string,
@@ -33,7 +32,8 @@ export class Credentials extends APIResource {
33
32
  }
34
33
 
35
34
  /**
36
- * Get a specific credential with its fields
35
+ * Fetches a single credential by `packageName` and `credentialName`, including all
36
+ * of its stored fields. Returns not found if no matching credential exists.
37
37
  */
38
38
  retrieve(
39
39
  credentialName: string,
@@ -48,7 +48,8 @@ export class Credentials extends APIResource {
48
48
  }
49
49
 
50
50
  /**
51
- * Delete a credential and all its fields
51
+ * Permanently deletes the credential identified by `packageName` and
52
+ * `credentialName`, removing all of its fields. Returns the deleted credential.
52
53
  */
53
54
  delete(
54
55
  credentialName: string,
@@ -64,15 +65,23 @@ export class Credentials extends APIResource {
64
65
  }
65
66
 
66
67
  export interface Credential {
68
+ createdBy: string | null;
69
+
67
70
  credentialName: string;
68
71
 
69
72
  fields: Array<Credential.Field>;
70
73
 
74
+ ownerId: string;
75
+
71
76
  packageName: string;
72
77
 
73
78
  secretPath: string;
74
79
 
75
- userId: string;
80
+ /**
81
+ * @deprecated Deprecated: use createdBy (same value — the creating actor). Null
82
+ * for credentials created before rollout.
83
+ */
84
+ userId: string | null;
76
85
  }
77
86
 
78
87
  export namespace Credential {
@@ -6,12 +6,11 @@ import { APIPromise } from '../../../../core/api-promise';
6
6
  import { RequestOptions } from '../../../../internal/request-options';
7
7
  import { path } from '../../../../internal/utils/path';
8
8
 
9
- /**
10
- * Vault & Secrets
11
- */
12
9
  export class Fields extends APIResource {
13
10
  /**
14
- * Add a new field to an existing credential
11
+ * Adds a single field to an existing credential. The body specifies a `fieldType`
12
+ * (one of the supported field types) and its value. Returns a conflict if a field
13
+ * of that type already exists on the credential.
15
14
  */
16
15
  create(
17
16
  credentialName: string,
@@ -26,7 +25,9 @@ export class Fields extends APIResource {
26
25
  }
27
26
 
28
27
  /**
29
- * Update the value of a credential field
28
+ * Updates the value of an existing field on a credential, identified by
29
+ * `packageName`, `credentialName`, and `fieldType` in the path. The body carries
30
+ * the new value and returns the updated credential.
30
31
  */
31
32
  update(
32
33
  fieldType:
@@ -48,7 +49,8 @@ export class Fields extends APIResource {
48
49
  }
49
50
 
50
51
  /**
51
- * Delete a field from a credential
52
+ * Removes a single field of the given `fieldType` from the specified credential
53
+ * while leaving the credential itself intact. Returns the updated credential.
52
54
  */
53
55
  delete(
54
56
  fieldType:
@@ -16,21 +16,21 @@ import { APIPromise } from '../../../core/api-promise';
16
16
  import { RequestOptions } from '../../../internal/request-options';
17
17
  import { path } from '../../../internal/utils/path';
18
18
 
19
- /**
20
- * Vault & Secrets
21
- */
22
19
  export class Packages extends APIResource {
23
20
  credentials: CredentialsAPI.Credentials = new CredentialsAPI.Credentials(this._client);
24
21
 
25
22
  /**
26
- * Initialize a new package/app
23
+ * Creates a new package (identified by `packageName`) under which credentials can
24
+ * be grouped. Returns a conflict if a package with the same name already exists
25
+ * for the user.
27
26
  */
28
27
  create(body: PackageCreateParams, options?: RequestOptions): APIPromise<PackageCreateResponse> {
29
28
  return this._client.post('/credentials/packages', { body, ...options });
30
29
  }
31
30
 
32
31
  /**
33
- * List credentials for a specific package
32
+ * Returns all credentials stored under the given `packageName`. Each credential
33
+ * includes its name, secret path, and the list of fields it holds.
34
34
  */
35
35
  list(packageName: string, options?: RequestOptions): APIPromise<PackageListResponse> {
36
36
  return this._client.get(path`/credentials/packages/${packageName}`, options);
@@ -8,7 +8,8 @@ import { path } from '../../internal/utils/path';
8
8
 
9
9
  export class Actions extends APIResource {
10
10
  /**
11
- * Perform a global action
11
+ * Performs a global system action on the device, such as navigating back or going
12
+ * to the home screen, identified by an action code.
12
13
  */
13
14
  global(deviceID: string, params: ActionGlobalParams, options?: RequestOptions): APIPromise<void> {
14
15
  const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
@@ -28,7 +29,7 @@ export class Actions extends APIResource {
28
29
  }
29
30
 
30
31
  /**
31
- * Check if overlay is visible
32
+ * Returns whether the accessibility overlay is currently visible on the device.
32
33
  */
33
34
  overlayVisible(
34
35
  deviceID: string,
@@ -50,7 +51,8 @@ export class Actions extends APIResource {
50
51
  }
51
52
 
52
53
  /**
53
- * Set overlay visibility
54
+ * Shows or hides the accessibility overlay on the device based on the visibility
55
+ * flag in the request body.
54
56
  */
55
57
  setOverlayVisible(
56
58
  deviceID: string,
@@ -74,7 +76,9 @@ export class Actions extends APIResource {
74
76
  }
75
77
 
76
78
  /**
77
- * Swipe
79
+ * Swipes from a start coordinate to an end coordinate over the given duration in
80
+ * milliseconds. An optional stealth flag applies human-like jitter and curved
81
+ * paths on devices that support it.
78
82
  */
79
83
  swipe(deviceID: string, params: ActionSwipeParams, options?: RequestOptions): APIPromise<void> {
80
84
  const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
@@ -94,7 +98,8 @@ export class Actions extends APIResource {
94
98
  }
95
99
 
96
100
  /**
97
- * Tap by coordinates
101
+ * Taps the device screen at the given x/y coordinates. An optional stealth flag
102
+ * routes the tap through human-like input on devices that support it.
98
103
  */
99
104
  tap(deviceID: string, params: ActionTapParams, options?: RequestOptions): APIPromise<void> {
100
105
  const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
@@ -8,7 +8,9 @@ import { path } from '../../internal/utils/path';
8
8
 
9
9
  export class Apps extends APIResource {
10
10
  /**
11
- * List apps
11
+ * Returns detailed information about apps installed on the device, including
12
+ * package name and label. System and protected apps are excluded unless the
13
+ * corresponding query parameters are set.
12
14
  */
13
15
  list(
14
16
  deviceID: string,
@@ -31,7 +33,8 @@ export class Apps extends APIResource {
31
33
  }
32
34
 
33
35
  /**
34
- * Delete app
36
+ * Uninstalls the app identified by the path package name from the device.
37
+ * Protected packages cannot be deleted.
35
38
  */
36
39
  delete(packageName: string, params: AppDeleteParams, options?: RequestOptions): APIPromise<void> {
37
40
  const { deviceId, 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
@@ -51,7 +54,16 @@ export class Apps extends APIResource {
51
54
  }
52
55
 
53
56
  /**
54
- * Install app
57
+ * Requests an app install on the device. The request body must supply exactly one
58
+ * of an Android packageName or an iOS bundleId; protected packages are rejected.
59
+ * background (default false) selects the response contract: false installs inline
60
+ * and returns the outcome directly (200 on success, an error status on failure);
61
+ * true accepts the request and runs the download + install in the background,
62
+ * returning 202 immediately — poll list-app-installs for the backend's view of
63
+ * that attempt's status. Refuses with 409 once 2 other installs are already
64
+ * running on the device, in either mode; a repeat request for an app that already
65
+ * has an install running is also refused with 409 rather than superseding it —
66
+ * retry once that attempt reaches a terminal state.
55
67
  */
56
68
  install(deviceID: string, params: AppInstallParams, options?: RequestOptions): APIPromise<void> {
57
69
  const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
@@ -71,7 +83,9 @@ export class Apps extends APIResource {
71
83
  }
72
84
 
73
85
  /**
74
- * Start app
86
+ * Launches the app identified by the path package name, optionally starting a
87
+ * specific activity given in the request body. Protected packages cannot be
88
+ * started.
75
89
  */
76
90
  start(packageName: string, params: AppStartParams, options?: RequestOptions): APIPromise<void> {
77
91
  const { deviceId, 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
@@ -91,7 +105,9 @@ export class Apps extends APIResource {
91
105
  }
92
106
 
93
107
  /**
94
- * Stop app
108
+ * Force-stops the app identified by the path package name. When clearData is set
109
+ * in the request body, the app's data is also cleared. Protected packages cannot
110
+ * be stopped.
95
111
  */
96
112
  stop(packageName: string, params: AppStopParams, options?: RequestOptions): APIPromise<void> {
97
113
  const { deviceId, 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
@@ -165,6 +181,13 @@ export declare namespace AppInstallParams {
165
181
  */
166
182
  bundleId: string;
167
183
 
184
+ /**
185
+ * Body param: true: return 202 immediately and install in the background (poll
186
+ * list-app-installs). false/omitted: install inline and return the outcome
187
+ * directly (200 on success, an error status on failure).
188
+ */
189
+ background?: boolean;
190
+
168
191
  /**
169
192
  * Body param: Android package name (e.g. com.example.app)
170
193
  */
@@ -182,6 +205,13 @@ export declare namespace AppInstallParams {
182
205
  */
183
206
  packageName: string;
184
207
 
208
+ /**
209
+ * Body param: true: return 202 immediately and install in the background (poll
210
+ * list-app-installs). false/omitted: install inline and return the outcome
211
+ * directly (200 on success, an error status on failure).
212
+ */
213
+ background?: boolean;
214
+
185
215
  /**
186
216
  * Body param: iOS bundle identifier (e.g. com.example.app)
187
217
  */
@@ -217,6 +247,12 @@ export interface AppStopParams {
217
247
  */
218
248
  deviceId: string;
219
249
 
250
+ /**
251
+ * Body param: If true, clears all app data (pm clear) in addition to stopping the
252
+ * app.
253
+ */
254
+ clearData?: boolean;
255
+
220
256
  /**
221
257
  * Header param
222
258
  */