twilio 5.11.1 → 5.11.2

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.
@@ -108,6 +108,8 @@ export interface CallListInstanceCreateOptions {
108
108
  recordingTrack?: string;
109
109
  /** The maximum duration of the call in seconds. Constraints depend on account and configuration. */
110
110
  timeLimit?: number;
111
+ /** The URL that we should use to deliver `push call notification`. */
112
+ clientNotificationUrl?: string;
111
113
  /** The absolute URL that returns the TwiML instructions for the call. We will call this URL using the `method` when the call connects. For more information, see the [Url Parameter](https://www.twilio.com/docs/voice/make-calls#specify-a-url-parameter) section in [Making Calls](https://www.twilio.com/docs/voice/make-calls). */
112
114
  url?: string;
113
115
  /** TwiML instructions for the call Twilio will use without fetching Twiml from url parameter. If both `twiml` and `url` are provided then `twiml` parameter will be ignored. Max 4000 characters. */
@@ -419,6 +419,8 @@ function CallListInstance(version, accountSid) {
419
419
  data["RecordingTrack"] = params["recordingTrack"];
420
420
  if (params["timeLimit"] !== undefined)
421
421
  data["TimeLimit"] = params["timeLimit"];
422
+ if (params["clientNotificationUrl"] !== undefined)
423
+ data["ClientNotificationUrl"] = params["clientNotificationUrl"];
422
424
  if (params["url"] !== undefined)
423
425
  data["Url"] = params["url"];
424
426
  if (params["twiml"] !== undefined)
@@ -135,6 +135,8 @@ export interface ParticipantListInstanceCreateOptions {
135
135
  trim?: string;
136
136
  /** A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call\\\'s call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call. */
137
137
  callToken?: string;
138
+ /** The URL that we should use to deliver `push call notification`. */
139
+ clientNotificationUrl?: string;
138
140
  /** The name that populates the display name in the From header. Must be between 2 and 255 characters. Only applicable for calls to sip address. */
139
141
  callerDisplayName?: string;
140
142
  }
@@ -330,6 +330,8 @@ function ParticipantListInstance(version, accountSid, conferenceSid) {
330
330
  data["Trim"] = params["trim"];
331
331
  if (params["callToken"] !== undefined)
332
332
  data["CallToken"] = params["callToken"];
333
+ if (params["clientNotificationUrl"] !== undefined)
334
+ data["ClientNotificationUrl"] = params["clientNotificationUrl"];
333
335
  if (params["callerDisplayName"] !== undefined)
334
336
  data["CallerDisplayName"] = params["callerDisplayName"];
335
337
  const headers = {};
@@ -10,6 +10,10 @@ export type TollfreeVerificationOptInType = "VERBAL" | "WEB_FORM" | "PAPER_FORM"
10
10
  * The compliance status of the Tollfree Verification record.
11
11
  */
12
12
  export type TollfreeVerificationStatus = "PENDING_REVIEW" | "IN_REVIEW" | "TWILIO_APPROVED" | "TWILIO_REJECTED";
13
+ /**
14
+ * The third-party political vetting provider.
15
+ */
16
+ export type TollfreeVerificationVettingProvider = "CAMPAIGN_VERIFY";
13
17
  /**
14
18
  * Options to pass to update a TollfreeVerificationInstance
15
19
  */
@@ -80,6 +84,10 @@ export interface TollfreeVerificationContextUpdateOptions {
80
84
  ageGatedContent?: boolean;
81
85
  /** List of keywords that users can text in to opt in to receive messages. */
82
86
  optInKeywords?: Array<string>;
87
+ /** */
88
+ vettingProvider?: TollfreeVerificationVettingProvider;
89
+ /** The unique ID of the vetting */
90
+ vettingId?: string;
83
91
  }
84
92
  /**
85
93
  * Options to pass to create a TollfreeVerificationInstance
@@ -155,6 +163,10 @@ export interface TollfreeVerificationListInstanceCreateOptions {
155
163
  ageGatedContent?: boolean;
156
164
  /** List of keywords that users can text in to opt in to receive messages. */
157
165
  optInKeywords?: Array<string>;
166
+ /** */
167
+ vettingProvider?: TollfreeVerificationVettingProvider;
168
+ /** The unique ID of the vetting */
169
+ vettingId?: string;
158
170
  }
159
171
  /**
160
172
  * Options to pass to each
@@ -332,6 +344,9 @@ interface TollfreeVerificationResource {
332
344
  rejection_reasons: Array<any>;
333
345
  resource_links: any;
334
346
  external_reference_id: string;
347
+ vetting_id: string;
348
+ vetting_provider: TollfreeVerificationVettingProvider;
349
+ vetting_id_expiration: Date;
335
350
  }
336
351
  export declare class TollfreeVerificationInstance {
337
352
  protected _version: V1;
@@ -532,6 +547,9 @@ export declare class TollfreeVerificationInstance {
532
547
  * An optional external reference ID supplied by customer and echoed back on status retrieval.
533
548
  */
534
549
  externalReferenceId: string;
550
+ vettingId: string;
551
+ vettingProvider: TollfreeVerificationVettingProvider;
552
+ vettingIdExpiration: Date;
535
553
  private get _proxy();
536
554
  /**
537
555
  * Remove a TollfreeVerificationInstance
@@ -622,6 +640,9 @@ export declare class TollfreeVerificationInstance {
622
640
  rejectionReasons: any[];
623
641
  resourceLinks: any;
624
642
  externalReferenceId: string;
643
+ vettingId: string;
644
+ vettingProvider: "CAMPAIGN_VERIFY";
645
+ vettingIdExpiration: Date;
625
646
  };
626
647
  [inspect.custom](_depth: any, options: InspectOptions): string;
627
648
  }
@@ -135,6 +135,10 @@ class TollfreeVerificationContextImpl {
135
135
  data["AgeGatedContent"] = serialize.bool(params["ageGatedContent"]);
136
136
  if (params["optInKeywords"] !== undefined)
137
137
  data["OptInKeywords"] = serialize.map(params["optInKeywords"], (e) => e);
138
+ if (params["vettingProvider"] !== undefined)
139
+ data["VettingProvider"] = params["vettingProvider"];
140
+ if (params["vettingId"] !== undefined)
141
+ data["VettingId"] = params["vettingId"];
138
142
  const headers = {};
139
143
  headers["Content-Type"] = "application/x-www-form-urlencoded";
140
144
  headers["Accept"] = "application/json";
@@ -217,6 +221,9 @@ class TollfreeVerificationInstance {
217
221
  this.rejectionReasons = payload.rejection_reasons;
218
222
  this.resourceLinks = payload.resource_links;
219
223
  this.externalReferenceId = payload.external_reference_id;
224
+ this.vettingId = payload.vetting_id;
225
+ this.vettingProvider = payload.vetting_provider;
226
+ this.vettingIdExpiration = deserialize.iso8601DateTime(payload.vetting_id_expiration);
220
227
  this._solution = { sid: sid || this.sid };
221
228
  }
222
229
  get _proxy() {
@@ -305,6 +312,9 @@ class TollfreeVerificationInstance {
305
312
  rejectionReasons: this.rejectionReasons,
306
313
  resourceLinks: this.resourceLinks,
307
314
  externalReferenceId: this.externalReferenceId,
315
+ vettingId: this.vettingId,
316
+ vettingProvider: this.vettingProvider,
317
+ vettingIdExpiration: this.vettingIdExpiration,
308
318
  };
309
319
  }
310
320
  [util_1.inspect.custom](_depth, options) {
@@ -428,6 +438,10 @@ function TollfreeVerificationListInstance(version) {
428
438
  data["AgeGatedContent"] = serialize.bool(params["ageGatedContent"]);
429
439
  if (params["optInKeywords"] !== undefined)
430
440
  data["OptInKeywords"] = serialize.map(params["optInKeywords"], (e) => e);
441
+ if (params["vettingProvider"] !== undefined)
442
+ data["VettingProvider"] = params["vettingProvider"];
443
+ if (params["vettingId"] !== undefined)
444
+ data["VettingId"] = params["vettingId"];
431
445
  const headers = {};
432
446
  headers["Content-Type"] = "application/x-www-form-urlencoded";
433
447
  headers["Accept"] = "application/json";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "twilio",
3
3
  "description": "A Twilio helper library",
4
- "version": "5.11.1",
4
+ "version": "5.11.2",
5
5
  "author": "API Team <api@twilio.com>",
6
6
  "contributors": [
7
7
  {