twilio 4.12.0 → 4.13.0
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.
- package/lib/base/BaseTwilio.js +15 -8
- package/lib/rest/insights/v1/call/annotation.d.ts +9 -9
- package/lib/rest/insights/v1/call/callSummary.d.ts +58 -1
- package/lib/rest/insights/v1/call/event.d.ts +30 -3
- package/lib/rest/insights/v1/call/metric.d.ts +27 -6
- package/lib/rest/insights/v1/callSummaries.d.ts +123 -69
- package/lib/rest/insights/v1/setting.d.ts +16 -4
- package/lib/rest/lookups/v2/phoneNumber.d.ts +9 -1
- package/lib/rest/lookups/v2/phoneNumber.js +4 -0
- package/lib/rest/numbers/V1.d.ts +10 -0
- package/lib/rest/numbers/V1.js +15 -0
- package/lib/rest/numbers/V2.d.ts +10 -0
- package/lib/rest/numbers/V2.js +14 -0
- package/lib/rest/numbers/v1/portingBulkPortability.d.ts +120 -0
- package/lib/rest/numbers/v1/portingBulkPortability.js +136 -0
- package/lib/rest/numbers/v1/portingPortability.d.ts +134 -0
- package/lib/rest/numbers/v1/portingPortability.js +124 -0
- package/lib/rest/numbers/v2/authorizationDocument/dependentHostedNumberOrder.d.ts +265 -0
- package/lib/rest/numbers/v2/authorizationDocument/dependentHostedNumberOrder.js +164 -0
- package/lib/rest/numbers/v2/authorizationDocument.d.ts +288 -0
- package/lib/rest/numbers/v2/authorizationDocument.js +257 -0
- package/lib/rest/numbers/v2/hostedNumberOrder.d.ts +390 -0
- package/lib/rest/numbers/v2/hostedNumberOrder.js +296 -0
- package/lib/rest/taskrouter/v1/workspace/worker.d.ts +3 -3
- package/package.json +1 -1
package/lib/base/BaseTwilio.js
CHANGED
|
@@ -33,23 +33,30 @@ var Twilio;
|
|
|
33
33
|
/* jshint ignore:end */
|
|
34
34
|
constructor(username, password, opts) {
|
|
35
35
|
this.opts = opts || {};
|
|
36
|
-
this.env = this.opts.env ||
|
|
36
|
+
this.env = this.opts.env || {};
|
|
37
37
|
this.username =
|
|
38
|
-
username
|
|
39
|
-
this.env.TWILIO_ACCOUNT_SID
|
|
38
|
+
username ??
|
|
39
|
+
this.env.TWILIO_ACCOUNT_SID ??
|
|
40
|
+
process.env.TWILIO_ACCOUNT_SID ??
|
|
40
41
|
(() => {
|
|
41
42
|
throw new Error("username is required");
|
|
42
43
|
})();
|
|
43
44
|
this.password =
|
|
44
|
-
password
|
|
45
|
-
this.env.TWILIO_AUTH_TOKEN
|
|
45
|
+
password ??
|
|
46
|
+
this.env.TWILIO_AUTH_TOKEN ??
|
|
47
|
+
process.env.TWILIO_AUTH_TOKEN ??
|
|
46
48
|
(() => {
|
|
47
49
|
throw new Error("password is required");
|
|
48
50
|
})();
|
|
49
51
|
this.accountSid = this.opts.accountSid || this.username;
|
|
50
|
-
this.edge =
|
|
51
|
-
|
|
52
|
-
this.
|
|
52
|
+
this.edge =
|
|
53
|
+
this.opts.edge ?? this.env.TWILIO_EDGE ?? process.env.TWILIO_EDGE;
|
|
54
|
+
this.region =
|
|
55
|
+
this.opts.region ?? this.env.TWILIO_REGION ?? process.env.TWILIO_REGION;
|
|
56
|
+
this.logLevel =
|
|
57
|
+
this.opts.logLevel ??
|
|
58
|
+
this.env.TWILIO_LOG_LEVEL ??
|
|
59
|
+
process.env.TWILIO_LOG_LEVEL;
|
|
53
60
|
this.autoRetry = this.opts.autoRetry || false;
|
|
54
61
|
this.maxRetries = this.opts.maxRetries;
|
|
55
62
|
this.userAgentExtensions = this.opts.userAgentExtensions || [];
|
|
@@ -11,15 +11,15 @@ export interface AnnotationContextUpdateOptions {
|
|
|
11
11
|
answeredBy?: AnnotationAnsweredBy;
|
|
12
12
|
/** */
|
|
13
13
|
connectivityIssue?: AnnotationConnectivityIssue;
|
|
14
|
-
/** Specify if the call had any subjective quality issues. Possible values, one or more of
|
|
14
|
+
/** 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. */
|
|
15
15
|
qualityIssues?: string;
|
|
16
|
-
/**
|
|
16
|
+
/** 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. */
|
|
17
17
|
spam?: boolean;
|
|
18
18
|
/** 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]. */
|
|
19
19
|
callScore?: number;
|
|
20
|
-
/** Specify any comments pertaining to the call.
|
|
20
|
+
/** 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`. */
|
|
21
21
|
comment?: string;
|
|
22
|
-
/** Associate this call with an incident or support ticket.
|
|
22
|
+
/** 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`. */
|
|
23
23
|
incident?: string;
|
|
24
24
|
}
|
|
25
25
|
export interface AnnotationContext {
|
|
@@ -100,23 +100,23 @@ export declare class AnnotationInstance {
|
|
|
100
100
|
answeredBy: AnnotationAnsweredBy;
|
|
101
101
|
connectivityIssue: AnnotationConnectivityIssue;
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
103
|
+
* 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`.
|
|
104
104
|
*/
|
|
105
105
|
qualityIssues: Array<string>;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* 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.
|
|
108
108
|
*/
|
|
109
109
|
spam: boolean;
|
|
110
110
|
/**
|
|
111
|
-
*
|
|
111
|
+
* 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].
|
|
112
112
|
*/
|
|
113
113
|
callScore: number;
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
115
|
+
* Specifies any comments pertaining to the call. Twilio does not treat this field as PII, so no PII should be included in comments.
|
|
116
116
|
*/
|
|
117
117
|
comment: string;
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
119
|
+
* 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`.
|
|
120
120
|
*/
|
|
121
121
|
incident: string;
|
|
122
122
|
/**
|
|
@@ -9,7 +9,7 @@ export type CallSummaryProcessingState = "complete" | "partial";
|
|
|
9
9
|
* Options to pass to fetch a CallSummaryInstance
|
|
10
10
|
*/
|
|
11
11
|
export interface CallSummaryContextFetchOptions {
|
|
12
|
-
/**
|
|
12
|
+
/** The Processing State of this Call Summary. One of `complete`, `partial` or `all`. */
|
|
13
13
|
processingState?: CallSummaryProcessingState;
|
|
14
14
|
}
|
|
15
15
|
export interface CallSummaryContext {
|
|
@@ -83,28 +83,85 @@ export declare class CallSummaryInstance {
|
|
|
83
83
|
protected _solution: CallSummaryContextSolution;
|
|
84
84
|
protected _context?: CallSummaryContext;
|
|
85
85
|
constructor(_version: V1, payload: CallSummaryResource, callSid: string);
|
|
86
|
+
/**
|
|
87
|
+
* The unique SID identifier of the Account.
|
|
88
|
+
*/
|
|
86
89
|
accountSid: string;
|
|
90
|
+
/**
|
|
91
|
+
* The unique SID identifier of the Call.
|
|
92
|
+
*/
|
|
87
93
|
callSid: string;
|
|
88
94
|
callType: CallSummaryCallType;
|
|
89
95
|
callState: CallSummaryCallState;
|
|
90
96
|
answeredBy: CallSummaryAnsweredBy;
|
|
91
97
|
processingState: CallSummaryProcessingState;
|
|
98
|
+
/**
|
|
99
|
+
* 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
|
|
100
|
+
*/
|
|
92
101
|
createdTime: Date;
|
|
102
|
+
/**
|
|
103
|
+
* The time at which the Call was started, given in ISO 8601 format.
|
|
104
|
+
*/
|
|
93
105
|
startTime: Date;
|
|
106
|
+
/**
|
|
107
|
+
* The time at which the Call was ended, given in ISO 8601 format.
|
|
108
|
+
*/
|
|
94
109
|
endTime: Date;
|
|
110
|
+
/**
|
|
111
|
+
* Duration between when the call was initiated and the call was ended
|
|
112
|
+
*/
|
|
95
113
|
duration: number;
|
|
114
|
+
/**
|
|
115
|
+
* Duration between when the call was answered and when it ended
|
|
116
|
+
*/
|
|
96
117
|
connectDuration: number;
|
|
118
|
+
/**
|
|
119
|
+
* The calling party.
|
|
120
|
+
*/
|
|
97
121
|
from: any;
|
|
122
|
+
/**
|
|
123
|
+
* The called party.
|
|
124
|
+
*/
|
|
98
125
|
to: any;
|
|
126
|
+
/**
|
|
127
|
+
* Contains metrics and properties for the Twilio media gateway of a PSTN call.
|
|
128
|
+
*/
|
|
99
129
|
carrierEdge: any;
|
|
130
|
+
/**
|
|
131
|
+
* Contains metrics and properties for the Twilio media gateway of a Client call.
|
|
132
|
+
*/
|
|
100
133
|
clientEdge: any;
|
|
134
|
+
/**
|
|
135
|
+
* Contains metrics and properties for the SDK sensor library for Client calls.
|
|
136
|
+
*/
|
|
101
137
|
sdkEdge: any;
|
|
138
|
+
/**
|
|
139
|
+
* Contains metrics and properties for the Twilio media gateway of a SIP Interface or Trunking call.
|
|
140
|
+
*/
|
|
102
141
|
sipEdge: any;
|
|
142
|
+
/**
|
|
143
|
+
* Tags applied to calls by Voice Insights analysis indicating a condition that could result in subjective degradation of the call quality.
|
|
144
|
+
*/
|
|
103
145
|
tags: Array<string>;
|
|
146
|
+
/**
|
|
147
|
+
* The URL of this resource.
|
|
148
|
+
*/
|
|
104
149
|
url: string;
|
|
150
|
+
/**
|
|
151
|
+
* Attributes capturing call-flow-specific details.
|
|
152
|
+
*/
|
|
105
153
|
attributes: any;
|
|
154
|
+
/**
|
|
155
|
+
* Contains edge-agnostic call-level details.
|
|
156
|
+
*/
|
|
106
157
|
properties: any;
|
|
158
|
+
/**
|
|
159
|
+
* Contains trusted communications details including Branded Call and verified caller ID.
|
|
160
|
+
*/
|
|
107
161
|
trust: any;
|
|
162
|
+
/**
|
|
163
|
+
* 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.
|
|
164
|
+
*/
|
|
108
165
|
annotation: any;
|
|
109
166
|
private get _proxy();
|
|
110
167
|
/**
|
|
@@ -9,7 +9,7 @@ export type EventTwilioEdge = "unknown_edge" | "carrier_edge" | "sip_edge" | "sd
|
|
|
9
9
|
* Options to pass to each
|
|
10
10
|
*/
|
|
11
11
|
export interface EventListInstanceEachOptions {
|
|
12
|
-
/**
|
|
12
|
+
/** The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
|
|
13
13
|
edge?: EventTwilioEdge;
|
|
14
14
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
15
15
|
pageSize?: number;
|
|
@@ -24,7 +24,7 @@ export interface EventListInstanceEachOptions {
|
|
|
24
24
|
* Options to pass to list
|
|
25
25
|
*/
|
|
26
26
|
export interface EventListInstanceOptions {
|
|
27
|
-
/**
|
|
27
|
+
/** The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
|
|
28
28
|
edge?: EventTwilioEdge;
|
|
29
29
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
30
30
|
pageSize?: number;
|
|
@@ -35,7 +35,7 @@ export interface EventListInstanceOptions {
|
|
|
35
35
|
* Options to pass to page
|
|
36
36
|
*/
|
|
37
37
|
export interface EventListInstancePageOptions {
|
|
38
|
-
/**
|
|
38
|
+
/** The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
|
|
39
39
|
edge?: EventTwilioEdge;
|
|
40
40
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
41
41
|
pageSize?: number;
|
|
@@ -127,16 +127,43 @@ interface EventResource {
|
|
|
127
127
|
export declare class EventInstance {
|
|
128
128
|
protected _version: V1;
|
|
129
129
|
constructor(_version: V1, payload: EventResource, callSid: string);
|
|
130
|
+
/**
|
|
131
|
+
* Event time.
|
|
132
|
+
*/
|
|
130
133
|
timestamp: string;
|
|
134
|
+
/**
|
|
135
|
+
* The unique SID identifier of the Call.
|
|
136
|
+
*/
|
|
131
137
|
callSid: string;
|
|
138
|
+
/**
|
|
139
|
+
* The unique SID identifier of the Account.
|
|
140
|
+
*/
|
|
132
141
|
accountSid: string;
|
|
133
142
|
edge: EventTwilioEdge;
|
|
143
|
+
/**
|
|
144
|
+
* Event group.
|
|
145
|
+
*/
|
|
134
146
|
group: string;
|
|
135
147
|
level: EventLevel;
|
|
148
|
+
/**
|
|
149
|
+
* Event name.
|
|
150
|
+
*/
|
|
136
151
|
name: string;
|
|
152
|
+
/**
|
|
153
|
+
* 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.
|
|
154
|
+
*/
|
|
137
155
|
carrierEdge: any;
|
|
156
|
+
/**
|
|
157
|
+
* 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.
|
|
158
|
+
*/
|
|
138
159
|
sipEdge: any;
|
|
160
|
+
/**
|
|
161
|
+
* 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.
|
|
162
|
+
*/
|
|
139
163
|
sdkEdge: any;
|
|
164
|
+
/**
|
|
165
|
+
* Represents the Twilio media gateway for Client calls. The events here describe the call lifecycle as reported by Twilio\'s Voice SDK media gateways.
|
|
166
|
+
*/
|
|
140
167
|
clientEdge: any;
|
|
141
168
|
/**
|
|
142
169
|
* Provide a user-friendly representation
|
|
@@ -9,9 +9,9 @@ export type MetricTwilioEdge = "unknown_edge" | "carrier_edge" | "sip_edge" | "s
|
|
|
9
9
|
* Options to pass to each
|
|
10
10
|
*/
|
|
11
11
|
export interface MetricListInstanceEachOptions {
|
|
12
|
-
/**
|
|
12
|
+
/** The Edge of this Metric. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
|
|
13
13
|
edge?: MetricTwilioEdge;
|
|
14
|
-
/**
|
|
14
|
+
/** The Direction of this Metric. One of `unknown`, `inbound`, `outbound` or `both`. */
|
|
15
15
|
direction?: MetricStreamDirection;
|
|
16
16
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
17
17
|
pageSize?: number;
|
|
@@ -26,9 +26,9 @@ export interface MetricListInstanceEachOptions {
|
|
|
26
26
|
* Options to pass to list
|
|
27
27
|
*/
|
|
28
28
|
export interface MetricListInstanceOptions {
|
|
29
|
-
/**
|
|
29
|
+
/** The Edge of this Metric. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
|
|
30
30
|
edge?: MetricTwilioEdge;
|
|
31
|
-
/**
|
|
31
|
+
/** The Direction of this Metric. One of `unknown`, `inbound`, `outbound` or `both`. */
|
|
32
32
|
direction?: MetricStreamDirection;
|
|
33
33
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
34
34
|
pageSize?: number;
|
|
@@ -39,9 +39,9 @@ export interface MetricListInstanceOptions {
|
|
|
39
39
|
* Options to pass to page
|
|
40
40
|
*/
|
|
41
41
|
export interface MetricListInstancePageOptions {
|
|
42
|
-
/**
|
|
42
|
+
/** The Edge of this Metric. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
|
|
43
43
|
edge?: MetricTwilioEdge;
|
|
44
|
-
/**
|
|
44
|
+
/** The Direction of this Metric. One of `unknown`, `inbound`, `outbound` or `both`. */
|
|
45
45
|
direction?: MetricStreamDirection;
|
|
46
46
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
47
47
|
pageSize?: number;
|
|
@@ -131,14 +131,35 @@ interface MetricResource {
|
|
|
131
131
|
export declare class MetricInstance {
|
|
132
132
|
protected _version: V1;
|
|
133
133
|
constructor(_version: V1, payload: MetricResource, callSid: string);
|
|
134
|
+
/**
|
|
135
|
+
* Timestamp of metric sample. Samples are taken every 10 seconds and contain the metrics for the previous 10 seconds.
|
|
136
|
+
*/
|
|
134
137
|
timestamp: string;
|
|
138
|
+
/**
|
|
139
|
+
* The unique SID identifier of the Call.
|
|
140
|
+
*/
|
|
135
141
|
callSid: string;
|
|
142
|
+
/**
|
|
143
|
+
* The unique SID identifier of the Account.
|
|
144
|
+
*/
|
|
136
145
|
accountSid: string;
|
|
137
146
|
edge: MetricTwilioEdge;
|
|
138
147
|
direction: MetricStreamDirection;
|
|
148
|
+
/**
|
|
149
|
+
* Contains metrics and properties for the Twilio media gateway of a PSTN call.
|
|
150
|
+
*/
|
|
139
151
|
carrierEdge: any;
|
|
152
|
+
/**
|
|
153
|
+
* Contains metrics and properties for the Twilio media gateway of a SIP Interface or Trunking call.
|
|
154
|
+
*/
|
|
140
155
|
sipEdge: any;
|
|
156
|
+
/**
|
|
157
|
+
* Contains metrics and properties for the SDK sensor library for Client calls.
|
|
158
|
+
*/
|
|
141
159
|
sdkEdge: any;
|
|
160
|
+
/**
|
|
161
|
+
* Contains metrics and properties for the Twilio media gateway of a Client call.
|
|
162
|
+
*/
|
|
142
163
|
clientEdge: any;
|
|
143
164
|
/**
|
|
144
165
|
* Provide a user-friendly representation
|
|
@@ -13,51 +13,51 @@ export type CallSummariesSortBy = "start_time" | "end_time";
|
|
|
13
13
|
* Options to pass to each
|
|
14
14
|
*/
|
|
15
15
|
export interface CallSummariesListInstanceEachOptions {
|
|
16
|
-
/**
|
|
16
|
+
/** A calling party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name. */
|
|
17
17
|
from?: string;
|
|
18
|
-
/**
|
|
18
|
+
/** A called party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name. */
|
|
19
19
|
to?: string;
|
|
20
|
-
/**
|
|
20
|
+
/** An origination carrier. */
|
|
21
21
|
fromCarrier?: string;
|
|
22
|
-
/**
|
|
22
|
+
/** A destination carrier. */
|
|
23
23
|
toCarrier?: string;
|
|
24
|
-
/**
|
|
24
|
+
/** A source country code based on phone number in From. */
|
|
25
25
|
fromCountryCode?: string;
|
|
26
|
-
/**
|
|
26
|
+
/** A destination country code. Based on phone number in To. */
|
|
27
27
|
toCountryCode?: string;
|
|
28
|
-
/**
|
|
28
|
+
/** A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. */
|
|
29
29
|
branded?: boolean;
|
|
30
|
-
/**
|
|
30
|
+
/** A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR. */
|
|
31
31
|
verifiedCaller?: boolean;
|
|
32
|
-
/**
|
|
32
|
+
/** A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags). */
|
|
33
33
|
hasTag?: boolean;
|
|
34
|
-
/**
|
|
34
|
+
/** A Start time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 4h. */
|
|
35
35
|
startTime?: string;
|
|
36
|
-
/**
|
|
36
|
+
/** An End Time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 0m. */
|
|
37
37
|
endTime?: string;
|
|
38
|
-
/**
|
|
38
|
+
/** A Call Type of the calls. One of `carrier`, `sip`, `trunking` or `client`. */
|
|
39
39
|
callType?: string;
|
|
40
|
-
/**
|
|
40
|
+
/** A Call State of the calls. One of `ringing`, `completed`, `busy`, `fail`, `noanswer`, `canceled`, `answered`, `undialed`. */
|
|
41
41
|
callState?: string;
|
|
42
|
-
/**
|
|
42
|
+
/** A Direction of the calls. One of `outbound_api`, `outbound_dial`, `inbound`, `trunking_originating`, `trunking_terminating`. */
|
|
43
43
|
direction?: string;
|
|
44
|
-
/**
|
|
44
|
+
/** A Processing State of the Call Summaries. One of `completed`, `partial` or `all`. */
|
|
45
45
|
processingState?: CallSummariesProcessingStateRequest;
|
|
46
|
-
/**
|
|
46
|
+
/** A Sort By criterion for the returned list of Call Summaries. One of `start_time` or `end_time`. */
|
|
47
47
|
sortBy?: CallSummariesSortBy;
|
|
48
|
-
/**
|
|
48
|
+
/** A unique SID identifier of a Subaccount. */
|
|
49
49
|
subaccount?: string;
|
|
50
|
-
/**
|
|
50
|
+
/** A boolean flag indicating an abnormal session where the last SIP response was not 200 OK. */
|
|
51
51
|
abnormalSession?: boolean;
|
|
52
|
-
/**
|
|
52
|
+
/** 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`. */
|
|
53
53
|
answeredBy?: CallSummariesAnsweredBy;
|
|
54
|
-
/**
|
|
54
|
+
/** A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`. */
|
|
55
55
|
connectivityIssue?: string;
|
|
56
|
-
/**
|
|
56
|
+
/** A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. */
|
|
57
57
|
qualityIssue?: string;
|
|
58
|
-
/**
|
|
58
|
+
/** A boolean flag indicating spam calls. */
|
|
59
59
|
spam?: boolean;
|
|
60
|
-
/**
|
|
60
|
+
/** 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]. */
|
|
61
61
|
callScore?: string;
|
|
62
62
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
63
63
|
pageSize?: number;
|
|
@@ -72,51 +72,51 @@ export interface CallSummariesListInstanceEachOptions {
|
|
|
72
72
|
* Options to pass to list
|
|
73
73
|
*/
|
|
74
74
|
export interface CallSummariesListInstanceOptions {
|
|
75
|
-
/**
|
|
75
|
+
/** A calling party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name. */
|
|
76
76
|
from?: string;
|
|
77
|
-
/**
|
|
77
|
+
/** A called party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name. */
|
|
78
78
|
to?: string;
|
|
79
|
-
/**
|
|
79
|
+
/** An origination carrier. */
|
|
80
80
|
fromCarrier?: string;
|
|
81
|
-
/**
|
|
81
|
+
/** A destination carrier. */
|
|
82
82
|
toCarrier?: string;
|
|
83
|
-
/**
|
|
83
|
+
/** A source country code based on phone number in From. */
|
|
84
84
|
fromCountryCode?: string;
|
|
85
|
-
/**
|
|
85
|
+
/** A destination country code. Based on phone number in To. */
|
|
86
86
|
toCountryCode?: string;
|
|
87
|
-
/**
|
|
87
|
+
/** A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. */
|
|
88
88
|
branded?: boolean;
|
|
89
|
-
/**
|
|
89
|
+
/** A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR. */
|
|
90
90
|
verifiedCaller?: boolean;
|
|
91
|
-
/**
|
|
91
|
+
/** A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags). */
|
|
92
92
|
hasTag?: boolean;
|
|
93
|
-
/**
|
|
93
|
+
/** A Start time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 4h. */
|
|
94
94
|
startTime?: string;
|
|
95
|
-
/**
|
|
95
|
+
/** An End Time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 0m. */
|
|
96
96
|
endTime?: string;
|
|
97
|
-
/**
|
|
97
|
+
/** A Call Type of the calls. One of `carrier`, `sip`, `trunking` or `client`. */
|
|
98
98
|
callType?: string;
|
|
99
|
-
/**
|
|
99
|
+
/** A Call State of the calls. One of `ringing`, `completed`, `busy`, `fail`, `noanswer`, `canceled`, `answered`, `undialed`. */
|
|
100
100
|
callState?: string;
|
|
101
|
-
/**
|
|
101
|
+
/** A Direction of the calls. One of `outbound_api`, `outbound_dial`, `inbound`, `trunking_originating`, `trunking_terminating`. */
|
|
102
102
|
direction?: string;
|
|
103
|
-
/**
|
|
103
|
+
/** A Processing State of the Call Summaries. One of `completed`, `partial` or `all`. */
|
|
104
104
|
processingState?: CallSummariesProcessingStateRequest;
|
|
105
|
-
/**
|
|
105
|
+
/** A Sort By criterion for the returned list of Call Summaries. One of `start_time` or `end_time`. */
|
|
106
106
|
sortBy?: CallSummariesSortBy;
|
|
107
|
-
/**
|
|
107
|
+
/** A unique SID identifier of a Subaccount. */
|
|
108
108
|
subaccount?: string;
|
|
109
|
-
/**
|
|
109
|
+
/** A boolean flag indicating an abnormal session where the last SIP response was not 200 OK. */
|
|
110
110
|
abnormalSession?: boolean;
|
|
111
|
-
/**
|
|
111
|
+
/** 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`. */
|
|
112
112
|
answeredBy?: CallSummariesAnsweredBy;
|
|
113
|
-
/**
|
|
113
|
+
/** A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`. */
|
|
114
114
|
connectivityIssue?: string;
|
|
115
|
-
/**
|
|
115
|
+
/** A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. */
|
|
116
116
|
qualityIssue?: string;
|
|
117
|
-
/**
|
|
117
|
+
/** A boolean flag indicating spam calls. */
|
|
118
118
|
spam?: boolean;
|
|
119
|
-
/**
|
|
119
|
+
/** 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]. */
|
|
120
120
|
callScore?: string;
|
|
121
121
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
122
122
|
pageSize?: number;
|
|
@@ -127,51 +127,51 @@ export interface CallSummariesListInstanceOptions {
|
|
|
127
127
|
* Options to pass to page
|
|
128
128
|
*/
|
|
129
129
|
export interface CallSummariesListInstancePageOptions {
|
|
130
|
-
/**
|
|
130
|
+
/** A calling party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name. */
|
|
131
131
|
from?: string;
|
|
132
|
-
/**
|
|
132
|
+
/** A called party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name. */
|
|
133
133
|
to?: string;
|
|
134
|
-
/**
|
|
134
|
+
/** An origination carrier. */
|
|
135
135
|
fromCarrier?: string;
|
|
136
|
-
/**
|
|
136
|
+
/** A destination carrier. */
|
|
137
137
|
toCarrier?: string;
|
|
138
|
-
/**
|
|
138
|
+
/** A source country code based on phone number in From. */
|
|
139
139
|
fromCountryCode?: string;
|
|
140
|
-
/**
|
|
140
|
+
/** A destination country code. Based on phone number in To. */
|
|
141
141
|
toCountryCode?: string;
|
|
142
|
-
/**
|
|
142
|
+
/** A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. */
|
|
143
143
|
branded?: boolean;
|
|
144
|
-
/**
|
|
144
|
+
/** A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR. */
|
|
145
145
|
verifiedCaller?: boolean;
|
|
146
|
-
/**
|
|
146
|
+
/** A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags). */
|
|
147
147
|
hasTag?: boolean;
|
|
148
|
-
/**
|
|
148
|
+
/** A Start time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 4h. */
|
|
149
149
|
startTime?: string;
|
|
150
|
-
/**
|
|
150
|
+
/** An End Time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 0m. */
|
|
151
151
|
endTime?: string;
|
|
152
|
-
/**
|
|
152
|
+
/** A Call Type of the calls. One of `carrier`, `sip`, `trunking` or `client`. */
|
|
153
153
|
callType?: string;
|
|
154
|
-
/**
|
|
154
|
+
/** A Call State of the calls. One of `ringing`, `completed`, `busy`, `fail`, `noanswer`, `canceled`, `answered`, `undialed`. */
|
|
155
155
|
callState?: string;
|
|
156
|
-
/**
|
|
156
|
+
/** A Direction of the calls. One of `outbound_api`, `outbound_dial`, `inbound`, `trunking_originating`, `trunking_terminating`. */
|
|
157
157
|
direction?: string;
|
|
158
|
-
/**
|
|
158
|
+
/** A Processing State of the Call Summaries. One of `completed`, `partial` or `all`. */
|
|
159
159
|
processingState?: CallSummariesProcessingStateRequest;
|
|
160
|
-
/**
|
|
160
|
+
/** A Sort By criterion for the returned list of Call Summaries. One of `start_time` or `end_time`. */
|
|
161
161
|
sortBy?: CallSummariesSortBy;
|
|
162
|
-
/**
|
|
162
|
+
/** A unique SID identifier of a Subaccount. */
|
|
163
163
|
subaccount?: string;
|
|
164
|
-
/**
|
|
164
|
+
/** A boolean flag indicating an abnormal session where the last SIP response was not 200 OK. */
|
|
165
165
|
abnormalSession?: boolean;
|
|
166
|
-
/**
|
|
166
|
+
/** 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`. */
|
|
167
167
|
answeredBy?: CallSummariesAnsweredBy;
|
|
168
|
-
/**
|
|
168
|
+
/** A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`. */
|
|
169
169
|
connectivityIssue?: string;
|
|
170
|
-
/**
|
|
170
|
+
/** A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. */
|
|
171
171
|
qualityIssue?: string;
|
|
172
|
-
/**
|
|
172
|
+
/** A boolean flag indicating spam calls. */
|
|
173
173
|
spam?: boolean;
|
|
174
|
-
/**
|
|
174
|
+
/** 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]. */
|
|
175
175
|
callScore?: string;
|
|
176
176
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
177
177
|
pageSize?: number;
|
|
@@ -274,27 +274,81 @@ interface CallSummariesResource {
|
|
|
274
274
|
export declare class CallSummariesInstance {
|
|
275
275
|
protected _version: V1;
|
|
276
276
|
constructor(_version: V1, payload: CallSummariesResource);
|
|
277
|
+
/**
|
|
278
|
+
* The unique SID identifier of the Account.
|
|
279
|
+
*/
|
|
277
280
|
accountSid: string;
|
|
281
|
+
/**
|
|
282
|
+
* The unique SID identifier of the Call.
|
|
283
|
+
*/
|
|
278
284
|
callSid: string;
|
|
279
285
|
answeredBy: CallSummariesAnsweredBy;
|
|
280
286
|
callType: CallSummariesCallType;
|
|
281
287
|
callState: CallSummariesCallState;
|
|
282
288
|
processingState: CallSummariesProcessingState;
|
|
289
|
+
/**
|
|
290
|
+
* 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
|
|
291
|
+
*/
|
|
283
292
|
createdTime: Date;
|
|
293
|
+
/**
|
|
294
|
+
* The time at which the Call was started, given in ISO 8601 format.
|
|
295
|
+
*/
|
|
284
296
|
startTime: Date;
|
|
297
|
+
/**
|
|
298
|
+
* The time at which the Call was ended, given in ISO 8601 format.
|
|
299
|
+
*/
|
|
285
300
|
endTime: Date;
|
|
301
|
+
/**
|
|
302
|
+
* Duration between when the call was initiated and the call was ended
|
|
303
|
+
*/
|
|
286
304
|
duration: number;
|
|
305
|
+
/**
|
|
306
|
+
* Duration between when the call was answered and when it ended
|
|
307
|
+
*/
|
|
287
308
|
connectDuration: number;
|
|
309
|
+
/**
|
|
310
|
+
* The calling party.
|
|
311
|
+
*/
|
|
288
312
|
from: any;
|
|
313
|
+
/**
|
|
314
|
+
* The called party.
|
|
315
|
+
*/
|
|
289
316
|
to: any;
|
|
317
|
+
/**
|
|
318
|
+
* Contains metrics and properties for the Twilio media gateway of a PSTN call.
|
|
319
|
+
*/
|
|
290
320
|
carrierEdge: any;
|
|
321
|
+
/**
|
|
322
|
+
* Contains metrics and properties for the Twilio media gateway of a Client call.
|
|
323
|
+
*/
|
|
291
324
|
clientEdge: any;
|
|
325
|
+
/**
|
|
326
|
+
* Contains metrics and properties for the SDK sensor library for Client calls.
|
|
327
|
+
*/
|
|
292
328
|
sdkEdge: any;
|
|
329
|
+
/**
|
|
330
|
+
* Contains metrics and properties for the Twilio media gateway of a SIP Interface or Trunking call.
|
|
331
|
+
*/
|
|
293
332
|
sipEdge: any;
|
|
333
|
+
/**
|
|
334
|
+
* Tags applied to calls by Voice Insights analysis indicating a condition that could result in subjective degradation of the call quality.
|
|
335
|
+
*/
|
|
294
336
|
tags: Array<string>;
|
|
337
|
+
/**
|
|
338
|
+
* The URL of this resource.
|
|
339
|
+
*/
|
|
295
340
|
url: string;
|
|
341
|
+
/**
|
|
342
|
+
* Attributes capturing call-flow-specific details.
|
|
343
|
+
*/
|
|
296
344
|
attributes: any;
|
|
345
|
+
/**
|
|
346
|
+
* Contains edge-agnostic call-level details.
|
|
347
|
+
*/
|
|
297
348
|
properties: any;
|
|
349
|
+
/**
|
|
350
|
+
* Contains trusted communications details including Branded Call and verified caller ID.
|
|
351
|
+
*/
|
|
298
352
|
trust: any;
|
|
299
353
|
annotation: any;
|
|
300
354
|
/**
|