@mobilerun/sdk 5.6.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (333) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +0 -9
  3. package/client.d.mts +6 -24
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +6 -24
  6. package/client.d.ts.map +1 -1
  7. package/client.js +0 -18
  8. package/client.js.map +1 -1
  9. package/client.mjs +0 -18
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/apps.d.mts +30 -20
  13. package/resources/apps.d.mts.map +1 -1
  14. package/resources/apps.d.ts +30 -20
  15. package/resources/apps.d.ts.map +1 -1
  16. package/resources/apps.js +20 -10
  17. package/resources/apps.js.map +1 -1
  18. package/resources/apps.mjs +20 -10
  19. package/resources/apps.mjs.map +1 -1
  20. package/resources/connect/proxies.d.mts +8 -6
  21. package/resources/connect/proxies.d.mts.map +1 -1
  22. package/resources/connect/proxies.d.ts +8 -6
  23. package/resources/connect/proxies.d.ts.map +1 -1
  24. package/resources/connect/proxies.js +6 -4
  25. package/resources/connect/proxies.js.map +1 -1
  26. package/resources/connect/proxies.mjs +6 -4
  27. package/resources/connect/proxies.mjs.map +1 -1
  28. package/resources/connect/users.d.mts +4 -4
  29. package/resources/connect/users.d.ts +4 -4
  30. package/resources/connect/users.js +2 -2
  31. package/resources/connect/users.mjs +2 -2
  32. package/resources/devices/actions.d.mts +25 -5
  33. package/resources/devices/actions.d.mts.map +1 -1
  34. package/resources/devices/actions.d.ts +25 -5
  35. package/resources/devices/actions.d.ts.map +1 -1
  36. package/resources/devices/actions.js +5 -3
  37. package/resources/devices/actions.js.map +1 -1
  38. package/resources/devices/actions.mjs +5 -3
  39. package/resources/devices/actions.mjs.map +1 -1
  40. package/resources/devices/apps.d.mts +13 -0
  41. package/resources/devices/apps.d.mts.map +1 -1
  42. package/resources/devices/apps.d.ts +13 -0
  43. package/resources/devices/apps.d.ts.map +1 -1
  44. package/resources/devices/devices.d.mts +36 -13
  45. package/resources/devices/devices.d.mts.map +1 -1
  46. package/resources/devices/devices.d.ts +36 -13
  47. package/resources/devices/devices.d.ts.map +1 -1
  48. package/resources/devices/devices.js +13 -8
  49. package/resources/devices/devices.js.map +1 -1
  50. package/resources/devices/devices.mjs +13 -8
  51. package/resources/devices/devices.mjs.map +1 -1
  52. package/resources/devices/index.d.mts +2 -1
  53. package/resources/devices/index.d.mts.map +1 -1
  54. package/resources/devices/index.d.ts +2 -1
  55. package/resources/devices/index.d.ts.map +1 -1
  56. package/resources/devices/index.js +3 -1
  57. package/resources/devices/index.js.map +1 -1
  58. package/resources/devices/index.mjs +1 -0
  59. package/resources/devices/index.mjs.map +1 -1
  60. package/resources/devices/keyboard.d.mts +8 -2
  61. package/resources/devices/keyboard.d.mts.map +1 -1
  62. package/resources/devices/keyboard.d.ts +8 -2
  63. package/resources/devices/keyboard.d.ts.map +1 -1
  64. package/resources/devices/recordings.d.mts +28 -7
  65. package/resources/devices/recordings.d.mts.map +1 -1
  66. package/resources/devices/recordings.d.ts +28 -7
  67. package/resources/devices/recordings.d.ts.map +1 -1
  68. package/resources/devices/recordings.js +9 -0
  69. package/resources/devices/recordings.js.map +1 -1
  70. package/resources/devices/recordings.mjs +9 -0
  71. package/resources/devices/recordings.mjs.map +1 -1
  72. package/resources/devices/screenshots.d.mts +72 -0
  73. package/resources/devices/screenshots.d.mts.map +1 -0
  74. package/resources/devices/screenshots.d.ts +72 -0
  75. package/resources/devices/screenshots.d.ts.map +1 -0
  76. package/resources/devices/screenshots.js +57 -0
  77. package/resources/devices/screenshots.js.map +1 -0
  78. package/resources/devices/screenshots.mjs +53 -0
  79. package/resources/devices/screenshots.mjs.map +1 -0
  80. package/resources/devices/state.d.mts +11 -2
  81. package/resources/devices/state.d.mts.map +1 -1
  82. package/resources/devices/state.d.ts +11 -2
  83. package/resources/devices/state.d.ts.map +1 -1
  84. package/resources/devices/state.js +5 -2
  85. package/resources/devices/state.js.map +1 -1
  86. package/resources/devices/state.mjs +5 -2
  87. package/resources/devices/state.mjs.map +1 -1
  88. package/resources/files.d.mts +3 -3
  89. package/resources/files.d.ts +3 -3
  90. package/resources/files.js +3 -3
  91. package/resources/files.mjs +3 -3
  92. package/resources/index.d.mts +3 -8
  93. package/resources/index.d.mts.map +1 -1
  94. package/resources/index.d.ts +3 -8
  95. package/resources/index.d.ts.map +1 -1
  96. package/resources/index.js +1 -11
  97. package/resources/index.js.map +1 -1
  98. package/resources/index.mjs +0 -5
  99. package/resources/index.mjs.map +1 -1
  100. package/resources/mailboxes/connections.d.mts +4 -10
  101. package/resources/mailboxes/connections.d.mts.map +1 -1
  102. package/resources/mailboxes/connections.d.ts +4 -10
  103. package/resources/mailboxes/connections.d.ts.map +1 -1
  104. package/resources/mailboxes/connections.js +3 -4
  105. package/resources/mailboxes/connections.js.map +1 -1
  106. package/resources/mailboxes/connections.mjs +3 -4
  107. package/resources/mailboxes/connections.mjs.map +1 -1
  108. package/resources/mailboxes/mailboxes.d.mts +5 -4
  109. package/resources/mailboxes/mailboxes.d.mts.map +1 -1
  110. package/resources/mailboxes/mailboxes.d.ts +5 -4
  111. package/resources/mailboxes/mailboxes.d.ts.map +1 -1
  112. package/resources/mailboxes/mailboxes.js +5 -4
  113. package/resources/mailboxes/mailboxes.js.map +1 -1
  114. package/resources/mailboxes/mailboxes.mjs +5 -4
  115. package/resources/mailboxes/mailboxes.mjs.map +1 -1
  116. package/resources/models.d.mts +12 -23
  117. package/resources/models.d.mts.map +1 -1
  118. package/resources/models.d.ts +12 -23
  119. package/resources/models.d.ts.map +1 -1
  120. package/resources/models.js +3 -4
  121. package/resources/models.js.map +1 -1
  122. package/resources/models.mjs +3 -4
  123. package/resources/models.mjs.map +1 -1
  124. package/resources/numbers/index.d.mts +1 -1
  125. package/resources/numbers/index.d.mts.map +1 -1
  126. package/resources/numbers/index.d.ts +1 -1
  127. package/resources/numbers/index.d.ts.map +1 -1
  128. package/resources/numbers/index.js.map +1 -1
  129. package/resources/numbers/index.mjs.map +1 -1
  130. package/resources/numbers/messages.d.mts +11 -14
  131. package/resources/numbers/messages.d.mts.map +1 -1
  132. package/resources/numbers/messages.d.ts +11 -14
  133. package/resources/numbers/messages.d.ts.map +1 -1
  134. package/resources/numbers/messages.js +9 -7
  135. package/resources/numbers/messages.js.map +1 -1
  136. package/resources/numbers/messages.mjs +9 -7
  137. package/resources/numbers/messages.mjs.map +1 -1
  138. package/resources/numbers/numbers.d.mts +28 -32
  139. package/resources/numbers/numbers.d.mts.map +1 -1
  140. package/resources/numbers/numbers.d.ts +28 -32
  141. package/resources/numbers/numbers.d.ts.map +1 -1
  142. package/resources/numbers/numbers.js +1 -12
  143. package/resources/numbers/numbers.js.map +1 -1
  144. package/resources/numbers/numbers.mjs +1 -12
  145. package/resources/numbers/numbers.mjs.map +1 -1
  146. package/resources/proxies.d.mts +1 -87
  147. package/resources/proxies.d.mts.map +1 -1
  148. package/resources/proxies.d.ts +1 -87
  149. package/resources/proxies.d.ts.map +1 -1
  150. package/resources/proxies.js +0 -6
  151. package/resources/proxies.js.map +1 -1
  152. package/resources/proxies.mjs +0 -6
  153. package/resources/proxies.mjs.map +1 -1
  154. package/resources/tasks/tasks.d.mts +38 -136
  155. package/resources/tasks/tasks.d.mts.map +1 -1
  156. package/resources/tasks/tasks.d.ts +38 -136
  157. package/resources/tasks/tasks.d.ts.map +1 -1
  158. package/resources/tasks/tasks.js.map +1 -1
  159. package/resources/tasks/tasks.mjs.map +1 -1
  160. package/resources/webhooks/index.d.mts +1 -1
  161. package/resources/webhooks/index.d.mts.map +1 -1
  162. package/resources/webhooks/index.d.ts +1 -1
  163. package/resources/webhooks/index.d.ts.map +1 -1
  164. package/resources/webhooks/index.js.map +1 -1
  165. package/resources/webhooks/index.mjs.map +1 -1
  166. package/resources/webhooks/webhooks.d.mts +7 -43
  167. package/resources/webhooks/webhooks.d.mts.map +1 -1
  168. package/resources/webhooks/webhooks.d.ts +7 -43
  169. package/resources/webhooks/webhooks.d.ts.map +1 -1
  170. package/resources/webhooks/webhooks.js +6 -9
  171. package/resources/webhooks/webhooks.js.map +1 -1
  172. package/resources/webhooks/webhooks.mjs +6 -9
  173. package/resources/webhooks/webhooks.mjs.map +1 -1
  174. package/resources/workflows/events.d.mts +5 -2
  175. package/resources/workflows/events.d.mts.map +1 -1
  176. package/resources/workflows/events.d.ts +5 -2
  177. package/resources/workflows/events.d.ts.map +1 -1
  178. package/resources/workflows/executions/executions.d.mts +27 -31
  179. package/resources/workflows/executions/executions.d.mts.map +1 -1
  180. package/resources/workflows/executions/executions.d.ts +27 -31
  181. package/resources/workflows/executions/executions.d.ts.map +1 -1
  182. package/resources/workflows/executions/executions.js +2 -2
  183. package/resources/workflows/executions/executions.js.map +1 -1
  184. package/resources/workflows/executions/executions.mjs +2 -2
  185. package/resources/workflows/executions/executions.mjs.map +1 -1
  186. package/resources/workflows/flows/flows.d.mts +62 -26
  187. package/resources/workflows/flows/flows.d.mts.map +1 -1
  188. package/resources/workflows/flows/flows.d.ts +62 -26
  189. package/resources/workflows/flows/flows.d.ts.map +1 -1
  190. package/resources/workflows/flows/flows.js +7 -7
  191. package/resources/workflows/flows/flows.js.map +1 -1
  192. package/resources/workflows/flows/flows.mjs +7 -7
  193. package/resources/workflows/flows/flows.mjs.map +1 -1
  194. package/resources/workflows/triggers.d.mts +10 -13
  195. package/resources/workflows/triggers.d.mts.map +1 -1
  196. package/resources/workflows/triggers.d.ts +10 -13
  197. package/resources/workflows/triggers.d.ts.map +1 -1
  198. package/resources/workflows/triggers.js +6 -8
  199. package/resources/workflows/triggers.js.map +1 -1
  200. package/resources/workflows/triggers.mjs +6 -8
  201. package/resources/workflows/triggers.mjs.map +1 -1
  202. package/src/client.ts +0 -106
  203. package/src/resources/apps.ts +30 -20
  204. package/src/resources/connect/proxies.ts +8 -6
  205. package/src/resources/connect/users.ts +4 -4
  206. package/src/resources/devices/actions.ts +28 -5
  207. package/src/resources/devices/apps.ts +18 -0
  208. package/src/resources/devices/devices.ts +59 -11
  209. package/src/resources/devices/index.ts +11 -0
  210. package/src/resources/devices/keyboard.ts +9 -2
  211. package/src/resources/devices/recordings.ts +44 -6
  212. package/src/resources/devices/screenshots.ts +140 -0
  213. package/src/resources/devices/state.ts +12 -2
  214. package/src/resources/files.ts +3 -3
  215. package/src/resources/index.ts +0 -44
  216. package/src/resources/mailboxes/connections.ts +4 -11
  217. package/src/resources/mailboxes/mailboxes.ts +5 -4
  218. package/src/resources/models.ts +16 -23
  219. package/src/resources/numbers/index.ts +0 -1
  220. package/src/resources/numbers/messages.ts +11 -15
  221. package/src/resources/numbers/numbers.ts +31 -40
  222. package/src/resources/proxies.ts +0 -110
  223. package/src/resources/tasks/tasks.ts +42 -136
  224. package/src/resources/webhooks/index.ts +0 -1
  225. package/src/resources/webhooks/webhooks.ts +6 -60
  226. package/src/resources/workflows/events.ts +5 -2
  227. package/src/resources/workflows/executions/executions.ts +27 -31
  228. package/src/resources/workflows/flows/flows.ts +63 -26
  229. package/src/resources/workflows/triggers.ts +10 -13
  230. package/src/version.ts +1 -1
  231. package/version.d.mts +1 -1
  232. package/version.d.ts +1 -1
  233. package/version.js +1 -1
  234. package/version.mjs +1 -1
  235. package/resources/app-events/app-events.d.mts +0 -81
  236. package/resources/app-events/app-events.d.mts.map +0 -1
  237. package/resources/app-events/app-events.d.ts +0 -81
  238. package/resources/app-events/app-events.d.ts.map +0 -1
  239. package/resources/app-events/app-events.js +0 -33
  240. package/resources/app-events/app-events.js.map +0 -1
  241. package/resources/app-events/app-events.mjs +0 -28
  242. package/resources/app-events/app-events.mjs.map +0 -1
  243. package/resources/app-events/catalog.d.mts +0 -64
  244. package/resources/app-events/catalog.d.mts.map +0 -1
  245. package/resources/app-events/catalog.d.ts +0 -64
  246. package/resources/app-events/catalog.d.ts.map +0 -1
  247. package/resources/app-events/catalog.js +0 -25
  248. package/resources/app-events/catalog.js.map +0 -1
  249. package/resources/app-events/catalog.mjs +0 -21
  250. package/resources/app-events/catalog.mjs.map +0 -1
  251. package/resources/app-events/index.d.mts +0 -3
  252. package/resources/app-events/index.d.mts.map +0 -1
  253. package/resources/app-events/index.d.ts +0 -3
  254. package/resources/app-events/index.d.ts.map +0 -1
  255. package/resources/app-events/index.js +0 -9
  256. package/resources/app-events/index.js.map +0 -1
  257. package/resources/app-events/index.mjs +0 -4
  258. package/resources/app-events/index.mjs.map +0 -1
  259. package/resources/app-events.d.mts +0 -2
  260. package/resources/app-events.d.mts.map +0 -1
  261. package/resources/app-events.d.ts +0 -2
  262. package/resources/app-events.d.ts.map +0 -1
  263. package/resources/app-events.js +0 -6
  264. package/resources/app-events.js.map +0 -1
  265. package/resources/app-events.mjs +0 -3
  266. package/resources/app-events.mjs.map +0 -1
  267. package/resources/carriers.d.mts +0 -331
  268. package/resources/carriers.d.mts.map +0 -1
  269. package/resources/carriers.d.ts +0 -331
  270. package/resources/carriers.d.ts.map +0 -1
  271. package/resources/carriers.js +0 -46
  272. package/resources/carriers.js.map +0 -1
  273. package/resources/carriers.mjs +0 -42
  274. package/resources/carriers.mjs.map +0 -1
  275. package/resources/notifications.d.mts +0 -112
  276. package/resources/notifications.d.mts.map +0 -1
  277. package/resources/notifications.d.ts +0 -112
  278. package/resources/notifications.d.ts.map +0 -1
  279. package/resources/notifications.js +0 -72
  280. package/resources/notifications.js.map +0 -1
  281. package/resources/notifications.mjs +0 -68
  282. package/resources/notifications.mjs.map +0 -1
  283. package/resources/profiles.d.mts +0 -147
  284. package/resources/profiles.d.mts.map +0 -1
  285. package/resources/profiles.d.ts +0 -147
  286. package/resources/profiles.d.ts.map +0 -1
  287. package/resources/profiles.js +0 -40
  288. package/resources/profiles.js.map +0 -1
  289. package/resources/profiles.mjs +0 -36
  290. package/resources/profiles.mjs.map +0 -1
  291. package/resources/store/apps.d.mts +0 -140
  292. package/resources/store/apps.d.mts.map +0 -1
  293. package/resources/store/apps.d.ts +0 -140
  294. package/resources/store/apps.d.ts.map +0 -1
  295. package/resources/store/apps.js +0 -31
  296. package/resources/store/apps.js.map +0 -1
  297. package/resources/store/apps.mjs +0 -27
  298. package/resources/store/apps.mjs.map +0 -1
  299. package/resources/store/index.d.mts +0 -3
  300. package/resources/store/index.d.mts.map +0 -1
  301. package/resources/store/index.d.ts +0 -3
  302. package/resources/store/index.d.ts.map +0 -1
  303. package/resources/store/index.js +0 -9
  304. package/resources/store/index.js.map +0 -1
  305. package/resources/store/index.mjs +0 -4
  306. package/resources/store/index.mjs.map +0 -1
  307. package/resources/store/store.d.mts +0 -20
  308. package/resources/store/store.d.mts.map +0 -1
  309. package/resources/store/store.d.ts +0 -20
  310. package/resources/store/store.d.ts.map +0 -1
  311. package/resources/store/store.js +0 -23
  312. package/resources/store/store.js.map +0 -1
  313. package/resources/store/store.mjs +0 -18
  314. package/resources/store/store.mjs.map +0 -1
  315. package/resources/store.d.mts +0 -2
  316. package/resources/store.d.mts.map +0 -1
  317. package/resources/store.d.ts +0 -2
  318. package/resources/store.d.ts.map +0 -1
  319. package/resources/store.js +0 -6
  320. package/resources/store.js.map +0 -1
  321. package/resources/store.mjs +0 -3
  322. package/resources/store.mjs.map +0 -1
  323. package/src/resources/app-events/app-events.ts +0 -133
  324. package/src/resources/app-events/catalog.ts +0 -100
  325. package/src/resources/app-events/index.ts +0 -9
  326. package/src/resources/app-events.ts +0 -3
  327. package/src/resources/carriers.ts +0 -508
  328. package/src/resources/notifications.ts +0 -155
  329. package/src/resources/profiles.ts +0 -232
  330. package/src/resources/store/apps.ts +0 -993
  331. package/src/resources/store/index.ts +0 -10
  332. package/src/resources/store/store.ts +0 -36
  333. package/src/resources/store.ts +0 -3
