twilio 5.3.3 → 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.
@@ -8,6 +8,7 @@ import { DomainConfigMessagingServiceListInstance } from "./v1/domainConfigMessa
8
8
  import { ExternalCampaignListInstance } from "./v1/externalCampaign";
9
9
  import { LinkshorteningMessagingServiceListInstance } from "./v1/linkshorteningMessagingService";
10
10
  import { LinkshorteningMessagingServiceDomainAssociationListInstance } from "./v1/linkshorteningMessagingServiceDomainAssociation";
11
+ import { RequestManagedCertListInstance } from "./v1/requestManagedCert";
11
12
  import { ServiceListInstance } from "./v1/service";
12
13
  import { TollfreeVerificationListInstance } from "./v1/tollfreeVerification";
13
14
  import { UsecaseListInstance } from "./v1/usecase";
@@ -34,6 +35,8 @@ export default class V1 extends Version {
34
35
  protected _linkshorteningMessagingService?: LinkshorteningMessagingServiceListInstance;
35
36
  /** linkshorteningMessagingServiceDomainAssociation - { Twilio.Messaging.V1.LinkshorteningMessagingServiceDomainAssociationListInstance } resource */
36
37
  protected _linkshorteningMessagingServiceDomainAssociation?: LinkshorteningMessagingServiceDomainAssociationListInstance;
38
+ /** requestManagedCert - { Twilio.Messaging.V1.RequestManagedCertListInstance } resource */
39
+ protected _requestManagedCert?: RequestManagedCertListInstance;
37
40
  /** services - { Twilio.Messaging.V1.ServiceListInstance } resource */
38
41
  protected _services?: ServiceListInstance;
39
42
  /** tollfreeVerifications - { Twilio.Messaging.V1.TollfreeVerificationListInstance } resource */
@@ -56,6 +59,8 @@ export default class V1 extends Version {
56
59
  get linkshorteningMessagingService(): LinkshorteningMessagingServiceListInstance;
57
60
  /** Getter for linkshorteningMessagingServiceDomainAssociation resource */
58
61
  get linkshorteningMessagingServiceDomainAssociation(): LinkshorteningMessagingServiceDomainAssociationListInstance;
62
+ /** Getter for requestManagedCert resource */
63
+ get requestManagedCert(): RequestManagedCertListInstance;
59
64
  /** Getter for services resource */
60
65
  get services(): ServiceListInstance;
61
66
  /** Getter for tollfreeVerifications resource */
@@ -25,6 +25,7 @@ const domainConfigMessagingService_1 = require("./v1/domainConfigMessagingServic
25
25
  const externalCampaign_1 = require("./v1/externalCampaign");
26
26
  const linkshorteningMessagingService_1 = require("./v1/linkshorteningMessagingService");
27
27
  const linkshorteningMessagingServiceDomainAssociation_1 = require("./v1/linkshorteningMessagingServiceDomainAssociation");
28
+ const requestManagedCert_1 = require("./v1/requestManagedCert");
28
29
  const service_1 = require("./v1/service");
29
30
  const tollfreeVerification_1 = require("./v1/tollfreeVerification");
30
31
  const usecase_1 = require("./v1/usecase");
@@ -86,6 +87,12 @@ class V1 extends Version_1.default {
86
87
  (0, linkshorteningMessagingServiceDomainAssociation_1.LinkshorteningMessagingServiceDomainAssociationListInstance)(this);
87
88
  return this._linkshorteningMessagingServiceDomainAssociation;
88
89
  }
90
+ /** Getter for requestManagedCert resource */
91
+ get requestManagedCert() {
92
+ this._requestManagedCert =
93
+ this._requestManagedCert || (0, requestManagedCert_1.RequestManagedCertListInstance)(this);
94
+ return this._requestManagedCert;
95
+ }
89
96
  /** Getter for services resource */
90
97
  get services() {
91
98
  this._services = this._services || (0, service_1.ServiceListInstance)(this);
@@ -0,0 +1,127 @@
1
+ /// <reference types="node" />
2
+ import { inspect, InspectOptions } from "util";
3
+ import V1 from "../V1";
4
+ export interface RequestManagedCertContext {
5
+ /**
6
+ * Update a RequestManagedCertInstance
7
+ *
8
+ * @param callback - Callback to handle processed record
9
+ *
10
+ * @returns Resolves to processed RequestManagedCertInstance
11
+ */
12
+ update(callback?: (error: Error | null, item?: RequestManagedCertInstance) => any): Promise<RequestManagedCertInstance>;
13
+ /**
14
+ * Provide a user-friendly representation
15
+ */
16
+ toJSON(): any;
17
+ [inspect.custom](_depth: any, options: InspectOptions): any;
18
+ }
19
+ export interface RequestManagedCertContextSolution {
20
+ domainSid: string;
21
+ }
22
+ export declare class RequestManagedCertContextImpl implements RequestManagedCertContext {
23
+ protected _version: V1;
24
+ protected _solution: RequestManagedCertContextSolution;
25
+ protected _uri: string;
26
+ constructor(_version: V1, domainSid: string);
27
+ update(callback?: (error: Error | null, item?: RequestManagedCertInstance) => any): Promise<RequestManagedCertInstance>;
28
+ /**
29
+ * Provide a user-friendly representation
30
+ *
31
+ * @returns Object
32
+ */
33
+ toJSON(): RequestManagedCertContextSolution;
34
+ [inspect.custom](_depth: any, options: InspectOptions): string;
35
+ }
36
+ interface RequestManagedCertResource {
37
+ domain_sid: string;
38
+ date_updated: Date;
39
+ date_created: Date;
40
+ date_expires: Date;
41
+ domain_name: string;
42
+ certificate_sid: string;
43
+ url: string;
44
+ managed: boolean;
45
+ requesting: boolean;
46
+ }
47
+ export declare class RequestManagedCertInstance {
48
+ protected _version: V1;
49
+ protected _solution: RequestManagedCertContextSolution;
50
+ protected _context?: RequestManagedCertContext;
51
+ constructor(_version: V1, payload: RequestManagedCertResource, domainSid?: string);
52
+ /**
53
+ * The unique string that we created to identify the Domain resource.
54
+ */
55
+ domainSid: string;
56
+ /**
57
+ * Date that this Domain was last updated.
58
+ */
59
+ dateUpdated: Date;
60
+ /**
61
+ * Date that this Domain was registered to the Twilio platform to create a new Domain object.
62
+ */
63
+ dateCreated: Date;
64
+ /**
65
+ * Date that the private certificate associated with this domain expires. This is the expiration date of your existing cert.
66
+ */
67
+ dateExpires: Date;
68
+ /**
69
+ * Full url path for this domain.
70
+ */
71
+ domainName: string;
72
+ /**
73
+ * The unique string that we created to identify this Certificate resource.
74
+ */
75
+ certificateSid: string;
76
+ url: string;
77
+ /**
78
+ * A boolean flag indicating if the certificate is managed by Twilio.
79
+ */
80
+ managed: boolean;
81
+ /**
82
+ * A boolean flag indicating if a managed certificate needs to be fulfilled by Twilio.
83
+ */
84
+ requesting: boolean;
85
+ private get _proxy();
86
+ /**
87
+ * Update a RequestManagedCertInstance
88
+ *
89
+ * @param callback - Callback to handle processed record
90
+ *
91
+ * @returns Resolves to processed RequestManagedCertInstance
92
+ */
93
+ update(callback?: (error: Error | null, item?: RequestManagedCertInstance) => any): Promise<RequestManagedCertInstance>;
94
+ /**
95
+ * Provide a user-friendly representation
96
+ *
97
+ * @returns Object
98
+ */
99
+ toJSON(): {
100
+ domainSid: string;
101
+ dateUpdated: Date;
102
+ dateCreated: Date;
103
+ dateExpires: Date;
104
+ domainName: string;
105
+ certificateSid: string;
106
+ url: string;
107
+ managed: boolean;
108
+ requesting: boolean;
109
+ };
110
+ [inspect.custom](_depth: any, options: InspectOptions): string;
111
+ }
112
+ export interface RequestManagedCertSolution {
113
+ }
114
+ export interface RequestManagedCertListInstance {
115
+ _version: V1;
116
+ _solution: RequestManagedCertSolution;
117
+ _uri: string;
118
+ (domainSid: string): RequestManagedCertContext;
119
+ get(domainSid: string): RequestManagedCertContext;
120
+ /**
121
+ * Provide a user-friendly representation
122
+ */
123
+ toJSON(): any;
124
+ [inspect.custom](_depth: any, options: InspectOptions): any;
125
+ }
126
+ export declare function RequestManagedCertListInstance(version: V1): RequestManagedCertListInstance;
127
+ export {};
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio - Messaging
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.RequestManagedCertListInstance = exports.RequestManagedCertInstance = exports.RequestManagedCertContextImpl = void 0;
17
+ const util_1 = require("util");
18
+ const deserialize = require("../../../base/deserialize");
19
+ const serialize = require("../../../base/serialize");
20
+ const utility_1 = require("../../../base/utility");
21
+ class RequestManagedCertContextImpl {
22
+ constructor(_version, domainSid) {
23
+ this._version = _version;
24
+ if (!(0, utility_1.isValidPathParam)(domainSid)) {
25
+ throw new Error("Parameter 'domainSid' is not valid.");
26
+ }
27
+ this._solution = { domainSid };
28
+ this._uri = `/LinkShortening/Domains/${domainSid}/RequestManagedCert`;
29
+ }
30
+ update(callback) {
31
+ const instance = this;
32
+ let operationVersion = instance._version, operationPromise = operationVersion.update({
33
+ uri: instance._uri,
34
+ method: "post",
35
+ });
36
+ operationPromise = operationPromise.then((payload) => new RequestManagedCertInstance(operationVersion, payload, instance._solution.domainSid));
37
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
38
+ return operationPromise;
39
+ }
40
+ /**
41
+ * Provide a user-friendly representation
42
+ *
43
+ * @returns Object
44
+ */
45
+ toJSON() {
46
+ return this._solution;
47
+ }
48
+ [util_1.inspect.custom](_depth, options) {
49
+ return (0, util_1.inspect)(this.toJSON(), options);
50
+ }
51
+ }
52
+ exports.RequestManagedCertContextImpl = RequestManagedCertContextImpl;
53
+ class RequestManagedCertInstance {
54
+ constructor(_version, payload, domainSid) {
55
+ this._version = _version;
56
+ this.domainSid = payload.domain_sid;
57
+ this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
58
+ this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
59
+ this.dateExpires = deserialize.iso8601DateTime(payload.date_expires);
60
+ this.domainName = payload.domain_name;
61
+ this.certificateSid = payload.certificate_sid;
62
+ this.url = payload.url;
63
+ this.managed = payload.managed;
64
+ this.requesting = payload.requesting;
65
+ this._solution = { domainSid: domainSid || this.domainSid };
66
+ }
67
+ get _proxy() {
68
+ this._context =
69
+ this._context ||
70
+ new RequestManagedCertContextImpl(this._version, this._solution.domainSid);
71
+ return this._context;
72
+ }
73
+ /**
74
+ * Update a RequestManagedCertInstance
75
+ *
76
+ * @param callback - Callback to handle processed record
77
+ *
78
+ * @returns Resolves to processed RequestManagedCertInstance
79
+ */
80
+ update(callback) {
81
+ return this._proxy.update(callback);
82
+ }
83
+ /**
84
+ * Provide a user-friendly representation
85
+ *
86
+ * @returns Object
87
+ */
88
+ toJSON() {
89
+ return {
90
+ domainSid: this.domainSid,
91
+ dateUpdated: this.dateUpdated,
92
+ dateCreated: this.dateCreated,
93
+ dateExpires: this.dateExpires,
94
+ domainName: this.domainName,
95
+ certificateSid: this.certificateSid,
96
+ url: this.url,
97
+ managed: this.managed,
98
+ requesting: this.requesting,
99
+ };
100
+ }
101
+ [util_1.inspect.custom](_depth, options) {
102
+ return (0, util_1.inspect)(this.toJSON(), options);
103
+ }
104
+ }
105
+ exports.RequestManagedCertInstance = RequestManagedCertInstance;
106
+ function RequestManagedCertListInstance(version) {
107
+ const instance = ((domainSid) => instance.get(domainSid));
108
+ instance.get = function get(domainSid) {
109
+ return new RequestManagedCertContextImpl(version, domainSid);
110
+ };
111
+ instance._version = version;
112
+ instance._solution = {};
113
+ instance._uri = ``;
114
+ instance.toJSON = function toJSON() {
115
+ return instance._solution;
116
+ };
117
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
118
+ return (0, util_1.inspect)(instance.toJSON(), options);
119
+ };
120
+ return instance;
121
+ }
122
+ exports.RequestManagedCertListInstance = RequestManagedCertListInstance;
@@ -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
  /**
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.3",
4
+ "version": "5.3.4",
5
5
  "author": "API Team <api@twilio.com>",
6
6
  "contributors": [
7
7
  {