twilio 3.80.0 → 3.82.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.
Files changed (63) hide show
  1. package/lib/base/RequestClient.d.ts +26 -2
  2. package/lib/base/RequestClient.js +14 -2
  3. package/lib/rest/Messaging.d.ts +2 -0
  4. package/lib/rest/Messaging.js +9 -0
  5. package/lib/rest/Microvisor.d.ts +28 -0
  6. package/lib/rest/Microvisor.js +62 -0
  7. package/lib/rest/Preview.d.ts +0 -6
  8. package/lib/rest/Preview.js +0 -28
  9. package/lib/rest/Routes.d.ts +30 -0
  10. package/lib/rest/Routes.js +71 -0
  11. package/lib/rest/Twilio.d.ts +4 -0
  12. package/lib/rest/Twilio.js +28 -0
  13. package/lib/rest/Verify.d.ts +2 -0
  14. package/lib/rest/Verify.js +8 -0
  15. package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts +2 -2
  16. package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.js +4 -4
  17. package/lib/rest/flexApi/v1/configuration.d.ts +4 -0
  18. package/lib/rest/flexApi/v1/configuration.js +6 -0
  19. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +1 -1
  20. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +1 -1
  21. package/lib/rest/flexApi/v1/interaction.d.ts +1 -3
  22. package/lib/rest/messaging/V1.d.ts +3 -0
  23. package/lib/rest/messaging/V1.js +13 -0
  24. package/lib/rest/messaging/v1/tollfreeVerification.d.ts +418 -0
  25. package/lib/rest/messaging/v1/tollfreeVerification.js +802 -0
  26. package/lib/rest/microvisor/V1.d.ts +28 -0
  27. package/lib/rest/microvisor/V1.js +57 -0
  28. package/lib/rest/{preview/bulk_exports/export/day.d.ts → microvisor/v1/app.d.ts} +79 -69
  29. package/lib/rest/{preview/bulk_exports/export/day.js → microvisor/v1/app.js} +160 -122
  30. package/lib/rest/{preview/bulk_exports/export/exportCustomJob.d.ts → microvisor/v1/device.d.ts} +136 -84
  31. package/lib/rest/microvisor/v1/device.js +652 -0
  32. package/lib/rest/routes/V2.d.ts +31 -0
  33. package/lib/rest/routes/V2.js +69 -0
  34. package/lib/rest/routes/v2/phoneNumber.d.ts +168 -0
  35. package/lib/rest/routes/v2/phoneNumber.js +394 -0
  36. package/lib/rest/routes/v2/sipDomain.d.ts +168 -0
  37. package/lib/rest/routes/v2/sipDomain.js +383 -0
  38. package/lib/rest/routes/v2/trunk.d.ts +168 -0
  39. package/lib/rest/routes/v2/trunk.js +390 -0
  40. package/lib/rest/supersim/v1/fleet.d.ts +3 -1
  41. package/lib/rest/supersim/v1/fleet.js +8 -3
  42. package/lib/rest/verify/V2.d.ts +3 -0
  43. package/lib/rest/verify/V2.js +11 -0
  44. package/lib/rest/verify/v2/safelist.d.ts +161 -0
  45. package/lib/rest/verify/v2/safelist.js +408 -0
  46. package/lib/rest/verify/v2/service/verification.d.ts +1 -1
  47. package/lib/rest/verify/v2/service/verification.js +1 -1
  48. package/lib/rest/video/v1/room/roomParticipant/roomParticipantAnonymize.d.ts +143 -0
  49. package/lib/rest/video/v1/room/roomParticipant/roomParticipantAnonymize.js +337 -0
  50. package/lib/rest/video/v1/room/roomParticipant.d.ts +7 -0
  51. package/lib/rest/video/v1/room/roomParticipant.js +29 -0
  52. package/lib/twiml/VoiceResponse.d.ts +3 -3
  53. package/lib/webhooks/webhooks.js +1 -0
  54. package/package.json +1 -1
  55. package/lib/rest/preview/BulkExports.d.ts +0 -28
  56. package/lib/rest/preview/BulkExports.js +0 -59
  57. package/lib/rest/preview/bulk_exports/export/exportCustomJob.js +0 -540
  58. package/lib/rest/preview/bulk_exports/export/job.d.ts +0 -163
  59. package/lib/rest/preview/bulk_exports/export/job.js +0 -390
  60. package/lib/rest/preview/bulk_exports/export.d.ts +0 -153
  61. package/lib/rest/preview/bulk_exports/export.js +0 -402
  62. package/lib/rest/preview/bulk_exports/exportConfiguration.d.ts +0 -180
  63. package/lib/rest/preview/bulk_exports/exportConfiguration.js +0 -411
