twilio 5.6.0 → 5.6.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.
@@ -173,7 +173,8 @@ var Twilio;
173
173
  data: opts.data,
174
174
  timeout: opts.timeout,
175
175
  allowRedirects: opts.allowRedirects,
176
- logLevel: opts.logLevel,
176
+ // use the Twilio client's log-level if the httpClient's log-level is unspecified
177
+ logLevel: opts.logLevel || this.opts?.logLevel,
177
178
  });
178
179
  }
179
180
  /* jshint ignore:start */
@@ -5,7 +5,7 @@ import V1 from "../V1";
5
5
  * Options to pass to create a BulkConsentsInstance
6
6
  */
7
7
  export interface BulkConsentsListInstanceCreateOptions {
8
- /** This is a list of objects that describes a contact\\\'s opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]. */
8
+ /** This is a list of objects that describes a contact\\\'s opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]; `date_of_consent`, an optional datetime string field in ISO-8601 format that captures the exact date and time when the user gave or revoked consent. If not provided, it will be empty. */
9
9
  items: Array<object>;
10
10
  }
11
11
  export interface BulkConsentsSolution {
@@ -3,6 +3,7 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V2010 from "../../../V2010";
6
+ import { PhoneNumberCapabilities } from "../../../../../interfaces";
6
7
  export type DependentPhoneNumberAddressRequirement = "none" | "any" | "local" | "foreign";
7
8
  /**
8
9
  * Whether the phone number is enabled for emergency calling.
@@ -119,14 +120,14 @@ interface DependentPhoneNumberResource {
119
120
  voice_fallback_method: string;
120
121
  voice_fallback_url: string;
121
122
  voice_caller_id_lookup: boolean;
122
- date_created: Date;
123
- date_updated: Date;
123
+ date_created: string;
124
+ date_updated: string;
124
125
  sms_fallback_method: string;
125
126
  sms_fallback_url: string;
126
127
  sms_method: string;
127
128
  sms_url: string;
128
129
  address_requirements: DependentPhoneNumberAddressRequirement;
129
- capabilities: Record<string, object>;
130
+ capabilities: PhoneNumberCapabilities;
130
131
  status_callback: string;
131
132
  status_callback_method: string;
132
133
  api_version: string;
@@ -179,11 +180,11 @@ export declare class DependentPhoneNumberInstance {
179
180
  /**
180
181
  * The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
181
182
  */
182
- dateCreated: Date;
183
+ dateCreated: string;
183
184
  /**
184
185
  * The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
185
186
  */
186
- dateUpdated: Date;
187
+ dateUpdated: string;
187
188
  /**
188
189
  * The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`.
189
190
  */
@@ -201,10 +202,7 @@ export declare class DependentPhoneNumberInstance {
201
202
  */
202
203
  smsUrl: string;
203
204
  addressRequirements: DependentPhoneNumberAddressRequirement;
204
- /**
205
- * The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`.
206
- */
207
- capabilities: Record<string, object>;
205
+ capabilities: PhoneNumberCapabilities;
208
206
  /**
209
207
  * The URL we call using the `status_callback_method` to send status information to your application.
210
208
  */
@@ -253,14 +251,14 @@ export declare class DependentPhoneNumberInstance {
253
251
  voiceFallbackMethod: string;
254
252
  voiceFallbackUrl: string;
255
253
  voiceCallerIdLookup: boolean;
256
- dateCreated: Date;
257
- dateUpdated: Date;
254
+ dateCreated: string;
255
+ dateUpdated: string;
258
256
  smsFallbackMethod: string;
259
257
  smsFallbackUrl: string;
260
258
  smsMethod: string;
261
259
  smsUrl: string;
262
260
  addressRequirements: DependentPhoneNumberAddressRequirement;
263
- capabilities: Record<string, object>;
261
+ capabilities: PhoneNumberCapabilities;
264
262
  statusCallback: string;
265
263
  statusCallbackMethod: string;
266
264
  apiVersion: string;
@@ -92,8 +92,8 @@ class DependentPhoneNumberInstance {
92
92
  this.voiceFallbackMethod = payload.voice_fallback_method;
93
93
  this.voiceFallbackUrl = payload.voice_fallback_url;
94
94
  this.voiceCallerIdLookup = payload.voice_caller_id_lookup;
95
- this.dateCreated = deserialize.rfc2822DateTime(payload.date_created);
96
- this.dateUpdated = deserialize.rfc2822DateTime(payload.date_updated);
95
+ this.dateCreated = payload.date_created;
96
+ this.dateUpdated = payload.date_updated;
97
97
  this.smsFallbackMethod = payload.sms_fallback_method;
98
98
  this.smsFallbackUrl = payload.sms_fallback_url;
99
99
  this.smsMethod = payload.sms_method;
@@ -44,7 +44,7 @@ export interface TranscriptionListInstanceCreateOptions {
44
44
  hints?: string;
45
45
  /** The provider will add punctuation to recognition result */
46
46
  enableAutomaticPunctuation?: boolean;
47
- /** The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . */
47
+ /** The SID or unique name of the [Intelligence Service](https://www.twilio.com/docs/conversational-intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . */
48
48
  intelligenceService?: string;
49
49
  }
50
50
  export interface TranscriptionContext {
@@ -36,7 +36,7 @@ export declare class ApprovalFetchContextImpl implements ApprovalFetchContext {
36
36
  interface ApprovalFetchResource {
37
37
  sid: string;
38
38
  account_sid: string;
39
- whatsapp: any;
39
+ whatsapp: Record<string, object>;
40
40
  url: string;
41
41
  }
42
42
  export declare class ApprovalFetchInstance {
@@ -55,7 +55,7 @@ export declare class ApprovalFetchInstance {
55
55
  /**
56
56
  * Contains the whatsapp approval information for the Content resource, with fields such as approval status, rejection reason, and category, amongst others.
57
57
  */
58
- whatsapp: any;
58
+ whatsapp: Record<string, object>;
59
59
  /**
60
60
  * The URL of the resource, relative to `https://content.twilio.com`.
61
61
  */
@@ -77,7 +77,7 @@ export declare class ApprovalFetchInstance {
77
77
  toJSON(): {
78
78
  sid: string;
79
79
  accountSid: string;
80
- whatsapp: any;
80
+ whatsapp: Record<string, object>;
81
81
  url: string;
82
82
  };
83
83
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -16,6 +16,7 @@ export declare class CallToActionAction {
16
16
  "url"?: string;
17
17
  "phone"?: string;
18
18
  "code"?: string;
19
+ "id"?: string;
19
20
  }
20
21
  export type CallToActionActionType = "URL" | "PHONE_NUMBER" | "COPY_CODE" | "VOICE_CALL" | "VOICE_CALL_REQUEST";
21
22
  export declare class CardAction {
@@ -151,6 +152,8 @@ export declare class TwilioLocation {
151
152
  "latitude": number;
152
153
  "longitude": number;
153
154
  "label"?: string;
155
+ "id"?: string;
156
+ "address"?: string;
154
157
  }
155
158
  /**
156
159
  * twilio/media is used to send file attachments, or to send long text via MMS in the US and Canada. As such, the twilio/media type must contain at least ONE of text or media content.
@@ -313,8 +316,8 @@ interface ContentResource {
313
316
  account_sid: string;
314
317
  friendly_name: string;
315
318
  language: string;
316
- variables: any;
317
- types: any;
319
+ variables: Record<string, object>;
320
+ types: Record<string, object>;
318
321
  url: string;
319
322
  links: Record<string, string>;
320
323
  }
@@ -350,11 +353,11 @@ export declare class ContentInstance {
350
353
  /**
351
354
  * Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}.
352
355
  */
353
- variables: any;
356
+ variables: Record<string, object>;
354
357
  /**
355
358
  * The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
356
359
  */
357
- types: any;
360
+ types: Record<string, object>;
358
361
  /**
359
362
  * The URL of the resource, relative to `https://content.twilio.com`.
360
363
  */
@@ -400,8 +403,8 @@ export declare class ContentInstance {
400
403
  accountSid: string;
401
404
  friendlyName: string;
402
405
  language: string;
403
- variables: any;
404
- types: any;
406
+ variables: Record<string, object>;
407
+ types: Record<string, object>;
405
408
  url: string;
406
409
  links: Record<string, string>;
407
410
  };
@@ -109,9 +109,9 @@ interface ContentAndApprovalsResource {
109
109
  account_sid: string;
110
110
  friendly_name: string;
111
111
  language: string;
112
- variables: any;
113
- types: any;
114
- approval_requests: any;
112
+ variables: Record<string, object>;
113
+ types: Record<string, object>;
114
+ approval_requests: Record<string, object>;
115
115
  }
116
116
  export declare class ContentAndApprovalsInstance {
117
117
  protected _version: V1;
@@ -143,15 +143,15 @@ export declare class ContentAndApprovalsInstance {
143
143
  /**
144
144
  * Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}.
145
145
  */
146
- variables: any;
146
+ variables: Record<string, object>;
147
147
  /**
148
148
  * The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
149
149
  */
150
- types: any;
150
+ types: Record<string, object>;
151
151
  /**
152
152
  * The submitted information and approval request status of the Content resource.
153
153
  */
154
- approvalRequests: any;
154
+ approvalRequests: Record<string, object>;
155
155
  /**
156
156
  * Provide a user-friendly representation
157
157
  *
@@ -164,9 +164,9 @@ export declare class ContentAndApprovalsInstance {
164
164
  accountSid: string;
165
165
  friendlyName: string;
166
166
  language: string;
167
- variables: any;
168
- types: any;
169
- approvalRequests: any;
167
+ variables: Record<string, object>;
168
+ types: Record<string, object>;
169
+ approvalRequests: Record<string, object>;
170
170
  };
171
171
  [inspect.custom](_depth: any, options: InspectOptions): string;
172
172
  }
@@ -109,8 +109,8 @@ interface LegacyContentResource {
109
109
  account_sid: string;
110
110
  friendly_name: string;
111
111
  language: string;
112
- variables: any;
113
- types: any;
112
+ variables: Record<string, object>;
113
+ types: Record<string, object>;
114
114
  legacy_template_name: string;
115
115
  legacy_body: string;
116
116
  url: string;
@@ -145,11 +145,11 @@ export declare class LegacyContentInstance {
145
145
  /**
146
146
  * Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}.
147
147
  */
148
- variables: any;
148
+ variables: Record<string, object>;
149
149
  /**
150
150
  * The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
151
151
  */
152
- types: any;
152
+ types: Record<string, object>;
153
153
  /**
154
154
  * The string name of the legacy content template associated with this Content resource, unique across all template names for its account. Only lowercase letters, numbers and underscores are allowed
155
155
  */
@@ -174,8 +174,8 @@ export declare class LegacyContentInstance {
174
174
  accountSid: string;
175
175
  friendlyName: string;
176
176
  language: string;
177
- variables: any;
178
- types: any;
177
+ variables: Record<string, object>;
178
+ types: Record<string, object>;
179
179
  legacyTemplateName: string;
180
180
  legacyBody: string;
181
181
  url: string;
@@ -12,8 +12,6 @@ export interface SubscriptionContextUpdateOptions {
12
12
  description?: string;
13
13
  /** The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. */
14
14
  sinkSid?: string;
15
- /** Receive events from all children accounts in the parent account subscription. */
16
- receiveEventsFromSubaccounts?: boolean;
17
15
  }
18
16
  /**
19
17
  * Options to pass to create a SubscriptionInstance
@@ -25,8 +23,6 @@ export interface SubscriptionListInstanceCreateOptions {
25
23
  sinkSid: string;
26
24
  /** An array of objects containing the subscribed Event Types */
27
25
  types: Array<object>;
28
- /** Receive events from all children accounts in the parent account subscription. */
29
- receiveEventsFromSubaccounts?: boolean;
30
26
  }
31
27
  /**
32
28
  * Options to pass to each
@@ -141,7 +137,6 @@ interface SubscriptionResource {
141
137
  sink_sid: string;
142
138
  url: string;
143
139
  links: Record<string, string>;
144
- receive_events_from_subaccounts: boolean;
145
140
  }
146
141
  export declare class SubscriptionInstance {
147
142
  protected _version: V1;
@@ -180,10 +175,6 @@ export declare class SubscriptionInstance {
180
175
  * Contains a dictionary of URL links to nested resources of this Subscription.
181
176
  */
182
177
  links: Record<string, string>;
183
- /**
184
- * Receive events from all children accounts in the parent account subscription.
185
- */
186
- receiveEventsFromSubaccounts: boolean;
187
178
  private get _proxy();
188
179
  /**
189
180
  * Remove a SubscriptionInstance
@@ -236,7 +227,6 @@ export declare class SubscriptionInstance {
236
227
  sinkSid: string;
237
228
  url: string;
238
229
  links: Record<string, string>;
239
- receiveEventsFromSubaccounts: boolean;
240
230
  };
241
231
  [inspect.custom](_depth: any, options: InspectOptions): string;
242
232
  }
@@ -75,8 +75,6 @@ class SubscriptionContextImpl {
75
75
  data["Description"] = params["description"];
76
76
  if (params["sinkSid"] !== undefined)
77
77
  data["SinkSid"] = params["sinkSid"];
78
- if (params["receiveEventsFromSubaccounts"] !== undefined)
79
- data["ReceiveEventsFromSubaccounts"] = serialize.bool(params["receiveEventsFromSubaccounts"]);
80
78
  const headers = {};
81
79
  headers["Content-Type"] = "application/x-www-form-urlencoded";
82
80
  headers["Accept"] = "application/json";
@@ -115,7 +113,6 @@ class SubscriptionInstance {
115
113
  this.sinkSid = payload.sink_sid;
116
114
  this.url = payload.url;
117
115
  this.links = payload.links;
118
- this.receiveEventsFromSubaccounts = payload.receive_events_from_subaccounts;
119
116
  this._solution = { sid: sid || this.sid };
120
117
  }
121
118
  get _proxy() {
@@ -168,7 +165,6 @@ class SubscriptionInstance {
168
165
  sinkSid: this.sinkSid,
169
166
  url: this.url,
170
167
  links: this.links,
171
- receiveEventsFromSubaccounts: this.receiveEventsFromSubaccounts,
172
168
  };
173
169
  }
174
170
  [util_1.inspect.custom](_depth, options) {
@@ -201,8 +197,6 @@ function SubscriptionListInstance(version) {
201
197
  data["Description"] = params["description"];
202
198
  data["SinkSid"] = params["sinkSid"];
203
199
  data["Types"] = serialize.map(params["types"], (e) => e);
204
- if (params["receiveEventsFromSubaccounts"] !== undefined)
205
- data["ReceiveEventsFromSubaccounts"] = serialize.bool(params["receiveEventsFromSubaccounts"]);
206
200
  const headers = {};
207
201
  headers["Content-Type"] = "application/x-www-form-urlencoded";
208
202
  headers["Accept"] = "application/json";
@@ -22,8 +22,6 @@ export interface BrandVettingListInstanceCreateOptions {
22
22
  export interface BrandVettingListInstanceEachOptions {
23
23
  /** The third-party provider of the vettings to read */
24
24
  vettingProvider?: BrandVettingVettingProvider;
25
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
26
- pageSize?: number;
27
25
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
28
26
  callback?: (item: BrandVettingInstance, done: (err?: Error) => void) => void;
29
27
  /** Function to be called upon completion of streaming */
@@ -37,8 +35,6 @@ export interface BrandVettingListInstanceEachOptions {
37
35
  export interface BrandVettingListInstanceOptions {
38
36
  /** The third-party provider of the vettings to read */
39
37
  vettingProvider?: BrandVettingVettingProvider;
40
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
41
- pageSize?: number;
42
38
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
43
39
  limit?: number;
44
40
  }
@@ -48,8 +44,6 @@ export interface BrandVettingListInstanceOptions {
48
44
  export interface BrandVettingListInstancePageOptions {
49
45
  /** The third-party provider of the vettings to read */
50
46
  vettingProvider?: BrandVettingVettingProvider;
51
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
52
- pageSize?: number;
53
47
  /** Page Number, this value is simply for client state */
54
48
  pageNumber?: number;
55
49
  /** PageToken provided by the API */
@@ -165,8 +165,6 @@ function BrandVettingListInstance(version, brandSid) {
165
165
  let data = {};
166
166
  if (params["vettingProvider"] !== undefined)
167
167
  data["VettingProvider"] = params["vettingProvider"];
168
- if (params["pageSize"] !== undefined)
169
- data["PageSize"] = params["pageSize"];
170
168
  if (params.pageNumber !== undefined)
171
169
  data["Page"] = params.pageNumber;
172
170
  if (params.pageToken !== undefined)
@@ -63,7 +63,7 @@ interface VerificationAttemptsSummaryResource {
63
63
  total_attempts: number;
64
64
  total_converted: number;
65
65
  total_unconverted: number;
66
- conversion_rate_percentage: number;
66
+ conversion_rate_percentage: string;
67
67
  url: string;
68
68
  }
69
69
  export declare class VerificationAttemptsSummaryInstance {
@@ -86,7 +86,7 @@ export declare class VerificationAttemptsSummaryInstance {
86
86
  /**
87
87
  * Percentage of the confirmed messages over the total, defined by (total_converted/total_attempts)*100.
88
88
  */
89
- conversionRatePercentage: number;
89
+ conversionRatePercentage: string;
90
90
  url: string;
91
91
  private get _proxy();
92
92
  /**
@@ -115,7 +115,7 @@ export declare class VerificationAttemptsSummaryInstance {
115
115
  totalAttempts: number;
116
116
  totalConverted: number;
117
117
  totalUnconverted: number;
118
- conversionRatePercentage: number;
118
+ conversionRatePercentage: string;
119
119
  url: string;
120
120
  };
121
121
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -1466,20 +1466,30 @@ declare namespace VoiceResponse {
1466
1466
  * Attributes to pass to conversationRelay
1467
1467
  */
1468
1468
  export interface ConversationRelayAttributes {
1469
- /** debug - Whether debugging on the session is enabled */
1470
- debug?: boolean;
1469
+ /** debug - Multiple debug options to be used for troubleshooting */
1470
+ debug?: string;
1471
1471
  /** dtmfDetection - Whether DTMF tones should be detected and reported in speech transcription */
1472
1472
  dtmfDetection?: boolean;
1473
- /** interruptByDtmf - Whether DTMF tone can interrupt the play of text-to-speech */
1474
- interruptByDtmf?: boolean;
1475
- /** interruptible - Whether caller's speaking can interrupt the play of text-to-speech */
1476
- interruptible?: boolean;
1473
+ /** elevenlabsTextNormalization - When using ElevenLabs as TTS provider, this parameter allows you to enable or disable its text normalization feature */
1474
+ elevenlabsTextNormalization?: string;
1475
+ /** hints - Phrases to help better accuracy in speech recognition of these pharases */
1476
+ hints?: string;
1477
+ /** intelligenceService - The Conversational Intelligence Service id or unique name to be used for the session */
1478
+ intelligenceService?: string;
1479
+ /** interruptSensitivity - Set the sensitivity of the interrupt feature for speech. The value can be low, medium, or high */
1480
+ interruptSensitivity?: string;
1481
+ /** interruptible - Whether and how the input from a caller, such as speaking or DTMF can interrupt the play of text-to-speech */
1482
+ interruptible?: string;
1477
1483
  /** language - Language to be used for both text-to-speech and transcription */
1478
1484
  language?: string;
1479
1485
  /** partialPrompts - Whether partial prompts should be reported to WebSocket server before the caller finishes speaking */
1480
1486
  partialPrompts?: boolean;
1487
+ /** preemptible - Whether subsequent text-to-speech or play media can interrupt the on-going play of text-to-speech or media */
1488
+ preemptible?: boolean;
1481
1489
  /** profanityFilter - Whether profanities should be filtered out of the speech transcription */
1482
1490
  profanityFilter?: boolean;
1491
+ /** reportInputDuringAgentSpeech - Whether prompts should be reported to WebSocket server when text-to-speech playing and interrupt is disabled */
1492
+ reportInputDuringAgentSpeech?: boolean;
1483
1493
  /** speechModel - Speech model to be used for transcription */
1484
1494
  speechModel?: string;
1485
1495
  /** transcriptionLanguage - Language to be used for transcription */
@@ -1496,29 +1506,39 @@ declare namespace VoiceResponse {
1496
1506
  voice?: string;
1497
1507
  /** welcomeGreeting - The sentence to be played automatically when the session is connected */
1498
1508
  welcomeGreeting?: string;
1499
- /** welcomeGreetingInterruptible - Whether caller's speaking can interrupt the welcome greeting */
1500
- welcomeGreetingInterruptible?: boolean;
1509
+ /** welcomeGreetingInterruptible - "Whether and how the input from a caller, such as speaking or DTMF can interrupt the welcome greeting */
1510
+ welcomeGreetingInterruptible?: string;
1501
1511
  }
1502
1512
  /**
1503
1513
  * Attributes to pass to assistant
1504
1514
  */
1505
1515
  export interface AssistantAttributes {
1506
- /** debug - Whether debugging on the session is enabled */
1507
- debug?: boolean;
1516
+ /** debug - Multiple debug options to be used for troubleshooting */
1517
+ debug?: string;
1508
1518
  /** dtmfDetection - Whether DTMF tones should be detected and reported in speech transcription */
1509
1519
  dtmfDetection?: boolean;
1520
+ /** elevenlabsTextNormalization - When using ElevenLabs as TTS provider, this parameter allows you to enable or disable its text normalization feature */
1521
+ elevenlabsTextNormalization?: string;
1522
+ /** hints - Phrases to help better accuracy in speech recognition of these pharases */
1523
+ hints?: string;
1510
1524
  /** id - The assistant ID of the AI Assistant */
1511
1525
  id?: string;
1512
- /** interruptByDtmf - Whether DTMF tone can interrupt the play of text-to-speech */
1513
- interruptByDtmf?: boolean;
1514
- /** interruptible - Whether caller's speaking can interrupt the play of text-to-speech */
1515
- interruptible?: boolean;
1526
+ /** intelligenceService - The Conversational Intelligence Service id or unique name to be used for the session */
1527
+ intelligenceService?: string;
1528
+ /** interruptSensitivity - Set the sensitivity of the interrupt feature for speech. The value can be low, medium, or high */
1529
+ interruptSensitivity?: string;
1530
+ /** interruptible - Whether and how the input from a caller, such as speaking or DTMF can interrupt the play of text-to-speech */
1531
+ interruptible?: string;
1516
1532
  /** language - Language to be used for both text-to-speech and transcription */
1517
1533
  language?: string;
1518
1534
  /** partialPrompts - Whether partial prompts should be reported to WebSocket server before the caller finishes speaking */
1519
1535
  partialPrompts?: boolean;
1536
+ /** preemptible - Whether subsequent text-to-speech or play media can interrupt the on-going play of text-to-speech or media */
1537
+ preemptible?: boolean;
1520
1538
  /** profanityFilter - Whether profanities should be filtered out of the speech transcription */
1521
1539
  profanityFilter?: boolean;
1540
+ /** reportInputDuringAgentSpeech - Whether prompts should be reported to WebSocket server when text-to-speech playing and interrupt is disabled */
1541
+ reportInputDuringAgentSpeech?: boolean;
1522
1542
  /** speechModel - Speech model to be used for transcription */
1523
1543
  speechModel?: string;
1524
1544
  /** transcriptionLanguage - Language to be used for transcription */
@@ -1533,8 +1553,8 @@ declare namespace VoiceResponse {
1533
1553
  voice?: string;
1534
1554
  /** welcomeGreeting - The sentence to be played automatically when the session is connected */
1535
1555
  welcomeGreeting?: string;
1536
- /** welcomeGreetingInterruptible - Whether caller's speaking can interrupt the welcome greeting */
1537
- welcomeGreetingInterruptible?: boolean;
1556
+ /** welcomeGreetingInterruptible - "Whether and how the input from a caller, such as speaking or DTMF can interrupt the welcome greeting */
1557
+ welcomeGreetingInterruptible?: string;
1538
1558
  }
1539
1559
  /**
1540
1560
  * Attributes to pass to language
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "twilio",
3
3
  "description": "A Twilio helper library",
4
- "version": "5.6.0",
4
+ "version": "5.6.1",
5
5
  "author": "API Team <api@twilio.com>",
6
6
  "contributors": [
7
7
  {