@mobilerun/sdk 5.6.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +0 -9
- package/client.d.mts +6 -24
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -24
- 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/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 +13 -0
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +13 -0
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/devices.d.mts +36 -13
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +36 -13
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +13 -8
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +13 -8
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +2 -1
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +2 -1
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +3 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +1 -0
- 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 +3 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -8
- 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/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 +11 -14
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +11 -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 +28 -32
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +28 -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 +38 -136
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +38 -136
- 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 +5 -2
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +5 -2
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +27 -31
- package/resources/workflows/executions/executions.d.mts.map +1 -1
- package/resources/workflows/executions/executions.d.ts +27 -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 +62 -26
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +62 -26
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +7 -7
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +7 -7
- package/resources/workflows/flows/flows.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/src/client.ts +0 -106
- package/src/resources/apps.ts +30 -20
- 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 +18 -0
- package/src/resources/devices/devices.ts +59 -11
- package/src/resources/devices/index.ts +11 -0
- 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 +0 -44
- package/src/resources/mailboxes/connections.ts +4 -11
- package/src/resources/mailboxes/mailboxes.ts +5 -4
- package/src/resources/models.ts +16 -23
- package/src/resources/numbers/index.ts +0 -1
- package/src/resources/numbers/messages.ts +11 -15
- package/src/resources/numbers/numbers.ts +31 -40
- package/src/resources/proxies.ts +0 -110
- package/src/resources/tasks/tasks.ts +42 -136
- package/src/resources/webhooks/index.ts +0 -1
- package/src/resources/webhooks/webhooks.ts +6 -60
- package/src/resources/workflows/events.ts +5 -2
- package/src/resources/workflows/executions/executions.ts +27 -31
- package/src/resources/workflows/flows/flows.ts +63 -26
- package/src/resources/workflows/triggers.ts +10 -13
- 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/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/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);
|
|
@@ -103,17 +103,16 @@ export namespace ExecutionRetrieveResponse {
|
|
|
103
103
|
kind: 'live' | 'dry_run' | 'verification';
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* Live progress
|
|
107
|
-
* feature.
|
|
106
|
+
* Live progress; null for runs started before this feature.
|
|
108
107
|
*/
|
|
109
108
|
progress: Data.Progress | null;
|
|
110
109
|
|
|
111
110
|
recordingDeviceId: string | null;
|
|
112
111
|
|
|
113
112
|
/**
|
|
114
|
-
* Device
|
|
115
|
-
*
|
|
116
|
-
*
|
|
113
|
+
* Device recording id for this execution, set once recording starts. Null when the
|
|
114
|
+
* flow has recording disabled, no device is bound, or the recording failed to
|
|
115
|
+
* start.
|
|
117
116
|
*/
|
|
118
117
|
recordingId: string | null;
|
|
119
118
|
|
|
@@ -124,8 +123,9 @@ export namespace ExecutionRetrieveResponse {
|
|
|
124
123
|
recordings: Array<Data.Recording>;
|
|
125
124
|
|
|
126
125
|
/**
|
|
127
|
-
* Screenshots captured by tasks.run/agent.run steps
|
|
128
|
-
*
|
|
126
|
+
* Screenshots captured by tasks.run/agent.run steps and saved by scripts into the
|
|
127
|
+
* flow screenshots recording (source recording), ordered by seq. Image bytes are
|
|
128
|
+
* never returned here — fetch a fresh signed URL via GET
|
|
129
129
|
* /executions/{id}/screenshots/{screenshotId}.
|
|
130
130
|
*/
|
|
131
131
|
screenshots: Array<Data.Screenshot>;
|
|
@@ -141,10 +141,9 @@ export namespace ExecutionRetrieveResponse {
|
|
|
141
141
|
/**
|
|
142
142
|
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
143
143
|
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
144
|
-
* step that opted into a verdict — null otherwise.
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
* clients must not assume its presence.
|
|
144
|
+
* step that opted into a verdict — null otherwise. Steps of current executions
|
|
145
|
+
* also carry a `status` string (e.g. success/failed/stopped); it is optional and
|
|
146
|
+
* absent on older executions, so clients must not assume its presence.
|
|
148
147
|
*/
|
|
149
148
|
result?: unknown;
|
|
150
149
|
}
|
|
@@ -153,7 +152,7 @@ export namespace ExecutionRetrieveResponse {
|
|
|
153
152
|
export interface Delivery {
|
|
154
153
|
artifact: 'recording' | 'file' | 'screenshot';
|
|
155
154
|
|
|
156
|
-
destination: 'one_drive' | 'google_drive';
|
|
155
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
157
156
|
|
|
158
157
|
errorCode: string | null;
|
|
159
158
|
|
|
@@ -183,8 +182,7 @@ export namespace ExecutionRetrieveResponse {
|
|
|
183
182
|
}
|
|
184
183
|
|
|
185
184
|
/**
|
|
186
|
-
* Live progress
|
|
187
|
-
* feature.
|
|
185
|
+
* Live progress; null for runs started before this feature.
|
|
188
186
|
*/
|
|
189
187
|
export interface Progress {
|
|
190
188
|
currentIndex: number | null;
|
|
@@ -255,7 +253,7 @@ export namespace ExecutionRetrieveResponse {
|
|
|
255
253
|
|
|
256
254
|
seq: number;
|
|
257
255
|
|
|
258
|
-
source: 'task' | 'agent';
|
|
256
|
+
source: 'task' | 'agent' | 'recording';
|
|
259
257
|
|
|
260
258
|
stepIndex: number;
|
|
261
259
|
|
|
@@ -304,9 +302,9 @@ export namespace ExecutionListResponse {
|
|
|
304
302
|
recordingDeviceId: string | null;
|
|
305
303
|
|
|
306
304
|
/**
|
|
307
|
-
* Device
|
|
308
|
-
*
|
|
309
|
-
*
|
|
305
|
+
* Device recording id for this execution, set once recording starts. Null when the
|
|
306
|
+
* flow has recording disabled, no device is bound, or the recording failed to
|
|
307
|
+
* start.
|
|
310
308
|
*/
|
|
311
309
|
recordingId: string | null;
|
|
312
310
|
|
|
@@ -327,10 +325,9 @@ export namespace ExecutionListResponse {
|
|
|
327
325
|
/**
|
|
328
326
|
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
329
327
|
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
330
|
-
* step that opted into a verdict — null otherwise.
|
|
331
|
-
*
|
|
332
|
-
*
|
|
333
|
-
* clients must not assume its presence.
|
|
328
|
+
* step that opted into a verdict — null otherwise. Steps of current executions
|
|
329
|
+
* also carry a `status` string (e.g. success/failed/stopped); it is optional and
|
|
330
|
+
* absent on older executions, so clients must not assume its presence.
|
|
334
331
|
*/
|
|
335
332
|
result?: unknown;
|
|
336
333
|
}
|
|
@@ -404,9 +401,9 @@ export namespace ExecutionAbortResponse {
|
|
|
404
401
|
recordingDeviceId: string | null;
|
|
405
402
|
|
|
406
403
|
/**
|
|
407
|
-
* Device
|
|
408
|
-
*
|
|
409
|
-
*
|
|
404
|
+
* Device recording id for this execution, set once recording starts. Null when the
|
|
405
|
+
* flow has recording disabled, no device is bound, or the recording failed to
|
|
406
|
+
* start.
|
|
410
407
|
*/
|
|
411
408
|
recordingId: string | null;
|
|
412
409
|
|
|
@@ -421,10 +418,9 @@ export namespace ExecutionAbortResponse {
|
|
|
421
418
|
/**
|
|
422
419
|
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
423
420
|
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
424
|
-
* step that opted into a verdict — null otherwise.
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
* clients must not assume its presence.
|
|
421
|
+
* step that opted into a verdict — null otherwise. Steps of current executions
|
|
422
|
+
* also carry a `status` string (e.g. success/failed/stopped); it is optional and
|
|
423
|
+
* absent on older executions, so clients must not assume its presence.
|
|
428
424
|
*/
|
|
429
425
|
result?: unknown;
|
|
430
426
|
}
|
|
@@ -92,9 +92,9 @@ export class Flows extends APIResource {
|
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
94
|
* Returns an owner-scoped snapshot of finite included workflow-agent capacity
|
|
95
|
-
* after
|
|
96
|
-
*
|
|
97
|
-
* clone perform authoritative
|
|
95
|
+
* after accounting for enabled and disabled agents. Returns 503 when a finite
|
|
96
|
+
* capacity snapshot is unavailable, including for unlimited plans. This is
|
|
97
|
+
* advisory; create and clone perform the authoritative capacity check.
|
|
98
98
|
*/
|
|
99
99
|
capacity(options?: RequestOptions): APIPromise<FlowCapacityResponse> {
|
|
100
100
|
return this._client.get('/flows/capacity', options);
|
|
@@ -121,8 +121,8 @@ export class Flows extends APIResource {
|
|
|
121
121
|
* Return the recording/delivery readiness for a flow (recording mode, whether
|
|
122
122
|
* delivery can include the recording, whether a files.upload action exists, the
|
|
123
123
|
* first direct OneDrive/Google Drive upload step if any) plus, per destination,
|
|
124
|
-
* whether the flow owner has an active
|
|
125
|
-
*
|
|
124
|
+
* whether the flow owner has an active connection. Returns 404 if the flow does
|
|
125
|
+
* not exist.
|
|
126
126
|
*/
|
|
127
127
|
deliveryOptions(flowID: string, options?: RequestOptions): APIPromise<FlowDeliveryOptionsResponse> {
|
|
128
128
|
return this._client.get(path`/flows/${flowID}/delivery-options`, options);
|
|
@@ -203,8 +203,8 @@ export class Flows extends APIResource {
|
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
/**
|
|
206
|
-
* Run a bound, deduplicated **verification** of this flow on exactly one device
|
|
207
|
-
*
|
|
206
|
+
* Run a bound, deduplicated **verification** of this flow on exactly one device as
|
|
207
|
+
* a real run.
|
|
208
208
|
*
|
|
209
209
|
* Unlike a normal trigger firing, verification:
|
|
210
210
|
*
|
|
@@ -304,7 +304,7 @@ export namespace FlowCreateResponse {
|
|
|
304
304
|
status: 'healthy' | 'failing' | 'blocked';
|
|
305
305
|
|
|
306
306
|
/**
|
|
307
|
-
* Template-resolver semantics this flow runs under
|
|
307
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
308
308
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
309
309
|
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
310
310
|
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
@@ -324,8 +324,11 @@ export namespace FlowCreateResponse {
|
|
|
324
324
|
|
|
325
325
|
export namespace Data {
|
|
326
326
|
export interface Delivery {
|
|
327
|
-
destination: 'one_drive' | 'google_drive';
|
|
327
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
328
328
|
|
|
329
|
+
/**
|
|
330
|
+
* not allowed when destination is mobilerun
|
|
331
|
+
*/
|
|
329
332
|
folder?: string;
|
|
330
333
|
|
|
331
334
|
recording?: Delivery.Recording;
|
|
@@ -421,7 +424,7 @@ export namespace FlowRetrieveResponse {
|
|
|
421
424
|
status: 'healthy' | 'failing' | 'blocked';
|
|
422
425
|
|
|
423
426
|
/**
|
|
424
|
-
* Template-resolver semantics this flow runs under
|
|
427
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
425
428
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
426
429
|
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
427
430
|
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
@@ -441,8 +444,11 @@ export namespace FlowRetrieveResponse {
|
|
|
441
444
|
|
|
442
445
|
export namespace Data {
|
|
443
446
|
export interface Delivery {
|
|
444
|
-
destination: 'one_drive' | 'google_drive';
|
|
447
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
445
448
|
|
|
449
|
+
/**
|
|
450
|
+
* not allowed when destination is mobilerun
|
|
451
|
+
*/
|
|
446
452
|
folder?: string;
|
|
447
453
|
|
|
448
454
|
recording?: Delivery.Recording;
|
|
@@ -538,7 +544,7 @@ export namespace FlowUpdateResponse {
|
|
|
538
544
|
status: 'healthy' | 'failing' | 'blocked';
|
|
539
545
|
|
|
540
546
|
/**
|
|
541
|
-
* Template-resolver semantics this flow runs under
|
|
547
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
542
548
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
543
549
|
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
544
550
|
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
@@ -558,8 +564,11 @@ export namespace FlowUpdateResponse {
|
|
|
558
564
|
|
|
559
565
|
export namespace Data {
|
|
560
566
|
export interface Delivery {
|
|
561
|
-
destination: 'one_drive' | 'google_drive';
|
|
567
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
562
568
|
|
|
569
|
+
/**
|
|
570
|
+
* not allowed when destination is mobilerun
|
|
571
|
+
*/
|
|
563
572
|
folder?: string;
|
|
564
573
|
|
|
565
574
|
recording?: Delivery.Recording;
|
|
@@ -657,7 +666,7 @@ export namespace FlowListResponse {
|
|
|
657
666
|
status: 'healthy' | 'failing' | 'blocked';
|
|
658
667
|
|
|
659
668
|
/**
|
|
660
|
-
* Template-resolver semantics this flow runs under
|
|
669
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
661
670
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
662
671
|
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
663
672
|
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
@@ -677,8 +686,11 @@ export namespace FlowListResponse {
|
|
|
677
686
|
|
|
678
687
|
export namespace Item {
|
|
679
688
|
export interface Delivery {
|
|
680
|
-
destination: 'one_drive' | 'google_drive';
|
|
689
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
681
690
|
|
|
691
|
+
/**
|
|
692
|
+
* not allowed when destination is mobilerun
|
|
693
|
+
*/
|
|
682
694
|
folder?: string;
|
|
683
695
|
|
|
684
696
|
recording?: Delivery.Recording;
|
|
@@ -778,7 +790,7 @@ export namespace FlowActivateResponse {
|
|
|
778
790
|
status: 'healthy' | 'failing' | 'blocked';
|
|
779
791
|
|
|
780
792
|
/**
|
|
781
|
-
* Template-resolver semantics this flow runs under
|
|
793
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
782
794
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
783
795
|
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
784
796
|
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
@@ -798,8 +810,11 @@ export namespace FlowActivateResponse {
|
|
|
798
810
|
|
|
799
811
|
export namespace Data {
|
|
800
812
|
export interface Delivery {
|
|
801
|
-
destination: 'one_drive' | 'google_drive';
|
|
813
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
802
814
|
|
|
815
|
+
/**
|
|
816
|
+
* not allowed when destination is mobilerun
|
|
817
|
+
*/
|
|
803
818
|
folder?: string;
|
|
804
819
|
|
|
805
820
|
recording?: Delivery.Recording;
|
|
@@ -909,7 +924,7 @@ export namespace FlowCloneResponse {
|
|
|
909
924
|
status: 'healthy' | 'failing' | 'blocked';
|
|
910
925
|
|
|
911
926
|
/**
|
|
912
|
-
* Template-resolver semantics this flow runs under
|
|
927
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
913
928
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
914
929
|
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
915
930
|
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
@@ -929,8 +944,11 @@ export namespace FlowCloneResponse {
|
|
|
929
944
|
|
|
930
945
|
export namespace Data {
|
|
931
946
|
export interface Delivery {
|
|
932
|
-
destination: 'one_drive' | 'google_drive';
|
|
947
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
933
948
|
|
|
949
|
+
/**
|
|
950
|
+
* not allowed when destination is mobilerun
|
|
951
|
+
*/
|
|
934
952
|
folder?: string;
|
|
935
953
|
|
|
936
954
|
recording?: Delivery.Recording;
|
|
@@ -959,7 +977,7 @@ export namespace FlowDeliveryOptionsResponse {
|
|
|
959
977
|
canDeliverRecording: boolean;
|
|
960
978
|
|
|
961
979
|
/**
|
|
962
|
-
* Delivery destinations in
|
|
980
|
+
* Delivery destinations in their canonical order.
|
|
963
981
|
*/
|
|
964
982
|
destinations: Array<Data.Destination>;
|
|
965
983
|
|
|
@@ -978,7 +996,7 @@ export namespace FlowDeliveryOptionsResponse {
|
|
|
978
996
|
|
|
979
997
|
iconUrl: string | null;
|
|
980
998
|
|
|
981
|
-
key: 'one_drive' | 'google_drive';
|
|
999
|
+
key: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
982
1000
|
|
|
983
1001
|
label: string;
|
|
984
1002
|
}
|
|
@@ -1263,7 +1281,7 @@ export namespace FlowUnblockResponse {
|
|
|
1263
1281
|
status: 'healthy' | 'failing' | 'blocked';
|
|
1264
1282
|
|
|
1265
1283
|
/**
|
|
1266
|
-
* Template-resolver semantics this flow runs under
|
|
1284
|
+
* Template-resolver semantics this flow runs under. 1 = legacy
|
|
1267
1285
|
* (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
|
|
1268
1286
|
* a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
|
|
1269
1287
|
* as {{steps.<key>...}} instead of by name; trigger.payload is not available).
|
|
@@ -1283,8 +1301,11 @@ export namespace FlowUnblockResponse {
|
|
|
1283
1301
|
|
|
1284
1302
|
export namespace Data {
|
|
1285
1303
|
export interface Delivery {
|
|
1286
|
-
destination: 'one_drive' | 'google_drive';
|
|
1304
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
1287
1305
|
|
|
1306
|
+
/**
|
|
1307
|
+
* not allowed when destination is mobilerun
|
|
1308
|
+
*/
|
|
1288
1309
|
folder?: string;
|
|
1289
1310
|
|
|
1290
1311
|
recording?: Delivery.Recording;
|
|
@@ -1472,8 +1493,11 @@ export namespace FlowCreateParams {
|
|
|
1472
1493
|
}
|
|
1473
1494
|
|
|
1474
1495
|
export interface Delivery {
|
|
1475
|
-
destination: 'one_drive' | 'google_drive';
|
|
1496
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
1476
1497
|
|
|
1498
|
+
/**
|
|
1499
|
+
* not allowed when destination is mobilerun
|
|
1500
|
+
*/
|
|
1477
1501
|
folder?: string;
|
|
1478
1502
|
|
|
1479
1503
|
recording?: Delivery.Recording;
|
|
@@ -1537,8 +1561,11 @@ export interface FlowUpdateParams {
|
|
|
1537
1561
|
|
|
1538
1562
|
export namespace FlowUpdateParams {
|
|
1539
1563
|
export interface Delivery {
|
|
1540
|
-
destination: 'one_drive' | 'google_drive';
|
|
1564
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
1541
1565
|
|
|
1566
|
+
/**
|
|
1567
|
+
* not allowed when destination is mobilerun
|
|
1568
|
+
*/
|
|
1542
1569
|
folder?: string;
|
|
1543
1570
|
|
|
1544
1571
|
recording?: Delivery.Recording;
|
|
@@ -1600,6 +1627,13 @@ export interface FlowDryRunParams {
|
|
|
1600
1627
|
}
|
|
1601
1628
|
|
|
1602
1629
|
export interface FlowRunParams {
|
|
1630
|
+
/**
|
|
1631
|
+
* Record and keep this run's scripts.run screenshots
|
|
1632
|
+
* (device.screenshot(save=True)) even without flow delivery. Used for a one-off
|
|
1633
|
+
* proof run.
|
|
1634
|
+
*/
|
|
1635
|
+
captureScreenshots?: boolean;
|
|
1636
|
+
|
|
1603
1637
|
payload?: { [key: string]: unknown };
|
|
1604
1638
|
}
|
|
1605
1639
|
|
|
@@ -1744,8 +1778,11 @@ export namespace FlowValidateParams {
|
|
|
1744
1778
|
}
|
|
1745
1779
|
|
|
1746
1780
|
export interface Delivery {
|
|
1747
|
-
destination: 'one_drive' | 'google_drive';
|
|
1781
|
+
destination: 'mobilerun' | 'one_drive' | 'google_drive';
|
|
1748
1782
|
|
|
1783
|
+
/**
|
|
1784
|
+
* not allowed when destination is mobilerun
|
|
1785
|
+
*/
|
|
1749
1786
|
folder?: string;
|
|
1750
1787
|
|
|
1751
1788
|
recording?: Delivery.Recording;
|
|
@@ -72,7 +72,7 @@ export class Triggers extends APIResource {
|
|
|
72
72
|
* Payload validation:
|
|
73
73
|
*
|
|
74
74
|
* - If the trigger has a `customPayloadSchema`, the payload is validated against
|
|
75
|
-
* it (JSON Schema
|
|
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
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '6.0.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "6.0.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "6.0.0";
|
|
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.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as Shared from "../shared.mjs";
|
|
3
|
-
import * as CatalogAPI from "./catalog.mjs";
|
|
4
|
-
import { Catalog, CatalogListResponse, CatalogRetrieveResponse } from "./catalog.mjs";
|
|
5
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
|
-
export declare class AppEvents extends APIResource {
|
|
8
|
-
catalog: CatalogAPI.Catalog;
|
|
9
|
-
/**
|
|
10
|
-
* Fetch a single structured app event by its ID, including its typed payload,
|
|
11
|
-
* source, and originating device. Returns 404 if no event matches.
|
|
12
|
-
*/
|
|
13
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<AppEventRetrieveResponse>;
|
|
14
|
-
/**
|
|
15
|
-
* Structured, app-scoped events (e.g. app.whatsapp.message_received) derived from
|
|
16
|
-
* raw device notifications. Typed columns — not raw payloads (those stay in the
|
|
17
|
-
* event log).
|
|
18
|
-
*/
|
|
19
|
-
list(query?: AppEventListParams | null | undefined, options?: RequestOptions): APIPromise<AppEventListResponse>;
|
|
20
|
-
}
|
|
21
|
-
export interface AppEventRetrieveResponse {
|
|
22
|
-
data: AppEventRetrieveResponse.Data;
|
|
23
|
-
}
|
|
24
|
-
export declare namespace AppEventRetrieveResponse {
|
|
25
|
-
interface Data {
|
|
26
|
-
id: string;
|
|
27
|
-
createdAt: string | null;
|
|
28
|
-
createdBy: string | null;
|
|
29
|
-
deviceId: string | null;
|
|
30
|
-
eventType: string;
|
|
31
|
-
occurredAt: string | null;
|
|
32
|
-
ownerId: string;
|
|
33
|
-
payload: {
|
|
34
|
-
[key: string]: unknown;
|
|
35
|
-
};
|
|
36
|
-
rawEventId: string | null;
|
|
37
|
-
source: 'app' | 'system' | 'device' | 'webhook';
|
|
38
|
-
/**
|
|
39
|
-
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
40
|
-
*/
|
|
41
|
-
userId: string;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
export interface AppEventListResponse {
|
|
45
|
-
items: Array<AppEventListResponse.Item>;
|
|
46
|
-
pagination: Shared.Pagination;
|
|
47
|
-
}
|
|
48
|
-
export declare namespace AppEventListResponse {
|
|
49
|
-
interface Item {
|
|
50
|
-
id: string;
|
|
51
|
-
createdAt: string | null;
|
|
52
|
-
createdBy: string | null;
|
|
53
|
-
deviceId: string | null;
|
|
54
|
-
eventType: string;
|
|
55
|
-
occurredAt: string | null;
|
|
56
|
-
ownerId: string;
|
|
57
|
-
payload: {
|
|
58
|
-
[key: string]: unknown;
|
|
59
|
-
};
|
|
60
|
-
rawEventId: string | null;
|
|
61
|
-
source: 'app' | 'system' | 'device' | 'webhook';
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
64
|
-
*/
|
|
65
|
-
userId: string;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
export interface AppEventListParams {
|
|
69
|
-
deviceId?: string;
|
|
70
|
-
eventType?: string;
|
|
71
|
-
from?: string | null;
|
|
72
|
-
page?: number;
|
|
73
|
-
pageSize?: number;
|
|
74
|
-
source?: 'app' | 'system' | 'device' | 'webhook';
|
|
75
|
-
to?: string | null;
|
|
76
|
-
}
|
|
77
|
-
export declare namespace AppEvents {
|
|
78
|
-
export { type AppEventRetrieveResponse as AppEventRetrieveResponse, type AppEventListResponse as AppEventListResponse, type AppEventListParams as AppEventListParams, };
|
|
79
|
-
export { Catalog as Catalog, type CatalogRetrieveResponse as CatalogRetrieveResponse, type CatalogListResponse as CatalogListResponse, };
|
|
80
|
-
}
|
|
81
|
-
//# sourceMappingURL=app-events.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-events.d.mts","sourceRoot":"","sources":["../../src/resources/app-events/app-events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE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|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as Shared from "../shared.js";
|
|
3
|
-
import * as CatalogAPI from "./catalog.js";
|
|
4
|
-
import { Catalog, CatalogListResponse, CatalogRetrieveResponse } from "./catalog.js";
|
|
5
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
6
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
|
-
export declare class AppEvents extends APIResource {
|
|
8
|
-
catalog: CatalogAPI.Catalog;
|
|
9
|
-
/**
|
|
10
|
-
* Fetch a single structured app event by its ID, including its typed payload,
|
|
11
|
-
* source, and originating device. Returns 404 if no event matches.
|
|
12
|
-
*/
|
|
13
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<AppEventRetrieveResponse>;
|
|
14
|
-
/**
|
|
15
|
-
* Structured, app-scoped events (e.g. app.whatsapp.message_received) derived from
|
|
16
|
-
* raw device notifications. Typed columns — not raw payloads (those stay in the
|
|
17
|
-
* event log).
|
|
18
|
-
*/
|
|
19
|
-
list(query?: AppEventListParams | null | undefined, options?: RequestOptions): APIPromise<AppEventListResponse>;
|
|
20
|
-
}
|
|
21
|
-
export interface AppEventRetrieveResponse {
|
|
22
|
-
data: AppEventRetrieveResponse.Data;
|
|
23
|
-
}
|
|
24
|
-
export declare namespace AppEventRetrieveResponse {
|
|
25
|
-
interface Data {
|
|
26
|
-
id: string;
|
|
27
|
-
createdAt: string | null;
|
|
28
|
-
createdBy: string | null;
|
|
29
|
-
deviceId: string | null;
|
|
30
|
-
eventType: string;
|
|
31
|
-
occurredAt: string | null;
|
|
32
|
-
ownerId: string;
|
|
33
|
-
payload: {
|
|
34
|
-
[key: string]: unknown;
|
|
35
|
-
};
|
|
36
|
-
rawEventId: string | null;
|
|
37
|
-
source: 'app' | 'system' | 'device' | 'webhook';
|
|
38
|
-
/**
|
|
39
|
-
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
40
|
-
*/
|
|
41
|
-
userId: string;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
export interface AppEventListResponse {
|
|
45
|
-
items: Array<AppEventListResponse.Item>;
|
|
46
|
-
pagination: Shared.Pagination;
|
|
47
|
-
}
|
|
48
|
-
export declare namespace AppEventListResponse {
|
|
49
|
-
interface Item {
|
|
50
|
-
id: string;
|
|
51
|
-
createdAt: string | null;
|
|
52
|
-
createdBy: string | null;
|
|
53
|
-
deviceId: string | null;
|
|
54
|
-
eventType: string;
|
|
55
|
-
occurredAt: string | null;
|
|
56
|
-
ownerId: string;
|
|
57
|
-
payload: {
|
|
58
|
-
[key: string]: unknown;
|
|
59
|
-
};
|
|
60
|
-
rawEventId: string | null;
|
|
61
|
-
source: 'app' | 'system' | 'device' | 'webhook';
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
64
|
-
*/
|
|
65
|
-
userId: string;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
export interface AppEventListParams {
|
|
69
|
-
deviceId?: string;
|
|
70
|
-
eventType?: string;
|
|
71
|
-
from?: string | null;
|
|
72
|
-
page?: number;
|
|
73
|
-
pageSize?: number;
|
|
74
|
-
source?: 'app' | 'system' | 'device' | 'webhook';
|
|
75
|
-
to?: string | null;
|
|
76
|
-
}
|
|
77
|
-
export declare namespace AppEvents {
|
|
78
|
-
export { type AppEventRetrieveResponse as AppEventRetrieveResponse, type AppEventListResponse as AppEventListResponse, type AppEventListParams as AppEventListParams, };
|
|
79
|
-
export { Catalog as Catalog, type CatalogRetrieveResponse as CatalogRetrieveResponse, type CatalogListResponse as CatalogListResponse, };
|
|
80
|
-
}
|
|
81
|
-
//# sourceMappingURL=app-events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-events.d.ts","sourceRoot":"","sources":["../../src/resources/app-events/app-events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,q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