@mobilerun/sdk 5.6.0 → 6.0.1
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.
- package/CHANGELOG.md +33 -0
- package/README.md +0 -9
- package/client.d.mts +8 -26
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -26
- package/client.d.ts.map +1 -1
- package/client.js +0 -18
- package/client.js.map +1 -1
- package/client.mjs +0 -18
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +30 -20
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +30 -20
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +20 -10
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +20 -10
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +19 -0
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +19 -0
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/connect/proxies.d.mts +8 -6
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +8 -6
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +6 -4
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +6 -4
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/connect/users.d.mts +4 -4
- package/resources/connect/users.d.ts +4 -4
- package/resources/connect/users.js +2 -2
- package/resources/connect/users.mjs +2 -2
- package/resources/devices/actions.d.mts +25 -5
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +25 -5
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +5 -3
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +5 -3
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +25 -10
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +25 -10
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +12 -10
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +12 -10
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +60 -22
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +60 -22
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +25 -16
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +25 -16
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +3 -3
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +3 -3
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +3 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +1 -1
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +8 -2
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +8 -2
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/recordings.d.mts +28 -7
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +28 -7
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/recordings.js +9 -0
- package/resources/devices/recordings.js.map +1 -1
- package/resources/devices/recordings.mjs +9 -0
- package/resources/devices/recordings.mjs.map +1 -1
- package/resources/devices/screenshots.d.mts +72 -0
- package/resources/devices/screenshots.d.mts.map +1 -0
- package/resources/devices/screenshots.d.ts +72 -0
- package/resources/devices/screenshots.d.ts.map +1 -0
- package/resources/devices/screenshots.js +57 -0
- package/resources/devices/screenshots.js.map +1 -0
- package/resources/devices/screenshots.mjs +53 -0
- package/resources/devices/screenshots.mjs.map +1 -0
- package/resources/devices/state.d.mts +11 -2
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +11 -2
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +5 -2
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +5 -2
- package/resources/devices/state.mjs.map +1 -1
- package/resources/files.d.mts +3 -3
- package/resources/files.d.ts +3 -3
- package/resources/files.js +3 -3
- package/resources/files.mjs +3 -3
- package/resources/index.d.mts +4 -9
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -9
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -11
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -5
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +4 -10
- package/resources/mailboxes/connections.d.mts.map +1 -1
- package/resources/mailboxes/connections.d.ts +4 -10
- package/resources/mailboxes/connections.d.ts.map +1 -1
- package/resources/mailboxes/connections.js +3 -4
- package/resources/mailboxes/connections.js.map +1 -1
- package/resources/mailboxes/connections.mjs +3 -4
- package/resources/mailboxes/connections.mjs.map +1 -1
- package/resources/mailboxes/mailboxes.d.mts +5 -4
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +5 -4
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +5 -4
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +5 -4
- package/resources/mailboxes/mailboxes.mjs.map +1 -1
- package/resources/messages/messages.d.mts +12 -0
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +12 -0
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/models.d.mts +12 -23
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +12 -23
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -4
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -4
- package/resources/models.mjs.map +1 -1
- package/resources/numbers/index.d.mts +1 -1
- package/resources/numbers/index.d.mts.map +1 -1
- package/resources/numbers/index.d.ts +1 -1
- package/resources/numbers/index.d.ts.map +1 -1
- package/resources/numbers/index.js.map +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +23 -14
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +23 -14
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +9 -7
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +9 -7
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +136 -32
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +136 -32
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +1 -12
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +1 -12
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/proxies.d.mts +1 -87
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +1 -87
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +0 -6
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +0 -6
- package/resources/proxies.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +42 -138
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +42 -138
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +1 -1
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -1
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +7 -43
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +7 -43
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +6 -9
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +6 -9
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/events.d.mts +6 -2
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +6 -2
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +37 -31
- package/resources/workflows/executions/executions.d.mts.map +1 -1
- package/resources/workflows/executions/executions.d.ts +37 -31
- package/resources/workflows/executions/executions.d.ts.map +1 -1
- package/resources/workflows/executions/executions.js +2 -2
- package/resources/workflows/executions/executions.js.map +1 -1
- package/resources/workflows/executions/executions.mjs +2 -2
- package/resources/workflows/executions/executions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +90 -34
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +90 -34
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +15 -14
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +15 -14
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +1 -1
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +1 -1
- package/resources/workflows/flows/index.d.ts.map +1 -1
- package/resources/workflows/flows/index.js.map +1 -1
- package/resources/workflows/flows/index.mjs.map +1 -1
- package/resources/workflows/index.d.mts +1 -1
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +1 -1
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +10 -13
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +10 -13
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +6 -8
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +6 -8
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +2 -2
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +2 -2
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +2 -106
- package/src/resources/apps.ts +30 -20
- package/src/resources/assistant/conversations.ts +26 -0
- package/src/resources/connect/proxies.ts +8 -6
- package/src/resources/connect/users.ts +4 -4
- package/src/resources/devices/actions.ts +28 -5
- package/src/resources/devices/apps.ts +30 -10
- package/src/resources/devices/devices.ts +92 -37
- package/src/resources/devices/index.ts +12 -9
- package/src/resources/devices/keyboard.ts +9 -2
- package/src/resources/devices/recordings.ts +44 -6
- package/src/resources/devices/screenshots.ts +140 -0
- package/src/resources/devices/state.ts +12 -2
- package/src/resources/files.ts +3 -3
- package/src/resources/index.ts +1 -44
- package/src/resources/mailboxes/connections.ts +4 -11
- package/src/resources/mailboxes/mailboxes.ts +5 -4
- package/src/resources/messages/messages.ts +16 -0
- package/src/resources/models.ts +16 -23
- package/src/resources/numbers/index.ts +0 -1
- package/src/resources/numbers/messages.ts +27 -15
- package/src/resources/numbers/numbers.ts +155 -40
- package/src/resources/proxies.ts +0 -110
- package/src/resources/tasks/tasks.ts +46 -138
- package/src/resources/webhooks/index.ts +0 -1
- package/src/resources/webhooks/webhooks.ts +6 -60
- package/src/resources/workflows/events.ts +7 -2
- package/src/resources/workflows/executions/executions.ts +39 -31
- package/src/resources/workflows/flows/flows.ts +104 -34
- package/src/resources/workflows/flows/index.ts +1 -0
- package/src/resources/workflows/index.ts +1 -0
- package/src/resources/workflows/triggers.ts +10 -13
- package/src/resources/workflows/workflows.ts +2 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/app-events/app-events.d.mts +0 -81
- package/resources/app-events/app-events.d.mts.map +0 -1
- package/resources/app-events/app-events.d.ts +0 -81
- package/resources/app-events/app-events.d.ts.map +0 -1
- package/resources/app-events/app-events.js +0 -33
- package/resources/app-events/app-events.js.map +0 -1
- package/resources/app-events/app-events.mjs +0 -28
- package/resources/app-events/app-events.mjs.map +0 -1
- package/resources/app-events/catalog.d.mts +0 -64
- package/resources/app-events/catalog.d.mts.map +0 -1
- package/resources/app-events/catalog.d.ts +0 -64
- package/resources/app-events/catalog.d.ts.map +0 -1
- package/resources/app-events/catalog.js +0 -25
- package/resources/app-events/catalog.js.map +0 -1
- package/resources/app-events/catalog.mjs +0 -21
- package/resources/app-events/catalog.mjs.map +0 -1
- package/resources/app-events/index.d.mts +0 -3
- package/resources/app-events/index.d.mts.map +0 -1
- package/resources/app-events/index.d.ts +0 -3
- package/resources/app-events/index.d.ts.map +0 -1
- package/resources/app-events/index.js +0 -9
- package/resources/app-events/index.js.map +0 -1
- package/resources/app-events/index.mjs +0 -4
- package/resources/app-events/index.mjs.map +0 -1
- package/resources/app-events.d.mts +0 -2
- package/resources/app-events.d.mts.map +0 -1
- package/resources/app-events.d.ts +0 -2
- package/resources/app-events.d.ts.map +0 -1
- package/resources/app-events.js +0 -6
- package/resources/app-events.js.map +0 -1
- package/resources/app-events.mjs +0 -3
- package/resources/app-events.mjs.map +0 -1
- package/resources/carriers.d.mts +0 -331
- package/resources/carriers.d.mts.map +0 -1
- package/resources/carriers.d.ts +0 -331
- package/resources/carriers.d.ts.map +0 -1
- package/resources/carriers.js +0 -46
- package/resources/carriers.js.map +0 -1
- package/resources/carriers.mjs +0 -42
- package/resources/carriers.mjs.map +0 -1
- package/resources/devices/media-sessions.d.mts +0 -96
- package/resources/devices/media-sessions.d.mts.map +0 -1
- package/resources/devices/media-sessions.d.ts +0 -96
- package/resources/devices/media-sessions.d.ts.map +0 -1
- package/resources/devices/media-sessions.js +0 -50
- package/resources/devices/media-sessions.js.map +0 -1
- package/resources/devices/media-sessions.mjs +0 -46
- package/resources/devices/media-sessions.mjs.map +0 -1
- package/resources/notifications.d.mts +0 -112
- package/resources/notifications.d.mts.map +0 -1
- package/resources/notifications.d.ts +0 -112
- package/resources/notifications.d.ts.map +0 -1
- package/resources/notifications.js +0 -72
- package/resources/notifications.js.map +0 -1
- package/resources/notifications.mjs +0 -68
- package/resources/notifications.mjs.map +0 -1
- package/resources/profiles.d.mts +0 -147
- package/resources/profiles.d.mts.map +0 -1
- package/resources/profiles.d.ts +0 -147
- package/resources/profiles.d.ts.map +0 -1
- package/resources/profiles.js +0 -40
- package/resources/profiles.js.map +0 -1
- package/resources/profiles.mjs +0 -36
- package/resources/profiles.mjs.map +0 -1
- package/resources/store/apps.d.mts +0 -140
- package/resources/store/apps.d.mts.map +0 -1
- package/resources/store/apps.d.ts +0 -140
- package/resources/store/apps.d.ts.map +0 -1
- package/resources/store/apps.js +0 -31
- package/resources/store/apps.js.map +0 -1
- package/resources/store/apps.mjs +0 -27
- package/resources/store/apps.mjs.map +0 -1
- package/resources/store/index.d.mts +0 -3
- package/resources/store/index.d.mts.map +0 -1
- package/resources/store/index.d.ts +0 -3
- package/resources/store/index.d.ts.map +0 -1
- package/resources/store/index.js +0 -9
- package/resources/store/index.js.map +0 -1
- package/resources/store/index.mjs +0 -4
- package/resources/store/index.mjs.map +0 -1
- package/resources/store/store.d.mts +0 -20
- package/resources/store/store.d.mts.map +0 -1
- package/resources/store/store.d.ts +0 -20
- package/resources/store/store.d.ts.map +0 -1
- package/resources/store/store.js +0 -23
- package/resources/store/store.js.map +0 -1
- package/resources/store/store.mjs +0 -18
- package/resources/store/store.mjs.map +0 -1
- package/resources/store.d.mts +0 -2
- package/resources/store.d.mts.map +0 -1
- package/resources/store.d.ts +0 -2
- package/resources/store.d.ts.map +0 -1
- package/resources/store.js +0 -6
- package/resources/store.js.map +0 -1
- package/resources/store.mjs +0 -3
- package/resources/store.mjs.map +0 -1
- package/src/resources/app-events/app-events.ts +0 -133
- package/src/resources/app-events/catalog.ts +0 -100
- package/src/resources/app-events/index.ts +0 -9
- package/src/resources/app-events.ts +0 -3
- package/src/resources/carriers.ts +0 -508
- package/src/resources/devices/media-sessions.ts +0 -168
- package/src/resources/notifications.ts +0 -155
- package/src/resources/profiles.ts +0 -232
- package/src/resources/store/apps.ts +0 -993
- package/src/resources/store/index.ts +0 -10
- package/src/resources/store/store.ts +0 -36
- package/src/resources/store.ts +0 -3
|
@@ -171,6 +171,12 @@ export namespace TaskRetrieveResponse {
|
|
|
171
171
|
|
|
172
172
|
finishedAt?: string | null;
|
|
173
173
|
|
|
174
|
+
/**
|
|
175
|
+
* Whether human-like input was requested. Always equal to the deprecated stealth
|
|
176
|
+
* field.
|
|
177
|
+
*/
|
|
178
|
+
humanize?: boolean;
|
|
179
|
+
|
|
174
180
|
maxSteps?: number;
|
|
175
181
|
|
|
176
182
|
message?: string | null;
|
|
@@ -197,6 +203,10 @@ export namespace TaskRetrieveResponse {
|
|
|
197
203
|
*/
|
|
198
204
|
source?: 'api' | 'agent';
|
|
199
205
|
|
|
206
|
+
/**
|
|
207
|
+
* @deprecated Deprecated: use humanize. Both names must agree when supplied
|
|
208
|
+
* together.
|
|
209
|
+
*/
|
|
200
210
|
stealth?: boolean;
|
|
201
211
|
|
|
202
212
|
steps?: number | null;
|
|
@@ -307,6 +317,12 @@ export namespace TaskListResponse {
|
|
|
307
317
|
|
|
308
318
|
finishedAt?: string | null;
|
|
309
319
|
|
|
320
|
+
/**
|
|
321
|
+
* Whether human-like input was requested. Always equal to the deprecated stealth
|
|
322
|
+
* field.
|
|
323
|
+
*/
|
|
324
|
+
humanize?: boolean;
|
|
325
|
+
|
|
310
326
|
maxSteps?: number;
|
|
311
327
|
|
|
312
328
|
message?: string | null;
|
|
@@ -333,6 +349,10 @@ export namespace TaskListResponse {
|
|
|
333
349
|
*/
|
|
334
350
|
source?: 'api' | 'agent';
|
|
335
351
|
|
|
352
|
+
/**
|
|
353
|
+
* @deprecated Deprecated: use humanize. Both names must agree when supplied
|
|
354
|
+
* together.
|
|
355
|
+
*/
|
|
336
356
|
stealth?: boolean;
|
|
337
357
|
|
|
338
358
|
steps?: number | null;
|
|
@@ -553,27 +573,18 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
553
573
|
}
|
|
554
574
|
|
|
555
575
|
export interface TrajectoryStartEvent {
|
|
556
|
-
/**
|
|
557
|
-
* Implicit entry event sent to kick off a `Workflow.run()`.
|
|
558
|
-
*/
|
|
559
576
|
data: unknown;
|
|
560
577
|
|
|
561
578
|
event: 'StartEvent';
|
|
562
579
|
}
|
|
563
580
|
|
|
564
581
|
export interface TrajectoryFinalizeEvent {
|
|
565
|
-
/**
|
|
566
|
-
* Trigger finalization.
|
|
567
|
-
*/
|
|
568
582
|
data: TrajectoryFinalizeEvent.Data;
|
|
569
583
|
|
|
570
584
|
event: 'FinalizeEvent';
|
|
571
585
|
}
|
|
572
586
|
|
|
573
587
|
export namespace TrajectoryFinalizeEvent {
|
|
574
|
-
/**
|
|
575
|
-
* Trigger finalization.
|
|
576
|
-
*/
|
|
577
588
|
export interface Data {
|
|
578
589
|
reason: string;
|
|
579
590
|
|
|
@@ -582,26 +593,6 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
582
593
|
}
|
|
583
594
|
|
|
584
595
|
export interface TrajectoryStopEvent {
|
|
585
|
-
/**
|
|
586
|
-
* Terminal event that signals the workflow has completed.
|
|
587
|
-
*
|
|
588
|
-
* The `result` property contains the return value of the workflow run. When a
|
|
589
|
-
* custom stop event subclass is used, the workflow result is that event instance
|
|
590
|
-
* itself.
|
|
591
|
-
*
|
|
592
|
-
* Examples:
|
|
593
|
-
* `python # default stop event: result holds the value return StopEvent(result={"answer": 42}) `
|
|
594
|
-
*
|
|
595
|
-
* Subclassing to provide a custom result:
|
|
596
|
-
*
|
|
597
|
-
* ```python
|
|
598
|
-
* class MyStopEv(StopEvent):
|
|
599
|
-
* pass
|
|
600
|
-
*
|
|
601
|
-
* @step
|
|
602
|
-
* async def my_step(self, ctx: Context, ev: StartEvent) -> MyStopEv:
|
|
603
|
-
* return MyStopEv(result={"answer": 42})
|
|
604
|
-
*/
|
|
605
596
|
data: unknown;
|
|
606
597
|
|
|
607
598
|
event: 'StopEvent';
|
|
@@ -609,10 +600,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
609
600
|
|
|
610
601
|
export interface TrajectoryResultEvent {
|
|
611
602
|
/**
|
|
612
|
-
*
|
|
613
|
-
*
|
|
614
|
-
* The worker uses droidrun's ResultEvent directly; this model only exists so the
|
|
615
|
-
* API OpenAPI schema can reference it without the heavy droidrun import.
|
|
603
|
+
* Final result event of a task.
|
|
616
604
|
*/
|
|
617
605
|
data: TrajectoryResultEvent.Data;
|
|
618
606
|
|
|
@@ -621,10 +609,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
621
609
|
|
|
622
610
|
export namespace TrajectoryResultEvent {
|
|
623
611
|
/**
|
|
624
|
-
*
|
|
625
|
-
*
|
|
626
|
-
* The worker uses droidrun's ResultEvent directly; this model only exists so the
|
|
627
|
-
* API OpenAPI schema can reference it without the heavy droidrun import.
|
|
612
|
+
* Final result event of a task.
|
|
628
613
|
*/
|
|
629
614
|
export interface Data {
|
|
630
615
|
message?: string | null;
|
|
@@ -638,33 +623,18 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
638
623
|
}
|
|
639
624
|
|
|
640
625
|
export interface TrajectoryManagerInputEvent {
|
|
641
|
-
/**
|
|
642
|
-
* Trigger Manager workflow for planning
|
|
643
|
-
*/
|
|
644
626
|
data: unknown;
|
|
645
627
|
|
|
646
628
|
event: 'ManagerInputEvent';
|
|
647
629
|
}
|
|
648
630
|
|
|
649
631
|
export interface TrajectoryManagerPlanEvent {
|
|
650
|
-
/**
|
|
651
|
-
* Coordination event from ManagerAgent to MobileAgent.
|
|
652
|
-
*
|
|
653
|
-
* Used for workflow step routing only (NOT streamed to frontend). For internal
|
|
654
|
-
* events with memory_update metadata, see ManagerPlanDetailsEvent.
|
|
655
|
-
*/
|
|
656
632
|
data: TrajectoryManagerPlanEvent.Data;
|
|
657
633
|
|
|
658
634
|
event: 'ManagerPlanEvent';
|
|
659
635
|
}
|
|
660
636
|
|
|
661
637
|
export namespace TrajectoryManagerPlanEvent {
|
|
662
|
-
/**
|
|
663
|
-
* Coordination event from ManagerAgent to MobileAgent.
|
|
664
|
-
*
|
|
665
|
-
* Used for workflow step routing only (NOT streamed to frontend). For internal
|
|
666
|
-
* events with memory_update metadata, see ManagerPlanDetailsEvent.
|
|
667
|
-
*/
|
|
668
638
|
export interface Data {
|
|
669
639
|
current_subgoal: string;
|
|
670
640
|
|
|
@@ -679,36 +649,24 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
679
649
|
}
|
|
680
650
|
|
|
681
651
|
export interface TrajectoryExecutorInputEvent {
|
|
682
|
-
/**
|
|
683
|
-
* Trigger Executor workflow for action execution
|
|
684
|
-
*/
|
|
685
652
|
data: TrajectoryExecutorInputEvent.Data;
|
|
686
653
|
|
|
687
654
|
event: 'ExecutorInputEvent';
|
|
688
655
|
}
|
|
689
656
|
|
|
690
657
|
export namespace TrajectoryExecutorInputEvent {
|
|
691
|
-
/**
|
|
692
|
-
* Trigger Executor workflow for action execution
|
|
693
|
-
*/
|
|
694
658
|
export interface Data {
|
|
695
659
|
current_subgoal: string;
|
|
696
660
|
}
|
|
697
661
|
}
|
|
698
662
|
|
|
699
663
|
export interface TrajectoryExecutorResultEvent {
|
|
700
|
-
/**
|
|
701
|
-
* Executor finished with action result.
|
|
702
|
-
*/
|
|
703
664
|
data: TrajectoryExecutorResultEvent.Data;
|
|
704
665
|
|
|
705
666
|
event: 'ExecutorResultEvent';
|
|
706
667
|
}
|
|
707
668
|
|
|
708
669
|
export namespace TrajectoryExecutorResultEvent {
|
|
709
|
-
/**
|
|
710
|
-
* Executor finished with action result.
|
|
711
|
-
*/
|
|
712
670
|
export interface Data {
|
|
713
671
|
action: { [key: string]: unknown };
|
|
714
672
|
|
|
@@ -721,27 +679,18 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
721
679
|
}
|
|
722
680
|
|
|
723
681
|
export interface TrajectoryFastAgentInputEvent {
|
|
724
|
-
/**
|
|
725
|
-
* Input ready for LLM.
|
|
726
|
-
*/
|
|
727
682
|
data: unknown;
|
|
728
683
|
|
|
729
684
|
event: 'FastAgentInputEvent';
|
|
730
685
|
}
|
|
731
686
|
|
|
732
687
|
export interface TrajectoryFastAgentResponseEvent {
|
|
733
|
-
/**
|
|
734
|
-
* LLM response received.
|
|
735
|
-
*/
|
|
736
688
|
data: TrajectoryFastAgentResponseEvent.Data;
|
|
737
689
|
|
|
738
690
|
event: 'FastAgentResponseEvent';
|
|
739
691
|
}
|
|
740
692
|
|
|
741
693
|
export namespace TrajectoryFastAgentResponseEvent {
|
|
742
|
-
/**
|
|
743
|
-
* LLM response received.
|
|
744
|
-
*/
|
|
745
694
|
export interface Data {
|
|
746
695
|
thought: string;
|
|
747
696
|
|
|
@@ -769,54 +718,36 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
769
718
|
}
|
|
770
719
|
|
|
771
720
|
export interface TrajectoryFastAgentToolCallEvent {
|
|
772
|
-
/**
|
|
773
|
-
* Tool calls ready to execute.
|
|
774
|
-
*/
|
|
775
721
|
data: TrajectoryFastAgentToolCallEvent.Data;
|
|
776
722
|
|
|
777
723
|
event: 'FastAgentToolCallEvent';
|
|
778
724
|
}
|
|
779
725
|
|
|
780
726
|
export namespace TrajectoryFastAgentToolCallEvent {
|
|
781
|
-
/**
|
|
782
|
-
* Tool calls ready to execute.
|
|
783
|
-
*/
|
|
784
727
|
export interface Data {
|
|
785
728
|
tool_calls_repr: string;
|
|
786
729
|
}
|
|
787
730
|
}
|
|
788
731
|
|
|
789
732
|
export interface TrajectoryFastAgentOutputEvent {
|
|
790
|
-
/**
|
|
791
|
-
* Tool execution result.
|
|
792
|
-
*/
|
|
793
733
|
data: TrajectoryFastAgentOutputEvent.Data;
|
|
794
734
|
|
|
795
735
|
event: 'FastAgentOutputEvent';
|
|
796
736
|
}
|
|
797
737
|
|
|
798
738
|
export namespace TrajectoryFastAgentOutputEvent {
|
|
799
|
-
/**
|
|
800
|
-
* Tool execution result.
|
|
801
|
-
*/
|
|
802
739
|
export interface Data {
|
|
803
740
|
output: string;
|
|
804
741
|
}
|
|
805
742
|
}
|
|
806
743
|
|
|
807
744
|
export interface TrajectoryFastAgentEndEvent {
|
|
808
|
-
/**
|
|
809
|
-
* FastAgent finished.
|
|
810
|
-
*/
|
|
811
745
|
data: TrajectoryFastAgentEndEvent.Data;
|
|
812
746
|
|
|
813
747
|
event: 'FastAgentEndEvent';
|
|
814
748
|
}
|
|
815
749
|
|
|
816
750
|
export namespace TrajectoryFastAgentEndEvent {
|
|
817
|
-
/**
|
|
818
|
-
* FastAgent finished.
|
|
819
|
-
*/
|
|
820
751
|
export interface Data {
|
|
821
752
|
reason: string;
|
|
822
753
|
|
|
@@ -855,18 +786,12 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
855
786
|
}
|
|
856
787
|
|
|
857
788
|
export interface TrajectoryToolExecutionEvent {
|
|
858
|
-
/**
|
|
859
|
-
* Emitted after every tool call dispatched through ToolRegistry.
|
|
860
|
-
*/
|
|
861
789
|
data: TrajectoryToolExecutionEvent.Data;
|
|
862
790
|
|
|
863
791
|
event: 'ToolExecutionEvent';
|
|
864
792
|
}
|
|
865
793
|
|
|
866
794
|
export namespace TrajectoryToolExecutionEvent {
|
|
867
|
-
/**
|
|
868
|
-
* Emitted after every tool call dispatched through ToolRegistry.
|
|
869
|
-
*/
|
|
870
795
|
export interface Data {
|
|
871
796
|
success: boolean;
|
|
872
797
|
|
|
@@ -893,27 +818,18 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
893
818
|
}
|
|
894
819
|
|
|
895
820
|
export interface TrajectoryManagerContextEvent {
|
|
896
|
-
/**
|
|
897
|
-
* Context prepared, ready for LLM call.
|
|
898
|
-
*/
|
|
899
821
|
data: unknown;
|
|
900
822
|
|
|
901
823
|
event: 'ManagerContextEvent';
|
|
902
824
|
}
|
|
903
825
|
|
|
904
826
|
export interface TrajectoryManagerResponseEvent {
|
|
905
|
-
/**
|
|
906
|
-
* LLM response received, ready for parsing.
|
|
907
|
-
*/
|
|
908
827
|
data: TrajectoryManagerResponseEvent.Data;
|
|
909
828
|
|
|
910
829
|
event: 'ManagerResponseEvent';
|
|
911
830
|
}
|
|
912
831
|
|
|
913
832
|
export namespace TrajectoryManagerResponseEvent {
|
|
914
|
-
/**
|
|
915
|
-
* LLM response received, ready for parsing.
|
|
916
|
-
*/
|
|
917
833
|
export interface Data {
|
|
918
834
|
response: string;
|
|
919
835
|
|
|
@@ -934,18 +850,12 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
934
850
|
}
|
|
935
851
|
|
|
936
852
|
export interface TrajectoryManagerPlanDetailsEvent {
|
|
937
|
-
/**
|
|
938
|
-
* Plan parsed and ready (internal event with full details).
|
|
939
|
-
*/
|
|
940
853
|
data: TrajectoryManagerPlanDetailsEvent.Data;
|
|
941
854
|
|
|
942
855
|
event: 'ManagerPlanDetailsEvent';
|
|
943
856
|
}
|
|
944
857
|
|
|
945
858
|
export namespace TrajectoryManagerPlanDetailsEvent {
|
|
946
|
-
/**
|
|
947
|
-
* Plan parsed and ready (internal event with full details).
|
|
948
|
-
*/
|
|
949
859
|
export interface Data {
|
|
950
860
|
plan: string;
|
|
951
861
|
|
|
@@ -966,36 +876,24 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
966
876
|
}
|
|
967
877
|
|
|
968
878
|
export interface TrajectoryExecutorContextEvent {
|
|
969
|
-
/**
|
|
970
|
-
* Context prepared, ready for LLM call.
|
|
971
|
-
*/
|
|
972
879
|
data: TrajectoryExecutorContextEvent.Data;
|
|
973
880
|
|
|
974
881
|
event: 'ExecutorContextEvent';
|
|
975
882
|
}
|
|
976
883
|
|
|
977
884
|
export namespace TrajectoryExecutorContextEvent {
|
|
978
|
-
/**
|
|
979
|
-
* Context prepared, ready for LLM call.
|
|
980
|
-
*/
|
|
981
885
|
export interface Data {
|
|
982
886
|
subgoal: string;
|
|
983
887
|
}
|
|
984
888
|
}
|
|
985
889
|
|
|
986
890
|
export interface TrajectoryExecutorResponseEvent {
|
|
987
|
-
/**
|
|
988
|
-
* LLM response received, ready for parsing.
|
|
989
|
-
*/
|
|
990
891
|
data: TrajectoryExecutorResponseEvent.Data;
|
|
991
892
|
|
|
992
893
|
event: 'ExecutorResponseEvent';
|
|
993
894
|
}
|
|
994
895
|
|
|
995
896
|
export namespace TrajectoryExecutorResponseEvent {
|
|
996
|
-
/**
|
|
997
|
-
* LLM response received, ready for parsing.
|
|
998
|
-
*/
|
|
999
897
|
export interface Data {
|
|
1000
898
|
response: string;
|
|
1001
899
|
|
|
@@ -1016,18 +914,12 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
1016
914
|
}
|
|
1017
915
|
|
|
1018
916
|
export interface TrajectoryExecutorActionEvent {
|
|
1019
|
-
/**
|
|
1020
|
-
* Action parsed, ready to execute.
|
|
1021
|
-
*/
|
|
1022
917
|
data: TrajectoryExecutorActionEvent.Data;
|
|
1023
918
|
|
|
1024
919
|
event: 'ExecutorActionEvent';
|
|
1025
920
|
}
|
|
1026
921
|
|
|
1027
922
|
export namespace TrajectoryExecutorActionEvent {
|
|
1028
|
-
/**
|
|
1029
|
-
* Action parsed, ready to execute.
|
|
1030
|
-
*/
|
|
1031
923
|
export interface Data {
|
|
1032
924
|
action_json: string;
|
|
1033
925
|
|
|
@@ -1040,18 +932,12 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
1040
932
|
}
|
|
1041
933
|
|
|
1042
934
|
export interface TrajectoryExecutorActionResultEvent {
|
|
1043
|
-
/**
|
|
1044
|
-
* Action execution result (internal event with full details).
|
|
1045
|
-
*/
|
|
1046
935
|
data: TrajectoryExecutorActionResultEvent.Data;
|
|
1047
936
|
|
|
1048
937
|
event: 'ExecutorActionResultEvent';
|
|
1049
938
|
}
|
|
1050
939
|
|
|
1051
940
|
export namespace TrajectoryExecutorActionResultEvent {
|
|
1052
|
-
/**
|
|
1053
|
-
* Action execution result (internal event with full details).
|
|
1054
|
-
*/
|
|
1055
941
|
export interface Data {
|
|
1056
942
|
action: { [key: string]: unknown };
|
|
1057
943
|
|
|
@@ -1203,7 +1089,14 @@ export interface TaskRunParams {
|
|
|
1203
1089
|
files?: Array<string>;
|
|
1204
1090
|
|
|
1205
1091
|
/**
|
|
1206
|
-
*
|
|
1092
|
+
* Request human-like input where supported by the device. Replaces the deprecated
|
|
1093
|
+
* stealth field; both must agree when supplied together.
|
|
1094
|
+
*/
|
|
1095
|
+
humanize?: boolean;
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* The LLM model identifier to use for the task (e.g.
|
|
1099
|
+
* 'mobilerun/mobile-agent-fast')
|
|
1207
1100
|
*/
|
|
1208
1101
|
llmModel?: string;
|
|
1209
1102
|
|
|
@@ -1218,6 +1111,10 @@ export interface TaskRunParams {
|
|
|
1218
1111
|
*/
|
|
1219
1112
|
recordingEnabled?: boolean;
|
|
1220
1113
|
|
|
1114
|
+
/**
|
|
1115
|
+
* @deprecated Deprecated: use humanize. Both names must agree when supplied
|
|
1116
|
+
* together.
|
|
1117
|
+
*/
|
|
1221
1118
|
stealth?: boolean;
|
|
1222
1119
|
|
|
1223
1120
|
/**
|
|
@@ -1279,7 +1176,14 @@ export interface TaskRunStreamedParams {
|
|
|
1279
1176
|
files?: Array<string>;
|
|
1280
1177
|
|
|
1281
1178
|
/**
|
|
1282
|
-
*
|
|
1179
|
+
* Request human-like input where supported by the device. Replaces the deprecated
|
|
1180
|
+
* stealth field; both must agree when supplied together.
|
|
1181
|
+
*/
|
|
1182
|
+
humanize?: boolean;
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* The LLM model identifier to use for the task (e.g.
|
|
1186
|
+
* 'mobilerun/mobile-agent-fast')
|
|
1283
1187
|
*/
|
|
1284
1188
|
llmModel?: string;
|
|
1285
1189
|
|
|
@@ -1294,6 +1198,10 @@ export interface TaskRunStreamedParams {
|
|
|
1294
1198
|
*/
|
|
1295
1199
|
recordingEnabled?: boolean;
|
|
1296
1200
|
|
|
1201
|
+
/**
|
|
1202
|
+
* @deprecated Deprecated: use humanize. Both names must agree when supplied
|
|
1203
|
+
* together.
|
|
1204
|
+
*/
|
|
1297
1205
|
stealth?: boolean;
|
|
1298
1206
|
|
|
1299
1207
|
/**
|
|
@@ -39,7 +39,12 @@ export class Webhooks extends APIResource {
|
|
|
39
39
|
* target (e.g. a Slack channel): pick the `capability` from
|
|
40
40
|
* `GET /webhooks/integrations` and the `args` from
|
|
41
41
|
* `GET /webhooks/integrations/{capabilityId}/targets`. Integration webhooks have
|
|
42
|
-
* no signing secret.
|
|
42
|
+
* no signing secret. Send an `Idempotency-Key` header to make the create safe to
|
|
43
|
+
* retry: the same key with the same body returns the existing webhook (status 201,
|
|
44
|
+
* `Idempotent-Replayed: true`) instead of creating a second one, and the same key
|
|
45
|
+
* with a different body is a 422. A replayed create does not return the signing
|
|
46
|
+
* secret again; use rotate-secret if the original response was lost. If that
|
|
47
|
+
* webhook was deleted in the meantime, the retry is a 404.
|
|
43
48
|
*
|
|
44
49
|
* @example
|
|
45
50
|
* ```ts
|
|
@@ -101,15 +106,6 @@ export class Webhooks extends APIResource {
|
|
|
101
106
|
});
|
|
102
107
|
}
|
|
103
108
|
|
|
104
|
-
/**
|
|
105
|
-
* Returns the catalog of event types that webhook subscriptions can subscribe to,
|
|
106
|
-
* grouped by source. Use the returned type identifiers as the `eventTypes` values
|
|
107
|
-
* when creating or updating a webhook.
|
|
108
|
-
*/
|
|
109
|
-
eventTypes(options?: RequestOptions): APIPromise<WebhookEventTypesResponse> {
|
|
110
|
-
return this._client.get('/event-types', options);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
109
|
/**
|
|
114
110
|
* Generates a new signing secret for the webhook subscription and returns it once
|
|
115
111
|
* in the response. The previous secret is replaced immediately, so any signature
|
|
@@ -492,55 +488,6 @@ export namespace WebhookListResponse {
|
|
|
492
488
|
}
|
|
493
489
|
}
|
|
494
490
|
|
|
495
|
-
export interface WebhookEventTypesResponse {
|
|
496
|
-
data: WebhookEventTypesResponse.Data;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
export namespace WebhookEventTypesResponse {
|
|
500
|
-
export interface Data {
|
|
501
|
-
schemaVersion: 1;
|
|
502
|
-
|
|
503
|
-
sources: Array<Data.Source>;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
export namespace Data {
|
|
507
|
-
export interface Source {
|
|
508
|
-
events: Array<Source.Event>;
|
|
509
|
-
|
|
510
|
-
source: string;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
export namespace Source {
|
|
514
|
-
export interface Event {
|
|
515
|
-
description: string;
|
|
516
|
-
|
|
517
|
-
surfaces: Event.Surfaces;
|
|
518
|
-
|
|
519
|
-
/**
|
|
520
|
-
* Short human title, as used in integration messages.
|
|
521
|
-
*/
|
|
522
|
-
title: string;
|
|
523
|
-
|
|
524
|
-
type: string;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
export namespace Event {
|
|
528
|
-
export interface Surfaces {
|
|
529
|
-
feed: boolean;
|
|
530
|
-
|
|
531
|
-
toast: boolean;
|
|
532
|
-
|
|
533
|
-
webhook: boolean;
|
|
534
|
-
|
|
535
|
-
agent?: boolean;
|
|
536
|
-
|
|
537
|
-
live?: boolean;
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
|
|
544
491
|
export interface WebhookRotateSecretResponse {
|
|
545
492
|
data: WebhookRotateSecretResponse.Data;
|
|
546
493
|
}
|
|
@@ -731,7 +678,6 @@ export declare namespace Webhooks {
|
|
|
731
678
|
type WebhookRetrieveResponse as WebhookRetrieveResponse,
|
|
732
679
|
type WebhookUpdateResponse as WebhookUpdateResponse,
|
|
733
680
|
type WebhookListResponse as WebhookListResponse,
|
|
734
|
-
type WebhookEventTypesResponse as WebhookEventTypesResponse,
|
|
735
681
|
type WebhookRotateSecretResponse as WebhookRotateSecretResponse,
|
|
736
682
|
type WebhookTestDeliveryResponse as WebhookTestDeliveryResponse,
|
|
737
683
|
type WebhookCreateParams as WebhookCreateParams,
|
|
@@ -73,6 +73,8 @@ export namespace EventDryRunResponse {
|
|
|
73
73
|
export interface Flow {
|
|
74
74
|
id: string;
|
|
75
75
|
|
|
76
|
+
agentId: string | null;
|
|
77
|
+
|
|
76
78
|
archivedAt: string | null;
|
|
77
79
|
|
|
78
80
|
blockedAt: string | null;
|
|
@@ -141,7 +143,7 @@ export namespace EventDryRunResponse {
|
|
|
141
143
|
status: 'healthy' | 'failing' | 'blocked';
|
|
142
144
|
|
|
143
145
|
/**
|
|
144
|
-
* Template-resolver semantics this flow runs under
|
|
146
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
145
147
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
146
148
|
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
147
149
|
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
@@ -161,8 +163,11 @@ export namespace EventDryRunResponse {
|
|
|
161
163
|
|
|
162
164
|
export namespace Flow {
|
|
163
165
|
export interface Delivery {
|
|
164
|
-
destination: 'one_drive' | 'google_drive';
|
|
166
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
165
167
|
|
|
168
|
+
/**
|
|
169
|
+
* not allowed when destination is mobilerun
|
|
170
|
+
*/
|
|
166
171
|
folder?: string;
|
|
167
172
|
|
|
168
173
|
recording?: Delivery.Recording;
|