twilio 5.3.2 → 5.3.4

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 (33) hide show
  1. package/lib/base/RequestClient.d.ts +1 -0
  2. package/lib/rest/PreviewBase.d.ts +0 -3
  3. package/lib/rest/PreviewBase.js +0 -6
  4. package/lib/rest/iam/V1.d.ts +5 -5
  5. package/lib/rest/iam/V1.js +5 -5
  6. package/lib/rest/iam/v1/{newApiKey.d.ts → key.d.ts} +14 -14
  7. package/lib/rest/iam/v1/{newApiKey.js → key.js} +6 -6
  8. package/lib/rest/messaging/V1.d.ts +5 -0
  9. package/lib/rest/messaging/V1.js +7 -0
  10. package/lib/rest/messaging/v1/requestManagedCert.d.ts +127 -0
  11. package/lib/rest/messaging/v1/requestManagedCert.js +122 -0
  12. package/lib/rest/numbers/v1/portingPortability.d.ts +2 -0
  13. package/lib/rest/numbers/v1/portingPortability.js +2 -0
  14. package/lib/rest/taskrouter/v1/workspace/task.d.ts +2 -2
  15. package/lib/rest/verify/v2/service/verification.d.ts +2 -0
  16. package/lib/rest/verify/v2/service/verification.js +2 -0
  17. package/lib/rest/verify/v2/service/verificationCheck.d.ts +2 -0
  18. package/lib/rest/verify/v2/service/verificationCheck.js +2 -0
  19. package/lib/rest/video/v1/room.d.ts +14 -14
  20. package/lib/webhooks/webhooks.d.ts +1 -0
  21. package/package.json +1 -1
  22. package/lib/rest/preview/DeployedDevices.d.ts +0 -15
  23. package/lib/rest/preview/DeployedDevices.js +0 -36
  24. package/lib/rest/preview/deployed_devices/fleet/certificate.d.ts +0 -324
  25. package/lib/rest/preview/deployed_devices/fleet/certificate.js +0 -269
  26. package/lib/rest/preview/deployed_devices/fleet/deployment.d.ts +0 -318
  27. package/lib/rest/preview/deployed_devices/fleet/deployment.js +0 -264
  28. package/lib/rest/preview/deployed_devices/fleet/device.d.ts +0 -358
  29. package/lib/rest/preview/deployed_devices/fleet/device.js +0 -284
  30. package/lib/rest/preview/deployed_devices/fleet/key.d.ts +0 -330
  31. package/lib/rest/preview/deployed_devices/fleet/key.js +0 -268
  32. package/lib/rest/preview/deployed_devices/fleet.d.ts +0 -352
  33. package/lib/rest/preview/deployed_devices/fleet.js +0 -307
