@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
|
@@ -155,11 +155,10 @@ export class Devices extends APIResource {
|
|
|
155
155
|
trafficSessions: TrafficSessionsAPI.TrafficSessions = new TrafficSessionsAPI.TrafficSessions(this._client);
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
|
-
* Requests a new device
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
* grace period. The response returns the device and its stream token.
|
|
158
|
+
* Requests a new device from the specification in the request body. Optional query
|
|
159
|
+
* parameters select the canonical device type, country, billing mode, and base
|
|
160
|
+
* profile. Returns the device, its resolved billing strategy, and its stream
|
|
161
|
+
* token.
|
|
163
162
|
*/
|
|
164
163
|
create(params: DeviceCreateParams, options?: RequestOptions): APIPromise<DeviceCreateResponse> {
|
|
165
164
|
const { billing, query_country, deviceType, profileId, ...body } = params;
|
|
@@ -190,7 +189,11 @@ export class Devices extends APIResource {
|
|
|
190
189
|
}
|
|
191
190
|
|
|
192
191
|
/**
|
|
193
|
-
*
|
|
192
|
+
* Deprecated: use GET /devices/summary instead. Returns the number of active
|
|
193
|
+
* claimed devices for the user, broken down by device type, in the legacy response
|
|
194
|
+
* shape.
|
|
195
|
+
*
|
|
196
|
+
* @deprecated
|
|
194
197
|
*/
|
|
195
198
|
count(options?: RequestOptions): APIPromise<DeviceCountResponse> {
|
|
196
199
|
return this._client.get('/devices/count', options);
|
|
@@ -293,12 +296,27 @@ export class Devices extends APIResource {
|
|
|
293
296
|
});
|
|
294
297
|
}
|
|
295
298
|
|
|
299
|
+
/**
|
|
300
|
+
* Returns the total number of the user's devices and counts grouped by current
|
|
301
|
+
* state and device type.
|
|
302
|
+
*/
|
|
303
|
+
summary(
|
|
304
|
+
query: DeviceSummaryParams | null | undefined = {},
|
|
305
|
+
options?: RequestOptions,
|
|
306
|
+
): APIPromise<DeviceSummaryResponse> {
|
|
307
|
+
return this._client.get('/devices/summary', { query, ...options });
|
|
308
|
+
}
|
|
309
|
+
|
|
296
310
|
/**
|
|
297
311
|
* Terminates the device and releases its resources. Termination can be scheduled
|
|
298
312
|
* for a future time or chained from a previous device via the request body, in
|
|
299
313
|
* which case a service key is required.
|
|
300
314
|
*/
|
|
301
|
-
terminate(
|
|
315
|
+
terminate(
|
|
316
|
+
deviceID: string,
|
|
317
|
+
body: DeviceTerminateParams | null | undefined = {},
|
|
318
|
+
options?: RequestOptions,
|
|
319
|
+
): APIPromise<void> {
|
|
302
320
|
return this._client.delete(path`/devices/${deviceID}`, {
|
|
303
321
|
body,
|
|
304
322
|
...options,
|
|
@@ -639,6 +657,19 @@ export interface DeviceSetNameResponse {
|
|
|
639
657
|
userId?: string;
|
|
640
658
|
}
|
|
641
659
|
|
|
660
|
+
export interface DeviceSummaryResponse {
|
|
661
|
+
byState: { [key: string]: number };
|
|
662
|
+
|
|
663
|
+
byType: { [key: string]: number };
|
|
664
|
+
|
|
665
|
+
total: number;
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* A URL to the JSON Schema for this object.
|
|
669
|
+
*/
|
|
670
|
+
$schema?: string;
|
|
671
|
+
}
|
|
672
|
+
|
|
642
673
|
export interface DeviceWaitReadyResponse {
|
|
643
674
|
id: string;
|
|
644
675
|
|
|
@@ -692,10 +723,13 @@ export interface DeviceWaitReadyResponse {
|
|
|
692
723
|
|
|
693
724
|
export interface DeviceCreateParams {
|
|
694
725
|
/**
|
|
695
|
-
* Query param: Billing mode. 'auto'
|
|
696
|
-
*
|
|
697
|
-
*
|
|
698
|
-
*
|
|
726
|
+
* Query param: Billing mode. 'auto' tries subscription first, then minute billing
|
|
727
|
+
* if no subscription entitlement exists or all subscription slots are in use,
|
|
728
|
+
* provided minute billing is enabled. When subscription billing is disabled, auto
|
|
729
|
+
* uses minutes directly. Billing-service failures never trigger fallback.
|
|
730
|
+
* 'subscription' requires an available subscription slot and never falls back.
|
|
731
|
+
* 'minute' uses minute billing only, subject to balance and concurrency checks.
|
|
732
|
+
* Modes depend on the device type's billing configuration.
|
|
699
733
|
*/
|
|
700
734
|
billing?: 'auto' | 'subscription' | 'minute';
|
|
701
735
|
|
|
@@ -706,18 +740,12 @@ export interface DeviceCreateParams {
|
|
|
706
740
|
query_country?: string;
|
|
707
741
|
|
|
708
742
|
/**
|
|
709
|
-
* Query param:
|
|
710
|
-
*
|
|
711
|
-
*
|
|
712
|
-
*
|
|
713
|
-
* android_emulator.
|
|
743
|
+
* Query param: Use android*cloud_phone for a cloud Android phone. Only canonical
|
|
744
|
+
* identifiers are accepted. Other backends are deployment-specific; recognized but
|
|
745
|
+
* unavailable types return DEVICE_TYPE_UNAVAILABLE (422). Retired dedicated*\*
|
|
746
|
+
* aliases are rejected with a canonical replacement.
|
|
714
747
|
*/
|
|
715
|
-
deviceType?:
|
|
716
|
-
| 'android_cloud_phone'
|
|
717
|
-
| 'dedicated_premium_device'
|
|
718
|
-
| 'dedicated_physical_device'
|
|
719
|
-
| 'dedicated_ios_device'
|
|
720
|
-
| 'dedicated_emulated_device';
|
|
748
|
+
deviceType?: string;
|
|
721
749
|
|
|
722
750
|
/**
|
|
723
751
|
* Query param: Profile ID to use as device spec
|
|
@@ -841,6 +869,12 @@ export interface DeviceListParams {
|
|
|
841
869
|
|
|
842
870
|
pageSize?: number;
|
|
843
871
|
|
|
872
|
+
/**
|
|
873
|
+
* Filter by the device's platform as served in the platform field (runtime,
|
|
874
|
+
* announced, else type-derived).
|
|
875
|
+
*/
|
|
876
|
+
platform?: 'android' | 'ios';
|
|
877
|
+
|
|
844
878
|
providerId?: string;
|
|
845
879
|
|
|
846
880
|
state?: Array<
|
|
@@ -857,17 +891,16 @@ export interface DeviceListParams {
|
|
|
857
891
|
> | null;
|
|
858
892
|
|
|
859
893
|
/**
|
|
860
|
-
*
|
|
861
|
-
*
|
|
862
|
-
* maps to android_physical_phone, dedicated_ios_device maps to ios_stealth_phone,
|
|
863
|
-
* and dedicated_emulated_device maps to android_emulator.
|
|
894
|
+
* Canonical device type. Retired dedicated\_\* aliases are no longer accepted.
|
|
895
|
+
* Availability depends on the deployment.
|
|
864
896
|
*/
|
|
865
897
|
type?:
|
|
866
898
|
| 'android_cloud_phone'
|
|
867
|
-
| '
|
|
868
|
-
| '
|
|
869
|
-
| '
|
|
870
|
-
| '
|
|
899
|
+
| 'android_physical_phone'
|
|
900
|
+
| 'ios_stealth_phone'
|
|
901
|
+
| 'android_emulator'
|
|
902
|
+
| 'ios_simulator'
|
|
903
|
+
| 'device_slot';
|
|
871
904
|
}
|
|
872
905
|
|
|
873
906
|
export interface DeviceFingerprintParams {
|
|
@@ -878,6 +911,21 @@ export interface DeviceSetNameParams {
|
|
|
878
911
|
name: string;
|
|
879
912
|
}
|
|
880
913
|
|
|
914
|
+
export interface DeviceSummaryParams {
|
|
915
|
+
state?: Array<
|
|
916
|
+
| 'creating'
|
|
917
|
+
| 'assigned'
|
|
918
|
+
| 'ready'
|
|
919
|
+
| 'rebooting'
|
|
920
|
+
| 'migrating'
|
|
921
|
+
| 'resetting'
|
|
922
|
+
| 'terminated'
|
|
923
|
+
| 'maintenance'
|
|
924
|
+
| 'stopped'
|
|
925
|
+
| 'unknown'
|
|
926
|
+
> | null;
|
|
927
|
+
}
|
|
928
|
+
|
|
881
929
|
export interface DeviceTerminateParams {
|
|
882
930
|
previousDeviceId?: string;
|
|
883
931
|
|
|
@@ -914,11 +962,13 @@ export declare namespace Devices {
|
|
|
914
962
|
type DeviceFingerprintResponse as DeviceFingerprintResponse,
|
|
915
963
|
type DeviceRetrieveCapabilitiesResponse as DeviceRetrieveCapabilitiesResponse,
|
|
916
964
|
type DeviceSetNameResponse as DeviceSetNameResponse,
|
|
965
|
+
type DeviceSummaryResponse as DeviceSummaryResponse,
|
|
917
966
|
type DeviceWaitReadyResponse as DeviceWaitReadyResponse,
|
|
918
967
|
type DeviceCreateParams as DeviceCreateParams,
|
|
919
968
|
type DeviceListParams as DeviceListParams,
|
|
920
969
|
type DeviceFingerprintParams as DeviceFingerprintParams,
|
|
921
970
|
type DeviceSetNameParams as DeviceSetNameParams,
|
|
971
|
+
type DeviceSummaryParams as DeviceSummaryParams,
|
|
922
972
|
type DeviceTerminateParams as DeviceTerminateParams,
|
|
923
973
|
};
|
|
924
974
|
|
|
@@ -39,11 +39,13 @@ export {
|
|
|
39
39
|
type DeviceFingerprintResponse,
|
|
40
40
|
type DeviceRetrieveCapabilitiesResponse,
|
|
41
41
|
type DeviceSetNameResponse,
|
|
42
|
+
type DeviceSummaryResponse,
|
|
42
43
|
type DeviceWaitReadyResponse,
|
|
43
44
|
type DeviceCreateParams,
|
|
44
45
|
type DeviceListParams,
|
|
45
46
|
type DeviceFingerprintParams,
|
|
46
47
|
type DeviceSetNameParams,
|
|
48
|
+
type DeviceSummaryParams,
|
|
47
49
|
type DeviceTerminateParams,
|
|
48
50
|
} from './devices';
|
|
49
51
|
export {
|
|
@@ -330,9 +330,11 @@ export interface RecordingStartParams {
|
|
|
330
330
|
retentionDays?: number;
|
|
331
331
|
|
|
332
332
|
/**
|
|
333
|
-
* Artifacts to capture: trajectory (input actions
|
|
333
|
+
* Artifacts to capture: trajectory (input actions; on portal stream-bridge devices
|
|
334
|
+
* only when the handset announces trajectory capture), video, and audio (captured
|
|
334
335
|
* into the video artifact, so it requires video; honored by portal stream-bridge
|
|
335
|
-
* recorders). Defaults to trajectory and video
|
|
336
|
+
* recorders). Defaults to trajectory and video, narrowed to what the device
|
|
337
|
+
* produces.
|
|
336
338
|
*/
|
|
337
339
|
types?: Array<string> | null;
|
|
338
340
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as Shared from '../shared';
|
|
5
5
|
import { APIPromise } from '../../core/api-promise';
|
|
6
|
-
import { buildHeaders } from '../../internal/headers';
|
|
7
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
8
7
|
import { path } from '../../internal/utils/path';
|
|
9
8
|
|
|
@@ -14,15 +13,10 @@ export class TrafficSessions extends APIResource {
|
|
|
14
13
|
*/
|
|
15
14
|
create(
|
|
16
15
|
deviceID: string,
|
|
17
|
-
|
|
16
|
+
body: TrafficSessionCreateParams,
|
|
18
17
|
options?: RequestOptions,
|
|
19
18
|
): APIPromise<TrafficSessionCreateResponse> {
|
|
20
|
-
|
|
21
|
-
return this._client.post(path`/devices/${deviceID}/traffic/sessions`, {
|
|
22
|
-
body,
|
|
23
|
-
...options,
|
|
24
|
-
headers: buildHeaders([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
|
|
25
|
-
});
|
|
19
|
+
return this._client.post(path`/devices/${deviceID}/traffic/sessions`, { body, ...options });
|
|
26
20
|
}
|
|
27
21
|
|
|
28
22
|
/**
|
|
@@ -255,19 +249,8 @@ export namespace TrafficSessionDeleteResponse {
|
|
|
255
249
|
}
|
|
256
250
|
|
|
257
251
|
export interface TrafficSessionCreateParams {
|
|
258
|
-
/**
|
|
259
|
-
* Header param
|
|
260
|
-
*/
|
|
261
|
-
'Idempotency-Key': string;
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Body param
|
|
265
|
-
*/
|
|
266
252
|
expiresInSeconds?: number;
|
|
267
253
|
|
|
268
|
-
/**
|
|
269
|
-
* Body param
|
|
270
|
-
*/
|
|
271
254
|
maxBodyBytes?: number;
|
|
272
255
|
}
|
|
273
256
|
|
package/src/resources/files.ts
CHANGED
|
@@ -66,16 +66,8 @@ export class Files extends APIResource {
|
|
|
66
66
|
/**
|
|
67
67
|
* Mint a presigned PUT URL for a user file upload
|
|
68
68
|
*/
|
|
69
|
-
uploadURL(
|
|
70
|
-
|
|
71
|
-
return this._client.post('/agents/files/upload-url', {
|
|
72
|
-
body,
|
|
73
|
-
...options,
|
|
74
|
-
headers: buildHeaders([
|
|
75
|
-
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
76
|
-
options?.headers,
|
|
77
|
-
]),
|
|
78
|
-
});
|
|
69
|
+
uploadURL(body: FileUploadURLParams, options?: RequestOptions): APIPromise<FileUploadURLResponse> {
|
|
70
|
+
return this._client.post('/agents/files/upload-url', { body, ...options });
|
|
79
71
|
}
|
|
80
72
|
}
|
|
81
73
|
|
|
@@ -203,9 +195,13 @@ export namespace FileListResponse {
|
|
|
203
195
|
}
|
|
204
196
|
|
|
205
197
|
export interface Quota {
|
|
206
|
-
|
|
198
|
+
includedBytes: number | null;
|
|
199
|
+
|
|
200
|
+
maxBytes: number | null;
|
|
201
|
+
|
|
202
|
+
overageAllowed: boolean;
|
|
207
203
|
|
|
208
|
-
|
|
204
|
+
usedBytes: number;
|
|
209
205
|
}
|
|
210
206
|
}
|
|
211
207
|
|
|
@@ -298,30 +294,13 @@ export interface FileListParams {
|
|
|
298
294
|
}
|
|
299
295
|
|
|
300
296
|
export interface FileUploadURLParams {
|
|
301
|
-
/**
|
|
302
|
-
* Body param
|
|
303
|
-
*/
|
|
304
297
|
filename: string;
|
|
305
298
|
|
|
306
|
-
/**
|
|
307
|
-
* Body param
|
|
308
|
-
*/
|
|
309
299
|
mimeType: string;
|
|
310
300
|
|
|
311
|
-
/**
|
|
312
|
-
* Body param
|
|
313
|
-
*/
|
|
314
301
|
sizeBytes: number;
|
|
315
302
|
|
|
316
|
-
/**
|
|
317
|
-
* Body param
|
|
318
|
-
*/
|
|
319
303
|
zone?: 'user' | 'skills';
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Header param
|
|
323
|
-
*/
|
|
324
|
-
'Idempotency-Key'?: string;
|
|
325
304
|
}
|
|
326
305
|
|
|
327
306
|
export declare namespace Files {
|
package/src/resources/index.ts
CHANGED
|
@@ -49,11 +49,13 @@ export {
|
|
|
49
49
|
type DeviceFingerprintResponse,
|
|
50
50
|
type DeviceRetrieveCapabilitiesResponse,
|
|
51
51
|
type DeviceSetNameResponse,
|
|
52
|
+
type DeviceSummaryResponse,
|
|
52
53
|
type DeviceWaitReadyResponse,
|
|
53
54
|
type DeviceCreateParams,
|
|
54
55
|
type DeviceListParams,
|
|
55
56
|
type DeviceFingerprintParams,
|
|
56
57
|
type DeviceSetNameParams,
|
|
58
|
+
type DeviceSummaryParams,
|
|
57
59
|
type DeviceTerminateParams,
|
|
58
60
|
} from './devices/devices';
|
|
59
61
|
export {
|
|
@@ -76,6 +78,7 @@ export {
|
|
|
76
78
|
type MailboxListResponse,
|
|
77
79
|
type MailboxDeleteResponse,
|
|
78
80
|
type MailboxCapacityResponse,
|
|
81
|
+
type MailboxDisconnectResponse,
|
|
79
82
|
type MailboxOtpResponse,
|
|
80
83
|
type MailboxRestartResponse,
|
|
81
84
|
type MailboxUncancelResponse,
|
|
@@ -85,13 +88,20 @@ export {
|
|
|
85
88
|
type MailboxOtpParams,
|
|
86
89
|
type MailboxRestartParams,
|
|
87
90
|
} from './mailboxes/mailboxes';
|
|
88
|
-
export {
|
|
91
|
+
export {
|
|
92
|
+
Messages,
|
|
93
|
+
type MessageRetrieveResponse,
|
|
94
|
+
type MessageListResponse,
|
|
95
|
+
type MessageListParams,
|
|
96
|
+
} from './messages/messages';
|
|
89
97
|
export { Models, type ModelListResponse } from './models';
|
|
90
98
|
export {
|
|
91
99
|
Notifications,
|
|
100
|
+
type NotificationApplyPreferencesPresetResponse,
|
|
92
101
|
type NotificationCatalogResponse,
|
|
93
102
|
type NotificationGetPreferencesResponse,
|
|
94
103
|
type NotificationUpdatePreferencesResponse,
|
|
104
|
+
type NotificationApplyPreferencesPresetParams,
|
|
95
105
|
type NotificationUpdatePreferencesParams,
|
|
96
106
|
} from './notifications';
|
|
97
107
|
export {
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Connections extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Links the caller’s Gmail account through the shared integrations connect.
|
|
11
|
+
* Replaying the same Idempotency-Key (or, during migration, the deprecated
|
|
12
|
+
* `clientRequestId` body field) returns the same mailbox. When Gmail is already
|
|
13
|
+
* active, redirectUrl is null and the mailbox is usable immediately.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const connection =
|
|
18
|
+
* await client.mailboxes.connections.create({
|
|
19
|
+
* provider: 'gmail',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
create(body: ConnectionCreateParams, options?: RequestOptions): APIPromise<ConnectionCreateResponse> {
|
|
24
|
+
return this._client.post('/mailboxes/connections', { body, ...options });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Reports pending, active (with the Gmail address), expired, or removed.
|
|
29
|
+
* connectionId is the mailbox id.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const connection =
|
|
34
|
+
* await client.mailboxes.connections.retrieve(
|
|
35
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
retrieve(connectionID: string, options?: RequestOptions): APIPromise<ConnectionRetrieveResponse> {
|
|
40
|
+
return this._client.get(path`/mailboxes/connections/${connectionID}`, options);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface ConnectionCreateResponse {
|
|
45
|
+
address: string | null;
|
|
46
|
+
|
|
47
|
+
connectionId: string;
|
|
48
|
+
|
|
49
|
+
mailboxId: string;
|
|
50
|
+
|
|
51
|
+
redirectUrl: string | null;
|
|
52
|
+
|
|
53
|
+
status: 'pending' | 'active' | 'expired' | 'removed';
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface ConnectionRetrieveResponse {
|
|
57
|
+
address: string | null;
|
|
58
|
+
|
|
59
|
+
connectionId: string;
|
|
60
|
+
|
|
61
|
+
mailboxId: string;
|
|
62
|
+
|
|
63
|
+
redirectUrl: string | null;
|
|
64
|
+
|
|
65
|
+
status: 'pending' | 'active' | 'expired' | 'removed';
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface ConnectionCreateParams {
|
|
69
|
+
provider: 'gmail';
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* sha256 hex of the browser-held connect binding secret; forwarded to integrations
|
|
73
|
+
* connect
|
|
74
|
+
*/
|
|
75
|
+
bindingHash?: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @deprecated Use the Idempotency-Key header.
|
|
79
|
+
*/
|
|
80
|
+
clientRequestId?: string;
|
|
81
|
+
|
|
82
|
+
label?: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export declare namespace Connections {
|
|
86
|
+
export {
|
|
87
|
+
type ConnectionCreateResponse as ConnectionCreateResponse,
|
|
88
|
+
type ConnectionRetrieveResponse as ConnectionRetrieveResponse,
|
|
89
|
+
type ConnectionCreateParams as ConnectionCreateParams,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
Connections,
|
|
5
|
+
type ConnectionCreateResponse,
|
|
6
|
+
type ConnectionRetrieveResponse,
|
|
7
|
+
type ConnectionCreateParams,
|
|
8
|
+
} from './connections';
|
|
3
9
|
export {
|
|
4
10
|
Mailboxes,
|
|
5
11
|
type MailboxCreateResponse,
|
|
@@ -8,6 +14,7 @@ export {
|
|
|
8
14
|
type MailboxListResponse,
|
|
9
15
|
type MailboxDeleteResponse,
|
|
10
16
|
type MailboxCapacityResponse,
|
|
17
|
+
type MailboxDisconnectResponse,
|
|
11
18
|
type MailboxOtpResponse,
|
|
12
19
|
type MailboxRestartResponse,
|
|
13
20
|
type MailboxUncancelResponse,
|