twilio 3.69.0 → 3.71.3
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/CHANGES.md +96 -0
- package/README.md +1 -1
- package/lib/jwt/AccessToken.d.ts +16 -0
- package/lib/jwt/AccessToken.js +20 -0
- package/lib/jwt/ClientCapability.d.ts +1 -1
- package/lib/rest/Media.d.ts +28 -0
- package/lib/rest/Media.js +64 -0
- package/lib/rest/Supersim.d.ts +2 -0
- package/lib/rest/Supersim.js +8 -0
- package/lib/rest/Twilio.d.ts +2 -0
- package/lib/rest/Twilio.js +14 -0
- package/lib/rest/api/v2010/account/call.d.ts +1 -1
- package/lib/rest/api/v2010/account/call.js +1 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +5 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.js +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +5 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.js +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +5 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.js +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +5 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber.js +3 -0
- package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +172 -0
- package/lib/rest/conversations/v1/service/configuration/webhook.js +399 -0
- package/lib/rest/conversations/v1/service/configuration.d.ts +2 -0
- package/lib/rest/conversations/v1/service/configuration.js +13 -0
- package/lib/rest/flexApi/v1/configuration.d.ts +4 -0
- package/lib/rest/flexApi/v1/configuration.js +5 -0
- package/lib/rest/frontlineApi/v1/user.d.ts +4 -0
- package/lib/rest/frontlineApi/v1/user.js +10 -1
- package/lib/rest/media/V1.d.ts +28 -0
- package/lib/rest/media/V1.js +59 -0
- package/lib/rest/media/v1/mediaProcessor.d.ts +355 -0
- package/lib/rest/media/v1/mediaProcessor.js +702 -0
- package/lib/rest/media/v1/playerStreamer/playbackGrant.d.ts +162 -0
- package/lib/rest/media/v1/playerStreamer/playbackGrant.js +384 -0
- package/lib/rest/media/v1/playerStreamer.d.ts +366 -0
- package/lib/rest/media/v1/playerStreamer.js +729 -0
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +330 -0
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.js +655 -0
- package/lib/rest/messaging/v1/brandRegistration.d.ts +15 -2
- package/lib/rest/messaging/v1/brandRegistration.js +37 -1
- package/lib/rest/messaging/v1/service.d.ts +8 -0
- package/lib/rest/messaging/v1/service.js +14 -0
- package/lib/rest/serverless/v1/service/build.d.ts +1 -1
- package/lib/rest/supersim/V1.d.ts +3 -0
- package/lib/rest/supersim/V1.js +11 -0
- package/lib/rest/supersim/v1/ipCommand.d.ts +362 -0
- package/lib/rest/supersim/v1/ipCommand.js +679 -0
- package/lib/rest/verify/v2/service/accessToken.d.ts +2 -0
- package/lib/rest/verify/v2/service/accessToken.js +3 -1
- package/lib/rest/verify/v2/service/entity/factor.d.ts +4 -2
- package/lib/rest/verify/v2/service/entity/factor.js +8 -3
- package/lib/rest/verify/v2/service/entity/newFactor.d.ts +2 -2
- package/lib/rest/verify/v2/service/entity/newFactor.js +1 -1
- package/lib/rest/verify/v2/service/verification.d.ts +4 -0
- package/lib/rest/verify/v2/service/verification.js +6 -1
- package/lib/rest/verify/v2/service.d.ts +6 -0
- package/lib/rest/verify/v2/service.js +12 -2
- package/lib/rest/verify/v2/verificationAttempt.d.ts +1 -1
- package/lib/rest/video/v1/room.d.ts +8 -0
- package/lib/rest/video/v1/room.js +13 -1
- package/lib/rest/wireless/v1/ratePlan.d.ts +1 -1
- package/lib/rest/wireless/v1/ratePlan.js +3 -3
- package/lib/rest/wireless/v1/sim.d.ts +4 -4
- package/lib/rest/wireless/v1/sim.js +18 -24
- package/lib/twiml/VoiceResponse.d.ts +1296 -24
- package/lib/twiml/VoiceResponse.js +2170 -82
- package/package.json +2 -2
package/CHANGES.md
CHANGED
|
@@ -1,6 +1,102 @@
|
|
|
1
1
|
twilio-node changelog
|
|
2
2
|
=====================
|
|
3
3
|
|
|
4
|
+
[2021-12-01] Version 3.71.3
|
|
5
|
+
---------------------------
|
|
6
|
+
**Conversations**
|
|
7
|
+
- Add `Service Webhook Configuration` resource
|
|
8
|
+
|
|
9
|
+
**Flex**
|
|
10
|
+
- Adding `flex_insights_drilldown` and `flex_url` objects to Flex Configuration
|
|
11
|
+
|
|
12
|
+
**Messaging**
|
|
13
|
+
- Update us_app_to_person endpoints to remove beta feature flag based access
|
|
14
|
+
|
|
15
|
+
**Supersim**
|
|
16
|
+
- Add IP Commands resource
|
|
17
|
+
|
|
18
|
+
**Verify**
|
|
19
|
+
- Add optional `factor_friendly_name` parameter to the create access token endpoint.
|
|
20
|
+
|
|
21
|
+
**Video**
|
|
22
|
+
- Add maxParticipantDuration param to Rooms
|
|
23
|
+
|
|
24
|
+
**Twiml**
|
|
25
|
+
- Unrevert Add supported SSML children to `<emphasis>`, `<lang>`, `<p>`, `<prosody>`, `<s>`, and `<w>`.
|
|
26
|
+
- Revert Add supported SSML children to `<emphasis>`, `<lang>`, `<p>`, `<prosody>`, `<s>`, and `<w>`.
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
[2021-11-17] Version 3.71.2
|
|
30
|
+
---------------------------
|
|
31
|
+
**Library - Fix**
|
|
32
|
+
- [PR #707](https://github.com/twilio/twilio-node/pull/707): make ttl optional in ClientCapabilityOptions. Thanks to [@ghmeier](https://github.com/ghmeier)!
|
|
33
|
+
- [PR #704](https://github.com/twilio/twilio-node/pull/704): git log retrieval issues. Thanks to [@shwetha-manvinkurke](https://github.com/shwetha-manvinkurke)!
|
|
34
|
+
|
|
35
|
+
**Frontline**
|
|
36
|
+
- Added `is_available` to User's resource
|
|
37
|
+
|
|
38
|
+
**Messaging**
|
|
39
|
+
- Added GET vetting API
|
|
40
|
+
|
|
41
|
+
**Verify**
|
|
42
|
+
- Add `WHATSAPP` to the attempts API.
|
|
43
|
+
- Allow to update `config.notification_platform` from `none` to `apn` or `fcm` and viceversa for Verify Push
|
|
44
|
+
- Add `none` as a valid `config.notification_platform` value for Verify Push
|
|
45
|
+
|
|
46
|
+
**Twiml**
|
|
47
|
+
- Add supported SSML children to `<emphasis>`, `<lang>`, `<p>`, `<prosody>`, `<s>`, and `<w>`.
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
[2021-11-03] Version 3.71.1
|
|
51
|
+
---------------------------
|
|
52
|
+
**Library - Fix**
|
|
53
|
+
- [PR #705](https://github.com/twilio/twilio-node/pull/705): node setup wf step. Thanks to [@shwetha-manvinkurke](https://github.com/shwetha-manvinkurke)!
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
[2021-11-03] Version 3.71.0
|
|
57
|
+
---------------------------
|
|
58
|
+
**Library - Chore**
|
|
59
|
+
- [PR #703](https://github.com/twilio/twilio-node/pull/703): fix Docker image tag. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
|
|
60
|
+
- [PR #702](https://github.com/twilio/twilio-node/pull/702): migrate from TravisCI to GitHub Actions. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
|
|
61
|
+
|
|
62
|
+
**Api**
|
|
63
|
+
- Updated `media_url` property to be treated as PII
|
|
64
|
+
|
|
65
|
+
**Messaging**
|
|
66
|
+
- Added a new enum for brand registration status named DELETED **(breaking change)**
|
|
67
|
+
- Add a new K12_EDUCATION use case in us_app_to_person_usecase api transaction
|
|
68
|
+
- Added a new enum for brand registration status named IN_REVIEW
|
|
69
|
+
|
|
70
|
+
**Serverless**
|
|
71
|
+
- Add node14 as a valid Build runtime
|
|
72
|
+
|
|
73
|
+
**Verify**
|
|
74
|
+
- Fix typos in Verify Push Factor documentation for the `config.notification_token` parameter.
|
|
75
|
+
- Added `TemplateCustomSubstitutions` on verification creation
|
|
76
|
+
- Make `TemplateSid` parameter public for Verification resource and `DefaultTemplateSid` parameter public for Service resource. **(breaking change)**
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
[2021-10-18] Version 3.70.0
|
|
80
|
+
---------------------------
|
|
81
|
+
**Library - Feature**
|
|
82
|
+
- [PR #700](https://github.com/twilio/twilio-node/pull/700): Add PlaybackGrant. Thanks to [@sarahcstringer](https://github.com/sarahcstringer)!
|
|
83
|
+
|
|
84
|
+
**Library - Fix**
|
|
85
|
+
- [PR #695](https://github.com/twilio/twilio-node/pull/695): Update Axios package. Thanks to [@houmark](https://github.com/houmark)!
|
|
86
|
+
|
|
87
|
+
**Api**
|
|
88
|
+
- Corrected enum values for `emergency_address_status` values in `/IncomingPhoneNumbers` response. **(breaking change)**
|
|
89
|
+
- Clarify `emergency_address_status` values in `/IncomingPhoneNumbers` response.
|
|
90
|
+
|
|
91
|
+
**Messaging**
|
|
92
|
+
- Add PUT and List brand vettings api
|
|
93
|
+
- Removes beta feature flag based visibility for us_app_to_person_registered and usecase field.Updates test cases to add POLITICAL usecase. **(breaking change)**
|
|
94
|
+
- Add brand_feedback as optional field to BrandRegistrations
|
|
95
|
+
|
|
96
|
+
**Video**
|
|
97
|
+
- Add `AudioOnly` to create room
|
|
98
|
+
|
|
99
|
+
|
|
4
100
|
[2021-10-06] Version 3.69.0
|
|
5
101
|
---------------------------
|
|
6
102
|
**Api**
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://nodei.co/npm/twilio/)
|
|
4
4
|
|
|
5
|
-
[](https://github.com/twilio/twilio-node/actions/workflows/test.yml)
|
|
6
6
|
[](https://twil.io/learn-open-source)
|
|
7
7
|
|
|
8
8
|
**The default branch name for this repository has been changed to `main` as of 07/27/2020.**
|
package/lib/jwt/AccessToken.d.ts
CHANGED
|
@@ -177,6 +177,22 @@ declare namespace AccessToken {
|
|
|
177
177
|
endpointId?: string;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
+
export interface PlaybackGrantOptions {
|
|
181
|
+
grant?: object;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface PlaybackGrantPayload {
|
|
185
|
+
grant?: object;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export class PlaybackGrant extends Grant<
|
|
189
|
+
PlaybackGrantOptions,
|
|
190
|
+
PlaybackGrantPayload,
|
|
191
|
+
'player'
|
|
192
|
+
> implements PlaybackGrantOptions {
|
|
193
|
+
grant?: object
|
|
194
|
+
}
|
|
195
|
+
|
|
180
196
|
export interface AccessTokenOptions {
|
|
181
197
|
/**
|
|
182
198
|
* Time to live in seconds
|
package/lib/jwt/AccessToken.js
CHANGED
|
@@ -199,6 +199,25 @@ _.extend(VoiceGrant.prototype, {
|
|
|
199
199
|
}
|
|
200
200
|
});
|
|
201
201
|
|
|
202
|
+
/**
|
|
203
|
+
* @constructor
|
|
204
|
+
* @param {object} options - ...
|
|
205
|
+
* @param {string} options.grant - The PlaybackGrant retrieved from Twilio's API
|
|
206
|
+
*/
|
|
207
|
+
function PlaybackGrant(options) {
|
|
208
|
+
options = options || {};
|
|
209
|
+
this.grant = options.grant;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
_.extend(PlaybackGrant.prototype, {
|
|
213
|
+
key: 'player',
|
|
214
|
+
toPayload: function() {
|
|
215
|
+
var grant = {};
|
|
216
|
+
if (this.grant) { grant = this.grant; }
|
|
217
|
+
return grant;
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
|
|
202
221
|
/**
|
|
203
222
|
* @constructor
|
|
204
223
|
* @param {string} accountSid - The account's unique ID to which access is scoped
|
|
@@ -234,6 +253,7 @@ AccessToken.SyncGrant = SyncGrant;
|
|
|
234
253
|
AccessToken.VideoGrant = VideoGrant;
|
|
235
254
|
AccessToken.ConversationsGrant = util.deprecate(ConversationsGrant, 'ConversationsGrant is deprecated, use VideoGrant instead.');
|
|
236
255
|
AccessToken.TaskRouterGrant = TaskRouterGrant;
|
|
256
|
+
AccessToken.PlaybackGrant = PlaybackGrant;
|
|
237
257
|
AccessToken.DEFAULT_ALGORITHM = 'HS256';
|
|
238
258
|
AccessToken.ALGORITHMS = [
|
|
239
259
|
'HS256',
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by
|
|
3
|
+
* \ / _ _ _| _ _
|
|
4
|
+
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
|
+
* / /
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import Domain = require('../base/Domain');
|
|
9
|
+
import Twilio = require('./Twilio');
|
|
10
|
+
import V1 = require('./media/V1');
|
|
11
|
+
import { MediaProcessorListInstance } from './media/v1/mediaProcessor';
|
|
12
|
+
import { PlayerStreamerListInstance } from './media/v1/playerStreamer';
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
declare class Media extends Domain {
|
|
16
|
+
/**
|
|
17
|
+
* Initialize media domain
|
|
18
|
+
*
|
|
19
|
+
* @param twilio - The twilio client
|
|
20
|
+
*/
|
|
21
|
+
constructor(twilio: Twilio);
|
|
22
|
+
|
|
23
|
+
readonly mediaProcessor: MediaProcessorListInstance;
|
|
24
|
+
readonly playerStreamer: PlayerStreamerListInstance;
|
|
25
|
+
readonly v1: V1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export = Media;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/* jshint ignore:start */
|
|
4
|
+
/**
|
|
5
|
+
* This code was generated by
|
|
6
|
+
* \ / _ _ _| _ _
|
|
7
|
+
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
8
|
+
* / /
|
|
9
|
+
*/
|
|
10
|
+
/* jshint ignore:end */
|
|
11
|
+
|
|
12
|
+
var _ = require('lodash'); /* jshint ignore:line */
|
|
13
|
+
var Domain = require('../base/Domain'); /* jshint ignore:line */
|
|
14
|
+
var V1 = require('./media/V1'); /* jshint ignore:line */
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/* jshint ignore:start */
|
|
18
|
+
/**
|
|
19
|
+
* Initialize media domain
|
|
20
|
+
*
|
|
21
|
+
* @constructor Twilio.Media
|
|
22
|
+
*
|
|
23
|
+
* @property {Twilio.Media.V1} v1 - v1 version
|
|
24
|
+
* @property {Twilio.Media.V1.MediaProcessorList} mediaProcessor -
|
|
25
|
+
* mediaProcessor resource
|
|
26
|
+
* @property {Twilio.Media.V1.PlayerStreamerList} playerStreamer -
|
|
27
|
+
* playerStreamer resource
|
|
28
|
+
*
|
|
29
|
+
* @param {Twilio} twilio - The twilio client
|
|
30
|
+
*/
|
|
31
|
+
/* jshint ignore:end */
|
|
32
|
+
function Media(twilio) {
|
|
33
|
+
Domain.prototype.constructor.call(this, twilio, 'https://media.twilio.com');
|
|
34
|
+
|
|
35
|
+
// Versions
|
|
36
|
+
this._v1 = undefined;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
_.extend(Media.prototype, Domain.prototype);
|
|
40
|
+
Media.prototype.constructor = Media;
|
|
41
|
+
|
|
42
|
+
Object.defineProperty(Media.prototype,
|
|
43
|
+
'v1', {
|
|
44
|
+
get: function() {
|
|
45
|
+
this._v1 = this._v1 || new V1(this);
|
|
46
|
+
return this._v1;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
Object.defineProperty(Media.prototype,
|
|
51
|
+
'mediaProcessor', {
|
|
52
|
+
get: function() {
|
|
53
|
+
return this.v1.mediaProcessor;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
Object.defineProperty(Media.prototype,
|
|
58
|
+
'playerStreamer', {
|
|
59
|
+
get: function() {
|
|
60
|
+
return this.v1.playerStreamer;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
module.exports = Media;
|
package/lib/rest/Supersim.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import Twilio = require('./Twilio');
|
|
|
10
10
|
import V1 = require('./supersim/V1');
|
|
11
11
|
import { CommandListInstance } from './supersim/v1/command';
|
|
12
12
|
import { FleetListInstance } from './supersim/v1/fleet';
|
|
13
|
+
import { IpCommandListInstance } from './supersim/v1/ipCommand';
|
|
13
14
|
import { NetworkAccessProfileListInstance } from './supersim/v1/networkAccessProfile';
|
|
14
15
|
import { NetworkListInstance } from './supersim/v1/network';
|
|
15
16
|
import { SimListInstance } from './supersim/v1/sim';
|
|
@@ -27,6 +28,7 @@ declare class Supersim extends Domain {
|
|
|
27
28
|
|
|
28
29
|
readonly commands: CommandListInstance;
|
|
29
30
|
readonly fleets: FleetListInstance;
|
|
31
|
+
readonly ipCommands: IpCommandListInstance;
|
|
30
32
|
readonly networkAccessProfiles: NetworkAccessProfileListInstance;
|
|
31
33
|
readonly networks: NetworkListInstance;
|
|
32
34
|
readonly sims: SimListInstance;
|
package/lib/rest/Supersim.js
CHANGED
|
@@ -23,6 +23,7 @@ var V1 = require('./supersim/V1'); /* jshint ignore:line */
|
|
|
23
23
|
* @property {Twilio.Supersim.V1} v1 - v1 version
|
|
24
24
|
* @property {Twilio.Supersim.V1.CommandList} commands - commands resource
|
|
25
25
|
* @property {Twilio.Supersim.V1.FleetList} fleets - fleets resource
|
|
26
|
+
* @property {Twilio.Supersim.V1.IpCommandList} ipCommands - ipCommands resource
|
|
26
27
|
* @property {Twilio.Supersim.V1.NetworkList} networks - networks resource
|
|
27
28
|
* @property {Twilio.Supersim.V1.NetworkAccessProfileList} networkAccessProfiles -
|
|
28
29
|
* networkAccessProfiles resource
|
|
@@ -66,6 +67,13 @@ Object.defineProperty(Supersim.prototype,
|
|
|
66
67
|
}
|
|
67
68
|
});
|
|
68
69
|
|
|
70
|
+
Object.defineProperty(Supersim.prototype,
|
|
71
|
+
'ipCommands', {
|
|
72
|
+
get: function() {
|
|
73
|
+
return this.v1.ipCommands;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
|
|
69
77
|
Object.defineProperty(Supersim.prototype,
|
|
70
78
|
'networks', {
|
|
71
79
|
get: function() {
|
package/lib/rest/Twilio.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import FrontlineApi = require('./FrontlineApi');
|
|
|
18
18
|
import Insights = require('./Insights');
|
|
19
19
|
import IpMessaging = require('./IpMessaging');
|
|
20
20
|
import Lookups = require('./Lookups');
|
|
21
|
+
import Media = require('./Media');
|
|
21
22
|
import Messaging = require('./Messaging');
|
|
22
23
|
import Monitor = require('./Monitor');
|
|
23
24
|
import Notify = require('./Notify');
|
|
@@ -72,6 +73,7 @@ declare class Twilio {
|
|
|
72
73
|
ipMessaging: IpMessaging;
|
|
73
74
|
keys: (typeof Api.prototype.account.keys);
|
|
74
75
|
lookups: Lookups;
|
|
76
|
+
media: Media;
|
|
75
77
|
messages: (typeof Api.prototype.account.messages);
|
|
76
78
|
messaging: Messaging;
|
|
77
79
|
monitor: Monitor;
|
package/lib/rest/Twilio.js
CHANGED
|
@@ -34,6 +34,7 @@ var RestException = require('../base/RestException'); /* jshint ignore:line */
|
|
|
34
34
|
* @property {Twilio.Insights} insights - insights domain
|
|
35
35
|
* @property {Twilio.IpMessaging} ipMessaging - ip_messaging domain
|
|
36
36
|
* @property {Twilio.Lookups} lookups - lookups domain
|
|
37
|
+
* @property {Twilio.Media} media - media domain
|
|
37
38
|
* @property {Twilio.Messaging} messaging - messaging domain
|
|
38
39
|
* @property {Twilio.Monitor} monitor - monitor domain
|
|
39
40
|
* @property {Twilio.Notify} notify - notify domain
|
|
@@ -159,6 +160,7 @@ function Twilio(username, password, opts) {
|
|
|
159
160
|
this._insights = undefined;
|
|
160
161
|
this._ipMessaging = undefined;
|
|
161
162
|
this._lookups = undefined;
|
|
163
|
+
this._media = undefined;
|
|
162
164
|
this._messaging = undefined;
|
|
163
165
|
this._monitor = undefined;
|
|
164
166
|
this._notify = undefined;
|
|
@@ -192,6 +194,7 @@ function Twilio(username, password, opts) {
|
|
|
192
194
|
this.insights;
|
|
193
195
|
this.ipMessaging;
|
|
194
196
|
this.lookups;
|
|
197
|
+
this.media;
|
|
195
198
|
this.messaging;
|
|
196
199
|
this.monitor;
|
|
197
200
|
this.notify;
|
|
@@ -491,6 +494,17 @@ Object.defineProperty(Twilio.prototype,
|
|
|
491
494
|
}
|
|
492
495
|
});
|
|
493
496
|
|
|
497
|
+
Object.defineProperty(Twilio.prototype,
|
|
498
|
+
'media', {
|
|
499
|
+
get: function() {
|
|
500
|
+
if (!this._media) {
|
|
501
|
+
var Media = require('./Media'); /* jshint ignore:line */
|
|
502
|
+
this._media = new Media(this);
|
|
503
|
+
}
|
|
504
|
+
return this._media;
|
|
505
|
+
}
|
|
506
|
+
});
|
|
507
|
+
|
|
494
508
|
Object.defineProperty(Twilio.prototype,
|
|
495
509
|
'messaging', {
|
|
496
510
|
get: function() {
|
|
@@ -192,7 +192,7 @@ interface CallListInstance {
|
|
|
192
192
|
* @property asyncAmdStatusCallbackMethod - HTTP Method to use with async_amd_status_callback
|
|
193
193
|
* @property byoc - BYOC trunk SID (Beta)
|
|
194
194
|
* @property callReason - Reason for the call (Branded Calls Beta)
|
|
195
|
-
* @property callToken - A token string needed to invoke a forwarded call with a
|
|
195
|
+
* @property callToken - A token string needed to invoke a forwarded call with a CallerId recieved on a previous incoming call
|
|
196
196
|
* @property callerId - The phone number, SIP address, or Client identifier that made this call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`.
|
|
197
197
|
* @property fallbackMethod - HTTP Method to use with fallback_url
|
|
198
198
|
* @property fallbackUrl - Fallback URL in case of error
|
|
@@ -121,7 +121,7 @@ CallList = function CallList(version, accountSid) {
|
|
|
121
121
|
* @param {string} [opts.byoc] - BYOC trunk SID (Beta)
|
|
122
122
|
* @param {string} [opts.callReason] - Reason for the call (Branded Calls Beta)
|
|
123
123
|
* @param {string} [opts.callToken] -
|
|
124
|
-
* A token string needed to invoke a forwarded call with a
|
|
124
|
+
* A token string needed to invoke a forwarded call with a CallerId recieved on a previous incoming call
|
|
125
125
|
* @param {string} [opts.recordingTrack] - Which track(s) to record
|
|
126
126
|
* @param {number} [opts.timeLimit] - The maximum duration of the call in seconds.
|
|
127
127
|
* @param {string} [opts.url] - The absolute URL that returns TwiML for this call
|
|
@@ -13,6 +13,8 @@ import { SerializableClass } from '../../../../../interfaces';
|
|
|
13
13
|
|
|
14
14
|
type LocalAddressRequirement = 'none'|'any'|'local'|'foreign';
|
|
15
15
|
|
|
16
|
+
type LocalEmergencyAddressStatus = 'registered'|'unregistered'|'pending-registration'|'registration-failure'|'pending-unregistration'|'unregistration-failure';
|
|
17
|
+
|
|
16
18
|
type LocalEmergencyStatus = 'Active'|'Inactive';
|
|
17
19
|
|
|
18
20
|
type LocalVoiceReceiveMode = 'voice'|'fax';
|
|
@@ -283,6 +285,7 @@ interface LocalResource {
|
|
|
283
285
|
date_created: Date;
|
|
284
286
|
date_updated: Date;
|
|
285
287
|
emergency_address_sid: string;
|
|
288
|
+
emergency_address_status: LocalEmergencyAddressStatus;
|
|
286
289
|
emergency_status: LocalEmergencyStatus;
|
|
287
290
|
friendly_name: string;
|
|
288
291
|
identity_sid: string;
|
|
@@ -333,6 +336,7 @@ declare class LocalInstance extends SerializableClass {
|
|
|
333
336
|
dateCreated: Date;
|
|
334
337
|
dateUpdated: Date;
|
|
335
338
|
emergencyAddressSid: string;
|
|
339
|
+
emergencyAddressStatus: LocalEmergencyAddressStatus;
|
|
336
340
|
emergencyStatus: LocalEmergencyStatus;
|
|
337
341
|
friendlyName: string;
|
|
338
342
|
identitySid: string;
|
|
@@ -385,4 +389,4 @@ declare class LocalPage extends Page<V2010, LocalPayload, LocalResource, LocalIn
|
|
|
385
389
|
toJSON(): any;
|
|
386
390
|
}
|
|
387
391
|
|
|
388
|
-
export { LocalAddressRequirement, LocalEmergencyStatus, LocalInstance, LocalList, LocalListInstance, LocalListInstanceCreateOptions, LocalListInstanceEachOptions, LocalListInstanceOptions, LocalListInstancePageOptions, LocalPage, LocalPayload, LocalResource, LocalSolution, LocalVoiceReceiveMode }
|
|
392
|
+
export { LocalAddressRequirement, LocalEmergencyAddressStatus, LocalEmergencyStatus, LocalInstance, LocalList, LocalListInstance, LocalListInstanceCreateOptions, LocalListInstanceEachOptions, LocalListInstanceOptions, LocalListInstancePageOptions, LocalPage, LocalPayload, LocalResource, LocalSolution, LocalVoiceReceiveMode }
|
|
@@ -569,6 +569,8 @@ LocalPage.prototype[util.inspect.custom] = function inspect(depth, options) {
|
|
|
569
569
|
* Displays if emergency calling is enabled for this number.
|
|
570
570
|
* @property {string} emergencyAddressSid -
|
|
571
571
|
* The emergency address configuration to use for emergency calling
|
|
572
|
+
* @property {local.emergency_address_status} emergencyAddressStatus -
|
|
573
|
+
* State of the emergency address configuration for the phone number
|
|
572
574
|
* @property {string} bundleSid -
|
|
573
575
|
* The SID of the Bundle resource associated with number
|
|
574
576
|
* @property {string} status - The status
|
|
@@ -613,6 +615,7 @@ LocalInstance = function LocalInstance(version, payload, accountSid) {
|
|
|
613
615
|
this.voiceUrl = payload.voice_url; // jshint ignore:line
|
|
614
616
|
this.emergencyStatus = payload.emergency_status; // jshint ignore:line
|
|
615
617
|
this.emergencyAddressSid = payload.emergency_address_sid; // jshint ignore:line
|
|
618
|
+
this.emergencyAddressStatus = payload.emergency_address_status; // jshint ignore:line
|
|
616
619
|
this.bundleSid = payload.bundle_sid; // jshint ignore:line
|
|
617
620
|
this.status = payload.status; // jshint ignore:line
|
|
618
621
|
|
|
@@ -13,6 +13,8 @@ import { SerializableClass } from '../../../../../interfaces';
|
|
|
13
13
|
|
|
14
14
|
type MobileAddressRequirement = 'none'|'any'|'local'|'foreign';
|
|
15
15
|
|
|
16
|
+
type MobileEmergencyAddressStatus = 'registered'|'unregistered'|'pending-registration'|'registration-failure'|'pending-unregistration'|'unregistration-failure';
|
|
17
|
+
|
|
16
18
|
type MobileEmergencyStatus = 'Active'|'Inactive';
|
|
17
19
|
|
|
18
20
|
type MobileVoiceReceiveMode = 'voice'|'fax';
|
|
@@ -283,6 +285,7 @@ interface MobileResource {
|
|
|
283
285
|
date_created: Date;
|
|
284
286
|
date_updated: Date;
|
|
285
287
|
emergency_address_sid: string;
|
|
288
|
+
emergency_address_status: MobileEmergencyAddressStatus;
|
|
286
289
|
emergency_status: MobileEmergencyStatus;
|
|
287
290
|
friendly_name: string;
|
|
288
291
|
identity_sid: string;
|
|
@@ -333,6 +336,7 @@ declare class MobileInstance extends SerializableClass {
|
|
|
333
336
|
dateCreated: Date;
|
|
334
337
|
dateUpdated: Date;
|
|
335
338
|
emergencyAddressSid: string;
|
|
339
|
+
emergencyAddressStatus: MobileEmergencyAddressStatus;
|
|
336
340
|
emergencyStatus: MobileEmergencyStatus;
|
|
337
341
|
friendlyName: string;
|
|
338
342
|
identitySid: string;
|
|
@@ -385,4 +389,4 @@ declare class MobilePage extends Page<V2010, MobilePayload, MobileResource, Mobi
|
|
|
385
389
|
toJSON(): any;
|
|
386
390
|
}
|
|
387
391
|
|
|
388
|
-
export { MobileAddressRequirement, MobileEmergencyStatus, MobileInstance, MobileList, MobileListInstance, MobileListInstanceCreateOptions, MobileListInstanceEachOptions, MobileListInstanceOptions, MobileListInstancePageOptions, MobilePage, MobilePayload, MobileResource, MobileSolution, MobileVoiceReceiveMode }
|
|
392
|
+
export { MobileAddressRequirement, MobileEmergencyAddressStatus, MobileEmergencyStatus, MobileInstance, MobileList, MobileListInstance, MobileListInstanceCreateOptions, MobileListInstanceEachOptions, MobileListInstanceOptions, MobileListInstancePageOptions, MobilePage, MobilePayload, MobileResource, MobileSolution, MobileVoiceReceiveMode }
|
|
@@ -569,6 +569,8 @@ MobilePage.prototype[util.inspect.custom] = function inspect(depth, options) {
|
|
|
569
569
|
* Displays if emergency calling is enabled for this number.
|
|
570
570
|
* @property {string} emergencyAddressSid -
|
|
571
571
|
* The emergency address configuration to use for emergency calling
|
|
572
|
+
* @property {mobile.emergency_address_status} emergencyAddressStatus -
|
|
573
|
+
* State of the emergency address configuration for the phone number
|
|
572
574
|
* @property {string} bundleSid -
|
|
573
575
|
* The SID of the Bundle resource associated with number
|
|
574
576
|
* @property {string} status - The status
|
|
@@ -613,6 +615,7 @@ MobileInstance = function MobileInstance(version, payload, accountSid) {
|
|
|
613
615
|
this.voiceUrl = payload.voice_url; // jshint ignore:line
|
|
614
616
|
this.emergencyStatus = payload.emergency_status; // jshint ignore:line
|
|
615
617
|
this.emergencyAddressSid = payload.emergency_address_sid; // jshint ignore:line
|
|
618
|
+
this.emergencyAddressStatus = payload.emergency_address_status; // jshint ignore:line
|
|
616
619
|
this.bundleSid = payload.bundle_sid; // jshint ignore:line
|
|
617
620
|
this.status = payload.status; // jshint ignore:line
|
|
618
621
|
|
|
@@ -13,6 +13,8 @@ import { SerializableClass } from '../../../../../interfaces';
|
|
|
13
13
|
|
|
14
14
|
type TollFreeAddressRequirement = 'none'|'any'|'local'|'foreign';
|
|
15
15
|
|
|
16
|
+
type TollFreeEmergencyAddressStatus = 'registered'|'unregistered'|'pending-registration'|'registration-failure'|'pending-unregistration'|'unregistration-failure';
|
|
17
|
+
|
|
16
18
|
type TollFreeEmergencyStatus = 'Active'|'Inactive';
|
|
17
19
|
|
|
18
20
|
type TollFreeVoiceReceiveMode = 'voice'|'fax';
|
|
@@ -283,6 +285,7 @@ interface TollFreeResource {
|
|
|
283
285
|
date_created: Date;
|
|
284
286
|
date_updated: Date;
|
|
285
287
|
emergency_address_sid: string;
|
|
288
|
+
emergency_address_status: TollFreeEmergencyAddressStatus;
|
|
286
289
|
emergency_status: TollFreeEmergencyStatus;
|
|
287
290
|
friendly_name: string;
|
|
288
291
|
identity_sid: string;
|
|
@@ -333,6 +336,7 @@ declare class TollFreeInstance extends SerializableClass {
|
|
|
333
336
|
dateCreated: Date;
|
|
334
337
|
dateUpdated: Date;
|
|
335
338
|
emergencyAddressSid: string;
|
|
339
|
+
emergencyAddressStatus: TollFreeEmergencyAddressStatus;
|
|
336
340
|
emergencyStatus: TollFreeEmergencyStatus;
|
|
337
341
|
friendlyName: string;
|
|
338
342
|
identitySid: string;
|
|
@@ -385,4 +389,4 @@ declare class TollFreePage extends Page<V2010, TollFreePayload, TollFreeResource
|
|
|
385
389
|
toJSON(): any;
|
|
386
390
|
}
|
|
387
391
|
|
|
388
|
-
export { TollFreeAddressRequirement, TollFreeEmergencyStatus, TollFreeInstance, TollFreeList, TollFreeListInstance, TollFreeListInstanceCreateOptions, TollFreeListInstanceEachOptions, TollFreeListInstanceOptions, TollFreeListInstancePageOptions, TollFreePage, TollFreePayload, TollFreeResource, TollFreeSolution, TollFreeVoiceReceiveMode }
|
|
392
|
+
export { TollFreeAddressRequirement, TollFreeEmergencyAddressStatus, TollFreeEmergencyStatus, TollFreeInstance, TollFreeList, TollFreeListInstance, TollFreeListInstanceCreateOptions, TollFreeListInstanceEachOptions, TollFreeListInstanceOptions, TollFreeListInstancePageOptions, TollFreePage, TollFreePayload, TollFreeResource, TollFreeSolution, TollFreeVoiceReceiveMode }
|
|
@@ -570,6 +570,8 @@ TollFreePage.prototype[util.inspect.custom] = function inspect(depth, options) {
|
|
|
570
570
|
* Displays if emergency calling is enabled for this number.
|
|
571
571
|
* @property {string} emergencyAddressSid -
|
|
572
572
|
* The emergency address configuration to use for emergency calling
|
|
573
|
+
* @property {toll_free.emergency_address_status} emergencyAddressStatus -
|
|
574
|
+
* State of the emergency address configuration for the phone number
|
|
573
575
|
* @property {string} bundleSid -
|
|
574
576
|
* The SID of the Bundle resource associated with number
|
|
575
577
|
* @property {string} status - The status
|
|
@@ -614,6 +616,7 @@ TollFreeInstance = function TollFreeInstance(version, payload, accountSid) {
|
|
|
614
616
|
this.voiceUrl = payload.voice_url; // jshint ignore:line
|
|
615
617
|
this.emergencyStatus = payload.emergency_status; // jshint ignore:line
|
|
616
618
|
this.emergencyAddressSid = payload.emergency_address_sid; // jshint ignore:line
|
|
619
|
+
this.emergencyAddressStatus = payload.emergency_address_status; // jshint ignore:line
|
|
617
620
|
this.bundleSid = payload.bundle_sid; // jshint ignore:line
|
|
618
621
|
this.status = payload.status; // jshint ignore:line
|
|
619
622
|
|
|
@@ -18,6 +18,8 @@ import { TollFreeListInstance } from './incomingPhoneNumber/tollFree';
|
|
|
18
18
|
|
|
19
19
|
type IncomingPhoneNumberAddressRequirement = 'none'|'any'|'local'|'foreign';
|
|
20
20
|
|
|
21
|
+
type IncomingPhoneNumberEmergencyAddressStatus = 'registered'|'unregistered'|'pending-registration'|'registration-failure'|'pending-unregistration'|'unregistration-failure';
|
|
22
|
+
|
|
21
23
|
type IncomingPhoneNumberEmergencyStatus = 'Active'|'Inactive';
|
|
22
24
|
|
|
23
25
|
type IncomingPhoneNumberVoiceReceiveMode = 'voice'|'fax';
|
|
@@ -364,6 +366,7 @@ interface IncomingPhoneNumberResource {
|
|
|
364
366
|
date_created: Date;
|
|
365
367
|
date_updated: Date;
|
|
366
368
|
emergency_address_sid: string;
|
|
369
|
+
emergency_address_status: IncomingPhoneNumberEmergencyAddressStatus;
|
|
367
370
|
emergency_status: IncomingPhoneNumberEmergencyStatus;
|
|
368
371
|
friendly_name: string;
|
|
369
372
|
identity_sid: string;
|
|
@@ -463,6 +466,7 @@ declare class IncomingPhoneNumberInstance extends SerializableClass {
|
|
|
463
466
|
dateCreated: Date;
|
|
464
467
|
dateUpdated: Date;
|
|
465
468
|
emergencyAddressSid: string;
|
|
469
|
+
emergencyAddressStatus: IncomingPhoneNumberEmergencyAddressStatus;
|
|
466
470
|
emergencyStatus: IncomingPhoneNumberEmergencyStatus;
|
|
467
471
|
/**
|
|
468
472
|
* fetch a IncomingPhoneNumberInstance
|
|
@@ -540,4 +544,4 @@ declare class IncomingPhoneNumberPage extends Page<V2010, IncomingPhoneNumberPay
|
|
|
540
544
|
toJSON(): any;
|
|
541
545
|
}
|
|
542
546
|
|
|
543
|
-
export { IncomingPhoneNumberAddressRequirement, IncomingPhoneNumberContext, IncomingPhoneNumberEmergencyStatus, IncomingPhoneNumberInstance, IncomingPhoneNumberInstanceUpdateOptions, IncomingPhoneNumberList, IncomingPhoneNumberListInstance, IncomingPhoneNumberListInstanceCreateOptions, IncomingPhoneNumberListInstanceEachOptions, IncomingPhoneNumberListInstanceOptions, IncomingPhoneNumberListInstancePageOptions, IncomingPhoneNumberPage, IncomingPhoneNumberPayload, IncomingPhoneNumberResource, IncomingPhoneNumberSolution, IncomingPhoneNumberVoiceReceiveMode }
|
|
547
|
+
export { IncomingPhoneNumberAddressRequirement, IncomingPhoneNumberContext, IncomingPhoneNumberEmergencyAddressStatus, IncomingPhoneNumberEmergencyStatus, IncomingPhoneNumberInstance, IncomingPhoneNumberInstanceUpdateOptions, IncomingPhoneNumberList, IncomingPhoneNumberListInstance, IncomingPhoneNumberListInstanceCreateOptions, IncomingPhoneNumberListInstanceEachOptions, IncomingPhoneNumberListInstanceOptions, IncomingPhoneNumberListInstancePageOptions, IncomingPhoneNumberPage, IncomingPhoneNumberPayload, IncomingPhoneNumberResource, IncomingPhoneNumberSolution, IncomingPhoneNumberVoiceReceiveMode }
|
|
@@ -646,6 +646,8 @@ IncomingPhoneNumberPage.prototype[util.inspect.custom] = function inspect(depth,
|
|
|
646
646
|
* Displays if emergency calling is enabled for this number.
|
|
647
647
|
* @property {string} emergencyAddressSid -
|
|
648
648
|
* The emergency address configuration to use for emergency calling
|
|
649
|
+
* @property {incoming_phone_number.emergency_address_status} emergencyAddressStatus -
|
|
650
|
+
* State of the emergency address configuration for the phone number
|
|
649
651
|
* @property {string} bundleSid -
|
|
650
652
|
* The SID of the Bundle resource associated with number
|
|
651
653
|
* @property {string} status - The status
|
|
@@ -692,6 +694,7 @@ IncomingPhoneNumberInstance = function IncomingPhoneNumberInstance(version,
|
|
|
692
694
|
this.voiceUrl = payload.voice_url; // jshint ignore:line
|
|
693
695
|
this.emergencyStatus = payload.emergency_status; // jshint ignore:line
|
|
694
696
|
this.emergencyAddressSid = payload.emergency_address_sid; // jshint ignore:line
|
|
697
|
+
this.emergencyAddressStatus = payload.emergency_address_status; // jshint ignore:line
|
|
695
698
|
this.bundleSid = payload.bundle_sid; // jshint ignore:line
|
|
696
699
|
this.status = payload.status; // jshint ignore:line
|
|
697
700
|
|