@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
|
@@ -33,8 +33,8 @@ export class Executions extends APIResource {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
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);
|
|
@@ -61,6 +61,11 @@ export namespace ExecutionRetrieveResponse {
|
|
|
61
61
|
export interface Data {
|
|
62
62
|
id: string;
|
|
63
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Current agent assignment of the owner-scoped parent flow; null when unassigned.
|
|
66
|
+
*/
|
|
67
|
+
agentId: string | null;
|
|
68
|
+
|
|
64
69
|
createdBy: string | null;
|
|
65
70
|
|
|
66
71
|
/**
|
|
@@ -103,17 +108,16 @@ export namespace ExecutionRetrieveResponse {
|
|
|
103
108
|
kind: 'live' | 'dry_run' | 'verification';
|
|
104
109
|
|
|
105
110
|
/**
|
|
106
|
-
* Live progress
|
|
107
|
-
* feature.
|
|
111
|
+
* Live progress; null for runs started before this feature.
|
|
108
112
|
*/
|
|
109
113
|
progress: Data.Progress | null;
|
|
110
114
|
|
|
111
115
|
recordingDeviceId: string | null;
|
|
112
116
|
|
|
113
117
|
/**
|
|
114
|
-
* Device
|
|
115
|
-
*
|
|
116
|
-
*
|
|
118
|
+
* Device recording id for this execution, set once recording starts. Null when the
|
|
119
|
+
* flow has recording disabled, no device is bound, or the recording failed to
|
|
120
|
+
* start.
|
|
117
121
|
*/
|
|
118
122
|
recordingId: string | null;
|
|
119
123
|
|
|
@@ -124,8 +128,9 @@ export namespace ExecutionRetrieveResponse {
|
|
|
124
128
|
recordings: Array<Data.Recording>;
|
|
125
129
|
|
|
126
130
|
/**
|
|
127
|
-
* Screenshots captured by tasks.run/agent.run steps
|
|
128
|
-
*
|
|
131
|
+
* Screenshots captured by tasks.run/agent.run steps and saved by scripts into the
|
|
132
|
+
* flow screenshots recording (source recording), ordered by seq. Image bytes are
|
|
133
|
+
* never returned here — fetch a fresh signed URL via GET
|
|
129
134
|
* /executions/{id}/screenshots/{screenshotId}.
|
|
130
135
|
*/
|
|
131
136
|
screenshots: Array<Data.Screenshot>;
|
|
@@ -141,10 +146,9 @@ export namespace ExecutionRetrieveResponse {
|
|
|
141
146
|
/**
|
|
142
147
|
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
143
148
|
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
144
|
-
* step that opted into a verdict — null otherwise.
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
* clients must not assume its presence.
|
|
149
|
+
* step that opted into a verdict — null otherwise. Steps of current executions
|
|
150
|
+
* also carry a `status` string (e.g. success/failed/stopped); it is optional and
|
|
151
|
+
* absent on older executions, so clients must not assume its presence.
|
|
148
152
|
*/
|
|
149
153
|
result?: unknown;
|
|
150
154
|
}
|
|
@@ -153,7 +157,7 @@ export namespace ExecutionRetrieveResponse {
|
|
|
153
157
|
export interface Delivery {
|
|
154
158
|
artifact: 'recording' | 'file' | 'screenshot';
|
|
155
159
|
|
|
156
|
-
destination: 'one_drive' | 'google_drive';
|
|
160
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
157
161
|
|
|
158
162
|
errorCode: string | null;
|
|
159
163
|
|
|
@@ -183,8 +187,7 @@ export namespace ExecutionRetrieveResponse {
|
|
|
183
187
|
}
|
|
184
188
|
|
|
185
189
|
/**
|
|
186
|
-
* Live progress
|
|
187
|
-
* feature.
|
|
190
|
+
* Live progress; null for runs started before this feature.
|
|
188
191
|
*/
|
|
189
192
|
export interface Progress {
|
|
190
193
|
currentIndex: number | null;
|
|
@@ -211,6 +214,13 @@ export namespace ExecutionRetrieveResponse {
|
|
|
211
214
|
startedAt: string | null;
|
|
212
215
|
|
|
213
216
|
status: 'pending' | 'running' | 'success' | 'failed' | 'skipped' | 'cancelled';
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Zero-based retry attempt of the execution job during which this step last ran (0
|
|
220
|
+
* = initial attempt). Not a per-step retry counter; may undercount after crash
|
|
221
|
+
* recovery.
|
|
222
|
+
*/
|
|
223
|
+
attempt?: number;
|
|
214
224
|
}
|
|
215
225
|
}
|
|
216
226
|
|
|
@@ -255,7 +265,7 @@ export namespace ExecutionRetrieveResponse {
|
|
|
255
265
|
|
|
256
266
|
seq: number;
|
|
257
267
|
|
|
258
|
-
source: 'task' | 'agent';
|
|
268
|
+
source: 'task' | 'agent' | 'recording';
|
|
259
269
|
|
|
260
270
|
stepIndex: number;
|
|
261
271
|
|
|
@@ -304,9 +314,9 @@ export namespace ExecutionListResponse {
|
|
|
304
314
|
recordingDeviceId: string | null;
|
|
305
315
|
|
|
306
316
|
/**
|
|
307
|
-
* Device
|
|
308
|
-
*
|
|
309
|
-
*
|
|
317
|
+
* Device recording id for this execution, set once recording starts. Null when the
|
|
318
|
+
* flow has recording disabled, no device is bound, or the recording failed to
|
|
319
|
+
* start.
|
|
310
320
|
*/
|
|
311
321
|
recordingId: string | null;
|
|
312
322
|
|
|
@@ -327,10 +337,9 @@ export namespace ExecutionListResponse {
|
|
|
327
337
|
/**
|
|
328
338
|
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
329
339
|
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
330
|
-
* step that opted into a verdict — null otherwise.
|
|
331
|
-
*
|
|
332
|
-
*
|
|
333
|
-
* clients must not assume its presence.
|
|
340
|
+
* step that opted into a verdict — null otherwise. Steps of current executions
|
|
341
|
+
* also carry a `status` string (e.g. success/failed/stopped); it is optional and
|
|
342
|
+
* absent on older executions, so clients must not assume its presence.
|
|
334
343
|
*/
|
|
335
344
|
result?: unknown;
|
|
336
345
|
}
|
|
@@ -404,9 +413,9 @@ export namespace ExecutionAbortResponse {
|
|
|
404
413
|
recordingDeviceId: string | null;
|
|
405
414
|
|
|
406
415
|
/**
|
|
407
|
-
* Device
|
|
408
|
-
*
|
|
409
|
-
*
|
|
416
|
+
* Device recording id for this execution, set once recording starts. Null when the
|
|
417
|
+
* flow has recording disabled, no device is bound, or the recording failed to
|
|
418
|
+
* start.
|
|
410
419
|
*/
|
|
411
420
|
recordingId: string | null;
|
|
412
421
|
|
|
@@ -421,10 +430,9 @@ export namespace ExecutionAbortResponse {
|
|
|
421
430
|
/**
|
|
422
431
|
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
423
432
|
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
424
|
-
* step that opted into a verdict — null otherwise.
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
* clients must not assume its presence.
|
|
433
|
+
* step that opted into a verdict — null otherwise. Steps of current executions
|
|
434
|
+
* also carry a `status` string (e.g. success/failed/stopped); it is optional and
|
|
435
|
+
* absent on older executions, so clients must not assume its presence.
|
|
428
436
|
*/
|
|
429
437
|
result?: unknown;
|
|
430
438
|
}
|
|
@@ -57,10 +57,11 @@ export class Flows extends APIResource {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
* Return a paginated list of flows. Supports filtering by `
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
60
|
+
* Return a paginated list of flows. Supports filtering by `agentId` (UUID or
|
|
61
|
+
* `unassigned`; omit for all buckets), `triggerId`, `enabled`, one or more health
|
|
62
|
+
* `status` values (healthy, failing, blocked), `mine` (flows created by the
|
|
63
|
+
* calling actor), `createdBy` (flows created by a given actor id — mutually
|
|
64
|
+
* exclusive with `mine`), plus free-text `search` and ordering.
|
|
64
65
|
*/
|
|
65
66
|
list(
|
|
66
67
|
query: FlowListParams | null | undefined = {},
|
|
@@ -91,13 +92,16 @@ export class Flows extends APIResource {
|
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
/**
|
|
94
|
-
* Returns
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
95
|
+
* Returns the environment routine limit and remaining capacity for this owner and
|
|
96
|
+
* agent bucket, counting enabled and disabled non-deleted flows. Omit agentId (or
|
|
97
|
+
* use unassigned) for the unassigned bucket. This is advisory; create and clone
|
|
98
|
+
* enforce admission under a bucket lock.
|
|
98
99
|
*/
|
|
99
|
-
capacity(
|
|
100
|
-
|
|
100
|
+
capacity(
|
|
101
|
+
query: FlowCapacityParams | null | undefined = {},
|
|
102
|
+
options?: RequestOptions,
|
|
103
|
+
): APIPromise<FlowCapacityResponse> {
|
|
104
|
+
return this._client.get('/flows/capacity', { query, ...options });
|
|
101
105
|
}
|
|
102
106
|
|
|
103
107
|
/**
|
|
@@ -121,8 +125,8 @@ export class Flows extends APIResource {
|
|
|
121
125
|
* Return the recording/delivery readiness for a flow (recording mode, whether
|
|
122
126
|
* delivery can include the recording, whether a files.upload action exists, the
|
|
123
127
|
* first direct OneDrive/Google Drive upload step if any) plus, per destination,
|
|
124
|
-
* whether the flow owner has an active
|
|
125
|
-
*
|
|
128
|
+
* whether the flow owner has an active connection. Returns 404 if the flow does
|
|
129
|
+
* not exist.
|
|
126
130
|
*/
|
|
127
131
|
deliveryOptions(flowID: string, options?: RequestOptions): APIPromise<FlowDeliveryOptionsResponse> {
|
|
128
132
|
return this._client.get(path`/flows/${flowID}/delivery-options`, options);
|
|
@@ -203,8 +207,8 @@ export class Flows extends APIResource {
|
|
|
203
207
|
}
|
|
204
208
|
|
|
205
209
|
/**
|
|
206
|
-
* Run a bound, deduplicated **verification** of this flow on exactly one device
|
|
207
|
-
*
|
|
210
|
+
* Run a bound, deduplicated **verification** of this flow on exactly one device as
|
|
211
|
+
* a real run.
|
|
208
212
|
*
|
|
209
213
|
* Unlike a normal trigger firing, verification:
|
|
210
214
|
*
|
|
@@ -236,6 +240,8 @@ export namespace FlowCreateResponse {
|
|
|
236
240
|
export interface Data {
|
|
237
241
|
id: string;
|
|
238
242
|
|
|
243
|
+
agentId: string | null;
|
|
244
|
+
|
|
239
245
|
archivedAt: string | null;
|
|
240
246
|
|
|
241
247
|
blockedAt: string | null;
|
|
@@ -304,7 +310,7 @@ export namespace FlowCreateResponse {
|
|
|
304
310
|
status: 'healthy' | 'failing' | 'blocked';
|
|
305
311
|
|
|
306
312
|
/**
|
|
307
|
-
* Template-resolver semantics this flow runs under
|
|
313
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
308
314
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
309
315
|
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
310
316
|
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
@@ -324,8 +330,11 @@ export namespace FlowCreateResponse {
|
|
|
324
330
|
|
|
325
331
|
export namespace Data {
|
|
326
332
|
export interface Delivery {
|
|
327
|
-
destination: 'one_drive' | 'google_drive';
|
|
333
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
328
334
|
|
|
335
|
+
/**
|
|
336
|
+
* not allowed when destination is mobilerun
|
|
337
|
+
*/
|
|
329
338
|
folder?: string;
|
|
330
339
|
|
|
331
340
|
recording?: Delivery.Recording;
|
|
@@ -353,6 +362,8 @@ export namespace FlowRetrieveResponse {
|
|
|
353
362
|
export interface Data {
|
|
354
363
|
id: string;
|
|
355
364
|
|
|
365
|
+
agentId: string | null;
|
|
366
|
+
|
|
356
367
|
archivedAt: string | null;
|
|
357
368
|
|
|
358
369
|
blockedAt: string | null;
|
|
@@ -421,7 +432,7 @@ export namespace FlowRetrieveResponse {
|
|
|
421
432
|
status: 'healthy' | 'failing' | 'blocked';
|
|
422
433
|
|
|
423
434
|
/**
|
|
424
|
-
* Template-resolver semantics this flow runs under
|
|
435
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
425
436
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
426
437
|
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
427
438
|
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
@@ -441,8 +452,11 @@ export namespace FlowRetrieveResponse {
|
|
|
441
452
|
|
|
442
453
|
export namespace Data {
|
|
443
454
|
export interface Delivery {
|
|
444
|
-
destination: 'one_drive' | 'google_drive';
|
|
455
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
445
456
|
|
|
457
|
+
/**
|
|
458
|
+
* not allowed when destination is mobilerun
|
|
459
|
+
*/
|
|
446
460
|
folder?: string;
|
|
447
461
|
|
|
448
462
|
recording?: Delivery.Recording;
|
|
@@ -470,6 +484,8 @@ export namespace FlowUpdateResponse {
|
|
|
470
484
|
export interface Data {
|
|
471
485
|
id: string;
|
|
472
486
|
|
|
487
|
+
agentId: string | null;
|
|
488
|
+
|
|
473
489
|
archivedAt: string | null;
|
|
474
490
|
|
|
475
491
|
blockedAt: string | null;
|
|
@@ -538,7 +554,7 @@ export namespace FlowUpdateResponse {
|
|
|
538
554
|
status: 'healthy' | 'failing' | 'blocked';
|
|
539
555
|
|
|
540
556
|
/**
|
|
541
|
-
* Template-resolver semantics this flow runs under
|
|
557
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
542
558
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
543
559
|
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
544
560
|
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
@@ -558,8 +574,11 @@ export namespace FlowUpdateResponse {
|
|
|
558
574
|
|
|
559
575
|
export namespace Data {
|
|
560
576
|
export interface Delivery {
|
|
561
|
-
destination: 'one_drive' | 'google_drive';
|
|
577
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
562
578
|
|
|
579
|
+
/**
|
|
580
|
+
* not allowed when destination is mobilerun
|
|
581
|
+
*/
|
|
563
582
|
folder?: string;
|
|
564
583
|
|
|
565
584
|
recording?: Delivery.Recording;
|
|
@@ -589,6 +608,8 @@ export namespace FlowListResponse {
|
|
|
589
608
|
export interface Item {
|
|
590
609
|
id: string;
|
|
591
610
|
|
|
611
|
+
agentId: string | null;
|
|
612
|
+
|
|
592
613
|
archivedAt: string | null;
|
|
593
614
|
|
|
594
615
|
blockedAt: string | null;
|
|
@@ -657,7 +678,7 @@ export namespace FlowListResponse {
|
|
|
657
678
|
status: 'healthy' | 'failing' | 'blocked';
|
|
658
679
|
|
|
659
680
|
/**
|
|
660
|
-
* Template-resolver semantics this flow runs under
|
|
681
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
661
682
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
662
683
|
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
663
684
|
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
@@ -677,8 +698,11 @@ export namespace FlowListResponse {
|
|
|
677
698
|
|
|
678
699
|
export namespace Item {
|
|
679
700
|
export interface Delivery {
|
|
680
|
-
destination: 'one_drive' | 'google_drive';
|
|
701
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
681
702
|
|
|
703
|
+
/**
|
|
704
|
+
* not allowed when destination is mobilerun
|
|
705
|
+
*/
|
|
682
706
|
folder?: string;
|
|
683
707
|
|
|
684
708
|
recording?: Delivery.Recording;
|
|
@@ -710,6 +734,8 @@ export namespace FlowActivateResponse {
|
|
|
710
734
|
export interface Data {
|
|
711
735
|
id: string;
|
|
712
736
|
|
|
737
|
+
agentId: string | null;
|
|
738
|
+
|
|
713
739
|
archivedAt: string | null;
|
|
714
740
|
|
|
715
741
|
blockedAt: string | null;
|
|
@@ -778,7 +804,7 @@ export namespace FlowActivateResponse {
|
|
|
778
804
|
status: 'healthy' | 'failing' | 'blocked';
|
|
779
805
|
|
|
780
806
|
/**
|
|
781
|
-
* Template-resolver semantics this flow runs under
|
|
807
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
782
808
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
783
809
|
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
784
810
|
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
@@ -798,8 +824,11 @@ export namespace FlowActivateResponse {
|
|
|
798
824
|
|
|
799
825
|
export namespace Data {
|
|
800
826
|
export interface Delivery {
|
|
801
|
-
destination: 'one_drive' | 'google_drive';
|
|
827
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
802
828
|
|
|
829
|
+
/**
|
|
830
|
+
* not allowed when destination is mobilerun
|
|
831
|
+
*/
|
|
803
832
|
folder?: string;
|
|
804
833
|
|
|
805
834
|
recording?: Delivery.Recording;
|
|
@@ -829,7 +858,7 @@ export namespace FlowCapacityResponse {
|
|
|
829
858
|
|
|
830
859
|
remaining: number;
|
|
831
860
|
|
|
832
|
-
status: 'available' | 'exhausted'
|
|
861
|
+
status: 'available' | 'exhausted';
|
|
833
862
|
}
|
|
834
863
|
}
|
|
835
864
|
|
|
@@ -841,6 +870,8 @@ export namespace FlowCloneResponse {
|
|
|
841
870
|
export interface Data {
|
|
842
871
|
id: string;
|
|
843
872
|
|
|
873
|
+
agentId: string | null;
|
|
874
|
+
|
|
844
875
|
archivedAt: string | null;
|
|
845
876
|
|
|
846
877
|
blockedAt: string | null;
|
|
@@ -909,7 +940,7 @@ export namespace FlowCloneResponse {
|
|
|
909
940
|
status: 'healthy' | 'failing' | 'blocked';
|
|
910
941
|
|
|
911
942
|
/**
|
|
912
|
-
* Template-resolver semantics this flow runs under
|
|
943
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
913
944
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
914
945
|
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
915
946
|
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
@@ -929,8 +960,11 @@ export namespace FlowCloneResponse {
|
|
|
929
960
|
|
|
930
961
|
export namespace Data {
|
|
931
962
|
export interface Delivery {
|
|
932
|
-
destination: 'one_drive' | 'google_drive';
|
|
963
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
933
964
|
|
|
965
|
+
/**
|
|
966
|
+
* not allowed when destination is mobilerun
|
|
967
|
+
*/
|
|
934
968
|
folder?: string;
|
|
935
969
|
|
|
936
970
|
recording?: Delivery.Recording;
|
|
@@ -959,7 +993,7 @@ export namespace FlowDeliveryOptionsResponse {
|
|
|
959
993
|
canDeliverRecording: boolean;
|
|
960
994
|
|
|
961
995
|
/**
|
|
962
|
-
* Delivery destinations in
|
|
996
|
+
* Delivery destinations in their canonical order.
|
|
963
997
|
*/
|
|
964
998
|
destinations: Array<Data.Destination>;
|
|
965
999
|
|
|
@@ -978,7 +1012,7 @@ export namespace FlowDeliveryOptionsResponse {
|
|
|
978
1012
|
|
|
979
1013
|
iconUrl: string | null;
|
|
980
1014
|
|
|
981
|
-
key: 'one_drive' | 'google_drive';
|
|
1015
|
+
key: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
982
1016
|
|
|
983
1017
|
label: string;
|
|
984
1018
|
}
|
|
@@ -1195,6 +1229,8 @@ export namespace FlowUnblockResponse {
|
|
|
1195
1229
|
export interface Data {
|
|
1196
1230
|
id: string;
|
|
1197
1231
|
|
|
1232
|
+
agentId: string | null;
|
|
1233
|
+
|
|
1198
1234
|
archivedAt: string | null;
|
|
1199
1235
|
|
|
1200
1236
|
blockedAt: string | null;
|
|
@@ -1263,7 +1299,7 @@ export namespace FlowUnblockResponse {
|
|
|
1263
1299
|
status: 'healthy' | 'failing' | 'blocked';
|
|
1264
1300
|
|
|
1265
1301
|
/**
|
|
1266
|
-
* Template-resolver semantics this flow runs under
|
|
1302
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
1267
1303
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
1268
1304
|
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
1269
1305
|
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
@@ -1283,8 +1319,11 @@ export namespace FlowUnblockResponse {
|
|
|
1283
1319
|
|
|
1284
1320
|
export namespace Data {
|
|
1285
1321
|
export interface Delivery {
|
|
1286
|
-
destination: 'one_drive' | 'google_drive';
|
|
1322
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
1287
1323
|
|
|
1324
|
+
/**
|
|
1325
|
+
* not allowed when destination is mobilerun
|
|
1326
|
+
*/
|
|
1288
1327
|
folder?: string;
|
|
1289
1328
|
|
|
1290
1329
|
recording?: Delivery.Recording;
|
|
@@ -1472,8 +1511,11 @@ export namespace FlowCreateParams {
|
|
|
1472
1511
|
}
|
|
1473
1512
|
|
|
1474
1513
|
export interface Delivery {
|
|
1475
|
-
destination: 'one_drive' | 'google_drive';
|
|
1514
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
1476
1515
|
|
|
1516
|
+
/**
|
|
1517
|
+
* not allowed when destination is mobilerun
|
|
1518
|
+
*/
|
|
1477
1519
|
folder?: string;
|
|
1478
1520
|
|
|
1479
1521
|
recording?: Delivery.Recording;
|
|
@@ -1537,8 +1579,11 @@ export interface FlowUpdateParams {
|
|
|
1537
1579
|
|
|
1538
1580
|
export namespace FlowUpdateParams {
|
|
1539
1581
|
export interface Delivery {
|
|
1540
|
-
destination: 'one_drive' | 'google_drive';
|
|
1582
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
1541
1583
|
|
|
1584
|
+
/**
|
|
1585
|
+
* not allowed when destination is mobilerun
|
|
1586
|
+
*/
|
|
1542
1587
|
folder?: string;
|
|
1543
1588
|
|
|
1544
1589
|
recording?: Delivery.Recording;
|
|
@@ -1558,6 +1603,12 @@ export namespace FlowUpdateParams {
|
|
|
1558
1603
|
}
|
|
1559
1604
|
|
|
1560
1605
|
export interface FlowListParams {
|
|
1606
|
+
/**
|
|
1607
|
+
* Agent bucket UUID or unassigned. Omit on list to include every bucket; omit on
|
|
1608
|
+
* capacity for unassigned.
|
|
1609
|
+
*/
|
|
1610
|
+
agentId?: (string & {}) | 'unassigned';
|
|
1611
|
+
|
|
1561
1612
|
createdBy?: string;
|
|
1562
1613
|
|
|
1563
1614
|
/**
|
|
@@ -1589,6 +1640,14 @@ export interface FlowActivateParams {
|
|
|
1589
1640
|
verificationExecutionId: string;
|
|
1590
1641
|
}
|
|
1591
1642
|
|
|
1643
|
+
export interface FlowCapacityParams {
|
|
1644
|
+
/**
|
|
1645
|
+
* Agent bucket UUID or unassigned. Omit on list to include every bucket; omit on
|
|
1646
|
+
* capacity for unassigned.
|
|
1647
|
+
*/
|
|
1648
|
+
agentId?: (string & {}) | 'unassigned';
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1592
1651
|
export interface FlowCloneParams {
|
|
1593
1652
|
deviceIds?: Array<string>;
|
|
1594
1653
|
|
|
@@ -1600,6 +1659,13 @@ export interface FlowDryRunParams {
|
|
|
1600
1659
|
}
|
|
1601
1660
|
|
|
1602
1661
|
export interface FlowRunParams {
|
|
1662
|
+
/**
|
|
1663
|
+
* Record and keep this run's scripts.run screenshots
|
|
1664
|
+
* (device.screenshot(save=True)) even without flow delivery. Used for a one-off
|
|
1665
|
+
* proof run.
|
|
1666
|
+
*/
|
|
1667
|
+
captureScreenshots?: boolean;
|
|
1668
|
+
|
|
1603
1669
|
payload?: { [key: string]: unknown };
|
|
1604
1670
|
}
|
|
1605
1671
|
|
|
@@ -1744,8 +1810,11 @@ export namespace FlowValidateParams {
|
|
|
1744
1810
|
}
|
|
1745
1811
|
|
|
1746
1812
|
export interface Delivery {
|
|
1747
|
-
destination: 'one_drive' | 'google_drive';
|
|
1813
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
1748
1814
|
|
|
1815
|
+
/**
|
|
1816
|
+
* not allowed when destination is mobilerun
|
|
1817
|
+
*/
|
|
1749
1818
|
folder?: string;
|
|
1750
1819
|
|
|
1751
1820
|
recording?: Delivery.Recording;
|
|
@@ -1806,6 +1875,7 @@ export declare namespace Flows {
|
|
|
1806
1875
|
type FlowUpdateParams as FlowUpdateParams,
|
|
1807
1876
|
type FlowListParams as FlowListParams,
|
|
1808
1877
|
type FlowActivateParams as FlowActivateParams,
|
|
1878
|
+
type FlowCapacityParams as FlowCapacityParams,
|
|
1809
1879
|
type FlowCloneParams as FlowCloneParams,
|
|
1810
1880
|
type FlowDryRunParams as FlowDryRunParams,
|
|
1811
1881
|
type FlowRunParams as FlowRunParams,
|
|
@@ -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
|
|
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
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
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
|
|
423
|
-
*
|
|
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 (
|
|
436
|
-
*
|
|
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
|
}
|
|
@@ -58,6 +58,7 @@ import * as FlowsAPI from './flows/flows';
|
|
|
58
58
|
import {
|
|
59
59
|
FlowActivateParams,
|
|
60
60
|
FlowActivateResponse,
|
|
61
|
+
FlowCapacityParams,
|
|
61
62
|
FlowCapacityResponse,
|
|
62
63
|
FlowCloneParams,
|
|
63
64
|
FlowCloneResponse,
|
|
@@ -159,6 +160,7 @@ export declare namespace Workflows {
|
|
|
159
160
|
type FlowUpdateParams as FlowUpdateParams,
|
|
160
161
|
type FlowListParams as FlowListParams,
|
|
161
162
|
type FlowActivateParams as FlowActivateParams,
|
|
163
|
+
type FlowCapacityParams as FlowCapacityParams,
|
|
162
164
|
type FlowCloneParams as FlowCloneParams,
|
|
163
165
|
type FlowDryRunParams as FlowDryRunParams,
|
|
164
166
|
type FlowRunParams as FlowRunParams,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '6.0.1'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "6.0.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "6.0.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '6.0.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|