@mobilerun/sdk 6.0.0 → 6.1.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 +20 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/assistant/conversations.d.mts +20 -0
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +20 -0
- package/resources/assistant/conversations.d.ts.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 +22 -1
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +22 -1
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +8 -0
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +8 -0
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/credentials/credentials.d.mts +20 -0
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +20 -0
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +4 -0
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +4 -0
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/index.d.mts +1 -0
- package/resources/credentials/index.d.mts.map +1 -1
- package/resources/credentials/index.d.ts +1 -0
- package/resources/credentials/index.d.ts.map +1 -1
- package/resources/credentials/index.js +5 -3
- package/resources/credentials/index.js.map +1 -1
- package/resources/credentials/index.mjs +1 -0
- package/resources/credentials/index.mjs.map +1 -1
- package/resources/credentials/onepassword/index.d.mts +3 -0
- package/resources/credentials/onepassword/index.d.mts.map +1 -0
- package/resources/credentials/onepassword/index.d.ts +3 -0
- package/resources/credentials/onepassword/index.d.ts.map +1 -0
- package/resources/credentials/onepassword/index.js +9 -0
- package/resources/credentials/onepassword/index.js.map +1 -0
- package/resources/credentials/onepassword/index.mjs +4 -0
- package/resources/credentials/onepassword/index.mjs.map +1 -0
- package/resources/credentials/onepassword/onepassword.d.mts +65 -0
- package/resources/credentials/onepassword/onepassword.d.mts.map +1 -0
- package/resources/credentials/onepassword/onepassword.d.ts +65 -0
- package/resources/credentials/onepassword/onepassword.d.ts.map +1 -0
- package/resources/credentials/onepassword/onepassword.js +35 -0
- package/resources/credentials/onepassword/onepassword.js.map +1 -0
- package/resources/credentials/onepassword/onepassword.mjs +30 -0
- package/resources/credentials/onepassword/onepassword.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/index.d.mts +3 -0
- package/resources/credentials/onepassword/vaults/index.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/index.d.ts +3 -0
- package/resources/credentials/onepassword/vaults/index.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/index.js +9 -0
- package/resources/credentials/onepassword/vaults/index.js.map +1 -0
- package/resources/credentials/onepassword/vaults/index.mjs +4 -0
- package/resources/credentials/onepassword/vaults/index.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.mts +27 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.ts +27 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.js +17 -0
- package/resources/credentials/onepassword/vaults/items/fields.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.mjs +13 -0
- package/resources/credentials/onepassword/vaults/items/fields.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.d.mts +3 -0
- package/resources/credentials/onepassword/vaults/items/index.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.d.ts +3 -0
- package/resources/credentials/onepassword/vaults/items/index.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.js +9 -0
- package/resources/credentials/onepassword/vaults/items/index.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.mjs +4 -0
- package/resources/credentials/onepassword/vaults/items/index.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.d.mts +34 -0
- package/resources/credentials/onepassword/vaults/items/items.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.d.ts +34 -0
- package/resources/credentials/onepassword/vaults/items/items.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.js +24 -0
- package/resources/credentials/onepassword/vaults/items/items.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.mjs +19 -0
- package/resources/credentials/onepassword/vaults/items/items.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items.d.mts +2 -0
- package/resources/credentials/onepassword/vaults/items.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items.d.ts +2 -0
- package/resources/credentials/onepassword/vaults/items.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items.js +6 -0
- package/resources/credentials/onepassword/vaults/items.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items.mjs +3 -0
- package/resources/credentials/onepassword/vaults/items.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.d.mts +10 -0
- package/resources/credentials/onepassword/vaults/vaults.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.d.ts +10 -0
- package/resources/credentials/onepassword/vaults/vaults.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.js +17 -0
- package/resources/credentials/onepassword/vaults/vaults.js.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.mjs +12 -0
- package/resources/credentials/onepassword/vaults/vaults.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults.d.mts +2 -0
- package/resources/credentials/onepassword/vaults.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults.d.ts +2 -0
- package/resources/credentials/onepassword/vaults.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults.js +6 -0
- package/resources/credentials/onepassword/vaults.js.map +1 -0
- package/resources/credentials/onepassword/vaults.mjs +3 -0
- package/resources/credentials/onepassword/vaults.mjs.map +1 -0
- package/resources/credentials/onepassword.d.mts +2 -0
- package/resources/credentials/onepassword.d.mts.map +1 -0
- package/resources/credentials/onepassword.d.ts +2 -0
- package/resources/credentials/onepassword.d.ts.map +1 -0
- package/resources/credentials/onepassword.js +6 -0
- package/resources/credentials/onepassword.js.map +1 -0
- package/resources/credentials/onepassword.mjs +3 -0
- package/resources/credentials/onepassword.mjs.map +1 -0
- package/resources/credentials/packages/credentials/credentials.d.mts +32 -32
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +32 -32
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js +0 -8
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs +0 -8
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +48 -0
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +48 -0
- package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/index.d.mts +1 -1
- package/resources/credentials/packages/credentials/index.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/index.d.ts +1 -1
- package/resources/credentials/packages/credentials/index.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/index.js.map +1 -1
- package/resources/credentials/packages/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/index.d.mts +2 -1
- package/resources/credentials/packages/index.d.mts.map +1 -1
- package/resources/credentials/packages/index.d.ts +2 -1
- package/resources/credentials/packages/index.d.ts.map +1 -1
- package/resources/credentials/packages/index.js +3 -1
- package/resources/credentials/packages/index.js.map +1 -1
- package/resources/credentials/packages/index.mjs +1 -0
- package/resources/credentials/packages/index.mjs.map +1 -1
- package/resources/credentials/packages/links.d.mts +65 -0
- package/resources/credentials/packages/links.d.mts.map +1 -0
- package/resources/credentials/packages/links.d.ts +65 -0
- package/resources/credentials/packages/links.d.ts.map +1 -0
- package/resources/credentials/packages/links.js +16 -0
- package/resources/credentials/packages/links.js.map +1 -0
- package/resources/credentials/packages/links.mjs +12 -0
- package/resources/credentials/packages/links.mjs.map +1 -0
- package/resources/credentials/packages/packages.d.mts +22 -2
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +22 -2
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +4 -0
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +4 -0
- package/resources/credentials/packages/packages.mjs.map +1 -1
- package/resources/devices/apps.d.mts +14 -12
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +14 -12
- 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 +62 -32
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +62 -32
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +25 -17
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +25 -17
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +1 -2
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +1 -2
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +1 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +0 -1
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +1 -1
- package/resources/devices/keyboard.d.ts +1 -1
- package/resources/devices/language.d.mts +6 -4
- package/resources/devices/language.d.mts.map +1 -1
- package/resources/devices/language.d.ts +6 -4
- package/resources/devices/language.d.ts.map +1 -1
- package/resources/devices/language.js +3 -2
- package/resources/devices/language.js.map +1 -1
- package/resources/devices/language.mjs +3 -2
- package/resources/devices/language.mjs.map +1 -1
- package/resources/devices/state.d.mts +1 -0
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +1 -0
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/messages.d.mts +13 -0
- package/resources/mailboxes/messages.d.mts.map +1 -1
- package/resources/mailboxes/messages.d.ts +13 -0
- package/resources/mailboxes/messages.d.ts.map +1 -1
- package/resources/mailboxes/messages.js +2 -2
- package/resources/mailboxes/messages.js.map +1 -1
- package/resources/mailboxes/messages.mjs +2 -2
- package/resources/mailboxes/messages.mjs.map +1 -1
- package/resources/messages/conversations.d.mts +6 -0
- package/resources/messages/conversations.d.mts.map +1 -1
- package/resources/messages/conversations.d.ts +6 -0
- package/resources/messages/conversations.d.ts.map +1 -1
- package/resources/messages/messages.d.mts +28 -0
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +28 -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/numbers/messages.d.mts +27 -1
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +27 -1
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/numbers.d.mts +108 -0
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +108 -0
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +6 -2
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +6 -2
- 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/workflows/events.d.mts +1 -0
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +1 -0
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +10 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -1
- package/resources/workflows/executions/executions.d.ts +10 -0
- package/resources/workflows/executions/executions.d.ts.map +1 -1
- package/resources/workflows/executions/executions.js.map +1 -1
- package/resources/workflows/executions/executions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +31 -11
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +31 -11
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +11 -10
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +11 -10
- 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/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 -0
- package/src/resources/assistant/conversations.ts +28 -0
- package/src/resources/connect/connect.ts +2 -0
- package/src/resources/connect/index.ts +1 -0
- package/src/resources/connect/proxies.ts +27 -0
- package/src/resources/credentials/credentials.ts +51 -0
- package/src/resources/credentials/index.ts +7 -0
- package/src/resources/credentials/onepassword/index.ts +10 -0
- package/src/resources/credentials/onepassword/onepassword.ts +101 -0
- package/src/resources/credentials/onepassword/vaults/index.ts +4 -0
- package/src/resources/credentials/onepassword/vaults/items/fields.ts +40 -0
- package/src/resources/credentials/onepassword/vaults/items/index.ts +4 -0
- package/src/resources/credentials/onepassword/vaults/items/items.ts +55 -0
- package/src/resources/credentials/onepassword/vaults/items.ts +3 -0
- package/src/resources/credentials/onepassword/vaults/vaults.ts +15 -0
- package/src/resources/credentials/onepassword/vaults.ts +3 -0
- package/src/resources/credentials/onepassword.ts +3 -0
- package/src/resources/credentials/packages/credentials/credentials.ts +58 -55
- package/src/resources/credentials/packages/credentials/fields.ts +99 -0
- package/src/resources/credentials/packages/credentials/index.ts +0 -2
- package/src/resources/credentials/packages/index.ts +1 -2
- package/src/resources/credentials/packages/links.ts +122 -0
- package/src/resources/credentials/packages/packages.ts +43 -4
- package/src/resources/devices/apps.ts +14 -12
- package/src/resources/devices/devices.ts +77 -59
- package/src/resources/devices/index.ts +1 -9
- package/src/resources/devices/keyboard.ts +1 -1
- package/src/resources/devices/language.ts +6 -4
- package/src/resources/devices/state.ts +2 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/mailboxes/messages.ts +17 -2
- package/src/resources/messages/conversations.ts +6 -0
- package/src/resources/messages/messages.ts +32 -0
- package/src/resources/numbers/messages.ts +31 -1
- package/src/resources/numbers/numbers.ts +124 -0
- package/src/resources/tasks/tasks.ts +6 -2
- package/src/resources/workflows/events.ts +2 -0
- package/src/resources/workflows/executions/executions.ts +12 -0
- package/src/resources/workflows/flows/flows.ts +44 -11
- package/src/resources/workflows/flows/index.ts +1 -0
- package/src/resources/workflows/index.ts +1 -0
- 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/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/src/resources/devices/media-sessions.ts +0 -168
|
@@ -50,16 +50,6 @@ import * as LanguageAPI from './language';
|
|
|
50
50
|
import { Language, LanguageGetParams, LanguageGetResponse, LanguageSetParams } from './language';
|
|
51
51
|
import * as LocationAPI from './location';
|
|
52
52
|
import { Location, LocationGetParams, LocationResetParams, LocationSetParams } from './location';
|
|
53
|
-
import * as MediaSessionsAPI from './media-sessions';
|
|
54
|
-
import {
|
|
55
|
-
MediaSessionActivateParams,
|
|
56
|
-
MediaSessionActivateResponse,
|
|
57
|
-
MediaSessionCreateParams,
|
|
58
|
-
MediaSessionCreateResponse,
|
|
59
|
-
MediaSessionDeleteParams,
|
|
60
|
-
MediaSessionRetrieveCurrentResponse,
|
|
61
|
-
MediaSessions,
|
|
62
|
-
} from './media-sessions';
|
|
63
53
|
import * as PackagesAPI from './packages';
|
|
64
54
|
import { PackageListParams, PackageListResponse, Packages } from './packages';
|
|
65
55
|
import * as ProfileAPI from './profile';
|
|
@@ -163,7 +153,6 @@ export class Devices extends APIResource {
|
|
|
163
153
|
deepLink: DeepLinkAPI.DeepLink = new DeepLinkAPI.DeepLink(this._client);
|
|
164
154
|
browser: BrowserAPI.Browser = new BrowserAPI.Browser(this._client);
|
|
165
155
|
kiosk: KioskAPI.Kiosk = new KioskAPI.Kiosk(this._client);
|
|
166
|
-
mediaSessions: MediaSessionsAPI.MediaSessions = new MediaSessionsAPI.MediaSessions(this._client);
|
|
167
156
|
recordings: RecordingsAPI.Recordings = new RecordingsAPI.Recordings(this._client);
|
|
168
157
|
trafficSessions: TrafficSessionsAPI.TrafficSessions = new TrafficSessionsAPI.TrafficSessions(this._client);
|
|
169
158
|
|
|
@@ -174,9 +163,9 @@ export class Devices extends APIResource {
|
|
|
174
163
|
* token.
|
|
175
164
|
*/
|
|
176
165
|
create(params: DeviceCreateParams, options?: RequestOptions): APIPromise<DeviceCreateResponse> {
|
|
177
|
-
const { billing, query_country, deviceType, profileId, ...body } = params;
|
|
166
|
+
const { billing, query_country, deviceType, profileId, template, ...body } = params;
|
|
178
167
|
return this._client.post('/devices', {
|
|
179
|
-
query: { billing, country: query_country, deviceType, profileId },
|
|
168
|
+
query: { billing, country: query_country, deviceType, profileId, template },
|
|
180
169
|
body,
|
|
181
170
|
...options,
|
|
182
171
|
});
|
|
@@ -242,7 +231,10 @@ export class Devices extends APIResource {
|
|
|
242
231
|
|
|
243
232
|
/**
|
|
244
233
|
* Triggers a reboot of the device. The device transitions through its reboot
|
|
245
|
-
* lifecycle and becomes ready again once the restart completes.
|
|
234
|
+
* lifecycle and becomes ready again once the restart completes. Only devices whose
|
|
235
|
+
* capabilities report `reboot=true` can be rebooted. Personal (BYOD) devices
|
|
236
|
+
* cannot be rebooted remotely: the request is refused with 400
|
|
237
|
+
* `DEVICE_TOOL_UNSUPPORTED` and nothing happens on the device.
|
|
246
238
|
*/
|
|
247
239
|
reboot(deviceID: string, options?: RequestOptions): APIPromise<void> {
|
|
248
240
|
return this._client.post(path`/devices/${deviceID}/reboot`, {
|
|
@@ -252,21 +244,30 @@ export class Devices extends APIResource {
|
|
|
252
244
|
}
|
|
253
245
|
|
|
254
246
|
/**
|
|
255
|
-
* Resets the device
|
|
256
|
-
*
|
|
257
|
-
*
|
|
247
|
+
* Resets the device. `mode` selects what is erased: `full` (factory reset: apps,
|
|
248
|
+
* accounts, storage, new identity) or `identity` (new fingerprint, apps and data
|
|
249
|
+
* kept). Without `mode` the reset is `full`, or `identity` on devices with
|
|
250
|
+
* `factoryReset=false`. A mode or `preserve` value the device does not support is
|
|
251
|
+
* refused with 400 `DEVICE_TOOL_UNSUPPORTED`. `preserve` restores the latest
|
|
252
|
+
* proxy, location, locale or timezone set through the API after the reset; omitted
|
|
253
|
+
* or empty preserves nothing. The device becomes ready again after the reset.
|
|
258
254
|
*/
|
|
259
|
-
reset(
|
|
255
|
+
reset(
|
|
256
|
+
deviceID: string,
|
|
257
|
+
body: DeviceResetParams | null | undefined = {},
|
|
258
|
+
options?: RequestOptions,
|
|
259
|
+
): APIPromise<void> {
|
|
260
260
|
return this._client.post(path`/devices/${deviceID}/reset`, {
|
|
261
|
+
body,
|
|
261
262
|
...options,
|
|
262
263
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
263
264
|
});
|
|
264
265
|
}
|
|
265
266
|
|
|
266
267
|
/**
|
|
267
|
-
* Wakes a parked device:
|
|
268
|
-
*
|
|
269
|
-
*
|
|
268
|
+
* Wakes a parked device: it first checks that the device can run again, then the
|
|
269
|
+
* same device starts and per-minute billing resumes. On a device that is not
|
|
270
|
+
* parked, the request does nothing.
|
|
270
271
|
*/
|
|
271
272
|
resume(deviceID: string, options?: RequestOptions): APIPromise<void> {
|
|
272
273
|
return this._client.post(path`/devices/${deviceID}/resume`, {
|
|
@@ -322,9 +323,13 @@ export class Devices extends APIResource {
|
|
|
322
323
|
}
|
|
323
324
|
|
|
324
325
|
/**
|
|
325
|
-
* Terminates the device and releases its resources.
|
|
326
|
-
*
|
|
327
|
-
*
|
|
326
|
+
* Terminates the device and releases its resources. For a personal (BYOD) device
|
|
327
|
+
* the owner (API key or user) can instead remove the phone from the account so
|
|
328
|
+
* anyone can pair it again; the phone must be disconnected first, otherwise the
|
|
329
|
+
* request is rejected with 409 BYOD_DEVICE_CONNECTED. Other subscription-billed
|
|
330
|
+
* devices cannot be terminated with this request; it is rejected with 401. The
|
|
331
|
+
* `terminateAt` and `previousDeviceId` body fields are reserved for internal use;
|
|
332
|
+
* requests that set them are rejected with 401.
|
|
328
333
|
*/
|
|
329
334
|
terminate(
|
|
330
335
|
deviceID: string,
|
|
@@ -549,8 +554,6 @@ export namespace DeviceFingerprintResponse {
|
|
|
549
554
|
|
|
550
555
|
hardware?: string;
|
|
551
556
|
|
|
552
|
-
imageRepository?: string;
|
|
553
|
-
|
|
554
557
|
manufacturer?: string;
|
|
555
558
|
|
|
556
559
|
model?: string;
|
|
@@ -584,6 +587,8 @@ export namespace DeviceRetrieveCapabilitiesResponse {
|
|
|
584
587
|
|
|
585
588
|
esim: boolean;
|
|
586
589
|
|
|
590
|
+
factoryReset: boolean;
|
|
591
|
+
|
|
587
592
|
files: boolean;
|
|
588
593
|
|
|
589
594
|
fingerprint: boolean;
|
|
@@ -594,6 +599,8 @@ export namespace DeviceRetrieveCapabilitiesResponse {
|
|
|
594
599
|
|
|
595
600
|
humanTouch: boolean;
|
|
596
601
|
|
|
602
|
+
identityReset: boolean;
|
|
603
|
+
|
|
597
604
|
language: boolean;
|
|
598
605
|
|
|
599
606
|
logcat: boolean;
|
|
@@ -602,6 +609,8 @@ export namespace DeviceRetrieveCapabilitiesResponse {
|
|
|
602
609
|
|
|
603
610
|
proxy: boolean;
|
|
604
611
|
|
|
612
|
+
reboot: boolean;
|
|
613
|
+
|
|
605
614
|
recording: boolean;
|
|
606
615
|
|
|
607
616
|
reset: boolean;
|
|
@@ -617,6 +626,8 @@ export namespace DeviceRetrieveCapabilitiesResponse {
|
|
|
617
626
|
time: boolean;
|
|
618
627
|
|
|
619
628
|
trafficInspection: boolean;
|
|
629
|
+
|
|
630
|
+
mediaInjectionTransport?: 'direct';
|
|
620
631
|
}
|
|
621
632
|
}
|
|
622
633
|
|
|
@@ -754,18 +765,27 @@ export interface DeviceCreateParams {
|
|
|
754
765
|
query_country?: string;
|
|
755
766
|
|
|
756
767
|
/**
|
|
757
|
-
* Query param:
|
|
758
|
-
*
|
|
759
|
-
*
|
|
760
|
-
*
|
|
768
|
+
* Query param: Device type: android_cloud_phone (cloud Android phone), ios_phone
|
|
769
|
+
* or device_slot. Any other value is rejected with 422. Not every device type is
|
|
770
|
+
* available for creation; an unavailable type returns DEVICE_TYPE_UNAVAILABLE
|
|
771
|
+
* (422).
|
|
761
772
|
*/
|
|
762
|
-
deviceType?:
|
|
773
|
+
deviceType?: 'android_cloud_phone' | 'ios_phone' | 'device_slot';
|
|
763
774
|
|
|
764
775
|
/**
|
|
765
776
|
* Query param: Profile ID to use as device spec
|
|
766
777
|
*/
|
|
767
778
|
profileId?: string;
|
|
768
779
|
|
|
780
|
+
/**
|
|
781
|
+
* Query param: Optional device template, e.g. onboarding. The device gets the
|
|
782
|
+
* template's Android version and preinstalled apps and is ready in seconds when a
|
|
783
|
+
* prepared phone is available; otherwise it boots with the same setup. Country,
|
|
784
|
+
* name and proxy still come from this request. Cannot be combined with profileId,
|
|
785
|
+
* apps or androidVersion. Omit it to create from the request alone.
|
|
786
|
+
*/
|
|
787
|
+
template?: string;
|
|
788
|
+
|
|
769
789
|
/**
|
|
770
790
|
* Body param
|
|
771
791
|
*/
|
|
@@ -889,24 +909,23 @@ export interface DeviceListParams {
|
|
|
889
909
|
|
|
890
910
|
orderByDirection?: 'asc' | 'desc';
|
|
891
911
|
|
|
892
|
-
/**
|
|
893
|
-
* Filter by owner IDs. Comma-separated or repeated parameters. Restricted to
|
|
894
|
-
* platform administrators.
|
|
895
|
-
*/
|
|
896
|
-
ownerId?: Array<string> | null;
|
|
897
|
-
|
|
898
912
|
page?: number;
|
|
899
913
|
|
|
900
914
|
pageSize?: number;
|
|
901
915
|
|
|
902
916
|
/**
|
|
903
|
-
* Filter by the device's platform as served in the platform field
|
|
904
|
-
* announced, else type-derived).
|
|
917
|
+
* Filter by the device's platform as served in the platform field.
|
|
905
918
|
*/
|
|
906
919
|
platform?: 'android' | 'ios';
|
|
907
920
|
|
|
908
921
|
providerId?: string;
|
|
909
922
|
|
|
923
|
+
/**
|
|
924
|
+
* Case-insensitive search: matches devices whose name contains the term or whose
|
|
925
|
+
* ID starts with it. Combined with all other filters.
|
|
926
|
+
*/
|
|
927
|
+
search?: string;
|
|
928
|
+
|
|
910
929
|
/**
|
|
911
930
|
* Filter by current device state. Comma-separated (state=ready,stopped). Defaults
|
|
912
931
|
* to every state except terminated and unknown, so stopped and maintenance devices
|
|
@@ -926,22 +945,31 @@ export interface DeviceListParams {
|
|
|
926
945
|
> | null;
|
|
927
946
|
|
|
928
947
|
/**
|
|
929
|
-
*
|
|
930
|
-
* Availability depends on the deployment.
|
|
948
|
+
* Filter by device type.
|
|
931
949
|
*/
|
|
932
|
-
type?:
|
|
933
|
-
| 'android_cloud_phone'
|
|
934
|
-
| 'android_physical_phone'
|
|
935
|
-
| 'ios_stealth_phone'
|
|
936
|
-
| 'android_emulator'
|
|
937
|
-
| 'ios_simulator'
|
|
938
|
-
| 'device_slot';
|
|
950
|
+
type?: 'android_cloud_phone' | 'ios_phone' | 'device_slot';
|
|
939
951
|
}
|
|
940
952
|
|
|
941
953
|
export interface DeviceFingerprintParams {
|
|
942
954
|
'X-Device-Display-ID'?: number;
|
|
943
955
|
}
|
|
944
956
|
|
|
957
|
+
export interface DeviceResetParams {
|
|
958
|
+
/**
|
|
959
|
+
* What to erase. full: factory reset — erases the user data (apps, accounts,
|
|
960
|
+
* storage) and gives the device a new identity. identity: new device fingerprint,
|
|
961
|
+
* apps and data are kept. When omitted: full, or identity on devices whose
|
|
962
|
+
* capabilities report factoryReset=false.
|
|
963
|
+
*/
|
|
964
|
+
mode?: 'full' | 'identity';
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* Device configuration to restore after the reset: the latest value set through
|
|
968
|
+
* the API. Omitted, null or empty preserves nothing.
|
|
969
|
+
*/
|
|
970
|
+
preserve?: Array<'proxy' | 'location' | 'locale' | 'timezone'> | null;
|
|
971
|
+
}
|
|
972
|
+
|
|
945
973
|
export interface DeviceSetNameParams {
|
|
946
974
|
name: string;
|
|
947
975
|
}
|
|
@@ -985,7 +1013,6 @@ Devices.Language = Language;
|
|
|
985
1013
|
Devices.DeepLink = DeepLink;
|
|
986
1014
|
Devices.Browser = Browser;
|
|
987
1015
|
Devices.Kiosk = Kiosk;
|
|
988
|
-
Devices.MediaSessions = MediaSessions;
|
|
989
1016
|
Devices.Recordings = Recordings;
|
|
990
1017
|
Devices.TrafficSessions = TrafficSessions;
|
|
991
1018
|
|
|
@@ -1003,6 +1030,7 @@ export declare namespace Devices {
|
|
|
1003
1030
|
type DeviceCreateParams as DeviceCreateParams,
|
|
1004
1031
|
type DeviceListParams as DeviceListParams,
|
|
1005
1032
|
type DeviceFingerprintParams as DeviceFingerprintParams,
|
|
1033
|
+
type DeviceResetParams as DeviceResetParams,
|
|
1006
1034
|
type DeviceSetNameParams as DeviceSetNameParams,
|
|
1007
1035
|
type DeviceSummaryParams as DeviceSummaryParams,
|
|
1008
1036
|
type DeviceTerminateParams as DeviceTerminateParams,
|
|
@@ -1143,16 +1171,6 @@ export declare namespace Devices {
|
|
|
1143
1171
|
type KioskEnableParams as KioskEnableParams,
|
|
1144
1172
|
};
|
|
1145
1173
|
|
|
1146
|
-
export {
|
|
1147
|
-
MediaSessions as MediaSessions,
|
|
1148
|
-
type MediaSessionCreateResponse as MediaSessionCreateResponse,
|
|
1149
|
-
type MediaSessionActivateResponse as MediaSessionActivateResponse,
|
|
1150
|
-
type MediaSessionRetrieveCurrentResponse as MediaSessionRetrieveCurrentResponse,
|
|
1151
|
-
type MediaSessionCreateParams as MediaSessionCreateParams,
|
|
1152
|
-
type MediaSessionDeleteParams as MediaSessionDeleteParams,
|
|
1153
|
-
type MediaSessionActivateParams as MediaSessionActivateParams,
|
|
1154
|
-
};
|
|
1155
|
-
|
|
1156
1174
|
export {
|
|
1157
1175
|
Recordings as Recordings,
|
|
1158
1176
|
type RecordingListResponse as RecordingListResponse,
|
|
@@ -44,6 +44,7 @@ export {
|
|
|
44
44
|
type DeviceCreateParams,
|
|
45
45
|
type DeviceListParams,
|
|
46
46
|
type DeviceFingerprintParams,
|
|
47
|
+
type DeviceResetParams,
|
|
47
48
|
type DeviceSetNameParams,
|
|
48
49
|
type DeviceSummaryParams,
|
|
49
50
|
type DeviceTerminateParams,
|
|
@@ -88,15 +89,6 @@ export {
|
|
|
88
89
|
type LocationResetParams,
|
|
89
90
|
type LocationSetParams,
|
|
90
91
|
} from './location';
|
|
91
|
-
export {
|
|
92
|
-
MediaSessions,
|
|
93
|
-
type MediaSessionCreateResponse,
|
|
94
|
-
type MediaSessionActivateResponse,
|
|
95
|
-
type MediaSessionRetrieveCurrentResponse,
|
|
96
|
-
type MediaSessionCreateParams,
|
|
97
|
-
type MediaSessionDeleteParams,
|
|
98
|
-
type MediaSessionActivateParams,
|
|
99
|
-
} from './media-sessions';
|
|
100
92
|
export { Packages, type PackageListResponse, type PackageListParams } from './packages';
|
|
101
93
|
export { Profile, type ProfileUpdateParams } from './profile';
|
|
102
94
|
export {
|
|
@@ -108,7 +108,7 @@ export interface KeyboardWriteParams {
|
|
|
108
108
|
completionMode?: 'accepted' | 'committed';
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
|
-
* Body param: Per-character mistake rate for
|
|
111
|
+
* Body param: Per-character mistake rate for humanized typing. -1 uses server
|
|
112
112
|
* default.
|
|
113
113
|
*/
|
|
114
114
|
errorRate?: number;
|
|
@@ -31,8 +31,9 @@ export class Language extends APIResource {
|
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Sets the device language/locale to the BCP-47 locale in the request body. An
|
|
34
|
-
* optional restart flag applies the change immediately by restarting the
|
|
35
|
-
* instead of waiting for the next reboot
|
|
34
|
+
* optional restart flag applies the change immediately by restarting the Android
|
|
35
|
+
* system framework (open apps are closed) instead of waiting for the next reboot;
|
|
36
|
+
* some devices ignore it.
|
|
36
37
|
*/
|
|
37
38
|
set(deviceID: string, params: LanguageSetParams, options?: RequestOptions): APIPromise<void> {
|
|
38
39
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...body } = params;
|
|
@@ -73,8 +74,9 @@ export interface LanguageSetParams {
|
|
|
73
74
|
locale: string;
|
|
74
75
|
|
|
75
76
|
/**
|
|
76
|
-
* Body param: Restart
|
|
77
|
-
*
|
|
77
|
+
* Body param: Restart the Android system framework so the locale change takes full
|
|
78
|
+
* effect immediately; open apps are closed. Without it, the change may not fully
|
|
79
|
+
* apply until the next reboot. Some devices ignore this flag.
|
|
78
80
|
*/
|
|
79
81
|
restart?: boolean;
|
|
80
82
|
|
package/src/resources/index.ts
CHANGED
|
@@ -22,8 +22,8 @@ export class Messages extends APIResource {
|
|
|
22
22
|
params: MessageRetrieveParams,
|
|
23
23
|
options?: RequestOptions,
|
|
24
24
|
): APIPromise<MessageRetrieveResponse> {
|
|
25
|
-
const { mailboxId } = params;
|
|
26
|
-
return this._client.get(path`/mailboxes/${mailboxId}/messages/${messageID}`, options);
|
|
25
|
+
const { mailboxId, ...query } = params;
|
|
26
|
+
return this._client.get(path`/mailboxes/${mailboxId}/messages/${messageID}`, { query, ...options });
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -71,6 +71,13 @@ export namespace MessageRetrieveResponse {
|
|
|
71
71
|
subject: string | null;
|
|
72
72
|
|
|
73
73
|
textBody: string | null;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Raw HTML part as received. Present only with includeHtml=true; null when the
|
|
77
|
+
* mail has no HTML part or it exceeds 1 MiB (UTF-8 bytes). Untrusted content:
|
|
78
|
+
* render only in an isolated sandboxed frame, never inline.
|
|
79
|
+
*/
|
|
80
|
+
htmlBody?: string | null;
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
export namespace Data {
|
|
@@ -109,7 +116,15 @@ export namespace MessageListResponse {
|
|
|
109
116
|
}
|
|
110
117
|
|
|
111
118
|
export interface MessageRetrieveParams {
|
|
119
|
+
/**
|
|
120
|
+
* Path param
|
|
121
|
+
*/
|
|
112
122
|
mailboxId: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Query param: Return the raw HTML part as htmlBody (untrusted; render isolated).
|
|
126
|
+
*/
|
|
127
|
+
includeHtml?: 'true' | 'false';
|
|
113
128
|
}
|
|
114
129
|
|
|
115
130
|
export interface MessageListParams {
|
|
@@ -55,6 +55,12 @@ export namespace ConversationListResponse {
|
|
|
55
55
|
|
|
56
56
|
occurredAt: string;
|
|
57
57
|
|
|
58
|
+
/**
|
|
59
|
+
* Message status. Outbound messages move queued → sending → sent, or end at
|
|
60
|
+
* failed. `sent` means the mobile network accepted the message and is the final
|
|
61
|
+
* success status. `delivered` and `sent_unconfirmed` are kept for compatibility;
|
|
62
|
+
* current lines return no carrier delivery report, so neither is emitted.
|
|
63
|
+
*/
|
|
58
64
|
status:
|
|
59
65
|
| 'received'
|
|
60
66
|
| 'queued'
|
|
@@ -48,6 +48,8 @@ export namespace MessageRetrieveResponse {
|
|
|
48
48
|
|
|
49
49
|
body: string | null;
|
|
50
50
|
|
|
51
|
+
classification: Data.Classification | null;
|
|
52
|
+
|
|
51
53
|
createdAt: string;
|
|
52
54
|
|
|
53
55
|
deliveryStatus: string | null;
|
|
@@ -66,6 +68,12 @@ export namespace MessageRetrieveResponse {
|
|
|
66
68
|
|
|
67
69
|
providerCode: string | null;
|
|
68
70
|
|
|
71
|
+
/**
|
|
72
|
+
* Message status. Outbound messages move queued → sending → sent, or end at
|
|
73
|
+
* failed. `sent` means the mobile network accepted the message and is the final
|
|
74
|
+
* success status. `delivered` and `sent_unconfirmed` are kept for compatibility;
|
|
75
|
+
* current lines return no carrier delivery report, so neither is emitted.
|
|
76
|
+
*/
|
|
69
77
|
status:
|
|
70
78
|
| 'received'
|
|
71
79
|
| 'queued'
|
|
@@ -76,6 +84,12 @@ export namespace MessageRetrieveResponse {
|
|
|
76
84
|
| 'delivered'
|
|
77
85
|
| 'failed';
|
|
78
86
|
}
|
|
87
|
+
|
|
88
|
+
export namespace Data {
|
|
89
|
+
export interface Classification {
|
|
90
|
+
spam: boolean;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
79
93
|
}
|
|
80
94
|
|
|
81
95
|
export interface MessageListResponse {
|
|
@@ -90,6 +104,8 @@ export namespace MessageListResponse {
|
|
|
90
104
|
|
|
91
105
|
body: string | null;
|
|
92
106
|
|
|
107
|
+
classification: Item.Classification | null;
|
|
108
|
+
|
|
93
109
|
createdAt: string;
|
|
94
110
|
|
|
95
111
|
deliveryStatus: string | null;
|
|
@@ -108,6 +124,12 @@ export namespace MessageListResponse {
|
|
|
108
124
|
|
|
109
125
|
providerCode: string | null;
|
|
110
126
|
|
|
127
|
+
/**
|
|
128
|
+
* Message status. Outbound messages move queued → sending → sent, or end at
|
|
129
|
+
* failed. `sent` means the mobile network accepted the message and is the final
|
|
130
|
+
* success status. `delivered` and `sent_unconfirmed` are kept for compatibility;
|
|
131
|
+
* current lines return no carrier delivery report, so neither is emitted.
|
|
132
|
+
*/
|
|
111
133
|
status:
|
|
112
134
|
| 'received'
|
|
113
135
|
| 'queued'
|
|
@@ -118,6 +140,12 @@ export namespace MessageListResponse {
|
|
|
118
140
|
| 'delivered'
|
|
119
141
|
| 'failed';
|
|
120
142
|
}
|
|
143
|
+
|
|
144
|
+
export namespace Item {
|
|
145
|
+
export interface Classification {
|
|
146
|
+
spam: boolean;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
121
149
|
}
|
|
122
150
|
|
|
123
151
|
export interface MessageListParams {
|
|
@@ -135,6 +163,10 @@ export interface MessageListParams {
|
|
|
135
163
|
|
|
136
164
|
peerNumber?: string;
|
|
137
165
|
|
|
166
|
+
/**
|
|
167
|
+
* Filter by message status. `delivered` and `sent_unconfirmed` are kept for
|
|
168
|
+
* compatibility and are not emitted on current lines.
|
|
169
|
+
*/
|
|
138
170
|
status?:
|
|
139
171
|
| 'all'
|
|
140
172
|
| 'received'
|
|
@@ -64,6 +64,8 @@ export namespace MessageListResponse {
|
|
|
64
64
|
|
|
65
65
|
body: string | null;
|
|
66
66
|
|
|
67
|
+
classification: Item.Classification | null;
|
|
68
|
+
|
|
67
69
|
createdAt: string;
|
|
68
70
|
|
|
69
71
|
deliveryStatus: string | null;
|
|
@@ -80,6 +82,12 @@ export namespace MessageListResponse {
|
|
|
80
82
|
|
|
81
83
|
peerNumber: string | null;
|
|
82
84
|
|
|
85
|
+
/**
|
|
86
|
+
* Message status. Outbound messages move queued → sending → sent, or end at
|
|
87
|
+
* failed. `sent` means the mobile network accepted the message and is the final
|
|
88
|
+
* success status. `delivered` and `sent_unconfirmed` are kept for compatibility;
|
|
89
|
+
* current lines return no carrier delivery report, so neither is emitted.
|
|
90
|
+
*/
|
|
83
91
|
status:
|
|
84
92
|
| 'received'
|
|
85
93
|
| 'queued'
|
|
@@ -90,6 +98,12 @@ export namespace MessageListResponse {
|
|
|
90
98
|
| 'delivered'
|
|
91
99
|
| 'failed';
|
|
92
100
|
}
|
|
101
|
+
|
|
102
|
+
export namespace Item {
|
|
103
|
+
export interface Classification {
|
|
104
|
+
spam: boolean;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
93
107
|
}
|
|
94
108
|
|
|
95
109
|
export interface MessageSendResponse {
|
|
@@ -102,6 +116,8 @@ export namespace MessageSendResponse {
|
|
|
102
116
|
|
|
103
117
|
body: string | null;
|
|
104
118
|
|
|
119
|
+
classification: Data.Classification | null;
|
|
120
|
+
|
|
105
121
|
createdAt: string;
|
|
106
122
|
|
|
107
123
|
deliveryStatus: string | null;
|
|
@@ -118,6 +134,12 @@ export namespace MessageSendResponse {
|
|
|
118
134
|
|
|
119
135
|
peerNumber: string | null;
|
|
120
136
|
|
|
137
|
+
/**
|
|
138
|
+
* Message status. Outbound messages move queued → sending → sent, or end at
|
|
139
|
+
* failed. `sent` means the mobile network accepted the message and is the final
|
|
140
|
+
* success status. `delivered` and `sent_unconfirmed` are kept for compatibility;
|
|
141
|
+
* current lines return no carrier delivery report, so neither is emitted.
|
|
142
|
+
*/
|
|
121
143
|
status:
|
|
122
144
|
| 'received'
|
|
123
145
|
| 'queued'
|
|
@@ -128,6 +150,12 @@ export namespace MessageSendResponse {
|
|
|
128
150
|
| 'delivered'
|
|
129
151
|
| 'failed';
|
|
130
152
|
}
|
|
153
|
+
|
|
154
|
+
export namespace Data {
|
|
155
|
+
export interface Classification {
|
|
156
|
+
spam: boolean;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
131
159
|
}
|
|
132
160
|
|
|
133
161
|
export interface MessageListParams {
|
|
@@ -155,7 +183,9 @@ export interface MessageSendParams {
|
|
|
155
183
|
to: string;
|
|
156
184
|
|
|
157
185
|
/**
|
|
158
|
-
*
|
|
186
|
+
* @deprecated Deprecated: best effort and ignored on most lines. Hosted SIM
|
|
187
|
+
* numbers return no carrier delivery report, so their messages end at `sent` and
|
|
188
|
+
* no `sms.send.delivered` event follows. Defaults to false.
|
|
159
189
|
*/
|
|
160
190
|
deliveryReport?: boolean;
|
|
161
191
|
}
|