@@ -5,7 +5,7 @@ declare class RequestClient {
5
5
  constructor(opts?: RequestClient.RequestClientOptions);
6
6
  /**
7
7
  * Make an HTTP request
8
- * @param opts The request options
8
+ * @param opts The options https.Agent takes in
9
9
  */
10
10
  request<TData>(
11
11
  opts: RequestClient.RequestOptions<TData>
@@ -59,9 +59,33 @@ declare namespace RequestClient {
59
59
  export interface RequestClientOptions {
60
60
  /**
61
61
  * A timeout in milliseconds. This will be used as the HTTPS agent's socket
62
- * timeout, and as the default request timeout.
62
+ * timeout, AND as the default request timeout.
63
63
  */
64
64
  timeout?: number;
65
+ /**
66
+ * https.Agent keepAlive option
67
+ */
68
+ keepAlive?: boolean;
69
+ /**
70
+ * https.Agent keepAliveMSecs option
71
+ */
72
+ keepAliveMsecs?: number;
73
+ /**
74
+ * https.Agent maxSockets option
75
+ */
76
+ maxSockets?: number;
77
+ /**
78
+ * https.Agent maxTotalSockets option
79
+ */
80
+ maxTotalSockets?: number;
81
+ /**
82
+ * https.Agent maxFreeSockets option
83
+ */
84
+ maxFreeSockets?: number;
85
+ /**
86
+ * https.Agent scheduling option
87
+ */
88
+ scheduling?: string;
65
89
  }
66
90
 
67
91
  export interface Headers {
@@ -16,8 +16,14 @@ const DEFAULT_TIMEOUT = 30000;
16
16
 
17
17
  /**
18
18
  * Make http request
19
- * @param {object} opts - The options argument
20
- * @param {string} opts.timeout - A custom timeout to use. This will be used as the socket timeout, and as the default request timeout.
19
+ * @param {object} opts - The options passed to https.Agent
20
+ * @param {number} opts.timeout - https.Agent timeout option. Used as the socket timeout, AND as the default request timeout.
21
+ * @param {boolean} opts.keepAlive - https.Agent keepAlive option
22
+ * @param {number} opts.keepAliveMsecs - https.Agent keepAliveMsecs option
23
+ * @param {number} opts.maxSockets - https.Agent maxSockets option
24
+ * @param {number} opts.maxTotalSockets - https.Agent maxTotalSockets option
25
+ * @param {number} opts.maxFreeSockets - https.Agent maxFreeSockets option
26
+ * @param {string} opts.scheduling - https.Agent scheduling option
21
27
  */
22
28
  var RequestClient = function (opts) {
23
29
  opts = opts || {};
@@ -26,6 +32,12 @@ var RequestClient = function (opts) {
26
32
  // construct an https agent
27
33
  let agentOpts = {
28
34
  timeout: this.defaultTimeout,
35
+ keepAlive: opts.keepAlive,
36
+ keepAliveMsecs: opts.keepAliveMsecs,
37
+ maxSockets: opts.maxSockets,
38
+ maxTotalSockets: opts.maxTotalSockets,
39
+ maxFreeSockets: opts.maxFreeSockets,
40
+ scheduling: opts.scheduling,
29
41
  };
30
42
 
31
43
  let agent;
@@ -12,6 +12,7 @@ import { BrandRegistrationListInstance } from './messaging/v1/brandRegistration'
12
12
  import { DeactivationsListInstance } from './messaging/v1/deactivation';
13
13
  import { ExternalCampaignListInstance } from './messaging/v1/externalCampaign';
14
14
  import { ServiceListInstance } from './messaging/v1/service';
15
+ import { TollfreeVerificationListInstance } from './messaging/v1/tollfreeVerification';
15
16
  import { UsecaseListInstance } from './messaging/v1/usecase';
16
17
 
17
18
 
@@ -27,6 +28,7 @@ declare class Messaging extends Domain {
27
28
  readonly deactivations: DeactivationsListInstance;
28
29
  readonly externalCampaign: ExternalCampaignListInstance;
29
30
  readonly services: ServiceListInstance;
31
+ readonly tollfreeVerifications: TollfreeVerificationListInstance;
30
32
  readonly usecases: UsecaseListInstance;
31
33
  readonly v1: V1;
32
34
  }
@@ -28,6 +28,8 @@ var V1 = require('./messaging/V1'); /* jshint ignore:line */
28
28
  * @property {Twilio.Messaging.V1.ExternalCampaignList} externalCampaign -
29
29
  * externalCampaign resource
30
30
  * @property {Twilio.Messaging.V1.ServiceList} services - services resource
31
+ * @property {Twilio.Messaging.V1.TollfreeVerificationList} tollfreeVerifications -
32
+ * tollfreeVerifications resource
31
33
  * @property {Twilio.Messaging.V1.UsecaseList} usecases - usecases resource
32
34
  *
33
35
  * @param {Twilio} twilio - The twilio client
@@ -79,6 +81,13 @@ Object.defineProperty(Messaging.prototype,
79
81
  }
80
82
  });
81
83
 
84
+ Object.defineProperty(Messaging.prototype,
85
+ 'tollfreeVerifications', {
86
+ get: function() {
87
+ return this.v1.tollfreeVerifications;
88
+ }
89
+ });
90
+
82
91
  Object.defineProperty(Messaging.prototype,
83
92
  'usecases', {
84
93
  get: function() {
@@ -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('./microvisor/V1');
11
+ import { AppListInstance } from './microvisor/v1/app';
12
+ import { DeviceListInstance } from './microvisor/v1/device';
13
+
14
+
15
+ declare class Microvisor extends Domain {
16
+ /**
17
+ * Initialize microvisor domain
18
+ *
19
+ * @param twilio - The twilio client
20
+ */
21
+ constructor(twilio: Twilio);
22
+
23
+ readonly apps: AppListInstance;
24
+ readonly devices: DeviceListInstance;
25
+ readonly v1: V1;
26
+ }
27
+
28
+ export = Microvisor;
@@ -0,0 +1,62 @@
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('./microvisor/V1'); /* jshint ignore:line */
15
+
16
+
17
+ /* jshint ignore:start */
18
+ /**
19
+ * Initialize microvisor domain
20
+ *
21
+ * @constructor Twilio.Microvisor
22
+ *
23
+ * @property {Twilio.Microvisor.V1} v1 - v1 version
24
+ * @property {Twilio.Microvisor.V1.AppList} apps - apps resource
25
+ * @property {Twilio.Microvisor.V1.DeviceList} devices - devices resource
26
+ *
27
+ * @param {Twilio} twilio - The twilio client
28
+ */
29
+ /* jshint ignore:end */
30
+ function Microvisor(twilio) {
31
+ Domain.prototype.constructor.call(this, twilio, 'https://microvisor.twilio.com');
32
+
33
+ // Versions
34
+ this._v1 = undefined;
35
+ }
36
+
37
+ _.extend(Microvisor.prototype, Domain.prototype);
38
+ Microvisor.prototype.constructor = Microvisor;
39
+
40
+ Object.defineProperty(Microvisor.prototype,
41
+ 'v1', {
42
+ get: function() {
43
+ this._v1 = this._v1 || new V1(this);
44
+ return this._v1;
45
+ }
46
+ });
47
+
48
+ Object.defineProperty(Microvisor.prototype,
49
+ 'apps', {
50
+ get: function() {
51
+ return this.v1.apps;
52
+ }
53
+ });
54
+
55
+ Object.defineProperty(Microvisor.prototype,
56
+ 'devices', {
57
+ get: function() {
58
+ return this.v1.devices;
59
+ }
60
+ });
61
+
62
+ module.exports = Microvisor;
@@ -5,7 +5,6 @@
5
5
  * / /
6
6
  */
7
7
 
8
- import BulkExports = require('./preview/BulkExports');
9
8
  import DeployedDevices = require('./preview/DeployedDevices');
10
9
  import Domain = require('../base/Domain');
11
10
  import HostedNumbers = require('./preview/HostedNumbers');
@@ -23,8 +22,6 @@ import { BrandsInformationListInstance } from './preview/trusted_comms/brandsInf
23
22
  import { CommandListInstance } from './preview/wireless/command';
24
23
  import { CpsListInstance } from './preview/trusted_comms/cps';
25
24
  import { CurrentCallListInstance } from './preview/trusted_comms/currentCall';
26
- import { ExportConfigurationListInstance } from './preview/bulk_exports/exportConfiguration';
27
- import { ExportListInstance } from './preview/bulk_exports/export';
28
25
  import { FleetListInstance } from './preview/deployed_devices/fleet';
29
26
  import { HostedNumberOrderListInstance } from './preview/hosted_numbers/hostedNumberOrder';
30
27
  import { InstalledAddOnListInstance } from './preview/marketplace/installedAddOn';
@@ -46,13 +43,10 @@ declare class Preview extends Domain {
46
43
  readonly availableAddOns: AvailableAddOnListInstance;
47
44
  readonly brandedChannels: BrandedChannelListInstance;
48
45
  readonly brandsInformation: BrandsInformationListInstance;
49
- readonly bulk_exports: BulkExports;
50
46
  readonly commands: CommandListInstance;
51
47
  readonly cps: CpsListInstance;
52
48
  readonly currentCalls: CurrentCallListInstance;
53
49
  readonly deployed_devices: DeployedDevices;
54
- readonly exportConfiguration: ExportConfigurationListInstance;
55
- readonly exports: ExportListInstance;
56
50
  readonly fleets: FleetListInstance;
57
51
  readonly hostedNumberOrders: HostedNumberOrderListInstance;
58
52
  readonly hosted_numbers: HostedNumbers;
@@ -10,7 +10,6 @@
10
10
  /* jshint ignore:end */
11
11
 
12
12
  var _ = require('lodash'); /* jshint ignore:line */
13
- var BulkExports = require('./preview/BulkExports'); /* jshint ignore:line */
14
13
  var DeployedDevices = require(
15
14
  './preview/DeployedDevices'); /* jshint ignore:line */
16
15
  var Domain = require('../base/Domain'); /* jshint ignore:line */
@@ -29,7 +28,6 @@ var Wireless = require('./preview/Wireless'); /* jshint ignore:line */
29
28
  *
30
29
  * @constructor Twilio.Preview
31
30
  *
32
- * @property {Twilio.Preview.BulkExports} bulk_exports - bulk_exports version
33
31
  * @property {Twilio.Preview.DeployedDevices} deployed_devices -
34
32
  * deployed_devices version
35
33
  * @property {Twilio.Preview.HostedNumbers} hosted_numbers - hosted_numbers version
@@ -38,9 +36,6 @@ var Wireless = require('./preview/Wireless'); /* jshint ignore:line */
38
36
  * @property {Twilio.Preview.Understand} understand - understand version
39
37
  * @property {Twilio.Preview.Wireless} wireless - wireless version
40
38
  * @property {Twilio.Preview.TrustedComms} trusted_comms - trusted_comms version
41
- * @property {Twilio.Preview.BulkExports.ExportList} exports - exports resource
42
- * @property {Twilio.Preview.BulkExports.ExportConfigurationList} exportConfiguration -
43
- * exportConfiguration resource
44
39
  * @property {Twilio.Preview.DeployedDevices.FleetList} fleets - fleets resource
45
40
  * @property {Twilio.Preview.HostedNumbers.AuthorizationDocumentList} authorizationDocuments -
46
41
  * authorizationDocuments resource
@@ -71,7 +66,6 @@ function Preview(twilio) {
71
66
  Domain.prototype.constructor.call(this, twilio, 'https://preview.twilio.com');
72
67
 
73
68
  // Versions
74
- this._bulk_exports = undefined;
75
69
  this._deployed_devices = undefined;
76
70
  this._hosted_numbers = undefined;
77
71
  this._marketplace = undefined;
@@ -84,14 +78,6 @@ function Preview(twilio) {
84
78
  _.extend(Preview.prototype, Domain.prototype);
85
79
  Preview.prototype.constructor = Preview;
86
80
 
87
- Object.defineProperty(Preview.prototype,
88
- 'bulk_exports', {
89
- get: function() {
90
- this._bulk_exports = this._bulk_exports || new BulkExports(this);
91
- return this._bulk_exports;
92
- }
93
- });
94
-
95
81
  Object.defineProperty(Preview.prototype,
96
82
  'deployed_devices', {
97
83
  get: function() {
@@ -148,20 +134,6 @@ Object.defineProperty(Preview.prototype,
148
134
  }
149
135
  });
150
136
 
151
- Object.defineProperty(Preview.prototype,
152
- 'exports', {
153
- get: function() {
154
- return this.bulk_exports.exports;
155
- }
156
- });
157
-
158
- Object.defineProperty(Preview.prototype,
159
- 'exportConfiguration', {
160
- get: function() {
161
- return this.bulk_exports.exportConfiguration;
162
- }
163
- });
164
-
165
137
  Object.defineProperty(Preview.prototype,
166
138
  'fleets', {
167
139
  get: function() {
@@ -0,0 +1,30 @@
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 V2 = require('./routes/V2');
11
+ import { PhoneNumberListInstance } from './routes/v2/phoneNumber';
12
+ import { SipDomainListInstance } from './routes/v2/sipDomain';
13
+ import { TrunkListInstance } from './routes/v2/trunk';
14
+
15
+
16
+ declare class Routes extends Domain {
17
+ /**
18
+ * Initialize routes domain
19
+ *
20
+ * @param twilio - The twilio client
21
+ */
22
+ constructor(twilio: Twilio);
23
+
24
+ readonly phoneNumbers: PhoneNumberListInstance;
25
+ readonly sipDomains: SipDomainListInstance;
26
+ readonly trunks: TrunkListInstance;
27
+ readonly v2: V2;
28
+ }
29
+
30
+ export = Routes;
@@ -0,0 +1,71 @@
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 V2 = require('./routes/V2'); /* jshint ignore:line */
15
+
16
+
17
+ /* jshint ignore:start */
18
+ /**
19
+ * Initialize routes domain
20
+ *
21
+ * @constructor Twilio.Routes
22
+ *
23
+ * @property {Twilio.Routes.V2} v2 - v2 version
24
+ * @property {Twilio.Routes.V2.PhoneNumberList} phoneNumbers -
25
+ * phoneNumbers resource
26
+ * @property {Twilio.Routes.V2.SipDomainList} sipDomains - sipDomains resource
27
+ * @property {Twilio.Routes.V2.TrunkList} trunks - trunks resource
28
+ *
29
+ * @param {Twilio} twilio - The twilio client
30
+ */
31
+ /* jshint ignore:end */
32
+ function Routes(twilio) {
33
+ Domain.prototype.constructor.call(this, twilio, 'https://routes.twilio.com');
34
+
35
+ // Versions
36
+ this._v2 = undefined;
37
+ }
38
+
39
+ _.extend(Routes.prototype, Domain.prototype);
40
+ Routes.prototype.constructor = Routes;
41
+
42
+ Object.defineProperty(Routes.prototype,
43
+ 'v2', {
44
+ get: function() {
45
+ this._v2 = this._v2 || new V2(this);
46
+ return this._v2;
47
+ }
48
+ });
49
+
50
+ Object.defineProperty(Routes.prototype,
51
+ 'phoneNumbers', {
52
+ get: function() {
53
+ return this.v2.phoneNumbers;
54
+ }
55
+ });
56
+
57
+ Object.defineProperty(Routes.prototype,
58
+ 'sipDomains', {
59
+ get: function() {
60
+ return this.v2.sipDomains;
61
+ }
62
+ });
63
+
64
+ Object.defineProperty(Routes.prototype,
65
+ 'trunks', {
66
+ get: function() {
67
+ return this.v2.trunks;
68
+ }
69
+ });
70
+
71
+ module.exports = Routes;
@@ -19,6 +19,7 @@ import IpMessaging = require('./IpMessaging');
19
19
  import Lookups = require('./Lookups');
20
20
  import Media = require('./Media');
21
21
  import Messaging = require('./Messaging');
22
+ import Microvisor = require('./Microvisor');
22
23
  import Monitor = require('./Monitor');
23
24
  import Notify = require('./Notify');
24
25
  import Numbers = require('./Numbers');
@@ -26,6 +27,7 @@ import Preview = require('./Preview');
26
27
  import Pricing = require('./Pricing');
27
28
  import Proxy = require('./Proxy');
28
29
  import RequestClient = require('../base/RequestClient');
30
+ import Routes = require('./Routes');
29
31
  import Serverless = require('./Serverless');
30
32
  import Studio = require('./Studio');
31
33
  import Supersim = require('./Supersim');
@@ -74,6 +76,7 @@ declare class Twilio {
74
76
  media: Media;
75
77
  messages: (typeof Api.prototype.account.messages);
76
78
  messaging: Messaging;
79
+ microvisor: Microvisor;
77
80
  monitor: Monitor;
78
81
  newKeys: (typeof Api.prototype.account.newKeys);
79
82
  newSigningKeys: (typeof Api.prototype.account.newSigningKeys);
@@ -93,6 +96,7 @@ declare class Twilio {
93
96
  * @param opts - The options argument
94
97
  */
95
98
  request(opts: Twilio.RequestOptions): Promise<any>;
99
+ routes: Routes;
96
100
  serverless: Serverless;
97
101
  shortCodes: (typeof Api.prototype.account.shortCodes);
98
102
  signingKeys: (typeof Api.prototype.account.signingKeys);
@@ -41,6 +41,7 @@ var RestException = require('../base/RestException'); /* jshint ignore:line */
41
41
  * @property {Twilio.Preview} preview - preview domain
42
42
  * @property {Twilio.Pricing} pricing - pricing domain
43
43
  * @property {Twilio.Proxy} proxy - proxy domain
44
+ * @property {Twilio.Routes} routes - routes domain
44
45
  * @property {Twilio.Serverless} serverless - serverless domain
45
46
  * @property {Twilio.Studio} studio - studio domain
46
47
  * @property {Twilio.Sync} sync - sync domain
@@ -53,6 +54,7 @@ var RestException = require('../base/RestException'); /* jshint ignore:line */
53
54
  * @property {Twilio.Wireless} wireless - wireless domain
54
55
  * @property {Twilio.Supersim} supersim - supersim domain
55
56
  * @property {Twilio.Bulkexports} bulkexports - bulkexports domain
57
+ * @property {Twilio.Microvisor} microvisor - microvisor domain
56
58
  * @property {Twilio.Api.V2010.AccountContext.AddressList} addresses -
57
59
  * addresses resource
58
60
  * @property {Twilio.Api.V2010.AccountContext.ApplicationList} applications -
@@ -166,6 +168,7 @@ function Twilio(username, password, opts) {
166
168
  this._preview = undefined;
167
169
  this._pricing = undefined;
168
170
  this._proxy = undefined;
171
+ this._routes = undefined;
169
172
  this._serverless = undefined;
170
173
  this._studio = undefined;
171
174
  this._sync = undefined;
@@ -178,6 +181,7 @@ function Twilio(username, password, opts) {
178
181
  this._wireless = undefined;
179
182
  this._supersim = undefined;
180
183
  this._bulkexports = undefined;
184
+ this._microvisor = undefined;
181
185
 
182
186
  if (opts.lazyLoading == false) {
183
187
  this.accounts;
@@ -199,6 +203,7 @@ function Twilio(username, password, opts) {
199
203
  this.preview;
200
204
  this.pricing;
201
205
  this.proxy;
206
+ this.routes;
202
207
  this.serverless;
203
208
  this.studio;
204
209
  this.sync;
@@ -211,6 +216,7 @@ function Twilio(username, password, opts) {
211
216
  this.wireless;
212
217
  this.supersim;
213
218
  this.bulkexports;
219
+ this.microvisor;
214
220
  }
215
221
  }
216
222
 
@@ -568,6 +574,17 @@ Object.defineProperty(Twilio.prototype,
568
574
  }
569
575
  });
570
576
 
577
+ Object.defineProperty(Twilio.prototype,
578
+ 'routes', {
579
+ get: function() {
580
+ if (!this._routes) {
581
+ var Routes = require('./Routes'); /* jshint ignore:line */
582
+ this._routes = new Routes(this);
583
+ }
584
+ return this._routes;
585
+ }
586
+ });
587
+
571
588
  Object.defineProperty(Twilio.prototype,
572
589
  'serverless', {
573
590
  get: function() {
@@ -700,6 +717,17 @@ Object.defineProperty(Twilio.prototype,
700
717
  }
701
718
  });
702
719
 
720
+ Object.defineProperty(Twilio.prototype,
721
+ 'microvisor', {
722
+ get: function() {
723
+ if (!this._microvisor) {
724
+ var Microvisor = require('./Microvisor'); /* jshint ignore:line */
725
+ this._microvisor = new Microvisor(this);
726
+ }
727
+ return this._microvisor;
728
+ }
729
+ });
730
+
703
731
  Object.defineProperty(Twilio.prototype,
704
732
  'addresses', {
705
733
  get: function() {
@@ -9,6 +9,7 @@ import Domain = require('../base/Domain');
9
9
  import Twilio = require('./Twilio');
10
10
  import V2 = require('./verify/V2');
11
11
  import { FormListInstance } from './verify/v2/form';
12
+ import { SafelistListInstance } from './verify/v2/safelist';
12
13
  import { ServiceListInstance } from './verify/v2/service';
13
14
  import { TemplateListInstance } from './verify/v2/template';
14
15
  import { VerificationAttemptListInstance } from './verify/v2/verificationAttempt';
@@ -24,6 +25,7 @@ declare class Verify extends Domain {
24
25
  constructor(twilio: Twilio);
25
26
 
26
27
  readonly forms: FormListInstance;
28
+ readonly safelist: SafelistListInstance;
27
29
  readonly services: ServiceListInstance;
28
30
  readonly templates: TemplateListInstance;
29
31
  readonly v2: V2;
@@ -22,6 +22,7 @@ var V2 = require('./verify/V2'); /* jshint ignore:line */
22
22
  *
23
23
  * @property {Twilio.Verify.V2} v2 - v2 version
24
24
  * @property {Twilio.Verify.V2.FormList} forms - forms resource
25
+ * @property {Twilio.Verify.V2.SafelistList} safelist - safelist resource
25
26
  * @property {Twilio.Verify.V2.ServiceList} services - services resource
26
27
  * @property {Twilio.Verify.V2.VerificationAttemptList} verificationAttempts -
27
28
  * verificationAttempts resource
@@ -57,6 +58,13 @@ Object.defineProperty(Verify.prototype,
57
58
  }
58
59
  });
59
60
 
61
+ Object.defineProperty(Verify.prototype,
62
+ 'safelist', {
63
+ get: function() {
64
+ return this.v2.safelist;
65
+ }
66
+ });
67
+
60
68
  Object.defineProperty(Verify.prototype,
61
69
  'services', {
62
70
  get: function() {
@@ -23,7 +23,7 @@ declare function IpAddressList(version: V2010, accountSid: string, ipAccessContr
23
23
  * Options to pass to update
24
24
  *
25
25
  * @property cidrPrefixLength - An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used.
26
- * @property friendlyName - A human readable descriptive text for this resource, up to 64 characters long.
26
+ * @property friendlyName - A human readable descriptive text for this resource, up to 255 characters long.
27
27
  * @property ipAddress - An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today.
28
28
  */
29
29
  interface IpAddressInstanceUpdateOptions {
@@ -156,7 +156,7 @@ interface IpAddressListInstance {
156
156
  * Options to pass to create
157
157
  *
158
158
  * @property cidrPrefixLength - An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used.
159
- * @property friendlyName - A human readable descriptive text for this resource, up to 64 characters long.
159
+ * @property friendlyName - A human readable descriptive text for this resource, up to 255 characters long.
160
160
  * @property ipAddress - An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today.
161
161
  */
162
162
  interface IpAddressListInstanceCreateOptions {
@@ -311,7 +311,7 @@ IpAddressList = function IpAddressList(version, accountSid,
311
311
  *
312
312
  * @param {object} opts - Options for request
313
313
  * @param {string} opts.friendlyName -
314
- * A human readable descriptive text for this resource, up to 64 characters long.
314
+ * A human readable descriptive text for this resource, up to 255 characters long.
315
315
  * @param {string} opts.ipAddress -
316
316
  * An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today.
317
317
  * @param {number} [opts.cidrPrefixLength] -
@@ -486,7 +486,7 @@ IpAddressPage.prototype[util.inspect.custom] = function inspect(depth, options)
486
486
  * @property {string} accountSid -
487
487
  * The unique id of the Account that is responsible for this resource.
488
488
  * @property {string} friendlyName -
489
- * A human readable descriptive text for this resource, up to 64 characters long.
489
+ * A human readable descriptive text for this resource, up to 255 characters long.
490
490
  * @property {string} ipAddress -
491
491
  * An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today.
492
492
  * @property {number} cidrPrefixLength -
@@ -576,7 +576,7 @@ IpAddressInstance.prototype.fetch = function fetch(callback) {
576
576
  * @param {string} [opts.ipAddress] -
577
577
  * An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today.
578
578
  * @param {string} [opts.friendlyName] -
579
- * A human readable descriptive text for this resource, up to 64 characters long.
579
+ * A human readable descriptive text for this resource, up to 255 characters long.
580
580
  * @param {number} [opts.cidrPrefixLength] -
581
581
  * An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used.
582
582
  * @param {function} [callback] - Callback to handle processed record
@@ -700,7 +700,7 @@ IpAddressContext.prototype.fetch = function fetch(callback) {
700
700
  * @param {string} [opts.ipAddress] -
701
701
  * An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today.
702
702
  * @param {string} [opts.friendlyName] -
703
- * A human readable descriptive text for this resource, up to 64 characters long.
703
+ * A human readable descriptive text for this resource, up to 255 characters long.
704
704
  * @param {number} [opts.cidrPrefixLength] -
705
705
  * An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used.
706
706
  * @param {function} [callback] - Callback to handle processed record
@@ -60,9 +60,11 @@ interface ConfigurationResource {
60
60
  crm_type: string;
61
61
  date_created: Date;
62
62
  date_updated: Date;
63
+ debugger_integration: object;
63
64
  flex_insights_drilldown: boolean;
64
65
  flex_insights_hr: object;
65
66
  flex_service_instance_sid: string;
67
+ flex_ui_status_report: object;
66
68
  flex_url: string;
67
69
  integrations: object[];
68
70
  markdown: object;
@@ -165,6 +167,7 @@ declare class ConfigurationInstance extends SerializableClass {
165
167
  crmType: string;
166
168
  dateCreated: Date;
167
169
  dateUpdated: Date;
170
+ debuggerIntegration: any;
168
171
  /**
169
172
  * fetch a ConfigurationInstance
170
173
  *
@@ -181,6 +184,7 @@ declare class ConfigurationInstance extends SerializableClass {
181
184
  flexInsightsDrilldown: boolean;
182
185
  flexInsightsHr: any;
183
186
  flexServiceInstanceSid: string;
187
+ flexUiStatusReport: any;
184
188
  flexUrl: string;
185
189
  integrations: object[];
186
190
  markdown: any;
@@ -216,6 +216,10 @@ ConfigurationPage.prototype[util.inspect.custom] = function inspect(depth,
216
216
  * @property {string} flexUrl - URL to redirect to in case drilldown is enabled.
217
217
  * @property {object} channelConfigs -
218
218
  * Flex Conversations channels' attachments configurations
219
+ * @property {object} debuggerIntegration -
220
+ * Configurable parameters for Debugger Integration
221
+ * @property {object} flexUiStatusReport -
222
+ * Configurable parameters for Flex UI Status report
219
223
  *
220
224
  * @param {V1} version - Version of the resource
221
225
  * @param {ConfigurationPayload} payload - The instance payload
@@ -268,6 +272,8 @@ ConfigurationInstance = function ConfigurationInstance(version, payload) {
268
272
  this.flexInsightsDrilldown = payload.flex_insights_drilldown; // jshint ignore:line
269
273
  this.flexUrl = payload.flex_url; // jshint ignore:line
270
274
  this.channelConfigs = payload.channel_configs; // jshint ignore:line
275
+ this.debuggerIntegration = payload.debugger_integration; // jshint ignore:line
276
+ this.flexUiStatusReport = payload.flex_ui_status_report; // jshint ignore:line
271
277
 
272
278
  // Context
273
279
  this._context = undefined;
@@ -10,7 +10,7 @@ import Response = require('../../../../../http/response');
10
10
  import V1 = require('../../../V1');
11
11
  import { SerializableClass } from '../../../../../interfaces';
12
12
 
13
- type InteractionChannelParticipantStatus = 'close'|'closed'|'wrapup';
13
+ type InteractionChannelParticipantStatus = 'closed'|'wrapup';
14
14
 
15
15
  type InteractionChannelParticipantType = 'supervisor'|'customer'|'external'|'agent'|'unknown';
16
16