@@ -33,8 +33,8 @@ export class Executions extends APIResource {
33
33
  }
34
34
 
35
35
  /**
36
- * Signals the worker to stop the execution between steps and marks it cancelled.
37
- * Idempotent-ish: already-terminal executions return 409.
36
+ * Stops the execution between steps and marks it cancelled. Idempotent-ish:
37
+ * already-terminal executions return 409.
38
38
  */
39
39
  abort(executionID: string, options?: RequestOptions): APIPromise<ExecutionAbortResponse> {
40
40
  return this._client.post(path`/executions/${executionID}/abort`, options);
@@ -103,17 +103,16 @@ export namespace ExecutionRetrieveResponse {
103
103
  kind: 'live' | 'dry_run' | 'verification';
104
104
 
105
105
  /**
106
- * Live progress read from step_progress; null for runs started before this
107
- * feature.
106
+ * Live progress; null for runs started before this feature.
108
107
  */
109
108
  progress: Data.Progress | null;
110
109
 
111
110
  recordingDeviceId: string | null;
112
111
 
113
112
  /**
114
- * Device-recording id (devices-api) for this execution, set once the worker starts
115
- * a recording. Null when the flow has recording disabled, no device is bound, or
116
- * the recording failed to start.
113
+ * Device recording id for this execution, set once recording starts. Null when the
114
+ * flow has recording disabled, no device is bound, or the recording failed to
115
+ * start.
117
116
  */
118
117
  recordingId: string | null;
119
118
 
@@ -124,8 +123,9 @@ export namespace ExecutionRetrieveResponse {
124
123
  recordings: Array<Data.Recording>;
125
124
 
126
125
  /**
127
- * Screenshots captured by tasks.run/agent.run steps, ordered by seq. Image bytes
128
- * are never returned here — fetch a fresh signed URL via GET
126
+ * Screenshots captured by tasks.run/agent.run steps and saved by scripts into the
127
+ * flow screenshots recording (source recording), ordered by seq. Image bytes are
128
+ * never returned here — fetch a fresh signed URL via GET
129
129
  * /executions/{id}/screenshots/{screenshotId}.
130
130
  */
131
131
  screenshots: Array<Data.Screenshot>;
@@ -141,10 +141,9 @@ export namespace ExecutionRetrieveResponse {
141
141
  /**
142
142
  * Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
143
143
  * `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
144
- * step that opted into a verdict — null otherwise. Table-backed steps (current
145
- * executions) also carry a `status` string (e.g. success/failed/stopped, see
146
- * deriveStepStatus); it is optional and absent on legacy blob-only executions, so
147
- * clients must not assume its presence.
144
+ * step that opted into a verdict — null otherwise. Steps of current executions
145
+ * also carry a `status` string (e.g. success/failed/stopped); it is optional and
146
+ * absent on older executions, so clients must not assume its presence.
148
147
  */
149
148
  result?: unknown;
150
149
  }
@@ -153,7 +152,7 @@ export namespace ExecutionRetrieveResponse {
153
152
  export interface Delivery {
154
153
  artifact: 'recording' | 'file' | 'screenshot';
155
154
 
156
- destination: 'one_drive' | 'google_drive';
155
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
157
156
 
158
157
  errorCode: string | null;
159
158
 
@@ -183,8 +182,7 @@ export namespace ExecutionRetrieveResponse {
183
182
  }
184
183
 
185
184
  /**
186
- * Live progress read from step_progress; null for runs started before this
187
- * feature.
185
+ * Live progress; null for runs started before this feature.
188
186
  */
189
187
  export interface Progress {
190
188
  currentIndex: number | null;
@@ -255,7 +253,7 @@ export namespace ExecutionRetrieveResponse {
255
253
 
256
254
  seq: number;
257
255
 
258
- source: 'task' | 'agent';
256
+ source: 'task' | 'agent' | 'recording';
259
257
 
260
258
  stepIndex: number;
261
259
 
@@ -304,9 +302,9 @@ export namespace ExecutionListResponse {
304
302
  recordingDeviceId: string | null;
305
303
 
306
304
  /**
307
- * Device-recording id (devices-api) for this execution, set once the worker starts
308
- * a recording. Null when the flow has recording disabled, no device is bound, or
309
- * the recording failed to start.
305
+ * Device recording id for this execution, set once recording starts. Null when the
306
+ * flow has recording disabled, no device is bound, or the recording failed to
307
+ * start.
310
308
  */
311
309
  recordingId: string | null;
312
310
 
@@ -327,10 +325,9 @@ export namespace ExecutionListResponse {
327
325
  /**
328
326
  * Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
329
327
  * `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
330
- * step that opted into a verdict — null otherwise. Table-backed steps (current
331
- * executions) also carry a `status` string (e.g. success/failed/stopped, see
332
- * deriveStepStatus); it is optional and absent on legacy blob-only executions, so
333
- * clients must not assume its presence.
328
+ * step that opted into a verdict — null otherwise. Steps of current executions
329
+ * also carry a `status` string (e.g. success/failed/stopped); it is optional and
330
+ * absent on older executions, so clients must not assume its presence.
334
331
  */
335
332
  result?: unknown;
336
333
  }
@@ -404,9 +401,9 @@ export namespace ExecutionAbortResponse {
404
401
  recordingDeviceId: string | null;
405
402
 
406
403
  /**
407
- * Device-recording id (devices-api) for this execution, set once the worker starts
408
- * a recording. Null when the flow has recording disabled, no device is bound, or
409
- * the recording failed to start.
404
+ * Device recording id for this execution, set once recording starts. Null when the
405
+ * flow has recording disabled, no device is bound, or the recording failed to
406
+ * start.
410
407
  */
411
408
  recordingId: string | null;
412
409
 
@@ -421,10 +418,9 @@ export namespace ExecutionAbortResponse {
421
418
  /**
422
419
  * Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
423
420
  * `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
424
- * step that opted into a verdict — null otherwise. Table-backed steps (current
425
- * executions) also carry a `status` string (e.g. success/failed/stopped, see
426
- * deriveStepStatus); it is optional and absent on legacy blob-only executions, so
427
- * clients must not assume its presence.
421
+ * step that opted into a verdict — null otherwise. Steps of current executions
422
+ * also carry a `status` string (e.g. success/failed/stopped); it is optional and
423
+ * absent on older executions, so clients must not assume its presence.
428
424
  */
429
425
  result?: unknown;
430
426
  }
@@ -92,9 +92,9 @@ export class Flows extends APIResource {
92
92
 
93
93
  /**
94
94
  * Returns an owner-scoped snapshot of finite included workflow-agent capacity
95
- * after locally stored enabled and disabled agents. Available only while slot
96
- * enforcement is enabled; otherwise returns 503. This is advisory; create and
97
- * clone perform authoritative admission under an owner lock.
95
+ * after accounting for enabled and disabled agents. Returns 503 when a finite
96
+ * capacity snapshot is unavailable, including for unlimited plans. This is
97
+ * advisory; create and clone perform the authoritative capacity check.
98
98
  */
99
99
  capacity(options?: RequestOptions): APIPromise<FlowCapacityResponse> {
100
100
  return this._client.get('/flows/capacity', options);
@@ -121,8 +121,8 @@ export class Flows extends APIResource {
121
121
  * Return the recording/delivery readiness for a flow (recording mode, whether
122
122
  * delivery can include the recording, whether a files.upload action exists, the
123
123
  * first direct OneDrive/Google Drive upload step if any) plus, per destination,
124
- * whether the flow owner has an active integrations-api connection. Returns 404 if
125
- * the flow does not exist.
124
+ * whether the flow owner has an active connection. Returns 404 if the flow does
125
+ * not exist.
126
126
  */
127
127
  deliveryOptions(flowID: string, options?: RequestOptions): APIPromise<FlowDeliveryOptionsResponse> {
128
128
  return this._client.get(path`/flows/${flowID}/delivery-options`, options);
@@ -203,8 +203,8 @@ export class Flows extends APIResource {
203
203
  }
204
204
 
205
205
  /**
206
- * Run a bound, deduplicated **verification** of this flow on exactly one device
207
- * through the real worker.
206
+ * Run a bound, deduplicated **verification** of this flow on exactly one device as
207
+ * a real run.
208
208
  *
209
209
  * Unlike a normal trigger firing, verification:
210
210
  *
@@ -304,7 +304,7 @@ export namespace FlowCreateResponse {
304
304
  status: 'healthy' | 'failing' | 'blocked';
305
305
 
306
306
  /**
307
- * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
307
+ * Template-resolver semantics this flow runs under. 1 = legacy
308
308
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
309
309
  * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
310
310
  * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
@@ -324,8 +324,11 @@ export namespace FlowCreateResponse {
324
324
 
325
325
  export namespace Data {
326
326
  export interface Delivery {
327
- destination: 'one_drive' | 'google_drive';
327
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
328
328
 
329
+ /**
330
+ * not allowed when destination is mobilerun
331
+ */
329
332
  folder?: string;
330
333
 
331
334
  recording?: Delivery.Recording;
@@ -421,7 +424,7 @@ export namespace FlowRetrieveResponse {
421
424
  status: 'healthy' | 'failing' | 'blocked';
422
425
 
423
426
  /**
424
- * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
427
+ * Template-resolver semantics this flow runs under. 1 = legacy
425
428
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
426
429
  * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
427
430
  * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
@@ -441,8 +444,11 @@ export namespace FlowRetrieveResponse {
441
444
 
442
445
  export namespace Data {
443
446
  export interface Delivery {
444
- destination: 'one_drive' | 'google_drive';
447
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
445
448
 
449
+ /**
450
+ * not allowed when destination is mobilerun
451
+ */
446
452
  folder?: string;
447
453
 
448
454
  recording?: Delivery.Recording;
@@ -538,7 +544,7 @@ export namespace FlowUpdateResponse {
538
544
  status: 'healthy' | 'failing' | 'blocked';
539
545
 
540
546
  /**
541
- * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
547
+ * Template-resolver semantics this flow runs under. 1 = legacy
542
548
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
543
549
  * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
544
550
  * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
@@ -558,8 +564,11 @@ export namespace FlowUpdateResponse {
558
564
 
559
565
  export namespace Data {
560
566
  export interface Delivery {
561
- destination: 'one_drive' | 'google_drive';
567
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
562
568
 
569
+ /**
570
+ * not allowed when destination is mobilerun
571
+ */
563
572
  folder?: string;
564
573
 
565
574
  recording?: Delivery.Recording;
@@ -657,7 +666,7 @@ export namespace FlowListResponse {
657
666
  status: 'healthy' | 'failing' | 'blocked';
658
667
 
659
668
  /**
660
- * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
669
+ * Template-resolver semantics this flow runs under. 1 = legacy
661
670
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
662
671
  * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
663
672
  * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
@@ -677,8 +686,11 @@ export namespace FlowListResponse {
677
686
 
678
687
  export namespace Item {
679
688
  export interface Delivery {
680
- destination: 'one_drive' | 'google_drive';
689
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
681
690
 
691
+ /**
692
+ * not allowed when destination is mobilerun
693
+ */
682
694
  folder?: string;
683
695
 
684
696
  recording?: Delivery.Recording;
@@ -778,7 +790,7 @@ export namespace FlowActivateResponse {
778
790
  status: 'healthy' | 'failing' | 'blocked';
779
791
 
780
792
  /**
781
- * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
793
+ * Template-resolver semantics this flow runs under. 1 = legacy
782
794
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
783
795
  * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
784
796
  * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
@@ -798,8 +810,11 @@ export namespace FlowActivateResponse {
798
810
 
799
811
  export namespace Data {
800
812
  export interface Delivery {
801
- destination: 'one_drive' | 'google_drive';
813
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
802
814
 
815
+ /**
816
+ * not allowed when destination is mobilerun
817
+ */
803
818
  folder?: string;
804
819
 
805
820
  recording?: Delivery.Recording;
@@ -909,7 +924,7 @@ export namespace FlowCloneResponse {
909
924
  status: 'healthy' | 'failing' | 'blocked';
910
925
 
911
926
  /**
912
- * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
927
+ * Template-resolver semantics this flow runs under. 1 = legacy
913
928
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
914
929
  * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
915
930
  * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
@@ -929,8 +944,11 @@ export namespace FlowCloneResponse {
929
944
 
930
945
  export namespace Data {
931
946
  export interface Delivery {
932
- destination: 'one_drive' | 'google_drive';
947
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
933
948
 
949
+ /**
950
+ * not allowed when destination is mobilerun
951
+ */
934
952
  folder?: string;
935
953
 
936
954
  recording?: Delivery.Recording;
@@ -959,7 +977,7 @@ export namespace FlowDeliveryOptionsResponse {
959
977
  canDeliverRecording: boolean;
960
978
 
961
979
  /**
962
- * Delivery destinations in registry order.
980
+ * Delivery destinations in their canonical order.
963
981
  */
964
982
  destinations: Array<Data.Destination>;
965
983
 
@@ -978,7 +996,7 @@ export namespace FlowDeliveryOptionsResponse {
978
996
 
979
997
  iconUrl: string | null;
980
998
 
981
- key: 'one_drive' | 'google_drive';
999
+ key: 'mobilerun' | 'one_drive' | 'google_drive';
982
1000
 
983
1001
  label: string;
984
1002
  }
@@ -1263,7 +1281,7 @@ export namespace FlowUnblockResponse {
1263
1281
  status: 'healthy' | 'failing' | 'blocked';
1264
1282
 
1265
1283
  /**
1266
- * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
1284
+ * Template-resolver semantics this flow runs under. 1 = legacy
1267
1285
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
1268
1286
  * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
1269
1287
  * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
@@ -1283,8 +1301,11 @@ export namespace FlowUnblockResponse {
1283
1301
 
1284
1302
  export namespace Data {
1285
1303
  export interface Delivery {
1286
- destination: 'one_drive' | 'google_drive';
1304
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
1287
1305
 
1306
+ /**
1307
+ * not allowed when destination is mobilerun
1308
+ */
1288
1309
  folder?: string;
1289
1310
 
1290
1311
  recording?: Delivery.Recording;
@@ -1472,8 +1493,11 @@ export namespace FlowCreateParams {
1472
1493
  }
1473
1494
 
1474
1495
  export interface Delivery {
1475
- destination: 'one_drive' | 'google_drive';
1496
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
1476
1497
 
1498
+ /**
1499
+ * not allowed when destination is mobilerun
1500
+ */
1477
1501
  folder?: string;
1478
1502
 
1479
1503
  recording?: Delivery.Recording;
@@ -1537,8 +1561,11 @@ export interface FlowUpdateParams {
1537
1561
 
1538
1562
  export namespace FlowUpdateParams {
1539
1563
  export interface Delivery {
1540
- destination: 'one_drive' | 'google_drive';
1564
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
1541
1565
 
1566
+ /**
1567
+ * not allowed when destination is mobilerun
1568
+ */
1542
1569
  folder?: string;
1543
1570
 
1544
1571
  recording?: Delivery.Recording;
@@ -1600,6 +1627,13 @@ export interface FlowDryRunParams {
1600
1627
  }
1601
1628
 
1602
1629
  export interface FlowRunParams {
1630
+ /**
1631
+ * Record and keep this run's scripts.run screenshots
1632
+ * (device.screenshot(save=True)) even without flow delivery. Used for a one-off
1633
+ * proof run.
1634
+ */
1635
+ captureScreenshots?: boolean;
1636
+
1603
1637
  payload?: { [key: string]: unknown };
1604
1638
  }
1605
1639
 
@@ -1744,8 +1778,11 @@ export namespace FlowValidateParams {
1744
1778
  }
1745
1779
 
1746
1780
  export interface Delivery {
1747
- destination: 'one_drive' | 'google_drive';
1781
+ destination: 'mobilerun' | 'one_drive' | 'google_drive';
1748
1782
 
1783
+ /**
1784
+ * not allowed when destination is mobilerun
1785
+ */
1749
1786
  folder?: string;
1750
1787
 
1751
1788
  recording?: Delivery.Recording;
@@ -72,7 +72,7 @@ export class Triggers extends APIResource {
72
72
  * Payload validation:
73
73
  *
74
74
  * - If the trigger has a `customPayloadSchema`, the payload is validated against
75
- * it (JSON Schema via AJV).
75
+ * it (JSON Schema).
76
76
  * - If no schema is configured, the payload only needs to be a JSON object — any
77
77
  * keys and values are accepted.
78
78
  *
@@ -81,13 +81,11 @@ export class Triggers extends APIResource {
81
81
  *
82
82
  * Supports an optional `Idempotency-Key` header (1-255 printable ASCII
83
83
  * characters), which maps to the derived `invocationId` used for fan-out
84
- * deduplication (the deprecated `invocationId` body field wins when both are
85
- * supplied, and a mismatch between them is logged). The payload is bound to the
86
- * key on the first accepted fire, before fan-out. A repeat with the same key and
87
- * an identical payload returns 202 with `Idempotent-Replayed: true`
88
- * (`deduplicated: true` when flows were skipped; `enqueuedCount` counts only
89
- * executions enqueued by that call); a changed payload under the same key returns
90
- * 422 `idempotency_key_reused`.
84
+ * deduplication. The payload is bound to the key on the first accepted fire,
85
+ * before fan-out. A repeat with the same key and an identical payload returns 202
86
+ * with `Idempotent-Replayed: true` (`deduplicated: true` when flows were skipped;
87
+ * `enqueuedCount` counts only executions enqueued by that call); a changed payload
88
+ * under the same key returns 422 `idempotency_key_reused`.
91
89
  */
92
90
  fire(
93
91
  triggerID: string,
@@ -419,8 +417,8 @@ export interface TriggerDeleteResponse {
419
417
  export interface TriggerFireResponse {
420
418
  /**
421
419
  * True when at least one attached flow was skipped because it already had an
422
- * execution for this (flow, invocationId). Only ever true when the client supplied
423
- * invocationId.
420
+ * execution for this (flow, invocationId). Only ever true when the request carried
421
+ * an `Idempotency-Key`.
424
422
  */
425
423
  deduplicated: boolean;
426
424
 
@@ -432,9 +430,8 @@ export interface TriggerFireResponse {
432
430
  enqueuedCount: number;
433
431
 
434
432
  /**
435
- * Unique ID for this fire invocation (echoes the client-supplied invocationId, or
436
- * a generated one). Job IDs in the execution queue are derived from it (one per
437
- * enqueued flow).
433
+ * Unique ID for this fire invocation (derived from the `Idempotency-Key` header
434
+ * when one is sent, otherwise generated).
438
435
  */
439
436
  invocationId: string;
440
437
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.6.0'; // x-release-please-version
1
+ export const VERSION = '6.0.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.6.0";
1
+ export declare const VERSION = "6.0.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.6.0";
1
+ export declare const VERSION = "6.0.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '5.6.0'; // x-release-please-version
4
+ exports.VERSION = '6.0.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.6.0'; // x-release-please-version
1
+ export const VERSION = '6.0.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,81 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import * as Shared from "../shared.mjs";
3
- import * as CatalogAPI from "./catalog.mjs";
4
- import { Catalog, CatalogListResponse, CatalogRetrieveResponse } from "./catalog.mjs";
5
- import { APIPromise } from "../../core/api-promise.mjs";
6
- import { RequestOptions } from "../../internal/request-options.mjs";
7
- export declare class AppEvents extends APIResource {
8
- catalog: CatalogAPI.Catalog;
9
- /**
10
- * Fetch a single structured app event by its ID, including its typed payload,
11
- * source, and originating device. Returns 404 if no event matches.
12
- */
13
- retrieve(id: string, options?: RequestOptions): APIPromise<AppEventRetrieveResponse>;
14
- /**
15
- * Structured, app-scoped events (e.g. app.whatsapp.message_received) derived from
16
- * raw device notifications. Typed columns — not raw payloads (those stay in the
17
- * event log).
18
- */
19
- list(query?: AppEventListParams | null | undefined, options?: RequestOptions): APIPromise<AppEventListResponse>;
20
- }
21
- export interface AppEventRetrieveResponse {
22
- data: AppEventRetrieveResponse.Data;
23
- }
24
- export declare namespace AppEventRetrieveResponse {
25
- interface Data {
26
- id: string;
27
- createdAt: string | null;
28
- createdBy: string | null;
29
- deviceId: string | null;
30
- eventType: string;
31
- occurredAt: string | null;
32
- ownerId: string;
33
- payload: {
34
- [key: string]: unknown;
35
- };
36
- rawEventId: string | null;
37
- source: 'app' | 'system' | 'device' | 'webhook';
38
- /**
39
- * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
40
- */
41
- userId: string;
42
- }
43
- }
44
- export interface AppEventListResponse {
45
- items: Array<AppEventListResponse.Item>;
46
- pagination: Shared.Pagination;
47
- }
48
- export declare namespace AppEventListResponse {
49
- interface Item {
50
- id: string;
51
- createdAt: string | null;
52
- createdBy: string | null;
53
- deviceId: string | null;
54
- eventType: string;
55
- occurredAt: string | null;
56
- ownerId: string;
57
- payload: {
58
- [key: string]: unknown;
59
- };
60
- rawEventId: string | null;
61
- source: 'app' | 'system' | 'device' | 'webhook';
62
- /**
63
- * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
64
- */
65
- userId: string;
66
- }
67
- }
68
- export interface AppEventListParams {
69
- deviceId?: string;
70
- eventType?: string;
71
- from?: string | null;
72
- page?: number;
73
- pageSize?: number;
74
- source?: 'app' | 'system' | 'device' | 'webhook';
75
- to?: string | null;
76
- }
77
- export declare namespace AppEvents {
78
- export { type AppEventRetrieveResponse as AppEventRetrieveResponse, type AppEventListResponse as AppEventListResponse, type AppEventListParams as AppEventListParams, };
79
- export { Catalog as Catalog, type CatalogRetrieveResponse as CatalogRetrieveResponse, type CatalogListResponse as CatalogListResponse, };
80
- }
81
- //# sourceMappingURL=app-events.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-events.d.mts","sourceRoot":"","sources":["../../src/resources/app-events/app-events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,sBAAkB;AAClF,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIpF;;;;OAIG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;CAGpC;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,wBAAwB,CAAC,IAAI,CAAC;CACrC;AAED,yBAAiB,wBAAwB,C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,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IAEjD,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB;AAID,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -1,81 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as Shared from "../shared.js";
3
- import * as CatalogAPI from "./catalog.js";
4
- import { Catalog, CatalogListResponse, CatalogRetrieveResponse } from "./catalog.js";
5
- import { APIPromise } from "../../core/api-promise.js";
6
- import { RequestOptions } from "../../internal/request-options.js";
7
- export declare class AppEvents extends APIResource {
8
- catalog: CatalogAPI.Catalog;
9
- /**
10
- * Fetch a single structured app event by its ID, including its typed payload,
11
- * source, and originating device. Returns 404 if no event matches.
12
- */
13
- retrieve(id: string, options?: RequestOptions): APIPromise<AppEventRetrieveResponse>;
14
- /**
15
- * Structured, app-scoped events (e.g. app.whatsapp.message_received) derived from
16
- * raw device notifications. Typed columns — not raw payloads (those stay in the
17
- * event log).
18
- */
19
- list(query?: AppEventListParams | null | undefined, options?: RequestOptions): APIPromise<AppEventListResponse>;
20
- }
21
- export interface AppEventRetrieveResponse {
22
- data: AppEventRetrieveResponse.Data;
23
- }
24
- export declare namespace AppEventRetrieveResponse {
25
- interface Data {
26
- id: string;
27
- createdAt: string | null;
28
- createdBy: string | null;
29
- deviceId: string | null;
30
- eventType: string;
31
- occurredAt: string | null;
32
- ownerId: string;
33
- payload: {
34
- [key: string]: unknown;
35
- };
36
- rawEventId: string | null;
37
- source: 'app' | 'system' | 'device' | 'webhook';
38
- /**
39
- * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
40
- */
41
- userId: string;
42
- }
43
- }
44
- export interface AppEventListResponse {
45
- items: Array<AppEventListResponse.Item>;
46
- pagination: Shared.Pagination;
47
- }
48
- export declare namespace AppEventListResponse {
49
- interface Item {
50
- id: string;
51
- createdAt: string | null;
52
- createdBy: string | null;
53
- deviceId: string | null;
54
- eventType: string;
55
- occurredAt: string | null;
56
- ownerId: string;
57
- payload: {
58
- [key: string]: unknown;
59
- };
60
- rawEventId: string | null;
61
- source: 'app' | 'system' | 'device' | 'webhook';
62
- /**
63
- * @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
64
- */
65
- userId: string;
66
- }
67
- }
68
- export interface AppEventListParams {
69
- deviceId?: string;
70
- eventType?: string;
71
- from?: string | null;
72
- page?: number;
73
- pageSize?: number;
74
- source?: 'app' | 'system' | 'device' | 'webhook';
75
- to?: string | null;
76
- }
77
- export declare namespace AppEvents {
78
- export { type AppEventRetrieveResponse as AppEventRetrieveResponse, type AppEventListResponse as AppEventListResponse, type AppEventListParams as AppEventListParams, };
79
- export { Catalog as Catalog, type CatalogRetrieveResponse as CatalogRetrieveResponse, type CatalogListResponse as CatalogListResponse, };
80
- }
81
- //# sourceMappingURL=app-events.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-events.d.ts","sourceRoot":"","sources":["../../src/resources/app-events/app-events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,UAAU,qBAAkB;AAC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