@mobilerun/sdk 2.1.0 → 3.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 (247) hide show
  1. package/CHANGELOG.md +253 -0
  2. package/README.md +44 -0
  3. package/client.d.mts +32 -3
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +32 -3
  6. package/client.d.ts.map +1 -1
  7. package/client.js +29 -7
  8. package/client.js.map +1 -1
  9. package/client.mjs +29 -7
  10. package/client.mjs.map +1 -1
  11. package/internal/tslib.js +6 -6
  12. package/internal/utils/query.d.mts +2 -0
  13. package/internal/utils/query.d.mts.map +1 -0
  14. package/internal/utils/query.d.ts +2 -0
  15. package/internal/utils/query.d.ts.map +1 -0
  16. package/internal/utils/query.js +10 -0
  17. package/internal/utils/query.js.map +1 -0
  18. package/internal/utils/query.mjs +6 -0
  19. package/internal/utils/query.mjs.map +1 -0
  20. package/internal/utils.d.mts +1 -0
  21. package/internal/utils.d.ts +1 -0
  22. package/internal/utils.js +1 -0
  23. package/internal/utils.js.map +1 -1
  24. package/internal/utils.mjs +1 -0
  25. package/package.json +7 -1
  26. package/resources/agents.d.mts +29 -0
  27. package/resources/agents.d.mts.map +1 -0
  28. package/resources/agents.d.ts +29 -0
  29. package/resources/agents.d.ts.map +1 -0
  30. package/resources/agents.js +18 -0
  31. package/resources/agents.js.map +1 -0
  32. package/resources/agents.mjs +14 -0
  33. package/resources/agents.mjs.map +1 -0
  34. package/resources/apps.d.mts +10 -12
  35. package/resources/apps.d.mts.map +1 -1
  36. package/resources/apps.d.ts +10 -12
  37. package/resources/apps.d.ts.map +1 -1
  38. package/resources/apps.js.map +1 -1
  39. package/resources/apps.mjs.map +1 -1
  40. package/resources/carriers.d.mts +233 -0
  41. package/resources/carriers.d.mts.map +1 -0
  42. package/resources/carriers.d.ts +233 -0
  43. package/resources/carriers.d.ts.map +1 -0
  44. package/resources/carriers.js +46 -0
  45. package/resources/carriers.js.map +1 -0
  46. package/resources/carriers.mjs +42 -0
  47. package/resources/carriers.mjs.map +1 -0
  48. package/resources/credentials/credentials.d.mts +4 -13
  49. package/resources/credentials/credentials.d.mts.map +1 -1
  50. package/resources/credentials/credentials.d.ts +4 -13
  51. package/resources/credentials/credentials.d.ts.map +1 -1
  52. package/resources/credentials/credentials.js.map +1 -1
  53. package/resources/credentials/credentials.mjs.map +1 -1
  54. package/resources/devices/actions.d.mts +37 -1
  55. package/resources/devices/actions.d.mts.map +1 -1
  56. package/resources/devices/actions.d.ts +37 -1
  57. package/resources/devices/actions.d.ts.map +1 -1
  58. package/resources/devices/actions.js +36 -0
  59. package/resources/devices/actions.js.map +1 -1
  60. package/resources/devices/actions.mjs +36 -0
  61. package/resources/devices/actions.mjs.map +1 -1
  62. package/resources/devices/apps.d.mts +4 -0
  63. package/resources/devices/apps.d.mts.map +1 -1
  64. package/resources/devices/apps.d.ts +4 -0
  65. package/resources/devices/apps.d.ts.map +1 -1
  66. package/resources/devices/devices.d.mts +40 -38
  67. package/resources/devices/devices.d.mts.map +1 -1
  68. package/resources/devices/devices.d.ts +40 -38
  69. package/resources/devices/devices.d.ts.map +1 -1
  70. package/resources/devices/devices.js +22 -2
  71. package/resources/devices/devices.js.map +1 -1
  72. package/resources/devices/devices.mjs +23 -3
  73. package/resources/devices/devices.mjs.map +1 -1
  74. package/resources/devices/files.d.mts +108 -0
  75. package/resources/devices/files.d.mts.map +1 -0
  76. package/resources/devices/files.d.ts +108 -0
  77. package/resources/devices/files.d.ts.map +1 -0
  78. package/resources/devices/files.js +87 -0
  79. package/resources/devices/files.js.map +1 -0
  80. package/resources/devices/files.mjs +83 -0
  81. package/resources/devices/files.mjs.map +1 -0
  82. package/resources/devices/index.d.mts +7 -2
  83. package/resources/devices/index.d.mts.map +1 -1
  84. package/resources/devices/index.d.ts +7 -2
  85. package/resources/devices/index.d.ts.map +1 -1
  86. package/resources/devices/index.js +11 -1
  87. package/resources/devices/index.js.map +1 -1
  88. package/resources/devices/index.mjs +6 -1
  89. package/resources/devices/index.mjs.map +1 -1
  90. package/resources/devices/keyboard.d.mts +10 -2
  91. package/resources/devices/keyboard.d.mts.map +1 -1
  92. package/resources/devices/keyboard.d.ts +10 -2
  93. package/resources/devices/keyboard.d.ts.map +1 -1
  94. package/resources/devices/location.d.mts +42 -0
  95. package/resources/devices/location.d.mts.map +1 -0
  96. package/resources/devices/location.d.ts +42 -0
  97. package/resources/devices/location.d.ts.map +1 -0
  98. package/resources/devices/location.js +47 -0
  99. package/resources/devices/location.js.map +1 -0
  100. package/resources/devices/location.mjs +43 -0
  101. package/resources/devices/location.mjs.map +1 -0
  102. package/resources/devices/packages.d.mts +4 -0
  103. package/resources/devices/packages.d.mts.map +1 -1
  104. package/resources/devices/packages.d.ts +4 -0
  105. package/resources/devices/packages.d.ts.map +1 -1
  106. package/resources/devices/profile.d.mts +23 -0
  107. package/resources/devices/profile.d.mts.map +1 -0
  108. package/resources/devices/profile.d.ts +23 -0
  109. package/resources/devices/profile.d.ts.map +1 -0
  110. package/resources/devices/profile.js +30 -0
  111. package/resources/devices/profile.js.map +1 -0
  112. package/resources/devices/profile.mjs +26 -0
  113. package/resources/devices/profile.mjs.map +1 -0
  114. package/resources/devices/proxy.d.mts +61 -0
  115. package/resources/devices/proxy.d.mts.map +1 -0
  116. package/resources/devices/proxy.d.ts +61 -0
  117. package/resources/devices/proxy.d.ts.map +1 -0
  118. package/resources/devices/proxy.js +48 -0
  119. package/resources/devices/proxy.js.map +1 -0
  120. package/resources/devices/proxy.mjs +44 -0
  121. package/resources/devices/proxy.mjs.map +1 -0
  122. package/resources/devices/state.d.mts +8 -19
  123. package/resources/devices/state.d.mts.map +1 -1
  124. package/resources/devices/state.d.ts +8 -19
  125. package/resources/devices/state.d.ts.map +1 -1
  126. package/resources/devices/state.js +0 -17
  127. package/resources/devices/state.js.map +1 -1
  128. package/resources/devices/state.mjs +0 -17
  129. package/resources/devices/state.mjs.map +1 -1
  130. package/resources/devices/tasks.d.mts +2 -9
  131. package/resources/devices/tasks.d.mts.map +1 -1
  132. package/resources/devices/tasks.d.ts +2 -9
  133. package/resources/devices/tasks.d.ts.map +1 -1
  134. package/resources/devices/tasks.js.map +1 -1
  135. package/resources/devices/tasks.mjs.map +1 -1
  136. package/resources/devices/time.d.mts +59 -0
  137. package/resources/devices/time.d.mts.map +1 -0
  138. package/resources/devices/time.d.ts +59 -0
  139. package/resources/devices/time.d.ts.map +1 -0
  140. package/resources/devices/time.js +83 -0
  141. package/resources/devices/time.js.map +1 -0
  142. package/resources/devices/time.mjs +79 -0
  143. package/resources/devices/time.mjs.map +1 -0
  144. package/resources/hooks.d.mts +5 -30
  145. package/resources/hooks.d.mts.map +1 -1
  146. package/resources/hooks.d.ts +5 -30
  147. package/resources/hooks.d.ts.map +1 -1
  148. package/resources/hooks.js +3 -0
  149. package/resources/hooks.js.map +1 -1
  150. package/resources/hooks.mjs +3 -0
  151. package/resources/hooks.mjs.map +1 -1
  152. package/resources/index.d.mts +6 -1
  153. package/resources/index.d.mts.map +1 -1
  154. package/resources/index.d.ts +6 -1
  155. package/resources/index.d.ts.map +1 -1
  156. package/resources/index.js +11 -1
  157. package/resources/index.js.map +1 -1
  158. package/resources/index.mjs +5 -0
  159. package/resources/index.mjs.map +1 -1
  160. package/resources/profiles.d.mts +84 -0
  161. package/resources/profiles.d.mts.map +1 -0
  162. package/resources/profiles.d.ts +84 -0
  163. package/resources/profiles.d.ts.map +1 -0
  164. package/resources/profiles.js +40 -0
  165. package/resources/profiles.js.map +1 -0
  166. package/resources/profiles.mjs +36 -0
  167. package/resources/profiles.mjs.map +1 -0
  168. package/resources/proxies.d.mts +72 -0
  169. package/resources/proxies.d.mts.map +1 -0
  170. package/resources/proxies.d.ts +72 -0
  171. package/resources/proxies.d.ts.map +1 -0
  172. package/resources/proxies.js +40 -0
  173. package/resources/proxies.js.map +1 -0
  174. package/resources/proxies.mjs +36 -0
  175. package/resources/proxies.mjs.map +1 -0
  176. package/resources/shared.d.mts +95 -0
  177. package/resources/shared.d.mts.map +1 -0
  178. package/resources/shared.d.ts +95 -0
  179. package/resources/shared.d.ts.map +1 -0
  180. package/resources/shared.js +4 -0
  181. package/resources/shared.js.map +1 -0
  182. package/resources/shared.mjs +3 -0
  183. package/resources/shared.mjs.map +1 -0
  184. package/resources/tasks/index.d.mts +1 -1
  185. package/resources/tasks/index.d.mts.map +1 -1
  186. package/resources/tasks/index.d.ts +1 -1
  187. package/resources/tasks/index.d.ts.map +1 -1
  188. package/resources/tasks/index.js.map +1 -1
  189. package/resources/tasks/index.mjs.map +1 -1
  190. package/resources/tasks/screenshots.d.mts +3 -0
  191. package/resources/tasks/screenshots.d.mts.map +1 -1
  192. package/resources/tasks/screenshots.d.ts +3 -0
  193. package/resources/tasks/screenshots.d.ts.map +1 -1
  194. package/resources/tasks/screenshots.js +3 -0
  195. package/resources/tasks/screenshots.js.map +1 -1
  196. package/resources/tasks/screenshots.mjs +3 -0
  197. package/resources/tasks/screenshots.mjs.map +1 -1
  198. package/resources/tasks/tasks.d.mts +105 -106
  199. package/resources/tasks/tasks.d.mts.map +1 -1
  200. package/resources/tasks/tasks.d.ts +105 -106
  201. package/resources/tasks/tasks.d.ts.map +1 -1
  202. package/resources/tasks/tasks.js +11 -5
  203. package/resources/tasks/tasks.js.map +1 -1
  204. package/resources/tasks/tasks.mjs +11 -5
  205. package/resources/tasks/tasks.mjs.map +1 -1
  206. package/resources/tasks/ui-states.d.mts +3 -0
  207. package/resources/tasks/ui-states.d.mts.map +1 -1
  208. package/resources/tasks/ui-states.d.ts +3 -0
  209. package/resources/tasks/ui-states.d.ts.map +1 -1
  210. package/resources/tasks/ui-states.js +3 -0
  211. package/resources/tasks/ui-states.js.map +1 -1
  212. package/resources/tasks/ui-states.mjs +3 -0
  213. package/resources/tasks/ui-states.mjs.map +1 -1
  214. package/src/client.ts +113 -10
  215. package/src/internal/utils/query.ts +7 -0
  216. package/src/internal/utils.ts +1 -0
  217. package/src/resources/agents.ts +43 -0
  218. package/src/resources/apps.ts +11 -19
  219. package/src/resources/carriers.ts +327 -0
  220. package/src/resources/credentials/credentials.ts +4 -19
  221. package/src/resources/devices/actions.ts +84 -0
  222. package/src/resources/devices/apps.ts +5 -0
  223. package/src/resources/devices/devices.ts +107 -61
  224. package/src/resources/devices/files.ts +221 -0
  225. package/src/resources/devices/index.ts +37 -3
  226. package/src/resources/devices/keyboard.ts +12 -2
  227. package/src/resources/devices/location.ts +91 -0
  228. package/src/resources/devices/packages.ts +5 -0
  229. package/src/resources/devices/profile.ts +45 -0
  230. package/src/resources/devices/proxy.ts +115 -0
  231. package/src/resources/devices/state.ts +10 -44
  232. package/src/resources/devices/tasks.ts +2 -15
  233. package/src/resources/devices/time.ts +147 -0
  234. package/src/resources/hooks.ts +5 -36
  235. package/src/resources/index.ts +37 -0
  236. package/src/resources/profiles.ts +133 -0
  237. package/src/resources/proxies.ts +130 -0
  238. package/src/resources/shared.ts +149 -0
  239. package/src/resources/tasks/index.ts +5 -0
  240. package/src/resources/tasks/screenshots.ts +3 -0
  241. package/src/resources/tasks/tasks.ts +134 -130
  242. package/src/resources/tasks/ui-states.ts +3 -0
  243. package/src/version.ts +1 -1
  244. package/version.d.mts +1 -1
  245. package/version.d.ts +1 -1
  246. package/version.js +1 -1
  247. package/version.mjs +1 -1
