@mobilerun/sdk 5.1.0 → 5.2.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 +41 -0
- package/client.d.mts +4 -16
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -16
- package/client.d.ts.map +1 -1
- package/client.js +0 -12
- package/client.js.map +1 -1
- package/client.mjs +1 -13
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +12 -7
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +12 -7
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +0 -4
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +0 -4
- package/resources/apps.mjs.map +1 -1
- package/resources/carriers.d.mts +0 -3
- package/resources/carriers.d.mts.map +1 -1
- package/resources/carriers.d.ts +0 -3
- package/resources/carriers.d.ts.map +1 -1
- package/resources/carriers.js +0 -3
- package/resources/carriers.js.map +1 -1
- package/resources/carriers.mjs +0 -3
- package/resources/carriers.mjs.map +1 -1
- package/resources/connect/countries.d.mts +8 -3
- package/resources/connect/countries.d.mts.map +1 -1
- package/resources/connect/countries.d.ts +8 -3
- package/resources/connect/countries.d.ts.map +1 -1
- package/resources/connect/countries.js +6 -1
- package/resources/connect/countries.js.map +1 -1
- package/resources/connect/countries.mjs +6 -1
- package/resources/connect/countries.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +11 -9
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +11 -9
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +7 -5
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +7 -5
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/connect/users.d.mts +7 -2
- package/resources/connect/users.d.mts.map +1 -1
- package/resources/connect/users.d.ts +7 -2
- package/resources/connect/users.d.ts.map +1 -1
- package/resources/connect/users.js +7 -2
- package/resources/connect/users.js.map +1 -1
- package/resources/connect/users.mjs +7 -2
- package/resources/connect/users.mjs.map +1 -1
- package/resources/credentials/credentials.d.mts +3 -4
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +3 -4
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +3 -4
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +3 -4
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.mts +14 -7
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +14 -7
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js +7 -6
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs +7 -6
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +8 -6
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +8 -6
- package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/fields.js +8 -6
- package/resources/credentials/packages/credentials/fields.js.map +1 -1
- package/resources/credentials/packages/credentials/fields.mjs +8 -6
- package/resources/credentials/packages/credentials/fields.mjs.map +1 -1
- package/resources/credentials/packages/packages.d.mts +5 -5
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +5 -5
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +5 -5
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +5 -5
- package/resources/credentials/packages/packages.mjs.map +1 -1
- package/resources/devices/actions.d.mts +10 -5
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +10 -5
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +10 -5
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +10 -5
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +38 -5
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +38 -5
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +21 -5
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +21 -5
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +76 -14
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +76 -14
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +28 -12
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +28 -12
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/esim.d.mts +6 -4
- package/resources/devices/esim.d.mts.map +1 -1
- package/resources/devices/esim.d.ts +6 -4
- package/resources/devices/esim.d.ts.map +1 -1
- package/resources/devices/esim.js +6 -4
- package/resources/devices/esim.js.map +1 -1
- package/resources/devices/esim.mjs +6 -4
- package/resources/devices/esim.mjs.map +1 -1
- package/resources/devices/files.d.mts +7 -4
- package/resources/devices/files.d.mts.map +1 -1
- package/resources/devices/files.d.ts +7 -4
- package/resources/devices/files.d.ts.map +1 -1
- package/resources/devices/files.js +7 -4
- package/resources/devices/files.js.map +1 -1
- package/resources/devices/files.mjs +7 -4
- package/resources/devices/files.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +5 -3
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +5 -3
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.js +5 -3
- package/resources/devices/keyboard.js.map +1 -1
- package/resources/devices/keyboard.mjs +5 -3
- package/resources/devices/keyboard.mjs.map +1 -1
- package/resources/devices/language.d.mts +4 -2
- package/resources/devices/language.d.mts.map +1 -1
- package/resources/devices/language.d.ts +4 -2
- package/resources/devices/language.d.ts.map +1 -1
- package/resources/devices/language.js +4 -2
- package/resources/devices/language.js.map +1 -1
- package/resources/devices/language.mjs +4 -2
- package/resources/devices/language.mjs.map +1 -1
- package/resources/devices/location.d.mts +4 -2
- package/resources/devices/location.d.mts.map +1 -1
- package/resources/devices/location.d.ts +4 -2
- package/resources/devices/location.d.ts.map +1 -1
- package/resources/devices/location.js +4 -2
- package/resources/devices/location.js.map +1 -1
- package/resources/devices/location.mjs +4 -2
- package/resources/devices/location.mjs.map +1 -1
- package/resources/devices/packages.d.mts +2 -1
- package/resources/devices/packages.d.mts.map +1 -1
- package/resources/devices/packages.d.ts +2 -1
- package/resources/devices/packages.d.ts.map +1 -1
- package/resources/devices/packages.js +2 -1
- package/resources/devices/packages.js.map +1 -1
- package/resources/devices/packages.mjs +2 -1
- package/resources/devices/packages.mjs.map +1 -1
- package/resources/devices/proxy.d.mts +29 -3
- package/resources/devices/proxy.d.mts.map +1 -1
- package/resources/devices/proxy.d.ts +29 -3
- package/resources/devices/proxy.d.ts.map +1 -1
- package/resources/devices/proxy.js +7 -3
- package/resources/devices/proxy.js.map +1 -1
- package/resources/devices/proxy.mjs +7 -3
- package/resources/devices/proxy.mjs.map +1 -1
- package/resources/devices/state.d.mts +7 -3
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +7 -3
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +6 -3
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +6 -3
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/tasks.d.mts +4 -12
- package/resources/devices/tasks.d.mts.map +1 -1
- package/resources/devices/tasks.d.ts +4 -12
- package/resources/devices/tasks.d.ts.map +1 -1
- package/resources/devices/tasks.js +2 -4
- package/resources/devices/tasks.js.map +1 -1
- package/resources/devices/tasks.mjs +2 -4
- package/resources/devices/tasks.mjs.map +1 -1
- package/resources/devices/timezone.d.mts +4 -2
- package/resources/devices/timezone.d.mts.map +1 -1
- package/resources/devices/timezone.d.ts +4 -2
- package/resources/devices/timezone.d.ts.map +1 -1
- package/resources/devices/timezone.js +4 -2
- package/resources/devices/timezone.js.map +1 -1
- package/resources/devices/timezone.mjs +4 -2
- package/resources/devices/timezone.mjs.map +1 -1
- package/resources/hooks.d.mts +0 -239
- package/resources/hooks.d.mts.map +1 -1
- package/resources/hooks.d.ts +0 -239
- package/resources/hooks.d.ts.map +1 -1
- package/resources/hooks.js +0 -57
- package/resources/hooks.js.map +1 -1
- package/resources/hooks.mjs +0 -57
- package/resources/hooks.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- 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/profiles.d.mts +69 -6
- package/resources/profiles.d.mts.map +1 -1
- package/resources/profiles.d.ts +69 -6
- package/resources/profiles.d.ts.map +1 -1
- package/resources/profiles.js.map +1 -1
- package/resources/profiles.mjs.map +1 -1
- package/resources/proxies.d.mts +14 -8
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +14 -8
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +14 -8
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +14 -8
- package/resources/proxies.mjs.map +1 -1
- package/resources/shared.d.mts +14 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +14 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/tasks/tasks.d.mts +159 -64
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +159 -64
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +10 -2
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +10 -2
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +38 -4
- package/resources/webhooks/deliveries.d.mts.map +1 -1
- package/resources/webhooks/deliveries.d.ts +38 -4
- package/resources/webhooks/deliveries.d.ts.map +1 -1
- package/resources/webhooks/deliveries.js +15 -4
- package/resources/webhooks/deliveries.js.map +1 -1
- package/resources/webhooks/deliveries.mjs +15 -4
- package/resources/webhooks/deliveries.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +67 -9
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +67 -9
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +26 -8
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +26 -8
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +5 -2
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +5 -2
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/action-catalog.js +5 -2
- package/resources/workflows/action-catalog.js.map +1 -1
- package/resources/workflows/action-catalog.mjs +5 -2
- package/resources/workflows/action-catalog.mjs.map +1 -1
- package/resources/workflows/actions/actions.d.mts +15 -5
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +15 -5
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +10 -5
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +10 -5
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/actions/services.d.mts +5 -2
- package/resources/workflows/actions/services.d.mts.map +1 -1
- package/resources/workflows/actions/services.d.ts +5 -2
- package/resources/workflows/actions/services.d.ts.map +1 -1
- package/resources/workflows/actions/services.js +5 -2
- package/resources/workflows/actions/services.js.map +1 -1
- package/resources/workflows/actions/services.mjs +5 -2
- package/resources/workflows/actions/services.mjs.map +1 -1
- package/resources/workflows/events/catalog.d.mts +0 -51
- package/resources/workflows/events/catalog.d.mts.map +1 -1
- package/resources/workflows/events/catalog.d.ts +0 -51
- package/resources/workflows/events/catalog.d.ts.map +1 -1
- package/resources/workflows/events/catalog.js +0 -12
- package/resources/workflows/events/catalog.js.map +1 -1
- package/resources/workflows/events/catalog.mjs +0 -12
- package/resources/workflows/events/catalog.mjs.map +1 -1
- package/resources/workflows/events/events.d.mts +10 -20
- package/resources/workflows/events/events.d.mts.map +1 -1
- package/resources/workflows/events/events.d.ts +10 -20
- package/resources/workflows/events/events.d.ts.map +1 -1
- package/resources/workflows/events/events.js.map +1 -1
- package/resources/workflows/events/events.mjs +1 -1
- package/resources/workflows/events/events.mjs.map +1 -1
- package/resources/workflows/events/index.d.mts +1 -1
- package/resources/workflows/events/index.d.mts.map +1 -1
- package/resources/workflows/events/index.d.ts +1 -1
- package/resources/workflows/events/index.d.ts.map +1 -1
- package/resources/workflows/events/index.js.map +1 -1
- package/resources/workflows/events/index.mjs +1 -1
- package/resources/workflows/events/index.mjs.map +1 -1
- package/resources/workflows/executions.d.mts +43 -5
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +43 -5
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +8 -3
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +8 -3
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +12 -4
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +12 -4
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js +12 -4
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs +12 -4
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +33 -7
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +33 -7
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +18 -6
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +18 -6
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +75 -63
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +75 -63
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +12 -5
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +12 -5
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +15 -0
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +15 -0
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +8 -46
- package/src/resources/apps.ts +16 -8
- package/src/resources/carriers.ts +0 -3
- package/src/resources/connect/countries.ts +8 -3
- package/src/resources/connect/proxies.ts +11 -9
- package/src/resources/connect/users.ts +7 -2
- package/src/resources/credentials/credentials.ts +3 -4
- package/src/resources/credentials/packages/credentials/credentials.ts +16 -7
- package/src/resources/credentials/packages/credentials/fields.ts +8 -6
- package/src/resources/credentials/packages/packages.ts +5 -5
- package/src/resources/devices/actions.ts +10 -5
- package/src/resources/devices/apps.ts +41 -5
- package/src/resources/devices/devices.ts +97 -15
- package/src/resources/devices/esim.ts +6 -4
- package/src/resources/devices/files.ts +7 -4
- package/src/resources/devices/keyboard.ts +5 -3
- package/src/resources/devices/language.ts +4 -2
- package/src/resources/devices/location.ts +4 -2
- package/src/resources/devices/packages.ts +2 -1
- package/src/resources/devices/proxy.ts +32 -3
- package/src/resources/devices/state.ts +8 -3
- package/src/resources/devices/tasks.ts +4 -15
- package/src/resources/devices/timezone.ts +4 -2
- package/src/resources/hooks.ts +1 -333
- package/src/resources/index.ts +4 -17
- package/src/resources/profiles.ts +105 -6
- package/src/resources/proxies.ts +14 -8
- package/src/resources/shared.ts +17 -0
- package/src/resources/tasks/tasks.ts +198 -78
- package/src/resources/webhooks/deliveries.ts +43 -4
- package/src/resources/webhooks/webhooks.ts +79 -9
- package/src/resources/workflows/action-catalog.ts +5 -2
- package/src/resources/workflows/actions/actions.ts +17 -5
- package/src/resources/workflows/actions/services.ts +5 -2
- package/src/resources/workflows/events/catalog.ts +1 -84
- package/src/resources/workflows/events/events.ts +14 -36
- package/src/resources/workflows/events/index.ts +1 -7
- package/src/resources/workflows/executions.ts +50 -5
- package/src/resources/workflows/flows/actions.ts +12 -4
- package/src/resources/workflows/flows/flows.ts +41 -7
- package/src/resources/workflows/triggers.ts +92 -75
- package/src/resources/workflows/workflows.ts +21 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/apps.ts
CHANGED
|
@@ -6,9 +6,6 @@ import { APIPromise } from '../core/api-promise';
|
|
|
6
6
|
import { RequestOptions } from '../internal/request-options';
|
|
7
7
|
import { path } from '../internal/utils/path';
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* App Management
|
|
11
|
-
*/
|
|
12
9
|
export class Apps extends APIResource {
|
|
13
10
|
/**
|
|
14
11
|
* Retrieves an app by its ID
|
|
@@ -82,7 +79,6 @@ export class Apps extends APIResource {
|
|
|
82
79
|
* fileName: 'J!Q0Ok0bzJb7.apk/i',
|
|
83
80
|
* },
|
|
84
81
|
* ],
|
|
85
|
-
* sizeBytes: 0,
|
|
86
82
|
* versionCode: 0,
|
|
87
83
|
* versionName: 'x',
|
|
88
84
|
* });
|
|
@@ -454,11 +450,15 @@ export namespace AppListResponse {
|
|
|
454
450
|
|
|
455
451
|
createdAt: string | null;
|
|
456
452
|
|
|
453
|
+
createdBy: string | null;
|
|
454
|
+
|
|
455
|
+
ownerId: string | null;
|
|
456
|
+
|
|
457
457
|
queuedAt: string | null;
|
|
458
458
|
|
|
459
459
|
sizeBytes: number | null;
|
|
460
460
|
|
|
461
|
-
source: 'user' | 'system' | 'portal';
|
|
461
|
+
source: 'user' | 'system' | 'portal' | 'store';
|
|
462
462
|
|
|
463
463
|
status: 'queued' | 'available' | 'failed';
|
|
464
464
|
|
|
@@ -466,6 +466,9 @@ export namespace AppListResponse {
|
|
|
466
466
|
|
|
467
467
|
updatedAt: string | null;
|
|
468
468
|
|
|
469
|
+
/**
|
|
470
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
471
|
+
*/
|
|
469
472
|
userId: string | null;
|
|
470
473
|
|
|
471
474
|
versionCode: number;
|
|
@@ -778,11 +781,15 @@ export namespace AppListVersionsResponse {
|
|
|
778
781
|
|
|
779
782
|
createdAt: string | null;
|
|
780
783
|
|
|
784
|
+
createdBy: string | null;
|
|
785
|
+
|
|
786
|
+
ownerId: string | null;
|
|
787
|
+
|
|
781
788
|
queuedAt: string | null;
|
|
782
789
|
|
|
783
790
|
sizeBytes: number | null;
|
|
784
791
|
|
|
785
|
-
source: 'user' | 'system' | 'portal';
|
|
792
|
+
source: 'user' | 'system' | 'portal' | 'store';
|
|
786
793
|
|
|
787
794
|
status: 'queued' | 'available' | 'failed';
|
|
788
795
|
|
|
@@ -790,6 +797,9 @@ export namespace AppListVersionsResponse {
|
|
|
790
797
|
|
|
791
798
|
updatedAt: string | null;
|
|
792
799
|
|
|
800
|
+
/**
|
|
801
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
802
|
+
*/
|
|
793
803
|
userId: string | null;
|
|
794
804
|
|
|
795
805
|
versionCode: number;
|
|
@@ -827,8 +837,6 @@ export interface AppCreateSignedUploadURLParams {
|
|
|
827
837
|
|
|
828
838
|
files: Array<AppCreateSignedUploadURLParams.File>;
|
|
829
839
|
|
|
830
|
-
sizeBytes: number;
|
|
831
|
-
|
|
832
840
|
versionCode: number;
|
|
833
841
|
|
|
834
842
|
versionName: string;
|
|
@@ -6,9 +6,6 @@ import { APIPromise } from '../core/api-promise';
|
|
|
6
6
|
import { RequestOptions } from '../internal/request-options';
|
|
7
7
|
import { path } from '../internal/utils/path';
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* Mobile Carriers
|
|
11
|
-
*/
|
|
12
9
|
export class Carriers extends APIResource {
|
|
13
10
|
/**
|
|
14
11
|
* Create a new carrier
|
|
@@ -4,9 +4,14 @@ import { APIResource } from '../../core/resource';
|
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
5
|
import { RequestOptions } from '../../internal/request-options';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Mobilerun Connect country coverage information
|
|
9
|
+
*/
|
|
7
10
|
export class Countries extends APIResource {
|
|
8
11
|
/**
|
|
9
|
-
* Lookup of countries that can be selected when creating a proxy.
|
|
12
|
+
* Lookup of countries that can be selected when creating a proxy. Each country
|
|
13
|
+
* lists the proxy types available there; without a ?type filter, every covered
|
|
14
|
+
* country is returned.
|
|
10
15
|
*/
|
|
11
16
|
list(
|
|
12
17
|
query: CountryListParams | null | undefined = {},
|
|
@@ -40,7 +45,7 @@ export namespace CountryListResponse {
|
|
|
40
45
|
/**
|
|
41
46
|
* Proxy types available to provision in this country.
|
|
42
47
|
*/
|
|
43
|
-
proxyTypes: Array<'residential'>;
|
|
48
|
+
proxyTypes: Array<'dedicated_residential' | 'residential' | 'mobile'>;
|
|
44
49
|
}
|
|
45
50
|
|
|
46
51
|
/**
|
|
@@ -93,7 +98,7 @@ export interface CountryListParams {
|
|
|
93
98
|
/**
|
|
94
99
|
* Filter to countries offering this proxy type.
|
|
95
100
|
*/
|
|
96
|
-
type?: 'residential';
|
|
101
|
+
type?: 'dedicated_residential' | 'residential' | 'mobile';
|
|
97
102
|
}
|
|
98
103
|
|
|
99
104
|
export declare namespace Countries {
|
|
@@ -8,15 +8,16 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class Proxies extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Returns the proxy identified by the path ID. The response includes the proxy's
|
|
12
|
+
* password.
|
|
12
13
|
*/
|
|
13
14
|
retrieve(id: string, options?: RequestOptions): APIPromise<ProxyRetrieveResponse> {
|
|
14
15
|
return this._client.get(path`/connect/proxies/${id}`, options);
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
|
-
* Returns proxies owned by the
|
|
19
|
-
* Credentials are omitted from the list.
|
|
19
|
+
* Returns proxies owned by the calling tenant (the X-Owner-Id header, falling back
|
|
20
|
+
* to X-User-ID). Credentials are omitted from the list.
|
|
20
21
|
*/
|
|
21
22
|
list(
|
|
22
23
|
query: ProxyListParams | null | undefined = {},
|
|
@@ -26,14 +27,15 @@ export class Proxies extends APIResource {
|
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
|
-
* Provisions a proxy for the caller in the selected country.
|
|
30
|
+
* Provisions a proxy of the requested type for the caller in the selected country.
|
|
30
31
|
*/
|
|
31
32
|
buy(body: ProxyBuyParams, options?: RequestOptions): APIPromise<ProxyBuyResponse> {
|
|
32
33
|
return this._client.post('/connect/proxies', { body, ...options });
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
/**
|
|
36
|
-
*
|
|
37
|
+
* Deletes the proxy identified by the path ID and releases its provisioning.
|
|
38
|
+
* Returns 404 if no such proxy exists for the caller.
|
|
37
39
|
*/
|
|
38
40
|
cancel(id: string, options?: RequestOptions): APIPromise<void> {
|
|
39
41
|
return this._client.delete(path`/connect/proxies/${id}`, {
|
|
@@ -95,7 +97,7 @@ export interface ProxyRetrieveResponse {
|
|
|
95
97
|
*/
|
|
96
98
|
status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
97
99
|
|
|
98
|
-
type: 'residential';
|
|
100
|
+
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
99
101
|
|
|
100
102
|
username: string;
|
|
101
103
|
|
|
@@ -145,7 +147,7 @@ export namespace ProxyListResponse {
|
|
|
145
147
|
*/
|
|
146
148
|
status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
147
149
|
|
|
148
|
-
type: 'residential';
|
|
150
|
+
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
149
151
|
|
|
150
152
|
username: string;
|
|
151
153
|
}
|
|
@@ -214,7 +216,7 @@ export interface ProxyBuyResponse {
|
|
|
214
216
|
*/
|
|
215
217
|
status: 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
216
218
|
|
|
217
|
-
type: 'residential';
|
|
219
|
+
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
218
220
|
|
|
219
221
|
username: string;
|
|
220
222
|
|
|
@@ -450,7 +452,7 @@ export interface ProxyBuyParams {
|
|
|
450
452
|
*/
|
|
451
453
|
country: string;
|
|
452
454
|
|
|
453
|
-
type
|
|
455
|
+
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
454
456
|
}
|
|
455
457
|
|
|
456
458
|
export interface ProxyListConnectionsParams {
|
|
@@ -6,6 +6,9 @@ import { buildHeaders } from '../../internal/headers';
|
|
|
6
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
7
|
import { path } from '../../internal/utils/path';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Manage your Mobilerun Connect Socks Users
|
|
11
|
+
*/
|
|
9
12
|
export class Users extends APIResource {
|
|
10
13
|
/**
|
|
11
14
|
* Creates a SOCKS5 credential, optionally bound to a proxy for dedicated routing.
|
|
@@ -16,7 +19,8 @@ export class Users extends APIResource {
|
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
/**
|
|
19
|
-
*
|
|
22
|
+
* Returns the SOCKS5 user identified by the path ID. The response includes the
|
|
23
|
+
* user's password.
|
|
20
24
|
*/
|
|
21
25
|
retrieve(id: string, options?: RequestOptions): APIPromise<UserRetrieveResponse> {
|
|
22
26
|
return this._client.get(path`/connect/users/${id}`, options);
|
|
@@ -40,7 +44,8 @@ export class Users extends APIResource {
|
|
|
40
44
|
}
|
|
41
45
|
|
|
42
46
|
/**
|
|
43
|
-
*
|
|
47
|
+
* Deletes the SOCKS5 user identified by the path ID, revoking its credentials and
|
|
48
|
+
* any proxy binding. Returns 404 if no such user exists for the caller.
|
|
44
49
|
*/
|
|
45
50
|
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
46
51
|
return this._client.delete(path`/connect/users/${id}`, {
|
|
@@ -13,14 +13,13 @@ import * as PackagesCredentialsAPI from './packages/credentials/credentials';
|
|
|
13
13
|
import { APIPromise } from '../../core/api-promise';
|
|
14
14
|
import { RequestOptions } from '../../internal/request-options';
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* Vault & Secrets
|
|
18
|
-
*/
|
|
19
16
|
export class Credentials extends APIResource {
|
|
20
17
|
packages: PackagesAPI.Packages = new PackagesAPI.Packages(this._client);
|
|
21
18
|
|
|
22
19
|
/**
|
|
23
|
-
*
|
|
20
|
+
* Returns a paginated list of all credentials belonging to the authenticated user
|
|
21
|
+
* across every package. Accepts standard pagination query parameters and responds
|
|
22
|
+
* with the credential items plus pagination metadata.
|
|
24
23
|
*/
|
|
25
24
|
list(
|
|
26
25
|
query: CredentialListParams | null | undefined = {},
|
|
@@ -15,14 +15,13 @@ import { APIPromise } from '../../../../core/api-promise';
|
|
|
15
15
|
import { RequestOptions } from '../../../../internal/request-options';
|
|
16
16
|
import { path } from '../../../../internal/utils/path';
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* Vault & Secrets
|
|
20
|
-
*/
|
|
21
18
|
export class Credentials extends APIResource {
|
|
22
19
|
fields: FieldsAPI.Fields = new FieldsAPI.Fields(this._client);
|
|
23
20
|
|
|
24
21
|
/**
|
|
25
|
-
*
|
|
22
|
+
* Creates a credential under the given package with a `credentialName` and at
|
|
23
|
+
* least one field. Each field has a `fieldType` (email, username, password,
|
|
24
|
+
* api_token, phone_number, two_factor_secret, or backup_codes) and a value.
|
|
26
25
|
*/
|
|
27
26
|
create(
|
|
28
27
|
packageName: string,
|
|
@@ -33,7 +32,8 @@ export class Credentials extends APIResource {
|
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
/**
|
|
36
|
-
*
|
|
35
|
+
* Fetches a single credential by `packageName` and `credentialName`, including all
|
|
36
|
+
* of its stored fields. Returns not found if no matching credential exists.
|
|
37
37
|
*/
|
|
38
38
|
retrieve(
|
|
39
39
|
credentialName: string,
|
|
@@ -48,7 +48,8 @@ export class Credentials extends APIResource {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Permanently deletes the credential identified by `packageName` and
|
|
52
|
+
* `credentialName`, removing all of its fields. Returns the deleted credential.
|
|
52
53
|
*/
|
|
53
54
|
delete(
|
|
54
55
|
credentialName: string,
|
|
@@ -64,15 +65,23 @@ export class Credentials extends APIResource {
|
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
export interface Credential {
|
|
68
|
+
createdBy: string | null;
|
|
69
|
+
|
|
67
70
|
credentialName: string;
|
|
68
71
|
|
|
69
72
|
fields: Array<Credential.Field>;
|
|
70
73
|
|
|
74
|
+
ownerId: string;
|
|
75
|
+
|
|
71
76
|
packageName: string;
|
|
72
77
|
|
|
73
78
|
secretPath: string;
|
|
74
79
|
|
|
75
|
-
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated Deprecated: use createdBy (same value — the creating actor). Null
|
|
82
|
+
* for credentials created before rollout.
|
|
83
|
+
*/
|
|
84
|
+
userId: string | null;
|
|
76
85
|
}
|
|
77
86
|
|
|
78
87
|
export namespace Credential {
|
|
@@ -6,12 +6,11 @@ import { APIPromise } from '../../../../core/api-promise';
|
|
|
6
6
|
import { RequestOptions } from '../../../../internal/request-options';
|
|
7
7
|
import { path } from '../../../../internal/utils/path';
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* Vault & Secrets
|
|
11
|
-
*/
|
|
12
9
|
export class Fields extends APIResource {
|
|
13
10
|
/**
|
|
14
|
-
*
|
|
11
|
+
* Adds a single field to an existing credential. The body specifies a `fieldType`
|
|
12
|
+
* (one of the supported field types) and its value. Returns a conflict if a field
|
|
13
|
+
* of that type already exists on the credential.
|
|
15
14
|
*/
|
|
16
15
|
create(
|
|
17
16
|
credentialName: string,
|
|
@@ -26,7 +25,9 @@ export class Fields extends APIResource {
|
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
/**
|
|
29
|
-
*
|
|
28
|
+
* Updates the value of an existing field on a credential, identified by
|
|
29
|
+
* `packageName`, `credentialName`, and `fieldType` in the path. The body carries
|
|
30
|
+
* the new value and returns the updated credential.
|
|
30
31
|
*/
|
|
31
32
|
update(
|
|
32
33
|
fieldType:
|
|
@@ -48,7 +49,8 @@ export class Fields extends APIResource {
|
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
/**
|
|
51
|
-
*
|
|
52
|
+
* Removes a single field of the given `fieldType` from the specified credential
|
|
53
|
+
* while leaving the credential itself intact. Returns the updated credential.
|
|
52
54
|
*/
|
|
53
55
|
delete(
|
|
54
56
|
fieldType:
|
|
@@ -16,21 +16,21 @@ import { APIPromise } from '../../../core/api-promise';
|
|
|
16
16
|
import { RequestOptions } from '../../../internal/request-options';
|
|
17
17
|
import { path } from '../../../internal/utils/path';
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* Vault & Secrets
|
|
21
|
-
*/
|
|
22
19
|
export class Packages extends APIResource {
|
|
23
20
|
credentials: CredentialsAPI.Credentials = new CredentialsAPI.Credentials(this._client);
|
|
24
21
|
|
|
25
22
|
/**
|
|
26
|
-
*
|
|
23
|
+
* Creates a new package (identified by `packageName`) under which credentials can
|
|
24
|
+
* be grouped. Returns a conflict if a package with the same name already exists
|
|
25
|
+
* for the user.
|
|
27
26
|
*/
|
|
28
27
|
create(body: PackageCreateParams, options?: RequestOptions): APIPromise<PackageCreateResponse> {
|
|
29
28
|
return this._client.post('/credentials/packages', { body, ...options });
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
/**
|
|
33
|
-
*
|
|
32
|
+
* Returns all credentials stored under the given `packageName`. Each credential
|
|
33
|
+
* includes its name, secret path, and the list of fields it holds.
|
|
34
34
|
*/
|
|
35
35
|
list(packageName: string, options?: RequestOptions): APIPromise<PackageListResponse> {
|
|
36
36
|
return this._client.get(path`/credentials/packages/${packageName}`, options);
|
|
@@ -8,7 +8,8 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class Actions extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Performs a global system action on the device, such as navigating back or going
|
|
12
|
+
* to the home screen, identified by an action code.
|
|
12
13
|
*/
|
|
13
14
|
global(deviceID: string, params: ActionGlobalParams, options?: RequestOptions): APIPromise<void> {
|
|
14
15
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -28,7 +29,7 @@ export class Actions extends APIResource {
|
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
/**
|
|
31
|
-
*
|
|
32
|
+
* Returns whether the accessibility overlay is currently visible on the device.
|
|
32
33
|
*/
|
|
33
34
|
overlayVisible(
|
|
34
35
|
deviceID: string,
|
|
@@ -50,7 +51,8 @@ export class Actions extends APIResource {
|
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
/**
|
|
53
|
-
*
|
|
54
|
+
* Shows or hides the accessibility overlay on the device based on the visibility
|
|
55
|
+
* flag in the request body.
|
|
54
56
|
*/
|
|
55
57
|
setOverlayVisible(
|
|
56
58
|
deviceID: string,
|
|
@@ -74,7 +76,9 @@ export class Actions extends APIResource {
|
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
/**
|
|
77
|
-
*
|
|
79
|
+
* Swipes from a start coordinate to an end coordinate over the given duration in
|
|
80
|
+
* milliseconds. An optional stealth flag applies human-like jitter and curved
|
|
81
|
+
* paths on devices that support it.
|
|
78
82
|
*/
|
|
79
83
|
swipe(deviceID: string, params: ActionSwipeParams, options?: RequestOptions): APIPromise<void> {
|
|
80
84
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -94,7 +98,8 @@ export class Actions extends APIResource {
|
|
|
94
98
|
}
|
|
95
99
|
|
|
96
100
|
/**
|
|
97
|
-
*
|
|
101
|
+
* Taps the device screen at the given x/y coordinates. An optional stealth flag
|
|
102
|
+
* routes the tap through human-like input on devices that support it.
|
|
98
103
|
*/
|
|
99
104
|
tap(deviceID: string, params: ActionTapParams, options?: RequestOptions): APIPromise<void> {
|
|
100
105
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -8,7 +8,9 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class Apps extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Returns detailed information about apps installed on the device, including
|
|
12
|
+
* package name and label. System and protected apps are excluded unless the
|
|
13
|
+
* corresponding query parameters are set.
|
|
12
14
|
*/
|
|
13
15
|
list(
|
|
14
16
|
deviceID: string,
|
|
@@ -31,7 +33,8 @@ export class Apps extends APIResource {
|
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
/**
|
|
34
|
-
*
|
|
36
|
+
* Uninstalls the app identified by the path package name from the device.
|
|
37
|
+
* Protected packages cannot be deleted.
|
|
35
38
|
*/
|
|
36
39
|
delete(packageName: string, params: AppDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
37
40
|
const { deviceId, 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -51,7 +54,16 @@ export class Apps extends APIResource {
|
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
/**
|
|
54
|
-
*
|
|
57
|
+
* Requests an app install on the device. The request body must supply exactly one
|
|
58
|
+
* of an Android packageName or an iOS bundleId; protected packages are rejected.
|
|
59
|
+
* background (default false) selects the response contract: false installs inline
|
|
60
|
+
* and returns the outcome directly (200 on success, an error status on failure);
|
|
61
|
+
* true accepts the request and runs the download + install in the background,
|
|
62
|
+
* returning 202 immediately — poll list-app-installs for the backend's view of
|
|
63
|
+
* that attempt's status. Refuses with 409 once 2 other installs are already
|
|
64
|
+
* running on the device, in either mode; a repeat request for an app that already
|
|
65
|
+
* has an install running is also refused with 409 rather than superseding it —
|
|
66
|
+
* retry once that attempt reaches a terminal state.
|
|
55
67
|
*/
|
|
56
68
|
install(deviceID: string, params: AppInstallParams, options?: RequestOptions): APIPromise<void> {
|
|
57
69
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -71,7 +83,9 @@ export class Apps extends APIResource {
|
|
|
71
83
|
}
|
|
72
84
|
|
|
73
85
|
/**
|
|
74
|
-
*
|
|
86
|
+
* Launches the app identified by the path package name, optionally starting a
|
|
87
|
+
* specific activity given in the request body. Protected packages cannot be
|
|
88
|
+
* started.
|
|
75
89
|
*/
|
|
76
90
|
start(packageName: string, params: AppStartParams, options?: RequestOptions): APIPromise<void> {
|
|
77
91
|
const { deviceId, 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -91,7 +105,9 @@ export class Apps extends APIResource {
|
|
|
91
105
|
}
|
|
92
106
|
|
|
93
107
|
/**
|
|
94
|
-
*
|
|
108
|
+
* Force-stops the app identified by the path package name. When clearData is set
|
|
109
|
+
* in the request body, the app's data is also cleared. Protected packages cannot
|
|
110
|
+
* be stopped.
|
|
95
111
|
*/
|
|
96
112
|
stop(packageName: string, params: AppStopParams, options?: RequestOptions): APIPromise<void> {
|
|
97
113
|
const { deviceId, 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -165,6 +181,13 @@ export declare namespace AppInstallParams {
|
|
|
165
181
|
*/
|
|
166
182
|
bundleId: string;
|
|
167
183
|
|
|
184
|
+
/**
|
|
185
|
+
* Body param: true: return 202 immediately and install in the background (poll
|
|
186
|
+
* list-app-installs). false/omitted: install inline and return the outcome
|
|
187
|
+
* directly (200 on success, an error status on failure).
|
|
188
|
+
*/
|
|
189
|
+
background?: boolean;
|
|
190
|
+
|
|
168
191
|
/**
|
|
169
192
|
* Body param: Android package name (e.g. com.example.app)
|
|
170
193
|
*/
|
|
@@ -182,6 +205,13 @@ export declare namespace AppInstallParams {
|
|
|
182
205
|
*/
|
|
183
206
|
packageName: string;
|
|
184
207
|
|
|
208
|
+
/**
|
|
209
|
+
* Body param: true: return 202 immediately and install in the background (poll
|
|
210
|
+
* list-app-installs). false/omitted: install inline and return the outcome
|
|
211
|
+
* directly (200 on success, an error status on failure).
|
|
212
|
+
*/
|
|
213
|
+
background?: boolean;
|
|
214
|
+
|
|
185
215
|
/**
|
|
186
216
|
* Body param: iOS bundle identifier (e.g. com.example.app)
|
|
187
217
|
*/
|
|
@@ -217,6 +247,12 @@ export interface AppStopParams {
|
|
|
217
247
|
*/
|
|
218
248
|
deviceId: string;
|
|
219
249
|
|
|
250
|
+
/**
|
|
251
|
+
* Body param: If true, clears all app data (pm clear) in addition to stopping the
|
|
252
|
+
* app.
|
|
253
|
+
*/
|
|
254
|
+
clearData?: boolean;
|
|
255
|
+
|
|
220
256
|
/**
|
|
221
257
|
* Header param
|
|
222
258
|
*/
|