Skip to content

Commit 49fbfb7

Browse files
committed
[Librarian] Regenerated @ d9d9306ce476f68a10ab20bf103e0e31e523a4b3
1 parent f7fd774 commit 49fbfb7

File tree

16 files changed

+2859
-96
lines changed

16 files changed

+2859
-96
lines changed

CHANGES.md

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

4+
[2023-06-28] Version 4.13.0
5+
---------------------------
6+
**Library - Fix**
7+
- [PR #933](https://github.com/twilio/twilio-node/pull/933): Refer only required values from process.env instead of fetching all. Thanks to [@AsabuHere](https://github.com/AsabuHere)!
8+
9+
**Lookups**
10+
- Add `reassigned_number` package to the lookup response
11+
12+
**Numbers**
13+
- Add hosted_number_order under version `/v2`.
14+
- Update properties in Porting and Bulk Porting APIs. **(breaking change)**
15+
- Added bulk Portability API under version `/v1`.
16+
- Added Portability API under version `/v1`.
17+
18+
419
[2023-06-15] Version 4.12.0
520
---------------------------
621
**Api**

src/rest/insights/v1/call/annotation.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ export interface AnnotationContextUpdateOptions {
3636
answeredBy?: AnnotationAnsweredBy;
3737
/** */
3838
connectivityIssue?: AnnotationConnectivityIssue;
39-
/** Specify if the call had any subjective quality issues. Possible values, one or more of: no_quality_issue, low_volume, choppy_robotic, echo, dtmf, latency, owa, static_noise. Use comma separated values to indicate multiple quality issues for the same call */
39+
/** Specify if the call had any subjective quality issues. Possible values, one or more of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. Use comma separated values to indicate multiple quality issues for the same call. */
4040
qualityIssues?: string;
41-
/** Specify if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Is of type Boolean: true, false. Use true if the call was a spam call. */
41+
/** A boolean flag to indicate if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Use `true` if the call was a spam call. */
4242
spam?: boolean;
4343
/** Specify the call score. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad]. */
4444
callScore?: number;
45-
/** Specify any comments pertaining to the call. This of type string with a max limit of 100 characters. Twilio does not treat this field as PII, so don’t put any PII in here. */
45+
/** Specify any comments pertaining to the call. `comment` has a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in the `comment`. */
4646
comment?: string;
47-
/** Associate this call with an incident or support ticket. This is of type string with a max limit of 100 characters. Twilio does not treat this field as PII, so don’t put any PII in here. */
47+
/** Associate this call with an incident or support ticket. The `incident` parameter is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`. */
4848
incident?: string;
4949
}
5050

@@ -252,23 +252,23 @@ export class AnnotationInstance {
252252
answeredBy: AnnotationAnsweredBy;
253253
connectivityIssue: AnnotationConnectivityIssue;
254254
/**
255-
* Specify if the call had any subjective quality issues. Possible values, one or more of: no_quality_issue, low_volume, choppy_robotic, echo, dtmf, latency, owa, static_noise. Use comma separated values to indicate multiple quality issues for the same call
255+
* Specifies if the call had any subjective quality issues. Possible values are one or more of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, or `static_noise`.
256256
*/
257257
qualityIssues: Array<string>;
258258
/**
259-
* Specify if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Is of type Boolean: true, false. Use true if the call was a spam call.
259+
* Specifies if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Is of type Boolean: true, false. Use true if the call was a spam call.
260260
*/
261261
spam: boolean;
262262
/**
263-
* Specify the call score. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
263+
* Specifies the Call Score, if available. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
264264
*/
265265
callScore: number;
266266
/**
267-
* Specify any comments pertaining to the call. This of type string with a max limit of 100 characters. Twilio does not treat this field as PII, so don’t put any PII in here.
267+
* Specifies any comments pertaining to the call. Twilio does not treat this field as PII, so no PII should be included in comments.
268268
*/
269269
comment: string;
270270
/**
271-
* Associate this call with an incident or support ticket. This is of type string with a max limit of 100 characters. Twilio does not treat this field as PII, so don’t put any PII in here.
271+
* Incident or support ticket associated with this call. The `incident` property is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`.
272272
*/
273273
incident: string;
274274
/**

src/rest/insights/v1/call/callSummary.ts

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export type CallSummaryProcessingState = "complete" | "partial";
4545
* Options to pass to fetch a CallSummaryInstance
4646
*/
4747
export interface CallSummaryContextFetchOptions {
48-
/** */
48+
/** The Processing State of this Call Summary. One of `complete`, `partial` or `all`. */
4949
processingState?: CallSummaryProcessingState;
5050
}
5151

@@ -220,28 +220,85 @@ export class CallSummaryInstance {
220220
this._solution = { callSid };
221221
}
222222

223+
/**
224+
* The unique SID identifier of the Account.
225+
*/
223226
accountSid: string;
227+
/**
228+
* The unique SID identifier of the Call.
229+
*/
224230
callSid: string;
225231
callType: CallSummaryCallType;
226232
callState: CallSummaryCallState;
227233
answeredBy: CallSummaryAnsweredBy;
228234
processingState: CallSummaryProcessingState;
235+
/**
236+
* The time at which the Call was created, given in ISO 8601 format. Can be different from `start_time` in the event of queueing due to CPS
237+
*/
229238
createdTime: Date;
239+
/**
240+
* The time at which the Call was started, given in ISO 8601 format.
241+
*/
230242
startTime: Date;
243+
/**
244+
* The time at which the Call was ended, given in ISO 8601 format.
245+
*/
231246
endTime: Date;
247+
/**
248+
* Duration between when the call was initiated and the call was ended
249+
*/
232250
duration: number;
251+
/**
252+
* Duration between when the call was answered and when it ended
253+
*/
233254
connectDuration: number;
255+
/**
256+
* The calling party.
257+
*/
234258
from: any;
259+
/**
260+
* The called party.
261+
*/
235262
to: any;
263+
/**
264+
* Contains metrics and properties for the Twilio media gateway of a PSTN call.
265+
*/
236266
carrierEdge: any;
267+
/**
268+
* Contains metrics and properties for the Twilio media gateway of a Client call.
269+
*/
237270
clientEdge: any;
271+
/**
272+
* Contains metrics and properties for the SDK sensor library for Client calls.
273+
*/
238274
sdkEdge: any;
275+
/**
276+
* Contains metrics and properties for the Twilio media gateway of a SIP Interface or Trunking call.
277+
*/
239278
sipEdge: any;
279+
/**
280+
* Tags applied to calls by Voice Insights analysis indicating a condition that could result in subjective degradation of the call quality.
281+
*/
240282
tags: Array<string>;
283+
/**
284+
* The URL of this resource.
285+
*/
241286
url: string;
287+
/**
288+
* Attributes capturing call-flow-specific details.
289+
*/
242290
attributes: any;
291+
/**
292+
* Contains edge-agnostic call-level details.
293+
*/
243294
properties: any;
295+
/**
296+
* Contains trusted communications details including Branded Call and verified caller ID.
297+
*/
244298
trust: any;
299+
/**
300+
* Programmatically labeled annotations for the Call. Developers can update the Call Summary records with Annotation during or after a Call. Annotations can be updated as long as the Call Summary record is addressable via the API.
301+
*/
245302
annotation: any;
246303

247304
private get _proxy(): CallSummaryContext {

src/rest/insights/v1/call/event.ts

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export type EventTwilioEdge =
3333
* Options to pass to each
3434
*/
3535
export interface EventListInstanceEachOptions {
36-
/** */
36+
/** The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
3737
edge?: EventTwilioEdge;
3838
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
3939
pageSize?: number;
@@ -49,7 +49,7 @@ export interface EventListInstanceEachOptions {
4949
* Options to pass to list
5050
*/
5151
export interface EventListInstanceOptions {
52-
/** */
52+
/** The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
5353
edge?: EventTwilioEdge;
5454
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
5555
pageSize?: number;
@@ -61,7 +61,7 @@ export interface EventListInstanceOptions {
6161
* Options to pass to page
6262
*/
6363
export interface EventListInstancePageOptions {
64-
/** */
64+
/** The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
6565
edge?: EventTwilioEdge;
6666
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
6767
pageSize?: number;
@@ -277,16 +277,43 @@ export class EventInstance {
277277
this.clientEdge = payload.client_edge;
278278
}
279279

280+
/**
281+
* Event time.
282+
*/
280283
timestamp: string;
284+
/**
285+
* The unique SID identifier of the Call.
286+
*/
281287
callSid: string;
288+
/**
289+
* The unique SID identifier of the Account.
290+
*/
282291
accountSid: string;
283292
edge: EventTwilioEdge;
293+
/**
294+
* Event group.
295+
*/
284296
group: string;
285297
level: EventLevel;
298+
/**
299+
* Event name.
300+
*/
286301
name: string;
302+
/**
303+
* Represents the connection between Twilio and our immediate carrier partners. The events here describe the call lifecycle as reported by Twilio\'s carrier media gateways.
304+
*/
287305
carrierEdge: any;
306+
/**
307+
* Represents the Twilio media gateway for SIP interface and SIP trunking calls. The events here describe the call lifecycle as reported by Twilio\'s public media gateways.
308+
*/
288309
sipEdge: any;
310+
/**
311+
* Represents the Voice SDK running locally in the browser or in the Android/iOS application. The events here are emitted by the Voice SDK in response to certain call progress events, network changes, or call quality conditions.
312+
*/
289313
sdkEdge: any;
314+
/**
315+
* Represents the Twilio media gateway for Client calls. The events here describe the call lifecycle as reported by Twilio\'s Voice SDK media gateways.
316+
*/
290317
clientEdge: any;
291318

292319
/**

src/rest/insights/v1/call/metric.ts

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ export type MetricTwilioEdge =
3333
* Options to pass to each
3434
*/
3535
export interface MetricListInstanceEachOptions {
36-
/** */
36+
/** The Edge of this Metric. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
3737
edge?: MetricTwilioEdge;
38-
/** */
38+
/** The Direction of this Metric. One of `unknown`, `inbound`, `outbound` or `both`. */
3939
direction?: MetricStreamDirection;
4040
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
4141
pageSize?: number;
@@ -51,9 +51,9 @@ export interface MetricListInstanceEachOptions {
5151
* Options to pass to list
5252
*/
5353
export interface MetricListInstanceOptions {
54-
/** */
54+
/** The Edge of this Metric. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
5555
edge?: MetricTwilioEdge;
56-
/** */
56+
/** The Direction of this Metric. One of `unknown`, `inbound`, `outbound` or `both`. */
5757
direction?: MetricStreamDirection;
5858
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
5959
pageSize?: number;
@@ -65,9 +65,9 @@ export interface MetricListInstanceOptions {
6565
* Options to pass to page
6666
*/
6767
export interface MetricListInstancePageOptions {
68-
/** */
68+
/** The Edge of this Metric. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
6969
edge?: MetricTwilioEdge;
70-
/** */
70+
/** The Direction of this Metric. One of `unknown`, `inbound`, `outbound` or `both`. */
7171
direction?: MetricStreamDirection;
7272
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
7373
pageSize?: number;
@@ -286,14 +286,35 @@ export class MetricInstance {
286286
this.clientEdge = payload.client_edge;
287287
}
288288

289+
/**
290+
* Timestamp of metric sample. Samples are taken every 10 seconds and contain the metrics for the previous 10 seconds.
291+
*/
289292
timestamp: string;
293+
/**
294+
* The unique SID identifier of the Call.
295+
*/
290296
callSid: string;
297+
/**
298+
* The unique SID identifier of the Account.
299+
*/
291300
accountSid: string;
292301
edge: MetricTwilioEdge;
293302
direction: MetricStreamDirection;
303+
/**
304+
* Contains metrics and properties for the Twilio media gateway of a PSTN call.
305+
*/
294306
carrierEdge: any;
307+
/**
308+
* Contains metrics and properties for the Twilio media gateway of a SIP Interface or Trunking call.
309+
*/
295310
sipEdge: any;
311+
/**
312+
* Contains metrics and properties for the SDK sensor library for Client calls.
313+
*/
296314
sdkEdge: any;
315+
/**
316+
* Contains metrics and properties for the Twilio media gateway of a Client call.
317+
*/
297318
clientEdge: any;
298319

299320
/**

0 commit comments

Comments
 (0)