@mobilerun/sdk 5.4.0 → 5.5.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 (257) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +2 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -5
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/apps.d.mts +10 -2
  12. package/resources/apps.d.mts.map +1 -1
  13. package/resources/apps.d.ts +10 -2
  14. package/resources/apps.d.ts.map +1 -1
  15. package/resources/apps.js +3 -1
  16. package/resources/apps.js.map +1 -1
  17. package/resources/apps.mjs +3 -1
  18. package/resources/apps.mjs.map +1 -1
  19. package/resources/assistant/conversations.d.mts +26 -4
  20. package/resources/assistant/conversations.d.mts.map +1 -1
  21. package/resources/assistant/conversations.d.ts +26 -4
  22. package/resources/assistant/conversations.d.ts.map +1 -1
  23. package/resources/assistant/conversations.js +12 -4
  24. package/resources/assistant/conversations.js.map +1 -1
  25. package/resources/assistant/conversations.mjs +12 -4
  26. package/resources/assistant/conversations.mjs.map +1 -1
  27. package/resources/connect/proxies.d.mts +36 -20
  28. package/resources/connect/proxies.d.mts.map +1 -1
  29. package/resources/connect/proxies.d.ts +36 -20
  30. package/resources/connect/proxies.d.ts.map +1 -1
  31. package/resources/connect/proxies.js +10 -2
  32. package/resources/connect/proxies.js.map +1 -1
  33. package/resources/connect/proxies.mjs +10 -2
  34. package/resources/connect/proxies.mjs.map +1 -1
  35. package/resources/devices/apps.d.mts +37 -17
  36. package/resources/devices/apps.d.mts.map +1 -1
  37. package/resources/devices/apps.d.ts +37 -17
  38. package/resources/devices/apps.d.ts.map +1 -1
  39. package/resources/devices/apps.js +15 -14
  40. package/resources/devices/apps.js.map +1 -1
  41. package/resources/devices/apps.mjs +15 -14
  42. package/resources/devices/apps.mjs.map +1 -1
  43. package/resources/devices/devices.d.mts +29 -4
  44. package/resources/devices/devices.d.mts.map +1 -1
  45. package/resources/devices/devices.d.ts +29 -4
  46. package/resources/devices/devices.d.ts.map +1 -1
  47. package/resources/devices/devices.js +7 -4
  48. package/resources/devices/devices.js.map +1 -1
  49. package/resources/devices/devices.mjs +7 -4
  50. package/resources/devices/devices.mjs.map +1 -1
  51. package/resources/devices/index.d.mts +1 -0
  52. package/resources/devices/index.d.mts.map +1 -1
  53. package/resources/devices/index.d.ts +1 -0
  54. package/resources/devices/index.d.ts.map +1 -1
  55. package/resources/devices/index.js +3 -1
  56. package/resources/devices/index.js.map +1 -1
  57. package/resources/devices/index.mjs +1 -0
  58. package/resources/devices/index.mjs.map +1 -1
  59. package/resources/devices/keyboard.d.mts +9 -3
  60. package/resources/devices/keyboard.d.mts.map +1 -1
  61. package/resources/devices/keyboard.d.ts +9 -3
  62. package/resources/devices/keyboard.d.ts.map +1 -1
  63. package/resources/devices/keyboard.js +3 -3
  64. package/resources/devices/keyboard.mjs +3 -3
  65. package/resources/devices/recordings.d.mts +11 -0
  66. package/resources/devices/recordings.d.mts.map +1 -1
  67. package/resources/devices/recordings.d.ts +11 -0
  68. package/resources/devices/recordings.d.ts.map +1 -1
  69. package/resources/devices/traffic-sessions.d.mts +173 -0
  70. package/resources/devices/traffic-sessions.d.mts.map +1 -0
  71. package/resources/devices/traffic-sessions.d.ts +173 -0
  72. package/resources/devices/traffic-sessions.d.ts.map +1 -0
  73. package/resources/devices/traffic-sessions.js +43 -0
  74. package/resources/devices/traffic-sessions.js.map +1 -0
  75. package/resources/devices/traffic-sessions.mjs +39 -0
  76. package/resources/devices/traffic-sessions.mjs.map +1 -0
  77. package/resources/files.d.mts +72 -0
  78. package/resources/files.d.mts.map +1 -1
  79. package/resources/files.d.ts +72 -0
  80. package/resources/files.d.ts.map +1 -1
  81. package/resources/index.d.mts +1 -2
  82. package/resources/index.d.mts.map +1 -1
  83. package/resources/index.d.ts +1 -2
  84. package/resources/index.d.ts.map +1 -1
  85. package/resources/index.js +1 -3
  86. package/resources/index.js.map +1 -1
  87. package/resources/index.mjs +0 -1
  88. package/resources/index.mjs.map +1 -1
  89. package/resources/mailboxes/mailboxes.d.mts +45 -37
  90. package/resources/mailboxes/mailboxes.d.mts.map +1 -1
  91. package/resources/mailboxes/mailboxes.d.ts +45 -37
  92. package/resources/mailboxes/mailboxes.d.ts.map +1 -1
  93. package/resources/mailboxes/mailboxes.js +13 -20
  94. package/resources/mailboxes/mailboxes.js.map +1 -1
  95. package/resources/mailboxes/mailboxes.mjs +13 -20
  96. package/resources/mailboxes/mailboxes.mjs.map +1 -1
  97. package/resources/mailboxes/messages.d.mts +2 -2
  98. package/resources/mailboxes/messages.d.ts +2 -2
  99. package/resources/mailboxes/messages.js +2 -2
  100. package/resources/mailboxes/messages.mjs +2 -2
  101. package/resources/messages/conversations.d.mts +4 -15
  102. package/resources/messages/conversations.d.mts.map +1 -1
  103. package/resources/messages/conversations.d.ts +4 -15
  104. package/resources/messages/conversations.d.ts.map +1 -1
  105. package/resources/messages/conversations.js +4 -15
  106. package/resources/messages/conversations.js.map +1 -1
  107. package/resources/messages/conversations.mjs +4 -15
  108. package/resources/messages/conversations.mjs.map +1 -1
  109. package/resources/messages/messages.d.mts +2 -4
  110. package/resources/messages/messages.d.mts.map +1 -1
  111. package/resources/messages/messages.d.ts +2 -4
  112. package/resources/messages/messages.d.ts.map +1 -1
  113. package/resources/messages/messages.js +2 -4
  114. package/resources/messages/messages.js.map +1 -1
  115. package/resources/messages/messages.mjs +2 -4
  116. package/resources/messages/messages.mjs.map +1 -1
  117. package/resources/numbers/index.d.mts +1 -1
  118. package/resources/numbers/index.d.mts.map +1 -1
  119. package/resources/numbers/index.d.ts +1 -1
  120. package/resources/numbers/index.d.ts.map +1 -1
  121. package/resources/numbers/index.js.map +1 -1
  122. package/resources/numbers/index.mjs.map +1 -1
  123. package/resources/numbers/numbers.d.mts +48 -35
  124. package/resources/numbers/numbers.d.mts.map +1 -1
  125. package/resources/numbers/numbers.d.ts +48 -35
  126. package/resources/numbers/numbers.d.ts.map +1 -1
  127. package/resources/numbers/numbers.js +23 -29
  128. package/resources/numbers/numbers.js.map +1 -1
  129. package/resources/numbers/numbers.mjs +23 -29
  130. package/resources/numbers/numbers.mjs.map +1 -1
  131. package/resources/tasks/tasks.d.mts +80 -32
  132. package/resources/tasks/tasks.d.mts.map +1 -1
  133. package/resources/tasks/tasks.d.ts +80 -32
  134. package/resources/tasks/tasks.d.ts.map +1 -1
  135. package/resources/tasks/tasks.js.map +1 -1
  136. package/resources/tasks/tasks.mjs.map +1 -1
  137. package/resources/webhooks/webhooks.d.mts +1 -0
  138. package/resources/webhooks/webhooks.d.mts.map +1 -1
  139. package/resources/webhooks/webhooks.d.ts +1 -0
  140. package/resources/webhooks/webhooks.d.ts.map +1 -1
  141. package/resources/webhooks/webhooks.js.map +1 -1
  142. package/resources/webhooks/webhooks.mjs.map +1 -1
  143. package/resources/workflows/events.d.mts +18 -0
  144. package/resources/workflows/events.d.mts.map +1 -1
  145. package/resources/workflows/events.d.ts +18 -0
  146. package/resources/workflows/events.d.ts.map +1 -1
  147. package/resources/workflows/executions.d.mts +84 -5
  148. package/resources/workflows/executions.d.mts.map +1 -1
  149. package/resources/workflows/executions.d.ts +84 -5
  150. package/resources/workflows/executions.d.ts.map +1 -1
  151. package/resources/workflows/executions.js +3 -2
  152. package/resources/workflows/executions.js.map +1 -1
  153. package/resources/workflows/executions.mjs +3 -2
  154. package/resources/workflows/executions.mjs.map +1 -1
  155. package/resources/workflows/flows/actions.d.mts +19 -0
  156. package/resources/workflows/flows/actions.d.mts.map +1 -1
  157. package/resources/workflows/flows/actions.d.ts +19 -0
  158. package/resources/workflows/flows/actions.d.ts.map +1 -1
  159. package/resources/workflows/flows/flows.d.mts +142 -2
  160. package/resources/workflows/flows/flows.d.mts.map +1 -1
  161. package/resources/workflows/flows/flows.d.ts +142 -2
  162. package/resources/workflows/flows/flows.d.ts.map +1 -1
  163. package/resources/workflows/flows/flows.js +11 -1
  164. package/resources/workflows/flows/flows.js.map +1 -1
  165. package/resources/workflows/flows/flows.mjs +11 -1
  166. package/resources/workflows/flows/flows.mjs.map +1 -1
  167. package/resources/workflows/flows/index.d.mts +1 -1
  168. package/resources/workflows/flows/index.d.mts.map +1 -1
  169. package/resources/workflows/flows/index.d.ts +1 -1
  170. package/resources/workflows/flows/index.d.ts.map +1 -1
  171. package/resources/workflows/flows/index.js.map +1 -1
  172. package/resources/workflows/flows/index.mjs.map +1 -1
  173. package/resources/workflows/index.d.mts +1 -1
  174. package/resources/workflows/index.d.mts.map +1 -1
  175. package/resources/workflows/index.d.ts +1 -1
  176. package/resources/workflows/index.d.ts.map +1 -1
  177. package/resources/workflows/index.js.map +1 -1
  178. package/resources/workflows/index.mjs.map +1 -1
  179. package/resources/workflows/triggers.d.mts +17 -3
  180. package/resources/workflows/triggers.d.mts.map +1 -1
  181. package/resources/workflows/triggers.d.ts +17 -3
  182. package/resources/workflows/triggers.d.ts.map +1 -1
  183. package/resources/workflows/workflows.d.mts +2 -2
  184. package/resources/workflows/workflows.d.mts.map +1 -1
  185. package/resources/workflows/workflows.d.ts +2 -2
  186. package/resources/workflows/workflows.d.ts.map +1 -1
  187. package/resources/workflows/workflows.js.map +1 -1
  188. package/resources/workflows/workflows.mjs.map +1 -1
  189. package/src/client.ts +4 -41
  190. package/src/resources/apps.ts +11 -2
  191. package/src/resources/assistant/conversations.ts +38 -4
  192. package/src/resources/connect/proxies.ts +49 -21
  193. package/src/resources/devices/apps.ts +41 -17
  194. package/src/resources/devices/devices.ts +58 -4
  195. package/src/resources/devices/index.ts +11 -0
  196. package/src/resources/devices/keyboard.ts +10 -3
  197. package/src/resources/devices/recordings.ts +12 -0
  198. package/src/resources/devices/traffic-sessions.ts +299 -0
  199. package/src/resources/files.ts +114 -0
  200. package/src/resources/index.ts +2 -19
  201. package/src/resources/mailboxes/mailboxes.ts +56 -37
  202. package/src/resources/mailboxes/messages.ts +2 -2
  203. package/src/resources/messages/conversations.ts +4 -15
  204. package/src/resources/messages/messages.ts +2 -4
  205. package/src/resources/numbers/index.ts +2 -0
  206. package/src/resources/numbers/numbers.ts +58 -34
  207. package/src/resources/tasks/tasks.ts +120 -40
  208. package/src/resources/webhooks/webhooks.ts +2 -0
  209. package/src/resources/workflows/events.ts +24 -0
  210. package/src/resources/workflows/executions.ts +121 -5
  211. package/src/resources/workflows/flows/actions.ts +26 -0
  212. package/src/resources/workflows/flows/flows.ts +182 -1
  213. package/src/resources/workflows/flows/index.ts +1 -0
  214. package/src/resources/workflows/index.ts +1 -0
  215. package/src/resources/workflows/triggers.ts +19 -3
  216. package/src/resources/workflows/workflows.ts +2 -0
  217. package/src/version.ts +1 -1
  218. package/version.d.mts +1 -1
  219. package/version.d.ts +1 -1
  220. package/version.js +1 -1
  221. package/version.mjs +1 -1
  222. package/resources/esims/esims.d.mts +0 -566
  223. package/resources/esims/esims.d.mts.map +0 -1
  224. package/resources/esims/esims.d.ts +0 -566
  225. package/resources/esims/esims.d.ts.map +0 -1
  226. package/resources/esims/esims.js +0 -205
  227. package/resources/esims/esims.js.map +0 -1
  228. package/resources/esims/esims.mjs +0 -200
  229. package/resources/esims/esims.mjs.map +0 -1
  230. package/resources/esims/index.d.mts +0 -3
  231. package/resources/esims/index.d.mts.map +0 -1
  232. package/resources/esims/index.d.ts +0 -3
  233. package/resources/esims/index.d.ts.map +0 -1
  234. package/resources/esims/index.js +0 -9
  235. package/resources/esims/index.js.map +0 -1
  236. package/resources/esims/index.mjs +0 -4
  237. package/resources/esims/index.mjs.map +0 -1
  238. package/resources/esims/messages.d.mts +0 -106
  239. package/resources/esims/messages.d.mts.map +0 -1
  240. package/resources/esims/messages.d.ts +0 -106
  241. package/resources/esims/messages.d.ts.map +0 -1
  242. package/resources/esims/messages.js +0 -37
  243. package/resources/esims/messages.js.map +0 -1
  244. package/resources/esims/messages.mjs +0 -33
  245. package/resources/esims/messages.mjs.map +0 -1
  246. package/resources/esims.d.mts +0 -2
  247. package/resources/esims.d.mts.map +0 -1
  248. package/resources/esims.d.ts +0 -2
  249. package/resources/esims.d.ts.map +0 -1
  250. package/resources/esims.js +0 -6
  251. package/resources/esims.js.map +0 -1
  252. package/resources/esims.mjs +0 -3
  253. package/resources/esims.mjs.map +0 -1
  254. package/src/resources/esims/esims.ts +0 -1019
  255. package/src/resources/esims/index.ts +0 -28
  256. package/src/resources/esims/messages.ts +0 -187
  257. package/src/resources/esims.ts +0 -3
