@mobilerun/sdk 5.6.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/README.md +0 -9
- package/client.d.mts +8 -26
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -26
- package/client.d.ts.map +1 -1
- package/client.js +0 -18
- package/client.js.map +1 -1
- package/client.mjs +0 -18
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +30 -20
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +30 -20
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +20 -10
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +20 -10
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +19 -0
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +19 -0
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/connect/proxies.d.mts +8 -6
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +8 -6
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +6 -4
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +6 -4
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/connect/users.d.mts +4 -4
- package/resources/connect/users.d.ts +4 -4
- package/resources/connect/users.js +2 -2
- package/resources/connect/users.mjs +2 -2
- package/resources/devices/actions.d.mts +25 -5
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +25 -5
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +5 -3
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +5 -3
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +25 -10
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +25 -10
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +12 -10
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +12 -10
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +60 -22
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +60 -22
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +25 -16
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +25 -16
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +3 -3
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +3 -3
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +3 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +1 -1
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +8 -2
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +8 -2
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/recordings.d.mts +28 -7
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +28 -7
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/recordings.js +9 -0
- package/resources/devices/recordings.js.map +1 -1
- package/resources/devices/recordings.mjs +9 -0
- package/resources/devices/recordings.mjs.map +1 -1
- package/resources/devices/screenshots.d.mts +72 -0
- package/resources/devices/screenshots.d.mts.map +1 -0
- package/resources/devices/screenshots.d.ts +72 -0
- package/resources/devices/screenshots.d.ts.map +1 -0
- package/resources/devices/screenshots.js +57 -0
- package/resources/devices/screenshots.js.map +1 -0
- package/resources/devices/screenshots.mjs +53 -0
- package/resources/devices/screenshots.mjs.map +1 -0
- package/resources/devices/state.d.mts +11 -2
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +11 -2
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +5 -2
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +5 -2
- package/resources/devices/state.mjs.map +1 -1
- package/resources/files.d.mts +3 -3
- package/resources/files.d.ts +3 -3
- package/resources/files.js +3 -3
- package/resources/files.mjs +3 -3
- package/resources/index.d.mts +4 -9
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -9
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -11
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -5
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +4 -10
- package/resources/mailboxes/connections.d.mts.map +1 -1
- package/resources/mailboxes/connections.d.ts +4 -10
- package/resources/mailboxes/connections.d.ts.map +1 -1
- package/resources/mailboxes/connections.js +3 -4
- package/resources/mailboxes/connections.js.map +1 -1
- package/resources/mailboxes/connections.mjs +3 -4
- package/resources/mailboxes/connections.mjs.map +1 -1
- package/resources/mailboxes/mailboxes.d.mts +5 -4
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +5 -4
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +5 -4
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +5 -4
- package/resources/mailboxes/mailboxes.mjs.map +1 -1
- package/resources/messages/messages.d.mts +12 -0
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +12 -0
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/models.d.mts +12 -23
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +12 -23
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -4
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -4
- package/resources/models.mjs.map +1 -1
- package/resources/numbers/index.d.mts +1 -1
- package/resources/numbers/index.d.mts.map +1 -1
- package/resources/numbers/index.d.ts +1 -1
- package/resources/numbers/index.d.ts.map +1 -1
- package/resources/numbers/index.js.map +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +23 -14
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +23 -14
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +9 -7
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +9 -7
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +136 -32
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +136 -32
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +1 -12
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +1 -12
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/proxies.d.mts +1 -87
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +1 -87
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +0 -6
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +0 -6
- package/resources/proxies.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +42 -138
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +42 -138
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +1 -1
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -1
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +7 -43
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +7 -43
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +6 -9
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +6 -9
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/events.d.mts +6 -2
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +6 -2
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +37 -31
- package/resources/workflows/executions/executions.d.mts.map +1 -1
- package/resources/workflows/executions/executions.d.ts +37 -31
- package/resources/workflows/executions/executions.d.ts.map +1 -1
- package/resources/workflows/executions/executions.js +2 -2
- package/resources/workflows/executions/executions.js.map +1 -1
- package/resources/workflows/executions/executions.mjs +2 -2
- package/resources/workflows/executions/executions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +90 -34
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +90 -34
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +15 -14
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +15 -14
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +1 -1
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +1 -1
- package/resources/workflows/flows/index.d.ts.map +1 -1
- package/resources/workflows/flows/index.js.map +1 -1
- package/resources/workflows/flows/index.mjs.map +1 -1
- package/resources/workflows/index.d.mts +1 -1
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +1 -1
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +10 -13
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +10 -13
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +6 -8
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +6 -8
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +2 -2
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +2 -2
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +2 -106
- package/src/resources/apps.ts +30 -20
- package/src/resources/assistant/conversations.ts +26 -0
- package/src/resources/connect/proxies.ts +8 -6
- package/src/resources/connect/users.ts +4 -4
- package/src/resources/devices/actions.ts +28 -5
- package/src/resources/devices/apps.ts +30 -10
- package/src/resources/devices/devices.ts +92 -37
- package/src/resources/devices/index.ts +12 -9
- package/src/resources/devices/keyboard.ts +9 -2
- package/src/resources/devices/recordings.ts +44 -6
- package/src/resources/devices/screenshots.ts +140 -0
- package/src/resources/devices/state.ts +12 -2
- package/src/resources/files.ts +3 -3
- package/src/resources/index.ts +1 -44
- package/src/resources/mailboxes/connections.ts +4 -11
- package/src/resources/mailboxes/mailboxes.ts +5 -4
- package/src/resources/messages/messages.ts +16 -0
- package/src/resources/models.ts +16 -23
- package/src/resources/numbers/index.ts +0 -1
- package/src/resources/numbers/messages.ts +27 -15
- package/src/resources/numbers/numbers.ts +155 -40
- package/src/resources/proxies.ts +0 -110
- package/src/resources/tasks/tasks.ts +46 -138
- package/src/resources/webhooks/index.ts +0 -1
- package/src/resources/webhooks/webhooks.ts +6 -60
- package/src/resources/workflows/events.ts +7 -2
- package/src/resources/workflows/executions/executions.ts +39 -31
- package/src/resources/workflows/flows/flows.ts +104 -34
- package/src/resources/workflows/flows/index.ts +1 -0
- package/src/resources/workflows/index.ts +1 -0
- package/src/resources/workflows/triggers.ts +10 -13
- package/src/resources/workflows/workflows.ts +2 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/app-events/app-events.d.mts +0 -81
- package/resources/app-events/app-events.d.mts.map +0 -1
- package/resources/app-events/app-events.d.ts +0 -81
- package/resources/app-events/app-events.d.ts.map +0 -1
- package/resources/app-events/app-events.js +0 -33
- package/resources/app-events/app-events.js.map +0 -1
- package/resources/app-events/app-events.mjs +0 -28
- package/resources/app-events/app-events.mjs.map +0 -1
- package/resources/app-events/catalog.d.mts +0 -64
- package/resources/app-events/catalog.d.mts.map +0 -1
- package/resources/app-events/catalog.d.ts +0 -64
- package/resources/app-events/catalog.d.ts.map +0 -1
- package/resources/app-events/catalog.js +0 -25
- package/resources/app-events/catalog.js.map +0 -1
- package/resources/app-events/catalog.mjs +0 -21
- package/resources/app-events/catalog.mjs.map +0 -1
- package/resources/app-events/index.d.mts +0 -3
- package/resources/app-events/index.d.mts.map +0 -1
- package/resources/app-events/index.d.ts +0 -3
- package/resources/app-events/index.d.ts.map +0 -1
- package/resources/app-events/index.js +0 -9
- package/resources/app-events/index.js.map +0 -1
- package/resources/app-events/index.mjs +0 -4
- package/resources/app-events/index.mjs.map +0 -1
- package/resources/app-events.d.mts +0 -2
- package/resources/app-events.d.mts.map +0 -1
- package/resources/app-events.d.ts +0 -2
- package/resources/app-events.d.ts.map +0 -1
- package/resources/app-events.js +0 -6
- package/resources/app-events.js.map +0 -1
- package/resources/app-events.mjs +0 -3
- package/resources/app-events.mjs.map +0 -1
- package/resources/carriers.d.mts +0 -331
- package/resources/carriers.d.mts.map +0 -1
- package/resources/carriers.d.ts +0 -331
- package/resources/carriers.d.ts.map +0 -1
- package/resources/carriers.js +0 -46
- package/resources/carriers.js.map +0 -1
- package/resources/carriers.mjs +0 -42
- package/resources/carriers.mjs.map +0 -1
- package/resources/devices/media-sessions.d.mts +0 -96
- package/resources/devices/media-sessions.d.mts.map +0 -1
- package/resources/devices/media-sessions.d.ts +0 -96
- package/resources/devices/media-sessions.d.ts.map +0 -1
- package/resources/devices/media-sessions.js +0 -50
- package/resources/devices/media-sessions.js.map +0 -1
- package/resources/devices/media-sessions.mjs +0 -46
- package/resources/devices/media-sessions.mjs.map +0 -1
- package/resources/notifications.d.mts +0 -112
- package/resources/notifications.d.mts.map +0 -1
- package/resources/notifications.d.ts +0 -112
- package/resources/notifications.d.ts.map +0 -1
- package/resources/notifications.js +0 -72
- package/resources/notifications.js.map +0 -1
- package/resources/notifications.mjs +0 -68
- package/resources/notifications.mjs.map +0 -1
- package/resources/profiles.d.mts +0 -147
- package/resources/profiles.d.mts.map +0 -1
- package/resources/profiles.d.ts +0 -147
- package/resources/profiles.d.ts.map +0 -1
- package/resources/profiles.js +0 -40
- package/resources/profiles.js.map +0 -1
- package/resources/profiles.mjs +0 -36
- package/resources/profiles.mjs.map +0 -1
- package/resources/store/apps.d.mts +0 -140
- package/resources/store/apps.d.mts.map +0 -1
- package/resources/store/apps.d.ts +0 -140
- package/resources/store/apps.d.ts.map +0 -1
- package/resources/store/apps.js +0 -31
- package/resources/store/apps.js.map +0 -1
- package/resources/store/apps.mjs +0 -27
- package/resources/store/apps.mjs.map +0 -1
- package/resources/store/index.d.mts +0 -3
- package/resources/store/index.d.mts.map +0 -1
- package/resources/store/index.d.ts +0 -3
- package/resources/store/index.d.ts.map +0 -1
- package/resources/store/index.js +0 -9
- package/resources/store/index.js.map +0 -1
- package/resources/store/index.mjs +0 -4
- package/resources/store/index.mjs.map +0 -1
- package/resources/store/store.d.mts +0 -20
- package/resources/store/store.d.mts.map +0 -1
- package/resources/store/store.d.ts +0 -20
- package/resources/store/store.d.ts.map +0 -1
- package/resources/store/store.js +0 -23
- package/resources/store/store.js.map +0 -1
- package/resources/store/store.mjs +0 -18
- package/resources/store/store.mjs.map +0 -1
- package/resources/store.d.mts +0 -2
- package/resources/store.d.mts.map +0 -1
- package/resources/store.d.ts +0 -2
- package/resources/store.d.ts.map +0 -1
- package/resources/store.js +0 -6
- package/resources/store.js.map +0 -1
- package/resources/store.mjs +0 -3
- package/resources/store.mjs.map +0 -1
- package/src/resources/app-events/app-events.ts +0 -133
- package/src/resources/app-events/catalog.ts +0 -100
- package/src/resources/app-events/index.ts +0 -9
- package/src/resources/app-events.ts +0 -3
- package/src/resources/carriers.ts +0 -508
- package/src/resources/devices/media-sessions.ts +0 -168
- package/src/resources/notifications.ts +0 -155
- package/src/resources/profiles.ts +0 -232
- package/src/resources/store/apps.ts +0 -993
- package/src/resources/store/index.ts +0 -10
- package/src/resources/store/store.ts +0 -36
- package/src/resources/store.ts +0 -3
|
@@ -19,7 +19,7 @@ export class Numbers extends APIResource {
|
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Starts a phone-number purchase. Poll the returned phone number for status
|
|
22
|
-
* updates.
|
|
22
|
+
* updates.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```ts
|
|
@@ -123,18 +123,6 @@ export class Numbers extends APIResource {
|
|
|
123
123
|
countries(options?: RequestOptions): APIPromise<NumberCountriesResponse> {
|
|
124
124
|
return this._client.get('/numbers/phones/countries', options);
|
|
125
125
|
}
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Lists the optional purposes currently available for a Mobilerun Phone.
|
|
129
|
-
*
|
|
130
|
-
* @example
|
|
131
|
-
* ```ts
|
|
132
|
-
* const response = await client.numbers.purposes();
|
|
133
|
-
* ```
|
|
134
|
-
*/
|
|
135
|
-
purposes(options?: RequestOptions): APIPromise<NumberPurposesResponse> {
|
|
136
|
-
return this._client.get('/numbers/phones/purposes', options);
|
|
137
|
-
}
|
|
138
126
|
}
|
|
139
127
|
|
|
140
128
|
export interface NumberCreateResponse {
|
|
@@ -176,6 +164,9 @@ export namespace NumberRetrieveResponse {
|
|
|
176
164
|
*/
|
|
177
165
|
canSend: boolean;
|
|
178
166
|
|
|
167
|
+
/**
|
|
168
|
+
* @deprecated Deprecated: use `lineCapabilities`
|
|
169
|
+
*/
|
|
179
170
|
capabilities: Array<'sms' | 'voice'> | null;
|
|
180
171
|
|
|
181
172
|
checkoutUrl: string | null;
|
|
@@ -186,8 +177,21 @@ export namespace NumberRetrieveResponse {
|
|
|
186
177
|
|
|
187
178
|
currentPeriodEnd: string | null;
|
|
188
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Why setup failed. Null unless state is failed, and null when the failure has no
|
|
182
|
+
* classified reason. out_of_stock: no number is currently available for the
|
|
183
|
+
* requested country.
|
|
184
|
+
*/
|
|
185
|
+
failureReason: 'out_of_stock' | 'unknown' | null;
|
|
186
|
+
|
|
189
187
|
label: string | null;
|
|
190
188
|
|
|
189
|
+
/**
|
|
190
|
+
* What this line supports in principle, per channel. Use `actions` for what you
|
|
191
|
+
* can do right now.
|
|
192
|
+
*/
|
|
193
|
+
lineCapabilities: Data.LineCapabilities;
|
|
194
|
+
|
|
191
195
|
phoneNumber: string | null;
|
|
192
196
|
|
|
193
197
|
purpose: string | null;
|
|
@@ -215,6 +219,28 @@ export namespace NumberRetrieveResponse {
|
|
|
215
219
|
*/
|
|
216
220
|
send: boolean;
|
|
217
221
|
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* What this line supports in principle, per channel. Use `actions` for what you
|
|
225
|
+
* can do right now.
|
|
226
|
+
*/
|
|
227
|
+
export interface LineCapabilities {
|
|
228
|
+
sms: LineCapabilities.SMS;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export namespace LineCapabilities {
|
|
232
|
+
export interface SMS {
|
|
233
|
+
/**
|
|
234
|
+
* This line can receive on this channel.
|
|
235
|
+
*/
|
|
236
|
+
inbound: boolean;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* This line can send on this channel.
|
|
240
|
+
*/
|
|
241
|
+
outbound: boolean;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
218
244
|
}
|
|
219
245
|
}
|
|
220
246
|
|
|
@@ -243,6 +269,9 @@ export namespace NumberUpdateResponse {
|
|
|
243
269
|
*/
|
|
244
270
|
canSend: boolean;
|
|
245
271
|
|
|
272
|
+
/**
|
|
273
|
+
* @deprecated Deprecated: use `lineCapabilities`
|
|
274
|
+
*/
|
|
246
275
|
capabilities: Array<'sms' | 'voice'> | null;
|
|
247
276
|
|
|
248
277
|
checkoutUrl: string | null;
|
|
@@ -253,8 +282,21 @@ export namespace NumberUpdateResponse {
|
|
|
253
282
|
|
|
254
283
|
currentPeriodEnd: string | null;
|
|
255
284
|
|
|
285
|
+
/**
|
|
286
|
+
* Why setup failed. Null unless state is failed, and null when the failure has no
|
|
287
|
+
* classified reason. out_of_stock: no number is currently available for the
|
|
288
|
+
* requested country.
|
|
289
|
+
*/
|
|
290
|
+
failureReason: 'out_of_stock' | 'unknown' | null;
|
|
291
|
+
|
|
256
292
|
label: string | null;
|
|
257
293
|
|
|
294
|
+
/**
|
|
295
|
+
* What this line supports in principle, per channel. Use `actions` for what you
|
|
296
|
+
* can do right now.
|
|
297
|
+
*/
|
|
298
|
+
lineCapabilities: Data.LineCapabilities;
|
|
299
|
+
|
|
258
300
|
phoneNumber: string | null;
|
|
259
301
|
|
|
260
302
|
purpose: string | null;
|
|
@@ -282,6 +324,28 @@ export namespace NumberUpdateResponse {
|
|
|
282
324
|
*/
|
|
283
325
|
send: boolean;
|
|
284
326
|
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* What this line supports in principle, per channel. Use `actions` for what you
|
|
330
|
+
* can do right now.
|
|
331
|
+
*/
|
|
332
|
+
export interface LineCapabilities {
|
|
333
|
+
sms: LineCapabilities.SMS;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export namespace LineCapabilities {
|
|
337
|
+
export interface SMS {
|
|
338
|
+
/**
|
|
339
|
+
* This line can receive on this channel.
|
|
340
|
+
*/
|
|
341
|
+
inbound: boolean;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* This line can send on this channel.
|
|
345
|
+
*/
|
|
346
|
+
outbound: boolean;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
285
349
|
}
|
|
286
350
|
}
|
|
287
351
|
|
|
@@ -312,6 +376,9 @@ export namespace NumberListResponse {
|
|
|
312
376
|
*/
|
|
313
377
|
canSend: boolean;
|
|
314
378
|
|
|
379
|
+
/**
|
|
380
|
+
* @deprecated Deprecated: use `lineCapabilities`
|
|
381
|
+
*/
|
|
315
382
|
capabilities: Array<'sms' | 'voice'> | null;
|
|
316
383
|
|
|
317
384
|
checkoutUrl: string | null;
|
|
@@ -322,8 +389,21 @@ export namespace NumberListResponse {
|
|
|
322
389
|
|
|
323
390
|
currentPeriodEnd: string | null;
|
|
324
391
|
|
|
392
|
+
/**
|
|
393
|
+
* Why setup failed. Null unless state is failed, and null when the failure has no
|
|
394
|
+
* classified reason. out_of_stock: no number is currently available for the
|
|
395
|
+
* requested country.
|
|
396
|
+
*/
|
|
397
|
+
failureReason: 'out_of_stock' | 'unknown' | null;
|
|
398
|
+
|
|
325
399
|
label: string | null;
|
|
326
400
|
|
|
401
|
+
/**
|
|
402
|
+
* What this line supports in principle, per channel. Use `actions` for what you
|
|
403
|
+
* can do right now.
|
|
404
|
+
*/
|
|
405
|
+
lineCapabilities: Item.LineCapabilities;
|
|
406
|
+
|
|
327
407
|
phoneNumber: string | null;
|
|
328
408
|
|
|
329
409
|
purpose: string | null;
|
|
@@ -351,6 +431,28 @@ export namespace NumberListResponse {
|
|
|
351
431
|
*/
|
|
352
432
|
send: boolean;
|
|
353
433
|
}
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* What this line supports in principle, per channel. Use `actions` for what you
|
|
437
|
+
* can do right now.
|
|
438
|
+
*/
|
|
439
|
+
export interface LineCapabilities {
|
|
440
|
+
sms: LineCapabilities.SMS;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export namespace LineCapabilities {
|
|
444
|
+
export interface SMS {
|
|
445
|
+
/**
|
|
446
|
+
* This line can receive on this channel.
|
|
447
|
+
*/
|
|
448
|
+
inbound: boolean;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* This line can send on this channel.
|
|
452
|
+
*/
|
|
453
|
+
outbound: boolean;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
354
456
|
}
|
|
355
457
|
}
|
|
356
458
|
|
|
@@ -379,6 +481,9 @@ export namespace NumberDeleteResponse {
|
|
|
379
481
|
*/
|
|
380
482
|
canSend: boolean;
|
|
381
483
|
|
|
484
|
+
/**
|
|
485
|
+
* @deprecated Deprecated: use `lineCapabilities`
|
|
486
|
+
*/
|
|
382
487
|
capabilities: Array<'sms' | 'voice'> | null;
|
|
383
488
|
|
|
384
489
|
checkoutUrl: string | null;
|
|
@@ -389,8 +494,21 @@ export namespace NumberDeleteResponse {
|
|
|
389
494
|
|
|
390
495
|
currentPeriodEnd: string | null;
|
|
391
496
|
|
|
497
|
+
/**
|
|
498
|
+
* Why setup failed. Null unless state is failed, and null when the failure has no
|
|
499
|
+
* classified reason. out_of_stock: no number is currently available for the
|
|
500
|
+
* requested country.
|
|
501
|
+
*/
|
|
502
|
+
failureReason: 'out_of_stock' | 'unknown' | null;
|
|
503
|
+
|
|
392
504
|
label: string | null;
|
|
393
505
|
|
|
506
|
+
/**
|
|
507
|
+
* What this line supports in principle, per channel. Use `actions` for what you
|
|
508
|
+
* can do right now.
|
|
509
|
+
*/
|
|
510
|
+
lineCapabilities: Data.LineCapabilities;
|
|
511
|
+
|
|
394
512
|
phoneNumber: string | null;
|
|
395
513
|
|
|
396
514
|
purpose: string | null;
|
|
@@ -418,6 +536,28 @@ export namespace NumberDeleteResponse {
|
|
|
418
536
|
*/
|
|
419
537
|
send: boolean;
|
|
420
538
|
}
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* What this line supports in principle, per channel. Use `actions` for what you
|
|
542
|
+
* can do right now.
|
|
543
|
+
*/
|
|
544
|
+
export interface LineCapabilities {
|
|
545
|
+
sms: LineCapabilities.SMS;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
export namespace LineCapabilities {
|
|
549
|
+
export interface SMS {
|
|
550
|
+
/**
|
|
551
|
+
* This line can receive on this channel.
|
|
552
|
+
*/
|
|
553
|
+
inbound: boolean;
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* This line can send on this channel.
|
|
557
|
+
*/
|
|
558
|
+
outbound: boolean;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
421
561
|
}
|
|
422
562
|
}
|
|
423
563
|
|
|
@@ -463,24 +603,6 @@ export namespace NumberCountriesResponse {
|
|
|
463
603
|
}
|
|
464
604
|
}
|
|
465
605
|
|
|
466
|
-
export interface NumberPurposesResponse {
|
|
467
|
-
data: NumberPurposesResponse.Data;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
export namespace NumberPurposesResponse {
|
|
471
|
-
export interface Data {
|
|
472
|
-
items: Array<Data.Item>;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
export namespace Data {
|
|
476
|
-
export interface Item {
|
|
477
|
-
label: string;
|
|
478
|
-
|
|
479
|
-
slug: string;
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
|
|
484
606
|
export interface NumberCreateParams {
|
|
485
607
|
/**
|
|
486
608
|
* Use included capacity when available, require included capacity without paid
|
|
@@ -490,28 +612,22 @@ export interface NumberCreateParams {
|
|
|
490
612
|
|
|
491
613
|
/**
|
|
492
614
|
* Optional ISO 3166-1 alpha-2 country code from GET /numbers/phones/countries.
|
|
493
|
-
* Cannot be combined with `purpose`.
|
|
494
615
|
*/
|
|
495
616
|
country?: string;
|
|
496
617
|
|
|
497
618
|
/**
|
|
498
619
|
* User-defined display label — NFC-normalized, up to 100 GRAPHEMES (not UTF-16
|
|
499
620
|
* code units; an emoji/flag may span several). Display-only, never used for
|
|
500
|
-
* routing.
|
|
621
|
+
* routing.
|
|
501
622
|
*/
|
|
502
623
|
label?: string | null;
|
|
503
|
-
|
|
504
|
-
/**
|
|
505
|
-
* Optional purpose from GET /numbers/phones/purposes.
|
|
506
|
-
*/
|
|
507
|
-
purpose?: string;
|
|
508
624
|
}
|
|
509
625
|
|
|
510
626
|
export interface NumberUpdateParams {
|
|
511
627
|
/**
|
|
512
628
|
* User-defined display label — NFC-normalized, up to 100 GRAPHEMES (not UTF-16
|
|
513
629
|
* code units; an emoji/flag may span several). Display-only, never used for
|
|
514
|
-
* routing.
|
|
630
|
+
* routing.
|
|
515
631
|
*/
|
|
516
632
|
label?: string | null;
|
|
517
633
|
}
|
|
@@ -540,7 +656,6 @@ export declare namespace Numbers {
|
|
|
540
656
|
type NumberDeleteResponse as NumberDeleteResponse,
|
|
541
657
|
type NumberCapacityResponse as NumberCapacityResponse,
|
|
542
658
|
type NumberCountriesResponse as NumberCountriesResponse,
|
|
543
|
-
type NumberPurposesResponse as NumberPurposesResponse,
|
|
544
659
|
type NumberCreateParams as NumberCreateParams,
|
|
545
660
|
type NumberUpdateParams as NumberUpdateParams,
|
|
546
661
|
type NumberListParams as NumberListParams,
|
package/src/resources/proxies.ts
CHANGED
|
@@ -57,13 +57,6 @@ export class Proxies extends APIResource {
|
|
|
57
57
|
delete(proxyID: string, options?: RequestOptions): APIPromise<ProxyDeleteResponse> {
|
|
58
58
|
return this._client.delete(path`/proxies/${proxyID}`, options);
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Lookup proxy location
|
|
63
|
-
*/
|
|
64
|
-
lookup(body: ProxyLookupParams, options?: RequestOptions): APIPromise<ProxyLookupResponse> {
|
|
65
|
-
return this._client.post('/proxies/lookup', { body, ...options });
|
|
66
|
-
}
|
|
67
60
|
}
|
|
68
61
|
|
|
69
62
|
export interface ProxyCreateResponse {
|
|
@@ -158,85 +151,6 @@ export namespace ProxyDeleteResponse {
|
|
|
158
151
|
}
|
|
159
152
|
}
|
|
160
153
|
|
|
161
|
-
export interface ProxyLookupResponse {
|
|
162
|
-
/**
|
|
163
|
-
* IP address of the proxy.
|
|
164
|
-
*/
|
|
165
|
-
ip: string;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Whether the IP is a mobile connection.
|
|
169
|
-
*/
|
|
170
|
-
isMobile: boolean;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Latitude of the proxy.
|
|
174
|
-
*/
|
|
175
|
-
latitude: number;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Longitude of the proxy.
|
|
179
|
-
*/
|
|
180
|
-
longitude: number;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* A URL to the JSON Schema for this object.
|
|
184
|
-
*/
|
|
185
|
-
$schema?: string;
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Mobile carrier information.
|
|
189
|
-
*/
|
|
190
|
-
carrier?: ProxyLookupResponse.Carrier;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* City of the proxy.
|
|
194
|
-
*/
|
|
195
|
-
city?: string;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Country of the proxy.
|
|
199
|
-
*/
|
|
200
|
-
country?: string;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* ISO country code.
|
|
204
|
-
*/
|
|
205
|
-
countryCode?: string;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Region of the proxy.
|
|
209
|
-
*/
|
|
210
|
-
region?: string;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Timezone of the proxy.
|
|
214
|
-
*/
|
|
215
|
-
timezone?: string;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export namespace ProxyLookupResponse {
|
|
219
|
-
/**
|
|
220
|
-
* Mobile carrier information.
|
|
221
|
-
*/
|
|
222
|
-
export interface Carrier {
|
|
223
|
-
/**
|
|
224
|
-
* Mobile Country Code.
|
|
225
|
-
*/
|
|
226
|
-
mcc?: string;
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Mobile Network Code.
|
|
230
|
-
*/
|
|
231
|
-
mnc?: string;
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Carrier name.
|
|
235
|
-
*/
|
|
236
|
-
name?: string;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
154
|
export type ProxyCreateParams = ProxyCreateParams.CreateSocks5Proxy | ProxyCreateParams.CreateWireguardProxy;
|
|
241
155
|
|
|
242
156
|
export declare namespace ProxyCreateParams {
|
|
@@ -293,28 +207,6 @@ export interface ProxyListParams {
|
|
|
293
207
|
protocol?: 'socks5' | 'wireguard';
|
|
294
208
|
}
|
|
295
209
|
|
|
296
|
-
export interface ProxyLookupParams {
|
|
297
|
-
/**
|
|
298
|
-
* SOCKS5 proxy configuration.
|
|
299
|
-
*/
|
|
300
|
-
socks5: ProxyLookupParams.Socks5;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
export namespace ProxyLookupParams {
|
|
304
|
-
/**
|
|
305
|
-
* SOCKS5 proxy configuration.
|
|
306
|
-
*/
|
|
307
|
-
export interface Socks5 {
|
|
308
|
-
host: string;
|
|
309
|
-
|
|
310
|
-
port: number;
|
|
311
|
-
|
|
312
|
-
password?: string;
|
|
313
|
-
|
|
314
|
-
user?: string;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
|
|
318
210
|
export declare namespace Proxies {
|
|
319
211
|
export {
|
|
320
212
|
type ProxyCreateResponse as ProxyCreateResponse,
|
|
@@ -322,10 +214,8 @@ export declare namespace Proxies {
|
|
|
322
214
|
type ProxyUpdateResponse as ProxyUpdateResponse,
|
|
323
215
|
type ProxyListResponse as ProxyListResponse,
|
|
324
216
|
type ProxyDeleteResponse as ProxyDeleteResponse,
|
|
325
|
-
type ProxyLookupResponse as ProxyLookupResponse,
|
|
326
217
|
type ProxyCreateParams as ProxyCreateParams,
|
|
327
218
|
type ProxyUpdateParams as ProxyUpdateParams,
|
|
328
219
|
type ProxyListParams as ProxyListParams,
|
|
329
|
-
type ProxyLookupParams as ProxyLookupParams,
|
|
330
220
|
};
|
|
331
221
|
}
|