Skip to content

Commit

Permalink
[Librarian] Regenerated @ d9d9306ce476f68a10ab20bf103e0e31e523a4b3
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Jun 28, 2023
1 parent f7fd774 commit 49fbfb7
Show file tree
Hide file tree
Showing 16 changed files with 2,859 additions and 96 deletions.
15 changes: 15 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
twilio-node changelog
=====================

[2023-06-28] Version 4.13.0
---------------------------
**Library - Fix**
- [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)!

**Lookups**
- Add `reassigned_number` package to the lookup response

**Numbers**
- Add hosted_number_order under version `/v2`.
- Update properties in Porting and Bulk Porting APIs. **(breaking change)**
- Added bulk Portability API under version `/v1`.
- Added Portability API under version `/v1`.


[2023-06-15] Version 4.12.0
---------------------------
**Api**
Expand Down
18 changes: 9 additions & 9 deletions src/rest/insights/v1/call/annotation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ export interface AnnotationContextUpdateOptions {
answeredBy?: AnnotationAnsweredBy;
/** */
connectivityIssue?: AnnotationConnectivityIssue;
/** 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 */
/** 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. */
qualityIssues?: string;
/** 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. */
/** 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. */
spam?: boolean;
/** 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]. */
callScore?: number;
/** 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. */
/** 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`. */
comment?: string;
/** 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. */
/** 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`. */
incident?: string;
}