@@ -134,7 +134,15 @@ export namespace TaskRetrieveResponse {
134
134
 
135
135
  ownerId: string;
136
136
 
137
- status: 'queued' | 'created' | 'running' | 'cancelling' | 'completed' | 'failed' | 'cancelled';
137
+ status:
138
+ | 'prepared'
139
+ | 'queued'
140
+ | 'created'
141
+ | 'running'
142
+ | 'cancelling'
143
+ | 'completed'
144
+ | 'failed'
145
+ | 'cancelled';
138
146
 
139
147
  task: string;
140
148
 
@@ -147,8 +155,6 @@ export namespace TaskRetrieveResponse {
147
155
 
148
156
  accessibility?: boolean;
149
157
 
150
- agentId?: number;
151
-
152
158
  apps?: Array<string>;
153
159
 
154
160
  cancelRequestedAt?: string | null;
@@ -175,11 +181,6 @@ export namespace TaskRetrieveResponse {
175
181
 
176
182
  maxSteps?: number;
177
183
 
178
- /**
179
- * Memory namespace for cross-task personalization
180
- */
181
- memoryNamespace?: string;
182
-
183
184
  message?: string | null;
184
185
 
185
186
  output?: { [key: string]: unknown } | null;
@@ -188,6 +189,22 @@ export namespace TaskRetrieveResponse {
188
189
 
189
190
  reasoning?: boolean;
190
191
 
192
+ recordingDeviceId?: string | null;
193
+
194
+ /**
195
+ * Record device video for the whole task and persist a retrievable reference
196
+ */
197
+ recordingEnabled?: boolean;
198
+
199
+ recordingId?: string | null;
200
+
201
+ /**
202
+ * Where the task came from: 'api' for tasks created via POST /tasks, 'agent' for
203
+ * tasks spawned by an agent step. Agent tasks are readable (status, trajectory,
204
+ * media) but not controllable via this API.
205
+ */
206
+ source?: 'api' | 'agent';
207
+
191
208
  stealth?: boolean;
192
209
 
193
210
  steps?: number | null;
@@ -201,6 +218,10 @@ export namespace TaskRetrieveResponse {
201
218
 
202
219
  succeeded?: boolean | null;
203
220
 
221
+ /**
222
+ * @deprecated Deprecated and ignored. Sampling behavior is controlled by the model
223
+ * provider.
224
+ */
204
225
  temperature?: number;
205
226
 
206
227
  updatedAt?: string;
@@ -249,7 +270,15 @@ export namespace TaskListResponse {
249
270
 
250
271
  ownerId: string;
251
272
 
252
- status: 'queued' | 'created' | 'running' | 'cancelling' | 'completed' | 'failed' | 'cancelled';
273
+ status:
274
+ | 'prepared'
275
+ | 'queued'
276
+ | 'created'
277
+ | 'running'
278
+ | 'cancelling'
279
+ | 'completed'
280
+ | 'failed'
281
+ | 'cancelled';
253
282
 
254
283
  task: string;
255
284
 
@@ -262,8 +291,6 @@ export namespace TaskListResponse {
262
291
 
263
292
  accessibility?: boolean;
264
293
 
265
- agentId?: number;
266
-
267
294
  apps?: Array<string>;
268
295
 
269
296
  cancelRequestedAt?: string | null;
@@ -290,11 +317,6 @@ export namespace TaskListResponse {
290
317
 
291
318
  maxSteps?: number;
292
319
 
293
- /**
294
- * Memory namespace for cross-task personalization
295
- */
296
- memoryNamespace?: string;
297
-
298
320
  message?: string | null;
299
321
 
300
322
  output?: { [key: string]: unknown } | null;
@@ -303,6 +325,22 @@ export namespace TaskListResponse {
303
325
 
304
326
  reasoning?: boolean;
305
327
 
328
+ recordingDeviceId?: string | null;
329
+
330
+ /**
331
+ * Record device video for the whole task and persist a retrievable reference
332
+ */
333
+ recordingEnabled?: boolean;
334
+
335
+ recordingId?: string | null;
336
+
337
+ /**
338
+ * Where the task came from: 'api' for tasks created via POST /tasks, 'agent' for
339
+ * tasks spawned by an agent step. Agent tasks are readable (status, trajectory,
340
+ * media) but not controllable via this API.
341
+ */
342
+ source?: 'api' | 'agent';
343
+
306
344
  stealth?: boolean;
307
345
 
308
346
  steps?: number | null;
@@ -316,6 +354,10 @@ export namespace TaskListResponse {
316
354
 
317
355
  succeeded?: boolean | null;
318
356
 
357
+ /**
358
+ * @deprecated Deprecated and ignored. Sampling behavior is controlled by the model
359
+ * provider.
360
+ */
319
361
  temperature?: number;
320
362
 
321
363
  updatedAt?: string;
@@ -338,7 +380,7 @@ export interface TaskGetStatusResponse {
338
380
  /**
339
381
  * The status of the task
340
382
  */
341
- status: 'queued' | 'created' | 'running' | 'cancelling' | 'completed' | 'failed' | 'cancelled';
383
+ status: 'prepared' | 'queued' | 'created' | 'running' | 'cancelling' | 'completed' | 'failed' | 'cancelled';
342
384
 
343
385
  /**
344
386
  * Execution metadata for abnormal terminal outcomes
@@ -360,6 +402,16 @@ export interface TaskGetStatusResponse {
360
402
  */
361
403
  output?: { [key: string]: unknown } | null;
362
404
 
405
+ /**
406
+ * Device ID associated with recordingId
407
+ */
408
+ recordingDeviceId?: string | null;
409
+
410
+ /**
411
+ * ID of the task's whole-task video recording, if recordingEnabled was set
412
+ */
413
+ recordingId?: string | null;
414
+
363
415
  /**
364
416
  * Number of steps taken
365
417
  */
@@ -1060,7 +1112,7 @@ export interface TaskRunResponse {
1060
1112
  /**
1061
1113
  * The status of the task (queued or created)
1062
1114
  */
1063
- status: 'queued' | 'created' | 'running' | 'cancelling' | 'completed' | 'failed' | 'cancelled';
1115
+ status: 'prepared' | 'queued' | 'created' | 'running' | 'cancelling' | 'completed' | 'failed' | 'cancelled';
1064
1116
 
1065
1117
  /**
1066
1118
  * The URL of the stream (null when queued)
@@ -1108,7 +1160,21 @@ export interface TaskListParams {
1108
1160
  */
1109
1161
  query?: string | null;
1110
1162
 
1111
- status?: 'queued' | 'created' | 'running' | 'cancelling' | 'completed' | 'failed' | 'cancelled' | null;
1163
+ /**
1164
+ * Only tasks created via the API ('api') or spawned by an agent step ('agent').
1165
+ */
1166
+ source?: 'api' | 'agent' | null;
1167
+
1168
+ status?:
1169
+ | 'prepared'
1170
+ | 'queued'
1171
+ | 'created'
1172
+ | 'running'
1173
+ | 'cancelling'
1174
+ | 'completed'
1175
+ | 'failed'
1176
+ | 'cancelled'
1177
+ | null;
1112
1178
  }
1113
1179
 
1114
1180
  export interface TaskRunParams {
@@ -1127,11 +1193,6 @@ export interface TaskRunParams {
1127
1193
  */
1128
1194
  accessibility?: boolean;
1129
1195
 
1130
- /**
1131
- * Body param
1132
- */
1133
- agentId?: number;
1134
-
1135
1196
  /**
1136
1197
  * Body param
1137
1198
  */
@@ -1153,7 +1214,7 @@ export interface TaskRunParams {
1153
1214
  displayId?: number;
1154
1215
 
1155
1216
  /**
1156
- * Body param
1217
+ * Body param: Maximum agent execution time in seconds (1–2700).
1157
1218
  */
1158
1219
  executionTimeout?: number;
1159
1220
 
@@ -1164,7 +1225,7 @@ export interface TaskRunParams {
1164
1225
 
1165
1226
  /**
1166
1227
  * Body param: The LLM model identifier to use for the task (e.g.
1167
- * 'google/gemini-3.5-flash')
1228
+ * 'openai/gpt-5.6-luna')
1168
1229
  */
1169
1230
  llmModel?: string;
1170
1231
 
@@ -1173,11 +1234,6 @@ export interface TaskRunParams {
1173
1234
  */
1174
1235
  maxSteps?: number;
1175
1236
 
1176
- /**
1177
- * Body param: Memory namespace for cross-task personalization
1178
- */
1179
- memoryNamespace?: string;
1180
-
1181
1237
  /**
1182
1238
  * Body param
1183
1239
  */
@@ -1188,6 +1244,12 @@ export interface TaskRunParams {
1188
1244
  */
1189
1245
  reasoning?: boolean;
1190
1246
 
1247
+ /**
1248
+ * Body param: Record device video for the whole task and persist a retrievable
1249
+ * reference
1250
+ */
1251
+ recordingEnabled?: boolean;
1252
+
1191
1253
  /**
1192
1254
  * Body param
1193
1255
  */
@@ -1200,7 +1262,14 @@ export interface TaskRunParams {
1200
1262
  subagentModel?: string;
1201
1263
 
1202
1264
  /**
1203
- * Body param
1265
+ * Body param: Optional custom behavioral overlay applied on top of the agent's
1266
+ * default system prompts. Never echoed back in responses or errors.
1267
+ */
1268
+ systemPrompt?: string | null;
1269
+
1270
+ /**
1271
+ * @deprecated Body param: Deprecated and ignored. Sampling behavior is controlled
1272
+ * by the model provider.
1204
1273
  */
1205
1274
  temperature?: number;
1206
1275
 
@@ -1238,8 +1307,6 @@ export interface TaskRunStreamedParams {
1238
1307
 
1239
1308
  accessibility?: boolean;
1240
1309
 
1241
- agentId?: number;
1242
-
1243
1310
  apps?: Array<string>;
1244
1311
 
1245
1312
  continueOnFailure?: boolean;
@@ -1251,26 +1318,29 @@ export interface TaskRunStreamedParams {
1251
1318
  */
1252
1319
  displayId?: number;
1253
1320
 
1321
+ /**
1322
+ * Maximum agent execution time in seconds (1–2700).
1323
+ */
1254
1324
  executionTimeout?: number;
1255
1325
 
1256
1326
  files?: Array<string>;
1257
1327
 
1258
1328
  /**
1259
- * The LLM model identifier to use for the task (e.g. 'google/gemini-3.5-flash')
1329
+ * The LLM model identifier to use for the task (e.g. 'openai/gpt-5.6-luna')
1260
1330
  */
1261
1331
  llmModel?: string;
1262
1332
 
1263
1333
  maxSteps?: number;
1264
1334
 
1265
- /**
1266
- * Memory namespace for cross-task personalization
1267
- */
1268
- memoryNamespace?: string;
1269
-
1270
1335
  outputSchema?: { [key: string]: unknown } | null;
1271
1336
 
1272
1337
  reasoning?: boolean;
1273
1338
 
1339
+ /**
1340
+ * Record device video for the whole task and persist a retrievable reference
1341
+ */
1342
+ recordingEnabled?: boolean;
1343
+
1274
1344
  stealth?: boolean;
1275
1345
 
1276
1346
  /**
@@ -1278,6 +1348,16 @@ export interface TaskRunStreamedParams {
1278
1348
  */
1279
1349
  subagentModel?: string;
1280
1350
 
1351
+ /**
1352
+ * Optional custom behavioral overlay applied on top of the agent's default system
1353
+ * prompts. Never echoed back in responses or errors.
1354
+ */
1355
+ systemPrompt?: string | null;
1356
+
1357
+ /**
1358
+ * @deprecated Deprecated and ignored. Sampling behavior is controlled by the model
1359
+ * provider.
1360
+ */
1281
1361
  temperature?: number;
1282
1362
 
1283
1363
  vision?: boolean;
@@ -370,6 +370,8 @@ export namespace WebhookEventTypesResponse {
370
370
  toast: boolean;
371
371
 
372
372
  webhook: boolean;
373
+
374
+ agent?: boolean;
373
375
  }
374
376
  }
375
377
  }
@@ -49,10 +49,14 @@ export namespace EventDryRunResponse {
49
49
  export interface Action {
50
50
  continueOnError: boolean;
51
51
 
52
+ flowActionId: string;
53
+
52
54
  method: string;
53
55
 
54
56
  name: string;
55
57
 
58
+ recordingEnabled: boolean;
59
+
56
60
  service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
57
61
 
58
62
  /**
@@ -67,6 +71,8 @@ export namespace EventDryRunResponse {
67
71
  export interface Flow {
68
72
  id: string;
69
73
 
74
+ archivedAt: string | null;
75
+
70
76
  blockedAt: string | null;
71
77
 
72
78
  consecutiveFailures: number;
@@ -83,6 +89,10 @@ export namespace EventDryRunResponse {
83
89
 
84
90
  deviceIds: Array<string>;
85
91
 
92
+ /**
93
+ * Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
94
+ * enabled.
95
+ */
86
96
  enabled: boolean;
87
97
 
88
98
  healthMonitoringEnabled: boolean;
@@ -100,6 +110,8 @@ export namespace EventDryRunResponse {
100
110
 
101
111
  lastTriggeredAt: string | null;
102
112
 
113
+ lifecycleStatus: 'enabled' | 'disabled' | 'archived';
114
+
103
115
  name: string;
104
116
 
105
117
  notifyOnFailure: boolean;
@@ -110,8 +122,14 @@ export namespace EventDryRunResponse {
110
122
 
111
123
  ownerId: string;
112
124
 
125
+ /**
126
+ * @deprecated Deprecated: use recordingPolicy.mode ("flow" =
127
+ * recordingEnabled=true, "off" = recordingEnabled=false).
128
+ */
113
129
  recordingEnabled: boolean;
114
130
 
131
+ recordingPolicy: Flow.RecordingPolicy;
132
+
115
133
  selfHealingEnabled: boolean;
116
134
 
117
135
  selfHealingMaxAttempts: number;
@@ -136,6 +154,12 @@ export namespace EventDryRunResponse {
136
154
  userId: string;
137
155
  }
138
156
 
157
+ export namespace Flow {
158
+ export interface RecordingPolicy {
159
+ mode: 'off' | 'flow' | 'selected_steps';
160
+ }
161
+ }
162
+
139
163
  export interface Gates {
140
164
  blocked: boolean;
141
165
 
@@ -17,8 +17,9 @@ export class Executions extends APIResource {
17
17
 
18
18
  /**
19
19
  * Return a paginated history of flow executions. Supports filtering by `flowId`,
20
- * `triggerId`, `status`, and a `from`/`to` time range, plus free-text `search` and
21
- * ordering by startedAt, finishedAt, or status.
20
+ * `triggerId`, `invocationId` (the client/verify key), `status`, and a `from`/`to`
21
+ * time range, plus free-text `search` and ordering by startedAt, finishedAt, or
22
+ * status.
22
23
  */
23
24
  list(
24
25
  query: ExecutionListParams | null | undefined = {},
@@ -58,6 +59,12 @@ export namespace ExecutionRetrieveResponse {
58
59
 
59
60
  createdBy: string | null;
60
61
 
62
+ /**
63
+ * Device this execution targets (the job's deviceId). Null for device-less
64
+ * (event-only) runs.
65
+ */
66
+ deviceId: string | null;
67
+
61
68
  error: string | null;
62
69
 
63
70
  eventId: string | null;
@@ -75,7 +82,14 @@ export namespace ExecutionRetrieveResponse {
75
82
 
76
83
  flowName: string | null;
77
84
 
78
- kind: 'live' | 'dry_run';
85
+ /**
86
+ * Client/verify invocation key this row belongs to. Set on live custom fires (one
87
+ * row per device fan-out) and on verification runs; null for event/schedule live
88
+ * rows.
89
+ */
90
+ invocationId: string | null;
91
+
92
+ kind: 'live' | 'dry_run' | 'verification';
79
93
 
80
94
  recordingDeviceId: string | null;
81
95
 
@@ -86,6 +100,12 @@ export namespace ExecutionRetrieveResponse {
86
100
  */
87
101
  recordingId: string | null;
88
102
 
103
+ /**
104
+ * Durable recording segments ordered by step/loop coordinate and retry attempt.
105
+ * Whole-flow recordings use -1 for every coordinate.
106
+ */
107
+ recordings: Array<Data.Recording>;
108
+
89
109
  startedAt: string | null;
90
110
 
91
111
  status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
@@ -115,6 +135,36 @@ export namespace ExecutionRetrieveResponse {
115
135
 
116
136
  sizeBytes: number;
117
137
  }
138
+
139
+ export interface Recording {
140
+ id: string;
141
+
142
+ attempt: number;
143
+
144
+ childIndex: number;
145
+
146
+ flowActionId: string | null;
147
+
148
+ iterationIndex: number;
149
+
150
+ lastError: string | null;
151
+
152
+ parentIndex: number;
153
+
154
+ recordingDeviceId: string | null;
155
+
156
+ recordingId: string | null;
157
+
158
+ scope: 'flow' | 'step';
159
+
160
+ startedAt: string | null;
161
+
162
+ status: 'starting' | 'recording' | 'stopping' | 'stopped' | 'failed';
163
+
164
+ stepIndex: number;
165
+
166
+ stoppedAt: string | null;
167
+ }
118
168
  }
119
169
  }
120
170
 
@@ -130,6 +180,12 @@ export namespace ExecutionListResponse {
130
180
 
131
181
  createdBy: string | null;
132
182
 
183
+ /**
184
+ * Device this execution targets (the job's deviceId). Null for device-less
185
+ * (event-only) runs.
186
+ */
187
+ deviceId: string | null;
188
+
133
189
  error: string | null;
134
190
 
135
191
  eventId: string | null;
@@ -140,7 +196,14 @@ export namespace ExecutionListResponse {
140
196
 
141
197
  flowName: string | null;
142
198
 
143
- kind: 'live' | 'dry_run';
199
+ /**
200
+ * Client/verify invocation key this row belongs to. Set on live custom fires (one
201
+ * row per device fan-out) and on verification runs; null for event/schedule live
202
+ * rows.
203
+ */
204
+ invocationId: string | null;
205
+
206
+ kind: 'live' | 'dry_run' | 'verification';
144
207
 
145
208
  recordingDeviceId: string | null;
146
209
 
@@ -151,6 +214,12 @@ export namespace ExecutionListResponse {
151
214
  */
152
215
  recordingId: string | null;
153
216
 
217
+ /**
218
+ * Durable recording segments ordered by step/loop coordinate and retry attempt.
219
+ * Whole-flow recordings use -1 for every coordinate.
220
+ */
221
+ recordings: Array<Item.Recording>;
222
+
154
223
  startedAt: string | null;
155
224
 
156
225
  status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
@@ -169,6 +238,38 @@ export namespace ExecutionListResponse {
169
238
  */
170
239
  result?: unknown;
171
240
  }
241
+
242
+ export namespace Item {
243
+ export interface Recording {
244
+ id: string;
245
+
246
+ attempt: number;
247
+
248
+ childIndex: number;
249
+
250
+ flowActionId: string | null;
251
+
252
+ iterationIndex: number;
253
+
254
+ lastError: string | null;
255
+
256
+ parentIndex: number;
257
+
258
+ recordingDeviceId: string | null;
259
+
260
+ recordingId: string | null;
261
+
262
+ scope: 'flow' | 'step';
263
+
264
+ startedAt: string | null;
265
+
266
+ status: 'starting' | 'recording' | 'stopping' | 'stopped' | 'failed';
267
+
268
+ stepIndex: number;
269
+
270
+ stoppedAt: string | null;
271
+ }
272
+ }
172
273
  }
173
274
 
174
275
  export interface ExecutionAbortResponse {
@@ -179,6 +280,12 @@ export namespace ExecutionAbortResponse {
179
280
  export interface Data {
180
281
  id: string;
181
282
 
283
+ /**
284
+ * Device this execution targets (the job's deviceId). Null for device-less
285
+ * (event-only) runs.
286
+ */
287
+ deviceId: string | null;
288
+
182
289
  error: string | null;
183
290
 
184
291
  eventId: string | null;
@@ -189,7 +296,14 @@ export namespace ExecutionAbortResponse {
189
296
 
190
297
  flowName: string | null;
191
298
 
192
- kind: 'live' | 'dry_run';
299
+ /**
300
+ * Client/verify invocation key this row belongs to. Set on live custom fires (one
301
+ * row per device fan-out) and on verification runs; null for event/schedule live
302
+ * rows.
303
+ */
304
+ invocationId: string | null;
305
+
306
+ kind: 'live' | 'dry_run' | 'verification';
193
307
 
194
308
  recordingDeviceId: string | null;
195
309
 
@@ -259,6 +373,8 @@ export interface ExecutionListParams {
259
373
 
260
374
  from?: string | null;
261
375
 
376
+ invocationId?: string;
377
+
262
378
  orderBy?: 'startedAt' | 'finishedAt' | 'status';
263
379
 
264
380
  orderByDirection?: 'asc' | 'desc';
@@ -75,6 +75,12 @@ export namespace ActionListResponse {
75
75
  parentFlowActionId: string | null;
76
76
 
77
77
  position: number;
78
+
79
+ /**
80
+ * Selected for per-step recording under the flow's "selected_steps" recording
81
+ * policy.
82
+ */
83
+ recordingEnabled: boolean;
78
84
  }
79
85
 
80
86
  export namespace Data {
@@ -107,6 +113,12 @@ export namespace ActionAddResponse {
107
113
  parentFlowActionId: string | null;
108
114
 
109
115
  position: number;
116
+
117
+ /**
118
+ * Selected for per-step recording under the flow's "selected_steps" recording
119
+ * policy.
120
+ */
121
+ recordingEnabled: boolean;
110
122
  }
111
123
 
112
124
  export namespace Data {
@@ -143,6 +155,12 @@ export namespace ActionReplaceResponse {
143
155
  parentFlowActionId: string | null;
144
156
 
145
157
  position: number;
158
+
159
+ /**
160
+ * Selected for per-step recording under the flow's "selected_steps" recording
161
+ * policy.
162
+ */
163
+ recordingEnabled: boolean;
146
164
  }
147
165
 
148
166
  export namespace Data {
@@ -166,6 +184,8 @@ export interface ActionAddParams {
166
184
  overrides?: ActionAddParams.Overrides | null;
167
185
 
168
186
  parentFlowActionId?: string | null;
187
+
188
+ recordingEnabled?: boolean;
169
189
  }
170
190
 
171
191
  export namespace ActionAddParams {
@@ -179,6 +199,8 @@ export namespace ActionAddParams {
179
199
  nameOverride?: string;
180
200
 
181
201
  overrides?: Child.Overrides | null;
202
+
203
+ recordingEnabled?: boolean;
182
204
  }
183
205
 
184
206
  export namespace Child {
@@ -213,6 +235,8 @@ export namespace ActionReplaceParams {
213
235
  nameOverride?: string;
214
236
 
215
237
  overrides?: Action.Overrides | null;
238
+
239
+ recordingEnabled?: boolean;
216
240
  }
217
241
 
218
242
  export namespace Action {
@@ -226,6 +250,8 @@ export namespace ActionReplaceParams {
226
250
  nameOverride?: string;
227
251
 
228
252
  overrides?: Child.Overrides | null;
253
+
254
+ recordingEnabled?: boolean;
229
255
  }
230
256
 
231
257
  export namespace Child {