@@ -26,21 +26,21 @@ export interface RoomListInstanceCreateOptions {
26
26
  type?: RoomRoomType;
27
27
  /** An application-defined string that uniquely identifies the resource. It can be used as a `room_sid` in place of the resource\\\'s `sid` in the URL to address the resource, assuming it does not contain any [reserved characters](https://tools.ietf.org/html/rfc3986#section-2.2) that would need to be URL encoded. This value is unique for `in-progress` rooms. SDK clients can use this name to connect to the room. REST API clients can use this name in place of the Room SID to interact with the room as long as the room is `in-progress`. */
28
28
  uniqueName?: string;
29
- /** The URL we should call using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info. */
29
+ /** The URL Twilio should call using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info. */
30
30
  statusCallback?: string;
31
- /** The HTTP method we should use to call `status_callback`. Can be `POST` or `GET`. */
31
+ /** The HTTP method Twilio should use to call `status_callback`. Can be `POST` or `GET`. */
32
32
  statusCallbackMethod?: string;
33
- /** The maximum number of concurrent Participants allowed in the room. Peer-to-peer rooms can have up to 10 Participants. Small Group rooms can have up to 4 Participants. Group rooms can have up to 50 Participants. */
33
+ /** The maximum number of concurrent Participants allowed in the room. The maximum allowed value is 50. */
34
34
  maxParticipants?: number;
35
- /** Whether to start recording when Participants connect. ***This feature is not available in `peer-to-peer` rooms.*** */
35
+ /** Whether to start recording when Participants connect. */
36
36
  recordParticipantsOnConnect?: boolean;
37
- /** An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. ***This feature is not available in `peer-to-peer` rooms*** */
37
+ /** An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. */
38
38
  videoCodecs?: Array<RoomVideoCodec>;
39
- /** The region for the media server in Group Rooms. Can be: one of the [available Media Regions](https://www.twilio.com/docs/video/ip-addresses#group-rooms-media-servers). ***This feature is not available in `peer-to-peer` rooms.*** */
39
+ /** The region for the Room\\\'s media server. Can be one of the [available Media Regions](https://www.twilio.com/docs/video/ip-addresses#group-rooms-media-servers). */
40
40
  mediaRegion?: string;
41
41
  /** A collection of Recording Rules that describe how to include or exclude matching tracks for recording */
42
42
  recordingRules?: any;
43
- /** When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed. Group rooms only. */
43
+ /** When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed. */
44
44
  audioOnly?: boolean;
45
45
  /** The maximum number of seconds a Participant can be connected to the room. The maximum possible value is 86400 seconds (24 hours). The default is 14400 seconds (4 hours). */
46
46
  maxParticipantDuration?: number;
@@ -194,7 +194,7 @@ export declare class RoomInstance {
194
194
  protected _context?: RoomContext;
195
195
  constructor(_version: V1, payload: RoomResource, sid?: string);
196
196
  /**
197
- * The unique string that we created to identify the Room resource.
197
+ * The unique string that Twilio created to identify the Room resource.
198
198
  */
199
199
  sid: string;
200
200
  status: RoomRoomStatus;
@@ -219,11 +219,11 @@ export declare class RoomInstance {
219
219
  */
220
220
  uniqueName: string;
221
221
  /**
222
- * The URL we call using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info.
222
+ * The URL Twilio calls using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info.
223
223
  */
224
224
  statusCallback: string;
225
225
  /**
226
- * The HTTP method we use to call `status_callback`. Can be `POST` or `GET` and defaults to `POST`.
226
+ * The HTTP method Twilio uses to call `status_callback`. Can be `POST` or `GET` and defaults to `POST`.
227
227
  */
228
228
  statusCallbackMethod: string;
229
229
  /**
@@ -248,19 +248,19 @@ export declare class RoomInstance {
248
248
  */
249
249
  maxConcurrentPublishedTracks: number;
250
250
  /**
251
- * Whether to start recording when Participants connect. ***This feature is not available in `peer-to-peer` rooms.***
251
+ * Whether to start recording when Participants connect.
252
252
  */
253
253
  recordParticipantsOnConnect: boolean;
254
254
  /**
255
- * An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. ***This feature is not available in `peer-to-peer` rooms***
255
+ * An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`.
256
256
  */
257
257
  videoCodecs: Array<RoomVideoCodec>;
258
258
  /**
259
- * The region for the media server in Group Rooms. Can be: one of the [available Media Regions](https://www.twilio.com/docs/video/ip-addresses#media-servers). ***This feature is not available in `peer-to-peer` rooms.***
259
+ * The region for the Room\'s media server. Can be one of the [available Media Regions](https://www.twilio.com/docs/video/ip-addresses#media-servers).
260
260
  */
261
261
  mediaRegion: string;
262
262
  /**
263
- * When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed. Group rooms only.
263
+ * When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed.
264
264
  */
265
265
  audioOnly: boolean;
266
266
  /**
@@ -1,5 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
+ /// <reference types="node" />
3
4
  import { IncomingHttpHeaders } from "http2";
4
5
  export interface Request {
5
6
  protocol: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "twilio",
3
3
  "description": "A Twilio helper library",
4
- "version": "5.3.2",
4
+ "version": "5.3.4",
5
5
  "author": "API Team <api@twilio.com>",
6
6
  "contributors": [
7
7
  {
@@ -1,15 +0,0 @@
1
- import PreviewBase from "../PreviewBase";
2
- import Version from "../../base/Version";
3
- import { FleetListInstance } from "./deployed_devices/fleet";
4
- export default class DeployedDevices extends Version {
5
- /**
6
- * Initialize the DeployedDevices version of Preview
7
- *
8
- * @param domain - The Twilio (Twilio.Preview) domain
9
- */
10
- constructor(domain: PreviewBase);
11
- /** fleets - { Twilio.Preview.DeployedDevices.FleetListInstance } resource */
12
- protected _fleets?: FleetListInstance;
13
- /** Getter for fleets resource */
14
- get fleets(): FleetListInstance;
15
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /*
3
- * This code was generated by
4
- * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
- * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
- * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
- *
8
- * Twilio - Preview
9
- * This is the public Twilio REST API.
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator.
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- const Version_1 = __importDefault(require("../../base/Version"));
20
- const fleet_1 = require("./deployed_devices/fleet");
21
- class DeployedDevices extends Version_1.default {
22
- /**
23
- * Initialize the DeployedDevices version of Preview
24
- *
25
- * @param domain - The Twilio (Twilio.Preview) domain
26
- */
27
- constructor(domain) {
28
- super(domain, "DeployedDevices");
29
- }
30
- /** Getter for fleets resource */
31
- get fleets() {
32
- this._fleets = this._fleets || (0, fleet_1.FleetListInstance)(this);
33
- return this._fleets;
34
- }
35
- }
36
- exports.default = DeployedDevices;
@@ -1,324 +0,0 @@
1
- /// <reference types="node" />
2
- import { inspect, InspectOptions } from "util";
3
- import Page, { TwilioResponsePayload } from "../../../../base/Page";
4
- import Response from "../../../../http/response";
5
- import DeployedDevices from "../../DeployedDevices";
6
- /**
7
- * Options to pass to update a CertificateInstance
8
- */
9
- export interface CertificateContextUpdateOptions {
10
- /** Provides a human readable descriptive text for this Certificate credential, up to 256 characters long. */
11
- friendlyName?: string;
12
- /** Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential. */
13
- deviceSid?: string;
14
- }
15
- /**
16
- * Options to pass to create a CertificateInstance
17
- */
18
- export interface CertificateListInstanceCreateOptions {
19
- /** Provides a URL encoded representation of the public certificate in PEM format. */
20
- certificateData: string;
21
- /** Provides a human readable descriptive text for this Certificate credential, up to 256 characters long. */
22
- friendlyName?: string;
23
- /** Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential. */
24
- deviceSid?: string;
25
- }
26
- /**
27
- * Options to pass to each
28
- */
29
- export interface CertificateListInstanceEachOptions {
30
- /** Filters the resulting list of Certificates by a unique string identifier of an authenticated Device. */
31
- deviceSid?: string;
32
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
33
- pageSize?: number;
34
- /** Function to process each record. If this and a positional callback are passed, this one will be used */
35
- callback?: (item: CertificateInstance, done: (err?: Error) => void) => void;
36
- /** Function to be called upon completion of streaming */
37
- done?: Function;
38
- /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
39
- limit?: number;
40
- }
41
- /**
42
- * Options to pass to list
43
- */
44
- export interface CertificateListInstanceOptions {
45
- /** Filters the resulting list of Certificates by a unique string identifier of an authenticated Device. */
46
- deviceSid?: string;
47
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
48
- pageSize?: number;
49
- /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
50
- limit?: number;
51
- }
52
- /**
53
- * Options to pass to page
54
- */
55
- export interface CertificateListInstancePageOptions {
56
- /** Filters the resulting list of Certificates by a unique string identifier of an authenticated Device. */
57
- deviceSid?: string;
58
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
59
- pageSize?: number;
60
- /** Page Number, this value is simply for client state */
61
- pageNumber?: number;
62
- /** PageToken provided by the API */
63
- pageToken?: string;
64
- }
65
- export interface CertificateContext {
66
- /**
67
- * Remove a CertificateInstance
68
- *
69
- * @param callback - Callback to handle processed record
70
- *
71
- * @returns Resolves to processed boolean
72
- */
73
- remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
74
- /**
75
- * Fetch a CertificateInstance
76
- *
77
- * @param callback - Callback to handle processed record
78
- *
79
- * @returns Resolves to processed CertificateInstance
80
- */
81
- fetch(callback?: (error: Error | null, item?: CertificateInstance) => any): Promise<CertificateInstance>;
82
- /**
83
- * Update a CertificateInstance
84
- *
85
- * @param callback - Callback to handle processed record
86
- *
87
- * @returns Resolves to processed CertificateInstance
88
- */
89
- update(callback?: (error: Error | null, item?: CertificateInstance) => any): Promise<CertificateInstance>;
90
- /**
91
- * Update a CertificateInstance
92
- *
93
- * @param params - Parameter for request
94
- * @param callback - Callback to handle processed record
95
- *
96
- * @returns Resolves to processed CertificateInstance
97
- */
98
- update(params: CertificateContextUpdateOptions, callback?: (error: Error | null, item?: CertificateInstance) => any): Promise<CertificateInstance>;
99
- /**
100
- * Provide a user-friendly representation
101
- */
102
- toJSON(): any;
103
- [inspect.custom](_depth: any, options: InspectOptions): any;
104
- }
105
- export interface CertificateContextSolution {
106
- fleetSid: string;
107
- sid: string;
108
- }
109
- export declare class CertificateContextImpl implements CertificateContext {
110
- protected _version: DeployedDevices;
111
- protected _solution: CertificateContextSolution;
112
- protected _uri: string;
113
- constructor(_version: DeployedDevices, fleetSid: string, sid: string);
114
- remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
115
- fetch(callback?: (error: Error | null, item?: CertificateInstance) => any): Promise<CertificateInstance>;
116
- update(params?: CertificateContextUpdateOptions | ((error: Error | null, item?: CertificateInstance) => any), callback?: (error: Error | null, item?: CertificateInstance) => any): Promise<CertificateInstance>;
117
- /**
118
- * Provide a user-friendly representation
119
- *
120
- * @returns Object
121
- */
122
- toJSON(): CertificateContextSolution;
123
- [inspect.custom](_depth: any, options: InspectOptions): string;
124
- }
125
- interface CertificatePayload extends TwilioResponsePayload {
126
- certificates: CertificateResource[];
127
- }
128
- interface CertificateResource {
129
- sid: string;
130
- url: string;
131
- friendly_name: string;
132
- fleet_sid: string;
133
- account_sid: string;
134
- device_sid: string;
135
- thumbprint: string;
136
- date_created: Date;
137
- date_updated: Date;
138
- }
139
- export declare class CertificateInstance {
140
- protected _version: DeployedDevices;
141
- protected _solution: CertificateContextSolution;
142
- protected _context?: CertificateContext;
143
- constructor(_version: DeployedDevices, payload: CertificateResource, fleetSid: string, sid?: string);
144
- /**
145
- * Contains a 34 character string that uniquely identifies this Certificate credential resource.
146
- */
147
- sid: string;
148
- /**
149
- * Contains an absolute URL for this Certificate credential resource.
150
- */
151
- url: string;
152
- /**
153
- * Contains a human readable descriptive text for this Certificate credential, up to 256 characters long.
154
- */
155
- friendlyName: string;
156
- /**
157
- * Specifies the unique string identifier of the Fleet that the given Certificate credential belongs to.
158
- */
159
- fleetSid: string;
160
- /**
161
- * Specifies the unique string identifier of the Account responsible for this Certificate credential.
162
- */
163
- accountSid: string;
164
- /**
165
- * Specifies the unique string identifier of a Device authenticated with this Certificate credential.
166
- */
167
- deviceSid: string;
168
- /**
169
- * Contains a unique hash of the payload of this Certificate credential, used to authenticate the Device.
170
- */
171
- thumbprint: string;
172
- /**
173
- * Specifies the date this Certificate credential was created, given in UTC ISO 8601 format.
174
- */
175
- dateCreated: Date;
176
- /**
177
- * Specifies the date this Certificate credential was last updated, given in UTC ISO 8601 format.
178
- */
179
- dateUpdated: Date;
180
- private get _proxy();
181
- /**
182
- * Remove a CertificateInstance
183
- *
184
- * @param callback - Callback to handle processed record
185
- *
186
- * @returns Resolves to processed boolean
187
- */
188
- remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
189
- /**
190
- * Fetch a CertificateInstance
191
- *
192
- * @param callback - Callback to handle processed record
193
- *
194
- * @returns Resolves to processed CertificateInstance
195
- */
196
- fetch(callback?: (error: Error | null, item?: CertificateInstance) => any): Promise<CertificateInstance>;
197
- /**
198
- * Update a CertificateInstance
199
- *
200
- * @param callback - Callback to handle processed record
201
- *
202
- * @returns Resolves to processed CertificateInstance
203
- */
204
- update(callback?: (error: Error | null, item?: CertificateInstance) => any): Promise<CertificateInstance>;
205
- /**
206
- * Update a CertificateInstance
207
- *
208
- * @param params - Parameter for request
209
- * @param callback - Callback to handle processed record
210
- *
211
- * @returns Resolves to processed CertificateInstance
212
- */
213
- update(params: CertificateContextUpdateOptions, callback?: (error: Error | null, item?: CertificateInstance) => any): Promise<CertificateInstance>;
214
- /**
215
- * Provide a user-friendly representation
216
- *
217
- * @returns Object
218
- */
219
- toJSON(): {
220
- sid: string;
221
- url: string;
222
- friendlyName: string;
223
- fleetSid: string;
224
- accountSid: string;
225
- deviceSid: string;
226
- thumbprint: string;
227
- dateCreated: Date;
228
- dateUpdated: Date;
229
- };
230
- [inspect.custom](_depth: any, options: InspectOptions): string;
231
- }
232
- export interface CertificateSolution {
233
- fleetSid: string;
234
- }
235
- export interface CertificateListInstance {
236
- _version: DeployedDevices;
237
- _solution: CertificateSolution;
238
- _uri: string;
239
- (sid: string): CertificateContext;
240
- get(sid: string): CertificateContext;
241
- /**
242
- * Create a CertificateInstance
243
- *
244
- * @param params - Parameter for request
245
- * @param callback - Callback to handle processed record
246
- *
247
- * @returns Resolves to processed CertificateInstance
248
- */
249
- create(params: CertificateListInstanceCreateOptions, callback?: (error: Error | null, item?: CertificateInstance) => any): Promise<CertificateInstance>;
250
- /**
251
- * Streams CertificateInstance records from the API.
252
- *
253
- * This operation lazily loads records as efficiently as possible until the limit
254
- * is reached.
255
- *
256
- * The results are passed into the callback function, so this operation is memory
257
- * efficient.
258
- *
259
- * If a function is passed as the first argument, it will be used as the callback
260
- * function.
261
- *
262
- * @param { CertificateListInstanceEachOptions } [params] - Options for request
263
- * @param { function } [callback] - Function to process each record
264
- */
265
- each(callback?: (item: CertificateInstance, done: (err?: Error) => void) => void): void;
266
- each(params: CertificateListInstanceEachOptions, callback?: (item: CertificateInstance, done: (err?: Error) => void) => void): void;
267
- /**
268
- * Retrieve a single target page of CertificateInstance records from the API.
269
- *
270
- * The request is executed immediately.
271
- *
272
- * @param { string } [targetUrl] - API-generated URL for the requested results page
273
- * @param { function } [callback] - Callback to handle list of records
274
- */
275
- getPage(targetUrl: string, callback?: (error: Error | null, items: CertificatePage) => any): Promise<CertificatePage>;
276
- /**
277
- * Lists CertificateInstance records from the API as a list.
278
- *
279
- * If a function is passed as the first argument, it will be used as the callback
280
- * function.
281
- *
282
- * @param { CertificateListInstanceOptions } [params] - Options for request
283
- * @param { function } [callback] - Callback to handle list of records
284
- */
285
- list(callback?: (error: Error | null, items: CertificateInstance[]) => any): Promise<CertificateInstance[]>;
286
- list(params: CertificateListInstanceOptions, callback?: (error: Error | null, items: CertificateInstance[]) => any): Promise<CertificateInstance[]>;
287
- /**
288
- * Retrieve a single page of CertificateInstance records from the API.
289
- *
290
- * The request is executed immediately.
291
- *
292
- * If a function is passed as the first argument, it will be used as the callback
293
- * function.
294
- *
295
- * @param { CertificateListInstancePageOptions } [params] - Options for request
296
- * @param { function } [callback] - Callback to handle list of records
297
- */
298
- page(callback?: (error: Error | null, items: CertificatePage) => any): Promise<CertificatePage>;
299
- page(params: CertificateListInstancePageOptions, callback?: (error: Error | null, items: CertificatePage) => any): Promise<CertificatePage>;
300
- /**
301
- * Provide a user-friendly representation
302
- */
303
- toJSON(): any;
304
- [inspect.custom](_depth: any, options: InspectOptions): any;
305
- }
306
- export declare function CertificateListInstance(version: DeployedDevices, fleetSid: string): CertificateListInstance;
307
- export declare class CertificatePage extends Page<DeployedDevices, CertificatePayload, CertificateResource, CertificateInstance> {
308
- /**
309
- * Initialize the CertificatePage
310
- *
311
- * @param version - Version of the resource
312
- * @param response - Response from the API
313
- * @param solution - Path solution
314
- */
315
- constructor(version: DeployedDevices, response: Response<string>, solution: CertificateSolution);
316
- /**
317
- * Build an instance of CertificateInstance
318
- *
319
- * @param payload - Payload response from the API
320
- */
321
- getInstance(payload: CertificateResource): CertificateInstance;
322
- [inspect.custom](depth: any, options: InspectOptions): string;
323
- }
324
- export {};