Socket
Socket
Sign inDemoInstall

twilio

Package Overview
Dependencies
Maintainers
1
Versions
300
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twilio - npm Package Compare versions

Comparing version 4.12.0 to 4.13.0

lib/rest/numbers/v1/portingBulkPortability.d.ts

23

lib/base/BaseTwilio.js

@@ -36,6 +36,7 @@ "use strict";

this.opts = opts || {};
this.env = this.opts.env || process.env;
this.env = this.opts.env || {};
this.username =
username ||
this.env.TWILIO_ACCOUNT_SID ||
username ??
this.env.TWILIO_ACCOUNT_SID ??
process.env.TWILIO_ACCOUNT_SID ??
(() => {

@@ -45,4 +46,5 @@ throw new Error("username is required");

this.password =
password ||
this.env.TWILIO_AUTH_TOKEN ||
password ??
this.env.TWILIO_AUTH_TOKEN ??
process.env.TWILIO_AUTH_TOKEN ??
(() => {

@@ -52,5 +54,10 @@ throw new Error("password is required");

this.accountSid = this.opts.accountSid || this.username;
this.edge = this.opts.edge || this.env.TWILIO_EDGE;
this.region = this.opts.region || this.env.TWILIO_REGION;
this.logLevel = this.opts.logLevel || this.env.TWILIO_LOG_LEVEL;
this.edge =
this.opts.edge ?? this.env.TWILIO_EDGE ?? process.env.TWILIO_EDGE;
this.region =
this.opts.region ?? this.env.TWILIO_REGION ?? process.env.TWILIO_REGION;
this.logLevel =
this.opts.logLevel ??
this.env.TWILIO_LOG_LEVEL ??
process.env.TWILIO_LOG_LEVEL;
this.autoRetry = this.opts.autoRetry || false;

@@ -57,0 +64,0 @@ this.maxRetries = this.opts.maxRetries;

@@ -14,11 +14,11 @@ /// <reference types="node" />

connectivityIssue?: AnnotationConnectivityIssue;
/** Specify if the call had any subjective quality issues. Possible values, one or more of: no_quality_issue, low_volume, choppy_robotic, echo, dtmf, latency, owa, static_noise. Use comma separated values to indicate multiple quality issues for the same call */
/** Specify if the call had any subjective quality issues. Possible values, one or more of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. Use comma separated values to indicate multiple quality issues for the same call. */
qualityIssues?: string;
/** Specify if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Is of type Boolean: true, false. Use true if the call was a spam call. */
/** A boolean flag to indicate if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Use `true` if the call was a spam call. */
spam?: boolean;
/** Specify the call score. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad]. */
callScore?: number;
/** Specify any comments pertaining to the call. This of type string with a max limit of 100 characters. Twilio does not treat this field as PII, so don’t put any PII in here. */
/** Specify any comments pertaining to the call. `comment` has a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in the `comment`. */
comment?: string;
/** Associate this call with an incident or support ticket. This is of type string with a max limit of 100 characters. Twilio does not treat this field as PII, so don’t put any PII in here. */
/** Associate this call with an incident or support ticket. The `incident` parameter is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`. */
incident?: string;

@@ -104,19 +104,19 @@ }

/**
* Specify if the call had any subjective quality issues. Possible values, one or more of: no_quality_issue, low_volume, choppy_robotic, echo, dtmf, latency, owa, static_noise. Use comma separated values to indicate multiple quality issues for the same call
* Specifies if the call had any subjective quality issues. Possible values are one or more of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, or `static_noise`.
*/
qualityIssues: Array<string>;
/**
* Specify if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Is of type Boolean: true, false. Use true if the call was a spam call.
* Specifies if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Is of type Boolean: true, false. Use true if the call was a spam call.
*/
spam: boolean;
/**
* Specify the call score. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
* Specifies the Call Score, if available. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
*/
callScore: number;
/**
* Specify any comments pertaining to the call. This of type string with a max limit of 100 characters. Twilio does not treat this field as PII, so don’t put any PII in here.
* Specifies any comments pertaining to the call. Twilio does not treat this field as PII, so no PII should be included in comments.
*/
comment: string;
/**
* Associate this call with an incident or support ticket. This is of type string with a max limit of 100 characters. Twilio does not treat this field as PII, so don’t put any PII in here.
* Incident or support ticket associated with this call. The `incident` property is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`.
*/

@@ -123,0 +123,0 @@ incident: string;

@@ -12,3 +12,3 @@ /// <reference types="node" />

export interface CallSummaryContextFetchOptions {
/** */
/** The Processing State of this Call Summary. One of `complete`, `partial` or `all`. */
processingState?: CallSummaryProcessingState;

@@ -87,3 +87,9 @@ }

constructor(_version: V1, payload: CallSummaryResource, callSid: string);
/**
* The unique SID identifier of the Account.
*/
accountSid: string;
/**
* The unique SID identifier of the Call.
*/
callSid: string;

@@ -94,18 +100,69 @@ callType: CallSummaryCallType;

processingState: CallSummaryProcessingState;
/**
* The time at which the Call was created, given in ISO 8601 format. Can be different from `start_time` in the event of queueing due to CPS
*/
createdTime: Date;
/**
* The time at which the Call was started, given in ISO 8601 format.
*/
startTime: Date;
/**
* The time at which the Call was ended, given in ISO 8601 format.
*/
endTime: Date;
/**
* Duration between when the call was initiated and the call was ended
*/
duration: number;
/**
* Duration between when the call was answered and when it ended
*/
connectDuration: number;
/**
* The calling party.
*/
from: any;
/**
* The called party.
*/
to: any;
/**
* Contains metrics and properties for the Twilio media gateway of a PSTN call.
*/
carrierEdge: any;
/**
* Contains metrics and properties for the Twilio media gateway of a Client call.
*/
clientEdge: any;
/**
* Contains metrics and properties for the SDK sensor library for Client calls.
*/
sdkEdge: any;
/**
* Contains metrics and properties for the Twilio media gateway of a SIP Interface or Trunking call.
*/
sipEdge: any;
/**
* Tags applied to calls by Voice Insights analysis indicating a condition that could result in subjective degradation of the call quality.
*/
tags: Array<string>;
/**
* The URL of this resource.
*/
url: string;
/**
* Attributes capturing call-flow-specific details.
*/
attributes: any;
/**
* Contains edge-agnostic call-level details.
*/
properties: any;
/**
* Contains trusted communications details including Branded Call and verified caller ID.
*/
trust: any;
/**
* Programmatically labeled annotations for the Call. Developers can update the Call Summary records with Annotation during or after a Call. Annotations can be updated as long as the Call Summary record is addressable via the API.
*/
annotation: any;

@@ -112,0 +169,0 @@ private get _proxy();

@@ -12,3 +12,3 @@ /// <reference types="node" />

export interface EventListInstanceEachOptions {
/** */
/** The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
edge?: EventTwilioEdge;

@@ -28,3 +28,3 @@ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */

export interface EventListInstanceOptions {
/** */
/** The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
edge?: EventTwilioEdge;

@@ -40,3 +40,3 @@ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */

export interface EventListInstancePageOptions {
/** */
/** The Edge of this Event. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
edge?: EventTwilioEdge;

@@ -133,12 +133,39 @@ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */

constructor(_version: V1, payload: EventResource, callSid: string);
/**
* Event time.
*/
timestamp: string;
/**
* The unique SID identifier of the Call.
*/
callSid: string;
/**
* The unique SID identifier of the Account.
*/
accountSid: string;
edge: EventTwilioEdge;
/**
* Event group.
*/
group: string;
level: EventLevel;
/**
* Event name.
*/
name: string;
/**
* Represents the connection between Twilio and our immediate carrier partners. The events here describe the call lifecycle as reported by Twilio\'s carrier media gateways.
*/
carrierEdge: any;
/**
* Represents the Twilio media gateway for SIP interface and SIP trunking calls. The events here describe the call lifecycle as reported by Twilio\'s public media gateways.
*/
sipEdge: any;
/**
* Represents the Voice SDK running locally in the browser or in the Android/iOS application. The events here are emitted by the Voice SDK in response to certain call progress events, network changes, or call quality conditions.
*/
sdkEdge: any;
/**
* Represents the Twilio media gateway for Client calls. The events here describe the call lifecycle as reported by Twilio\'s Voice SDK media gateways.
*/
clientEdge: any;

@@ -145,0 +172,0 @@ /**

@@ -12,5 +12,5 @@ /// <reference types="node" />

export interface MetricListInstanceEachOptions {
/** */
/** The Edge of this Metric. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
edge?: MetricTwilioEdge;
/** */
/** The Direction of this Metric. One of `unknown`, `inbound`, `outbound` or `both`. */
direction?: MetricStreamDirection;

@@ -30,5 +30,5 @@ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */

export interface MetricListInstanceOptions {
/** */
/** The Edge of this Metric. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
edge?: MetricTwilioEdge;
/** */
/** The Direction of this Metric. One of `unknown`, `inbound`, `outbound` or `both`. */
direction?: MetricStreamDirection;

@@ -44,5 +44,5 @@ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */

export interface MetricListInstancePageOptions {
/** */
/** The Edge of this Metric. One of `unknown_edge`, `carrier_edge`, `sip_edge`, `sdk_edge` or `client_edge`. */
edge?: MetricTwilioEdge;
/** */
/** The Direction of this Metric. One of `unknown`, `inbound`, `outbound` or `both`. */
direction?: MetricStreamDirection;

@@ -137,10 +137,31 @@ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */

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

@@ -147,0 +168,0 @@ /**

@@ -16,47 +16,47 @@ /// <reference types="node" />

export interface CallSummariesListInstanceEachOptions {
/** */
/** A calling party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name. */
from?: string;
/** */
/** A called party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name. */
to?: string;
/** */
/** An origination carrier. */
fromCarrier?: string;
/** */
/** A destination carrier. */
toCarrier?: string;
/** */
/** A source country code based on phone number in From. */
fromCountryCode?: string;
/** */
/** A destination country code. Based on phone number in To. */
toCountryCode?: string;
/** */
/** A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. */
branded?: boolean;
/** */
/** A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR. */
verifiedCaller?: boolean;
/** */
/** 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). */
hasTag?: boolean;
/** */
/** 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. */
startTime?: string;
/** */
/** 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. */
endTime?: string;
/** */
/** A Call Type of the calls. One of `carrier`, `sip`, `trunking` or `client`. */
callType?: string;
/** */
/** A Call State of the calls. One of `ringing`, `completed`, `busy`, `fail`, `noanswer`, `canceled`, `answered`, `undialed`. */
callState?: string;
/** */
/** A Direction of the calls. One of `outbound_api`, `outbound_dial`, `inbound`, `trunking_originating`, `trunking_terminating`. */
direction?: string;
/** */
/** A Processing State of the Call Summaries. One of `completed`, `partial` or `all`. */
processingState?: CallSummariesProcessingStateRequest;
/** */
/** A Sort By criterion for the returned list of Call Summaries. One of `start_time` or `end_time`. */
sortBy?: CallSummariesSortBy;
/** */
/** A unique SID identifier of a Subaccount. */
subaccount?: string;
/** */
/** A boolean flag indicating an abnormal session where the last SIP response was not 200 OK. */
abnormalSession?: boolean;
/** */
/** 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`. */
answeredBy?: CallSummariesAnsweredBy;
/** */
/** A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`. */
connectivityIssue?: string;
/** */
/** A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. */
qualityIssue?: string;
/** */
/** A boolean flag indicating spam calls. */
spam?: boolean;
/** */
/** 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]. */
callScore?: string;

@@ -76,47 +76,47 @@ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */

export interface CallSummariesListInstanceOptions {
/** */
/** A calling party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name. */
from?: string;
/** */
/** A called party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name. */
to?: string;
/** */
/** An origination carrier. */
fromCarrier?: string;
/** */
/** A destination carrier. */
toCarrier?: string;
/** */
/** A source country code based on phone number in From. */
fromCountryCode?: string;
/** */
/** A destination country code. Based on phone number in To. */
toCountryCode?: string;
/** */
/** A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. */
branded?: boolean;
/** */
/** A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR. */
verifiedCaller?: boolean;
/** */
/** 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). */
hasTag?: boolean;
/** */
/** 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. */
startTime?: string;
/** */
/** 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. */
endTime?: string;
/** */
/** A Call Type of the calls. One of `carrier`, `sip`, `trunking` or `client`. */
callType?: string;
/** */
/** A Call State of the calls. One of `ringing`, `completed`, `busy`, `fail`, `noanswer`, `canceled`, `answered`, `undialed`. */
callState?: string;
/** */
/** A Direction of the calls. One of `outbound_api`, `outbound_dial`, `inbound`, `trunking_originating`, `trunking_terminating`. */
direction?: string;
/** */
/** A Processing State of the Call Summaries. One of `completed`, `partial` or `all`. */
processingState?: CallSummariesProcessingStateRequest;
/** */
/** A Sort By criterion for the returned list of Call Summaries. One of `start_time` or `end_time`. */
sortBy?: CallSummariesSortBy;
/** */
/** A unique SID identifier of a Subaccount. */
subaccount?: string;
/** */
/** A boolean flag indicating an abnormal session where the last SIP response was not 200 OK. */
abnormalSession?: boolean;
/** */
/** 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`. */
answeredBy?: CallSummariesAnsweredBy;
/** */
/** A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`. */
connectivityIssue?: string;
/** */
/** A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. */
qualityIssue?: string;
/** */
/** A boolean flag indicating spam calls. */
spam?: boolean;
/** */
/** 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]. */
callScore?: string;

@@ -132,47 +132,47 @@ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */

export interface CallSummariesListInstancePageOptions {
/** */
/** A calling party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name. */
from?: string;
/** */
/** A called party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name. */
to?: string;
/** */
/** An origination carrier. */
fromCarrier?: string;
/** */
/** A destination carrier. */
toCarrier?: string;
/** */
/** A source country code based on phone number in From. */
fromCountryCode?: string;
/** */
/** A destination country code. Based on phone number in To. */
toCountryCode?: string;
/** */
/** A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. */
branded?: boolean;
/** */
/** A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR. */
verifiedCaller?: boolean;
/** */
/** 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). */
hasTag?: boolean;
/** */
/** 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. */
startTime?: string;
/** */
/** 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. */
endTime?: string;
/** */
/** A Call Type of the calls. One of `carrier`, `sip`, `trunking` or `client`. */
callType?: string;
/** */
/** A Call State of the calls. One of `ringing`, `completed`, `busy`, `fail`, `noanswer`, `canceled`, `answered`, `undialed`. */
callState?: string;
/** */
/** A Direction of the calls. One of `outbound_api`, `outbound_dial`, `inbound`, `trunking_originating`, `trunking_terminating`. */
direction?: string;
/** */
/** A Processing State of the Call Summaries. One of `completed`, `partial` or `all`. */
processingState?: CallSummariesProcessingStateRequest;
/** */
/** A Sort By criterion for the returned list of Call Summaries. One of `start_time` or `end_time`. */
sortBy?: CallSummariesSortBy;
/** */
/** A unique SID identifier of a Subaccount. */
subaccount?: string;
/** */
/** A boolean flag indicating an abnormal session where the last SIP response was not 200 OK. */
abnormalSession?: boolean;
/** */
/** 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`. */
answeredBy?: CallSummariesAnsweredBy;
/** */
/** A Connectivity Issue with the calls. One of `no_connectivity_issue`, `invalid_number`, `caller_id`, `dropped_call`, or `number_reachability`. */
connectivityIssue?: string;
/** */
/** A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. */
qualityIssue?: string;
/** */
/** A boolean flag indicating spam calls. */
spam?: boolean;
/** */
/** 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]. */
callScore?: string;

@@ -280,3 +280,9 @@ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */

constructor(_version: V1, payload: CallSummariesResource);
/**
* The unique SID identifier of the Account.
*/
accountSid: string;
/**
* The unique SID identifier of the Call.
*/
callSid: string;

@@ -287,17 +293,65 @@ answeredBy: CallSummariesAnsweredBy;

processingState: CallSummariesProcessingState;
/**
* The time at which the Call was created, given in ISO 8601 format. Can be different from `start_time` in the event of queueing due to CPS
*/
createdTime: Date;
/**
* The time at which the Call was started, given in ISO 8601 format.
*/
startTime: Date;
/**
* The time at which the Call was ended, given in ISO 8601 format.
*/
endTime: Date;
/**
* Duration between when the call was initiated and the call was ended
*/
duration: number;
/**
* Duration between when the call was answered and when it ended
*/
connectDuration: number;
/**
* The calling party.
*/
from: any;
/**
* The called party.
*/
to: any;
/**
* Contains metrics and properties for the Twilio media gateway of a PSTN call.
*/
carrierEdge: any;
/**
* Contains metrics and properties for the Twilio media gateway of a Client call.
*/
clientEdge: any;
/**
* Contains metrics and properties for the SDK sensor library for Client calls.
*/
sdkEdge: any;
/**
* Contains metrics and properties for the Twilio media gateway of a SIP Interface or Trunking call.
*/
sipEdge: any;
/**
* Tags applied to calls by Voice Insights analysis indicating a condition that could result in subjective degradation of the call quality.
*/
tags: Array<string>;
/**
* The URL of this resource.
*/
url: string;
/**
* Attributes capturing call-flow-specific details.
*/
attributes: any;
/**
* Contains edge-agnostic call-level details.
*/
properties: any;
/**
* Contains trusted communications details including Branded Call and verified caller ID.
*/
trust: any;

@@ -304,0 +358,0 @@ annotation: any;

@@ -8,3 +8,3 @@ /// <reference types="node" />

export interface SettingContextFetchOptions {
/** */
/** The unique SID identifier of the Subaccount. */
subaccountSid?: string;

@@ -16,7 +16,7 @@ }

export interface SettingContextUpdateOptions {
/** */
/** A boolean flag to enable Advanced Features for Voice Insights. */
advancedFeatures?: boolean;
/** */
/** A boolean flag to enable Voice Trace. */
voiceTrace?: boolean;
/** */
/** The unique SID identifier of the Subaccount. */
subaccountSid?: string;

@@ -93,5 +93,17 @@ }

constructor(_version: V1, payload: SettingResource);
/**
* The unique SID identifier of the Account.
*/
accountSid: string;
/**
* A boolean flag indicating whether Advanced Features for Voice Insights are enabled.
*/
advancedFeatures: boolean;
/**
* A boolean flag indicating whether Voice Trace is enabled.
*/
voiceTrace: boolean;
/**
* The URL of this resource.
*/
url: string;

@@ -98,0 +110,0 @@ private get _proxy();

@@ -9,3 +9,3 @@ /// <reference types="node" />

export interface PhoneNumberContextFetchOptions {
/** A comma-separated list of fields to return. Possible values are caller_name, sim_swap, call_forwarding, live_activity, line_type_intelligence, identity_match. */
/** 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. */
fields?: string;

@@ -34,2 +34,4 @@ /** The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format. */

dateOfBirth?: string;
/** 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. */
lastVerifiedDate?: string;
}

@@ -90,2 +92,3 @@ export interface PhoneNumberContext {

identity_match: any;
reassigned_number: any;
sms_pumping_risk: any;

@@ -148,2 +151,6 @@ url: string;

/**
* An object that contains reassigned number information. Reassigned Numbers will return a phone number\'s reassignment status given a phone number and date
*/
reassignedNumber: any;
/**
* 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.

@@ -192,2 +199,3 @@ */

identityMatch: any;
reassignedNumber: any;
smsPumpingRisk: any;

@@ -194,0 +202,0 @@ url: string;

@@ -63,2 +63,4 @@ "use strict";

data["DateOfBirth"] = params["dateOfBirth"];
if (params["lastVerifiedDate"] !== undefined)
data["LastVerifiedDate"] = params["lastVerifiedDate"];
const headers = {};

@@ -104,2 +106,3 @@ const instance = this;

this.identityMatch = payload.identity_match;
this.reassignedNumber = payload.reassigned_number;
this.smsPumpingRisk = payload.sms_pumping_risk;

@@ -137,2 +140,3 @@ this.url = payload.url;

identityMatch: this.identityMatch,
reassignedNumber: this.reassignedNumber,
smsPumpingRisk: this.smsPumpingRisk,

@@ -139,0 +143,0 @@ url: this.url,

import NumbersBase from "../NumbersBase";
import Version from "../../base/Version";
import { BulkEligibilityListInstance } from "./v1/bulkEligibility";
import { PortingBulkPortabilityListInstance } from "./v1/portingBulkPortability";
import { PortingPortabilityListInstance } from "./v1/portingPortability";
export default class V1 extends Version {

@@ -13,4 +15,12 @@ /**

protected _bulkEligibilities?: BulkEligibilityListInstance;
/** portingBulkPortabilities - { Twilio.Numbers.V1.PortingBulkPortabilityListInstance } resource */
protected _portingBulkPortabilities?: PortingBulkPortabilityListInstance;
/** portingPortabilities - { Twilio.Numbers.V1.PortingPortabilityListInstance } resource */
protected _portingPortabilities?: PortingPortabilityListInstance;
/** Getter for bulkEligibilities resource */
get bulkEligibilities(): BulkEligibilityListInstance;
/** Getter for portingBulkPortabilities resource */
get portingBulkPortabilities(): PortingBulkPortabilityListInstance;
/** Getter for portingPortabilities resource */
get portingPortabilities(): PortingPortabilityListInstance;
}

@@ -21,2 +21,4 @@ "use strict";

const bulkEligibility_1 = require("./v1/bulkEligibility");
const portingBulkPortability_1 = require("./v1/portingBulkPortability");
const portingPortability_1 = require("./v1/portingPortability");
class V1 extends Version_1.default {

@@ -37,3 +39,16 @@ /**

}
/** Getter for portingBulkPortabilities resource */
get portingBulkPortabilities() {
this._portingBulkPortabilities =
this._portingBulkPortabilities ||
(0, portingBulkPortability_1.PortingBulkPortabilityListInstance)(this);
return this._portingBulkPortabilities;
}
/** Getter for portingPortabilities resource */
get portingPortabilities() {
this._portingPortabilities =
this._portingPortabilities || (0, portingPortability_1.PortingPortabilityListInstance)(this);
return this._portingPortabilities;
}
}
exports.default = V1;
import NumbersBase from "../NumbersBase";
import Version from "../../base/Version";
import { AuthorizationDocumentListInstance } from "./v2/authorizationDocument";
import { HostedNumberOrderListInstance } from "./v2/hostedNumberOrder";
import { RegulatoryComplianceListInstance } from "./v2/regulatoryCompliance";

@@ -11,6 +13,14 @@ export default class V2 extends Version {

constructor(domain: NumbersBase);
/** authorizationDocuments - { Twilio.Numbers.V2.AuthorizationDocumentListInstance } resource */
protected _authorizationDocuments?: AuthorizationDocumentListInstance;
/** hostedNumberOrders - { Twilio.Numbers.V2.HostedNumberOrderListInstance } resource */
protected _hostedNumberOrders?: HostedNumberOrderListInstance;
/** regulatoryCompliance - { Twilio.Numbers.V2.RegulatoryComplianceListInstance } resource */
protected _regulatoryCompliance?: RegulatoryComplianceListInstance;
/** Getter for authorizationDocuments resource */
get authorizationDocuments(): AuthorizationDocumentListInstance;
/** Getter for hostedNumberOrders resource */
get hostedNumberOrders(): HostedNumberOrderListInstance;
/** Getter for regulatoryCompliance resource */
get regulatoryCompliance(): RegulatoryComplianceListInstance;
}

@@ -20,2 +20,4 @@ "use strict";

const Version_1 = __importDefault(require("../../base/Version"));
const authorizationDocument_1 = require("./v2/authorizationDocument");
const hostedNumberOrder_1 = require("./v2/hostedNumberOrder");
const regulatoryCompliance_1 = require("./v2/regulatoryCompliance");

@@ -31,2 +33,14 @@ class V2 extends Version_1.default {

}
/** Getter for authorizationDocuments resource */
get authorizationDocuments() {
this._authorizationDocuments =
this._authorizationDocuments || (0, authorizationDocument_1.AuthorizationDocumentListInstance)(this);
return this._authorizationDocuments;
}
/** Getter for hostedNumberOrders resource */
get hostedNumberOrders() {
this._hostedNumberOrders =
this._hostedNumberOrders || (0, hostedNumberOrder_1.HostedNumberOrderListInstance)(this);
return this._hostedNumberOrders;
}
/** Getter for regulatoryCompliance resource */

@@ -33,0 +47,0 @@ get regulatoryCompliance() {

@@ -57,3 +57,3 @@ /// <reference types="node" />

friendlyName?: string;
/** Filter by Workers that would match an expression on a TaskQueue. This is helpful for debugging which Workers would match a potential queue. */
/** Filter by Workers that would match an expression. In addition to fields in the workers\' attributes, the expression can include the following worker fields: `sid`, `friendly_name`, `activity_sid`, or `activity_name` */
targetWorkersExpression?: string;

@@ -87,3 +87,3 @@ /** The `friendly_name` of the TaskQueue that the Workers to read are eligible for. */

friendlyName?: string;
/** Filter by Workers that would match an expression on a TaskQueue. This is helpful for debugging which Workers would match a potential queue. */
/** Filter by Workers that would match an expression. In addition to fields in the workers\' attributes, the expression can include the following worker fields: `sid`, `friendly_name`, `activity_sid`, or `activity_name` */
targetWorkersExpression?: string;

@@ -113,3 +113,3 @@ /** The `friendly_name` of the TaskQueue that the Workers to read are eligible for. */

friendlyName?: string;
/** Filter by Workers that would match an expression on a TaskQueue. This is helpful for debugging which Workers would match a potential queue. */
/** Filter by Workers that would match an expression. In addition to fields in the workers\' attributes, the expression can include the following worker fields: `sid`, `friendly_name`, `activity_sid`, or `activity_name` */
targetWorkersExpression?: string;

@@ -116,0 +116,0 @@ /** The `friendly_name` of the TaskQueue that the Workers to read are eligible for. */

{
"name": "twilio",
"description": "A Twilio helper library",
"version": "4.12.0",
"version": "4.13.0",
"author": "API Team <api@twilio.com>",

@@ -6,0 +6,0 @@ "contributors": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc