@mobilerun/sdk 5.4.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/client.d.mts +10 -13
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -13
- package/client.d.ts.map +1 -1
- package/client.js +1 -3
- package/client.js.map +1 -1
- package/client.mjs +2 -4
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +23 -12
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +23 -12
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +8 -3
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +8 -3
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +33 -21
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +33 -21
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +16 -15
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +16 -15
- package/resources/assistant/conversations.mjs.map +1 -1
- package/resources/connect/connect.d.mts +2 -2
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +2 -2
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +118 -19
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +118 -19
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +19 -0
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +19 -0
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/devices/apps.d.mts +37 -17
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +37 -17
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +15 -14
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +15 -14
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/browser.d.mts +9 -3
- package/resources/devices/browser.d.mts.map +1 -1
- package/resources/devices/browser.d.ts +9 -3
- package/resources/devices/browser.d.ts.map +1 -1
- package/resources/devices/browser.js +9 -3
- package/resources/devices/browser.js.map +1 -1
- package/resources/devices/browser.mjs +9 -3
- package/resources/devices/browser.mjs.map +1 -1
- package/resources/devices/devices.d.mts +81 -27
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +81 -27
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +24 -11
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +24 -11
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +2 -1
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +2 -1
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +3 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +1 -0
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +9 -3
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +9 -3
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.js +3 -3
- package/resources/devices/keyboard.mjs +3 -3
- package/resources/devices/recordings.d.mts +13 -0
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +13 -0
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.d.mts +163 -0
- package/resources/devices/traffic-sessions.d.mts.map +1 -0
- package/resources/devices/traffic-sessions.d.ts +163 -0
- package/resources/devices/traffic-sessions.d.ts.map +1 -0
- package/resources/devices/traffic-sessions.js +37 -0
- package/resources/devices/traffic-sessions.js.map +1 -0
- package/resources/devices/traffic-sessions.mjs +33 -0
- package/resources/devices/traffic-sessions.mjs.map +1 -0
- package/resources/files.d.mts +77 -19
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +77 -19
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +2 -10
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +2 -10
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +5 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -2
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +64 -0
- package/resources/mailboxes/connections.d.mts.map +1 -0
- package/resources/mailboxes/connections.d.ts +64 -0
- package/resources/mailboxes/connections.d.ts.map +1 -0
- package/resources/mailboxes/connections.js +42 -0
- package/resources/mailboxes/connections.js.map +1 -0
- package/resources/mailboxes/connections.mjs +38 -0
- package/resources/mailboxes/connections.mjs.map +1 -0
- package/resources/mailboxes/index.d.mts +2 -1
- package/resources/mailboxes/index.d.mts.map +1 -1
- package/resources/mailboxes/index.d.ts +2 -1
- package/resources/mailboxes/index.d.ts.map +1 -1
- package/resources/mailboxes/index.js +3 -1
- package/resources/mailboxes/index.js.map +1 -1
- package/resources/mailboxes/index.mjs +1 -0
- package/resources/mailboxes/index.mjs.map +1 -1
- package/resources/mailboxes/mailboxes.d.mts +107 -50
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +107 -50
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +34 -24
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +34 -24
- package/resources/mailboxes/mailboxes.mjs.map +1 -1
- package/resources/mailboxes/messages.d.mts +2 -2
- package/resources/mailboxes/messages.d.ts +2 -2
- package/resources/mailboxes/messages.js +2 -2
- package/resources/mailboxes/messages.mjs +2 -2
- package/resources/messages/conversations.d.mts +4 -15
- package/resources/messages/conversations.d.mts.map +1 -1
- package/resources/messages/conversations.d.ts +4 -15
- package/resources/messages/conversations.d.ts.map +1 -1
- package/resources/messages/conversations.js +4 -15
- package/resources/messages/conversations.js.map +1 -1
- package/resources/messages/conversations.mjs +4 -15
- package/resources/messages/conversations.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +28 -5
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +28 -5
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +11 -4
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +11 -4
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/notifications.d.mts +27 -1
- package/resources/notifications.d.mts.map +1 -1
- package/resources/notifications.d.ts +27 -1
- package/resources/notifications.d.ts.map +1 -1
- package/resources/notifications.js +17 -0
- package/resources/notifications.js.map +1 -1
- package/resources/notifications.mjs +17 -0
- package/resources/notifications.mjs.map +1 -1
- package/resources/numbers/index.d.mts +2 -2
- package/resources/numbers/index.d.mts.map +1 -1
- package/resources/numbers/index.d.ts +2 -2
- package/resources/numbers/index.d.ts.map +1 -1
- package/resources/numbers/index.js.map +1 -1
- package/resources/numbers/index.mjs +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +60 -1
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +60 -1
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +21 -0
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +21 -0
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +167 -46
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +167 -46
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +25 -40
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +26 -41
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/store/apps.d.mts +23 -2
- package/resources/store/apps.d.mts.map +1 -1
- package/resources/store/apps.d.ts +23 -2
- package/resources/store/apps.d.ts.map +1 -1
- package/resources/tasks/tasks.d.mts +84 -75
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +84 -75
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +2 -10
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +2 -10
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +22 -31
- package/resources/webhooks/deliveries.d.mts.map +1 -1
- package/resources/webhooks/deliveries.d.ts +22 -31
- package/resources/webhooks/deliveries.d.ts.map +1 -1
- package/resources/webhooks/deliveries.js +4 -30
- package/resources/webhooks/deliveries.js.map +1 -1
- package/resources/webhooks/deliveries.mjs +4 -30
- package/resources/webhooks/deliveries.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +1 -0
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -0
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js +3 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs +1 -0
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/integrations.d.mts +77 -0
- package/resources/webhooks/integrations.d.mts.map +1 -0
- package/resources/webhooks/integrations.d.ts +77 -0
- package/resources/webhooks/integrations.d.ts.map +1 -0
- package/resources/webhooks/integrations.js +26 -0
- package/resources/webhooks/integrations.js.map +1 -0
- package/resources/webhooks/integrations.mjs +22 -0
- package/resources/webhooks/integrations.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +280 -71
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +280 -71
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +27 -60
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +27 -60
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +7 -3
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +7 -3
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/actions/actions.d.mts +9 -5
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +9 -5
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +4 -0
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +4 -0
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/events.d.mts +66 -4
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +66 -4
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +334 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -0
- package/resources/workflows/executions/executions.d.ts +334 -0
- package/resources/workflows/executions/executions.d.ts.map +1 -0
- package/resources/workflows/executions/executions.js +49 -0
- package/resources/workflows/executions/executions.js.map +1 -0
- package/resources/workflows/executions/executions.mjs +44 -0
- package/resources/workflows/executions/executions.mjs.map +1 -0
- package/resources/workflows/executions/index.d.mts +3 -0
- package/resources/workflows/executions/index.d.mts.map +1 -0
- package/resources/workflows/executions/index.d.ts +3 -0
- package/resources/workflows/executions/index.d.ts.map +1 -0
- package/resources/workflows/executions/index.js +9 -0
- package/resources/workflows/executions/index.js.map +1 -0
- package/resources/workflows/executions/index.mjs +4 -0
- package/resources/workflows/executions/index.mjs.map +1 -0
- package/resources/workflows/executions/screenshots.d.mts +18 -0
- package/resources/workflows/executions/screenshots.d.mts.map +1 -0
- package/resources/workflows/executions/screenshots.d.ts +18 -0
- package/resources/workflows/executions/screenshots.d.ts.map +1 -0
- package/resources/workflows/executions/screenshots.js +23 -0
- package/resources/workflows/executions/screenshots.js.map +1 -0
- package/resources/workflows/executions/screenshots.mjs +19 -0
- package/resources/workflows/executions/screenshots.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +1 -190
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +1 -190
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +2 -36
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +1 -34
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +58 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +58 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js +4 -0
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs +4 -0
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +666 -15
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +666 -15
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +86 -1
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +86 -1
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +1 -1
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +1 -1
- package/resources/workflows/flows/index.d.ts.map +1 -1
- package/resources/workflows/flows/index.js.map +1 -1
- package/resources/workflows/flows/index.mjs.map +1 -1
- package/resources/workflows/index.d.mts +2 -2
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +2 -2
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js +4 -4
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +118 -6
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +118 -6
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +14 -0
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +14 -0
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +4 -4
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +4 -4
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js +2 -2
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs +2 -2
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +22 -42
- package/src/resources/apps.ts +24 -12
- package/src/resources/assistant/conversations.ts +50 -31
- package/src/resources/connect/connect.ts +6 -0
- package/src/resources/connect/index.ts +3 -0
- package/src/resources/connect/proxies.ts +146 -18
- package/src/resources/devices/apps.ts +41 -17
- package/src/resources/devices/browser.ts +9 -3
- package/src/resources/devices/devices.ts +138 -34
- package/src/resources/devices/index.ts +13 -0
- package/src/resources/devices/keyboard.ts +10 -3
- package/src/resources/devices/recordings.ts +14 -0
- package/src/resources/devices/traffic-sessions.ts +282 -0
- package/src/resources/files.ts +122 -29
- package/src/resources/index.ts +13 -20
- package/src/resources/mailboxes/connections.ts +91 -0
- package/src/resources/mailboxes/index.ts +7 -0
- package/src/resources/mailboxes/mailboxes.ts +190 -49
- package/src/resources/mailboxes/messages.ts +2 -2
- package/src/resources/messages/conversations.ts +4 -15
- package/src/resources/messages/index.ts +6 -1
- package/src/resources/messages/messages.ts +57 -5
- package/src/resources/notifications.ts +37 -0
- package/src/resources/numbers/index.ts +9 -1
- package/src/resources/numbers/messages.ts +92 -1
- package/src/resources/numbers/numbers.ts +197 -55
- package/src/resources/store/apps.ts +291 -2
- package/src/resources/tasks/tasks.ts +126 -93
- package/src/resources/webhooks/deliveries.ts +26 -31
- package/src/resources/webhooks/index.ts +6 -0
- package/src/resources/webhooks/integrations.ts +107 -0
- package/src/resources/webhooks/webhooks.ts +328 -71
- package/src/resources/workflows/action-catalog.ts +11 -3
- package/src/resources/workflows/actions/actions.ts +9 -5
- package/src/resources/workflows/events.ts +86 -4
- package/src/resources/workflows/executions/executions.ts +514 -0
- package/src/resources/workflows/executions/index.ts +12 -0
- package/src/resources/workflows/executions/screenshots.ts +34 -0
- package/src/resources/workflows/executions.ts +1 -296
- package/src/resources/workflows/flows/actions.ts +72 -0
- package/src/resources/workflows/flows/flows.ts +1058 -129
- package/src/resources/workflows/flows/index.ts +12 -0
- package/src/resources/workflows/index.ts +13 -1
- package/src/resources/workflows/triggers.ts +140 -6
- package/src/resources/workflows/workflows.ts +34 -10
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/esims/esims.d.mts +0 -566
- package/resources/esims/esims.d.mts.map +0 -1
- package/resources/esims/esims.d.ts +0 -566
- package/resources/esims/esims.d.ts.map +0 -1
- package/resources/esims/esims.js +0 -205
- package/resources/esims/esims.js.map +0 -1
- package/resources/esims/esims.mjs +0 -200
- package/resources/esims/esims.mjs.map +0 -1
- package/resources/esims/index.d.mts +0 -3
- package/resources/esims/index.d.mts.map +0 -1
- package/resources/esims/index.d.ts +0 -3
- package/resources/esims/index.d.ts.map +0 -1
- package/resources/esims/index.js +0 -9
- package/resources/esims/index.js.map +0 -1
- package/resources/esims/index.mjs +0 -4
- package/resources/esims/index.mjs.map +0 -1
- package/resources/esims/messages.d.mts +0 -106
- package/resources/esims/messages.d.mts.map +0 -1
- package/resources/esims/messages.d.ts +0 -106
- package/resources/esims/messages.d.ts.map +0 -1
- package/resources/esims/messages.js +0 -37
- package/resources/esims/messages.js.map +0 -1
- package/resources/esims/messages.mjs +0 -33
- package/resources/esims/messages.mjs.map +0 -1
- package/resources/esims.d.mts +0 -2
- package/resources/esims.d.mts.map +0 -1
- package/resources/esims.d.ts +0 -2
- package/resources/esims.d.ts.map +0 -1
- package/resources/esims.js +0 -6
- package/resources/esims.js.map +0 -1
- package/resources/esims.mjs +0 -3
- package/resources/esims.mjs.map +0 -1
- package/src/resources/esims/esims.ts +0 -1019
- package/src/resources/esims/index.ts +0 -28
- package/src/resources/esims/messages.ts +0 -187
- package/src/resources/esims.ts +0 -3
|
@@ -5,6 +5,27 @@ import { APIPromise } from '../core/api-promise';
|
|
|
5
5
|
import { RequestOptions } from '../internal/request-options';
|
|
6
6
|
|
|
7
7
|
export class Notifications extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Replaces your muted event types with a server-computed preset: `recommended`
|
|
10
|
+
* mutes the mobilerun-default noisy lifecycle/progress events, `failures` mutes
|
|
11
|
+
* everything except failures/timeouts/invalid runs, and `everything` unmutes all.
|
|
12
|
+
* The response returns the muted types that were actually stored.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const response =
|
|
17
|
+
* await client.notifications.applyPreferencesPreset({
|
|
18
|
+
* preset: 'recommended',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
applyPreferencesPreset(
|
|
23
|
+
body: NotificationApplyPreferencesPresetParams,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): APIPromise<NotificationApplyPreferencesPresetResponse> {
|
|
26
|
+
return this._client.post('/notifications/preferences/apply-preset', { body, ...options });
|
|
27
|
+
}
|
|
28
|
+
|
|
8
29
|
/**
|
|
9
30
|
* Returns the catalog of notifiable event types grouped by source category. Each
|
|
10
31
|
* event lists its type identifier, label, and description, which can be referenced
|
|
@@ -58,6 +79,16 @@ export class Notifications extends APIResource {
|
|
|
58
79
|
}
|
|
59
80
|
}
|
|
60
81
|
|
|
82
|
+
export interface NotificationApplyPreferencesPresetResponse {
|
|
83
|
+
data: NotificationApplyPreferencesPresetResponse.Data;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export namespace NotificationApplyPreferencesPresetResponse {
|
|
87
|
+
export interface Data {
|
|
88
|
+
mutedTypes: Array<string>;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
61
92
|
export interface NotificationCatalogResponse {
|
|
62
93
|
data: Array<NotificationCatalogResponse.Data>;
|
|
63
94
|
}
|
|
@@ -104,15 +135,21 @@ export namespace NotificationUpdatePreferencesResponse {
|
|
|
104
135
|
}
|
|
105
136
|
}
|
|
106
137
|
|
|
138
|
+
export interface NotificationApplyPreferencesPresetParams {
|
|
139
|
+
preset: 'recommended' | 'failures' | 'everything';
|
|
140
|
+
}
|
|
141
|
+
|
|
107
142
|
export interface NotificationUpdatePreferencesParams {
|
|
108
143
|
mutedTypes: Array<string>;
|
|
109
144
|
}
|
|
110
145
|
|
|
111
146
|
export declare namespace Notifications {
|
|
112
147
|
export {
|
|
148
|
+
type NotificationApplyPreferencesPresetResponse as NotificationApplyPreferencesPresetResponse,
|
|
113
149
|
type NotificationCatalogResponse as NotificationCatalogResponse,
|
|
114
150
|
type NotificationGetPreferencesResponse as NotificationGetPreferencesResponse,
|
|
115
151
|
type NotificationUpdatePreferencesResponse as NotificationUpdatePreferencesResponse,
|
|
152
|
+
type NotificationApplyPreferencesPresetParams as NotificationApplyPreferencesPresetParams,
|
|
116
153
|
type NotificationUpdatePreferencesParams as NotificationUpdatePreferencesParams,
|
|
117
154
|
};
|
|
118
155
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export {
|
|
4
|
+
Messages,
|
|
5
|
+
type MessageListResponse,
|
|
6
|
+
type MessageSendResponse,
|
|
7
|
+
type MessageListParams,
|
|
8
|
+
type MessageSendParams,
|
|
9
|
+
} from './messages';
|
|
4
10
|
export {
|
|
5
11
|
Numbers,
|
|
6
12
|
type NumberCreateResponse,
|
|
@@ -8,9 +14,11 @@ export {
|
|
|
8
14
|
type NumberUpdateResponse,
|
|
9
15
|
type NumberListResponse,
|
|
10
16
|
type NumberDeleteResponse,
|
|
17
|
+
type NumberCapacityResponse,
|
|
11
18
|
type NumberCountriesResponse,
|
|
12
19
|
type NumberPurposesResponse,
|
|
13
20
|
type NumberCreateParams,
|
|
14
21
|
type NumberUpdateParams,
|
|
15
22
|
type NumberListParams,
|
|
23
|
+
type NumberCapacityParams,
|
|
16
24
|
} from './numbers';
|
|
@@ -26,6 +26,28 @@ export class Messages extends APIResource {
|
|
|
26
26
|
): APIPromise<MessageListResponse> {
|
|
27
27
|
return this._client.get(path`/numbers/phones/${id}/messages`, { query, ...options });
|
|
28
28
|
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Queues an SMS from one of the caller's numbers that can send. Same idempotency
|
|
32
|
+
* contract as the eSIM send: replaying an Idempotency-Key with the same payload
|
|
33
|
+
* returns the original message, reusing it with a different payload returns 422.
|
|
34
|
+
* 409 capability_unavailable: this number cannot send right now. 422
|
|
35
|
+
* invalid_recipient / unsupported_destination / body_too_long: the recipient or
|
|
36
|
+
* text does not fit the number. 429 daily_limit_reached: the rolling 24 h limit
|
|
37
|
+
* for the account is used up; 429 rate_limited: too many sends in a short window.
|
|
38
|
+
* 403 send_disabled: self-service SMS send is switched off.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const response = await client.numbers.messages.send(
|
|
43
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
44
|
+
* { body: 'x', to: '+15551230001' },
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
send(id: string, body: MessageSendParams, options?: RequestOptions): APIPromise<MessageSendResponse> {
|
|
49
|
+
return this._client.post(path`/numbers/phones/${id}/messages`, { body, ...options });
|
|
50
|
+
}
|
|
29
51
|
}
|
|
30
52
|
|
|
31
53
|
export interface MessageListResponse {
|
|
@@ -68,6 +90,44 @@ export namespace MessageListResponse {
|
|
|
68
90
|
}
|
|
69
91
|
}
|
|
70
92
|
|
|
93
|
+
export interface MessageSendResponse {
|
|
94
|
+
data: MessageSendResponse.Data;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export namespace MessageSendResponse {
|
|
98
|
+
export interface Data {
|
|
99
|
+
id: string;
|
|
100
|
+
|
|
101
|
+
body: string | null;
|
|
102
|
+
|
|
103
|
+
createdAt: string;
|
|
104
|
+
|
|
105
|
+
deliveryStatus: string | null;
|
|
106
|
+
|
|
107
|
+
detectedSender: string | null;
|
|
108
|
+
|
|
109
|
+
direction: 'inbound' | 'outbound';
|
|
110
|
+
|
|
111
|
+
esimId: string | null;
|
|
112
|
+
|
|
113
|
+
occurredAt: string;
|
|
114
|
+
|
|
115
|
+
peerKey: string | null;
|
|
116
|
+
|
|
117
|
+
peerNumber: string | null;
|
|
118
|
+
|
|
119
|
+
status:
|
|
120
|
+
| 'received'
|
|
121
|
+
| 'queued'
|
|
122
|
+
| 'claimed'
|
|
123
|
+
| 'sending'
|
|
124
|
+
| 'sent'
|
|
125
|
+
| 'sent_unconfirmed'
|
|
126
|
+
| 'delivered'
|
|
127
|
+
| 'failed';
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
71
131
|
export interface MessageListParams {
|
|
72
132
|
direction?: 'all' | 'inbound' | 'outbound';
|
|
73
133
|
|
|
@@ -78,6 +138,37 @@ export interface MessageListParams {
|
|
|
78
138
|
since?: string;
|
|
79
139
|
}
|
|
80
140
|
|
|
141
|
+
export interface MessageSendParams {
|
|
142
|
+
/**
|
|
143
|
+
* SMS body text, up to 1600 characters (rejected with 400 beyond that, before
|
|
144
|
+
* hashing). A number's own limit may be lower and is answered 422 body_too_long.
|
|
145
|
+
*/
|
|
146
|
+
body: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Recipient phone number, as E.164 or a US 10/11-digit number. Destinations the
|
|
150
|
+
* number cannot send to are rejected with 422 unsupported_destination, non-numbers
|
|
151
|
+
* with 422 invalid_recipient.
|
|
152
|
+
*/
|
|
153
|
+
to: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @deprecated Deprecated: use the Idempotency-Key header instead. Optional
|
|
157
|
+
* idempotency key. Replaying the same key and payload returns the original send.
|
|
158
|
+
*/
|
|
159
|
+
clientRequestId?: string;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Request a delivery report. Defaults to false.
|
|
163
|
+
*/
|
|
164
|
+
deliveryReport?: boolean;
|
|
165
|
+
}
|
|
166
|
+
|
|
81
167
|
export declare namespace Messages {
|
|
82
|
-
export {
|
|
168
|
+
export {
|
|
169
|
+
type MessageListResponse as MessageListResponse,
|
|
170
|
+
type MessageSendResponse as MessageSendResponse,
|
|
171
|
+
type MessageListParams as MessageListParams,
|
|
172
|
+
type MessageSendParams as MessageSendParams,
|
|
173
|
+
};
|
|
83
174
|
}
|
|
@@ -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
|
|
|
@@ -13,9 +18,8 @@ export class Numbers extends APIResource {
|
|
|
13
18
|
messages: MessagesAPI.Messages = new MessagesAPI.Messages(this._client);
|
|
14
19
|
|
|
15
20
|
/**
|
|
16
|
-
* Starts a
|
|
17
|
-
*
|
|
18
|
-
* its business state. `purpose` and `country` are mutually exclusive.
|
|
21
|
+
* Starts a phone-number purchase. Poll the returned phone number for status
|
|
22
|
+
* updates. `purpose` and `country` cannot be combined.
|
|
19
23
|
*
|
|
20
24
|
* @example
|
|
21
25
|
* ```ts
|
|
@@ -23,18 +27,10 @@ export class Numbers extends APIResource {
|
|
|
23
27
|
* ```
|
|
24
28
|
*/
|
|
25
29
|
create(
|
|
26
|
-
|
|
30
|
+
body: NumberCreateParams | null | undefined = {},
|
|
27
31
|
options?: RequestOptions,
|
|
28
32
|
): APIPromise<NumberCreateResponse> {
|
|
29
|
-
|
|
30
|
-
return this._client.post('/numbers/phones', {
|
|
31
|
-
body,
|
|
32
|
-
...options,
|
|
33
|
-
headers: buildHeaders([
|
|
34
|
-
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
35
|
-
options?.headers,
|
|
36
|
-
]),
|
|
37
|
-
});
|
|
33
|
+
return this._client.post('/numbers/phones', { body, ...options });
|
|
38
34
|
}
|
|
39
35
|
|
|
40
36
|
/**
|
|
@@ -52,11 +48,8 @@ export class Numbers extends APIResource {
|
|
|
52
48
|
}
|
|
53
49
|
|
|
54
50
|
/**
|
|
55
|
-
* Updates the
|
|
56
|
-
*
|
|
57
|
-
* capped at 100 characters, is display-only, and never affects routing. It also
|
|
58
|
-
* seeds the billing entity name when set at purchase time; a later change here
|
|
59
|
-
* does not rename the already-created billing entity.
|
|
51
|
+
* Updates the display label. Omitting `label` leaves it unchanged; null or an
|
|
52
|
+
* empty string clears it.
|
|
60
53
|
*
|
|
61
54
|
* @example
|
|
62
55
|
* ```ts
|
|
@@ -74,8 +67,7 @@ export class Numbers extends APIResource {
|
|
|
74
67
|
}
|
|
75
68
|
|
|
76
69
|
/**
|
|
77
|
-
* Lists
|
|
78
|
-
* provisioned (`mobilerun`) numbers.
|
|
70
|
+
* Lists the caller's phone numbers.
|
|
79
71
|
*
|
|
80
72
|
* @example
|
|
81
73
|
* ```ts
|
|
@@ -90,23 +82,9 @@ export class Numbers extends APIResource {
|
|
|
90
82
|
}
|
|
91
83
|
|
|
92
84
|
/**
|
|
93
|
-
* Cancels a
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* being processed, the checkout is closed immediately and the number is retired.
|
|
97
|
-
* - If the number is on the standard paid plan and already paid and in service,
|
|
98
|
-
* cancellation is scheduled for the end of the current billing period rather
|
|
99
|
-
* than taking effect immediately. The number stays usable through the period
|
|
100
|
-
* already paid for, with no partial refund. Calling this again while a
|
|
101
|
-
* cancellation is already scheduled is a no-op that returns the same result. The
|
|
102
|
-
* response's `state` reflects this as `cancel_scheduled` with
|
|
103
|
-
* `cancelAtPeriodEnd: true`; `currentPeriodEnd` is populated once billing
|
|
104
|
-
* confirms the cancellation.
|
|
105
|
-
*
|
|
106
|
-
* Any other state (already refunding, a permanent billing failure, a payment
|
|
107
|
-
* currently being processed, an included-plan number, or a non-hosted/BYO number)
|
|
108
|
-
* returns 409 `not_cancellable`. Returns 404 if the number doesn't exist or isn't
|
|
109
|
-
* owned by the caller.
|
|
85
|
+
* Cancels a pending purchase or schedules cancellation of an active paid phone
|
|
86
|
+
* number. Repeating a scheduled cancellation is safe. Returns 409 when
|
|
87
|
+
* cancellation is not available.
|
|
110
88
|
*
|
|
111
89
|
* @example
|
|
112
90
|
* ```ts
|
|
@@ -120,8 +98,22 @@ export class Numbers extends APIResource {
|
|
|
120
98
|
}
|
|
121
99
|
|
|
122
100
|
/**
|
|
123
|
-
*
|
|
124
|
-
*
|
|
101
|
+
* Returns included phone capacity for a country. Creating a phone is
|
|
102
|
+
* authoritative.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* const response = await client.numbers.capacity({
|
|
107
|
+
* country: 'de',
|
|
108
|
+
* });
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
capacity(query: NumberCapacityParams, options?: RequestOptions): APIPromise<NumberCapacityResponse> {
|
|
112
|
+
return this._client.get('/numbers/phones/capacity', { query, ...options });
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Lists available countries and current phone-number availability.
|
|
125
117
|
*
|
|
126
118
|
* @example
|
|
127
119
|
* ```ts
|
|
@@ -167,10 +159,21 @@ export namespace NumberRetrieveResponse {
|
|
|
167
159
|
export interface Data {
|
|
168
160
|
id: string;
|
|
169
161
|
|
|
162
|
+
/**
|
|
163
|
+
* Actions currently available for this phone number.
|
|
164
|
+
*/
|
|
165
|
+
actions: Data.Actions;
|
|
166
|
+
|
|
170
167
|
cancelAtPeriodEnd: boolean;
|
|
171
168
|
|
|
169
|
+
/**
|
|
170
|
+
* @deprecated Deprecated: use `actions.cancel`
|
|
171
|
+
*/
|
|
172
172
|
cancellable: boolean;
|
|
173
173
|
|
|
174
|
+
/**
|
|
175
|
+
* @deprecated Deprecated: use `actions.send`
|
|
176
|
+
*/
|
|
174
177
|
canSend: boolean;
|
|
175
178
|
|
|
176
179
|
capabilities: Array<'sms' | 'voice'> | null;
|
|
@@ -193,6 +196,26 @@ export namespace NumberRetrieveResponse {
|
|
|
193
196
|
|
|
194
197
|
updatedAt: string | null;
|
|
195
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
|
+
}
|
|
196
219
|
}
|
|
197
220
|
|
|
198
221
|
export interface NumberUpdateResponse {
|
|
@@ -203,10 +226,21 @@ export namespace NumberUpdateResponse {
|
|
|
203
226
|
export interface Data {
|
|
204
227
|
id: string;
|
|
205
228
|
|
|
229
|
+
/**
|
|
230
|
+
* Actions currently available for this phone number.
|
|
231
|
+
*/
|
|
232
|
+
actions: Data.Actions;
|
|
233
|
+
|
|
206
234
|
cancelAtPeriodEnd: boolean;
|
|
207
235
|
|
|
236
|
+
/**
|
|
237
|
+
* @deprecated Deprecated: use `actions.cancel`
|
|
238
|
+
*/
|
|
208
239
|
cancellable: boolean;
|
|
209
240
|
|
|
241
|
+
/**
|
|
242
|
+
* @deprecated Deprecated: use `actions.send`
|
|
243
|
+
*/
|
|
210
244
|
canSend: boolean;
|
|
211
245
|
|
|
212
246
|
capabilities: Array<'sms' | 'voice'> | null;
|
|
@@ -229,6 +263,26 @@ export namespace NumberUpdateResponse {
|
|
|
229
263
|
|
|
230
264
|
updatedAt: string | null;
|
|
231
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
|
+
}
|
|
232
286
|
}
|
|
233
287
|
|
|
234
288
|
export interface NumberListResponse {
|
|
@@ -241,10 +295,21 @@ export namespace NumberListResponse {
|
|
|
241
295
|
export interface Item {
|
|
242
296
|
id: string;
|
|
243
297
|
|
|
298
|
+
/**
|
|
299
|
+
* Actions currently available for this phone number.
|
|
300
|
+
*/
|
|
301
|
+
actions: Item.Actions;
|
|
302
|
+
|
|
244
303
|
cancelAtPeriodEnd: boolean;
|
|
245
304
|
|
|
305
|
+
/**
|
|
306
|
+
* @deprecated Deprecated: use `actions.cancel`
|
|
307
|
+
*/
|
|
246
308
|
cancellable: boolean;
|
|
247
309
|
|
|
310
|
+
/**
|
|
311
|
+
* @deprecated Deprecated: use `actions.send`
|
|
312
|
+
*/
|
|
248
313
|
canSend: boolean;
|
|
249
314
|
|
|
250
315
|
capabilities: Array<'sms' | 'voice'> | null;
|
|
@@ -267,6 +332,26 @@ export namespace NumberListResponse {
|
|
|
267
332
|
|
|
268
333
|
updatedAt: string | null;
|
|
269
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
|
+
}
|
|
270
355
|
}
|
|
271
356
|
|
|
272
357
|
export interface NumberDeleteResponse {
|
|
@@ -277,10 +362,21 @@ export namespace NumberDeleteResponse {
|
|
|
277
362
|
export interface Data {
|
|
278
363
|
id: string;
|
|
279
364
|
|
|
365
|
+
/**
|
|
366
|
+
* Actions currently available for this phone number.
|
|
367
|
+
*/
|
|
368
|
+
actions: Data.Actions;
|
|
369
|
+
|
|
280
370
|
cancelAtPeriodEnd: boolean;
|
|
281
371
|
|
|
372
|
+
/**
|
|
373
|
+
* @deprecated Deprecated: use `actions.cancel`
|
|
374
|
+
*/
|
|
282
375
|
cancellable: boolean;
|
|
283
376
|
|
|
377
|
+
/**
|
|
378
|
+
* @deprecated Deprecated: use `actions.send`
|
|
379
|
+
*/
|
|
284
380
|
canSend: boolean;
|
|
285
381
|
|
|
286
382
|
capabilities: Array<'sms' | 'voice'> | null;
|
|
@@ -303,6 +399,46 @@ export namespace NumberDeleteResponse {
|
|
|
303
399
|
|
|
304
400
|
updatedAt: string | null;
|
|
305
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
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export interface NumberCapacityResponse {
|
|
425
|
+
data: NumberCapacityResponse.Data;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
export namespace NumberCapacityResponse {
|
|
429
|
+
export interface Data {
|
|
430
|
+
included: number;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* @deprecated Deprecated — always equal to `remaining`. Migrate to `remaining`;
|
|
434
|
+
* this field will be removed in a future revision.
|
|
435
|
+
*/
|
|
436
|
+
includedRemaining: number;
|
|
437
|
+
|
|
438
|
+
remaining: number;
|
|
439
|
+
|
|
440
|
+
status: 'available' | 'exhausted' | 'not_included';
|
|
441
|
+
}
|
|
306
442
|
}
|
|
307
443
|
|
|
308
444
|
export interface NumberCountriesResponse {
|
|
@@ -347,33 +483,28 @@ export namespace NumberPurposesResponse {
|
|
|
347
483
|
|
|
348
484
|
export interface NumberCreateParams {
|
|
349
485
|
/**
|
|
350
|
-
*
|
|
351
|
-
* checkout (
|
|
486
|
+
* Use included capacity when available, require included capacity without paid
|
|
487
|
+
* fallback (included_only), or start a paid checkout (rent).
|
|
352
488
|
*/
|
|
353
|
-
billingPreference?: 'included' | 'rent';
|
|
489
|
+
billingPreference?: 'included' | 'included_only' | 'rent';
|
|
354
490
|
|
|
355
491
|
/**
|
|
356
|
-
*
|
|
357
|
-
*
|
|
492
|
+
* Optional ISO 3166-1 alpha-2 country code from GET /numbers/phones/countries.
|
|
493
|
+
* Cannot be combined with `purpose`.
|
|
358
494
|
*/
|
|
359
495
|
country?: string;
|
|
360
496
|
|
|
361
497
|
/**
|
|
362
|
-
*
|
|
363
|
-
*
|
|
364
|
-
*
|
|
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.
|
|
365
501
|
*/
|
|
366
502
|
label?: string | null;
|
|
367
503
|
|
|
368
504
|
/**
|
|
369
|
-
*
|
|
505
|
+
* Optional purpose from GET /numbers/phones/purposes.
|
|
370
506
|
*/
|
|
371
507
|
purpose?: string;
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* Header param: Optional request idempotency key.
|
|
375
|
-
*/
|
|
376
|
-
'Idempotency-Key'?: string;
|
|
377
508
|
}
|
|
378
509
|
|
|
379
510
|
export interface NumberUpdateParams {
|
|
@@ -391,6 +522,13 @@ export interface NumberListParams {
|
|
|
391
522
|
pageSize?: number;
|
|
392
523
|
}
|
|
393
524
|
|
|
525
|
+
export interface NumberCapacityParams {
|
|
526
|
+
/**
|
|
527
|
+
* ISO 3166-1 alpha-2 country code from GET /numbers/phones/countries.
|
|
528
|
+
*/
|
|
529
|
+
country: string;
|
|
530
|
+
}
|
|
531
|
+
|
|
394
532
|
Numbers.Messages = Messages;
|
|
395
533
|
|
|
396
534
|
export declare namespace Numbers {
|
|
@@ -400,16 +538,20 @@ export declare namespace Numbers {
|
|
|
400
538
|
type NumberUpdateResponse as NumberUpdateResponse,
|
|
401
539
|
type NumberListResponse as NumberListResponse,
|
|
402
540
|
type NumberDeleteResponse as NumberDeleteResponse,
|
|
541
|
+
type NumberCapacityResponse as NumberCapacityResponse,
|
|
403
542
|
type NumberCountriesResponse as NumberCountriesResponse,
|
|
404
543
|
type NumberPurposesResponse as NumberPurposesResponse,
|
|
405
544
|
type NumberCreateParams as NumberCreateParams,
|
|
406
545
|
type NumberUpdateParams as NumberUpdateParams,
|
|
407
546
|
type NumberListParams as NumberListParams,
|
|
547
|
+
type NumberCapacityParams as NumberCapacityParams,
|
|
408
548
|
};
|
|
409
549
|
|
|
410
550
|
export {
|
|
411
551
|
Messages as Messages,
|
|
412
552
|
type MessageListResponse as MessageListResponse,
|
|
553
|
+
type MessageSendResponse as MessageSendResponse,
|
|
413
554
|
type MessageListParams as MessageListParams,
|
|
555
|
+
type MessageSendParams as MessageSendParams,
|
|
414
556
|
};
|
|
415
557
|
}
|