@mobilerun/sdk 5.4.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 +17 -0
- package/client.d.mts +10 -13
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -13
- package/client.d.ts.map +1 -1
- package/client.js +1 -3
- package/client.js.map +1 -1
- package/client.mjs +2 -4
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +23 -12
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +23 -12
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +8 -3
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +8 -3
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +33 -21
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +33 -21
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +16 -15
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +16 -15
- 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 +118 -19
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +118 -19
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +19 -0
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +19 -0
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/devices/apps.d.mts +37 -17
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +37 -17
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +15 -14
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +15 -14
- package/resources/devices/apps.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 +81 -27
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +81 -27
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +24 -11
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +24 -11
- 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 +9 -3
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +9 -3
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.js +3 -3
- package/resources/devices/keyboard.mjs +3 -3
- package/resources/devices/recordings.d.mts +13 -0
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +13 -0
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.d.mts +163 -0
- package/resources/devices/traffic-sessions.d.mts.map +1 -0
- package/resources/devices/traffic-sessions.d.ts +163 -0
- package/resources/devices/traffic-sessions.d.ts.map +1 -0
- package/resources/devices/traffic-sessions.js +37 -0
- package/resources/devices/traffic-sessions.js.map +1 -0
- package/resources/devices/traffic-sessions.mjs +33 -0
- package/resources/devices/traffic-sessions.mjs.map +1 -0
- package/resources/files.d.mts +77 -19
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +77 -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 +5 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -2
- 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 +107 -50
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +107 -50
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +34 -24
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +34 -24
- package/resources/mailboxes/mailboxes.mjs.map +1 -1
- package/resources/mailboxes/messages.d.mts +2 -2
- package/resources/mailboxes/messages.d.ts +2 -2
- package/resources/mailboxes/messages.js +2 -2
- package/resources/mailboxes/messages.mjs +2 -2
- package/resources/messages/conversations.d.mts +4 -15
- package/resources/messages/conversations.d.mts.map +1 -1
- package/resources/messages/conversations.d.ts +4 -15
- package/resources/messages/conversations.d.ts.map +1 -1
- package/resources/messages/conversations.js +4 -15
- package/resources/messages/conversations.js.map +1 -1
- package/resources/messages/conversations.mjs +4 -15
- package/resources/messages/conversations.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 +28 -5
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +28 -5
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +11 -4
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +11 -4
- 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 +2 -2
- package/resources/numbers/index.d.mts.map +1 -1
- package/resources/numbers/index.d.ts +2 -2
- 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 +167 -46
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +167 -46
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +25 -40
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +26 -41
- 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 +84 -75
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +84 -75
- 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 +280 -71
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +280 -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 +66 -4
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +66 -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 -190
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +1 -190
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +2 -36
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +1 -34
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +58 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +58 -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 +666 -15
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +666 -15
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +86 -1
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +86 -1
- 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 +118 -6
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +118 -6
- 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 +22 -42
- package/src/resources/apps.ts +24 -12
- package/src/resources/assistant/conversations.ts +50 -31
- package/src/resources/connect/connect.ts +6 -0
- package/src/resources/connect/index.ts +3 -0
- package/src/resources/connect/proxies.ts +146 -18
- package/src/resources/devices/apps.ts +41 -17
- package/src/resources/devices/browser.ts +9 -3
- package/src/resources/devices/devices.ts +138 -34
- package/src/resources/devices/index.ts +13 -0
- package/src/resources/devices/keyboard.ts +10 -3
- package/src/resources/devices/recordings.ts +14 -0
- package/src/resources/devices/traffic-sessions.ts +282 -0
- package/src/resources/files.ts +122 -29
- package/src/resources/index.ts +13 -20
- package/src/resources/mailboxes/connections.ts +91 -0
- package/src/resources/mailboxes/index.ts +7 -0
- package/src/resources/mailboxes/mailboxes.ts +190 -49
- package/src/resources/mailboxes/messages.ts +2 -2
- package/src/resources/messages/conversations.ts +4 -15
- package/src/resources/messages/index.ts +6 -1
- package/src/resources/messages/messages.ts +57 -5
- package/src/resources/notifications.ts +37 -0
- package/src/resources/numbers/index.ts +9 -1
- package/src/resources/numbers/messages.ts +92 -1
- package/src/resources/numbers/numbers.ts +197 -55
- package/src/resources/store/apps.ts +291 -2
- package/src/resources/tasks/tasks.ts +126 -93
- 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 +328 -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 +86 -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 -296
- package/src/resources/workflows/flows/actions.ts +72 -0
- package/src/resources/workflows/flows/flows.ts +1058 -129
- package/src/resources/workflows/flows/index.ts +12 -0
- package/src/resources/workflows/index.ts +13 -1
- package/src/resources/workflows/triggers.ts +140 -6
- package/src/resources/workflows/workflows.ts +34 -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
- package/resources/esims/esims.d.mts +0 -566
- package/resources/esims/esims.d.mts.map +0 -1
- package/resources/esims/esims.d.ts +0 -566
- package/resources/esims/esims.d.ts.map +0 -1
- package/resources/esims/esims.js +0 -205
- package/resources/esims/esims.js.map +0 -1
- package/resources/esims/esims.mjs +0 -200
- package/resources/esims/esims.mjs.map +0 -1
- package/resources/esims/index.d.mts +0 -3
- package/resources/esims/index.d.mts.map +0 -1
- package/resources/esims/index.d.ts +0 -3
- package/resources/esims/index.d.ts.map +0 -1
- package/resources/esims/index.js +0 -9
- package/resources/esims/index.js.map +0 -1
- package/resources/esims/index.mjs +0 -4
- package/resources/esims/index.mjs.map +0 -1
- package/resources/esims/messages.d.mts +0 -106
- package/resources/esims/messages.d.mts.map +0 -1
- package/resources/esims/messages.d.ts +0 -106
- package/resources/esims/messages.d.ts.map +0 -1
- package/resources/esims/messages.js +0 -37
- package/resources/esims/messages.js.map +0 -1
- package/resources/esims/messages.mjs +0 -33
- package/resources/esims/messages.mjs.map +0 -1
- package/resources/esims.d.mts +0 -2
- package/resources/esims.d.mts.map +0 -1
- package/resources/esims.d.ts +0 -2
- package/resources/esims.d.ts.map +0 -1
- package/resources/esims.js +0 -6
- package/resources/esims.js.map +0 -1
- package/resources/esims.mjs +0 -3
- package/resources/esims.mjs.map +0 -1
- package/src/resources/esims/esims.ts +0 -1019
- package/src/resources/esims/index.ts +0 -28
- package/src/resources/esims/messages.ts +0 -187
- package/src/resources/esims.ts +0 -3
|
@@ -15,6 +15,13 @@ export class Proxies extends APIResource {
|
|
|
15
15
|
return this._client.get(path`/connect/proxies/${id}`, options);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Renames the proxy identified by the path ID.
|
|
20
|
+
*/
|
|
21
|
+
update(id: string, body: ProxyUpdateParams, options?: RequestOptions): APIPromise<ProxyUpdateResponse> {
|
|
22
|
+
return this._client.patch(path`/connect/proxies/${id}`, { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
|
|
18
25
|
/**
|
|
19
26
|
* Returns proxies owned by the calling tenant (the X-Owner-Id header, falling back
|
|
20
27
|
* to X-User-ID). Credentials are omitted from the list.
|
|
@@ -44,6 +51,20 @@ export class Proxies extends APIResource {
|
|
|
44
51
|
});
|
|
45
52
|
}
|
|
46
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Checks right now that the proxy's upstream accepts a connection through its
|
|
56
|
+
* current session. If the upstream refuses the session and the proxy is a rotating
|
|
57
|
+
* (sticky-session) proxy, the proxy is moved onto a fresh session that has been
|
|
58
|
+
* checked to work; its credentials and country stay the same, its exit IP changes.
|
|
59
|
+
* Intended for callers that are about to depend on the proxy (e.g. while
|
|
60
|
+
* provisioning a phone). After `rotated`, the gateway uses the new session within
|
|
61
|
+
* about 30 seconds. A `refused` or `unreachable` result is not an error: the
|
|
62
|
+
* response describes the proxy's state.
|
|
63
|
+
*/
|
|
64
|
+
ensureHealthy(id: string, options?: RequestOptions): APIPromise<ProxyEnsureHealthyResponse> {
|
|
65
|
+
return this._client.post(path`/connect/proxies/${id}/ensure-healthy`, options);
|
|
66
|
+
}
|
|
67
|
+
|
|
47
68
|
/**
|
|
48
69
|
* Returns the connection history recorded for this proxy, one item per connection
|
|
49
70
|
* (aggregated across the connection's lifetime). Supports filtering on every
|
|
@@ -84,23 +105,33 @@ export interface ProxyRetrieveResponse {
|
|
|
84
105
|
|
|
85
106
|
host: string;
|
|
86
107
|
|
|
108
|
+
/**
|
|
109
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
110
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
111
|
+
* returned instead — so this is never empty.
|
|
112
|
+
*/
|
|
113
|
+
name: string;
|
|
114
|
+
|
|
87
115
|
password: string;
|
|
88
116
|
|
|
89
117
|
port: number;
|
|
90
118
|
|
|
91
119
|
/**
|
|
92
|
-
* Lifecycle of a proxy. A freshly created proxy is `
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
120
|
+
* Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
|
|
121
|
+
* identity is being resolved — clients should poll until a `paymentUrl` or a later
|
|
122
|
+
* status appears — then `provisioning` — or `pending_payment` until the customer
|
|
123
|
+
* completes checkout — and becomes `active` once its upstream is assigned.
|
|
124
|
+
* `cancelling` retains full access through the paid period; when the subscription
|
|
125
|
+
* expires the proxy is `ended`. `error` marks a failed provisioning attempt.
|
|
97
126
|
*/
|
|
98
|
-
status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
127
|
+
status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
99
128
|
|
|
100
129
|
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
101
130
|
|
|
102
131
|
username: string;
|
|
103
132
|
|
|
133
|
+
billingMode?: 'included' | 'standalone_paid';
|
|
134
|
+
|
|
104
135
|
/**
|
|
105
136
|
* Checkout URL to complete payment while status is `pending_payment`. Null once
|
|
106
137
|
* paid or when no payment was required.
|
|
@@ -108,6 +139,47 @@ export interface ProxyRetrieveResponse {
|
|
|
108
139
|
paymentUrl?: string | null;
|
|
109
140
|
}
|
|
110
141
|
|
|
142
|
+
/**
|
|
143
|
+
* A provisioned proxy without its credentials.
|
|
144
|
+
*/
|
|
145
|
+
export interface ProxyUpdateResponse {
|
|
146
|
+
id: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* ISO 3166-1 alpha-2 country code (lowercase).
|
|
150
|
+
*/
|
|
151
|
+
country: string;
|
|
152
|
+
|
|
153
|
+
createdAt: string;
|
|
154
|
+
|
|
155
|
+
host: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
159
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
160
|
+
* returned instead — so this is never empty.
|
|
161
|
+
*/
|
|
162
|
+
name: string;
|
|
163
|
+
|
|
164
|
+
port: number;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
|
|
168
|
+
* identity is being resolved — clients should poll until a `paymentUrl` or a later
|
|
169
|
+
* status appears — then `provisioning` — or `pending_payment` until the customer
|
|
170
|
+
* completes checkout — and becomes `active` once its upstream is assigned.
|
|
171
|
+
* `cancelling` retains full access through the paid period; when the subscription
|
|
172
|
+
* expires the proxy is `ended`. `error` marks a failed provisioning attempt.
|
|
173
|
+
*/
|
|
174
|
+
status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
175
|
+
|
|
176
|
+
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
177
|
+
|
|
178
|
+
username: string;
|
|
179
|
+
|
|
180
|
+
billingMode?: 'included' | 'standalone_paid';
|
|
181
|
+
}
|
|
182
|
+
|
|
111
183
|
/**
|
|
112
184
|
* A page of proxies.
|
|
113
185
|
*/
|
|
@@ -136,20 +208,30 @@ export namespace ProxyListResponse {
|
|
|
136
208
|
|
|
137
209
|
host: string;
|
|
138
210
|
|
|
211
|
+
/**
|
|
212
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
213
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
214
|
+
* returned instead — so this is never empty.
|
|
215
|
+
*/
|
|
216
|
+
name: string;
|
|
217
|
+
|
|
139
218
|
port: number;
|
|
140
219
|
|
|
141
220
|
/**
|
|
142
|
-
* Lifecycle of a proxy. A freshly created proxy is `
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
221
|
+
* Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
|
|
222
|
+
* identity is being resolved — clients should poll until a `paymentUrl` or a later
|
|
223
|
+
* status appears — then `provisioning` — or `pending_payment` until the customer
|
|
224
|
+
* completes checkout — and becomes `active` once its upstream is assigned.
|
|
225
|
+
* `cancelling` retains full access through the paid period; when the subscription
|
|
226
|
+
* expires the proxy is `ended`. `error` marks a failed provisioning attempt.
|
|
147
227
|
*/
|
|
148
|
-
status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
228
|
+
status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
149
229
|
|
|
150
230
|
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
151
231
|
|
|
152
232
|
username: string;
|
|
233
|
+
|
|
234
|
+
billingMode?: 'included' | 'standalone_paid';
|
|
153
235
|
}
|
|
154
236
|
|
|
155
237
|
/**
|
|
@@ -203,23 +285,33 @@ export interface ProxyBuyResponse {
|
|
|
203
285
|
|
|
204
286
|
host: string;
|
|
205
287
|
|
|
288
|
+
/**
|
|
289
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
290
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
291
|
+
* returned instead — so this is never empty.
|
|
292
|
+
*/
|
|
293
|
+
name: string;
|
|
294
|
+
|
|
206
295
|
password: string;
|
|
207
296
|
|
|
208
297
|
port: number;
|
|
209
298
|
|
|
210
299
|
/**
|
|
211
|
-
* Lifecycle of a proxy. A freshly created proxy is `
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
300
|
+
* Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
|
|
301
|
+
* identity is being resolved — clients should poll until a `paymentUrl` or a later
|
|
302
|
+
* status appears — then `provisioning` — or `pending_payment` until the customer
|
|
303
|
+
* completes checkout — and becomes `active` once its upstream is assigned.
|
|
304
|
+
* `cancelling` retains full access through the paid period; when the subscription
|
|
305
|
+
* expires the proxy is `ended`. `error` marks a failed provisioning attempt.
|
|
216
306
|
*/
|
|
217
|
-
status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
307
|
+
status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
218
308
|
|
|
219
309
|
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
220
310
|
|
|
221
311
|
username: string;
|
|
222
312
|
|
|
313
|
+
billingMode?: 'included' | 'standalone_paid';
|
|
314
|
+
|
|
223
315
|
/**
|
|
224
316
|
* Checkout URL to complete payment while status is `pending_payment`. Null once
|
|
225
317
|
* paid or when no payment was required.
|
|
@@ -227,6 +319,22 @@ export interface ProxyBuyResponse {
|
|
|
227
319
|
paymentUrl?: string | null;
|
|
228
320
|
}
|
|
229
321
|
|
|
322
|
+
/**
|
|
323
|
+
* The outcome of an ensure-healthy check.
|
|
324
|
+
*/
|
|
325
|
+
export interface ProxyEnsureHealthyResponse {
|
|
326
|
+
proxyId: string;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* `healthy`: the upstream accepted the current session. `rotated`: the session was
|
|
330
|
+
* refused and the proxy now uses a fresh, checked session; retry through the
|
|
331
|
+
* proxy. `refused`: the session was refused and could not be replaced.
|
|
332
|
+
* `unreachable`: the upstream could not be reached; the session was left
|
|
333
|
+
* unchanged.
|
|
334
|
+
*/
|
|
335
|
+
status: 'healthy' | 'rotated' | 'refused' | 'unreachable';
|
|
336
|
+
}
|
|
337
|
+
|
|
230
338
|
/**
|
|
231
339
|
* A page of connections.
|
|
232
340
|
*/
|
|
@@ -429,6 +537,16 @@ export namespace ProxyPingResponse {
|
|
|
429
537
|
}
|
|
430
538
|
}
|
|
431
539
|
|
|
540
|
+
export interface ProxyUpdateParams {
|
|
541
|
+
/**
|
|
542
|
+
* New display name, up to 64 characters excluding surrounding whitespace, and
|
|
543
|
+
* containing no NUL. Send null (or an empty/whitespace-only string) to drop a
|
|
544
|
+
* custom name and go back to the generated label. Omit to leave the name
|
|
545
|
+
* unchanged.
|
|
546
|
+
*/
|
|
547
|
+
name?: string | null;
|
|
548
|
+
}
|
|
549
|
+
|
|
432
550
|
export interface ProxyListParams {
|
|
433
551
|
/**
|
|
434
552
|
* Filter to proxies in this country (ISO 3166-1 alpha-2, lowercase).
|
|
@@ -453,6 +571,13 @@ export interface ProxyBuyParams {
|
|
|
453
571
|
country: string;
|
|
454
572
|
|
|
455
573
|
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Display name for the proxy, up to 64 characters excluding surrounding
|
|
577
|
+
* whitespace, and containing no NUL. Omit it (or send only whitespace) to get a
|
|
578
|
+
* generated label built from the country, type, and id.
|
|
579
|
+
*/
|
|
580
|
+
name?: string;
|
|
456
581
|
}
|
|
457
582
|
|
|
458
583
|
export interface ProxyListConnectionsParams {
|
|
@@ -587,10 +712,13 @@ export interface ProxyListConnectionsParams {
|
|
|
587
712
|
export declare namespace Proxies {
|
|
588
713
|
export {
|
|
589
714
|
type ProxyRetrieveResponse as ProxyRetrieveResponse,
|
|
715
|
+
type ProxyUpdateResponse as ProxyUpdateResponse,
|
|
590
716
|
type ProxyListResponse as ProxyListResponse,
|
|
591
717
|
type ProxyBuyResponse as ProxyBuyResponse,
|
|
718
|
+
type ProxyEnsureHealthyResponse as ProxyEnsureHealthyResponse,
|
|
592
719
|
type ProxyListConnectionsResponse as ProxyListConnectionsResponse,
|
|
593
720
|
type ProxyPingResponse as ProxyPingResponse,
|
|
721
|
+
type ProxyUpdateParams as ProxyUpdateParams,
|
|
594
722
|
type ProxyListParams as ProxyListParams,
|
|
595
723
|
type ProxyBuyParams as ProxyBuyParams,
|
|
596
724
|
type ProxyListConnectionsParams as ProxyListConnectionsParams,
|
|
@@ -79,15 +79,16 @@ export class Apps extends APIResource {
|
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
81
|
* Requests an app install on the device. The request body must supply exactly one
|
|
82
|
-
* of an Android packageName or an iOS bundleId;
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
82
|
+
* of an Android packageName or an iOS bundleId; optional country and versionCode
|
|
83
|
+
* select an exact regional uploaded Android version, and protected packages are
|
|
84
|
+
* rejected. background (default false) selects the response contract: false
|
|
85
|
+
* installs inline and returns the outcome directly (200 on success, an error
|
|
86
|
+
* status on failure); true accepts the request and runs the download + install in
|
|
87
|
+
* the background, returning 202 immediately — poll list-app-installs for the
|
|
88
|
+
* backend's view of that attempt's status. Refuses with 409 once 2 other installs
|
|
89
|
+
* are already running on the device, in either mode; a repeat request for an app
|
|
90
|
+
* that already has an install running is also refused with 409 rather than
|
|
91
|
+
* superseding it — retry once that attempt reaches a terminal state.
|
|
91
92
|
*/
|
|
92
93
|
install(deviceID: string, params: AppInstallParams, options?: RequestOptions): APIPromise<void> {
|
|
93
94
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -107,11 +108,11 @@ export class Apps extends APIResource {
|
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
/**
|
|
110
|
-
* Reports the backend's view of background app-install attempts on this
|
|
111
|
-
* status reflects the install ATTEMPT, not device ground truth; list-apps
|
|
112
|
-
* authoritative for what is actually installed.
|
|
113
|
-
*
|
|
114
|
-
*
|
|
111
|
+
* Reports the backend's durable view of background app-install attempts on this
|
|
112
|
+
* device — status reflects the install ATTEMPT, not device ground truth; list-apps
|
|
113
|
+
* remains authoritative for what is actually installed. Terminal and projected
|
|
114
|
+
* timeout records are kept ~15 minutes. Not gated on device readiness, so it also
|
|
115
|
+
* answers while the device is offline or crashed.
|
|
115
116
|
*/
|
|
116
117
|
listInstalls(
|
|
117
118
|
deviceID: string,
|
|
@@ -249,10 +250,9 @@ export namespace AppListInstallsResponse {
|
|
|
249
250
|
updatedAt: string;
|
|
250
251
|
|
|
251
252
|
/**
|
|
252
|
-
*
|
|
253
|
-
* present when status is failed.
|
|
253
|
+
* Only present when status is failed.
|
|
254
254
|
*/
|
|
255
|
-
errorClass?:
|
|
255
|
+
errorClass?: 'download_failed' | 'adb_install_failed' | 'panic' | 'timeout' | 'failed';
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
|
|
@@ -318,11 +318,23 @@ export declare namespace AppInstallParams {
|
|
|
318
318
|
*/
|
|
319
319
|
background?: boolean;
|
|
320
320
|
|
|
321
|
+
/**
|
|
322
|
+
* Body param: Optional ISO 3166-1 alpha-2 country of the uploaded app version
|
|
323
|
+
* (e.g. MY or SG).
|
|
324
|
+
*/
|
|
325
|
+
country?: string;
|
|
326
|
+
|
|
321
327
|
/**
|
|
322
328
|
* Body param: Android package name (e.g. com.example.app)
|
|
323
329
|
*/
|
|
324
330
|
packageName?: string;
|
|
325
331
|
|
|
332
|
+
/**
|
|
333
|
+
* Body param: Optional exact app-library version code. Use with country when
|
|
334
|
+
* multiple regional versions share an identifier.
|
|
335
|
+
*/
|
|
336
|
+
versionCode?: number;
|
|
337
|
+
|
|
326
338
|
/**
|
|
327
339
|
* Header param
|
|
328
340
|
*/
|
|
@@ -347,6 +359,18 @@ export declare namespace AppInstallParams {
|
|
|
347
359
|
*/
|
|
348
360
|
bundleId?: string;
|
|
349
361
|
|
|
362
|
+
/**
|
|
363
|
+
* Body param: Optional ISO 3166-1 alpha-2 country of the uploaded app version
|
|
364
|
+
* (e.g. MY or SG).
|
|
365
|
+
*/
|
|
366
|
+
country?: string;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Body param: Optional exact app-library version code. Use with country when
|
|
370
|
+
* multiple regional versions share an identifier.
|
|
371
|
+
*/
|
|
372
|
+
versionCode?: number;
|
|
373
|
+
|
|
350
374
|
/**
|
|
351
375
|
* Header param
|
|
352
376
|
*/
|
|
@@ -8,9 +8,15 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class Browser extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* Evaluates a JavaScript expression in the device's
|
|
12
|
-
* Chrome DevTools Protocol and returns its
|
|
13
|
-
* browser
|
|
11
|
+
* Evaluates a JavaScript expression exactly once in the device's single, confirmed
|
|
12
|
+
* foreground Chrome tab via the Chrome DevTools Protocol and returns its
|
|
13
|
+
* JSON-serialized result. A responsive browser state without exactly one visible
|
|
14
|
+
* page returns DEVICE_NO_BROWSER_TARGET (400). Transient discovery, page-dial, or
|
|
15
|
+
* visibility-probe transport failures return CDP_TRANSPORT_UNAVAILABLE (503) with
|
|
16
|
+
* Retry-After and an executionOutcome; the service may start Chrome once and retry
|
|
17
|
+
* selection before Runtime.evaluate, but dial or probe recovery is skipped for a
|
|
18
|
+
* backgrounded Chrome, and a user script is never retried after its write or read.
|
|
19
|
+
* Devices without browser support return an unsupported-feature error.
|
|
14
20
|
*/
|
|
15
21
|
executeScript(
|
|
16
22
|
deviceID: string,
|