twilio 4.11.2 → 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/api/v2010/account/message.d.ts +2 -2
- package/lib/rest/api/v2010/account/message.js +2 -2
- 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 +135 -78
- package/lib/rest/insights/v1/callSummaries.js +8 -6
- 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
|
@@ -13,52 +13,52 @@ 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
|
-
/**
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
|
|
58
|
-
/**
|
|
54
|
+
/** A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`. */
|
|
55
|
+
connectivityIssue?: string;
|
|
56
|
+
/** A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. */
|
|
57
|
+
qualityIssue?: string;
|
|
58
|
+
/** A boolean flag indicating spam calls. */
|
|
59
59
|
spam?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
|
|
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
|
+
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;
|
|
64
64
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
@@ -72,52 +72,52 @@ 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
|
-
/**
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
|
|
117
|
-
/**
|
|
113
|
+
/** A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`. */
|
|
114
|
+
connectivityIssue?: string;
|
|
115
|
+
/** A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. */
|
|
116
|
+
qualityIssue?: string;
|
|
117
|
+
/** A boolean flag indicating spam calls. */
|
|
118
118
|
spam?: boolean;
|
|
119
|
-
/**
|
|
120
|
-
|
|
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
|
+
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;
|
|
123
123
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
@@ -127,52 +127,52 @@ 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
|
-
/**
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
|
|
172
|
-
/**
|
|
168
|
+
/** A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`. */
|
|
169
|
+
connectivityIssue?: string;
|
|
170
|
+
/** A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. */
|
|
171
|
+
qualityIssue?: string;
|
|
172
|
+
/** A boolean flag indicating spam calls. */
|
|
173
173
|
spam?: boolean;
|
|
174
|
-
/**
|
|
175
|
-
|
|
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
|
+
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;
|
|
178
178
|
/** Page Number, this value is simply for client state */
|
|
@@ -269,32 +269,88 @@ interface CallSummariesResource {
|
|
|
269
269
|
attributes: any;
|
|
270
270
|
properties: any;
|
|
271
271
|
trust: any;
|
|
272
|
+
annotation: any;
|
|
272
273
|
}
|
|
273
274
|
export declare class CallSummariesInstance {
|
|
274
275
|
protected _version: V1;
|
|
275
276
|
constructor(_version: V1, payload: CallSummariesResource);
|
|
277
|
+
/**
|
|
278
|
+
* The unique SID identifier of the Account.
|
|
279
|
+
*/
|
|
276
280
|
accountSid: string;
|
|
281
|
+
/**
|
|
282
|
+
* The unique SID identifier of the Call.
|
|
283
|
+
*/
|
|
277
284
|
callSid: string;
|
|
278
285
|
answeredBy: CallSummariesAnsweredBy;
|
|
279
286
|
callType: CallSummariesCallType;
|
|
280
287
|
callState: CallSummariesCallState;
|
|
281
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
|
+
*/
|
|
282
292
|
createdTime: Date;
|
|
293
|
+
/**
|
|
294
|
+
* The time at which the Call was started, given in ISO 8601 format.
|
|
295
|
+
*/
|
|
283
296
|
startTime: Date;
|
|
297
|
+
/**
|
|
298
|
+
* The time at which the Call was ended, given in ISO 8601 format.
|
|
299
|
+
*/
|
|
284
300
|
endTime: Date;
|
|
301
|
+
/**
|
|
302
|
+
* Duration between when the call was initiated and the call was ended
|
|
303
|
+
*/
|
|
285
304
|
duration: number;
|
|
305
|
+
/**
|
|
306
|
+
* Duration between when the call was answered and when it ended
|
|
307
|
+
*/
|
|
286
308
|
connectDuration: number;
|
|
309
|
+
/**
|
|
310
|
+
* The calling party.
|
|
311
|
+
*/
|
|
287
312
|
from: any;
|
|
313
|
+
/**
|
|
314
|
+
* The called party.
|
|
315
|
+
*/
|
|
288
316
|
to: any;
|
|
317
|
+
/**
|
|
318
|
+
* Contains metrics and properties for the Twilio media gateway of a PSTN call.
|
|
319
|
+
*/
|
|
289
320
|
carrierEdge: any;
|
|
321
|
+
/**
|
|
322
|
+
* Contains metrics and properties for the Twilio media gateway of a Client call.
|
|
323
|
+
*/
|
|
290
324
|
clientEdge: any;
|
|
325
|
+
/**
|
|
326
|
+
* Contains metrics and properties for the SDK sensor library for Client calls.
|
|
327
|
+
*/
|
|
291
328
|
sdkEdge: any;
|
|
329
|
+
/**
|
|
330
|
+
* Contains metrics and properties for the Twilio media gateway of a SIP Interface or Trunking call.
|
|
331
|
+
*/
|
|
292
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
|
+
*/
|
|
293
336
|
tags: Array<string>;
|
|
337
|
+
/**
|
|
338
|
+
* The URL of this resource.
|
|
339
|
+
*/
|
|
294
340
|
url: string;
|
|
341
|
+
/**
|
|
342
|
+
* Attributes capturing call-flow-specific details.
|
|
343
|
+
*/
|
|
295
344
|
attributes: any;
|
|
345
|
+
/**
|
|
346
|
+
* Contains edge-agnostic call-level details.
|
|
347
|
+
*/
|
|
296
348
|
properties: any;
|
|
349
|
+
/**
|
|
350
|
+
* Contains trusted communications details including Branded Call and verified caller ID.
|
|
351
|
+
*/
|
|
297
352
|
trust: any;
|
|
353
|
+
annotation: any;
|
|
298
354
|
/**
|
|
299
355
|
* Provide a user-friendly representation
|
|
300
356
|
*
|
|
@@ -323,6 +379,7 @@ export declare class CallSummariesInstance {
|
|
|
323
379
|
attributes: any;
|
|
324
380
|
properties: any;
|
|
325
381
|
trust: any;
|
|
382
|
+
annotation: any;
|
|
326
383
|
};
|
|
327
384
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
328
385
|
}
|
|
@@ -73,14 +73,14 @@ function CallSummariesListInstance(version) {
|
|
|
73
73
|
data["AbnormalSession"] = serialize.bool(params["abnormalSession"]);
|
|
74
74
|
if (params["answeredBy"] !== undefined)
|
|
75
75
|
data["AnsweredBy"] = params["answeredBy"];
|
|
76
|
-
if (params["
|
|
77
|
-
data["
|
|
78
|
-
if (params["
|
|
79
|
-
data["
|
|
76
|
+
if (params["connectivityIssue"] !== undefined)
|
|
77
|
+
data["ConnectivityIssue"] = params["connectivityIssue"];
|
|
78
|
+
if (params["qualityIssue"] !== undefined)
|
|
79
|
+
data["QualityIssue"] = params["qualityIssue"];
|
|
80
80
|
if (params["spam"] !== undefined)
|
|
81
81
|
data["Spam"] = serialize.bool(params["spam"]);
|
|
82
|
-
if (params["
|
|
83
|
-
data["
|
|
82
|
+
if (params["callScore"] !== undefined)
|
|
83
|
+
data["CallScore"] = params["callScore"];
|
|
84
84
|
if (params["pageSize"] !== undefined)
|
|
85
85
|
data["PageSize"] = params["pageSize"];
|
|
86
86
|
if (params.pageNumber !== undefined)
|
|
@@ -143,6 +143,7 @@ class CallSummariesInstance {
|
|
|
143
143
|
this.attributes = payload.attributes;
|
|
144
144
|
this.properties = payload.properties;
|
|
145
145
|
this.trust = payload.trust;
|
|
146
|
+
this.annotation = payload.annotation;
|
|
146
147
|
}
|
|
147
148
|
/**
|
|
148
149
|
* Provide a user-friendly representation
|
|
@@ -173,6 +174,7 @@ class CallSummariesInstance {
|
|
|
173
174
|
attributes: this.attributes,
|
|
174
175
|
properties: this.properties,
|
|
175
176
|
trust: this.trust,
|
|
177
|
+
annotation: this.annotation,
|
|
176
178
|
};
|
|
177
179
|
}
|
|
178
180
|
[util_1.inspect.custom](_depth, options) {
|
|
@@ -5,18 +5,18 @@ import V1 from "../V1";
|
|
|
5
5
|
* Options to pass to fetch a SettingInstance
|
|
6
6
|
*/
|
|
7
7
|
export interface SettingContextFetchOptions {
|
|
8
|
-
/**
|
|
8
|
+
/** The unique SID identifier of the Subaccount. */
|
|
9
9
|
subaccountSid?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Options to pass to update a SettingInstance
|
|
13
13
|
*/
|
|
14
14
|
export interface SettingContextUpdateOptions {
|
|
15
|
-
/**
|
|
15
|
+
/** A boolean flag to enable Advanced Features for Voice Insights. */
|
|
16
16
|
advancedFeatures?: boolean;
|
|
17
|
-
/**
|
|
17
|
+
/** A boolean flag to enable Voice Trace. */
|
|
18
18
|
voiceTrace?: boolean;
|
|
19
|
-
/**
|
|
19
|
+
/** The unique SID identifier of the Subaccount. */
|
|
20
20
|
subaccountSid?: string;
|
|
21
21
|
}
|
|
22
22
|
export interface SettingContext {
|
|
@@ -88,9 +88,21 @@ export declare class SettingInstance {
|
|
|
88
88
|
protected _solution: SettingContextSolution;
|
|
89
89
|
protected _context?: SettingContext;
|
|
90
90
|
constructor(_version: V1, payload: SettingResource);
|
|
91
|
+
/**
|
|
92
|
+
* The unique SID identifier of the Account.
|
|
93
|
+
*/
|
|
91
94
|
accountSid: string;
|
|
95
|
+
/**
|
|
96
|
+
* A boolean flag indicating whether Advanced Features for Voice Insights are enabled.
|
|
97
|
+
*/
|
|
92
98
|
advancedFeatures: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* A boolean flag indicating whether Voice Trace is enabled.
|
|
101
|
+
*/
|
|
93
102
|
voiceTrace: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* The URL of this resource.
|
|
105
|
+
*/
|
|
94
106
|
url: string;
|
|
95
107
|
private get _proxy();
|
|
96
108
|
/**
|
|
@@ -6,7 +6,7 @@ export type PhoneNumberValidationError = "TOO_SHORT" | "TOO_LONG" | "INVALID_BUT
|
|
|
6
6
|
* Options to pass to fetch a PhoneNumberInstance
|
|
7
7
|
*/
|
|
8
8
|
export interface PhoneNumberContextFetchOptions {
|
|
9
|
-
/** A comma-separated list of fields to return. Possible values are caller_name, sim_swap, call_forwarding, live_activity, line_type_intelligence, identity_match. */
|
|
9
|
+
/** A comma-separated list of fields to return. Possible values are caller_name, sim_swap, call_forwarding, live_activity, line_type_intelligence, identity_match, reassigned_number. */
|
|
10
10
|
fields?: string;
|
|
11
11
|
/** The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format. */
|
|
12
12
|
countryCode?: string;
|
|
@@ -30,6 +30,8 @@ export interface PhoneNumberContextFetchOptions {
|
|
|
30
30
|
nationalId?: string;
|
|
31
31
|
/** User’s date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests. */
|
|
32
32
|
dateOfBirth?: string;
|
|
33
|
+
/** The date you obtained consent to call or text the end-user of the phone number or a date on which you are reasonably certain that the end-user could still be reached at that number. This query parameter is only used (optionally) for reassigned_number package requests. */
|
|
34
|
+
lastVerifiedDate?: string;
|
|
33
35
|
}
|
|
34
36
|
export interface PhoneNumberContext {
|
|
35
37
|
/**
|
|
@@ -85,6 +87,7 @@ interface PhoneNumberResource {
|
|
|
85
87
|
live_activity: any;
|
|
86
88
|
line_type_intelligence: any;
|
|
87
89
|
identity_match: any;
|
|
90
|
+
reassigned_number: any;
|
|
88
91
|
sms_pumping_risk: any;
|
|
89
92
|
url: string;
|
|
90
93
|
}
|
|
@@ -141,6 +144,10 @@ export declare class PhoneNumberInstance {
|
|
|
141
144
|
* An object that contains identity match information. The result of comparing user-provided information including name, address, date of birth, national ID, against authoritative phone-based data sources
|
|
142
145
|
*/
|
|
143
146
|
identityMatch: any;
|
|
147
|
+
/**
|
|
148
|
+
* An object that contains reassigned number information. Reassigned Numbers will return a phone number\'s reassignment status given a phone number and date
|
|
149
|
+
*/
|
|
150
|
+
reassignedNumber: any;
|
|
144
151
|
/**
|
|
145
152
|
* An object that contains information on if a phone number has been currently or previously blocked by Verify Fraud Guard for receiving malicious SMS pumping traffic as well as other signals associated with risky carriers and low conversion rates.
|
|
146
153
|
*/
|
|
@@ -185,6 +192,7 @@ export declare class PhoneNumberInstance {
|
|
|
185
192
|
liveActivity: any;
|
|
186
193
|
lineTypeIntelligence: any;
|
|
187
194
|
identityMatch: any;
|
|
195
|
+
reassignedNumber: any;
|
|
188
196
|
smsPumpingRisk: any;
|
|
189
197
|
url: string;
|
|
190
198
|
};
|
|
@@ -60,6 +60,8 @@ class PhoneNumberContextImpl {
|
|
|
60
60
|
data["NationalId"] = params["nationalId"];
|
|
61
61
|
if (params["dateOfBirth"] !== undefined)
|
|
62
62
|
data["DateOfBirth"] = params["dateOfBirth"];
|
|
63
|
+
if (params["lastVerifiedDate"] !== undefined)
|
|
64
|
+
data["LastVerifiedDate"] = params["lastVerifiedDate"];
|
|
63
65
|
const headers = {};
|
|
64
66
|
const instance = this;
|
|
65
67
|
let operationVersion = instance._version, operationPromise = operationVersion.fetch({
|
|
@@ -100,6 +102,7 @@ class PhoneNumberInstance {
|
|
|
100
102
|
this.liveActivity = payload.live_activity;
|
|
101
103
|
this.lineTypeIntelligence = payload.line_type_intelligence;
|
|
102
104
|
this.identityMatch = payload.identity_match;
|
|
105
|
+
this.reassignedNumber = payload.reassigned_number;
|
|
103
106
|
this.smsPumpingRisk = payload.sms_pumping_risk;
|
|
104
107
|
this.url = payload.url;
|
|
105
108
|
this._solution = { phoneNumber: phoneNumber || this.phoneNumber };
|
|
@@ -132,6 +135,7 @@ class PhoneNumberInstance {
|
|
|
132
135
|
liveActivity: this.liveActivity,
|
|
133
136
|
lineTypeIntelligence: this.lineTypeIntelligence,
|
|
134
137
|
identityMatch: this.identityMatch,
|
|
138
|
+
reassignedNumber: this.reassignedNumber,
|
|
135
139
|
smsPumpingRisk: this.smsPumpingRisk,
|
|
136
140
|
url: this.url,
|
|
137
141
|
};
|
package/lib/rest/numbers/V1.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import NumbersBase from "../NumbersBase";
|
|
2
2
|
import Version from "../../base/Version";
|
|
3
3
|
import { BulkEligibilityListInstance } from "./v1/bulkEligibility";
|
|
4
|
+
import { PortingBulkPortabilityListInstance } from "./v1/portingBulkPortability";
|
|
5
|
+
import { PortingPortabilityListInstance } from "./v1/portingPortability";
|
|
4
6
|
export default class V1 extends Version {
|
|
5
7
|
/**
|
|
6
8
|
* Initialize the V1 version of Numbers
|
|
@@ -10,6 +12,14 @@ export default class V1 extends Version {
|
|
|
10
12
|
constructor(domain: NumbersBase);
|
|
11
13
|
/** bulkEligibilities - { Twilio.Numbers.V1.BulkEligibilityListInstance } resource */
|
|
12
14
|
protected _bulkEligibilities?: BulkEligibilityListInstance;
|
|
15
|
+
/** portingBulkPortabilities - { Twilio.Numbers.V1.PortingBulkPortabilityListInstance } resource */
|
|
16
|
+
protected _portingBulkPortabilities?: PortingBulkPortabilityListInstance;
|
|
17
|
+
/** portingPortabilities - { Twilio.Numbers.V1.PortingPortabilityListInstance } resource */
|
|
18
|
+
protected _portingPortabilities?: PortingPortabilityListInstance;
|
|
13
19
|
/** Getter for bulkEligibilities resource */
|
|
14
20
|
get bulkEligibilities(): BulkEligibilityListInstance;
|
|
21
|
+
/** Getter for portingBulkPortabilities resource */
|
|
22
|
+
get portingBulkPortabilities(): PortingBulkPortabilityListInstance;
|
|
23
|
+
/** Getter for portingPortabilities resource */
|
|
24
|
+
get portingPortabilities(): PortingPortabilityListInstance;
|
|
15
25
|
}
|
package/lib/rest/numbers/V1.js
CHANGED
|
@@ -18,6 +18,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
const Version_1 = __importDefault(require("../../base/Version"));
|
|
20
20
|
const bulkEligibility_1 = require("./v1/bulkEligibility");
|
|
21
|
+
const portingBulkPortability_1 = require("./v1/portingBulkPortability");
|
|
22
|
+
const portingPortability_1 = require("./v1/portingPortability");
|
|
21
23
|
class V1 extends Version_1.default {
|
|
22
24
|
/**
|
|
23
25
|
* Initialize the V1 version of Numbers
|
|
@@ -33,5 +35,18 @@ class V1 extends Version_1.default {
|
|
|
33
35
|
this._bulkEligibilities || (0, bulkEligibility_1.BulkEligibilityListInstance)(this);
|
|
34
36
|
return this._bulkEligibilities;
|
|
35
37
|
}
|
|
38
|
+
/** Getter for portingBulkPortabilities resource */
|
|
39
|
+
get portingBulkPortabilities() {
|
|
40
|
+
this._portingBulkPortabilities =
|
|
41
|
+
this._portingBulkPortabilities ||
|
|
42
|
+
(0, portingBulkPortability_1.PortingBulkPortabilityListInstance)(this);
|
|
43
|
+
return this._portingBulkPortabilities;
|
|
44
|
+
}
|
|
45
|
+
/** Getter for portingPortabilities resource */
|
|
46
|
+
get portingPortabilities() {
|
|
47
|
+
this._portingPortabilities =
|
|
48
|
+
this._portingPortabilities || (0, portingPortability_1.PortingPortabilityListInstance)(this);
|
|
49
|
+
return this._portingPortabilities;
|
|
50
|
+
}
|
|
36
51
|
}
|
|
37
52
|
exports.default = V1;
|
package/lib/rest/numbers/V2.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import NumbersBase from "../NumbersBase";
|
|
2
2
|
import Version from "../../base/Version";
|
|
3
|
+
import { AuthorizationDocumentListInstance } from "./v2/authorizationDocument";
|
|
4
|
+
import { HostedNumberOrderListInstance } from "./v2/hostedNumberOrder";
|
|
3
5
|
import { RegulatoryComplianceListInstance } from "./v2/regulatoryCompliance";
|
|
4
6
|
export default class V2 extends Version {
|
|
5
7
|
/**
|
|
@@ -8,8 +10,16 @@ export default class V2 extends Version {
|
|
|
8
10
|
* @param domain - The Twilio (Twilio.Numbers) domain
|
|
9
11
|
*/
|
|
10
12
|
constructor(domain: NumbersBase);
|
|
13
|
+
/** authorizationDocuments - { Twilio.Numbers.V2.AuthorizationDocumentListInstance } resource */
|
|
14
|
+
protected _authorizationDocuments?: AuthorizationDocumentListInstance;
|
|
15
|
+
/** hostedNumberOrders - { Twilio.Numbers.V2.HostedNumberOrderListInstance } resource */
|
|
16
|
+
protected _hostedNumberOrders?: HostedNumberOrderListInstance;
|
|
11
17
|
/** regulatoryCompliance - { Twilio.Numbers.V2.RegulatoryComplianceListInstance } resource */
|
|
12
18
|
protected _regulatoryCompliance?: RegulatoryComplianceListInstance;
|
|
19
|
+
/** Getter for authorizationDocuments resource */
|
|
20
|
+
get authorizationDocuments(): AuthorizationDocumentListInstance;
|
|
21
|
+
/** Getter for hostedNumberOrders resource */
|
|
22
|
+
get hostedNumberOrders(): HostedNumberOrderListInstance;
|
|
13
23
|
/** Getter for regulatoryCompliance resource */
|
|
14
24
|
get regulatoryCompliance(): RegulatoryComplianceListInstance;
|
|
15
25
|
}
|
package/lib/rest/numbers/V2.js
CHANGED
|
@@ -17,6 +17,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
const Version_1 = __importDefault(require("../../base/Version"));
|
|
20
|
+
const authorizationDocument_1 = require("./v2/authorizationDocument");
|
|
21
|
+
const hostedNumberOrder_1 = require("./v2/hostedNumberOrder");
|
|
20
22
|
const regulatoryCompliance_1 = require("./v2/regulatoryCompliance");
|
|
21
23
|
class V2 extends Version_1.default {
|
|
22
24
|
/**
|
|
@@ -27,6 +29,18 @@ class V2 extends Version_1.default {
|
|
|
27
29
|
constructor(domain) {
|
|
28
30
|
super(domain, "v2");
|
|
29
31
|
}
|
|
32
|
+
/** Getter for authorizationDocuments resource */
|
|
33
|
+
get authorizationDocuments() {
|
|
34
|
+
this._authorizationDocuments =
|
|
35
|
+
this._authorizationDocuments || (0, authorizationDocument_1.AuthorizationDocumentListInstance)(this);
|
|
36
|
+
return this._authorizationDocuments;
|
|
37
|
+
}
|
|
38
|
+
/** Getter for hostedNumberOrders resource */
|
|
39
|
+
get hostedNumberOrders() {
|
|
40
|
+
this._hostedNumberOrders =
|
|
41
|
+
this._hostedNumberOrders || (0, hostedNumberOrder_1.HostedNumberOrderListInstance)(this);
|
|
42
|
+
return this._hostedNumberOrders;
|
|
43
|
+
}
|
|
30
44
|
/** Getter for regulatoryCompliance resource */
|
|
31
45
|
get regulatoryCompliance() {
|
|
32
46
|
this._regulatoryCompliance =
|