twilio 5.13.0 → 6.0.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/README.md +2 -4
- package/lib/rest/InsightsBase.d.ts +3 -0
- package/lib/rest/InsightsBase.js +5 -0
- package/lib/rest/MessagingBase.d.ts +3 -0
- package/lib/rest/MessagingBase.js +5 -0
- package/lib/rest/api/v2010/account/call/transcription.d.ts +2 -0
- package/lib/rest/api/v2010/account/call/transcription.js +4 -0
- package/lib/rest/api/v2010/account/message.d.ts +2 -0
- package/lib/rest/api/v2010/account/message.js +4 -0
- package/lib/rest/flexApi/V1.d.ts +0 -5
- package/lib/rest/flexApi/V1.js +0 -7
- package/lib/rest/iam/V1.d.ts +3 -0
- package/lib/rest/iam/V1.js +5 -0
- package/lib/rest/iam/v1/rolePermission.d.ts +225 -0
- package/lib/rest/iam/v1/rolePermission.js +181 -0
- package/lib/rest/insights/V2.d.ts +21 -0
- package/lib/rest/insights/V2.js +46 -0
- package/lib/rest/insights/v2/inbound.d.ts +436 -0
- package/lib/rest/insights/v2/inbound.js +342 -0
- package/lib/rest/insights/v2/outbound.d.ts +529 -0
- package/lib/rest/insights/v2/outbound.js +392 -0
- package/lib/rest/insights/v2/report.d.ts +783 -0
- package/lib/rest/insights/v2/report.js +550 -0
- package/lib/rest/messaging/V3.d.ts +15 -0
- package/lib/rest/messaging/V3.js +37 -0
- package/lib/rest/messaging/v2/channelsSender.d.ts +4 -0
- package/lib/rest/messaging/v2/channelsSender.js +1 -0
- package/lib/rest/messaging/v3/typingIndicator.d.ts +90 -0
- package/lib/rest/messaging/v3/typingIndicator.js +114 -0
- package/lib/rest/numbers/V1.d.ts +8 -0
- package/lib/rest/numbers/V1.js +12 -0
- package/lib/rest/numbers/v1/embeddedSession.d.ts +84 -0
- package/lib/rest/numbers/v1/embeddedSession.js +115 -0
- package/lib/rest/numbers/v1/senderIdRegistration.d.ts +181 -0
- package/lib/rest/numbers/v1/senderIdRegistration.js +146 -0
- package/lib/rest/numbers/v2/application.d.ts +191 -4
- package/lib/rest/numbers/v2/application.js +176 -3
- package/lib/rest/numbers/v3/hostedNumberOrder.d.ts +1 -1
- package/lib/rest/numbers/v3/hostedNumberOrder.js +2 -1
- package/lib/rest/previewIam/versionless/organization/user.d.ts +65 -0
- package/lib/rest/previewIam/versionless/organization/user.js +72 -1
- package/lib/rest/studio/v2/flow/execution.d.ts +24 -0
- package/lib/rest/studio/v2/flow/execution.js +10 -0
- package/lib/rest/studio/v2/flow/flowRevision.d.ts +6 -0
- package/lib/rest/studio/v2/flow/flowRevision.js +2 -0
- package/lib/rest/studio/v2/flow.d.ts +6 -0
- package/lib/rest/studio/v2/flow.js +2 -0
- package/lib/rest/verify/v2/service/approveChallenge.d.ts +6 -6
- package/lib/rest/verify/v2/service/approveChallenge.js +2 -2
- package/lib/rest/verify/v2/service/newChallenge.d.ts +6 -6
- package/lib/rest/verify/v2/service/newChallenge.js +2 -2
- package/lib/rest/verify/v2/service/verification.d.ts +2 -2
- package/lib/rest/video/v1/room.d.ts +4 -1
- package/lib/twiml/VoiceResponse.d.ts +10 -0
- package/package.json +2 -2
- package/lib/rest/flexApi/v1/createFlexInstance.d.ts +0 -165
- package/lib/rest/flexApi/v1/createFlexInstance.js +0 -165
|
@@ -0,0 +1,529 @@
|
|
|
1
|
+
import { inspect, InspectOptions } from "util";
|
|
2
|
+
import Page, { TwilioResponsePayload } from "../../../base/Page";
|
|
3
|
+
import Response from "../../../http/response";
|
|
4
|
+
import V2 from "../V2";
|
|
5
|
+
import { ApiResponse } from "../../../base/ApiResponse";
|
|
6
|
+
export declare class CountyCarrierValue {
|
|
7
|
+
"country"?: string;
|
|
8
|
+
"carriers"?: Array<CountyCarrierValueCarriers>;
|
|
9
|
+
constructor(payload: any);
|
|
10
|
+
}
|
|
11
|
+
export declare class CountyCarrierValueCarriers {
|
|
12
|
+
/**
|
|
13
|
+
* The name of the carrier.
|
|
14
|
+
*/
|
|
15
|
+
"carrier"?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Total number of outbound calls for the carrier in the country.
|
|
18
|
+
*/
|
|
19
|
+
"totalCalls"?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Total number of blocked outbound calls for the carrier in the country.
|
|
22
|
+
*/
|
|
23
|
+
"blockedCalls"?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Percentage of blocked outbound calls for the carrier in the country.
|
|
26
|
+
*/
|
|
27
|
+
"blockedCallsPercentage"?: number;
|
|
28
|
+
constructor(payload: any);
|
|
29
|
+
}
|
|
30
|
+
export declare class InsightsV2CreatePhoneNumbersReportRequest {
|
|
31
|
+
"timeRange"?: InsightsV2CreatePhoneNumbersReportRequestTimeRange;
|
|
32
|
+
"filters"?: Array<PhoneNumberReportFilter>;
|
|
33
|
+
/**
|
|
34
|
+
* The number of max available top Phone Numbers to generate.
|
|
35
|
+
*/
|
|
36
|
+
"size"?: number;
|
|
37
|
+
constructor(payload: any);
|
|
38
|
+
}
|
|
39
|
+
export declare class InsightsV2CreatePhoneNumbersReportRequestTimeRange {
|
|
40
|
+
/**
|
|
41
|
+
* Start date time of the report
|
|
42
|
+
*/
|
|
43
|
+
"startDatetime"?: Date;
|
|
44
|
+
/**
|
|
45
|
+
* End date time of the report
|
|
46
|
+
*/
|
|
47
|
+
"endDatetime"?: Date;
|
|
48
|
+
constructor(payload: any);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Percentage of calls made in each state.
|
|
52
|
+
*/
|
|
53
|
+
export declare class InsightsV2InboundPhoneNumberReportCallStatePercentage {
|
|
54
|
+
/**
|
|
55
|
+
* Percentage of completed inbound calls.
|
|
56
|
+
*/
|
|
57
|
+
"completed"?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Percentage of failed inbound calls.
|
|
60
|
+
*/
|
|
61
|
+
"fail"?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Percentage of busy inbound calls.
|
|
64
|
+
*/
|
|
65
|
+
"busy"?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Percentage of no-answer inbound calls.
|
|
68
|
+
*/
|
|
69
|
+
"noanswer"?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Percentage of canceled inbound calls.
|
|
72
|
+
*/
|
|
73
|
+
"canceled"?: number;
|
|
74
|
+
constructor(payload: any);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Number of calls made in answering machine detection (AMD) enabled.
|
|
78
|
+
*/
|
|
79
|
+
export declare class InsightsV2OutboundPhoneNumberReportAnsweringMachineDetection {
|
|
80
|
+
/**
|
|
81
|
+
* Total number of calls with answering machine detection (AMD) enabled.
|
|
82
|
+
*/
|
|
83
|
+
"totalCalls"?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Percentage of calls marked as answered by human.
|
|
86
|
+
*/
|
|
87
|
+
"answeredByHumanPercentage"?: number;
|
|
88
|
+
/**
|
|
89
|
+
* Percentage of calls marked as answered by machined related like the following: `machine_start`, `machine_end_beep`, `machine_end_silence`, `machine_end_other`, `fax`
|
|
90
|
+
*/
|
|
91
|
+
"answeredByMachinePercentage"?: number;
|
|
92
|
+
constructor(payload: any);
|
|
93
|
+
}
|
|
94
|
+
export declare class PhoneNumberReportFilter {
|
|
95
|
+
/**
|
|
96
|
+
* The name of the filter
|
|
97
|
+
*/
|
|
98
|
+
"key"?: string;
|
|
99
|
+
/**
|
|
100
|
+
* List of supported filter values for the field name
|
|
101
|
+
*/
|
|
102
|
+
"values"?: Array<string>;
|
|
103
|
+
constructor(payload: any);
|
|
104
|
+
}
|
|
105
|
+
export declare class ReportFilter {
|
|
106
|
+
/**
|
|
107
|
+
* The name of the filter \'call_state\', \'call_direction\', \'call_type\', \'twilio_regions\', \'caller_country_code\', \'callee_country_code\', \'silent\'
|
|
108
|
+
*/
|
|
109
|
+
"key"?: string;
|
|
110
|
+
/**
|
|
111
|
+
* List of supported filter values for the field name
|
|
112
|
+
*/
|
|
113
|
+
"values"?: Array<string>;
|
|
114
|
+
constructor(payload: any);
|
|
115
|
+
}
|
|
116
|
+
export declare class ReportMetadata {
|
|
117
|
+
/**
|
|
118
|
+
* Start date time of the report
|
|
119
|
+
*/
|
|
120
|
+
"startDatetime"?: Date;
|
|
121
|
+
/**
|
|
122
|
+
* End date time of the report
|
|
123
|
+
*/
|
|
124
|
+
"endDatetime"?: Date;
|
|
125
|
+
/**
|
|
126
|
+
* Filter values applied to the report
|
|
127
|
+
*/
|
|
128
|
+
"filters"?: Array<ReportFilter>;
|
|
129
|
+
constructor(payload: any);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* The status of the report.
|
|
133
|
+
*/
|
|
134
|
+
export type ReportStatus = "created" | "running" | "completed";
|
|
135
|
+
/**
|
|
136
|
+
* Options to pass to create a OutboundInstance
|
|
137
|
+
*/
|
|
138
|
+
export interface OutboundContextCreateOptions {
|
|
139
|
+
/** */
|
|
140
|
+
insightsV2CreatePhoneNumbersReportRequest?: InsightsV2CreatePhoneNumbersReportRequest;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Options to pass to each
|
|
144
|
+
*/
|
|
145
|
+
export interface OutboundListInstanceEachOptions {
|
|
146
|
+
/** How many resources to return in each list page. */
|
|
147
|
+
pageSize?: number;
|
|
148
|
+
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
149
|
+
callback?: (item: OutboundInstance, done: (err?: Error) => void) => void;
|
|
150
|
+
/** Function to be called upon completion of streaming */
|
|
151
|
+
done?: Function;
|
|
152
|
+
/** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
|
|
153
|
+
limit?: number;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Options to pass to list
|
|
157
|
+
*/
|
|
158
|
+
export interface OutboundListInstanceOptions {
|
|
159
|
+
/** How many resources to return in each list page. */
|
|
160
|
+
pageSize?: number;
|
|
161
|
+
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
162
|
+
limit?: number;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Options to pass to page
|
|
166
|
+
*/
|
|
167
|
+
export interface OutboundListInstancePageOptions {
|
|
168
|
+
/** How many resources to return in each list page. */
|
|
169
|
+
pageSize?: number;
|
|
170
|
+
/** Page Number, this value is simply for client state */
|
|
171
|
+
pageNumber?: number;
|
|
172
|
+
/** PageToken provided by the API */
|
|
173
|
+
pageToken?: string;
|
|
174
|
+
}
|
|
175
|
+
export interface OutboundContext {
|
|
176
|
+
/**
|
|
177
|
+
* Create a OutboundInstance
|
|
178
|
+
*
|
|
179
|
+
* @param callback - Callback to handle processed record
|
|
180
|
+
*
|
|
181
|
+
* @returns Resolves to processed OutboundInstance
|
|
182
|
+
*/
|
|
183
|
+
create(callback?: (error: Error | null, item?: OutboundInstance) => any): Promise<OutboundInstance>;
|
|
184
|
+
/**
|
|
185
|
+
* Create a OutboundInstance
|
|
186
|
+
*
|
|
187
|
+
* @param params - Body for request
|
|
188
|
+
* @param headers - header params for request
|
|
189
|
+
* @param callback - Callback to handle processed record
|
|
190
|
+
*
|
|
191
|
+
* @returns Resolves to processed OutboundInstance
|
|
192
|
+
*/
|
|
193
|
+
create(params: InsightsV2CreatePhoneNumbersReportRequest, headers?: any, callback?: (error: Error | null, item?: OutboundInstance) => any): Promise<OutboundInstance>;
|
|
194
|
+
/**
|
|
195
|
+
* Create a OutboundInstance and return HTTP info
|
|
196
|
+
*
|
|
197
|
+
* @param callback - Callback to handle processed record
|
|
198
|
+
*
|
|
199
|
+
* @returns Resolves to processed OutboundInstance with HTTP metadata
|
|
200
|
+
*/
|
|
201
|
+
createWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<OutboundInstance>) => any): Promise<ApiResponse<OutboundInstance>>;
|
|
202
|
+
/**
|
|
203
|
+
* Create a OutboundInstance and return HTTP info
|
|
204
|
+
*
|
|
205
|
+
* @param params - Body for request
|
|
206
|
+
* @param headers - header params for request
|
|
207
|
+
* @param callback - Callback to handle processed record
|
|
208
|
+
*
|
|
209
|
+
* @returns Resolves to processed OutboundInstance with HTTP metadata
|
|
210
|
+
*/
|
|
211
|
+
createWithHttpInfo(params: InsightsV2CreatePhoneNumbersReportRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<OutboundInstance>) => any): Promise<ApiResponse<OutboundInstance>>;
|
|
212
|
+
/**
|
|
213
|
+
* Provide a user-friendly representation
|
|
214
|
+
*/
|
|
215
|
+
toJSON(): any;
|
|
216
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
217
|
+
}
|
|
218
|
+
export interface OutboundContextSolution {
|
|
219
|
+
reportId: string;
|
|
220
|
+
}
|
|
221
|
+
export declare class OutboundContextImpl implements OutboundContext {
|
|
222
|
+
protected _version: V2;
|
|
223
|
+
protected _solution: OutboundContextSolution;
|
|
224
|
+
protected _uri: string;
|
|
225
|
+
constructor(_version: V2, reportId: string);
|
|
226
|
+
create(params?: InsightsV2CreatePhoneNumbersReportRequest | ((error: Error | null, item?: OutboundInstance) => any), headers?: any, callback?: (error: Error | null, item?: OutboundInstance) => any): Promise<OutboundInstance>;
|
|
227
|
+
createWithHttpInfo(params?: InsightsV2CreatePhoneNumbersReportRequest | ((error: Error | null, item?: ApiResponse<OutboundInstance>) => any), headers?: any, callback?: (error: Error | null, item?: ApiResponse<OutboundInstance>) => any): Promise<ApiResponse<OutboundInstance>>;
|
|
228
|
+
/**
|
|
229
|
+
* Provide a user-friendly representation
|
|
230
|
+
*
|
|
231
|
+
* @returns Object
|
|
232
|
+
*/
|
|
233
|
+
toJSON(): OutboundContextSolution;
|
|
234
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
235
|
+
}
|
|
236
|
+
interface OutboundPayload extends TwilioResponsePayload {
|
|
237
|
+
reports: OutboundResource[];
|
|
238
|
+
}
|
|
239
|
+
interface OutboundResource {
|
|
240
|
+
account_sid: string;
|
|
241
|
+
report_id: string;
|
|
242
|
+
status: ReportStatus;
|
|
243
|
+
request_meta: ReportMetadata;
|
|
244
|
+
url: string;
|
|
245
|
+
handle: string;
|
|
246
|
+
total_calls: number;
|
|
247
|
+
call_answer_score: number;
|
|
248
|
+
call_state_percentage: InsightsV2InboundPhoneNumberReportCallStatePercentage;
|
|
249
|
+
silent_calls_percentage: number;
|
|
250
|
+
calls_by_device_type: {
|
|
251
|
+
[key: string]: number;
|
|
252
|
+
};
|
|
253
|
+
answer_rate_device_type: {
|
|
254
|
+
[key: string]: number;
|
|
255
|
+
};
|
|
256
|
+
blocked_calls_by_carrier: Array<CountyCarrierValue>;
|
|
257
|
+
short_duration_calls_percentage: number;
|
|
258
|
+
long_duration_calls_percentage: number;
|
|
259
|
+
potential_robocalls_percentage: number;
|
|
260
|
+
answering_machine_detection: InsightsV2OutboundPhoneNumberReportAnsweringMachineDetection;
|
|
261
|
+
}
|
|
262
|
+
export declare class OutboundInstance {
|
|
263
|
+
protected _version: V2;
|
|
264
|
+
protected _solution: OutboundContextSolution;
|
|
265
|
+
protected _context?: OutboundContext;
|
|
266
|
+
constructor(_version: V2, payload: OutboundResource, reportId?: string);
|
|
267
|
+
/**
|
|
268
|
+
* The unique SID identifier of the Account.
|
|
269
|
+
*/
|
|
270
|
+
accountSid: string;
|
|
271
|
+
/**
|
|
272
|
+
* The report identifier as Voice Insights Report TTID.
|
|
273
|
+
*/
|
|
274
|
+
reportId: string;
|
|
275
|
+
status: ReportStatus;
|
|
276
|
+
requestMeta: ReportMetadata;
|
|
277
|
+
/**
|
|
278
|
+
* The URL of this resource.
|
|
279
|
+
*/
|
|
280
|
+
url: string;
|
|
281
|
+
/**
|
|
282
|
+
* Inbound phone number handle represented in the report.
|
|
283
|
+
*/
|
|
284
|
+
handle: string;
|
|
285
|
+
/**
|
|
286
|
+
* Total number of calls made with the given handle during the report period.
|
|
287
|
+
*/
|
|
288
|
+
totalCalls: number;
|
|
289
|
+
/**
|
|
290
|
+
* The call answer score measures customers behavior to the delivered calls. The score is a value between 0 and 100, where 100 indicates that all calls were successfully answered.
|
|
291
|
+
*/
|
|
292
|
+
callAnswerScore: number;
|
|
293
|
+
callStatePercentage: InsightsV2InboundPhoneNumberReportCallStatePercentage;
|
|
294
|
+
/**
|
|
295
|
+
* Percentage of inbound calls with silence tags over total outbound calls. A silent tag is indicative of a connectivity issue or muted audio.
|
|
296
|
+
*/
|
|
297
|
+
silentCallsPercentage: number;
|
|
298
|
+
/**
|
|
299
|
+
* Number of calls made with each device type. `voip`, `mobile`, `landline`, `unknown`
|
|
300
|
+
*/
|
|
301
|
+
callsByDeviceType: {
|
|
302
|
+
[key: string]: number;
|
|
303
|
+
};
|
|
304
|
+
/**
|
|
305
|
+
* Answer rate for each device type. `voip`, `mobile`, `landline`, `unknown`
|
|
306
|
+
*/
|
|
307
|
+
answerRateDeviceType: {
|
|
308
|
+
[key: string]: number;
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* Percentage of blocked calls by carrier per country.
|
|
312
|
+
*/
|
|
313
|
+
blockedCallsByCarrier: Array<CountyCarrierValue>;
|
|
314
|
+
/**
|
|
315
|
+
* Percentage of completed outbound calls under 10 seconds (PSTN Short call tags); More than 15% is typically low trust measured.
|
|
316
|
+
*/
|
|
317
|
+
shortDurationCallsPercentage: number;
|
|
318
|
+
/**
|
|
319
|
+
* Percentage of long duration calls ( >= 60 seconds)
|
|
320
|
+
*/
|
|
321
|
+
longDurationCallsPercentage: number;
|
|
322
|
+
/**
|
|
323
|
+
* Percentage of completed outbound calls to unassigned or unallocated phone numbers.
|
|
324
|
+
*/
|
|
325
|
+
potentialRobocallsPercentage: number;
|
|
326
|
+
answeringMachineDetection: InsightsV2OutboundPhoneNumberReportAnsweringMachineDetection;
|
|
327
|
+
private get _proxy();
|
|
328
|
+
/**
|
|
329
|
+
* Create a OutboundInstance
|
|
330
|
+
*
|
|
331
|
+
* @param callback - Callback to handle processed record
|
|
332
|
+
*
|
|
333
|
+
* @returns Resolves to processed OutboundInstance
|
|
334
|
+
*/
|
|
335
|
+
create(callback?: (error: Error | null, item?: OutboundInstance) => any): Promise<OutboundInstance>;
|
|
336
|
+
/**
|
|
337
|
+
* Create a OutboundInstance
|
|
338
|
+
*
|
|
339
|
+
* @param params - Body for request
|
|
340
|
+
* @param headers - header params for request
|
|
341
|
+
* @param callback - Callback to handle processed record
|
|
342
|
+
*
|
|
343
|
+
* @returns Resolves to processed OutboundInstance
|
|
344
|
+
*/
|
|
345
|
+
create(params: InsightsV2CreatePhoneNumbersReportRequest, headers?: any, callback?: (error: Error | null, item?: OutboundInstance) => any): Promise<OutboundInstance>;
|
|
346
|
+
/**
|
|
347
|
+
* Create a OutboundInstance and return HTTP info
|
|
348
|
+
*
|
|
349
|
+
* @param callback - Callback to handle processed record
|
|
350
|
+
*
|
|
351
|
+
* @returns Resolves to processed OutboundInstance with HTTP metadata
|
|
352
|
+
*/
|
|
353
|
+
createWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<OutboundInstance>) => any): Promise<ApiResponse<OutboundInstance>>;
|
|
354
|
+
/**
|
|
355
|
+
* Create a OutboundInstance and return HTTP info
|
|
356
|
+
*
|
|
357
|
+
* @param params - Body for request
|
|
358
|
+
* @param headers - header params for request
|
|
359
|
+
* @param callback - Callback to handle processed record
|
|
360
|
+
*
|
|
361
|
+
* @returns Resolves to processed OutboundInstance with HTTP metadata
|
|
362
|
+
*/
|
|
363
|
+
createWithHttpInfo(params: InsightsV2CreatePhoneNumbersReportRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<OutboundInstance>) => any): Promise<ApiResponse<OutboundInstance>>;
|
|
364
|
+
/**
|
|
365
|
+
* Provide a user-friendly representation
|
|
366
|
+
*
|
|
367
|
+
* @returns Object
|
|
368
|
+
*/
|
|
369
|
+
toJSON(): {
|
|
370
|
+
accountSid: string;
|
|
371
|
+
reportId: string;
|
|
372
|
+
status: ReportStatus;
|
|
373
|
+
requestMeta: ReportMetadata;
|
|
374
|
+
url: string;
|
|
375
|
+
handle: string;
|
|
376
|
+
totalCalls: number;
|
|
377
|
+
callAnswerScore: number;
|
|
378
|
+
callStatePercentage: InsightsV2InboundPhoneNumberReportCallStatePercentage;
|
|
379
|
+
silentCallsPercentage: number;
|
|
380
|
+
callsByDeviceType: {
|
|
381
|
+
[key: string]: number;
|
|
382
|
+
};
|
|
383
|
+
answerRateDeviceType: {
|
|
384
|
+
[key: string]: number;
|
|
385
|
+
};
|
|
386
|
+
blockedCallsByCarrier: CountyCarrierValue[];
|
|
387
|
+
shortDurationCallsPercentage: number;
|
|
388
|
+
longDurationCallsPercentage: number;
|
|
389
|
+
potentialRobocallsPercentage: number;
|
|
390
|
+
answeringMachineDetection: InsightsV2OutboundPhoneNumberReportAnsweringMachineDetection;
|
|
391
|
+
};
|
|
392
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
393
|
+
}
|
|
394
|
+
export interface OutboundSolution {
|
|
395
|
+
reportId: string;
|
|
396
|
+
}
|
|
397
|
+
export interface OutboundListInstance {
|
|
398
|
+
_version: V2;
|
|
399
|
+
_solution: OutboundSolution;
|
|
400
|
+
_uri: string;
|
|
401
|
+
(reportId: string): OutboundContext;
|
|
402
|
+
get(reportId: string): OutboundContext;
|
|
403
|
+
/**
|
|
404
|
+
* Streams OutboundInstance records from the API.
|
|
405
|
+
*
|
|
406
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
407
|
+
* is reached.
|
|
408
|
+
*
|
|
409
|
+
* The results are passed into the callback function, so this operation is memory
|
|
410
|
+
* efficient.
|
|
411
|
+
*
|
|
412
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
413
|
+
* function.
|
|
414
|
+
*
|
|
415
|
+
* @param { OutboundListInstanceEachOptions } [params] - Options for request
|
|
416
|
+
* @param { function } [callback] - Function to process each record
|
|
417
|
+
*/
|
|
418
|
+
each(callback?: (item: OutboundInstance, done: (err?: Error) => void) => void): void;
|
|
419
|
+
each(params: OutboundListInstanceEachOptions, callback?: (item: OutboundInstance, done: (err?: Error) => void) => void): void;
|
|
420
|
+
/**
|
|
421
|
+
* Streams OutboundInstance records from the API with HTTP metadata captured per page.
|
|
422
|
+
*
|
|
423
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
424
|
+
* is reached. HTTP metadata (status code, headers) is captured for each page request.
|
|
425
|
+
*
|
|
426
|
+
* The results are passed into the callback function, so this operation is memory
|
|
427
|
+
* efficient.
|
|
428
|
+
*
|
|
429
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
430
|
+
* function.
|
|
431
|
+
*
|
|
432
|
+
* @param { OutboundListInstanceEachOptions } [params] - Options for request
|
|
433
|
+
* @param { function } [callback] - Function to process each record
|
|
434
|
+
*/
|
|
435
|
+
eachWithHttpInfo(callback?: (item: OutboundInstance, done: (err?: Error) => void) => void): void;
|
|
436
|
+
eachWithHttpInfo(params: OutboundListInstanceEachOptions, callback?: (item: OutboundInstance, done: (err?: Error) => void) => void): void;
|
|
437
|
+
/**
|
|
438
|
+
* Retrieve a single target page of OutboundInstance records from the API.
|
|
439
|
+
*
|
|
440
|
+
* The request is executed immediately.
|
|
441
|
+
*
|
|
442
|
+
* @param { string } [targetUrl] - API-generated URL for the requested results page
|
|
443
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
444
|
+
*/
|
|
445
|
+
getPage(targetUrl: string, callback?: (error: Error | null, items: OutboundPage) => any): Promise<OutboundPage>;
|
|
446
|
+
/**
|
|
447
|
+
* Retrieve a single target page of OutboundInstance records from the API with HTTP metadata.
|
|
448
|
+
*
|
|
449
|
+
* The request is executed immediately.
|
|
450
|
+
*
|
|
451
|
+
* @param { string } [targetUrl] - API-generated URL for the requested results page
|
|
452
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
453
|
+
*/
|
|
454
|
+
getPageWithHttpInfo(targetUrl: string, callback?: (error: Error | null, items: ApiResponse<OutboundPage>) => any): Promise<ApiResponse<OutboundPage>>;
|
|
455
|
+
/**
|
|
456
|
+
* Lists OutboundInstance records from the API as a list.
|
|
457
|
+
*
|
|
458
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
459
|
+
* function.
|
|
460
|
+
*
|
|
461
|
+
* @param { OutboundListInstanceOptions } [params] - Options for request
|
|
462
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
463
|
+
*/
|
|
464
|
+
list(callback?: (error: Error | null, items: OutboundInstance[]) => any): Promise<OutboundInstance[]>;
|
|
465
|
+
list(params: OutboundListInstanceOptions, callback?: (error: Error | null, items: OutboundInstance[]) => any): Promise<OutboundInstance[]>;
|
|
466
|
+
/**
|
|
467
|
+
* Lists OutboundInstance records from the API as a list with HTTP metadata.
|
|
468
|
+
*
|
|
469
|
+
* Returns all records along with HTTP metadata from the first page fetched.
|
|
470
|
+
*
|
|
471
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
472
|
+
* function.
|
|
473
|
+
*
|
|
474
|
+
* @param { OutboundListInstanceOptions } [params] - Options for request
|
|
475
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
476
|
+
*/
|
|
477
|
+
listWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<OutboundInstance[]>) => any): Promise<ApiResponse<OutboundInstance[]>>;
|
|
478
|
+
listWithHttpInfo(params: OutboundListInstanceOptions, callback?: (error: Error | null, items: ApiResponse<OutboundInstance[]>) => any): Promise<ApiResponse<OutboundInstance[]>>;
|
|
479
|
+
/**
|
|
480
|
+
* Retrieve a single page of OutboundInstance records from the API.
|
|
481
|
+
*
|
|
482
|
+
* The request is executed immediately.
|
|
483
|
+
*
|
|
484
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
485
|
+
* function.
|
|
486
|
+
*
|
|
487
|
+
* @param { OutboundListInstancePageOptions } [params] - Options for request
|
|
488
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
489
|
+
*/
|
|
490
|
+
page(callback?: (error: Error | null, items: OutboundPage) => any): Promise<OutboundPage>;
|
|
491
|
+
page(params: OutboundListInstancePageOptions, callback?: (error: Error | null, items: OutboundPage) => any): Promise<OutboundPage>;
|
|
492
|
+
/**
|
|
493
|
+
* Retrieve a single page of OutboundInstance records from the API with HTTP metadata.
|
|
494
|
+
*
|
|
495
|
+
* The request is executed immediately.
|
|
496
|
+
*
|
|
497
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
498
|
+
* function.
|
|
499
|
+
*
|
|
500
|
+
* @param { OutboundListInstancePageOptions } [params] - Options for request
|
|
501
|
+
* @param { function } [callback] - Callback to handle list of records with metadata
|
|
502
|
+
*/
|
|
503
|
+
pageWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<OutboundPage>) => any): Promise<ApiResponse<OutboundPage>>;
|
|
504
|
+
pageWithHttpInfo(params: OutboundListInstancePageOptions, callback?: (error: Error | null, items: ApiResponse<OutboundPage>) => any): Promise<ApiResponse<OutboundPage>>;
|
|
505
|
+
/**
|
|
506
|
+
* Provide a user-friendly representation
|
|
507
|
+
*/
|
|
508
|
+
toJSON(): any;
|
|
509
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
510
|
+
}
|
|
511
|
+
export declare function OutboundListInstance(version: V2, reportId: string): OutboundListInstance;
|
|
512
|
+
export declare class OutboundPage extends Page<V2, OutboundPayload, OutboundResource, OutboundInstance> {
|
|
513
|
+
/**
|
|
514
|
+
* Initialize the OutboundPage
|
|
515
|
+
*
|
|
516
|
+
* @param version - Version of the resource
|
|
517
|
+
* @param response - Response from the API
|
|
518
|
+
* @param solution - Path solution
|
|
519
|
+
*/
|
|
520
|
+
constructor(version: V2, response: Response<string>, solution: OutboundSolution);
|
|
521
|
+
/**
|
|
522
|
+
* Build an instance of OutboundInstance
|
|
523
|
+
*
|
|
524
|
+
* @param payload - Payload response from the API
|
|
525
|
+
*/
|
|
526
|
+
getInstance(payload: OutboundResource): OutboundInstance;
|
|
527
|
+
[inspect.custom](depth: any, options: InspectOptions): string;
|
|
528
|
+
}
|
|
529
|
+
export {};
|