twilio 3.80.0 → 3.80.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/rest/Microvisor.d.ts +28 -0
- package/lib/rest/Microvisor.js +62 -0
- package/lib/rest/Preview.d.ts +0 -6
- package/lib/rest/Preview.js +0 -28
- package/lib/rest/Routes.d.ts +30 -0
- package/lib/rest/Routes.js +71 -0
- package/lib/rest/Twilio.d.ts +4 -0
- package/lib/rest/Twilio.js +28 -0
- package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts +2 -2
- package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.js +4 -4
- package/lib/rest/microvisor/V1.d.ts +28 -0
- package/lib/rest/microvisor/V1.js +57 -0
- package/lib/rest/{preview/bulk_exports/export/day.d.ts → microvisor/v1/app.d.ts} +79 -69
- package/lib/rest/{preview/bulk_exports/export/day.js → microvisor/v1/app.js} +160 -122
- package/lib/rest/{preview/bulk_exports/export/exportCustomJob.d.ts → microvisor/v1/device.d.ts} +136 -84
- package/lib/rest/microvisor/v1/device.js +652 -0
- package/lib/rest/routes/V2.d.ts +31 -0
- package/lib/rest/routes/V2.js +69 -0
- package/lib/rest/routes/v2/phoneNumber.d.ts +193 -0
- package/lib/rest/routes/v2/phoneNumber.js +466 -0
- package/lib/rest/routes/v2/sipDomain.d.ts +205 -0
- package/lib/rest/routes/v2/sipDomain.js +447 -0
- package/lib/rest/routes/v2/trunk.d.ts +205 -0
- package/lib/rest/routes/v2/trunk.js +458 -0
- package/lib/rest/supersim/v1/fleet.d.ts +3 -1
- package/lib/rest/supersim/v1/fleet.js +8 -3
- package/package.json +1 -1
- package/lib/rest/preview/BulkExports.d.ts +0 -28
- package/lib/rest/preview/BulkExports.js +0 -59
- package/lib/rest/preview/bulk_exports/export/exportCustomJob.js +0 -540
- package/lib/rest/preview/bulk_exports/export/job.d.ts +0 -163
- package/lib/rest/preview/bulk_exports/export/job.js +0 -390
- package/lib/rest/preview/bulk_exports/export.d.ts +0 -153
- package/lib/rest/preview/bulk_exports/export.js +0 -402
- package/lib/rest/preview/bulk_exports/exportConfiguration.d.ts +0 -180
- package/lib/rest/preview/bulk_exports/exportConfiguration.js +0 -411
|
@@ -0,0 +1,69 @@
|
|
|
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 PhoneNumberList = require('./v2/phoneNumber').PhoneNumberList;
|
|
14
|
+
var SipDomainList = require('./v2/sipDomain').SipDomainList;
|
|
15
|
+
var TrunkList = require('./v2/trunk').TrunkList;
|
|
16
|
+
var Version = require('../../base/Version'); /* jshint ignore:line */
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
/* jshint ignore:start */
|
|
20
|
+
/**
|
|
21
|
+
* Initialize the V2 version of Routes
|
|
22
|
+
*
|
|
23
|
+
* @constructor Twilio.Routes.V2
|
|
24
|
+
*
|
|
25
|
+
* @property {Twilio.Routes.V2.PhoneNumberList} phoneNumbers -
|
|
26
|
+
* phoneNumbers resource
|
|
27
|
+
* @property {Twilio.Routes.V2.SipDomainList} sipDomains - sipDomains resource
|
|
28
|
+
* @property {Twilio.Routes.V2.TrunkList} trunks - trunks resource
|
|
29
|
+
*
|
|
30
|
+
* @param {Twilio.Routes} domain - The twilio domain
|
|
31
|
+
*/
|
|
32
|
+
/* jshint ignore:end */
|
|
33
|
+
function V2(domain) {
|
|
34
|
+
Version.prototype.constructor.call(this, domain, 'v2');
|
|
35
|
+
|
|
36
|
+
// Resources
|
|
37
|
+
this._phoneNumbers = undefined;
|
|
38
|
+
this._sipDomains = undefined;
|
|
39
|
+
this._trunks = undefined;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
_.extend(V2.prototype, Version.prototype);
|
|
43
|
+
V2.prototype.constructor = V2;
|
|
44
|
+
|
|
45
|
+
Object.defineProperty(V2.prototype,
|
|
46
|
+
'phoneNumbers', {
|
|
47
|
+
get: function() {
|
|
48
|
+
this._phoneNumbers = this._phoneNumbers || new PhoneNumberList(this);
|
|
49
|
+
return this._phoneNumbers;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
Object.defineProperty(V2.prototype,
|
|
54
|
+
'sipDomains', {
|
|
55
|
+
get: function() {
|
|
56
|
+
this._sipDomains = this._sipDomains || new SipDomainList(this);
|
|
57
|
+
return this._sipDomains;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
Object.defineProperty(V2.prototype,
|
|
62
|
+
'trunks', {
|
|
63
|
+
get: function() {
|
|
64
|
+
this._trunks = this._trunks || new TrunkList(this);
|
|
65
|
+
return this._trunks;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
module.exports = V2;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by
|
|
3
|
+
* \ / _ _ _| _ _
|
|
4
|
+
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
|
+
* / /
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import Page = require('../../../base/Page');
|
|
9
|
+
import Response = require('../../../http/response');
|
|
10
|
+
import V2 = require('../V2');
|
|
11
|
+
import { SerializableClass } from '../../../interfaces';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Initialize the PhoneNumberList
|
|
15
|
+
*
|
|
16
|
+
* @param version - Version of the resource
|
|
17
|
+
*/
|
|
18
|
+
declare function PhoneNumberList(version: V2): PhoneNumberListInstance;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Options to pass to create
|
|
22
|
+
*
|
|
23
|
+
* @property friendlyName - A human readable description of this resource.
|
|
24
|
+
* @property voiceRegion - The Inbound Processing Region used for this phone number for voice
|
|
25
|
+
*/
|
|
26
|
+
interface PhoneNumberInstanceCreateOptions {
|
|
27
|
+
friendlyName?: string;
|
|
28
|
+
voiceRegion?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Options to pass to update
|
|
33
|
+
*
|
|
34
|
+
* @property friendlyName - A human readable description of this resource.
|
|
35
|
+
* @property voiceRegion - The Inbound Processing Region used for this phone number for voice
|
|
36
|
+
*/
|
|
37
|
+
interface PhoneNumberInstanceUpdateOptions {
|
|
38
|
+
friendlyName: string;
|
|
39
|
+
voiceRegion: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface PhoneNumberListInstance {
|
|
43
|
+
/**
|
|
44
|
+
* @param sid - sid of instance
|
|
45
|
+
*/
|
|
46
|
+
(sid: string): PhoneNumberContext;
|
|
47
|
+
/**
|
|
48
|
+
* Constructs a phone_number
|
|
49
|
+
*
|
|
50
|
+
* @param phoneNumber - The phone number
|
|
51
|
+
*/
|
|
52
|
+
get(phoneNumber: string): PhoneNumberContext;
|
|
53
|
+
/**
|
|
54
|
+
* Provide a user-friendly representation
|
|
55
|
+
*/
|
|
56
|
+
toJSON(): any;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
interface PhoneNumberPayload extends PhoneNumberResource, Page.TwilioResponsePayload {
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
interface PhoneNumberResource {
|
|
63
|
+
account_sid: string;
|
|
64
|
+
date_created: Date;
|
|
65
|
+
date_updated: Date;
|
|
66
|
+
friendly_name: string;
|
|
67
|
+
phone_number: string;
|
|
68
|
+
sid: string;
|
|
69
|
+
url: string;
|
|
70
|
+
voice_region: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
interface PhoneNumberSolution {
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
declare class PhoneNumberContext {
|
|
78
|
+
/**
|
|
79
|
+
* Initialize the PhoneNumberContext
|
|
80
|
+
*
|
|
81
|
+
* @param version - Version of the resource
|
|
82
|
+
* @param phoneNumber - The phone number
|
|
83
|
+
*/
|
|
84
|
+
constructor(version: V2, phoneNumber: string);
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* create a PhoneNumberInstance
|
|
88
|
+
*
|
|
89
|
+
* @param callback - Callback to handle processed record
|
|
90
|
+
*/
|
|
91
|
+
create(callback?: (error: Error | null, item: PhoneNumberInstance) => any): Promise<PhoneNumberInstance>;
|
|
92
|
+
/**
|
|
93
|
+
* create a PhoneNumberInstance
|
|
94
|
+
*
|
|
95
|
+
* @param opts - Options for request
|
|
96
|
+
* @param callback - Callback to handle processed record
|
|
97
|
+
*/
|
|
98
|
+
create(opts?: PhoneNumberInstanceCreateOptions, callback?: (error: Error | null, item: PhoneNumberInstance) => any): Promise<PhoneNumberInstance>;
|
|
99
|
+
/**
|
|
100
|
+
* fetch a PhoneNumberInstance
|
|
101
|
+
*
|
|
102
|
+
* @param callback - Callback to handle processed record
|
|
103
|
+
*/
|
|
104
|
+
fetch(callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise<PhoneNumberInstance>;
|
|
105
|
+
/**
|
|
106
|
+
* Provide a user-friendly representation
|
|
107
|
+
*/
|
|
108
|
+
toJSON(): any;
|
|
109
|
+
/**
|
|
110
|
+
* update a PhoneNumberInstance
|
|
111
|
+
*
|
|
112
|
+
* @param opts - Options for request
|
|
113
|
+
* @param callback - Callback to handle processed record
|
|
114
|
+
*/
|
|
115
|
+
update(opts: PhoneNumberInstanceUpdateOptions, callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise<PhoneNumberInstance>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
declare class PhoneNumberInstance extends SerializableClass {
|
|
120
|
+
/**
|
|
121
|
+
* Initialize the PhoneNumberContext
|
|
122
|
+
*
|
|
123
|
+
* @param version - Version of the resource
|
|
124
|
+
* @param payload - The instance payload
|
|
125
|
+
* @param phoneNumber - The phone number
|
|
126
|
+
*/
|
|
127
|
+
constructor(version: V2, payload: PhoneNumberPayload, phoneNumber: string);
|
|
128
|
+
|
|
129
|
+
private _proxy: PhoneNumberContext;
|
|
130
|
+
accountSid: string;
|
|
131
|
+
/**
|
|
132
|
+
* create a PhoneNumberInstance
|
|
133
|
+
*
|
|
134
|
+
* @param callback - Callback to handle processed record
|
|
135
|
+
*/
|
|
136
|
+
create(callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise<PhoneNumberInstance>;
|
|
137
|
+
/**
|
|
138
|
+
* create a PhoneNumberInstance
|
|
139
|
+
*
|
|
140
|
+
* @param opts - Options for request
|
|
141
|
+
* @param callback - Callback to handle processed record
|
|
142
|
+
*/
|
|
143
|
+
create(opts?: PhoneNumberInstanceCreateOptions, callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise<PhoneNumberInstance>;
|
|
144
|
+
dateCreated: Date;
|
|
145
|
+
dateUpdated: Date;
|
|
146
|
+
/**
|
|
147
|
+
* fetch a PhoneNumberInstance
|
|
148
|
+
*
|
|
149
|
+
* @param callback - Callback to handle processed record
|
|
150
|
+
*/
|
|
151
|
+
fetch(callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise<PhoneNumberInstance>;
|
|
152
|
+
friendlyName: string;
|
|
153
|
+
phoneNumber: string;
|
|
154
|
+
sid: string;
|
|
155
|
+
/**
|
|
156
|
+
* Provide a user-friendly representation
|
|
157
|
+
*/
|
|
158
|
+
toJSON(): any;
|
|
159
|
+
/**
|
|
160
|
+
* update a PhoneNumberInstance
|
|
161
|
+
*
|
|
162
|
+
* @param opts - Options for request
|
|
163
|
+
* @param callback - Callback to handle processed record
|
|
164
|
+
*/
|
|
165
|
+
update(opts: PhoneNumberInstanceUpdateOptions, callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise<PhoneNumberInstance>;
|
|
166
|
+
url: string;
|
|
167
|
+
voiceRegion: string;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
declare class PhoneNumberPage extends Page<V2, PhoneNumberPayload, PhoneNumberResource, PhoneNumberInstance> {
|
|
172
|
+
/**
|
|
173
|
+
* Initialize the PhoneNumberPage
|
|
174
|
+
*
|
|
175
|
+
* @param version - Version of the resource
|
|
176
|
+
* @param response - Response from the API
|
|
177
|
+
* @param solution - Path solution
|
|
178
|
+
*/
|
|
179
|
+
constructor(version: V2, response: Response<string>, solution: PhoneNumberSolution);
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Build an instance of PhoneNumberInstance
|
|
183
|
+
*
|
|
184
|
+
* @param payload - Payload response from the API
|
|
185
|
+
*/
|
|
186
|
+
getInstance(payload: PhoneNumberPayload): PhoneNumberInstance;
|
|
187
|
+
/**
|
|
188
|
+
* Provide a user-friendly representation
|
|
189
|
+
*/
|
|
190
|
+
toJSON(): any;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export { PhoneNumberContext, PhoneNumberInstance, PhoneNumberInstanceCreateOptions, PhoneNumberInstanceUpdateOptions, PhoneNumberList, PhoneNumberListInstance, PhoneNumberPage, PhoneNumberPayload, PhoneNumberResource, PhoneNumberSolution }
|