Socket
Socket
Sign inDemoInstall

twilio

Package Overview
Dependencies
Maintainers
1
Versions
299
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 5.0.4 to 5.1.0

lib/rest/content/V2.d.ts

2

lib/rest/api/v2010/account/message.d.ts

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

/**
* The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) associated with the Message resource. The value is `null` if a Messaging Service was not used.
* The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) associated with the Message resource. A unique default value is assigned if a Messaging Service is not used.
*/

@@ -280,0 +280,0 @@ messagingServiceSid: string;

import Domain from "../base/Domain";
import V1 from "./content/V1";
import V2 from "./content/V2";
declare class ContentBase extends Domain {
_v1?: V1;
_v2?: V2;
/**

@@ -12,3 +14,4 @@ * Initialize content domain

get v1(): V1;
get v2(): V2;
}
export = ContentBase;

@@ -17,2 +17,3 @@ "use strict";

const V1_1 = __importDefault(require("./content/V1"));
const V2_1 = __importDefault(require("./content/V2"));
class ContentBase extends Domain_1.default {

@@ -31,3 +32,7 @@ /**

}
get v2() {
this._v2 = this._v2 || new V2_1.default(this);
return this._v2;
}
}
module.exports = ContentBase;

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

/** The Interaction\\\'s routing logic. */
routing: any;
routing?: any;
/** The Interaction context sid is used for adding a context lookup sid */

@@ -15,0 +15,0 @@ interactionContextSid?: string;

@@ -128,8 +128,6 @@ "use strict";

}
if (params["routing"] === null || params["routing"] === undefined) {
throw new Error("Required parameter \"params['routing']\" missing.");
}
let data = {};
data["Channel"] = serialize.object(params["channel"]);
data["Routing"] = serialize.object(params["routing"]);
if (params["routing"] !== undefined)
data["Routing"] = serialize.object(params["routing"]);
if (params["interactionContextSid"] !== undefined)

@@ -136,0 +134,0 @@ data["InteractionContextSid"] = params["interactionContextSid"];

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

archived: boolean;
validated: boolean;
date_created: Date;

@@ -159,3 +160,3 @@ url: string;

/**
* Whether to inject credentials while accessing this Plugin Version. The default value is false.
* Whether the Flex Plugin Version is validated. The default value is false.
*/

@@ -167,2 +168,3 @@ _private: boolean;

archived: boolean;
validated: boolean;
/**

@@ -208,2 +210,3 @@ * The date and time in GMT when the Flex Plugin Version was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.

archived: boolean;
validated: boolean;
dateCreated: Date;

@@ -210,0 +213,0 @@ url: string;

@@ -84,2 +84,3 @@ "use strict";

this.archived = payload.archived;
this.validated = payload.validated;
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);

@@ -113,2 +114,3 @@ this.url = payload.url;

archived: this.archived,
validated: this.validated,
dateCreated: this.dateCreated,

@@ -115,0 +117,0 @@ url: this.url,

import IntelligenceBase from "../IntelligenceBase";
import Version from "../../base/Version";
import { CustomOperatorListInstance } from "./v2/customOperator";
import { OperatorListInstance } from "./v2/operator";
import { OperatorAttachmentListInstance } from "./v2/operatorAttachment";
import { OperatorAttachmentsListInstance } from "./v2/operatorAttachments";
import { OperatorTypeListInstance } from "./v2/operatorType";
import { PrebuiltOperatorListInstance } from "./v2/prebuiltOperator";
import { ServiceListInstance } from "./v2/service";

@@ -12,2 +18,14 @@ import { TranscriptListInstance } from "./v2/transcript";

constructor(domain: IntelligenceBase);
/** customOperators - { Twilio.Intelligence.V2.CustomOperatorListInstance } resource */
protected _customOperators?: CustomOperatorListInstance;
/** operators - { Twilio.Intelligence.V2.OperatorListInstance } resource */
protected _operators?: OperatorListInstance;
/** operatorAttachment - { Twilio.Intelligence.V2.OperatorAttachmentListInstance } resource */
protected _operatorAttachment?: OperatorAttachmentListInstance;
/** operatorAttachments - { Twilio.Intelligence.V2.OperatorAttachmentsListInstance } resource */
protected _operatorAttachments?: OperatorAttachmentsListInstance;
/** operatorType - { Twilio.Intelligence.V2.OperatorTypeListInstance } resource */
protected _operatorType?: OperatorTypeListInstance;
/** prebuiltOperators - { Twilio.Intelligence.V2.PrebuiltOperatorListInstance } resource */
protected _prebuiltOperators?: PrebuiltOperatorListInstance;
/** services - { Twilio.Intelligence.V2.ServiceListInstance } resource */

