@mobilerun/sdk 5.5.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/client.d.mts +8 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -8
- package/client.d.ts.map +1 -1
- package/client.js +1 -0
- package/client.js.map +1 -1
- package/client.mjs +2 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +18 -15
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +18 -15
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +5 -2
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +5 -2
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +7 -17
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +7 -17
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +4 -11
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +4 -11
- package/resources/assistant/conversations.mjs.map +1 -1
- package/resources/connect/connect.d.mts +2 -2
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +2 -2
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +94 -11
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +94 -11
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +21 -10
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +21 -10
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/devices/browser.d.mts +9 -3
- package/resources/devices/browser.d.mts.map +1 -1
- package/resources/devices/browser.d.ts +9 -3
- package/resources/devices/browser.d.ts.map +1 -1
- package/resources/devices/browser.js +9 -3
- package/resources/devices/browser.js.map +1 -1
- package/resources/devices/browser.mjs +9 -3
- package/resources/devices/browser.mjs.map +1 -1
- package/resources/devices/devices.d.mts +52 -23
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +52 -23
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +17 -7
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +17 -7
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +1 -1
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +1 -1
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/recordings.d.mts +4 -2
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +4 -2
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.d.mts +1 -11
- package/resources/devices/traffic-sessions.d.mts.map +1 -1
- package/resources/devices/traffic-sessions.d.ts +1 -11
- package/resources/devices/traffic-sessions.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.js +2 -8
- package/resources/devices/traffic-sessions.js.map +1 -1
- package/resources/devices/traffic-sessions.mjs +2 -8
- package/resources/devices/traffic-sessions.mjs.map +1 -1
- package/resources/files.d.mts +5 -19
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +5 -19
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +2 -10
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +2 -10
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +64 -0
- package/resources/mailboxes/connections.d.mts.map +1 -0
- package/resources/mailboxes/connections.d.ts +64 -0
- package/resources/mailboxes/connections.d.ts.map +1 -0
- package/resources/mailboxes/connections.js +42 -0
- package/resources/mailboxes/connections.js.map +1 -0
- package/resources/mailboxes/connections.mjs +38 -0
- package/resources/mailboxes/connections.mjs.map +1 -0
- package/resources/mailboxes/index.d.mts +2 -1
- package/resources/mailboxes/index.d.mts.map +1 -1
- package/resources/mailboxes/index.d.ts +2 -1
- package/resources/mailboxes/index.d.ts.map +1 -1
- package/resources/mailboxes/index.js +3 -1
- package/resources/mailboxes/index.js.map +1 -1
- package/resources/mailboxes/index.mjs +1 -0
- package/resources/mailboxes/index.mjs.map +1 -1
- package/resources/mailboxes/mailboxes.d.mts +73 -24
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +73 -24
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +25 -8
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +25 -8
- package/resources/mailboxes/mailboxes.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +26 -1
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +26 -1
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +9 -0
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +9 -0
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/notifications.d.mts +27 -1
- package/resources/notifications.d.mts.map +1 -1
- package/resources/notifications.d.ts +27 -1
- package/resources/notifications.d.ts.map +1 -1
- package/resources/notifications.js +17 -0
- package/resources/notifications.js.map +1 -1
- package/resources/notifications.mjs +17 -0
- package/resources/notifications.mjs.map +1 -1
- package/resources/numbers/index.d.mts +1 -1
- package/resources/numbers/index.d.mts.map +1 -1
- package/resources/numbers/index.d.ts +1 -1
- package/resources/numbers/index.d.ts.map +1 -1
- package/resources/numbers/index.js.map +1 -1
- package/resources/numbers/index.mjs +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +60 -1
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +60 -1
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +21 -0
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +21 -0
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +123 -15
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +123 -15
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +2 -11
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +3 -12
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/store/apps.d.mts +23 -2
- package/resources/store/apps.d.mts.map +1 -1
- package/resources/store/apps.d.ts +23 -2
- package/resources/store/apps.d.ts.map +1 -1
- package/resources/tasks/tasks.d.mts +16 -55
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +16 -55
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +2 -10
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +2 -10
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +22 -31
- package/resources/webhooks/deliveries.d.mts.map +1 -1
- package/resources/webhooks/deliveries.d.ts +22 -31
- package/resources/webhooks/deliveries.d.ts.map +1 -1
- package/resources/webhooks/deliveries.js +4 -30
- package/resources/webhooks/deliveries.js.map +1 -1
- package/resources/webhooks/deliveries.mjs +4 -30
- package/resources/webhooks/deliveries.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +1 -0
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -0
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js +3 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs +1 -0
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/integrations.d.mts +77 -0
- package/resources/webhooks/integrations.d.mts.map +1 -0
- package/resources/webhooks/integrations.d.ts +77 -0
- package/resources/webhooks/integrations.d.ts.map +1 -0
- package/resources/webhooks/integrations.js +26 -0
- package/resources/webhooks/integrations.js.map +1 -0
- package/resources/webhooks/integrations.mjs +22 -0
- package/resources/webhooks/integrations.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +279 -71
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +279 -71
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +27 -60
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +27 -60
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +7 -3
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +7 -3
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/actions/actions.d.mts +9 -5
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +9 -5
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +4 -0
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +4 -0
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/events.d.mts +48 -4
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +48 -4
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +334 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -0
- package/resources/workflows/executions/executions.d.ts +334 -0
- package/resources/workflows/executions/executions.d.ts.map +1 -0
- package/resources/workflows/executions/executions.js +49 -0
- package/resources/workflows/executions/executions.js.map +1 -0
- package/resources/workflows/executions/executions.mjs +44 -0
- package/resources/workflows/executions/executions.mjs.map +1 -0
- package/resources/workflows/executions/index.d.mts +3 -0
- package/resources/workflows/executions/index.d.mts.map +1 -0
- package/resources/workflows/executions/index.d.ts +3 -0
- package/resources/workflows/executions/index.d.ts.map +1 -0
- package/resources/workflows/executions/index.js +9 -0
- package/resources/workflows/executions/index.js.map +1 -0
- package/resources/workflows/executions/index.mjs +4 -0
- package/resources/workflows/executions/index.mjs.map +1 -0
- package/resources/workflows/executions/screenshots.d.mts +18 -0
- package/resources/workflows/executions/screenshots.d.mts.map +1 -0
- package/resources/workflows/executions/screenshots.d.ts +18 -0
- package/resources/workflows/executions/screenshots.d.ts.map +1 -0
- package/resources/workflows/executions/screenshots.js +23 -0
- package/resources/workflows/executions/screenshots.js.map +1 -0
- package/resources/workflows/executions/screenshots.mjs +19 -0
- package/resources/workflows/executions/screenshots.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +1 -269
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +1 -269
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +2 -37
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +1 -35
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +39 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +39 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js +4 -0
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs +4 -0
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +529 -18
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +529 -18
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +75 -0
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +75 -0
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +1 -1
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +1 -1
- package/resources/workflows/flows/index.d.ts.map +1 -1
- package/resources/workflows/flows/index.js.map +1 -1
- package/resources/workflows/flows/index.mjs.map +1 -1
- package/resources/workflows/index.d.mts +2 -2
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +2 -2
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js +4 -4
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +107 -9
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +107 -9
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +14 -0
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +14 -0
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +4 -4
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +4 -4
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js +2 -2
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs +2 -2
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +18 -1
- package/src/resources/apps.ts +18 -15
- package/src/resources/assistant/conversations.ts +12 -27
- package/src/resources/connect/connect.ts +6 -0
- package/src/resources/connect/index.ts +3 -0
- package/src/resources/connect/proxies.ts +119 -19
- package/src/resources/devices/browser.ts +9 -3
- package/src/resources/devices/devices.ts +80 -30
- package/src/resources/devices/index.ts +2 -0
- package/src/resources/devices/recordings.ts +4 -2
- package/src/resources/devices/traffic-sessions.ts +2 -19
- package/src/resources/files.ts +8 -29
- package/src/resources/index.ts +11 -1
- package/src/resources/mailboxes/connections.ts +91 -0
- package/src/resources/mailboxes/index.ts +7 -0
- package/src/resources/mailboxes/mailboxes.ts +146 -24
- package/src/resources/messages/index.ts +6 -1
- package/src/resources/messages/messages.ts +55 -1
- package/src/resources/notifications.ts +37 -0
- package/src/resources/numbers/index.ts +7 -1
- package/src/resources/numbers/messages.ts +92 -1
- package/src/resources/numbers/numbers.ts +143 -25
- package/src/resources/store/apps.ts +291 -2
- package/src/resources/tasks/tasks.ts +18 -65
- package/src/resources/webhooks/deliveries.ts +26 -31
- package/src/resources/webhooks/index.ts +6 -0
- package/src/resources/webhooks/integrations.ts +107 -0
- package/src/resources/webhooks/webhooks.ts +326 -71
- package/src/resources/workflows/action-catalog.ts +11 -3
- package/src/resources/workflows/actions/actions.ts +9 -5
- package/src/resources/workflows/events.ts +62 -4
- package/src/resources/workflows/executions/executions.ts +514 -0
- package/src/resources/workflows/executions/index.ts +12 -0
- package/src/resources/workflows/executions/screenshots.ts +34 -0
- package/src/resources/workflows/executions.ts +1 -412
- package/src/resources/workflows/flows/actions.ts +46 -0
- package/src/resources/workflows/flows/flows.ts +765 -17
- package/src/resources/workflows/flows/index.ts +11 -0
- package/src/resources/workflows/index.ts +12 -1
- package/src/resources/workflows/triggers.ts +128 -10
- package/src/resources/workflows/workflows.ts +32 -10
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -3,9 +3,14 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as Shared from '../shared';
|
|
5
5
|
import * as MessagesAPI from './messages';
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
MessageListParams,
|
|
8
|
+
MessageListResponse,
|
|
9
|
+
MessageSendParams,
|
|
10
|
+
MessageSendResponse,
|
|
11
|
+
Messages,
|
|
12
|
+
} from './messages';
|
|
7
13
|
import { APIPromise } from '../../core/api-promise';
|
|
8
|
-
import { buildHeaders } from '../../internal/headers';
|
|
9
14
|
import { RequestOptions } from '../../internal/request-options';
|
|
10
15
|
import { path } from '../../internal/utils/path';
|
|
11
16
|
|
|
@@ -22,18 +27,10 @@ export class Numbers extends APIResource {
|
|
|
22
27
|
* ```
|
|
23
28
|
*/
|
|
24
29
|
create(
|
|
25
|
-
|
|
30
|
+
body: NumberCreateParams | null | undefined = {},
|
|
26
31
|
options?: RequestOptions,
|
|
27
32
|
): APIPromise<NumberCreateResponse> {
|
|
28
|
-
|
|
29
|
-
return this._client.post('/numbers/phones', {
|
|
30
|
-
body,
|
|
31
|
-
...options,
|
|
32
|
-
headers: buildHeaders([
|
|
33
|
-
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
34
|
-
options?.headers,
|
|
35
|
-
]),
|
|
36
|
-
});
|
|
33
|
+
return this._client.post('/numbers/phones', { body, ...options });
|
|
37
34
|
}
|
|
38
35
|
|
|
39
36
|
/**
|
|
@@ -162,10 +159,21 @@ export namespace NumberRetrieveResponse {
|
|
|
162
159
|
export interface Data {
|
|
163
160
|
id: string;
|
|
164
161
|
|
|
162
|
+
/**
|
|
163
|
+
* Actions currently available for this phone number.
|
|
164
|
+
*/
|
|
165
|
+
actions: Data.Actions;
|
|
166
|
+
|
|
165
167
|
cancelAtPeriodEnd: boolean;
|
|
166
168
|
|
|
169
|
+
/**
|
|
170
|
+
* @deprecated Deprecated: use `actions.cancel`
|
|
171
|
+
*/
|
|
167
172
|
cancellable: boolean;
|
|
168
173
|
|
|
174
|
+
/**
|
|
175
|
+
* @deprecated Deprecated: use `actions.send`
|
|
176
|
+
*/
|
|
169
177
|
canSend: boolean;
|
|
170
178
|
|
|
171
179
|
capabilities: Array<'sms' | 'voice'> | null;
|
|
@@ -188,6 +196,26 @@ export namespace NumberRetrieveResponse {
|
|
|
188
196
|
|
|
189
197
|
updatedAt: string | null;
|
|
190
198
|
}
|
|
199
|
+
|
|
200
|
+
export namespace Data {
|
|
201
|
+
/**
|
|
202
|
+
* Actions currently available for this phone number.
|
|
203
|
+
*/
|
|
204
|
+
export interface Actions {
|
|
205
|
+
/**
|
|
206
|
+
* True when DELETE /numbers/phones/{id} would currently succeed.
|
|
207
|
+
*/
|
|
208
|
+
cancel: boolean;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* True when this number passes the send gate of POST
|
|
212
|
+
* /numbers/phones/{id}/messages: self-service sending is switched on and the
|
|
213
|
+
* number is active and able to send SMS. Daily and burst limits and recipient/body
|
|
214
|
+
* checks still apply; the send endpoint stays the final judge.
|
|
215
|
+
*/
|
|
216
|
+
send: boolean;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
191
219
|
}
|
|
192
220
|
|
|
193
221
|
export interface NumberUpdateResponse {
|
|
@@ -198,10 +226,21 @@ export namespace NumberUpdateResponse {
|
|
|
198
226
|
export interface Data {
|
|
199
227
|
id: string;
|
|
200
228
|
|
|
229
|
+
/**
|
|
230
|
+
* Actions currently available for this phone number.
|
|
231
|
+
*/
|
|
232
|
+
actions: Data.Actions;
|
|
233
|
+
|
|
201
234
|
cancelAtPeriodEnd: boolean;
|
|
202
235
|
|
|
236
|
+
/**
|
|
237
|
+
* @deprecated Deprecated: use `actions.cancel`
|
|
238
|
+
*/
|
|
203
239
|
cancellable: boolean;
|
|
204
240
|
|
|
241
|
+
/**
|
|
242
|
+
* @deprecated Deprecated: use `actions.send`
|
|
243
|
+
*/
|
|
205
244
|
canSend: boolean;
|
|
206
245
|
|
|
207
246
|
capabilities: Array<'sms' | 'voice'> | null;
|
|
@@ -224,6 +263,26 @@ export namespace NumberUpdateResponse {
|
|
|
224
263
|
|
|
225
264
|
updatedAt: string | null;
|
|
226
265
|
}
|
|
266
|
+
|
|
267
|
+
export namespace Data {
|
|
268
|
+
/**
|
|
269
|
+
* Actions currently available for this phone number.
|
|
270
|
+
*/
|
|
271
|
+
export interface Actions {
|
|
272
|
+
/**
|
|
273
|
+
* True when DELETE /numbers/phones/{id} would currently succeed.
|
|
274
|
+
*/
|
|
275
|
+
cancel: boolean;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* True when this number passes the send gate of POST
|
|
279
|
+
* /numbers/phones/{id}/messages: self-service sending is switched on and the
|
|
280
|
+
* number is active and able to send SMS. Daily and burst limits and recipient/body
|
|
281
|
+
* checks still apply; the send endpoint stays the final judge.
|
|
282
|
+
*/
|
|
283
|
+
send: boolean;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
227
286
|
}
|
|
228
287
|
|
|
229
288
|
export interface NumberListResponse {
|
|
@@ -236,10 +295,21 @@ export namespace NumberListResponse {
|
|
|
236
295
|
export interface Item {
|
|
237
296
|
id: string;
|
|
238
297
|
|
|
298
|
+
/**
|
|
299
|
+
* Actions currently available for this phone number.
|
|
300
|
+
*/
|
|
301
|
+
actions: Item.Actions;
|
|
302
|
+
|
|
239
303
|
cancelAtPeriodEnd: boolean;
|
|
240
304
|
|
|
305
|
+
/**
|
|
306
|
+
* @deprecated Deprecated: use `actions.cancel`
|
|
307
|
+
*/
|
|
241
308
|
cancellable: boolean;
|
|
242
309
|
|
|
310
|
+
/**
|
|
311
|
+
* @deprecated Deprecated: use `actions.send`
|
|
312
|
+
*/
|
|
243
313
|
canSend: boolean;
|
|
244
314
|
|
|
245
315
|
capabilities: Array<'sms' | 'voice'> | null;
|
|
@@ -262,6 +332,26 @@ export namespace NumberListResponse {
|
|
|
262
332
|
|
|
263
333
|
updatedAt: string | null;
|
|
264
334
|
}
|
|
335
|
+
|
|
336
|
+
export namespace Item {
|
|
337
|
+
/**
|
|
338
|
+
* Actions currently available for this phone number.
|
|
339
|
+
*/
|
|
340
|
+
export interface Actions {
|
|
341
|
+
/**
|
|
342
|
+
* True when DELETE /numbers/phones/{id} would currently succeed.
|
|
343
|
+
*/
|
|
344
|
+
cancel: boolean;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* True when this number passes the send gate of POST
|
|
348
|
+
* /numbers/phones/{id}/messages: self-service sending is switched on and the
|
|
349
|
+
* number is active and able to send SMS. Daily and burst limits and recipient/body
|
|
350
|
+
* checks still apply; the send endpoint stays the final judge.
|
|
351
|
+
*/
|
|
352
|
+
send: boolean;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
265
355
|
}
|
|
266
356
|
|
|
267
357
|
export interface NumberDeleteResponse {
|
|
@@ -272,10 +362,21 @@ export namespace NumberDeleteResponse {
|
|
|
272
362
|
export interface Data {
|
|
273
363
|
id: string;
|
|
274
364
|
|
|
365
|
+
/**
|
|
366
|
+
* Actions currently available for this phone number.
|
|
367
|
+
*/
|
|
368
|
+
actions: Data.Actions;
|
|
369
|
+
|
|
275
370
|
cancelAtPeriodEnd: boolean;
|
|
276
371
|
|
|
372
|
+
/**
|
|
373
|
+
* @deprecated Deprecated: use `actions.cancel`
|
|
374
|
+
*/
|
|
277
375
|
cancellable: boolean;
|
|
278
376
|
|
|
377
|
+
/**
|
|
378
|
+
* @deprecated Deprecated: use `actions.send`
|
|
379
|
+
*/
|
|
279
380
|
canSend: boolean;
|
|
280
381
|
|
|
281
382
|
capabilities: Array<'sms' | 'voice'> | null;
|
|
@@ -298,6 +399,26 @@ export namespace NumberDeleteResponse {
|
|
|
298
399
|
|
|
299
400
|
updatedAt: string | null;
|
|
300
401
|
}
|
|
402
|
+
|
|
403
|
+
export namespace Data {
|
|
404
|
+
/**
|
|
405
|
+
* Actions currently available for this phone number.
|
|
406
|
+
*/
|
|
407
|
+
export interface Actions {
|
|
408
|
+
/**
|
|
409
|
+
* True when DELETE /numbers/phones/{id} would currently succeed.
|
|
410
|
+
*/
|
|
411
|
+
cancel: boolean;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* True when this number passes the send gate of POST
|
|
415
|
+
* /numbers/phones/{id}/messages: self-service sending is switched on and the
|
|
416
|
+
* number is active and able to send SMS. Daily and burst limits and recipient/body
|
|
417
|
+
* checks still apply; the send endpoint stays the final judge.
|
|
418
|
+
*/
|
|
419
|
+
send: boolean;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
301
422
|
}
|
|
302
423
|
|
|
303
424
|
export interface NumberCapacityResponse {
|
|
@@ -362,33 +483,28 @@ export namespace NumberPurposesResponse {
|
|
|
362
483
|
|
|
363
484
|
export interface NumberCreateParams {
|
|
364
485
|
/**
|
|
365
|
-
*
|
|
366
|
-
*
|
|
486
|
+
* Use included capacity when available, require included capacity without paid
|
|
487
|
+
* fallback (included_only), or start a paid checkout (rent).
|
|
367
488
|
*/
|
|
368
489
|
billingPreference?: 'included' | 'included_only' | 'rent';
|
|
369
490
|
|
|
370
491
|
/**
|
|
371
|
-
*
|
|
372
|
-
*
|
|
492
|
+
* Optional ISO 3166-1 alpha-2 country code from GET /numbers/phones/countries.
|
|
493
|
+
* Cannot be combined with `purpose`.
|
|
373
494
|
*/
|
|
374
495
|
country?: string;
|
|
375
496
|
|
|
376
497
|
/**
|
|
377
|
-
*
|
|
378
|
-
*
|
|
379
|
-
*
|
|
498
|
+
* User-defined display label — NFC-normalized, up to 100 GRAPHEMES (not UTF-16
|
|
499
|
+
* code units; an emoji/flag may span several). Display-only, never used for
|
|
500
|
+
* routing. Also seeds the billing entity name at purchase.
|
|
380
501
|
*/
|
|
381
502
|
label?: string | null;
|
|
382
503
|
|
|
383
504
|
/**
|
|
384
|
-
*
|
|
505
|
+
* Optional purpose from GET /numbers/phones/purposes.
|
|
385
506
|
*/
|
|
386
507
|
purpose?: string;
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* Header param: Optional request idempotency key.
|
|
390
|
-
*/
|
|
391
|
-
'Idempotency-Key'?: string;
|
|
392
508
|
}
|
|
393
509
|
|
|
394
510
|
export interface NumberUpdateParams {
|
|
@@ -434,6 +550,8 @@ export declare namespace Numbers {
|
|
|
434
550
|
export {
|
|
435
551
|
Messages as Messages,
|
|
436
552
|
type MessageListResponse as MessageListResponse,
|
|
553
|
+
type MessageSendResponse as MessageSendResponse,
|
|
437
554
|
type MessageListParams as MessageListParams,
|
|
555
|
+
type MessageSendParams as MessageSendParams,
|
|
438
556
|
};
|
|
439
557
|
}
|
|
@@ -63,6 +63,8 @@ export namespace AppRetrieveResponse {
|
|
|
63
63
|
updatedAt: string | null;
|
|
64
64
|
|
|
65
65
|
version: Data.Version;
|
|
66
|
+
|
|
67
|
+
versions: Array<Data.Version>;
|
|
66
68
|
}
|
|
67
69
|
|
|
68
70
|
export namespace Data {
|
|
@@ -335,7 +337,294 @@ export namespace AppRetrieveResponse {
|
|
|
335
337
|
|
|
336
338
|
sizeBytes: number | null;
|
|
337
339
|
|
|
338
|
-
source: 'user' | 'system' | 'portal' | 'store'
|
|
340
|
+
source: 'user' | 'system' | 'portal' | 'store';
|
|
341
|
+
|
|
342
|
+
status: 'queued' | 'available' | 'failed';
|
|
343
|
+
|
|
344
|
+
targetSdk: number | null;
|
|
345
|
+
|
|
346
|
+
updatedAt: string | null;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
350
|
+
*/
|
|
351
|
+
userId: string | null;
|
|
352
|
+
|
|
353
|
+
versionCode: number;
|
|
354
|
+
|
|
355
|
+
versionName: string;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
export interface Version {
|
|
359
|
+
id: string;
|
|
360
|
+
|
|
361
|
+
appId: string;
|
|
362
|
+
|
|
363
|
+
country:
|
|
364
|
+
| 'AF'
|
|
365
|
+
| 'AL'
|
|
366
|
+
| 'DZ'
|
|
367
|
+
| 'AS'
|
|
368
|
+
| 'AD'
|
|
369
|
+
| 'AO'
|
|
370
|
+
| 'AI'
|
|
371
|
+
| 'AQ'
|
|
372
|
+
| 'AG'
|
|
373
|
+
| 'AR'
|
|
374
|
+
| 'AM'
|
|
375
|
+
| 'AW'
|
|
376
|
+
| 'AP'
|
|
377
|
+
| 'AU'
|
|
378
|
+
| 'AT'
|
|
379
|
+
| 'AZ'
|
|
380
|
+
| 'BS'
|
|
381
|
+
| 'BH'
|
|
382
|
+
| 'BD'
|
|
383
|
+
| 'BB'
|
|
384
|
+
| 'BY'
|
|
385
|
+
| 'BE'
|
|
386
|
+
| 'BZ'
|
|
387
|
+
| 'BJ'
|
|
388
|
+
| 'BM'
|
|
389
|
+
| 'BT'
|
|
390
|
+
| 'BO'
|
|
391
|
+
| 'BQ'
|
|
392
|
+
| 'BA'
|
|
393
|
+
| 'BW'
|
|
394
|
+
| 'BV'
|
|
395
|
+
| 'BR'
|
|
396
|
+
| 'IO'
|
|
397
|
+
| 'BN'
|
|
398
|
+
| 'BG'
|
|
399
|
+
| 'BF'
|
|
400
|
+
| 'BI'
|
|
401
|
+
| 'KH'
|
|
402
|
+
| 'CM'
|
|
403
|
+
| 'CA'
|
|
404
|
+
| 'CV'
|
|
405
|
+
| 'KY'
|
|
406
|
+
| 'CF'
|
|
407
|
+
| 'TD'
|
|
408
|
+
| 'CL'
|
|
409
|
+
| 'CN'
|
|
410
|
+
| 'CX'
|
|
411
|
+
| 'CC'
|
|
412
|
+
| 'CO'
|
|
413
|
+
| 'KM'
|
|
414
|
+
| 'CG'
|
|
415
|
+
| 'CD'
|
|
416
|
+
| 'CK'
|
|
417
|
+
| 'CR'
|
|
418
|
+
| 'HR'
|
|
419
|
+
| 'CU'
|
|
420
|
+
| 'CW'
|
|
421
|
+
| 'CY'
|
|
422
|
+
| 'CZ'
|
|
423
|
+
| 'CI'
|
|
424
|
+
| 'DK'
|
|
425
|
+
| 'DJ'
|
|
426
|
+
| 'DM'
|
|
427
|
+
| 'DO'
|
|
428
|
+
| 'EC'
|
|
429
|
+
| 'EG'
|
|
430
|
+
| 'SV'
|
|
431
|
+
| 'GQ'
|
|
432
|
+
| 'ER'
|
|
433
|
+
| 'EE'
|
|
434
|
+
| 'ET'
|
|
435
|
+
| 'FK'
|
|
436
|
+
| 'FO'
|
|
437
|
+
| 'FJ'
|
|
438
|
+
| 'FI'
|
|
439
|
+
| 'FR'
|
|
440
|
+
| 'GF'
|
|
441
|
+
| 'PF'
|
|
442
|
+
| 'TF'
|
|
443
|
+
| 'GA'
|
|
444
|
+
| 'GM'
|
|
445
|
+
| 'GE'
|
|
446
|
+
| 'DE'
|
|
447
|
+
| 'GH'
|
|
448
|
+
| 'GI'
|
|
449
|
+
| 'GR'
|
|
450
|
+
| 'GL'
|
|
451
|
+
| 'GD'
|
|
452
|
+
| 'GP'
|
|
453
|
+
| 'GU'
|
|
454
|
+
| 'GT'
|
|
455
|
+
| 'GG'
|
|
456
|
+
| 'GN'
|
|
457
|
+
| 'GW'
|
|
458
|
+
| 'GY'
|
|
459
|
+
| 'HT'
|
|
460
|
+
| 'HM'
|
|
461
|
+
| 'VA'
|
|
462
|
+
| 'HN'
|
|
463
|
+
| 'HK'
|
|
464
|
+
| 'HU'
|
|
465
|
+
| 'IS'
|
|
466
|
+
| 'IN'
|
|
467
|
+
| 'ID'
|
|
468
|
+
| 'IR'
|
|
469
|
+
| 'IQ'
|
|
470
|
+
| 'IE'
|
|
471
|
+
| 'IM'
|
|
472
|
+
| 'IL'
|
|
473
|
+
| 'IT'
|
|
474
|
+
| 'JM'
|
|
475
|
+
| 'JP'
|
|
476
|
+
| 'JE'
|
|
477
|
+
| 'JO'
|
|
478
|
+
| 'KZ'
|
|
479
|
+
| 'KE'
|
|
480
|
+
| 'KI'
|
|
481
|
+
| 'KR'
|
|
482
|
+
| 'KW'
|
|
483
|
+
| 'KG'
|
|
484
|
+
| 'LA'
|
|
485
|
+
| 'LV'
|
|
486
|
+
| 'LB'
|
|
487
|
+
| 'LS'
|
|
488
|
+
| 'LR'
|
|
489
|
+
| 'LY'
|
|
490
|
+
| 'LI'
|
|
491
|
+
| 'LT'
|
|
492
|
+
| 'LU'
|
|
493
|
+
| 'MO'
|
|
494
|
+
| 'MG'
|
|
495
|
+
| 'MW'
|
|
496
|
+
| 'MY'
|
|
497
|
+
| 'MV'
|
|
498
|
+
| 'ML'
|
|
499
|
+
| 'MT'
|
|
500
|
+
| 'MH'
|
|
501
|
+
| 'MQ'
|
|
502
|
+
| 'MR'
|
|
503
|
+
| 'MU'
|
|
504
|
+
| 'YT'
|
|
505
|
+
| 'MX'
|
|
506
|
+
| 'FM'
|
|
507
|
+
| 'MD'
|
|
508
|
+
| 'MC'
|
|
509
|
+
| 'MN'
|
|
510
|
+
| 'ME'
|
|
511
|
+
| 'MS'
|
|
512
|
+
| 'MA'
|
|
513
|
+
| 'MZ'
|
|
514
|
+
| 'MM'
|
|
515
|
+
| 'NA'
|
|
516
|
+
| 'NR'
|
|
517
|
+
| 'NP'
|
|
518
|
+
| 'NL'
|
|
519
|
+
| 'AN'
|
|
520
|
+
| 'NC'
|
|
521
|
+
| 'NZ'
|
|
522
|
+
| 'NI'
|
|
523
|
+
| 'NE'
|
|
524
|
+
| 'NG'
|
|
525
|
+
| 'NU'
|
|
526
|
+
| 'NF'
|
|
527
|
+
| 'KP'
|
|
528
|
+
| 'MK'
|
|
529
|
+
| 'MP'
|
|
530
|
+
| 'NO'
|
|
531
|
+
| 'OM'
|
|
532
|
+
| 'PK'
|
|
533
|
+
| 'PW'
|
|
534
|
+
| 'PS'
|
|
535
|
+
| 'PA'
|
|
536
|
+
| 'PG'
|
|
537
|
+
| 'PY'
|
|
538
|
+
| 'PE'
|
|
539
|
+
| 'PH'
|
|
540
|
+
| 'PN'
|
|
541
|
+
| 'PL'
|
|
542
|
+
| 'PT'
|
|
543
|
+
| 'PR'
|
|
544
|
+
| 'QA'
|
|
545
|
+
| 'RE'
|
|
546
|
+
| 'RO'
|
|
547
|
+
| 'RU'
|
|
548
|
+
| 'RW'
|
|
549
|
+
| 'BL'
|
|
550
|
+
| 'SH'
|
|
551
|
+
| 'KN'
|
|
552
|
+
| 'LC'
|
|
553
|
+
| 'MF'
|
|
554
|
+
| 'PM'
|
|
555
|
+
| 'VC'
|
|
556
|
+
| 'WS'
|
|
557
|
+
| 'SM'
|
|
558
|
+
| 'ST'
|
|
559
|
+
| 'SA'
|
|
560
|
+
| 'SN'
|
|
561
|
+
| 'RS'
|
|
562
|
+
| 'CS'
|
|
563
|
+
| 'SC'
|
|
564
|
+
| 'SL'
|
|
565
|
+
| 'SG'
|
|
566
|
+
| 'SX'
|
|
567
|
+
| 'SK'
|
|
568
|
+
| 'SI'
|
|
569
|
+
| 'SB'
|
|
570
|
+
| 'SO'
|
|
571
|
+
| 'ZA'
|
|
572
|
+
| 'GS'
|
|
573
|
+
| 'SS'
|
|
574
|
+
| 'ES'
|
|
575
|
+
| 'LK'
|
|
576
|
+
| 'SD'
|
|
577
|
+
| 'SR'
|
|
578
|
+
| 'SJ'
|
|
579
|
+
| 'SZ'
|
|
580
|
+
| 'SE'
|
|
581
|
+
| 'CH'
|
|
582
|
+
| 'SY'
|
|
583
|
+
| 'TW'
|
|
584
|
+
| 'TJ'
|
|
585
|
+
| 'TZ'
|
|
586
|
+
| 'TH'
|
|
587
|
+
| 'TL'
|
|
588
|
+
| 'TG'
|
|
589
|
+
| 'TK'
|
|
590
|
+
| 'TO'
|
|
591
|
+
| 'TT'
|
|
592
|
+
| 'TN'
|
|
593
|
+
| 'TR'
|
|
594
|
+
| 'TM'
|
|
595
|
+
| 'TC'
|
|
596
|
+
| 'TV'
|
|
597
|
+
| 'UG'
|
|
598
|
+
| 'UA'
|
|
599
|
+
| 'AE'
|
|
600
|
+
| 'GB'
|
|
601
|
+
| 'US'
|
|
602
|
+
| 'UM'
|
|
603
|
+
| 'UY'
|
|
604
|
+
| 'UZ'
|
|
605
|
+
| 'VU'
|
|
606
|
+
| 'VE'
|
|
607
|
+
| 'VN'
|
|
608
|
+
| 'VG'
|
|
609
|
+
| 'VI'
|
|
610
|
+
| 'WF'
|
|
611
|
+
| 'EH'
|
|
612
|
+
| 'YE'
|
|
613
|
+
| 'ZM'
|
|
614
|
+
| 'ZW'
|
|
615
|
+
| 'AX';
|
|
616
|
+
|
|
617
|
+
createdAt: string | null;
|
|
618
|
+
|
|
619
|
+
createdBy: string | null;
|
|
620
|
+
|
|
621
|
+
ownerId: string | null;
|
|
622
|
+
|
|
623
|
+
queuedAt: string | null;
|
|
624
|
+
|
|
625
|
+
sizeBytes: number | null;
|
|
626
|
+
|
|
627
|
+
source: 'user' | 'system' | 'portal' | 'store';
|
|
339
628
|
|
|
340
629
|
status: 'queued' | 'available' | 'failed';
|
|
341
630
|
|
|
@@ -658,7 +947,7 @@ export namespace AppListResponse {
|
|
|
658
947
|
|
|
659
948
|
sizeBytes: number | null;
|
|
660
949
|
|
|
661
|
-
source: 'user' | 'system' | 'portal' | 'store'
|
|
950
|
+
source: 'user' | 'system' | 'portal' | 'store';
|
|
662
951
|
|
|
663
952
|
status: 'queued' | 'available' | 'failed';
|
|
664
953
|
|