@mobilerun/sdk 5.5.0 → 5.6.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.
- package/CHANGELOG.md +9 -0
- package/client.d.mts +8 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -8
- package/client.d.ts.map +1 -1
- package/client.js +1 -0
- package/client.js.map +1 -1
- package/client.mjs +2 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +18 -15
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +18 -15
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +5 -2
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +5 -2
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +7 -17
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +7 -17
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +4 -11
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +4 -11
- package/resources/assistant/conversations.mjs.map +1 -1
- package/resources/connect/connect.d.mts +2 -2
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +2 -2
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +94 -11
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +94 -11
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +21 -10
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +21 -10
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/devices/browser.d.mts +9 -3
- package/resources/devices/browser.d.mts.map +1 -1
- package/resources/devices/browser.d.ts +9 -3
- package/resources/devices/browser.d.ts.map +1 -1
- package/resources/devices/browser.js +9 -3
- package/resources/devices/browser.js.map +1 -1
- package/resources/devices/browser.mjs +9 -3
- package/resources/devices/browser.mjs.map +1 -1
- package/resources/devices/devices.d.mts +52 -23
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +52 -23
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +17 -7
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +17 -7
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +1 -1
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +1 -1
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/recordings.d.mts +4 -2
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +4 -2
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.d.mts +1 -11
- package/resources/devices/traffic-sessions.d.mts.map +1 -1
- package/resources/devices/traffic-sessions.d.ts +1 -11
- package/resources/devices/traffic-sessions.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.js +2 -8
- package/resources/devices/traffic-sessions.js.map +1 -1
- package/resources/devices/traffic-sessions.mjs +2 -8
- package/resources/devices/traffic-sessions.mjs.map +1 -1
- package/resources/files.d.mts +5 -19
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +5 -19
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +2 -10
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +2 -10
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +64 -0
- package/resources/mailboxes/connections.d.mts.map +1 -0
- package/resources/mailboxes/connections.d.ts +64 -0
- package/resources/mailboxes/connections.d.ts.map +1 -0
- package/resources/mailboxes/connections.js +42 -0
- package/resources/mailboxes/connections.js.map +1 -0
- package/resources/mailboxes/connections.mjs +38 -0
- package/resources/mailboxes/connections.mjs.map +1 -0
- package/resources/mailboxes/index.d.mts +2 -1
- package/resources/mailboxes/index.d.mts.map +1 -1
- package/resources/mailboxes/index.d.ts +2 -1
- package/resources/mailboxes/index.d.ts.map +1 -1
- package/resources/mailboxes/index.js +3 -1
- package/resources/mailboxes/index.js.map +1 -1
- package/resources/mailboxes/index.mjs +1 -0
- package/resources/mailboxes/index.mjs.map +1 -1
- package/resources/mailboxes/mailboxes.d.mts +73 -24
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +73 -24
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +25 -8
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +25 -8
- package/resources/mailboxes/mailboxes.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +26 -1
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +26 -1
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +9 -0
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +9 -0
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/notifications.d.mts +27 -1
- package/resources/notifications.d.mts.map +1 -1
- package/resources/notifications.d.ts +27 -1
- package/resources/notifications.d.ts.map +1 -1
- package/resources/notifications.js +17 -0
- package/resources/notifications.js.map +1 -1
- package/resources/notifications.mjs +17 -0
- package/resources/notifications.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 +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +60 -1
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +60 -1
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +21 -0
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +21 -0
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +123 -15
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +123 -15
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +2 -11
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +3 -12
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/store/apps.d.mts +23 -2
- package/resources/store/apps.d.mts.map +1 -1
- package/resources/store/apps.d.ts +23 -2
- package/resources/store/apps.d.ts.map +1 -1
- package/resources/tasks/tasks.d.mts +16 -55
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +16 -55
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +2 -10
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +2 -10
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +22 -31
- package/resources/webhooks/deliveries.d.mts.map +1 -1
- package/resources/webhooks/deliveries.d.ts +22 -31
- package/resources/webhooks/deliveries.d.ts.map +1 -1
- package/resources/webhooks/deliveries.js +4 -30
- package/resources/webhooks/deliveries.js.map +1 -1
- package/resources/webhooks/deliveries.mjs +4 -30
- package/resources/webhooks/deliveries.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +1 -0
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -0
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js +3 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs +1 -0
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/integrations.d.mts +77 -0
- package/resources/webhooks/integrations.d.mts.map +1 -0
- package/resources/webhooks/integrations.d.ts +77 -0
- package/resources/webhooks/integrations.d.ts.map +1 -0
- package/resources/webhooks/integrations.js +26 -0
- package/resources/webhooks/integrations.js.map +1 -0
- package/resources/webhooks/integrations.mjs +22 -0
- package/resources/webhooks/integrations.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +279 -71
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +279 -71
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +27 -60
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +27 -60
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +7 -3
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +7 -3
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/actions/actions.d.mts +9 -5
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +9 -5
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +4 -0
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +4 -0
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/events.d.mts +48 -4
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +48 -4
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +334 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -0
- package/resources/workflows/executions/executions.d.ts +334 -0
- package/resources/workflows/executions/executions.d.ts.map +1 -0
- package/resources/workflows/executions/executions.js +49 -0
- package/resources/workflows/executions/executions.js.map +1 -0
- package/resources/workflows/executions/executions.mjs +44 -0
- package/resources/workflows/executions/executions.mjs.map +1 -0
- package/resources/workflows/executions/index.d.mts +3 -0
- package/resources/workflows/executions/index.d.mts.map +1 -0
- package/resources/workflows/executions/index.d.ts +3 -0
- package/resources/workflows/executions/index.d.ts.map +1 -0
- package/resources/workflows/executions/index.js +9 -0
- package/resources/workflows/executions/index.js.map +1 -0
- package/resources/workflows/executions/index.mjs +4 -0
- package/resources/workflows/executions/index.mjs.map +1 -0
- package/resources/workflows/executions/screenshots.d.mts +18 -0
- package/resources/workflows/executions/screenshots.d.mts.map +1 -0
- package/resources/workflows/executions/screenshots.d.ts +18 -0
- package/resources/workflows/executions/screenshots.d.ts.map +1 -0
- package/resources/workflows/executions/screenshots.js +23 -0
- package/resources/workflows/executions/screenshots.js.map +1 -0
- package/resources/workflows/executions/screenshots.mjs +19 -0
- package/resources/workflows/executions/screenshots.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +1 -269
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +1 -269
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +2 -37
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +1 -35
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +39 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +39 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js +4 -0
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs +4 -0
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +529 -18
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +529 -18
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +75 -0
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +75 -0
- 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 +2 -2
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +2 -2
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js +4 -4
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +107 -9
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +107 -9
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +14 -0
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +14 -0
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +4 -4
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +4 -4
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js +2 -2
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs +2 -2
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +18 -1
- package/src/resources/apps.ts +18 -15
- package/src/resources/assistant/conversations.ts +12 -27
- package/src/resources/connect/connect.ts +6 -0
- package/src/resources/connect/index.ts +3 -0
- package/src/resources/connect/proxies.ts +119 -19
- package/src/resources/devices/browser.ts +9 -3
- package/src/resources/devices/devices.ts +80 -30
- package/src/resources/devices/index.ts +2 -0
- package/src/resources/devices/recordings.ts +4 -2
- package/src/resources/devices/traffic-sessions.ts +2 -19
- package/src/resources/files.ts +8 -29
- package/src/resources/index.ts +11 -1
- package/src/resources/mailboxes/connections.ts +91 -0
- package/src/resources/mailboxes/index.ts +7 -0
- package/src/resources/mailboxes/mailboxes.ts +146 -24
- package/src/resources/messages/index.ts +6 -1
- package/src/resources/messages/messages.ts +55 -1
- package/src/resources/notifications.ts +37 -0
- package/src/resources/numbers/index.ts +7 -1
- package/src/resources/numbers/messages.ts +92 -1
- package/src/resources/numbers/numbers.ts +143 -25
- package/src/resources/store/apps.ts +291 -2
- package/src/resources/tasks/tasks.ts +18 -65
- package/src/resources/webhooks/deliveries.ts +26 -31
- package/src/resources/webhooks/index.ts +6 -0
- package/src/resources/webhooks/integrations.ts +107 -0
- package/src/resources/webhooks/webhooks.ts +326 -71
- package/src/resources/workflows/action-catalog.ts +11 -3
- package/src/resources/workflows/actions/actions.ts +9 -5
- package/src/resources/workflows/events.ts +62 -4
- package/src/resources/workflows/executions/executions.ts +514 -0
- package/src/resources/workflows/executions/index.ts +12 -0
- package/src/resources/workflows/executions/screenshots.ts +34 -0
- package/src/resources/workflows/executions.ts +1 -412
- package/src/resources/workflows/flows/actions.ts +46 -0
- package/src/resources/workflows/flows/flows.ts +765 -17
- package/src/resources/workflows/flows/index.ts +11 -0
- package/src/resources/workflows/index.ts +12 -1
- package/src/resources/workflows/triggers.ts +128 -10
- package/src/resources/workflows/workflows.ts +32 -10
- 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
|
@@ -1,270 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as Shared from "../shared.mjs";
|
|
3
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
-
export declare class Executions extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Fetch a single flow execution by its ID, including its status, kind, result or
|
|
8
|
-
* error, and start/finish timestamps. Returns 404 if no execution matches.
|
|
9
|
-
*/
|
|
10
|
-
retrieve(executionID: string, options?: RequestOptions): APIPromise<ExecutionRetrieveResponse>;
|
|
11
|
-
/**
|
|
12
|
-
* Return a paginated history of flow executions. Supports filtering by `flowId`,
|
|
13
|
-
* `triggerId`, `invocationId` (the client/verify key), `status`, and a `from`/`to`
|
|
14
|
-
* time range, plus free-text `search` and ordering by startedAt, finishedAt, or
|
|
15
|
-
* status.
|
|
16
|
-
*/
|
|
17
|
-
list(query?: ExecutionListParams | null | undefined, options?: RequestOptions): APIPromise<ExecutionListResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* Signals the worker to stop the execution between steps and marks it cancelled.
|
|
20
|
-
* Idempotent-ish: already-terminal executions return 409.
|
|
21
|
-
*/
|
|
22
|
-
abort(executionID: string, options?: RequestOptions): APIPromise<ExecutionAbortResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* Return aggregate execution metrics — total count, counts by status, average
|
|
25
|
-
* duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
|
|
26
|
-
* and a `from`/`to` time range.
|
|
27
|
-
*/
|
|
28
|
-
getMetrics(query?: ExecutionGetMetricsParams | null | undefined, options?: RequestOptions): APIPromise<ExecutionGetMetricsResponse>;
|
|
29
|
-
}
|
|
30
|
-
export interface ExecutionRetrieveResponse {
|
|
31
|
-
data: ExecutionRetrieveResponse.Data;
|
|
32
|
-
}
|
|
33
|
-
export declare namespace ExecutionRetrieveResponse {
|
|
34
|
-
interface Data {
|
|
35
|
-
id: string;
|
|
36
|
-
createdBy: string | null;
|
|
37
|
-
/**
|
|
38
|
-
* Device this execution targets (the job's deviceId). Null for device-less
|
|
39
|
-
* (event-only) runs.
|
|
40
|
-
*/
|
|
41
|
-
deviceId: string | null;
|
|
42
|
-
error: string | null;
|
|
43
|
-
eventId: string | null;
|
|
44
|
-
/**
|
|
45
|
-
* Files produced by files.upload steps, plus files an agent.run step reported on
|
|
46
|
-
* its terminal response (agent-created output or a workflow upload minted during
|
|
47
|
-
* the turn); derived server-side at read time.
|
|
48
|
-
*/
|
|
49
|
-
files: Array<Data.File>;
|
|
50
|
-
finishedAt: string | null;
|
|
51
|
-
flowId: string;
|
|
52
|
-
flowName: string | null;
|
|
53
|
-
/**
|
|
54
|
-
* Client/verify invocation key this row belongs to. Set on live custom fires (one
|
|
55
|
-
* row per device fan-out) and on verification runs; null for event/schedule live
|
|
56
|
-
* rows.
|
|
57
|
-
*/
|
|
58
|
-
invocationId: string | null;
|
|
59
|
-
kind: 'live' | 'dry_run' | 'verification';
|
|
60
|
-
recordingDeviceId: string | null;
|
|
61
|
-
/**
|
|
62
|
-
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
63
|
-
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
64
|
-
* the recording failed to start.
|
|
65
|
-
*/
|
|
66
|
-
recordingId: string | null;
|
|
67
|
-
/**
|
|
68
|
-
* Durable recording segments ordered by step/loop coordinate and retry attempt.
|
|
69
|
-
* Whole-flow recordings use -1 for every coordinate.
|
|
70
|
-
*/
|
|
71
|
-
recordings: Array<Data.Recording>;
|
|
72
|
-
startedAt: string | null;
|
|
73
|
-
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
74
|
-
triggerId: string;
|
|
75
|
-
triggerName: string | null;
|
|
76
|
-
/**
|
|
77
|
-
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
78
|
-
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
79
|
-
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
80
|
-
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
81
|
-
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
82
|
-
* clients must not assume its presence.
|
|
83
|
-
*/
|
|
84
|
-
result?: unknown;
|
|
85
|
-
}
|
|
86
|
-
namespace Data {
|
|
87
|
-
interface File {
|
|
88
|
-
fileId: string;
|
|
89
|
-
filename: string;
|
|
90
|
-
mimeType: string;
|
|
91
|
-
sizeBytes: number;
|
|
92
|
-
}
|
|
93
|
-
interface Recording {
|
|
94
|
-
id: string;
|
|
95
|
-
attempt: number;
|
|
96
|
-
childIndex: number;
|
|
97
|
-
flowActionId: string | null;
|
|
98
|
-
iterationIndex: number;
|
|
99
|
-
lastError: string | null;
|
|
100
|
-
parentIndex: number;
|
|
101
|
-
recordingDeviceId: string | null;
|
|
102
|
-
recordingId: string | null;
|
|
103
|
-
scope: 'flow' | 'step';
|
|
104
|
-
startedAt: string | null;
|
|
105
|
-
status: 'starting' | 'recording' | 'stopping' | 'stopped' | 'failed';
|
|
106
|
-
stepIndex: number;
|
|
107
|
-
stoppedAt: string | null;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
export interface ExecutionListResponse {
|
|
112
|
-
items: Array<ExecutionListResponse.Item>;
|
|
113
|
-
pagination: Shared.Pagination;
|
|
114
|
-
}
|
|
115
|
-
export declare namespace ExecutionListResponse {
|
|
116
|
-
interface Item {
|
|
117
|
-
id: string;
|
|
118
|
-
createdBy: string | null;
|
|
119
|
-
/**
|
|
120
|
-
* Device this execution targets (the job's deviceId). Null for device-less
|
|
121
|
-
* (event-only) runs.
|
|
122
|
-
*/
|
|
123
|
-
deviceId: string | null;
|
|
124
|
-
error: string | null;
|
|
125
|
-
eventId: string | null;
|
|
126
|
-
finishedAt: string | null;
|
|
127
|
-
flowId: string;
|
|
128
|
-
flowName: string | null;
|
|
129
|
-
/**
|
|
130
|
-
* Client/verify invocation key this row belongs to. Set on live custom fires (one
|
|
131
|
-
* row per device fan-out) and on verification runs; null for event/schedule live
|
|
132
|
-
* rows.
|
|
133
|
-
*/
|
|
134
|
-
invocationId: string | null;
|
|
135
|
-
kind: 'live' | 'dry_run' | 'verification';
|
|
136
|
-
recordingDeviceId: string | null;
|
|
137
|
-
/**
|
|
138
|
-
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
139
|
-
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
140
|
-
* the recording failed to start.
|
|
141
|
-
*/
|
|
142
|
-
recordingId: string | null;
|
|
143
|
-
/**
|
|
144
|
-
* Durable recording segments ordered by step/loop coordinate and retry attempt.
|
|
145
|
-
* Whole-flow recordings use -1 for every coordinate.
|
|
146
|
-
*/
|
|
147
|
-
recordings: Array<Item.Recording>;
|
|
148
|
-
startedAt: string | null;
|
|
149
|
-
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
150
|
-
triggerId: string;
|
|
151
|
-
triggerName: string | null;
|
|
152
|
-
/**
|
|
153
|
-
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
154
|
-
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
155
|
-
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
156
|
-
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
157
|
-
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
158
|
-
* clients must not assume its presence.
|
|
159
|
-
*/
|
|
160
|
-
result?: unknown;
|
|
161
|
-
}
|
|
162
|
-
namespace Item {
|
|
163
|
-
interface Recording {
|
|
164
|
-
id: string;
|
|
165
|
-
attempt: number;
|
|
166
|
-
childIndex: number;
|
|
167
|
-
flowActionId: string | null;
|
|
168
|
-
iterationIndex: number;
|
|
169
|
-
lastError: string | null;
|
|
170
|
-
parentIndex: number;
|
|
171
|
-
recordingDeviceId: string | null;
|
|
172
|
-
recordingId: string | null;
|
|
173
|
-
scope: 'flow' | 'step';
|
|
174
|
-
startedAt: string | null;
|
|
175
|
-
status: 'starting' | 'recording' | 'stopping' | 'stopped' | 'failed';
|
|
176
|
-
stepIndex: number;
|
|
177
|
-
stoppedAt: string | null;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
export interface ExecutionAbortResponse {
|
|
182
|
-
data: ExecutionAbortResponse.Data;
|
|
183
|
-
}
|
|
184
|
-
export declare namespace ExecutionAbortResponse {
|
|
185
|
-
interface Data {
|
|
186
|
-
id: string;
|
|
187
|
-
/**
|
|
188
|
-
* Device this execution targets (the job's deviceId). Null for device-less
|
|
189
|
-
* (event-only) runs.
|
|
190
|
-
*/
|
|
191
|
-
deviceId: string | null;
|
|
192
|
-
error: string | null;
|
|
193
|
-
eventId: string | null;
|
|
194
|
-
finishedAt: string | null;
|
|
195
|
-
flowId: string;
|
|
196
|
-
flowName: string | null;
|
|
197
|
-
/**
|
|
198
|
-
* Client/verify invocation key this row belongs to. Set on live custom fires (one
|
|
199
|
-
* row per device fan-out) and on verification runs; null for event/schedule live
|
|
200
|
-
* rows.
|
|
201
|
-
*/
|
|
202
|
-
invocationId: string | null;
|
|
203
|
-
kind: 'live' | 'dry_run' | 'verification';
|
|
204
|
-
recordingDeviceId: string | null;
|
|
205
|
-
/**
|
|
206
|
-
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
207
|
-
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
208
|
-
* the recording failed to start.
|
|
209
|
-
*/
|
|
210
|
-
recordingId: string | null;
|
|
211
|
-
startedAt: string | null;
|
|
212
|
-
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
213
|
-
triggerId: string;
|
|
214
|
-
triggerName: string | null;
|
|
215
|
-
/**
|
|
216
|
-
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
217
|
-
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
218
|
-
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
219
|
-
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
220
|
-
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
221
|
-
* clients must not assume its presence.
|
|
222
|
-
*/
|
|
223
|
-
result?: unknown;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
export interface ExecutionGetMetricsResponse {
|
|
227
|
-
data: ExecutionGetMetricsResponse.Data;
|
|
228
|
-
}
|
|
229
|
-
export declare namespace ExecutionGetMetricsResponse {
|
|
230
|
-
interface Data {
|
|
231
|
-
avgDurationMs: number | null;
|
|
232
|
-
byStatus: Data.ByStatus;
|
|
233
|
-
lastExecutionAt: string | null;
|
|
234
|
-
total: number;
|
|
235
|
-
}
|
|
236
|
-
namespace Data {
|
|
237
|
-
interface ByStatus {
|
|
238
|
-
cancelled: number;
|
|
239
|
-
failed: number;
|
|
240
|
-
invalid: number;
|
|
241
|
-
pending: number;
|
|
242
|
-
running: number;
|
|
243
|
-
skipped: number;
|
|
244
|
-
success: number;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
export interface ExecutionListParams {
|
|
249
|
-
flowId?: string;
|
|
250
|
-
from?: string | null;
|
|
251
|
-
invocationId?: string;
|
|
252
|
-
orderBy?: 'startedAt' | 'finishedAt' | 'status';
|
|
253
|
-
orderByDirection?: 'asc' | 'desc';
|
|
254
|
-
page?: number;
|
|
255
|
-
pageSize?: number;
|
|
256
|
-
search?: string;
|
|
257
|
-
status?: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid';
|
|
258
|
-
to?: string | null;
|
|
259
|
-
triggerId?: string;
|
|
260
|
-
}
|
|
261
|
-
export interface ExecutionGetMetricsParams {
|
|
262
|
-
flowId?: string;
|
|
263
|
-
from?: string | null;
|
|
264
|
-
to?: string | null;
|
|
265
|
-
triggerId?: string;
|
|
266
|
-
}
|
|
267
|
-
export declare namespace Executions {
|
|
268
|
-
export { type ExecutionRetrieveResponse as ExecutionRetrieveResponse, type ExecutionListResponse as ExecutionListResponse, type ExecutionAbortResponse as ExecutionAbortResponse, type ExecutionGetMetricsResponse as ExecutionGetMetricsResponse, type ExecutionListParams as ExecutionListParams, type ExecutionGetMetricsParams as ExecutionGetMetricsParams, };
|
|
269
|
-
}
|
|
1
|
+
export * from "./executions/index.mjs";
|
|
270
2
|
//# sourceMappingURL=executions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"executions.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAEA,uCAAmC"}
|
|
@@ -1,270 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as Shared from "../shared.js";
|
|
3
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
-
export declare class Executions extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Fetch a single flow execution by its ID, including its status, kind, result or
|
|
8
|
-
* error, and start/finish timestamps. Returns 404 if no execution matches.
|
|
9
|
-
*/
|
|
10
|
-
retrieve(executionID: string, options?: RequestOptions): APIPromise<ExecutionRetrieveResponse>;
|
|
11
|
-
/**
|
|
12
|
-
* Return a paginated history of flow executions. Supports filtering by `flowId`,
|
|
13
|
-
* `triggerId`, `invocationId` (the client/verify key), `status`, and a `from`/`to`
|
|
14
|
-
* time range, plus free-text `search` and ordering by startedAt, finishedAt, or
|
|
15
|
-
* status.
|
|
16
|
-
*/
|
|
17
|
-
list(query?: ExecutionListParams | null | undefined, options?: RequestOptions): APIPromise<ExecutionListResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* Signals the worker to stop the execution between steps and marks it cancelled.
|
|
20
|
-
* Idempotent-ish: already-terminal executions return 409.
|
|
21
|
-
*/
|
|
22
|
-
abort(executionID: string, options?: RequestOptions): APIPromise<ExecutionAbortResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* Return aggregate execution metrics — total count, counts by status, average
|
|
25
|
-
* duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
|
|
26
|
-
* and a `from`/`to` time range.
|
|
27
|
-
*/
|
|
28
|
-
getMetrics(query?: ExecutionGetMetricsParams | null | undefined, options?: RequestOptions): APIPromise<ExecutionGetMetricsResponse>;
|
|
29
|
-
}
|
|
30
|
-
export interface ExecutionRetrieveResponse {
|
|
31
|
-
data: ExecutionRetrieveResponse.Data;
|
|
32
|
-
}
|
|
33
|
-
export declare namespace ExecutionRetrieveResponse {
|
|
34
|
-
interface Data {
|
|
35
|
-
id: string;
|
|
36
|
-
createdBy: string | null;
|
|
37
|
-
/**
|
|
38
|
-
* Device this execution targets (the job's deviceId). Null for device-less
|
|
39
|
-
* (event-only) runs.
|
|
40
|
-
*/
|
|
41
|
-
deviceId: string | null;
|
|
42
|
-
error: string | null;
|
|
43
|
-
eventId: string | null;
|
|
44
|
-
/**
|
|
45
|
-
* Files produced by files.upload steps, plus files an agent.run step reported on
|
|
46
|
-
* its terminal response (agent-created output or a workflow upload minted during
|
|
47
|
-
* the turn); derived server-side at read time.
|
|
48
|
-
*/
|
|
49
|
-
files: Array<Data.File>;
|
|
50
|
-
finishedAt: string | null;
|
|
51
|
-
flowId: string;
|
|
52
|
-
flowName: string | null;
|
|
53
|
-
/**
|
|
54
|
-
* Client/verify invocation key this row belongs to. Set on live custom fires (one
|
|
55
|
-
* row per device fan-out) and on verification runs; null for event/schedule live
|
|
56
|
-
* rows.
|
|
57
|
-
*/
|
|
58
|
-
invocationId: string | null;
|
|
59
|
-
kind: 'live' | 'dry_run' | 'verification';
|
|
60
|
-
recordingDeviceId: string | null;
|
|
61
|
-
/**
|
|
62
|
-
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
63
|
-
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
64
|
-
* the recording failed to start.
|
|
65
|
-
*/
|
|
66
|
-
recordingId: string | null;
|
|
67
|
-
/**
|
|
68
|
-
* Durable recording segments ordered by step/loop coordinate and retry attempt.
|
|
69
|
-
* Whole-flow recordings use -1 for every coordinate.
|
|
70
|
-
*/
|
|
71
|
-
recordings: Array<Data.Recording>;
|
|
72
|
-
startedAt: string | null;
|
|
73
|
-
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
74
|
-
triggerId: string;
|
|
75
|
-
triggerName: string | null;
|
|
76
|
-
/**
|
|
77
|
-
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
78
|
-
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
79
|
-
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
80
|
-
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
81
|
-
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
82
|
-
* clients must not assume its presence.
|
|
83
|
-
*/
|
|
84
|
-
result?: unknown;
|
|
85
|
-
}
|
|
86
|
-
namespace Data {
|
|
87
|
-
interface File {
|
|
88
|
-
fileId: string;
|
|
89
|
-
filename: string;
|
|
90
|
-
mimeType: string;
|
|
91
|
-
sizeBytes: number;
|
|
92
|
-
}
|
|
93
|
-
interface Recording {
|
|
94
|
-
id: string;
|
|
95
|
-
attempt: number;
|
|
96
|
-
childIndex: number;
|
|
97
|
-
flowActionId: string | null;
|
|
98
|
-
iterationIndex: number;
|
|
99
|
-
lastError: string | null;
|
|
100
|
-
parentIndex: number;
|
|
101
|
-
recordingDeviceId: string | null;
|
|
102
|
-
recordingId: string | null;
|
|
103
|
-
scope: 'flow' | 'step';
|
|
104
|
-
startedAt: string | null;
|
|
105
|
-
status: 'starting' | 'recording' | 'stopping' | 'stopped' | 'failed';
|
|
106
|
-
stepIndex: number;
|
|
107
|
-
stoppedAt: string | null;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
export interface ExecutionListResponse {
|
|
112
|
-
items: Array<ExecutionListResponse.Item>;
|
|
113
|
-
pagination: Shared.Pagination;
|
|
114
|
-
}
|
|
115
|
-
export declare namespace ExecutionListResponse {
|
|
116
|
-
interface Item {
|
|
117
|
-
id: string;
|
|
118
|
-
createdBy: string | null;
|
|
119
|
-
/**
|
|
120
|
-
* Device this execution targets (the job's deviceId). Null for device-less
|
|
121
|
-
* (event-only) runs.
|
|
122
|
-
*/
|
|
123
|
-
deviceId: string | null;
|
|
124
|
-
error: string | null;
|
|
125
|
-
eventId: string | null;
|
|
126
|
-
finishedAt: string | null;
|
|
127
|
-
flowId: string;
|
|
128
|
-
flowName: string | null;
|
|
129
|
-
/**
|
|
130
|
-
* Client/verify invocation key this row belongs to. Set on live custom fires (one
|
|
131
|
-
* row per device fan-out) and on verification runs; null for event/schedule live
|
|
132
|
-
* rows.
|
|
133
|
-
*/
|
|
134
|
-
invocationId: string | null;
|
|
135
|
-
kind: 'live' | 'dry_run' | 'verification';
|
|
136
|
-
recordingDeviceId: string | null;
|
|
137
|
-
/**
|
|
138
|
-
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
139
|
-
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
140
|
-
* the recording failed to start.
|
|
141
|
-
*/
|
|
142
|
-
recordingId: string | null;
|
|
143
|
-
/**
|
|
144
|
-
* Durable recording segments ordered by step/loop coordinate and retry attempt.
|
|
145
|
-
* Whole-flow recordings use -1 for every coordinate.
|
|
146
|
-
*/
|
|
147
|
-
recordings: Array<Item.Recording>;
|
|
148
|
-
startedAt: string | null;
|
|
149
|
-
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
150
|
-
triggerId: string;
|
|
151
|
-
triggerName: string | null;
|
|
152
|
-
/**
|
|
153
|
-
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
154
|
-
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
155
|
-
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
156
|
-
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
157
|
-
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
158
|
-
* clients must not assume its presence.
|
|
159
|
-
*/
|
|
160
|
-
result?: unknown;
|
|
161
|
-
}
|
|
162
|
-
namespace Item {
|
|
163
|
-
interface Recording {
|
|
164
|
-
id: string;
|
|
165
|
-
attempt: number;
|
|
166
|
-
childIndex: number;
|
|
167
|
-
flowActionId: string | null;
|
|
168
|
-
iterationIndex: number;
|
|
169
|
-
lastError: string | null;
|
|
170
|
-
parentIndex: number;
|
|
171
|
-
recordingDeviceId: string | null;
|
|
172
|
-
recordingId: string | null;
|
|
173
|
-
scope: 'flow' | 'step';
|
|
174
|
-
startedAt: string | null;
|
|
175
|
-
status: 'starting' | 'recording' | 'stopping' | 'stopped' | 'failed';
|
|
176
|
-
stepIndex: number;
|
|
177
|
-
stoppedAt: string | null;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
export interface ExecutionAbortResponse {
|
|
182
|
-
data: ExecutionAbortResponse.Data;
|
|
183
|
-
}
|
|
184
|
-
export declare namespace ExecutionAbortResponse {
|
|
185
|
-
interface Data {
|
|
186
|
-
id: string;
|
|
187
|
-
/**
|
|
188
|
-
* Device this execution targets (the job's deviceId). Null for device-less
|
|
189
|
-
* (event-only) runs.
|
|
190
|
-
*/
|
|
191
|
-
deviceId: string | null;
|
|
192
|
-
error: string | null;
|
|
193
|
-
eventId: string | null;
|
|
194
|
-
finishedAt: string | null;
|
|
195
|
-
flowId: string;
|
|
196
|
-
flowName: string | null;
|
|
197
|
-
/**
|
|
198
|
-
* Client/verify invocation key this row belongs to. Set on live custom fires (one
|
|
199
|
-
* row per device fan-out) and on verification runs; null for event/schedule live
|
|
200
|
-
* rows.
|
|
201
|
-
*/
|
|
202
|
-
invocationId: string | null;
|
|
203
|
-
kind: 'live' | 'dry_run' | 'verification';
|
|
204
|
-
recordingDeviceId: string | null;
|
|
205
|
-
/**
|
|
206
|
-
* Device-recording id (devices-api) for this execution, set once the worker starts
|
|
207
|
-
* a recording. Null when the flow has recording disabled, no device is bound, or
|
|
208
|
-
* the recording failed to start.
|
|
209
|
-
*/
|
|
210
|
-
recordingId: string | null;
|
|
211
|
-
startedAt: string | null;
|
|
212
|
-
status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
|
|
213
|
-
triggerId: string;
|
|
214
|
-
triggerName: string | null;
|
|
215
|
-
/**
|
|
216
|
-
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
217
|
-
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
218
|
-
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
219
|
-
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
220
|
-
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
221
|
-
* clients must not assume its presence.
|
|
222
|
-
*/
|
|
223
|
-
result?: unknown;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
export interface ExecutionGetMetricsResponse {
|
|
227
|
-
data: ExecutionGetMetricsResponse.Data;
|
|
228
|
-
}
|
|
229
|
-
export declare namespace ExecutionGetMetricsResponse {
|
|
230
|
-
interface Data {
|
|
231
|
-
avgDurationMs: number | null;
|
|
232
|
-
byStatus: Data.ByStatus;
|
|
233
|
-
lastExecutionAt: string | null;
|
|
234
|
-
total: number;
|
|
235
|
-
}
|
|
236
|
-
namespace Data {
|
|
237
|
-
interface ByStatus {
|
|
238
|
-
cancelled: number;
|
|
239
|
-
failed: number;
|
|
240
|
-
invalid: number;
|
|
241
|
-
pending: number;
|
|
242
|
-
running: number;
|
|
243
|
-
skipped: number;
|
|
244
|
-
success: number;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
export interface ExecutionListParams {
|
|
249
|
-
flowId?: string;
|
|
250
|
-
from?: string | null;
|
|
251
|
-
invocationId?: string;
|
|
252
|
-
orderBy?: 'startedAt' | 'finishedAt' | 'status';
|
|
253
|
-
orderByDirection?: 'asc' | 'desc';
|
|
254
|
-
page?: number;
|
|
255
|
-
pageSize?: number;
|
|
256
|
-
search?: string;
|
|
257
|
-
status?: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid';
|
|
258
|
-
to?: string | null;
|
|
259
|
-
triggerId?: string;
|
|
260
|
-
}
|
|
261
|
-
export interface ExecutionGetMetricsParams {
|
|
262
|
-
flowId?: string;
|
|
263
|
-
from?: string | null;
|
|
264
|
-
to?: string | null;
|
|
265
|
-
triggerId?: string;
|
|
266
|
-
}
|
|
267
|
-
export declare namespace Executions {
|
|
268
|
-
export { type ExecutionRetrieveResponse as ExecutionRetrieveResponse, type ExecutionListResponse as ExecutionListResponse, type ExecutionAbortResponse as ExecutionAbortResponse, type ExecutionGetMetricsResponse as ExecutionGetMetricsResponse, type ExecutionListParams as ExecutionListParams, type ExecutionGetMetricsParams as ExecutionGetMetricsParams, };
|
|
269
|
-
}
|
|
1
|
+
export * from "./executions/index.js";
|
|
270
2
|
//# sourceMappingURL=executions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAEA,sCAAmC"}
|
|
@@ -1,41 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
-
class Executions extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Fetch a single flow execution by its ID, including its status, kind, result or
|
|
10
|
-
* error, and start/finish timestamps. Returns 404 if no execution matches.
|
|
11
|
-
*/
|
|
12
|
-
retrieve(executionID, options) {
|
|
13
|
-
return this._client.get((0, path_1.path) `/executions/${executionID}`, options);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Return a paginated history of flow executions. Supports filtering by `flowId`,
|
|
17
|
-
* `triggerId`, `invocationId` (the client/verify key), `status`, and a `from`/`to`
|
|
18
|
-
* time range, plus free-text `search` and ordering by startedAt, finishedAt, or
|
|
19
|
-
* status.
|
|
20
|
-
*/
|
|
21
|
-
list(query = {}, options) {
|
|
22
|
-
return this._client.get('/executions', { query, ...options });
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Signals the worker to stop the execution between steps and marks it cancelled.
|
|
26
|
-
* Idempotent-ish: already-terminal executions return 409.
|
|
27
|
-
*/
|
|
28
|
-
abort(executionID, options) {
|
|
29
|
-
return this._client.post((0, path_1.path) `/executions/${executionID}/abort`, options);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Return aggregate execution metrics — total count, counts by status, average
|
|
33
|
-
* duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
|
|
34
|
-
* and a `from`/`to` time range.
|
|
35
|
-
*/
|
|
36
|
-
getMetrics(query = {}, options) {
|
|
37
|
-
return this._client.get('/executions/metrics', { query, ...options });
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.Executions = Executions;
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./executions/index.js"), exports);
|
|
41
6
|
//# sourceMappingURL=executions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.js","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"executions.js","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gEAAmC"}
|
|
@@ -1,37 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
-
export class Executions extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Fetch a single flow execution by its ID, including its status, kind, result or
|
|
7
|
-
* error, and start/finish timestamps. Returns 404 if no execution matches.
|
|
8
|
-
*/
|
|
9
|
-
retrieve(executionID, options) {
|
|
10
|
-
return this._client.get(path `/executions/${executionID}`, options);
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Return a paginated history of flow executions. Supports filtering by `flowId`,
|
|
14
|
-
* `triggerId`, `invocationId` (the client/verify key), `status`, and a `from`/`to`
|
|
15
|
-
* time range, plus free-text `search` and ordering by startedAt, finishedAt, or
|
|
16
|
-
* status.
|
|
17
|
-
*/
|
|
18
|
-
list(query = {}, options) {
|
|
19
|
-
return this._client.get('/executions', { query, ...options });
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Signals the worker to stop the execution between steps and marks it cancelled.
|
|
23
|
-
* Idempotent-ish: already-terminal executions return 409.
|
|
24
|
-
*/
|
|
25
|
-
abort(executionID, options) {
|
|
26
|
-
return this._client.post(path `/executions/${executionID}/abort`, options);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Return aggregate execution metrics — total count, counts by status, average
|
|
30
|
-
* duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
|
|
31
|
-
* and a `from`/`to` time range.
|
|
32
|
-
*/
|
|
33
|
-
getMetrics(query = {}, options) {
|
|
34
|
-
return this._client.get('/executions/metrics', { query, ...options });
|
|
35
|
-
}
|
|
36
|
-
}
|
|
2
|
+
export * from "./executions/index.mjs";
|
|
37
3
|
//# sourceMappingURL=executions.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.mjs","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,
|
|
1
|
+
{"version":3,"file":"executions.mjs","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,uCAAmC"}
|