twilio 3.69.0 → 3.70.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/CHANGES.md +21 -0
- package/lib/jwt/AccessToken.d.ts +16 -0
- package/lib/jwt/AccessToken.js +20 -0
- package/lib/rest/Media.d.ts +28 -0
- package/lib/rest/Media.js +64 -0
- package/lib/rest/Twilio.d.ts +2 -0
- package/lib/rest/Twilio.js +14 -0
- 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/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 +286 -0
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.js +521 -0
- package/lib/rest/messaging/v1/brandRegistration.d.ts +14 -1
- package/lib/rest/messaging/v1/brandRegistration.js +36 -0
- package/lib/rest/messaging/v1/service.d.ts +8 -0
- package/lib/rest/messaging/v1/service.js +14 -0
- package/lib/rest/video/v1/room.d.ts +4 -0
- package/lib/rest/video/v1/room.js +7 -1
- package/package.json +2 -2
package/CHANGES.md
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
twilio-node changelog
|
|
2
2
|
=====================
|
|
3
3
|
|
|
4
|
+
[2021-10-18] Version 3.70.0
|
|
5
|
+
---------------------------
|
|
6
|
+
**Library - Feature**
|
|
7
|
+
- [PR #700](https://github.com/twilio/twilio-node/pull/700): Add PlaybackGrant. Thanks to [@sarahcstringer](https://github.com/sarahcstringer)!
|
|
8
|
+
|
|
9
|
+
**Library - Fix**
|
|
10
|
+
- [PR #695](https://github.com/twilio/twilio-node/pull/695): Update Axios package. Thanks to [@houmark](https://github.com/houmark)!
|
|
11
|
+
|
|
12
|
+
**Api**
|
|
13
|
+
- Corrected enum values for `emergency_address_status` values in `/IncomingPhoneNumbers` response. **(breaking change)**
|
|
14
|
+
- Clarify `emergency_address_status` values in `/IncomingPhoneNumbers` response.
|
|
15
|
+
|
|
16
|
+
**Messaging**
|
|
17
|
+
- Add PUT and List brand vettings api
|
|
18
|
+
- Removes beta feature flag based visibility for us_app_to_person_registered and usecase field.Updates test cases to add POLITICAL usecase. **(breaking change)**
|
|
19
|
+
- Add brand_feedback as optional field to BrandRegistrations
|
|
20
|
+
|
|
21
|
+
**Video**
|
|
22
|
+
- Add `AudioOnly` to create room
|
|
23
|
+
|
|
24
|
+
|
|
4
25
|
[2021-10-06] Version 3.69.0
|
|
5
26
|
---------------------------
|
|
6
27
|
**Api**
|
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/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() {
|
|
@@ -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
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by
|
|
3
|
+
* \ / _ _ _| _ _
|
|
4
|
+
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
|
+
* / /
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import Media = require('../Media');
|
|
9
|
+
import Version = require('../../base/Version');
|
|
10
|
+
import { MediaProcessorList } from './v1/mediaProcessor';
|
|
11
|
+
import { MediaProcessorListInstance } from './v1/mediaProcessor';
|
|
12
|
+
import { PlayerStreamerList } from './v1/playerStreamer';
|
|
13
|
+
import { PlayerStreamerListInstance } from './v1/playerStreamer';
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
declare class V1 extends Version {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize the V1 version of Media
|
|
19
|
+
*
|
|
20
|
+
* @param domain - The twilio domain
|
|
21
|
+
*/
|
|
22
|
+
constructor(domain: Media);
|
|
23
|
+
|
|
24
|
+
readonly mediaProcessor: MediaProcessorListInstance;
|
|
25
|
+
readonly playerStreamer: PlayerStreamerListInstance;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export = V1;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 MediaProcessorList = require('./v1/mediaProcessor').MediaProcessorList;
|
|
14
|
+
var PlayerStreamerList = require('./v1/playerStreamer').PlayerStreamerList;
|
|
15
|
+
var Version = require('../../base/Version'); /* jshint ignore:line */
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/* jshint ignore:start */
|
|
19
|
+
/**
|
|
20
|
+
* Initialize the V1 version of Media
|
|
21
|
+
*
|
|
22
|
+
* @constructor Twilio.Media.V1
|
|
23
|
+
*
|
|
24
|
+
* @property {Twilio.Media.V1.MediaProcessorList} mediaProcessor -
|
|
25
|
+
* mediaProcessor resource
|
|
26
|
+
* @property {Twilio.Media.V1.PlayerStreamerList} playerStreamer -
|
|
27
|
+
* playerStreamer resource
|
|
28
|
+
*
|
|
29
|
+
* @param {Twilio.Media} domain - The twilio domain
|
|
30
|
+
*/
|
|
31
|
+
/* jshint ignore:end */
|
|
32
|
+
function V1(domain) {
|
|
33
|
+
Version.prototype.constructor.call(this, domain, 'v1');
|
|
34
|
+
|
|
35
|
+
// Resources
|
|
36
|
+
this._mediaProcessor = undefined;
|
|
37
|
+
this._playerStreamer = undefined;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
_.extend(V1.prototype, Version.prototype);
|
|
41
|
+
V1.prototype.constructor = V1;
|
|
42
|
+
|
|
43
|
+
Object.defineProperty(V1.prototype,
|
|
44
|
+
'mediaProcessor', {
|
|
45
|
+
get: function() {
|
|
46
|
+
this._mediaProcessor = this._mediaProcessor || new MediaProcessorList(this);
|
|
47
|
+
return this._mediaProcessor;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
Object.defineProperty(V1.prototype,
|
|
52
|
+
'playerStreamer', {
|
|
53
|
+
get: function() {
|
|
54
|
+
this._playerStreamer = this._playerStreamer || new PlayerStreamerList(this);
|
|
55
|
+
return this._playerStreamer;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
module.exports = V1;
|