Skip to content

Commit 4d00b7c

Browse files
committed
[Librarian] Regenerated @ 1e94599903f1dbac80d3040ebbdba7d3f7fb074d
1 parent b7c5598 commit 4d00b7c

File tree

20 files changed

+185
-96
lines changed

20 files changed

+185
-96
lines changed

CHANGES.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
twilio-node changelog
22
=====================
33

4+
[2023-08-10] Version 4.15.0
5+
---------------------------
6+
**Library - Fix**
7+
- [PR #952](https://github.com/twilio/twilio-node/pull/952): fix unhandledRejection. Thanks to [@sbansla](https://github.com/sbansla)!
8+
9+
**Insights**
10+
- Normalize annotations parameters in list summary api to be prefixed
11+
12+
**Numbers**
13+
- Change Bulk_hosted_sid from BHR to BH prefix in HNO and dependent under version `/v2` API's. **(breaking change)**
14+
- Added parameter target_account_sid to portability and account_sid to response body
15+
16+
**Verify**
17+
- Remove beta feature flag to list attempts API.
18+
- Remove beta feature flag to verifications summary attempts API.
19+
20+
421
[2023-07-27] Version 4.14.1
522
---------------------------
623
**Api**

src/rest/api/v2010/account/conference/participant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export interface ParticipantListInstanceCreateOptions {
140140
recordingTrack?: string;
141141
/** The maximum duration of the call in seconds. Constraints depend on account and configuration. */
142142
timeLimit?: number;
143-
/** Whether to detect if a human, answering machine, or fax has picked up the call. Can be: `Enable` or `DetectMessageEnd`. Use `Enable` if you would like us to return `AnsweredBy` as soon as the called party is identified. Use `DetectMessageEnd`, if you would like to leave a message on an answering machine. If `send_digits` is provided, this parameter is ignored. For more information, see [Answering Machine Detection](https://www.twilio.com/docs/voice/answering-machine-detection). */
143+
/** Whether to detect if a human, answering machine, or fax has picked up the call. Can be: `Enable` or `DetectMessageEnd`. Use `Enable` if you would like us to return `AnsweredBy` as soon as the called party is identified. Use `DetectMessageEnd`, if you would like to leave a message on an answering machine. For more information, see [Answering Machine Detection](https://www.twilio.com/docs/voice/answering-machine-detection). */
144144
machineDetection?: string;
145145
/** The number of seconds that we should attempt to detect an answering machine before timing out and sending a voice request with `AnsweredBy` of `unknown`. The default timeout is 30 seconds. */
146146
machineDetectionTimeout?: number;

src/rest/api/v2010/account/message.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export interface MessageContextUpdateOptions {
6767
export interface MessageListInstanceCreateOptions {
6868
/** The recipient\\\'s phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (for SMS/MMS) or [channel address](https://www.twilio.com/docs/sms/channels#channel-addresses), e.g. `whatsapp:+15552229999`. */
6969
to: string;
70-
/** The URL of the endpoint to which Twilio sends [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url). URL must contain a valid hostname and underscores are not allowed. If you include this parameter with the `messaging_service_sid`, Twilio uses this URL instead of the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/sms/services/api). */
70+
/** The URL of the endpoint to which Twilio sends [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url). URL must contain a valid hostname and underscores are not allowed. If you include this parameter with the `messaging_service_sid`, Twilio uses this URL instead of the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api). */
7171
statusCallback?: string;
7272
/** The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). If this parameter is provided, the `status_callback` parameter of this request is ignored; [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App\\\'s `message_status_callback` URL. */
7373
applicationSid?: string;
@@ -488,7 +488,7 @@ export class MessageInstance {
488488
numMedia: string;
489489
status: MessageStatus;
490490
/**
491-
* The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) associated with the Message resource. The value is `null` if a Messaging Service was not used.
491+
* The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) associated with the Message resource. The value is `null` if a Messaging Service was not used.
492492
*/
493493
messagingServiceSid: string;
494494
/**

src/rest/chat/v3/channel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface ChannelContextUpdateOptions {
3030
xTwilioWebhookEnabled?: ChannelWebhookEnabledType;
3131
/** */
3232
type?: ChannelChannelType;
33-
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this channel belongs to. */
33+
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this channel belongs to. */
3434
messagingServiceSid?: string;
3535
}
3636

@@ -247,7 +247,7 @@ export class ChannelInstance {
247247
*/
248248
messagesCount: number;
249249
/**
250-
* The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this channel belongs to.
250+
* The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this channel belongs to.
251251
*/
252252
messagingServiceSid: string;
253253
/**

src/rest/conversations/v1/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { WebhookListInstance } from "./configuration/webhook";
2525
export interface ConfigurationContextUpdateOptions {
2626
/** The SID of the default [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to use when creating a conversation. */
2727
defaultChatServiceSid?: string;
28-
/** The SID of the default [Messaging Service](https://www.twilio.com/docs/sms/services/api) to use when creating a conversation. */
28+
/** The SID of the default [Messaging Service](https://www.twilio.com/docs/messaging/services/api) to use when creating a conversation. */
2929
defaultMessagingServiceSid?: string;
3030
/** Default ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. */
3131
defaultInactiveTimer?: string;
@@ -205,7 +205,7 @@ export class ConfigurationInstance {
205205
*/
206206
defaultChatServiceSid: string;
207207
/**
208-
* The SID of the default [Messaging Service](https://www.twilio.com/docs/sms/services/api) used when creating a conversation.
208+
* The SID of the default [Messaging Service](https://www.twilio.com/docs/messaging/services/api) used when creating a conversation.
209209
*/
210210
defaultMessagingServiceSid: string;
211211
/**

src/rest/conversations/v1/conversation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export interface ConversationContextUpdateOptions {
4949
dateUpdated?: Date;
5050
/** An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. */
5151
attributes?: string;
52-
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. */
52+
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this conversation belongs to. */
5353
messagingServiceSid?: string;
5454
/** */
5555
state?: ConversationState;
@@ -75,7 +75,7 @@ export interface ConversationListInstanceCreateOptions {
7575
dateCreated?: Date;
7676
/** The date that this resource was last updated. */
7777
dateUpdated?: Date;
78-
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. */
78+
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this conversation belongs to. */
7979
messagingServiceSid?: string;
8080
/** An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. */
8181
attributes?: string;
@@ -444,7 +444,7 @@ export class ConversationInstance {
444444
*/
445445
chatServiceSid: string;
446446
/**
447-
* The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to.
447+
* The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this conversation belongs to.
448448
*/
449449
messagingServiceSid: string;
450450
/**

src/rest/conversations/v1/service/configuration.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ import { WebhookListInstance } from "./configuration/webhook";
2424
* Options to pass to update a ConfigurationInstance
2525
*/
2626
export interface ConfigurationContextUpdateOptions {
27-
/** The conversation-level role assigned to a conversation creator when they join a new conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. */
27+
/** The conversation-level role assigned to a conversation creator when they join a new conversation. See [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. */
2828
defaultConversationCreatorRoleSid?: string;
29-
/** The conversation-level role assigned to users when they are added to a conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. */
29+
/** The conversation-level role assigned to users when they are added to a conversation. See [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. */
3030
defaultConversationRoleSid?: string;
31-
/** The service-level role assigned to users when they are added to the service. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. */
31+
/** The service-level role assigned to users when they are added to the service. See [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. */
3232
defaultChatServiceRoleSid?: string;
33-
/** Whether the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) is enabled for this Conversations Service. The default is `false`. */
33+
/** Whether the [Reachability Indicator](https://www.twilio.com/docs/conversations/reachability) is enabled for this Conversations Service. The default is `false`. */
3434
reachabilityEnabled?: boolean;
3535
}
3636

@@ -226,15 +226,15 @@ export class ConfigurationInstance {
226226
*/
227227
chatServiceSid: string;
228228
/**
229-
* The conversation-level role assigned to a conversation creator user when they join a new conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles.
229+
* The conversation-level role assigned to a conversation creator when they join a new conversation. See [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles.
230230
*/
231231
defaultConversationCreatorRoleSid: string;
232232
/**
233-
* The conversation-level role assigned to users when they are added to a conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles.
233+
* The conversation-level role assigned to users when they are added to a conversation. See [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles.
234234
*/
235235
defaultConversationRoleSid: string;
236236
/**
237-
* The service-level role assigned to users when they are added to the service. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles.
237+
* The service-level role assigned to users when they are added to the service. See [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles.
238238
*/
239239
defaultChatServiceRoleSid: string;
240240
/**
@@ -246,7 +246,7 @@ export class ConfigurationInstance {
246246
*/
247247
links: Record<string, string>;
248248
/**
249-
* Whether the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) is enabled for this Conversations Service. The default is `false`.
249+
* Whether the [Reachability Indicator](https://www.twilio.com/docs/conversations/reachability) is enabled for this Conversations Service. The default is `false`.
250250
*/
251251
reachabilityEnabled: boolean;
252252

src/rest/conversations/v1/service/conversation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export interface ConversationContextUpdateOptions {
4949
dateUpdated?: Date;
5050
/** An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. */
5151
attributes?: string;
52-
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. */
52+
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this conversation belongs to. */
5353
messagingServiceSid?: string;
5454
/** */
5555
state?: ConversationState;
@@ -73,7 +73,7 @@ export interface ConversationListInstanceCreateOptions {
7373
uniqueName?: string;
7474
/** An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. */
7575
attributes?: string;
76-
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. */
76+
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this conversation belongs to. */
7777
messagingServiceSid?: string;
7878
/** The date that this resource was created. */
7979
dateCreated?: Date;
@@ -466,7 +466,7 @@ export class ConversationInstance {
466466
*/
467467
chatServiceSid: string;
468468
/**
469-
* The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to.
469+
* The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/services/api) this conversation belongs to.
470470
*/
471471
messagingServiceSid: string;
472472
/**

src/rest/insights/v1/callSummaries.ts

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,16 @@ export interface CallSummariesListInstanceEachOptions {
9393
abnormalSession?: boolean;
9494
/** An Answered By value for the calls based on `Answering Machine Detection (AMD)`. One of `unknown`, `machine_start`, `machine_end_beep`, `machine_end_silence`, `machine_end_other`, `human` or `fax`. */
9595
answeredBy?: CallSummariesAnsweredBy;
96+
/** Either machine or human. */
97+
answeredByAnnotation?: string;
9698
/** A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`. */
97-
connectivityIssue?: string;
99+
connectivityIssueAnnotation?: string;
98100
/** A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. */
99-
qualityIssue?: string;
101+
qualityIssueAnnotation?: string;
100102
/** A boolean flag indicating spam calls. */
101-
spam?: boolean;
103+
spamAnnotation?: boolean;
102104
/** A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad]. */
103-
callScore?: string;
105+
callScoreAnnotation?: string;
104106
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
105107
pageSize?: number;
106108
/** Function to process each record. If this and a positional callback are passed, this one will be used */
@@ -153,14 +155,16 @@ export interface CallSummariesListInstanceOptions {
153155
abnormalSession?: boolean;
154156
/** An Answered By value for the calls based on `Answering Machine Detection (AMD)`. One of `unknown`, `machine_start`, `machine_end_beep`, `machine_end_silence`, `machine_end_other`, `human` or `fax`. */
155157
answeredBy?: CallSummariesAnsweredBy;
158+
/** Either machine or human. */
159+
answeredByAnnotation?: string;
156160
/** A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`. */
157-
connectivityIssue?: string;
161+
connectivityIssueAnnotation?: string;
158162
/** A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. */
159-
qualityIssue?: string;
163+
qualityIssueAnnotation?: string;
160164
/** A boolean flag indicating spam calls. */
161-
spam?: boolean;
165+
spamAnnotation?: boolean;
162166
/** A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad]. */
163-
callScore?: string;
167+
callScoreAnnotation?: string;
164168
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
165169
pageSize?: number;
166170
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
@@ -209,14 +213,16 @@ export interface CallSummariesListInstancePageOptions {
209213
abnormalSession?: boolean;
210214
/** An Answered By value for the calls based on `Answering Machine Detection (AMD)`. One of `unknown`, `machine_start`, `machine_end_beep`, `machine_end_silence`, `machine_end_other`, `human` or `fax`. */
211215
answeredBy?: CallSummariesAnsweredBy;
216+
/** Either machine or human. */
217+
answeredByAnnotation?: string;
212218
/** A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`. */
213-
connectivityIssue?: string;
219+
connectivityIssueAnnotation?: string;
214220
/** A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. */
215-
qualityIssue?: string;
221+
qualityIssueAnnotation?: string;
216222
/** A boolean flag indicating spam calls. */
217-
spam?: boolean;
223+
spamAnnotation?: boolean;
218224
/** A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad]. */
219-
callScore?: string;
225+
callScoreAnnotation?: string;
220226
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
221227
pageSize?: number;
222228
/** Page Number, this value is simply for client state */
@@ -371,14 +377,17 @@ export function CallSummariesListInstance(
371377
data["AbnormalSession"] = serialize.bool(params["abnormalSession"]);
372378
if (params["answeredBy"] !== undefined)
373379
data["AnsweredBy"] = params["answeredBy"];
374-
if (params["connectivityIssue"] !== undefined)
375-
data["ConnectivityIssue"] = params["connectivityIssue"];
376-
if (params["qualityIssue"] !== undefined)
377-
data["QualityIssue"] = params["qualityIssue"];
378-
if (params["spam"] !== undefined)
379-
data["Spam"] = serialize.bool(params["spam"]);
380-
if (params["callScore"] !== undefined)
381-
data["CallScore"] = params["callScore"];
380+
if (params["answeredByAnnotation"] !== undefined)
381+
data["AnsweredByAnnotation"] = params["answeredByAnnotation"];
382+
if (params["connectivityIssueAnnotation"] !== undefined)
383+
data["ConnectivityIssueAnnotation"] =
384+
params["connectivityIssueAnnotation"];
385+
if (params["qualityIssueAnnotation"] !== undefined)
386+
data["QualityIssueAnnotation"] = params["qualityIssueAnnotation"];
387+
if (params["spamAnnotation"] !== undefined)
388+
data["SpamAnnotation"] = serialize.bool(params["spamAnnotation"]);
389+
if (params["callScoreAnnotation"] !== undefined)
390+
data["CallScoreAnnotation"] = params["callScoreAnnotation"];
382391
if (params["pageSize"] !== undefined) data["PageSize"] = params["pageSize"];
383392

384393
if (params.pageNumber !== undefined) data["Page"] = params.pageNumber;

0 commit comments

Comments
 (0)