@@ -1,6 +1,18 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ export * from './shared';
4
+ export { Agents, type AgentListResponse } from './agents';
3
5
  export { Apps, type AppListResponse, type AppListParams } from './apps';
6
+ export {
7
+ Carriers,
8
+ type Carrier,
9
+ type CarrierListResponse,
10
+ type CarrierDeleteResponse,
11
+ type CarrierCreateParams,
12
+ type CarrierUpdateParams,
13
+ type CarrierListParams,
14
+ type CarrierLookupParams,
15
+ } from './carriers';
4
16
  export {
5
17
  Credentials,
6
18
  type CredentialListResponse,
@@ -30,17 +42,42 @@ export {
30
42
  type HookSubscribeParams,
31
43
  } from './hooks';
32
44
  export { Models, type ModelListResponse } from './models';
45
+ export {
46
+ Profiles,
47
+ type Profile,
48
+ type ProfileListResponse,
49
+ type ProfileDeleteResponse,
50
+ type ProfileCreateParams,
51
+ type ProfileUpdateParams,
52
+ type ProfileListParams,
53
+ } from './profiles';
54
+ export {
55
+ Proxies,
56
+ type ProxyConfig,
57
+ type ProxyCreateResponse,
58
+ type ProxyRetrieveResponse,
59
+ type ProxyUpdateResponse,
60
+ type ProxyListResponse,
61
+ type ProxyDeleteResponse,
62
+ type ProxyCreateParams,
63
+ type ProxyUpdateParams,
64
+ } from './proxies';
33
65
  export {
34
66
  Tasks,
67
+ type PackageCredentials,
35
68
  type Task,
36
69
  type TaskStatus,
70
+ type UsageResult,
37
71
  type TaskRetrieveResponse,
38
72
  type TaskListResponse,
39
73
  type TaskGetStatusResponse,
40
74
  type TaskGetTrajectoryResponse,
41
75
  type TaskRunResponse,
76
+ type TaskRunStreamedResponse,
77
+ type TaskSendMessageResponse,
42
78
  type TaskStopResponse,
43
79
  type TaskListParams,
44
80
  type TaskRunParams,
45
81
  type TaskRunStreamedParams,
82
+ type TaskSendMessageParams,
46
83
  } from './tasks/tasks';
@@ -0,0 +1,133 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as Shared from './shared';
5
+ import { APIPromise } from '../core/api-promise';
6
+ import { RequestOptions } from '../internal/request-options';
7
+ import { path } from '../internal/utils/path';
8
+
9
+ export class Profiles extends APIResource {
10
+ /**
11
+ * Create a new device profile
12
+ */
13
+ create(body: ProfileCreateParams, options?: RequestOptions): APIPromise<Profile> {
14
+ return this._client.post('/profiles', { body, ...options });
15
+ }
16
+
17
+ /**
18
+ * Get device profile by ID
19
+ */
20
+ retrieve(profileID: string, options?: RequestOptions): APIPromise<Profile> {
21
+ return this._client.get(path`/profiles/${profileID}`, options);
22
+ }
23
+
24
+ /**
25
+ * Update a device profile
26
+ */
27
+ update(profileID: string, body: ProfileUpdateParams, options?: RequestOptions): APIPromise<Profile> {
28
+ return this._client.put(path`/profiles/${profileID}`, { body, ...options });
29
+ }
30
+
31
+ /**
32
+ * List device profiles
33
+ */
34
+ list(
35
+ query: ProfileListParams | null | undefined = {},
36
+ options?: RequestOptions,
37
+ ): APIPromise<ProfileListResponse> {
38
+ return this._client.get('/profiles', { query, ...options });
39
+ }
40
+
41
+ /**
42
+ * Delete a device profile
43
+ */
44
+ delete(profileID: string, options?: RequestOptions): APIPromise<ProfileDeleteResponse> {
45
+ return this._client.delete(path`/profiles/${profileID}`, options);
46
+ }
47
+ }
48
+
49
+ export interface Profile {
50
+ id: string;
51
+
52
+ createdAt: string;
53
+
54
+ name: string;
55
+
56
+ spec: Shared.DeviceSpec;
57
+
58
+ updatedAt: string;
59
+
60
+ userId: string;
61
+
62
+ /**
63
+ * A URL to the JSON Schema for this object.
64
+ */
65
+ $schema?: string;
66
+ }
67
+
68
+ export interface ProfileListResponse {
69
+ items: Array<Profile> | null;
70
+
71
+ pagination: Shared.Meta;
72
+
73
+ /**
74
+ * A URL to the JSON Schema for this object.
75
+ */
76
+ $schema?: string;
77
+ }
78
+
79
+ export interface ProfileDeleteResponse {
80
+ message: string;
81
+
82
+ /**
83
+ * A URL to the JSON Schema for this object.
84
+ */
85
+ $schema?: string;
86
+ }
87
+
88
+ export interface ProfileCreateParams {
89
+ /**
90
+ * Profile name
91
+ */
92
+ name: string;
93
+
94
+ /**
95
+ * Device specification
96
+ */
97
+ spec: Shared.DeviceSpec;
98
+ }
99
+
100
+ export interface ProfileUpdateParams {
101
+ /**
102
+ * Profile name
103
+ */
104
+ name: string;
105
+
106
+ /**
107
+ * Device specification
108
+ */
109
+ spec: Shared.DeviceSpec;
110
+ }
111
+
112
+ export interface ProfileListParams {
113
+ name?: string;
114
+
115
+ orderBy?: 'name' | 'created_at' | 'updated_at';
116
+
117
+ orderByDirection?: 'asc' | 'desc';
118
+
119
+ page?: number;
120
+
121
+ pageSize?: number;
122
+ }
123
+
124
+ export declare namespace Profiles {
125
+ export {
126
+ type Profile as Profile,
127
+ type ProfileListResponse as ProfileListResponse,
128
+ type ProfileDeleteResponse as ProfileDeleteResponse,
129
+ type ProfileCreateParams as ProfileCreateParams,
130
+ type ProfileUpdateParams as ProfileUpdateParams,
131
+ type ProfileListParams as ProfileListParams,
132
+ };
133
+ }
@@ -0,0 +1,130 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+ import { path } from '../internal/utils/path';
7
+
8
+ export class Proxies extends APIResource {
9
+ /**
10
+ * Create a new proxy config
11
+ */
12
+ create(body: ProxyCreateParams, options?: RequestOptions): APIPromise<ProxyCreateResponse> {
13
+ return this._client.post('/proxies', { body, ...options });
14
+ }
15
+
16
+ /**
17
+ * Get a specific proxy config
18
+ */
19
+ retrieve(proxyID: string, options?: RequestOptions): APIPromise<ProxyRetrieveResponse> {
20
+ return this._client.get(path`/proxies/${proxyID}`, options);
21
+ }
22
+
23
+ /**
24
+ * Update a proxy config
25
+ */
26
+ update(
27
+ proxyID: string,
28
+ body: ProxyUpdateParams,
29
+ options?: RequestOptions,
30
+ ): APIPromise<ProxyUpdateResponse> {
31
+ return this._client.put(path`/proxies/${proxyID}`, { body, ...options });
32
+ }
33
+
34
+ /**
35
+ * List all proxy configs for the authenticated user
36
+ */
37
+ list(options?: RequestOptions): APIPromise<ProxyListResponse> {
38
+ return this._client.get('/proxies', options);
39
+ }
40
+
41
+ /**
42
+ * Delete a proxy config
43
+ */
44
+ delete(proxyID: string, options?: RequestOptions): APIPromise<ProxyDeleteResponse> {
45
+ return this._client.delete(path`/proxies/${proxyID}`, options);
46
+ }
47
+ }
48
+
49
+ export interface ProxyConfig {
50
+ host: string;
51
+
52
+ name: string;
53
+
54
+ password: string;
55
+
56
+ port: number;
57
+
58
+ proxyId: string;
59
+
60
+ user: string;
61
+ }
62
+
63
+ export interface ProxyCreateResponse {
64
+ data: ProxyConfig;
65
+
66
+ message: string;
67
+
68
+ success: true;
69
+ }
70
+
71
+ export interface ProxyRetrieveResponse {
72
+ data: ProxyConfig;
73
+ }
74
+
75
+ export interface ProxyUpdateResponse {
76
+ data: ProxyConfig;
77
+
78
+ message: string;
79
+
80
+ success: true;
81
+ }
82
+
83
+ export interface ProxyListResponse {
84
+ data: Array<ProxyConfig>;
85
+ }
86
+
87
+ export interface ProxyDeleteResponse {
88
+ data: ProxyConfig;
89
+
90
+ message: string;
91
+
92
+ success: true;
93
+ }
94
+
95
+ export interface ProxyCreateParams {
96
+ host: string;
97
+
98
+ name: string;
99
+
100
+ password: string;
101
+
102
+ port: number;
103
+
104
+ user: string;
105
+ }
106
+
107
+ export interface ProxyUpdateParams {
108
+ host: string;
109
+
110
+ name: string;
111
+
112
+ password: string;
113
+
114
+ port: number;
115
+
116
+ user: string;
117
+ }
118
+
119
+ export declare namespace Proxies {
120
+ export {
121
+ type ProxyConfig as ProxyConfig,
122
+ type ProxyCreateResponse as ProxyCreateResponse,
123
+ type ProxyRetrieveResponse as ProxyRetrieveResponse,
124
+ type ProxyUpdateResponse as ProxyUpdateResponse,
125
+ type ProxyListResponse as ProxyListResponse,
126
+ type ProxyDeleteResponse as ProxyDeleteResponse,
127
+ type ProxyCreateParams as ProxyCreateParams,
128
+ type ProxyUpdateParams as ProxyUpdateParams,
129
+ };
130
+ }
@@ -0,0 +1,149 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export interface Config {
4
+ host: string;
5
+
6
+ password: string;
7
+
8
+ port: number;
9
+
10
+ user: string;
11
+ }
12
+
13
+ export interface DeviceCarrier {
14
+ GsmOperatorAlpha: string;
15
+
16
+ GsmOperatorNumeric: number;
17
+
18
+ GsmSimOperatorAlpha: string;
19
+
20
+ GsmSimOperatorIsoCountry: string;
21
+
22
+ GsmSimOperatorNumeric: number;
23
+
24
+ PersistSysTimezone: string;
25
+ }
26
+
27
+ export interface DeviceIdentifiers {
28
+ BootloaderSerialNumber: string;
29
+
30
+ IdentifierAndroidID: string;
31
+
32
+ IdentifierAppSetID: string;
33
+
34
+ IdentifierBluetoothMAC: string;
35
+
36
+ IdentifierGAID: string;
37
+
38
+ IdentifierGSFID: string;
39
+
40
+ IdentifierICCID: string;
41
+
42
+ IdentifierIMEI: string;
43
+
44
+ IdentifierIMSI: string;
45
+
46
+ IdentifierMediaDRMID: string;
47
+
48
+ IdentifierMEID: string;
49
+
50
+ IdentifierPhoneNumber: string;
51
+
52
+ IdentifierSerial: string;
53
+
54
+ IdentifierWifiMAC: string;
55
+
56
+ SerialNumber: string;
57
+ }
58
+
59
+ export interface DeviceSpec {
60
+ /**
61
+ * A URL to the JSON Schema for this object.
62
+ */
63
+ $schema?: string;
64
+
65
+ apps?: Array<string> | null;
66
+
67
+ carrier?: DeviceCarrier;
68
+
69
+ files?: Array<string> | null;
70
+
71
+ identifiers?: DeviceIdentifiers;
72
+
73
+ name?: string;
74
+
75
+ proxy?: Config;
76
+
77
+ smartIp?: boolean;
78
+ }
79
+
80
+ export interface Meta {
81
+ hasNext: boolean;
82
+
83
+ hasPrev: boolean;
84
+
85
+ page: number;
86
+
87
+ pages: number;
88
+
89
+ pageSize: number;
90
+
91
+ total: number;
92
+ }
93
+
94
+ export interface Pagination {
95
+ hasNext: boolean;
96
+
97
+ hasPrev: boolean;
98
+
99
+ page: number;
100
+
101
+ pages: number;
102
+
103
+ pageSize: number;
104
+
105
+ total: number;
106
+ }
107
+
108
+ /**
109
+ * Pagination metadata.
110
+ */
111
+ export interface PaginationMeta {
112
+ /**
113
+ * Whether there is a next page
114
+ */
115
+ hasNext: boolean;
116
+
117
+ /**
118
+ * Whether there is a previous page
119
+ */
120
+ hasPrev: boolean;
121
+
122
+ /**
123
+ * Current page number (1-based)
124
+ */
125
+ page: number;
126
+
127
+ /**
128
+ * Total number of pages
129
+ */
130
+ pages: number;
131
+
132
+ /**
133
+ * Number of items per page
134
+ */
135
+ pageSize: number;
136
+
137
+ /**
138
+ * Total number of items
139
+ */
140
+ total: number;
141
+ }
142
+
143
+ export interface PermissionSet {
144
+ execute: boolean;
145
+
146
+ read: boolean;
147
+
148
+ write: boolean;
149
+ }
@@ -8,16 +8,21 @@ export {
8
8
  } from './screenshots';
9
9
  export {
10
10
  Tasks,
11
+ type PackageCredentials,
11
12
  type Task,
12
13
  type TaskStatus,
14
+ type UsageResult,
13
15
  type TaskRetrieveResponse,
14
16
  type TaskListResponse,
15
17
  type TaskGetStatusResponse,
16
18
  type TaskGetTrajectoryResponse,
17
19
  type TaskRunResponse,
20
+ type TaskRunStreamedResponse,
21
+ type TaskSendMessageResponse,
18
22
  type TaskStopResponse,
19
23
  type TaskListParams,
20
24
  type TaskRunParams,
21
25
  type TaskRunStreamedParams,
26
+ type TaskSendMessageParams,
22
27
  } from './tasks';
23
28
  export { UiStates, type UiStateListResponse, type UiStateRetrieveParams } from './ui-states';
@@ -5,6 +5,9 @@ import { APIPromise } from '../../core/api-promise';
5
5
  import { RequestOptions } from '../../internal/request-options';
6
6
  import { path } from '../../internal/utils/path';
7
7
 
8
+ /**
9
+ * Tasks API
10
+ */
8
11
  export class Screenshots extends APIResource {
9
12
  /**
10
13
  * Get a specific screenshot by index.