@@ -17,2 +35,14 @@ protected _services?: ServiceListInstance;

protected _transcripts?: TranscriptListInstance;
/** Getter for customOperators resource */
get customOperators(): CustomOperatorListInstance;
/** Getter for operators resource */
get operators(): OperatorListInstance;
/** Getter for operatorAttachment resource */
get operatorAttachment(): OperatorAttachmentListInstance;
/** Getter for operatorAttachments resource */
get operatorAttachments(): OperatorAttachmentsListInstance;
/** Getter for operatorType resource */
get operatorType(): OperatorTypeListInstance;
/** Getter for prebuiltOperators resource */
get prebuiltOperators(): PrebuiltOperatorListInstance;
/** Getter for services resource */

@@ -19,0 +49,0 @@ get services(): ServiceListInstance;

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

const Version_1 = __importDefault(require("../../base/Version"));
const customOperator_1 = require("./v2/customOperator");
const operator_1 = require("./v2/operator");
const operatorAttachment_1 = require("./v2/operatorAttachment");
const operatorAttachments_1 = require("./v2/operatorAttachments");
const operatorType_1 = require("./v2/operatorType");
const prebuiltOperator_1 = require("./v2/prebuiltOperator");
const service_1 = require("./v2/service");

@@ -32,2 +38,36 @@ const transcript_1 = require("./v2/transcript");

}
/** Getter for customOperators resource */
get customOperators() {
this._customOperators =
this._customOperators || (0, customOperator_1.CustomOperatorListInstance)(this);
return this._customOperators;
}
/** Getter for operators resource */
get operators() {
this._operators = this._operators || (0, operator_1.OperatorListInstance)(this);
return this._operators;
}
/** Getter for operatorAttachment resource */
get operatorAttachment() {
this._operatorAttachment =
this._operatorAttachment || (0, operatorAttachment_1.OperatorAttachmentListInstance)(this);
return this._operatorAttachment;
}
/** Getter for operatorAttachments resource */
get operatorAttachments() {
this._operatorAttachments =
this._operatorAttachments || (0, operatorAttachments_1.OperatorAttachmentsListInstance)(this);
return this._operatorAttachments;
}
/** Getter for operatorType resource */
get operatorType() {
this._operatorType = this._operatorType || (0, operatorType_1.OperatorTypeListInstance)(this);
return this._operatorType;
}
/** Getter for prebuiltOperators resource */
get prebuiltOperators() {
this._prebuiltOperators =
this._prebuiltOperators || (0, prebuiltOperator_1.PrebuiltOperatorListInstance)(this);
return this._prebuiltOperators;
}
/** Getter for services resource */

@@ -34,0 +74,0 @@ get services() {

@@ -19,4 +19,2 @@ /// <reference types="node" />

friendlyName?: string;
/** The default language code of the audio. */
languageCode?: string;
/** Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID. */

@@ -45,3 +43,3 @@ uniqueName?: string;

friendlyName?: string;
/** The default language code of the audio. */
/** The language code set during Service creation determines the Transcription language for all call recordings processed by that Service. The default is en-US if no language code is set. A Service can only support one language code, and it cannot be updated once it\\\'s set. */
languageCode?: string;

@@ -167,2 +165,3 @@ /** Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service. */

webhook_http_method: ServiceHttpMethod;
read_only_attached_operator_sids: Array<string>;
version: number;

@@ -208,3 +207,3 @@ }

/**
* The default language code of the audio.
* The language code set during Service creation determines the Transcription language for all call recordings processed by that Service. The default is en-US if no language code is set. A Service can only support one language code, and it cannot be updated once it\'s set.
*/

@@ -230,2 +229,6 @@ languageCode: string;

/**
* Operator sids attached to this service, read only
*/
readOnlyAttachedOperatorSids: Array<string>;
/**
* The version number of this Service.

@@ -288,2 +291,3 @@ */

webhookHttpMethod: ServiceHttpMethod;
readOnlyAttachedOperatorSids: string[];
version: number;

@@ -290,0 +294,0 @@ };

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

data["FriendlyName"] = params["friendlyName"];
if (params["languageCode"] !== undefined)
data["LanguageCode"] = params["languageCode"];
if (params["uniqueName"] !== undefined)

@@ -126,2 +124,4 @@ data["UniqueName"] = params["uniqueName"];

this.webhookHttpMethod = payload.webhook_http_method;
this.readOnlyAttachedOperatorSids =
payload.read_only_attached_operator_sids;
this.version = deserialize.integer(payload.version);

@@ -180,2 +180,3 @@ this._solution = { sid: sid || this.sid };

webhookHttpMethod: this.webhookHttpMethod,
readOnlyAttachedOperatorSids: this.readOnlyAttachedOperatorSids,
version: this.version,

@@ -182,0 +183,0 @@ };

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

use_inbound_webhook_on_number: boolean;
sending_windows: any;
}

@@ -321,6 +320,2 @@ export declare class ServiceInstance {

useInboundWebhookOnNumber: boolean;
/**
* A list of Sending Windows, which indicate defined time ranges in which a message can be sent, in the UTC time zone. Each window is defined by two strings, labeled \"start_time\" and \"end_time\".
*/
sendingWindows: any;
private get _proxy();

@@ -413,3 +408,2 @@ /**

useInboundWebhookOnNumber: boolean;
sendingWindows: any;
};

@@ -416,0 +410,0 @@ [inspect.custom](_depth: any, options: InspectOptions): string;

@@ -188,3 +188,2 @@ "use strict";

this.useInboundWebhookOnNumber = payload.use_inbound_webhook_on_number;
this.sendingWindows = payload.sending_windows;
this._solution = { sid: sid || this.sid };

@@ -287,3 +286,2 @@ }

useInboundWebhookOnNumber: this.useInboundWebhookOnNumber,
sendingWindows: this.sendingWindows,
};

@@ -290,0 +288,0 @@ }

@@ -5,7 +5,8 @@ import NumbersBase from "../NumbersBase";

import { EligibilityListInstance } from "./v1/eligibility";
import { PortingBulkPortabilityListInstance } from "./v1/portingBulkPortability";
import { PortingPortInListInstance } from "./v1/portingPortIn";
import { PortingPortInFetchListInstance } from "./v1/portingPortInFetch";
import { PortingPortInPhoneNumberListInstance } from "./v1/portingPortInPhoneNumber";
import { PortingPortabilityListInstance } from "./v1/portingPortability";
import { PortingWebhookConfigurationListInstance } from "./v1/portingWebhookConfiguration";
import { PortingWebhookConfigurationDeleteListInstance } from "./v1/portingWebhookConfigurationDelete";
import { PortingWebhookConfigurationFetchListInstance } from "./v1/portingWebhookConfigurationFetch";
export default class V1 extends Version {

@@ -22,8 +23,4 @@ /**

protected _eligibilities?: EligibilityListInstance;
/** portingBulkPortabilities - { Twilio.Numbers.V1.PortingBulkPortabilityListInstance } resource */
protected _portingBulkPortabilities?: PortingBulkPortabilityListInstance;
/** portingPortIns - { Twilio.Numbers.V1.PortingPortInListInstance } resource */
protected _portingPortIns?: PortingPortInListInstance;
/** portingPortInsFetch - { Twilio.Numbers.V1.PortingPortInFetchListInstance } resource */
protected _portingPortInsFetch?: PortingPortInFetchListInstance;
/** portingPortInPhoneNumber - { Twilio.Numbers.V1.PortingPortInPhoneNumberListInstance } resource */

@@ -33,2 +30,8 @@ protected _portingPortInPhoneNumber?: PortingPortInPhoneNumberListInstance;

protected _portingPortabilities?: PortingPortabilityListInstance;
/** portingWebhookConfigurations - { Twilio.Numbers.V1.PortingWebhookConfigurationListInstance } resource */
protected _portingWebhookConfigurations?: PortingWebhookConfigurationListInstance;
/** portingWebhookConfigurationsDelete - { Twilio.Numbers.V1.PortingWebhookConfigurationDeleteListInstance } resource */
protected _portingWebhookConfigurationsDelete?: PortingWebhookConfigurationDeleteListInstance;
/** portingWebhookConfigurationFetch - { Twilio.Numbers.V1.PortingWebhookConfigurationFetchListInstance } resource */
protected _portingWebhookConfigurationFetch?: PortingWebhookConfigurationFetchListInstance;
/** Getter for bulkEligibilities resource */

@@ -38,8 +41,4 @@ get bulkEligibilities(): BulkEligibilityListInstance;

get eligibilities(): EligibilityListInstance;
/** Getter for portingBulkPortabilities resource */
get portingBulkPortabilities(): PortingBulkPortabilityListInstance;
/** Getter for portingPortIns resource */
get portingPortIns(): PortingPortInListInstance;
/** Getter for portingPortInsFetch resource */
get portingPortInsFetch(): PortingPortInFetchListInstance;
/** Getter for portingPortInPhoneNumber resource */

@@ -49,2 +48,8 @@ get portingPortInPhoneNumber(): PortingPortInPhoneNumberListInstance;

get portingPortabilities(): PortingPortabilityListInstance;
/** Getter for portingWebhookConfigurations resource */
get portingWebhookConfigurations(): PortingWebhookConfigurationListInstance;
/** Getter for portingWebhookConfigurationsDelete resource */
get portingWebhookConfigurationsDelete(): PortingWebhookConfigurationDeleteListInstance;
/** Getter for portingWebhookConfigurationFetch resource */
get portingWebhookConfigurationFetch(): PortingWebhookConfigurationFetchListInstance;
}

@@ -22,7 +22,8 @@ "use strict";

const eligibility_1 = require("./v1/eligibility");
const portingBulkPortability_1 = require("./v1/portingBulkPortability");
const portingPortIn_1 = require("./v1/portingPortIn");
const portingPortInFetch_1 = require("./v1/portingPortInFetch");
const portingPortInPhoneNumber_1 = require("./v1/portingPortInPhoneNumber");
const portingPortability_1 = require("./v1/portingPortability");
const portingWebhookConfiguration_1 = require("./v1/portingWebhookConfiguration");
const portingWebhookConfigurationDelete_1 = require("./v1/portingWebhookConfigurationDelete");
const portingWebhookConfigurationFetch_1 = require("./v1/portingWebhookConfigurationFetch");
class V1 extends Version_1.default {

@@ -48,9 +49,2 @@ /**

}
/** Getter for portingBulkPortabilities resource */
get portingBulkPortabilities() {
this._portingBulkPortabilities =
this._portingBulkPortabilities ||
(0, portingBulkPortability_1.PortingBulkPortabilityListInstance)(this);
return this._portingBulkPortabilities;
}
/** Getter for portingPortIns resource */

@@ -62,8 +56,2 @@ get portingPortIns() {

}
/** Getter for portingPortInsFetch resource */
get portingPortInsFetch() {
this._portingPortInsFetch =
this._portingPortInsFetch || (0, portingPortInFetch_1.PortingPortInFetchListInstance)(this);
return this._portingPortInsFetch;
}
/** Getter for portingPortInPhoneNumber resource */

@@ -82,3 +70,24 @@ get portingPortInPhoneNumber() {

}
/** Getter for portingWebhookConfigurations resource */
get portingWebhookConfigurations() {
this._portingWebhookConfigurations =
this._portingWebhookConfigurations ||
(0, portingWebhookConfiguration_1.PortingWebhookConfigurationListInstance)(this);
return this._portingWebhookConfigurations;
}
/** Getter for portingWebhookConfigurationsDelete resource */
get portingWebhookConfigurationsDelete() {
this._portingWebhookConfigurationsDelete =
this._portingWebhookConfigurationsDelete ||
(0, portingWebhookConfigurationDelete_1.PortingWebhookConfigurationDeleteListInstance)(this);
return this._portingWebhookConfigurationsDelete;
}
/** Getter for portingWebhookConfigurationFetch resource */
get portingWebhookConfigurationFetch() {
this._portingWebhookConfigurationFetch =
this._portingWebhookConfigurationFetch ||
(0, portingWebhookConfigurationFetch_1.PortingWebhookConfigurationFetchListInstance)(this);
return this._portingWebhookConfigurationFetch;
}
}
exports.default = V1;

@@ -21,2 +21,10 @@ /// <reference types="node" />

/**
* Fetch a PortingPortInInstance
*
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed PortingPortInInstance
*/
fetch(callback?: (error: Error | null, item?: PortingPortInInstance) => any): Promise<PortingPortInInstance>;
/**
* Provide a user-friendly representation

@@ -36,2 +44,3 @@ */

remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
fetch(callback?: (error: Error | null, item?: PortingPortInInstance) => any): Promise<PortingPortInInstance>;
/**

@@ -48,2 +57,11 @@ * Provide a user-friendly representation

url: string;
account_sid: string;
notification_emails: Array<string>;
target_port_in_date: Date;
target_port_in_time_range_start: string;
target_port_in_time_range_end: string;
port_in_request_status: string;
losing_carrier_information: any;
phone_numbers: Array<any>;
documents: Array<string>;
}

@@ -59,3 +77,42 @@ export declare class PortingPortInInstance {

portInRequestSid: string;
/**
* The URL of this Port In request
*/
url: string;
/**
* The Account SID that the numbers will be added to after they are ported into Twilio.
*/
accountSid: string;
/**
* List of emails for getting notifications about the LOA signing process. Allowed Max 10 emails.
*/
notificationEmails: Array<string>;
/**
* Minimum number of days in the future (at least 2 days) needs to be established with the Ops team for validation.
*/
targetPortInDate: Date;
/**
* Minimum hour in the future needs to be established with the Ops team for validation.
*/
targetPortInTimeRangeStart: string;
/**
* Maximum hour in the future needs to be established with the Ops team for validation.
*/
targetPortInTimeRangeEnd: string;
/**
* The status of the port in request. The possible values are: In progress, Completed, Expired, In review, Waiting for Signature, Action Required, and Canceled.
*/
portInRequestStatus: string;
/**
* The information for the losing carrier.
*/
losingCarrierInformation: any;
/**
* The list of phone numbers to Port in. Phone numbers are in E.164 format (e.g. +16175551212).
*/
phoneNumbers: Array<any>;
/**
* The list of documents SID referencing a utility bills
*/
documents: Array<string>;
private get _proxy();

@@ -71,2 +128,10 @@ /**

/**
* Fetch a PortingPortInInstance
*
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed PortingPortInInstance
*/
fetch(callback?: (error: Error | null, item?: PortingPortInInstance) => any): Promise<PortingPortInInstance>;
/**
* Provide a user-friendly representation

@@ -79,2 +144,11 @@ *

url: string;
accountSid: string;
notificationEmails: string[];
targetPortInDate: Date;
targetPortInTimeRangeStart: string;
targetPortInTimeRangeEnd: string;
portInRequestStatus: string;
losingCarrierInformation: any;
phoneNumbers: any[];
documents: string[];
};

@@ -81,0 +155,0 @@ [inspect.custom](_depth: any, options: InspectOptions): string;

@@ -39,2 +39,12 @@ "use strict";

}
fetch(callback) {
const instance = this;
let operationVersion = instance._version, operationPromise = operationVersion.fetch({
uri: instance._uri,
method: "get",
});
operationPromise = operationPromise.then((payload) => new PortingPortInInstance(operationVersion, payload, instance._solution.portInRequestSid));
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
return operationPromise;
}
/**

@@ -58,2 +68,11 @@ * Provide a user-friendly representation

this.url = payload.url;
this.accountSid = payload.account_sid;
this.notificationEmails = payload.notification_emails;
this.targetPortInDate = deserialize.iso8601Date(payload.target_port_in_date);
this.targetPortInTimeRangeStart = payload.target_port_in_time_range_start;
this.targetPortInTimeRangeEnd = payload.target_port_in_time_range_end;
this.portInRequestStatus = payload.port_in_request_status;
this.losingCarrierInformation = payload.losing_carrier_information;
this.phoneNumbers = payload.phone_numbers;
this.documents = payload.documents;
this._solution = {

@@ -80,2 +99,12 @@ portInRequestSid: portInRequestSid || this.portInRequestSid,

/**
* Fetch a PortingPortInInstance
*
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed PortingPortInInstance
*/
fetch(callback) {
return this._proxy.fetch(callback);
}
/**
* Provide a user-friendly representation

@@ -89,2 +118,11 @@ *

url: this.url,
accountSid: this.accountSid,
notificationEmails: this.notificationEmails,
targetPortInDate: this.targetPortInDate,
targetPortInTimeRangeStart: this.targetPortInTimeRangeStart,
targetPortInTimeRangeEnd: this.targetPortInTimeRangeEnd,
portInRequestStatus: this.portInRequestStatus,
losingCarrierInformation: this.losingCarrierInformation,
phoneNumbers: this.phoneNumbers,
documents: this.documents,
};

@@ -91,0 +129,0 @@ }

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

/**
* Fetch a PortingPortInPhoneNumberInstance
*
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed PortingPortInPhoneNumberInstance
*/
fetch(callback?: (error: Error | null, item?: PortingPortInPhoneNumberInstance) => any): Promise<PortingPortInPhoneNumberInstance>;
/**
* Provide a user-friendly representation

@@ -30,2 +38,3 @@ */

remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
fetch(callback?: (error: Error | null, item?: PortingPortInPhoneNumberInstance) => any): Promise<PortingPortInPhoneNumberInstance>;
/**

@@ -39,2 +48,116 @@ * Provide a user-friendly representation

}
interface PortingPortInPhoneNumberResource {
port_in_request_sid: string;
phone_number_sid: string;
url: string;
account_sid: string;
phone_number_type: string;
date_created: Date;
country: string;
missing_required_fields: boolean;
status_last_time_updated_timestamp: Date;
phone_number: string;
portable: boolean;
not_portability_reason: string;
not_portability_reason_code: string;
port_in_phone_number_status: string;
}
export declare class PortingPortInPhoneNumberInstance {
protected _version: V1;
protected _solution: PortingPortInPhoneNumberContextSolution;
protected _context?: PortingPortInPhoneNumberContext;
constructor(_version: V1, payload: PortingPortInPhoneNumberResource, portInRequestSid?: string, phoneNumberSid?: string);
/**
* The SID of the Port In request. This is a unique identifier of the port in request.
*/
portInRequestSid: string;
/**
* The SID of the Port In request phone number. This is a unique identifier of the phone number.
*/
phoneNumberSid: string;
url: string;
/**
* The SID of the account that the phone number belongs to.
*/
accountSid: string;
/**
* The type of the phone number.
*/
phoneNumberType: string;
/**
* The date when the phone number was created.
*/
dateCreated: Date;
/**
* The country of the phone number.
*/
country: string;
/**
* The phone number is missing required fields.
*/
missingRequiredFields: boolean;
/**
* The timestamp when the status was last updated.
*/
statusLastTimeUpdatedTimestamp: Date;
/**
* The phone number.
*/
phoneNumber: string;
/**
* The phone number is portable.
*/
portable: boolean;
/**
* The reason why the phone number is not portable.
*/
notPortabilityReason: string;
/**
* The code of the reason why the phone number is not portable.
*/
notPortabilityReasonCode: string;
/**
* The status of the phone number in the port in request.
*/
portInPhoneNumberStatus: string;
private get _proxy();
/**
* Remove a PortingPortInPhoneNumberInstance
*
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed boolean
*/
remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
/**
* Fetch a PortingPortInPhoneNumberInstance
*
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed PortingPortInPhoneNumberInstance
*/
fetch(callback?: (error: Error | null, item?: PortingPortInPhoneNumberInstance) => any): Promise<PortingPortInPhoneNumberInstance>;
/**
* Provide a user-friendly representation
*
* @returns Object
*/
toJSON(): {
portInRequestSid: string;
phoneNumberSid: string;
url: string;
accountSid: string;
phoneNumberType: string;
dateCreated: Date;
country: string;
missingRequiredFields: boolean;
statusLastTimeUpdatedTimestamp: Date;
phoneNumber: string;
portable: boolean;
notPortabilityReason: string;
notPortabilityReasonCode: string;
portInPhoneNumberStatus: string;
};
[inspect.custom](_depth: any, options: InspectOptions): string;
}
export interface PortingPortInPhoneNumberSolution {

@@ -55,1 +178,2 @@ }

export declare function PortingPortInPhoneNumberListInstance(version: V1): PortingPortInPhoneNumberListInstance;
export {};

@@ -16,3 +16,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.PortingPortInPhoneNumberListInstance = exports.PortingPortInPhoneNumberContextImpl = void 0;
exports.PortingPortInPhoneNumberListInstance = exports.PortingPortInPhoneNumberInstance = exports.PortingPortInPhoneNumberContextImpl = void 0;
const util_1 = require("util");

@@ -43,2 +43,12 @@ const deserialize = require("../../../base/deserialize");

}
fetch(callback) {
const instance = this;
let operationVersion = instance._version, operationPromise = operationVersion.fetch({
uri: instance._uri,
method: "get",
});
operationPromise = operationPromise.then((payload) => new PortingPortInPhoneNumberInstance(operationVersion, payload, instance._solution.portInRequestSid, instance._solution.phoneNumberSid));
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
return operationPromise;
}
/**

@@ -57,2 +67,78 @@ * Provide a user-friendly representation

exports.PortingPortInPhoneNumberContextImpl = PortingPortInPhoneNumberContextImpl;
class PortingPortInPhoneNumberInstance {
constructor(_version, payload, portInRequestSid, phoneNumberSid) {
this._version = _version;
this.portInRequestSid = payload.port_in_request_sid;
this.phoneNumberSid = payload.phone_number_sid;
this.url = payload.url;
this.accountSid = payload.account_sid;
this.phoneNumberType = payload.phone_number_type;
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
this.country = payload.country;
this.missingRequiredFields = payload.missing_required_fields;
this.statusLastTimeUpdatedTimestamp = deserialize.iso8601DateTime(payload.status_last_time_updated_timestamp);
this.phoneNumber = payload.phone_number;
this.portable = payload.portable;
this.notPortabilityReason = payload.not_portability_reason;
this.notPortabilityReasonCode = payload.not_portability_reason_code;
this.portInPhoneNumberStatus = payload.port_in_phone_number_status;
this._solution = {
portInRequestSid: portInRequestSid || this.portInRequestSid,
phoneNumberSid: phoneNumberSid || this.phoneNumberSid,
};
}
get _proxy() {
this._context =
this._context ||
new PortingPortInPhoneNumberContextImpl(this._version, this._solution.portInRequestSid, this._solution.phoneNumberSid);
return this._context;
}
/**
* Remove a PortingPortInPhoneNumberInstance
*
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed boolean
*/
remove(callback) {
return this._proxy.remove(callback);
}
/**
* Fetch a PortingPortInPhoneNumberInstance
*
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed PortingPortInPhoneNumberInstance
*/
fetch(callback) {
return this._proxy.fetch(callback);
}
/**
* Provide a user-friendly representation
*
* @returns Object
*/
toJSON() {
return {
portInRequestSid: this.portInRequestSid,
phoneNumberSid: this.phoneNumberSid,
url: this.url,
accountSid: this.accountSid,
phoneNumberType: this.phoneNumberType,
dateCreated: this.dateCreated,
country: this.country,
missingRequiredFields: this.missingRequiredFields,
statusLastTimeUpdatedTimestamp: this.statusLastTimeUpdatedTimestamp,
phoneNumber: this.phoneNumber,
portable: this.portable,
notPortabilityReason: this.notPortabilityReason,
notPortabilityReasonCode: this.notPortabilityReasonCode,
portInPhoneNumberStatus: this.portInPhoneNumberStatus,
};
}
[util_1.inspect.custom](_depth, options) {
return (0, util_1.inspect)(this.toJSON(), options);
}
}
exports.PortingPortInPhoneNumberInstance = PortingPortInPhoneNumberInstance;
function PortingPortInPhoneNumberListInstance(version) {

@@ -59,0 +145,0 @@ const instance = ((portInRequestSid, phoneNumberSid) => instance.get(portInRequestSid, phoneNumberSid));

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

virtualStartTime?: Date;
/** A SID of a Worker, Queue, or Workflow to route a Task to */
routingTarget?: string;
/** A boolean indicating if a new task should respect a worker\\\'s capacity during assignment */
ignoreCapacity?: string;
/** The SID of the TaskQueue in which the Task belongs */
taskQueueSid?: string;
}

@@ -70,2 +76,4 @@ /**

evaluateTaskAttributes?: string;
/** A SID of a Worker, Queue, or Workflow to route a Task to */
routingTarget?: string;
/** How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime. */

@@ -102,2 +110,4 @@ ordering?: string;

evaluateTaskAttributes?: string;
/** A SID of a Worker, Queue, or Workflow to route a Task to */
routingTarget?: string;
/** How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime. */

@@ -130,2 +140,4 @@ ordering?: string;

evaluateTaskAttributes?: string;
/** A SID of a Worker, Queue, or Workflow to route a Task to */
routingTarget?: string;
/** How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime. */

@@ -240,2 +252,4 @@ ordering?: string;

virtual_start_time: Date;
ignore_capacity: boolean;
routing_target: string;
}

@@ -332,2 +346,10 @@ export declare class TaskInstance {

virtualStartTime: Date;
/**
* A boolean indicating if a new task should respect a worker\'s capacity during assignment
*/
ignoreCapacity: boolean;
/**
* A SID of a Worker, Queue, or Workflow to route a Task to
*/
routingTarget: string;
private get _proxy();

@@ -408,2 +430,4 @@ /**

virtualStartTime: Date;
ignoreCapacity: boolean;
routingTarget: string;
};

@@ -410,0 +434,0 @@ [inspect.custom](_depth: any, options: InspectOptions): string;

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

this.virtualStartTime = deserialize.iso8601DateTime(payload.virtual_start_time);
this.ignoreCapacity = payload.ignore_capacity;
this.routingTarget = payload.routing_target;
this._solution = { workspaceSid, sid: sid || this.sid };

@@ -210,2 +212,4 @@ }

virtualStartTime: this.virtualStartTime,
ignoreCapacity: this.ignoreCapacity,
routingTarget: this.routingTarget,
};

@@ -250,2 +254,8 @@ }

data["VirtualStartTime"] = serialize.iso8601DateTime(params["virtualStartTime"]);
if (params["routingTarget"] !== undefined)
data["RoutingTarget"] = params["routingTarget"];
if (params["ignoreCapacity"] !== undefined)
data["IgnoreCapacity"] = params["ignoreCapacity"];
if (params["taskQueueSid"] !== undefined)
data["TaskQueueSid"] = params["taskQueueSid"];
const headers = {};

@@ -286,2 +296,4 @@ headers["Content-Type"] = "application/x-www-form-urlencoded";

data["EvaluateTaskAttributes"] = params["evaluateTaskAttributes"];
if (params["routingTarget"] !== undefined)
data["RoutingTarget"] = params["routingTarget"];
if (params["ordering"] !== undefined)

@@ -288,0 +300,0 @@ data["Ordering"] = params["ordering"];

@@ -51,2 +51,4 @@ /// <reference types="node" />

businessContactPhone?: string;
/** Theme id for styling the inquiry form. */
themeSetId?: string;
}