Expand Down Expand Up @@ -252,23 +252,23 @@ export class AnnotationInstance {
answeredBy: AnnotationAnsweredBy;
connectivityIssue: AnnotationConnectivityIssue;
/**
* 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
* 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`.
*/
qualityIssues: Array<string>;
/**
* 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.
* 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.
*/
spam: boolean;
/**
* 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].
* 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].
*/
callScore: number;
/**
* 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.
* Specifies any comments pertaining to the call. Twilio does not treat this field as PII, so no PII should be included in comments.
*/
comment: string;
/**
* 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.
* 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`.
*/
incident: string;
/**
Expand Down
59 changes: 58 additions & 1 deletion src/rest/insights/v1/call/callSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export type CallSummaryProcessingState = "complete" | "partial";
* Options to pass to fetch a CallSummaryInstance
*/
export interface CallSummaryContextFetchOptions {
/** */
/** The Processing State of this Call Summary. One of `complete`, `partial` or `all`. */
processingState?: CallSummaryProcessingState;
}

Expand Down Expand Up @@ -220,28 +220,85 @@ export class CallSummaryInstance {
this._solution = { callSid };
}

/**
* The unique SID identifier of the Account.
*/
accountSid: string;
/**
* The unique SID identifier of the Call.
*/
callSid: string;
callType: CallSummaryCallType;
callState: CallSummaryCallState;
answeredBy: CallSummaryAnsweredBy;
processingState: CallSummaryProcessingState;
/**
* 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
*/
createdTime: Date;
/**
* The time at which the Call was started, given in ISO 8601 format.
*/
startTime: Date;
/**
* The time at which the Call was ended, given in ISO 8601 format.
*/
endTime: Date;
/**
* Duration between when the call was initiated and the call was ended
*/
duration: number;
/**
* Duration between when the call was answered and when it ended
*/
connectDuration: number;
/**
* The calling party.
*/
from: any;
/**
* The called party.
*/
to: any;
/**
* Contains metrics and properties for the Twilio media gateway of a PSTN call.
*/
carrierEdge: any;
/**
* Contains metrics and properties for the Twilio media gateway of a Client call.
*/
clientEdge: any;
/**
* Contains metrics and properties for the SDK sensor library for Client calls.
*/
sdkEdge: any;
/**
* Contains metrics and properties for the Twilio media gateway of a SIP Interface or Trunking call.
*/
sipEdge: any;
/**
* Tags applied to calls by Voice Insights analysis indicating a condition that could result in subjective degradation of the call quality.
*/
tags: Array<string>;
/**
* The URL of this resource.
*/
url: string;
/**
* Attributes capturing call-flow-specific details.
*/
attributes: any;
/**
* Contains edge-agnostic call-level details.
*/
properties: any;
/**
* Contains trusted communications details including Branded Call and verified caller ID.
*/
trust: any;
/**
* 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.
*/
annotation: any;

private get _proxy(): CallSummaryContext {
Expand Down
33 changes: 30 additions & 3 deletions src/rest/insights/v1/call/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type EventTwilioEdge =
* Options to pass to each
*/
export interface EventListInstanceEachOptions {
/** */
/** The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
edge?: EventTwilioEdge;
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
pageSize?: number;
Expand All @@ -49,7 +49,7 @@ export interface EventListInstanceEachOptions {
* Options to pass to list
*/
export interface EventListInstanceOptions {
/** */
/** The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
edge?: EventTwilioEdge;
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
pageSize?: number;
Expand All @@ -61,7 +61,7 @@ export interface EventListInstanceOptions {
* Options to pass to page
*/
export interface EventListInstancePageOptions {
/** */
/** The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
edge?: EventTwilioEdge;
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
pageSize?: number;
Expand Down Expand Up @@ -277,16 +277,43 @@ export class EventInstance {
this.clientEdge = payload.client_edge;
}

/**
* Event time.
*/
timestamp: string;
/**
* The unique SID identifier of the Call.
*/
callSid: string;
/**
* The unique SID identifier of the Account.
*/
accountSid: string;
edge: EventTwilioEdge;
/**
* Event group.
*/
group: string;
level: EventLevel;
/**
* Event name.
*/
name: string;
/**
* 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.
*/
carrierEdge: any;
/**
* 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.
*/
sipEdge: any;
/**
* 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.
*/
sdkEdge: any;
/**
* Represents the Twilio media gateway for Client calls. The events here describe the call lifecycle as reported by Twilio\'s Voice SDK media gateways.
*/
clientEdge: any;

/**
Expand Down
33 changes: 27 additions & 6 deletions src/rest/insights/v1/call/metric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export type MetricTwilioEdge =
* Options to pass to each
*/
export interface MetricListInstanceEachOptions {
/** */
/** The Edge of this Metric. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
edge?: MetricTwilioEdge;
/** */
/** The Direction of this Metric. One of `unknown`, `inbound`, `outbound` or `both`. */
direction?: MetricStreamDirection;
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
pageSize?: number;
Expand All @@ -51,9 +51,9 @@ export interface MetricListInstanceEachOptions {
* Options to pass to list
*/
export interface MetricListInstanceOptions {
/** */
/** The Edge of this Metric. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
edge?: MetricTwilioEdge;
/** */
/** The Direction of this Metric. One of `unknown`, `inbound`, `outbound` or `both`. */
direction?: MetricStreamDirection;
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
pageSize?: number;
Expand All @@ -65,9 +65,9 @@ export interface MetricListInstanceOptions {
* Options to pass to page
*/
export interface MetricListInstancePageOptions {
/** */
/** The Edge of this Metric. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
edge?: MetricTwilioEdge;
/** */
/** The Direction of this Metric. One of `unknown`, `inbound`, `outbound` or `both`. */
direction?: MetricStreamDirection;
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
pageSize?: number;
Expand Down Expand Up @@ -286,14 +286,35 @@ export class MetricInstance {
this.clientEdge = payload.client_edge;
}

/**
* Timestamp of metric sample. Samples are taken every 10 seconds and contain the metrics for the previous 10 seconds.
*/
timestamp: string;
/**
* The unique SID identifier of the Call.
*/
callSid: string;
/**
* The unique SID identifier of the Account.
*/
accountSid: string;
edge: MetricTwilioEdge;
direction: MetricStreamDirection;
/**
* Contains metrics and properties for the Twilio media gateway of a PSTN call.
*/
carrierEdge: any;
/**
* Contains metrics and properties for the Twilio media gateway of a SIP Interface or Trunking call.
*/
sipEdge: any;
/**
* Contains metrics and properties for the SDK sensor library for Client calls.
*/
sdkEdge: any;
/**
* Contains metrics and properties for the Twilio media gateway of a Client call.
*/
clientEdge: any;

/**
Expand Down
Loading

0 comments on commit 49fbfb7

Please sign in to comment.