@mobilerun/sdk 5.6.0 → 6.0.1
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 +33 -0
- package/README.md +0 -9
- package/client.d.mts +8 -26
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -26
- package/client.d.ts.map +1 -1
- package/client.js +0 -18
- package/client.js.map +1 -1
- package/client.mjs +0 -18
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +30 -20
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +30 -20
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +20 -10
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +20 -10
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +19 -0
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +19 -0
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/connect/proxies.d.mts +8 -6
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +8 -6
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +6 -4
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +6 -4
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/connect/users.d.mts +4 -4
- package/resources/connect/users.d.ts +4 -4
- package/resources/connect/users.js +2 -2
- package/resources/connect/users.mjs +2 -2
- package/resources/devices/actions.d.mts +25 -5
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +25 -5
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +5 -3
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +5 -3
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +25 -10
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +25 -10
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +12 -10
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +12 -10
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +60 -22
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +60 -22
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +25 -16
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +25 -16
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +3 -3
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +3 -3
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +3 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +1 -1
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +8 -2
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +8 -2
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/recordings.d.mts +28 -7
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +28 -7
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/recordings.js +9 -0
- package/resources/devices/recordings.js.map +1 -1
- package/resources/devices/recordings.mjs +9 -0
- package/resources/devices/recordings.mjs.map +1 -1
- package/resources/devices/screenshots.d.mts +72 -0
- package/resources/devices/screenshots.d.mts.map +1 -0
- package/resources/devices/screenshots.d.ts +72 -0
- package/resources/devices/screenshots.d.ts.map +1 -0
- package/resources/devices/screenshots.js +57 -0
- package/resources/devices/screenshots.js.map +1 -0
- package/resources/devices/screenshots.mjs +53 -0
- package/resources/devices/screenshots.mjs.map +1 -0
- package/resources/devices/state.d.mts +11 -2
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +11 -2
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +5 -2
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +5 -2
- package/resources/devices/state.mjs.map +1 -1
- package/resources/files.d.mts +3 -3
- package/resources/files.d.ts +3 -3
- package/resources/files.js +3 -3
- package/resources/files.mjs +3 -3
- package/resources/index.d.mts +4 -9
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -9
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -11
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -5
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +4 -10
- package/resources/mailboxes/connections.d.mts.map +1 -1
- package/resources/mailboxes/connections.d.ts +4 -10
- package/resources/mailboxes/connections.d.ts.map +1 -1
- package/resources/mailboxes/connections.js +3 -4
- package/resources/mailboxes/connections.js.map +1 -1
- package/resources/mailboxes/connections.mjs +3 -4
- package/resources/mailboxes/connections.mjs.map +1 -1
- package/resources/mailboxes/mailboxes.d.mts +5 -4
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +5 -4
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +5 -4
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +5 -4
- package/resources/mailboxes/mailboxes.mjs.map +1 -1
- package/resources/messages/messages.d.mts +12 -0
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +12 -0
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/models.d.mts +12 -23
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +12 -23
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -4
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -4
- package/resources/models.mjs.map +1 -1
- package/resources/numbers/index.d.mts +1 -1
- package/resources/numbers/index.d.mts.map +1 -1
- package/resources/numbers/index.d.ts +1 -1
- package/resources/numbers/index.d.ts.map +1 -1
- package/resources/numbers/index.js.map +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +23 -14
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +23 -14
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +9 -7
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +9 -7
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +136 -32
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +136 -32
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +1 -12
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +1 -12
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/proxies.d.mts +1 -87
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +1 -87
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +0 -6
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +0 -6
- package/resources/proxies.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +42 -138
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +42 -138
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +1 -1
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -1
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +7 -43
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +7 -43
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +6 -9
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +6 -9
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/events.d.mts +6 -2
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +6 -2
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +37 -31
- package/resources/workflows/executions/executions.d.mts.map +1 -1
- package/resources/workflows/executions/executions.d.ts +37 -31
- package/resources/workflows/executions/executions.d.ts.map +1 -1
- package/resources/workflows/executions/executions.js +2 -2
- package/resources/workflows/executions/executions.js.map +1 -1
- package/resources/workflows/executions/executions.mjs +2 -2
- package/resources/workflows/executions/executions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +90 -34
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +90 -34
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +15 -14
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +15 -14
- 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 +1 -1
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +1 -1
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +10 -13
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +10 -13
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +6 -8
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +6 -8
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +2 -2
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +2 -2
- 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 +2 -106
- package/src/resources/apps.ts +30 -20
- package/src/resources/assistant/conversations.ts +26 -0
- package/src/resources/connect/proxies.ts +8 -6
- package/src/resources/connect/users.ts +4 -4
- package/src/resources/devices/actions.ts +28 -5
- package/src/resources/devices/apps.ts +30 -10
- package/src/resources/devices/devices.ts +92 -37
- package/src/resources/devices/index.ts +12 -9
- package/src/resources/devices/keyboard.ts +9 -2
- package/src/resources/devices/recordings.ts +44 -6
- package/src/resources/devices/screenshots.ts +140 -0
- package/src/resources/devices/state.ts +12 -2
- package/src/resources/files.ts +3 -3
- package/src/resources/index.ts +1 -44
- package/src/resources/mailboxes/connections.ts +4 -11
- package/src/resources/mailboxes/mailboxes.ts +5 -4
- package/src/resources/messages/messages.ts +16 -0
- package/src/resources/models.ts +16 -23
- package/src/resources/numbers/index.ts +0 -1
- package/src/resources/numbers/messages.ts +27 -15
- package/src/resources/numbers/numbers.ts +155 -40
- package/src/resources/proxies.ts +0 -110
- package/src/resources/tasks/tasks.ts +46 -138
- package/src/resources/webhooks/index.ts +0 -1
- package/src/resources/webhooks/webhooks.ts +6 -60
- package/src/resources/workflows/events.ts +7 -2
- package/src/resources/workflows/executions/executions.ts +39 -31
- package/src/resources/workflows/flows/flows.ts +104 -34
- package/src/resources/workflows/flows/index.ts +1 -0
- package/src/resources/workflows/index.ts +1 -0
- package/src/resources/workflows/triggers.ts +10 -13
- package/src/resources/workflows/workflows.ts +2 -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/resources/app-events/app-events.d.mts +0 -81
- package/resources/app-events/app-events.d.mts.map +0 -1
- package/resources/app-events/app-events.d.ts +0 -81
- package/resources/app-events/app-events.d.ts.map +0 -1
- package/resources/app-events/app-events.js +0 -33
- package/resources/app-events/app-events.js.map +0 -1
- package/resources/app-events/app-events.mjs +0 -28
- package/resources/app-events/app-events.mjs.map +0 -1
- package/resources/app-events/catalog.d.mts +0 -64
- package/resources/app-events/catalog.d.mts.map +0 -1
- package/resources/app-events/catalog.d.ts +0 -64
- package/resources/app-events/catalog.d.ts.map +0 -1
- package/resources/app-events/catalog.js +0 -25
- package/resources/app-events/catalog.js.map +0 -1
- package/resources/app-events/catalog.mjs +0 -21
- package/resources/app-events/catalog.mjs.map +0 -1
- package/resources/app-events/index.d.mts +0 -3
- package/resources/app-events/index.d.mts.map +0 -1
- package/resources/app-events/index.d.ts +0 -3
- package/resources/app-events/index.d.ts.map +0 -1
- package/resources/app-events/index.js +0 -9
- package/resources/app-events/index.js.map +0 -1
- package/resources/app-events/index.mjs +0 -4
- package/resources/app-events/index.mjs.map +0 -1
- package/resources/app-events.d.mts +0 -2
- package/resources/app-events.d.mts.map +0 -1
- package/resources/app-events.d.ts +0 -2
- package/resources/app-events.d.ts.map +0 -1
- package/resources/app-events.js +0 -6
- package/resources/app-events.js.map +0 -1
- package/resources/app-events.mjs +0 -3
- package/resources/app-events.mjs.map +0 -1
- package/resources/carriers.d.mts +0 -331
- package/resources/carriers.d.mts.map +0 -1
- package/resources/carriers.d.ts +0 -331
- package/resources/carriers.d.ts.map +0 -1
- package/resources/carriers.js +0 -46
- package/resources/carriers.js.map +0 -1
- package/resources/carriers.mjs +0 -42
- package/resources/carriers.mjs.map +0 -1
- package/resources/devices/media-sessions.d.mts +0 -96
- package/resources/devices/media-sessions.d.mts.map +0 -1
- package/resources/devices/media-sessions.d.ts +0 -96
- package/resources/devices/media-sessions.d.ts.map +0 -1
- package/resources/devices/media-sessions.js +0 -50
- package/resources/devices/media-sessions.js.map +0 -1
- package/resources/devices/media-sessions.mjs +0 -46
- package/resources/devices/media-sessions.mjs.map +0 -1
- package/resources/notifications.d.mts +0 -112
- package/resources/notifications.d.mts.map +0 -1
- package/resources/notifications.d.ts +0 -112
- package/resources/notifications.d.ts.map +0 -1
- package/resources/notifications.js +0 -72
- package/resources/notifications.js.map +0 -1
- package/resources/notifications.mjs +0 -68
- package/resources/notifications.mjs.map +0 -1
- package/resources/profiles.d.mts +0 -147
- package/resources/profiles.d.mts.map +0 -1
- package/resources/profiles.d.ts +0 -147
- package/resources/profiles.d.ts.map +0 -1
- package/resources/profiles.js +0 -40
- package/resources/profiles.js.map +0 -1
- package/resources/profiles.mjs +0 -36
- package/resources/profiles.mjs.map +0 -1
- package/resources/store/apps.d.mts +0 -140
- package/resources/store/apps.d.mts.map +0 -1
- package/resources/store/apps.d.ts +0 -140
- package/resources/store/apps.d.ts.map +0 -1
- package/resources/store/apps.js +0 -31
- package/resources/store/apps.js.map +0 -1
- package/resources/store/apps.mjs +0 -27
- package/resources/store/apps.mjs.map +0 -1
- package/resources/store/index.d.mts +0 -3
- package/resources/store/index.d.mts.map +0 -1
- package/resources/store/index.d.ts +0 -3
- package/resources/store/index.d.ts.map +0 -1
- package/resources/store/index.js +0 -9
- package/resources/store/index.js.map +0 -1
- package/resources/store/index.mjs +0 -4
- package/resources/store/index.mjs.map +0 -1
- package/resources/store/store.d.mts +0 -20
- package/resources/store/store.d.mts.map +0 -1
- package/resources/store/store.d.ts +0 -20
- package/resources/store/store.d.ts.map +0 -1
- package/resources/store/store.js +0 -23
- package/resources/store/store.js.map +0 -1
- package/resources/store/store.mjs +0 -18
- package/resources/store/store.mjs.map +0 -1
- package/resources/store.d.mts +0 -2
- package/resources/store.d.mts.map +0 -1
- package/resources/store.d.ts +0 -2
- package/resources/store.d.ts.map +0 -1
- package/resources/store.js +0 -6
- package/resources/store.js.map +0 -1
- package/resources/store.mjs +0 -3
- package/resources/store.mjs.map +0 -1
- package/src/resources/app-events/app-events.ts +0 -133
- package/src/resources/app-events/catalog.ts +0 -100
- package/src/resources/app-events/index.ts +0 -9
- package/src/resources/app-events.ts +0 -3
- package/src/resources/carriers.ts +0 -508
- package/src/resources/devices/media-sessions.ts +0 -168
- package/src/resources/notifications.ts +0 -155
- package/src/resources/profiles.ts +0 -232
- package/src/resources/store/apps.ts +0 -993
- package/src/resources/store/index.ts +0 -10
- package/src/resources/store/store.ts +0 -36
- package/src/resources/store.ts +0 -3
|
@@ -1,508 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../core/resource';
|
|
4
|
-
import * as Shared from './shared';
|
|
5
|
-
import { APIPromise } from '../core/api-promise';
|
|
6
|
-
import { RequestOptions } from '../internal/request-options';
|
|
7
|
-
import { path } from '../internal/utils/path';
|
|
8
|
-
|
|
9
|
-
export class Carriers extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Create a new carrier
|
|
12
|
-
*/
|
|
13
|
-
create(body: CarrierCreateParams, options?: RequestOptions): APIPromise<CarrierCreateResponse> {
|
|
14
|
-
return this._client.post('/carriers', { body, ...options });
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Get carrier by ID
|
|
19
|
-
*/
|
|
20
|
-
retrieve(carrierID: number, options?: RequestOptions): APIPromise<CarrierRetrieveResponse> {
|
|
21
|
-
return this._client.get(path`/carriers/${carrierID}`, options);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Update a carrier
|
|
26
|
-
*/
|
|
27
|
-
update(
|
|
28
|
-
carrierID: number,
|
|
29
|
-
body: CarrierUpdateParams,
|
|
30
|
-
options?: RequestOptions,
|
|
31
|
-
): APIPromise<CarrierUpdateResponse> {
|
|
32
|
-
return this._client.patch(path`/carriers/${carrierID}`, { body, ...options });
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* List carriers with pagination
|
|
37
|
-
*/
|
|
38
|
-
list(
|
|
39
|
-
query: CarrierListParams | null | undefined = {},
|
|
40
|
-
options?: RequestOptions,
|
|
41
|
-
): APIPromise<CarrierListResponse> {
|
|
42
|
-
return this._client.get('/carriers', { query, ...options });
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Delete a carrier
|
|
47
|
-
*/
|
|
48
|
-
delete(carrierID: number, options?: RequestOptions): APIPromise<CarrierDeleteResponse> {
|
|
49
|
-
return this._client.delete(path`/carriers/${carrierID}`, options);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Get carrier by MCC and MNC
|
|
54
|
-
*/
|
|
55
|
-
lookup(query: CarrierLookupParams, options?: RequestOptions): APIPromise<CarrierLookupResponse> {
|
|
56
|
-
return this._client.get('/carriers/lookup', { query, ...options });
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface CarrierCreateResponse {
|
|
61
|
-
id: number;
|
|
62
|
-
|
|
63
|
-
company: string;
|
|
64
|
-
|
|
65
|
-
country: string;
|
|
66
|
-
|
|
67
|
-
country_code: string;
|
|
68
|
-
|
|
69
|
-
country_iso: string;
|
|
70
|
-
|
|
71
|
-
created_at: string;
|
|
72
|
-
|
|
73
|
-
detail_url: string;
|
|
74
|
-
|
|
75
|
-
gsm_bands: string;
|
|
76
|
-
|
|
77
|
-
lte_bands: string;
|
|
78
|
-
|
|
79
|
-
mcc: string;
|
|
80
|
-
|
|
81
|
-
mnc: string;
|
|
82
|
-
|
|
83
|
-
mobile_prefix: string;
|
|
84
|
-
|
|
85
|
-
nsn_size: string;
|
|
86
|
-
|
|
87
|
-
number_format: string;
|
|
88
|
-
|
|
89
|
-
operator: string;
|
|
90
|
-
|
|
91
|
-
protocols: string;
|
|
92
|
-
|
|
93
|
-
umts_bands: string;
|
|
94
|
-
|
|
95
|
-
website: string;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* A URL to the JSON Schema for this object.
|
|
99
|
-
*/
|
|
100
|
-
$schema?: string;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export interface CarrierRetrieveResponse {
|
|
104
|
-
id: number;
|
|
105
|
-
|
|
106
|
-
company: string;
|
|
107
|
-
|
|
108
|
-
country: string;
|
|
109
|
-
|
|
110
|
-
country_code: string;
|
|
111
|
-
|
|
112
|
-
country_iso: string;
|
|
113
|
-
|
|
114
|
-
created_at: string;
|
|
115
|
-
|
|
116
|
-
detail_url: string;
|
|
117
|
-
|
|
118
|
-
gsm_bands: string;
|
|
119
|
-
|
|
120
|
-
lte_bands: string;
|
|
121
|
-
|
|
122
|
-
mcc: string;
|
|
123
|
-
|
|
124
|
-
mnc: string;
|
|
125
|
-
|
|
126
|
-
mobile_prefix: string;
|
|
127
|
-
|
|
128
|
-
nsn_size: string;
|
|
129
|
-
|
|
130
|
-
number_format: string;
|
|
131
|
-
|
|
132
|
-
operator: string;
|
|
133
|
-
|
|
134
|
-
protocols: string;
|
|
135
|
-
|
|
136
|
-
umts_bands: string;
|
|
137
|
-
|
|
138
|
-
website: string;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* A URL to the JSON Schema for this object.
|
|
142
|
-
*/
|
|
143
|
-
$schema?: string;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export interface CarrierUpdateResponse {
|
|
147
|
-
id: number;
|
|
148
|
-
|
|
149
|
-
company: string;
|
|
150
|
-
|
|
151
|
-
country: string;
|
|
152
|
-
|
|
153
|
-
country_code: string;
|
|
154
|
-
|
|
155
|
-
country_iso: string;
|
|
156
|
-
|
|
157
|
-
created_at: string;
|
|
158
|
-
|
|
159
|
-
detail_url: string;
|
|
160
|
-
|
|
161
|
-
gsm_bands: string;
|
|
162
|
-
|
|
163
|
-
lte_bands: string;
|
|
164
|
-
|
|
165
|
-
mcc: string;
|
|
166
|
-
|
|
167
|
-
mnc: string;
|
|
168
|
-
|
|
169
|
-
mobile_prefix: string;
|
|
170
|
-
|
|
171
|
-
nsn_size: string;
|
|
172
|
-
|
|
173
|
-
number_format: string;
|
|
174
|
-
|
|
175
|
-
operator: string;
|
|
176
|
-
|
|
177
|
-
protocols: string;
|
|
178
|
-
|
|
179
|
-
umts_bands: string;
|
|
180
|
-
|
|
181
|
-
website: string;
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* A URL to the JSON Schema for this object.
|
|
185
|
-
*/
|
|
186
|
-
$schema?: string;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
export interface CarrierListResponse {
|
|
190
|
-
items: Array<CarrierListResponse.Item> | null;
|
|
191
|
-
|
|
192
|
-
pagination: Shared.Meta;
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* A URL to the JSON Schema for this object.
|
|
196
|
-
*/
|
|
197
|
-
$schema?: string;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
export namespace CarrierListResponse {
|
|
201
|
-
export interface Item {
|
|
202
|
-
id: number;
|
|
203
|
-
|
|
204
|
-
company: string;
|
|
205
|
-
|
|
206
|
-
country: string;
|
|
207
|
-
|
|
208
|
-
country_code: string;
|
|
209
|
-
|
|
210
|
-
country_iso: string;
|
|
211
|
-
|
|
212
|
-
created_at: string;
|
|
213
|
-
|
|
214
|
-
detail_url: string;
|
|
215
|
-
|
|
216
|
-
gsm_bands: string;
|
|
217
|
-
|
|
218
|
-
lte_bands: string;
|
|
219
|
-
|
|
220
|
-
mcc: string;
|
|
221
|
-
|
|
222
|
-
mnc: string;
|
|
223
|
-
|
|
224
|
-
mobile_prefix: string;
|
|
225
|
-
|
|
226
|
-
nsn_size: string;
|
|
227
|
-
|
|
228
|
-
number_format: string;
|
|
229
|
-
|
|
230
|
-
operator: string;
|
|
231
|
-
|
|
232
|
-
protocols: string;
|
|
233
|
-
|
|
234
|
-
umts_bands: string;
|
|
235
|
-
|
|
236
|
-
website: string;
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* A URL to the JSON Schema for this object.
|
|
240
|
-
*/
|
|
241
|
-
$schema?: string;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
export interface CarrierDeleteResponse {
|
|
246
|
-
message: string;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* A URL to the JSON Schema for this object.
|
|
250
|
-
*/
|
|
251
|
-
$schema?: string;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
export interface CarrierLookupResponse {
|
|
255
|
-
id: number;
|
|
256
|
-
|
|
257
|
-
company: string;
|
|
258
|
-
|
|
259
|
-
country: string;
|
|
260
|
-
|
|
261
|
-
country_code: string;
|
|
262
|
-
|
|
263
|
-
country_iso: string;
|
|
264
|
-
|
|
265
|
-
created_at: string;
|
|
266
|
-
|
|
267
|
-
detail_url: string;
|
|
268
|
-
|
|
269
|
-
gsm_bands: string;
|
|
270
|
-
|
|
271
|
-
lte_bands: string;
|
|
272
|
-
|
|
273
|
-
mcc: string;
|
|
274
|
-
|
|
275
|
-
mnc: string;
|
|
276
|
-
|
|
277
|
-
mobile_prefix: string;
|
|
278
|
-
|
|
279
|
-
nsn_size: string;
|
|
280
|
-
|
|
281
|
-
number_format: string;
|
|
282
|
-
|
|
283
|
-
operator: string;
|
|
284
|
-
|
|
285
|
-
protocols: string;
|
|
286
|
-
|
|
287
|
-
umts_bands: string;
|
|
288
|
-
|
|
289
|
-
website: string;
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* A URL to the JSON Schema for this object.
|
|
293
|
-
*/
|
|
294
|
-
$schema?: string;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
export interface CarrierCreateParams {
|
|
298
|
-
/**
|
|
299
|
-
* Country name
|
|
300
|
-
*/
|
|
301
|
-
country: string;
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* Mobile Country Code
|
|
305
|
-
*/
|
|
306
|
-
mcc: string;
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* Mobile Network Code
|
|
310
|
-
*/
|
|
311
|
-
mnc: string;
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* Operator name
|
|
315
|
-
*/
|
|
316
|
-
operator: string;
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* Company name
|
|
320
|
-
*/
|
|
321
|
-
company?: string;
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* Country dialing code (e.g., +1)
|
|
325
|
-
*/
|
|
326
|
-
country_code?: string;
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* ISO country code
|
|
330
|
-
*/
|
|
331
|
-
country_iso?: string;
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* URL to carrier details page
|
|
335
|
-
*/
|
|
336
|
-
detail_url?: string;
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* Supported GSM bands
|
|
340
|
-
*/
|
|
341
|
-
gsm_bands?: string;
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Supported LTE bands
|
|
345
|
-
*/
|
|
346
|
-
lte_bands?: string;
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* Mobile number prefix
|
|
350
|
-
*/
|
|
351
|
-
mobile_prefix?: string;
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* National Significant Number size
|
|
355
|
-
*/
|
|
356
|
-
nsn_size?: string;
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* Phone number format
|
|
360
|
-
*/
|
|
361
|
-
number_format?: string;
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* Supported protocols (comma-separated)
|
|
365
|
-
*/
|
|
366
|
-
protocols?: string;
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* Supported UMTS bands
|
|
370
|
-
*/
|
|
371
|
-
umts_bands?: string;
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* Company website
|
|
375
|
-
*/
|
|
376
|
-
website?: string;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
export interface CarrierUpdateParams {
|
|
380
|
-
/**
|
|
381
|
-
* Company name
|
|
382
|
-
*/
|
|
383
|
-
company?: string;
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* Country name
|
|
387
|
-
*/
|
|
388
|
-
country?: string;
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* Country dialing code
|
|
392
|
-
*/
|
|
393
|
-
country_code?: string;
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* ISO country code
|
|
397
|
-
*/
|
|
398
|
-
country_iso?: string;
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* URL to carrier details
|
|
402
|
-
*/
|
|
403
|
-
detail_url?: string;
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
* Supported GSM bands
|
|
407
|
-
*/
|
|
408
|
-
gsm_bands?: string;
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* Supported LTE bands
|
|
412
|
-
*/
|
|
413
|
-
lte_bands?: string;
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* Mobile number prefix
|
|
417
|
-
*/
|
|
418
|
-
mobile_prefix?: string;
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
* NSN size
|
|
422
|
-
*/
|
|
423
|
-
nsn_size?: string;
|
|
424
|
-
|
|
425
|
-
/**
|
|
426
|
-
* Phone number format
|
|
427
|
-
*/
|
|
428
|
-
number_format?: string;
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* Operator name
|
|
432
|
-
*/
|
|
433
|
-
operator?: string;
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* Supported protocols
|
|
437
|
-
*/
|
|
438
|
-
protocols?: string;
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* Supported UMTS bands
|
|
442
|
-
*/
|
|
443
|
-
umts_bands?: string;
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Company website
|
|
447
|
-
*/
|
|
448
|
-
website?: string;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
export interface CarrierListParams {
|
|
452
|
-
/**
|
|
453
|
-
* Filter by country name
|
|
454
|
-
*/
|
|
455
|
-
country?: string;
|
|
456
|
-
|
|
457
|
-
/**
|
|
458
|
-
* Filter by country ISO code
|
|
459
|
-
*/
|
|
460
|
-
countryISO?: string;
|
|
461
|
-
|
|
462
|
-
/**
|
|
463
|
-
* Field to order by
|
|
464
|
-
*/
|
|
465
|
-
orderBy?: 'id' | 'mcc' | 'mnc' | 'operator' | 'country' | 'country_iso';
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
* Order direction
|
|
469
|
-
*/
|
|
470
|
-
orderDir?: 'asc' | 'desc';
|
|
471
|
-
|
|
472
|
-
/**
|
|
473
|
-
* Page number
|
|
474
|
-
*/
|
|
475
|
-
page?: number;
|
|
476
|
-
|
|
477
|
-
/**
|
|
478
|
-
* Items per page
|
|
479
|
-
*/
|
|
480
|
-
pageSize?: number;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
export interface CarrierLookupParams {
|
|
484
|
-
/**
|
|
485
|
-
* Mobile Country Code
|
|
486
|
-
*/
|
|
487
|
-
mcc: string;
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* Mobile Network Code
|
|
491
|
-
*/
|
|
492
|
-
mnc: string;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
export declare namespace Carriers {
|
|
496
|
-
export {
|
|
497
|
-
type CarrierCreateResponse as CarrierCreateResponse,
|
|
498
|
-
type CarrierRetrieveResponse as CarrierRetrieveResponse,
|
|
499
|
-
type CarrierUpdateResponse as CarrierUpdateResponse,
|
|
500
|
-
type CarrierListResponse as CarrierListResponse,
|
|
501
|
-
type CarrierDeleteResponse as CarrierDeleteResponse,
|
|
502
|
-
type CarrierLookupResponse as CarrierLookupResponse,
|
|
503
|
-
type CarrierCreateParams as CarrierCreateParams,
|
|
504
|
-
type CarrierUpdateParams as CarrierUpdateParams,
|
|
505
|
-
type CarrierListParams as CarrierListParams,
|
|
506
|
-
type CarrierLookupParams as CarrierLookupParams,
|
|
507
|
-
};
|
|
508
|
-
}
|
|
@@ -1,168 +0,0 @@
|
|
|
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 { buildHeaders } from '../../internal/headers';
|
|
6
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
-
import { path } from '../../internal/utils/path';
|
|
8
|
-
|
|
9
|
-
export class MediaSessions extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Allocates an exclusive relay path and returns one-time publish and control
|
|
12
|
-
* credentials. The relay publisher must be established before activation.
|
|
13
|
-
*/
|
|
14
|
-
create(
|
|
15
|
-
deviceID: string,
|
|
16
|
-
body: MediaSessionCreateParams,
|
|
17
|
-
options?: RequestOptions,
|
|
18
|
-
): APIPromise<MediaSessionCreateResponse> {
|
|
19
|
-
return this._client.post(path`/devices/${deviceID}/media-sessions`, { body, ...options });
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Immediately revokes relay authorization, detaches virtual media inputs, and
|
|
24
|
-
* kicks the relay publisher.
|
|
25
|
-
*/
|
|
26
|
-
delete(sessionID: string, params: MediaSessionDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
27
|
-
const { deviceId, 'X-Media-Control-Token': xMediaControlToken } = params;
|
|
28
|
-
return this._client.delete(path`/devices/${deviceId}/media-sessions/${sessionID}`, {
|
|
29
|
-
...options,
|
|
30
|
-
headers: buildHeaders([
|
|
31
|
-
{ Accept: '*/*', 'X-Media-Control-Token': xMediaControlToken },
|
|
32
|
-
options?.headers,
|
|
33
|
-
]),
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Validates relay codecs and attaches one private RTSP source to either the
|
|
39
|
-
* virtual microphone or the combined microphone-and-camera pipeline.
|
|
40
|
-
*/
|
|
41
|
-
activate(
|
|
42
|
-
sessionID: string,
|
|
43
|
-
params: MediaSessionActivateParams,
|
|
44
|
-
options?: RequestOptions,
|
|
45
|
-
): APIPromise<MediaSessionActivateResponse> {
|
|
46
|
-
const { deviceId, 'X-Media-Control-Token': xMediaControlToken } = params;
|
|
47
|
-
return this._client.post(path`/devices/${deviceId}/media-sessions/${sessionID}/activate`, {
|
|
48
|
-
...options,
|
|
49
|
-
headers: buildHeaders([{ 'X-Media-Control-Token': xMediaControlToken }, options?.headers]),
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Returns status only. Publish URLs and credentials are never replayed after
|
|
55
|
-
* creation.
|
|
56
|
-
*/
|
|
57
|
-
retrieveCurrent(
|
|
58
|
-
deviceID: string,
|
|
59
|
-
options?: RequestOptions,
|
|
60
|
-
): APIPromise<MediaSessionRetrieveCurrentResponse> {
|
|
61
|
-
return this._client.get(path`/devices/${deviceID}/media-sessions/current`, options);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface MediaSessionCreateResponse {
|
|
66
|
-
camera: boolean;
|
|
67
|
-
|
|
68
|
-
controlToken: string;
|
|
69
|
-
|
|
70
|
-
expiresAt: string;
|
|
71
|
-
|
|
72
|
-
microphone: boolean;
|
|
73
|
-
|
|
74
|
-
publishToken: string;
|
|
75
|
-
|
|
76
|
-
publishUrl: string;
|
|
77
|
-
|
|
78
|
-
sessionId: string;
|
|
79
|
-
|
|
80
|
-
state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* A URL to the JSON Schema for this object.
|
|
84
|
-
*/
|
|
85
|
-
$schema?: string;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export interface MediaSessionActivateResponse {
|
|
89
|
-
camera: boolean;
|
|
90
|
-
|
|
91
|
-
expiresAt: string;
|
|
92
|
-
|
|
93
|
-
microphone: boolean;
|
|
94
|
-
|
|
95
|
-
sessionId: string;
|
|
96
|
-
|
|
97
|
-
state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* A URL to the JSON Schema for this object.
|
|
101
|
-
*/
|
|
102
|
-
$schema?: string;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface MediaSessionRetrieveCurrentResponse {
|
|
106
|
-
camera: boolean;
|
|
107
|
-
|
|
108
|
-
expiresAt: string;
|
|
109
|
-
|
|
110
|
-
microphone: boolean;
|
|
111
|
-
|
|
112
|
-
sessionId: string;
|
|
113
|
-
|
|
114
|
-
state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* A URL to the JSON Schema for this object.
|
|
118
|
-
*/
|
|
119
|
-
$schema?: string;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export interface MediaSessionCreateParams {
|
|
123
|
-
/**
|
|
124
|
-
* Publish combined browser audio and H264 video into the device's virtual
|
|
125
|
-
* microphone and camera. Requires microphone=true.
|
|
126
|
-
*/
|
|
127
|
-
camera: boolean;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Publish browser audio into the device's virtual microphone.
|
|
131
|
-
*/
|
|
132
|
-
microphone: boolean;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export interface MediaSessionDeleteParams {
|
|
136
|
-
/**
|
|
137
|
-
* Path param
|
|
138
|
-
*/
|
|
139
|
-
deviceId: string;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Header param
|
|
143
|
-
*/
|
|
144
|
-
'X-Media-Control-Token': string;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export interface MediaSessionActivateParams {
|
|
148
|
-
/**
|
|
149
|
-
* Path param
|
|
150
|
-
*/
|
|
151
|
-
deviceId: string;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Header param
|
|
155
|
-
*/
|
|
156
|
-
'X-Media-Control-Token': string;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export declare namespace MediaSessions {
|
|
160
|
-
export {
|
|
161
|
-
type MediaSessionCreateResponse as MediaSessionCreateResponse,
|
|
162
|
-
type MediaSessionActivateResponse as MediaSessionActivateResponse,
|
|
163
|
-
type MediaSessionRetrieveCurrentResponse as MediaSessionRetrieveCurrentResponse,
|
|
164
|
-
type MediaSessionCreateParams as MediaSessionCreateParams,
|
|
165
|
-
type MediaSessionDeleteParams as MediaSessionDeleteParams,
|
|
166
|
-
type MediaSessionActivateParams as MediaSessionActivateParams,
|
|
167
|
-
};
|
|
168
|
-
}
|