@@ -53,0 +55,0 @@ export interface ComplianceTollfreeInquiriesSolution {

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

data["BusinessContactPhone"] = params["businessContactPhone"];
if (params["themeSetId"] !== undefined)
data["ThemeSetId"] = params["themeSetId"];
const headers = {};

@@ -81,0 +83,0 @@ headers["Content-Type"] = "application/x-www-form-urlencoded";

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

links: Record<string, string>;
errors: Array<any>;
}

@@ -223,2 +224,6 @@ export declare class CustomerProfilesInstance {

links: Record<string, string>;
/**
* The error codes associated with the rejection of the Customer-Profile.
*/
errors: Array<any>;
private get _proxy();

@@ -288,2 +293,3 @@ /**

links: Record<string, string>;
errors: any[];
};

@@ -290,0 +296,0 @@ [inspect.custom](_depth: any, options: InspectOptions): string;

@@ -132,2 +132,3 @@ "use strict";

this.links = payload.links;
this.errors = payload.errors;
this._solution = { sid: sid || this.sid };

@@ -201,2 +202,3 @@ }

links: this.links,
errors: this.errors,
};

@@ -203,0 +205,0 @@ }

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

links: Record<string, string>;
errors: Array<any>;
}

@@ -223,2 +224,6 @@ export declare class TrustProductsInstance {

links: Record<string, string>;
/**
* The error codes associated with the rejection of the Trust Product.
*/
errors: Array<any>;
private get _proxy();

@@ -288,2 +293,3 @@ /**

links: Record<string, string>;
errors: any[];
};

@@ -290,0 +296,0 @@ [inspect.custom](_depth: any, options: InspectOptions): string;

@@ -132,2 +132,3 @@ "use strict";

this.links = payload.links;
this.errors = payload.errors;
this._solution = { sid: sid || this.sid };

@@ -201,2 +202,3 @@ }

links: this.links,
errors: this.errors,
};

@@ -203,0 +205,0 @@ }

@@ -15,3 +15,2 @@ import { Client, ClientOpts, RequestOpts } from "../base/BaseTwilio";

import Lookups from "./Lookups";
import PreviewMessaging from "./PreviewMessaging";
import Messaging from "./Messaging";

@@ -92,4 +91,2 @@ import Microvisor from "./Microvisor";

_lookups?: Lookups;
/** (Twilio.PreviewMessaging) - previewMessaging domain */
_previewMessaging?: PreviewMessaging;
/** (Twilio.Messaging) - messaging domain */

@@ -175,4 +172,2 @@ _messaging?: Messaging;

get lookups(): Lookups;
/** Getter for (Twilio.PreviewMessaging) domain */
get previewMessaging(): PreviewMessaging;
/** Getter for (Twilio.Messaging) domain */

@@ -179,0 +174,0 @@ get messaging(): Messaging;

@@ -48,3 +48,2 @@ "use strict";

this.lookups;
this.previewMessaging;
this.messaging;

@@ -131,7 +130,2 @@ this.microvisor;

}
/** Getter for (Twilio.PreviewMessaging) domain */
get previewMessaging() {
return (this._previewMessaging ??
(this._previewMessaging = new (require("./PreviewMessaging"))(this)));
}
/** Getter for (Twilio.Messaging) domain */

@@ -138,0 +132,0 @@ get messaging() {

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

/**
* The string that you assigned to describe the verification service. It can be up to 32 characters long. **This value should not contain PII.**
* The name that appears in the body of your verification messages. It can be up to 30 characters long and can include letters, numbers, spaces, dashes, underscores. Phone numbers, special characters or links are NOT allowed. **This value should not contain PII.**
*/

@@ -258,0 +258,0 @@ friendlyName: string;

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

/**
* The status of the verification. One of: `pending`, `approved`, or `canceled`
* The status of the verification. Can be: `pending`, `approved`, `canceled`, `max_attempts_reached`, `deleted`, `failed` or `expired`.
*/

@@ -139,0 +139,0 @@ status: string;

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

/**
* The status of the verification. Can be: `pending`, `approved`, or `canceled`.
* The status of the verification. Can be: `pending`, `approved`, `canceled`, `max_attempts_reached`, `deleted`, `failed` or `expired`.
*/

@@ -89,0 +89,0 @@ status: string;

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

}
if (!options) {
options = {
validate: true,
};
}
if (!options)
options = {};
if (options.validate == undefined)
options.validate = true;
// Process arguments

@@ -244,0 +243,0 @@ var tokenString;

{
"name": "twilio",
"description": "A Twilio helper library",
"version": "5.0.4",
"version": "5.1.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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc